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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1d2e1382866e3792ca99da82abb9601f5de52ef
| 5,669
|
py
|
Python
|
python/test_alpenglow/experiments/test_TransitionProbabilityExperiment.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 28
|
2017-07-23T22:47:44.000Z
|
2022-03-12T15:11:13.000Z
|
python/test_alpenglow/experiments/test_TransitionProbabilityExperiment.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 4
|
2017-05-10T10:23:17.000Z
|
2019-05-23T14:07:09.000Z
|
python/test_alpenglow/experiments/test_TransitionProbabilityExperiment.py
|
fbobee/Alpenglow
|
5f956511017c1bee72390aaecd964c04d8ad4b45
|
[
"Apache-2.0"
] | 9
|
2017-05-04T09:20:58.000Z
|
2021-12-14T08:19:01.000Z
|
import alpenglow as prs
import alpenglow.Getter as rs
import alpenglow.experiments
import pandas as pd
import math
class TestTransitionProbabilityExperiment:
def test_transitionProbabilityExperiment(self):
data = pd.read_csv(
"python/test_alpenglow/test_data_4",
sep=' ',
header=None,
names=['time', 'user', 'item', 'id', 'score', 'eval']
)
experiment = alpenglow.experiments.TransitionProbabilityExperiment(
top_k=100,
seed=254938879,
)
rankings = experiment.run(data, verbose=True, exclude_known=True)
assert rankings.top_k == 100
desired_ranks = [102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 2, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 4, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 7, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 3, 3, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 1, 102, 102, 102, 3, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 3, 102, 102, 0, 102, 102, 102, 102, 102, 2, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 1, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 1, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 2, 102, 102, 102, 102, 8, 102, 102, 102, 102, 102, 102, 102, 102, 102, 1, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 1, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 5, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 10, 102, 102, 0, 102, 102, 102, 102, 102, 1, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 3, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 2, 102, 102, 102, 102, 102, 102, 1, 102, 1, 102, 7, 8, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 5, 102, 102, 102, 102, 1, 102, 9, 102, 102, 102, 102, 102, 102, 102, 102, 2, 102, 102, 102, 102, 102, 102, 102, 102, 5, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 4, 102, 102, 102, 2, 0, 2, 102, 102, 102, 102, 102, 102, 102, 3, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 6, 102, 5, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 1, 0, 102, 102, 102, 102, 102, 9, 1, 3, 102, 102, 102, 102, 102, 7, 102, 102, 16, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 10, 8, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 13, 102, 102, 102, 102, 102, 2, 102, 4, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 1, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 4, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 2, 102, 1, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 9, 102, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 2, 102, 102, 0, 102, 102, 102, 102, 0, 102, 102, 102, 102, 0, 102, 102, 102, 102, 102, 1, 12, 102, 2, 102, 102, 102, 102, 102, 102, 2, 102, 0, 102, 102, 0, 102, 102, 102, 102, 102, 102, 102, 102, 7, 10, 102, 102, 7, 102, 102, 102, 102, 102, 102]
desired_ranks = list(map(lambda i: i + 1 if i < 100 else 101, desired_ranks))
assert list(rankings["rank"].fillna(101)) == desired_ranks
| 226.76
| 4,856
| 0.593932
| 1,092
| 5,669
| 3.072344
| 0.063187
| 1.495082
| 2.057526
| 2.518033
| 0.83845
| 0.837258
| 0.831595
| 0.825335
| 0.80924
| 0.798808
| 0
| 0.642247
| 0.215029
| 5,669
| 24
| 4,857
| 236.208333
| 0.111685
| 0
| 0
| 0
| 0
| 0
| 0.01076
| 0.005821
| 0
| 0
| 0
| 0
| 0.090909
| 1
| 0.045455
| false
| 0
| 0.227273
| 0
| 0.318182
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
7b3a55e74240b4f305c5ea2e45c4eef7c13bc5a5
| 3,838
|
py
|
Python
|
tests/test_queries.py
|
dioptra-io/diamond-miner
|
fae066bef872f5c3eb4ef732dd90237c9cb5c003
|
[
"MIT"
] | 5
|
2021-08-04T13:56:38.000Z
|
2022-03-17T01:20:14.000Z
|
tests/test_queries.py
|
dioptra-io/diamond-miner
|
fae066bef872f5c3eb4ef732dd90237c9cb5c003
|
[
"MIT"
] | 28
|
2021-08-01T05:05:28.000Z
|
2022-03-01T05:06:27.000Z
|
tests/test_queries.py
|
dioptra-io/diamond-miner
|
fae066bef872f5c3eb4ef732dd90237c9cb5c003
|
[
"MIT"
] | null | null | null |
def test_get_links_nsdi():
"""
>>> from diamond_miner.test import url
>>> from diamond_miner.queries import GetLinks
>>> rows = GetLinks().execute(url, 'test_nsdi_example')
>>> links = [(row["near_addr"], row["far_addr"]) for row in rows]
>>> sorted(links)[:3]
[('::ffff:150.0.1.1', '::ffff:150.0.2.1'), ('::ffff:150.0.1.1', '::ffff:150.0.3.1'), ('::ffff:150.0.2.1', '::ffff:150.0.4.1')]
>>> sorted(links)[3:6]
[('::ffff:150.0.3.1', '::ffff:150.0.5.1'), ('::ffff:150.0.3.1', '::ffff:150.0.7.1'), ('::ffff:150.0.4.1', '::ffff:150.0.6.1')]
>>> sorted(links)[6:]
[('::ffff:150.0.5.1', '::ffff:150.0.6.1'), ('::ffff:150.0.7.1', '::ffff:150.0.6.1')]
"""
def test_get_links_multi_protocol():
"""
>>> from diamond_miner.test import url
>>> from diamond_miner.queries import GetLinks
>>> rows = GetLinks(probe_protocol=1).execute(url, 'test_multi_protocol')
>>> links = [(row["near_addr"], row["far_addr"]) for row in rows]
>>> sorted(links)
[('::ffff:150.0.0.1', '::ffff:150.0.1.1'), ('::ffff:150.0.0.2', '::ffff:150.0.1.1')]
>>> rows = GetLinks(probe_protocol=17).execute(url, 'test_multi_protocol')
>>> links = [(row["near_addr"], row["far_addr"]) for row in rows]
>>> sorted(links)
[('::ffff:150.0.0.1', '::ffff:150.0.1.1')]
"""
def test_get_mda_probes_nsdi():
"""
>>> from diamond_miner.test import url
>>> from diamond_miner.queries import GetMDAProbes
>>> row = GetMDAProbes(round_leq=1, adaptive_eps=False).execute(url, 'test_nsdi_lite')[0]
>>> row["probe_dst_prefix"]
'::ffff:200.0.0.0'
>>> row["TTLs"]
[1, 2, 3, 4]
>>> row["cumulative_probes"]
[11, 11, 11, 11]
>>> row = GetMDAProbes(round_leq=2, adaptive_eps=False).execute(url, 'test_nsdi_lite')[0]
>>> row["probe_dst_prefix"]
'::ffff:200.0.0.0'
>>> row["TTLs"]
[1, 2, 3, 4]
>>> row["cumulative_probes"]
[11, 16, 16, 16]
>>> row = GetMDAProbes(round_leq=3, adaptive_eps=False).execute(url, 'test_nsdi_lite')[0]
>>> row["probe_dst_prefix"]
'::ffff:200.0.0.0'
>>> row["TTLs"]
[1, 2, 3, 4]
>>> row["cumulative_probes"]
[11, 16, 16, 16]
"""
# TODO: Rename to test_get_mda_probes_nsdi...
def test_get_mda_probes_stateful_nsdi():
"""
>>> from diamond_miner.test import url
>>> from diamond_miner.queries import GetMDAProbes
>>> row = GetMDAProbes(round_leq=1, adaptive_eps=False).execute(url, 'test_nsdi_lite')[0]
>>> row["probe_dst_prefix"]
'::ffff:200.0.0.0'
>>> row["TTLs"]
[1, 2, 3, 4]
>>> row["cumulative_probes"]
[11, 11, 11, 11]
>>> row = GetMDAProbes(round_leq=2, adaptive_eps=False).execute(url, 'test_nsdi_lite')[0]
>>> row["probe_dst_prefix"]
'::ffff:200.0.0.0'
>>> row["TTLs"]
[1, 2, 3, 4]
>>> row["cumulative_probes"]
[11, 16, 16, 16]
>>> row = GetMDAProbes(round_leq=3, adaptive_eps=False).execute(url, 'test_nsdi_lite')[0]
>>> row["probe_dst_prefix"]
'::ffff:200.0.0.0'
>>> row["TTLs"]
[1, 2, 3, 4]
>>> row["cumulative_probes"]
[11, 16, 16, 16]
"""
# TODO: Make this test pass
# def test_get_mda_probes_star():
# """
# With the current links computation (in GetLinksFromView), we do not emit a link
# in the case of *single* reply in a traceroute. For example: * * node * *, does
# not generate a link. In this case this means that we never see a link including V_7.
#
# >>> rows = GetMDAProbes(round_leq=1, adaptive_eps=False).execute(url, 'test_star_node_star')
# >>> row = GetMDAProbes.Row(*rows[0])
# >>> addr_to_string(row.dst_prefix)
# '200.0.0.0'
# >>> row.ttls
# [1, 2, 3]
# >>> row.already_sent
# [6, 6, 6]
# >>> row.to_send
# [0, 0, 5]
#
# >>> GetMDAProbes(round_leq=2, adaptive_eps=False).execute(url, 'test_star_node_star')
# []
# """
| 34.576577
| 130
| 0.589109
| 594
| 3,838
| 3.631313
| 0.149832
| 0.071395
| 0.081595
| 0.066759
| 0.798331
| 0.757997
| 0.750116
| 0.750116
| 0.72879
| 0.661567
| 0
| 0.088563
| 0.182126
| 3,838
| 110
| 131
| 34.890909
| 0.598598
| 0.865294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018182
| 0
| 1
| 1
| true
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
7b83324ae81f0f298041d0b42455b2441a4c8c2b
| 2,601
|
py
|
Python
|
Python_projects/project02/proj02.py
|
helpmoeny/pythoncode
|
0e2a0a3d3243323dd9e970daaf3b6c347900c694
|
[
"Unlicense"
] | null | null | null |
Python_projects/project02/proj02.py
|
helpmoeny/pythoncode
|
0e2a0a3d3243323dd9e970daaf3b6c347900c694
|
[
"Unlicense"
] | null | null | null |
Python_projects/project02/proj02.py
|
helpmoeny/pythoncode
|
0e2a0a3d3243323dd9e970daaf3b6c347900c694
|
[
"Unlicense"
] | null | null | null |
#code=input("Enter customer code:")
while True:
print("")
code=input("Enter customer code:")
bill_float = 0
bill = float(bill_float)
if code == "r":
begin_int=input("Enter beginning meter reading:")
begin = float(begin_int)
end_int=input("Enter ending meter reading:")
end = float(end_int)
Used = .1*(end-begin)
Used_rounded = round(Used,2)
bill = 5.00+ .0005*Used
bill_rounded = round(bill,2)
print("")
print("Customer code: ",code)
print("Beginning meter reading: ",begin_int)
print("Ending meter reading: ",end_int)
print("Gallons of water used: ",Used_rounded)
print("Amount billed: $",bill_rounded)
elif code == "c":
begin_int=input("Enter beginning meter reading:")
begin = float(begin_int)
end_int=input("Enter ending meter reading:")
end = float(end_int)
if end<begin:
Used = .1*((1000000000-begin)+end)
else:
Used = .1*(end-begin)
if Used <= 4000000.00:
bill = 1000.00
elif Used >4000000.00:
bill = 1000.00+.00025*Used
else:
print("broken")
Used_rounded = round(Used,2)
bill_rounded = round(bill,2)
print("")
print("Customer code: ",code)
print("Beginning meter reading: ",begin_int)
print("Ending meter reading: ",end_int)
print("Gallons of water used: ",Used_rounded)
print("Amount billed: $",bill_rounded)
elif code == "i":
begin_int=input("Enter beginning meter reading:")
begin = float(begin_int)
end_int=input("Enter ending meter reading:")
end = float(end_int)
if end<begin:
Used = .1*((1000000000-begin)+end)
else:
Used = .1*(end-begin)
if Used <= 4000000.00:
bill = 1000.00
elif 4000000< Used <= 10000000.00:
bill = 2000.00
elif Used > 10000000.00:
bill = 2000.00+.00025*Used
else:
print("broken")
Used_rounded = round(Used,2)
bill_rounded = round(bill,2)
print("")
print("Customer code: ",code)
print("Beginning meter reading: ",begin_int)
print("Ending meter reading: ",end_int)
print("Gallons of water used: ",Used_rounded)
print("Amount billed: $",bill_rounded)
elif code == "zz":
print("Terminating")
break
else:
print("Please input a correct code character(i,r,c) Or(zz) to terminate")
| 34.68
| 81
| 0.557862
| 314
| 2,601
| 4.519108
| 0.16879
| 0.10148
| 0.054968
| 0.109937
| 0.881607
| 0.844961
| 0.780127
| 0.780127
| 0.780127
| 0.780127
| 0
| 0.074593
| 0.314494
| 2,601
| 74
| 82
| 35.148649
| 0.721256
| 0.013072
| 0
| 0.753425
| 0
| 0
| 0.231878
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.315068
| 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
|
c88f566de08e0bd516746fe8a29e3b465476167d
| 4,052
|
py
|
Python
|
test/functions/lambda6.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1,482
|
2015-10-16T21:59:32.000Z
|
2022-03-30T11:44:40.000Z
|
test/functions/lambda6.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 226
|
2015-10-15T15:53:44.000Z
|
2022-03-25T03:08:27.000Z
|
test/functions/lambda6.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 129
|
2015-10-20T02:41:49.000Z
|
2022-03-22T01:44:36.000Z
|
anon = lambda a=123, c={'': 555}, \
d=toow(24): None
anon : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
lambda : meta.lambda-function.python, source.python, storage.type.function.lambda.python
: meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
a : meta.function.lambda.parameters.python, meta.lambda-function.python, source.python, variable.parameter.function.language.python
= : keyword.operator.python, meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
123 : constant.numeric.dec.python, meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
, : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.separator.parameters.python, source.python
: meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
c : meta.function.lambda.parameters.python, meta.lambda-function.python, source.python, variable.parameter.function.language.python
= : keyword.operator.python, meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
{ : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.definition.dict.begin.python, source.python
' : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.definition.string.begin.python, source.python, string.quoted.single.python
' : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.definition.string.end.python, source.python, string.quoted.single.python
: : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.separator.dict.python, source.python
: meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
555 : constant.numeric.dec.python, meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
} : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.definition.dict.end.python, source.python
, : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.separator.parameters.python, source.python
: meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
\ : meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.separator.continuation.line.python, source.python
: meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
: meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
d : meta.function.lambda.parameters.python, meta.lambda-function.python, source.python, variable.parameter.function.language.python
= : keyword.operator.python, meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
toow : meta.function-call.generic.python, meta.function-call.python, meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
( : meta.function-call.python, meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.definition.arguments.begin.python, source.python
24 : constant.numeric.dec.python, meta.function-call.arguments.python, meta.function-call.python, meta.function.lambda.parameters.python, meta.lambda-function.python, source.python
) : meta.function-call.python, meta.function.lambda.parameters.python, meta.lambda-function.python, punctuation.definition.arguments.end.python, source.python
: : meta.lambda-function.python, punctuation.section.function.lambda.begin.python, source.python
: source.python
None : constant.language.python, source.python
| 101.3
| 191
| 0.731737
| 465
| 4,052
| 6.376344
| 0.088172
| 0.185497
| 0.200337
| 0.226644
| 0.904216
| 0.877909
| 0.839798
| 0.839798
| 0.839798
| 0.839798
| 0
| 0.004651
| 0.151037
| 4,052
| 39
| 192
| 103.897436
| 0.857267
| 0
| 0
| 0.388889
| 0
| 0.027778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
c892c8d99d370c3963a049c82dd63c807f246756
| 63,027
|
py
|
Python
|
tccli/services/tdmq/tdmq_client.py
|
zqfan/tencentcloud-cli
|
b6ad9fced2a2b340087e4e5522121d405f68b615
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/tdmq/tdmq_client.py
|
zqfan/tencentcloud-cli
|
b6ad9fced2a2b340087e4e5522121d405f68b615
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/tdmq/tdmq_client.py
|
zqfan/tencentcloud-cli
|
b6ad9fced2a2b340087e4e5522121d405f68b615
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli import __version__
from tccli.utils import Utils
from tccli.exceptions import ConfigurationError
from tencentcloud.common import credential
from tencentcloud.common.profile.http_profile import HttpProfile
from tencentcloud.common.profile.client_profile import ClientProfile
from tencentcloud.tdmq.v20200217 import tdmq_client as tdmq_client_v20200217
from tencentcloud.tdmq.v20200217 import models as models_v20200217
def doDeleteCmqTopic(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteCmqTopicRequest()
model.from_json_string(json.dumps(args))
rsp = client.DeleteCmqTopic(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteEnvironments(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteEnvironmentsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DeleteEnvironments(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeBindVpcs(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeBindVpcsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeBindVpcs(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateCluster(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateClusterRequest()
model.from_json_string(json.dumps(args))
rsp = client.CreateCluster(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyTopic(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyTopicRequest()
model.from_json_string(json.dumps(args))
rsp = client.ModifyTopic(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doClearCmqQueue(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ClearCmqQueueRequest()
model.from_json_string(json.dumps(args))
rsp = client.ClearCmqQueue(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateCmqQueue(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateCmqQueueRequest()
model.from_json_string(json.dumps(args))
rsp = client.CreateCmqQueue(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyCmqTopicAttribute(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyCmqTopicAttributeRequest()
model.from_json_string(json.dumps(args))
rsp = client.ModifyCmqTopicAttribute(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyCmqQueueAttribute(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyCmqQueueAttributeRequest()
model.from_json_string(json.dumps(args))
rsp = client.ModifyCmqQueueAttribute(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateCmqTopic(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateCmqTopicRequest()
model.from_json_string(json.dumps(args))
rsp = client.CreateCmqTopic(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeEnvironmentRoles(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeEnvironmentRolesRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeEnvironmentRoles(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeCmqDeadLetterSourceQueues(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeCmqDeadLetterSourceQueuesRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeCmqDeadLetterSourceQueues(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteCmqQueue(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteCmqQueueRequest()
model.from_json_string(json.dumps(args))
rsp = client.DeleteCmqQueue(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeCmqTopics(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeCmqTopicsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeCmqTopics(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteCluster(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteClusterRequest()
model.from_json_string(json.dumps(args))
rsp = client.DeleteCluster(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeCmqSubscriptionDetail(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeCmqSubscriptionDetailRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeCmqSubscriptionDetail(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeBindClusters(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeBindClustersRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeBindClusters(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeCmqQueueDetail(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeCmqQueueDetailRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeCmqQueueDetail(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doRewindCmqQueue(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.RewindCmqQueueRequest()
model.from_json_string(json.dumps(args))
rsp = client.RewindCmqQueue(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeClusters(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeClustersRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeClusters(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doSendMsg(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.SendMsgRequest()
model.from_json_string(json.dumps(args))
rsp = client.SendMsg(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateTopic(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateTopicRequest()
model.from_json_string(json.dumps(args))
rsp = client.CreateTopic(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeCmqQueues(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeCmqQueuesRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeCmqQueues(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doPublishCmqMsg(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.PublishCmqMsgRequest()
model.from_json_string(json.dumps(args))
rsp = client.PublishCmqMsg(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeEnvironments(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeEnvironmentsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeEnvironments(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeClusterDetail(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeClusterDetailRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeClusterDetail(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeSubscriptions(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeSubscriptionsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeSubscriptions(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteCmqSubscribe(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteCmqSubscribeRequest()
model.from_json_string(json.dumps(args))
rsp = client.DeleteCmqSubscribe(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doAcknowledgeMessage(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.AcknowledgeMessageRequest()
model.from_json_string(json.dumps(args))
rsp = client.AcknowledgeMessage(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeCmqTopicDetail(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeCmqTopicDetailRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeCmqTopicDetail(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateEnvironment(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateEnvironmentRequest()
model.from_json_string(json.dumps(args))
rsp = client.CreateEnvironment(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeProducers(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeProducersRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeProducers(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doReceiveMessage(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ReceiveMessageRequest()
model.from_json_string(json.dumps(args))
rsp = client.ReceiveMessage(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeTopics(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeTopicsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeTopics(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doClearCmqSubscriptionFilterTags(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ClearCmqSubscriptionFilterTagsRequest()
model.from_json_string(json.dumps(args))
rsp = client.ClearCmqSubscriptionFilterTags(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doSendMessages(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.SendMessagesRequest()
model.from_json_string(json.dumps(args))
rsp = client.SendMessages(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doSendCmqMsg(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.SendCmqMsgRequest()
model.from_json_string(json.dumps(args))
rsp = client.SendCmqMsg(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyCluster(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyClusterRequest()
model.from_json_string(json.dumps(args))
rsp = client.ModifyCluster(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyEnvironmentAttributes(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyEnvironmentAttributesRequest()
model.from_json_string(json.dumps(args))
rsp = client.ModifyEnvironmentAttributes(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doModifyCmqSubscriptionAttribute(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ModifyCmqSubscriptionAttributeRequest()
model.from_json_string(json.dumps(args))
rsp = client.ModifyCmqSubscriptionAttribute(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doUnbindCmqDeadLetter(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.UnbindCmqDeadLetterRequest()
model.from_json_string(json.dumps(args))
rsp = client.UnbindCmqDeadLetter(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateSubscription(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateSubscriptionRequest()
model.from_json_string(json.dumps(args))
rsp = client.CreateSubscription(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doSendBatchMessages(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.SendBatchMessagesRequest()
model.from_json_string(json.dumps(args))
rsp = client.SendBatchMessages(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeEnvironmentAttributes(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeEnvironmentAttributesRequest()
model.from_json_string(json.dumps(args))
rsp = client.DescribeEnvironmentAttributes(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateCmqSubscribe(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateCmqSubscribeRequest()
model.from_json_string(json.dumps(args))
rsp = client.CreateCmqSubscribe(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteTopics(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteTopicsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DeleteTopics(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doResetMsgSubOffsetByTimestamp(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ResetMsgSubOffsetByTimestampRequest()
model.from_json_string(json.dumps(args))
rsp = client.ResetMsgSubOffsetByTimestamp(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteSubscriptions(args, parsed_globals):
g_param = parse_global_arg(parsed_globals)
cred = credential.Credential(
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
)
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteSubscriptionsRequest()
model.from_json_string(json.dumps(args))
rsp = client.DeleteSubscriptions(model)
result = rsp.to_json_string()
try:
json_obj = json.loads(result)
except TypeError as e:
json_obj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
CLIENT_MAP = {
"v20200217": tdmq_client_v20200217,
}
MODELS_MAP = {
"v20200217": models_v20200217,
}
ACTION_MAP = {
"DeleteCmqTopic": doDeleteCmqTopic,
"DeleteEnvironments": doDeleteEnvironments,
"DescribeBindVpcs": doDescribeBindVpcs,
"CreateCluster": doCreateCluster,
"ModifyTopic": doModifyTopic,
"ClearCmqQueue": doClearCmqQueue,
"CreateCmqQueue": doCreateCmqQueue,
"ModifyCmqTopicAttribute": doModifyCmqTopicAttribute,
"ModifyCmqQueueAttribute": doModifyCmqQueueAttribute,
"CreateCmqTopic": doCreateCmqTopic,
"DescribeEnvironmentRoles": doDescribeEnvironmentRoles,
"DescribeCmqDeadLetterSourceQueues": doDescribeCmqDeadLetterSourceQueues,
"DeleteCmqQueue": doDeleteCmqQueue,
"DescribeCmqTopics": doDescribeCmqTopics,
"DeleteCluster": doDeleteCluster,
"DescribeCmqSubscriptionDetail": doDescribeCmqSubscriptionDetail,
"DescribeBindClusters": doDescribeBindClusters,
"DescribeCmqQueueDetail": doDescribeCmqQueueDetail,
"RewindCmqQueue": doRewindCmqQueue,
"DescribeClusters": doDescribeClusters,
"SendMsg": doSendMsg,
"CreateTopic": doCreateTopic,
"DescribeCmqQueues": doDescribeCmqQueues,
"PublishCmqMsg": doPublishCmqMsg,
"DescribeEnvironments": doDescribeEnvironments,
"DescribeClusterDetail": doDescribeClusterDetail,
"DescribeSubscriptions": doDescribeSubscriptions,
"DeleteCmqSubscribe": doDeleteCmqSubscribe,
"AcknowledgeMessage": doAcknowledgeMessage,
"DescribeCmqTopicDetail": doDescribeCmqTopicDetail,
"CreateEnvironment": doCreateEnvironment,
"DescribeProducers": doDescribeProducers,
"ReceiveMessage": doReceiveMessage,
"DescribeTopics": doDescribeTopics,
"ClearCmqSubscriptionFilterTags": doClearCmqSubscriptionFilterTags,
"SendMessages": doSendMessages,
"SendCmqMsg": doSendCmqMsg,
"ModifyCluster": doModifyCluster,
"ModifyEnvironmentAttributes": doModifyEnvironmentAttributes,
"ModifyCmqSubscriptionAttribute": doModifyCmqSubscriptionAttribute,
"UnbindCmqDeadLetter": doUnbindCmqDeadLetter,
"CreateSubscription": doCreateSubscription,
"SendBatchMessages": doSendBatchMessages,
"DescribeEnvironmentAttributes": doDescribeEnvironmentAttributes,
"CreateCmqSubscribe": doCreateCmqSubscribe,
"DeleteTopics": doDeleteTopics,
"ResetMsgSubOffsetByTimestamp": doResetMsgSubOffsetByTimestamp,
"DeleteSubscriptions": doDeleteSubscriptions,
}
AVAILABLE_VERSION_LIST = [
"v20200217",
]
def action_caller():
return ACTION_MAP
def parse_global_arg(parsed_globals):
g_param = parsed_globals
is_exist_profile = True
if not parsed_globals["profile"]:
is_exist_profile = False
g_param["profile"] = "default"
configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
conf = {}
cred = {}
if is_conf_exist:
conf = Utils.load_json_msg(conf_path)
if is_cred_exist:
cred = Utils.load_json_msg(cred_path)
if not (isinstance(conf, dict) and isinstance(cred, dict)):
raise ConfigurationError(
"file: %s or %s is not json format"
% (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
if OptionsDefine.Token not in cred:
cred[OptionsDefine.Token] = None
if not is_exist_profile:
if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
if os.environ.get(OptionsDefine.ENV_REGION):
conf[OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
for param in g_param.keys():
if g_param[param] is None:
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
if param in cred:
g_param[param] = cred[param]
else:
raise ConfigurationError("%s is invalid" % param)
elif param in [OptionsDefine.Region, OptionsDefine.Output]:
if param in conf:
g_param[param] = conf[param]
else:
raise ConfigurationError("%s is invalid" % param)
try:
if g_param[OptionsDefine.ServiceVersion]:
g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
else:
version = conf["tdmq"][OptionsDefine.Version]
g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
if g_param[OptionsDefine.Endpoint] is None:
g_param[OptionsDefine.Endpoint] = conf["tdmq"][OptionsDefine.Endpoint]
except Exception as err:
raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
return g_param
| 43.43694
| 105
| 0.727958
| 7,149
| 63,027
| 6.177228
| 0.037348
| 0.080705
| 0.23018
| 0.058287
| 0.849754
| 0.845701
| 0.844071
| 0.84244
| 0.840312
| 0.791219
| 0
| 0.008675
| 0.164184
| 63,027
| 1,450
| 106
| 43.466897
| 0.829629
| 0.007949
| 0
| 0.71831
| 0
| 0
| 0.040912
| 0.005794
| 0
| 0
| 0
| 0
| 0
| 1
| 0.039124
| false
| 0
| 0.00939
| 0.000782
| 0.050078
| 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
|
c8e96fecb1894a2e49c753ad89364c93fb6aab06
| 160
|
py
|
Python
|
email_tracker/tests/__init__.py
|
MagicSolutions/django-email-tracker
|
55a9ca1a958283bb94541d5fea548521cec39101
|
[
"MIT"
] | 1
|
2021-04-05T12:37:51.000Z
|
2021-04-05T12:37:51.000Z
|
email_tracker/tests/__init__.py
|
IndustriaTech/django-email-tracker
|
55a9ca1a958283bb94541d5fea548521cec39101
|
[
"MIT"
] | null | null | null |
email_tracker/tests/__init__.py
|
IndustriaTech/django-email-tracker
|
55a9ca1a958283bb94541d5fea548521cec39101
|
[
"MIT"
] | null | null | null |
import django
if django.VERSION < (1, 7):
from .test_models import * # NOQA
from .test_backend import * # NOQA
from .test_admin import * # NOQA
| 22.857143
| 39
| 0.65
| 22
| 160
| 4.590909
| 0.545455
| 0.237624
| 0.277228
| 0.356436
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016807
| 0.25625
| 160
| 6
| 40
| 26.666667
| 0.831933
| 0.0875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 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
|
740066e48ac1d21fe23291d4d94a335c3e0ad3ff
| 31,901
|
py
|
Python
|
src/transformers/data/data_collator.py
|
Tarpelite/title_generation
|
8b9a9878e42ef1217b346daf492450c3d004dd21
|
[
"MIT"
] | 1
|
2020-07-23T11:28:48.000Z
|
2020-07-23T11:28:48.000Z
|
src/transformers/data/data_collator.py
|
Tarpelite/title_generation
|
8b9a9878e42ef1217b346daf492450c3d004dd21
|
[
"MIT"
] | null | null | null |
src/transformers/data/data_collator.py
|
Tarpelite/title_generation
|
8b9a9878e42ef1217b346daf492450c3d004dd21
|
[
"MIT"
] | null | null | null |
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import Any, Dict, List, NewType, Tuple
import torch
from torch.nn.utils.rnn import pad_sequence
from ..tokenization_utils import PreTrainedTokenizer
from ..modeling_utils import PreTrainedModel
from ..data.datasets.language_modeling import MaskSelector, MaskGenerator
from tqdm import tqdm
class DataCollator(ABC):
"""
A `DataCollator` is responsible for batching
and pre-processing samples of data as requested by the training loop.
"""
@abstractmethod
def collate_batch(self) -> Dict[str, torch.Tensor]:
"""
Take a list of samples from a Dataset and collate them into a batch.
Returns:
A dictionary of tensors
"""
pass
InputDataClass = NewType("InputDataClass", Any)
@dataclass
class DefaultDataCollator(DataCollator):
"""
Very simple data collator that:
- simply collates batches of dict-like objects
- Performs special handling for potential keys named:
- `label`: handles a single value (int or float) per object
- `label_ids`: handles a list of values per object
- does not do any additional preprocessing
i.e., Property names of the input object will be used as corresponding inputs to the model.
See glue and ner for example of how it's useful.
"""
def collate_batch(self, features: List[InputDataClass]) -> Dict[str, torch.Tensor]:
# In this method we'll make the assumption that all `features` in the batch
# have the same attributes.
# So we will look at the first element as a proxy for what attributes exist
# on the whole batch.
first = features[0]
# Special handling for labels.
# Ensure that tensor is created with the correct type
# (it should be automatically the case, but let's make sure of it.)
if hasattr(first, "label") and first.label is not None:
if type(first.label) is int:
labels = torch.tensor([f.label for f in features], dtype=torch.long)
else:
labels = torch.tensor([f.label for f in features], dtype=torch.float)
batch = {"labels": labels}
elif hasattr(first, "label_ids") and first.label_ids is not None:
if type(first.label_ids[0]) is int:
labels = torch.tensor([f.label_ids for f in features], dtype=torch.long)
else:
labels = torch.tensor([f.label_ids for f in features], dtype=torch.float)
batch = {"labels": labels}
else:
batch = {}
# Handling of all other possible attributes.
# Again, we will use the first element to figure out which key/values are not None for this model.
for k, v in vars(first).items():
if k not in ("label", "label_ids") and v is not None and not isinstance(v, str):
batch[k] = torch.tensor([getattr(f, k) for f in features], dtype=torch.long)
return batch
@dataclass
class DataCollatorForLanguageModeling(DataCollator):
"""
Data collator used for language modeling.
- collates batches of tensors, honoring their tokenizer's pad_token
- preprocesses batches for masked language modeling
"""
tokenizer: PreTrainedTokenizer
mlm: bool = True
mlm_probability: float = 0.15
def collate_batch(self, examples: List[torch.Tensor]) -> Dict[str, torch.Tensor]:
batch = self._tensorize_batch(examples)
if self.mlm:
inputs, labels = self.mask_tokens(batch)
return {"input_ids": inputs, "labels": labels}
else:
return {"input_ids": batch, "labels": batch}
def _tensorize_batch(self, examples: List[torch.Tensor]) -> torch.Tensor:
length_of_first = examples[0].size(0)
are_tensors_same_length = all(x.size(0) == length_of_first for x in examples)
if are_tensors_same_length:
return torch.stack(examples, dim=0)
else:
if self.tokenizer._pad_token is None:
raise ValueError(
"You are attempting to pad samples but the tokenizer you are using"
f" ({self.tokenizer.__class__.__name__}) does not have one."
)
return pad_sequence(examples, batch_first=True, padding_value=self.tokenizer.pad_token_id)
def mask_tokens(self, inputs: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
"""
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.
"""
if self.tokenizer.mask_token is None:
raise ValueError(
"This tokenizer does not have a mask token which is necessary for masked language modeling. Remove the --mlm flag if you want to use this tokenizer."
)
labels = inputs.clone()
# We sample a few tokens in each sequence for masked-LM training (with probability args.mlm_probability defaults to 0.15 in Bert/RoBERTa)
probability_matrix = torch.full(labels.shape, self.mlm_probability)
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in labels.tolist()
]
probability_matrix.masked_fill_(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = labels.eq(self.tokenizer.pad_token_id)
probability_matrix.masked_fill_(padding_mask, value=0.0)
masked_indices = torch.bernoulli(probability_matrix).bool()
labels[~masked_indices] = -100 # We only compute loss on masked tokens
# 80% of the time, we replace masked input tokens with tokenizer.mask_token ([MASK])
indices_replaced = torch.bernoulli(torch.full(labels.shape, 0.8)).bool() & masked_indices
inputs[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
# 10% of the time, we replace masked input tokens with random word
indices_random = torch.bernoulli(torch.full(labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), labels.shape, dtype=torch.long)
inputs[indices_random] = random_words[indices_random]
# The rest of the time (10% of the time) we keep the masked input tokens unchanged
return inputs, labels
@dataclass
class DataCollatorForCheckMin(DataCollator):
tokenizer: PreTrainedTokenizer
selector: MaskSelector
def collate_batch(self, examples:List):
all_inputs = []
all_labels = []
for instance in examples:
all_inputs.append(instance["input_ids"])
sl_labels = []
mask_token_id = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
for i in instance["labels"]:
if i !=-100 :
sl_labels.append(1)
else:
sl_labels.append(0)
all_labels.append(sl_labels)
scorer_inputs = {
"input_ids":torch.stack(all_inputs, dim=0),
}
score = self.selector.score(scorer_inputs)
return score
@dataclass
class DataCollatorForCheckMaskGen(DataCollator):
tokenizer:PreTrainedTokenizer
selector: MaskSelector
generator: MaskGenerator
mlm: bool = True
mlm_probability: float = 0.15
def collate_batch(self, examples: List) -> Dict[str, torch.Tensor]:
all_input_ids = torch.tensor([instance.input_ids for instance in examples], dtype=torch.long)
all_attention_mask = torch.tensor([instance.attention_mask for instance in examples], dtype=torch.long)
all_token_type_ids = torch.tensor([instance.token_type_ids for instance in examples], dtype=torch.long)
generator_input = {
"input_ids":all_input_ids,
"attention_mask":all_attention_mask,
"token_type_ids": all_token_type_ids
}
out = self.generator.predict(generator_input).float() # out shape same as input_ids
print(out)
all_labels = all_input_ids.clone()
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in all_labels.tolist()
]
out.masked_fill(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = all_labels.eq(self.tokenizer.pad_token_id)
out.masked_fill(padding_mask, value=0.0)
masked_indices = torch.bernoulli(out).bool()
all_labels[~masked_indices] = -100
indices_replaced = torch.bernoulli(torch.full(out.shape, 0.8)).bool() & masked_indices
all_input_ids[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
indices_random = torch.bernoulli(torch.full(all_labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), all_labels.shape, dtype=torch.long)
all_input_ids[indices_random] = random_words[indices_random]
scorer_input = {
"input_ids": all_input_ids,
"attention_mask":all_attention_mask,
"token_type_ids": all_token_type_ids
}
score = self.selector.score(scorer_input)
return score
@dataclass
class DataCollatorForGAN(DataCollator):
tokenizer:PreTrainedModel
mlm:bool=True
mlm_probability: float= 0.15
def collate_batch(self, examples: List[torch.Tensor]) -> Dict[str, torch.Tensor]:
batch = self._tensorize_batch(examples)
return {"input_ids": batch}
def _tensorize_batch(self, examples: List[torch.Tensor]) -> torch.Tensor:
length_of_first = examples[0].size(0)
are_tensors_same_length = all(x.size(0) == length_of_first for x in examples)
if are_tensors_same_length:
return torch.stack(examples, dim=0)
else:
if self.tokenizer._pad_token is None:
raise ValueError(
"You are attempting to pad samples but the tokenizer you are using"
f" ({self.tokenizer.__class__.__name__}) does not have one."
)
return pad_sequence(examples, batch_first=True, padding_value=self.tokenizer.pad_token_id)
def mask_tokens(self, inputs: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
"""
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.
"""
if self.tokenizer.mask_token is None:
raise ValueError(
"This tokenizer does not have a mask token which is necessary for masked language modeling. Remove the --mlm flag if you want to use this tokenizer."
)
labels = inputs.clone()
# We sample a few tokens in each sequence for masked-LM training (with probability args.mlm_probability defaults to 0.15 in Bert/RoBERTa)
probability_matrix = torch.full(labels.shape, self.mlm_probability)
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in labels.tolist()
]
probability_matrix.masked_fill_(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = labels.eq(self.tokenizer.pad_token_id)
probability_matrix.masked_fill_(padding_mask, value=0.0)
masked_indices = torch.bernoulli(probability_matrix).bool()
labels[~masked_indices] = -100 # We only compute loss on masked tokens
# 80% of the time, we replace masked input tokens with tokenizer.mask_token ([MASK])
indices_replaced = torch.bernoulli(torch.full(labels.shape, 0.8)).bool() & masked_indices
inputs[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
# 10% of the time, we replace masked input tokens with random word
indices_random = torch.bernoulli(torch.full(labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), labels.shape, dtype=torch.long)
inputs[indices_random] = random_words[indices_random]
# The rest of the time (10% of the time) we keep the masked input tokens unchanged
return inputs, labels
@dataclass
class DataCollatorForMixLM(DataCollator):
tokenizer:PreTrainedTokenizer
mlm:bool=True
mlm_probability: float = 0.15
def collate_batch(self, examples:List) -> Dict[str, torch.Tensor]:
input_examples = [torch.tensor(x[0], dtype=torch.long) for x in examples]
all_input_ids = self._tensorize_batch(input_examples)
# all_input_ids = torch.tensor([x[0] for x in examples], dtype=torch.long)
all_domain_labels = torch.tensor([x[1] for x in examples], dtype=torch.long)
inputs, labels = self.mask_tokens(all_input_ids)
return {
"input_ids":inputs,
"labels": labels,
"next_sentence_label":all_domain_labels
}
def _tensorize_batch(self, examples: List[torch.Tensor]) -> torch.Tensor:
length_of_first = examples[0].size(0)
are_tensors_same_length = all(x.size(0) == length_of_first for x in examples)
if are_tensors_same_length:
return torch.stack(examples, dim=0)
else:
if self.tokenizer._pad_token is None:
raise ValueError(
"You are attempting to pad samples but the tokenizer you are using"
f" ({self.tokenizer.__class__.__name__}) does not have one."
)
return pad_sequence(examples, batch_first=True, padding_value=self.tokenizer.pad_token_id)
def mask_tokens(self, inputs: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
"""
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.
"""
if self.tokenizer.mask_token is None:
raise ValueError(
"This tokenizer does not have a mask token which is necessary for masked language modeling. Remove the --mlm flag if you want to use this tokenizer."
)
labels = inputs.clone()
# We sample a few tokens in each sequence for masked-LM training (with probability args.mlm_probability defaults to 0.15 in Bert/RoBERTa)
probability_matrix = torch.full(labels.shape, self.mlm_probability)
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in labels.tolist()
]
probability_matrix.masked_fill_(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = labels.eq(self.tokenizer.pad_token_id)
probability_matrix.masked_fill_(padding_mask, value=0.0)
masked_indices = torch.bernoulli(probability_matrix).bool()
labels[~masked_indices] = -100 # We only compute loss on masked tokens
# 80% of the time, we replace masked input tokens with tokenizer.mask_token ([MASK])
indices_replaced = torch.bernoulli(torch.full(labels.shape, 0.8)).bool() & masked_indices
inputs[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
# 10% of the time, we replace masked input tokens with random word
indices_random = torch.bernoulli(torch.full(labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), labels.shape, dtype=torch.long)
inputs[indices_random] = random_words[indices_random]
# The rest of the time (10% of the time) we keep the masked input tokens unchanged
return inputs, labels
@dataclass
class DataCollatorForWeightedLanguageModeling(DataCollator):
tokenizer: PreTrainedTokenizer
mlm: bool = True
mlm_probability: float = 0.15
weighted_vocab: list = None
def collate_batch(self, examples:List[torch.Tensor]) -> torch.Tensor :
batch = self._tensorize_batch(examples)
if self.mlm:
inputs, labels = self.mask_tokens(batch)
return {"input_ids": inputs, "labels":labels}
else:
return {"input_ids": batch, "labels":labels}
def _tensorize_batch(self, examples: List[torch.Tensor]) -> torch.Tensor :
length_of_first = examples[0].size(0)
are_tensors_same_length = all(x.size(0) == length_of_first for x in examples)
if are_tensors_same_length:
return torch.stack(examples, dim=0)
else:
if self.tokenizer._pad_token is None:
raise ValueError(
"You are attempting to pad samples but the tokenizer you are using"
f" ({self.tokenizer.__class__.__name__}) does not have one."
)
return pad_sequence(examples, batch_first=True, padding_value=self.tokenizer.pad_token_id)
def mask_tokens(self, inputs:torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
if self.tokenizer.mask_token is None:
raise ValueError(
"This tokenizer does not have a mask token which is necessary for masked language modeling. Remove the --mlm flag if you want to use this tokenizer."
)
labels = inputs.clone() #[batch, seq_len]
probability_matrix = torch.full(labels.shape, self.mlm_probability)
# Inevitable O(n^2) index
for i in range(len(inputs)):
probs = []
for j in range(len(inputs[i])):
input_id = int(inputs[i][j])
probs.append( 1.0000 + float(self.weighted_vocab[input_id])) # not negative
sum_prob = sum(probs)
weighted_probs = []
for j in range(len(inputs[i])):
weighted_prob= (probs[j]*len(inputs[i])*1.000/sum_prob) * self.mlm_probability
probability_matrix[i][j] = weighted_prob
weighted_probs.append(weighted_prob)
# print("max_prob:{} min_prob:{}".format(max(weighted_probs), min(weighted_probs)))
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in labels.tolist()
]
probability_matrix.masked_fill_(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = labels.eq(self.tokenizer.pad_token_id)
probability_matrix.masked_fill_(padding_mask, value=0.0)
masked_indices = torch.bernoulli(probability_matrix).bool()
labels[~masked_indices] = -100 # We only compute loss on masked tokens
# 80% of the time, we replace masked input tokens with tokenizer.mask_token ([MASK])
indices_replaced = torch.bernoulli(torch.full(labels.shape, 0.8)).bool() & masked_indices
inputs[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
# 10% of the time, we replace masked input tokens with random word
indices_random = torch.bernoulli(torch.full(labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), labels.shape, dtype=torch.long)
inputs[indices_random] = random_words[indices_random]
# The rest of the time (10% of the time) we keep the masked input tokens unchanged
return inputs, labels
@dataclass
class DataCollatorForTrainGen(DataCollator):
tokenizer: PreTrainedTokenizer
def collate_batch(self, examples:List) -> Dict[str, torch.Tensor]:
all_inputs = []
all_labels = []
for instance in examples:
all_inputs.append(instance["input_ids"])
sl_labels = []
mask_token_id = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
for i in instance["labels"]:
if i !=-100 :
sl_labels.append(1)
else:
sl_labels.append(0)
all_labels.append(sl_labels)
return {
"input_ids":torch.stack(all_inputs, dim=0),
"labels":torch.tensor(all_labels, dtype=torch.long)
}
@dataclass
class DataCollatorForMaskGen(DataCollator):
tokenizer: PreTrainedTokenizer
generator: MaskGenerator
mlm: bool = True
mlm_probability: float = 0.15
def collate_batch(self, examples:List) -> Dict[str, torch.Tensor]:
all_input_ids = torch.tensor([instance.input_ids for instance in examples], dtype=torch.long)
all_attention_mask = torch.tensor([instance.attention_mask for instance in examples], dtype=torch.long)
all_token_type_ids = torch.tensor([instance.token_type_ids for instance in examples], dtype=torch.long)
generator_input = {
"input_ids":all_input_ids,
"attention_mask":all_attention_mask,
"token_type_ids": all_token_type_ids
}
out = self.generator.predict(generator_input).float() # out shape same as input_ids
print(out)
all_labels = all_input_ids.clone()
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in all_labels.tolist()
]
out.masked_fill(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = all_labels.eq(self.tokenizer.pad_token_id)
out.masked_fill(padding_mask, value=0.0)
masked_indices = torch.bernoulli(out).bool()
all_labels[~masked_indices] = -100
indices_replaced = torch.bernoulli(torch.full(out.shape, 0.8)).bool() & masked_indices
all_input_ids[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
indices_random = torch.bernoulli(torch.full(all_labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), all_labels.shape, dtype=torch.long)
all_input_ids[indices_random] = random_words[indices_random]
return {
"input_ids":all_input_ids,
"labels":all_labels
}
@dataclass
class DataCollatorForDistillLM(DataCollator):
tokenizer: PreTrainedTokenizer
selector : MaskSelector
mlm_sample_times: int = 16
mlm: bool = True
mlm_probability: float = 0.15
def collate_batch(self, examples: List) -> Dict[str, torch.Tensor]:
all_inputs = []
all_attention_mask = []
all_token_type_ids = []
all_labels = []
for instance in examples:
batch = {}
for k,v in vars(instance).items():
batch[k] = torch.tensor([getattr(instance, k) for _ in range(self.mlm_sample_times)], dtype=torch.long)
inputs, labels = self.mask_tokens(batch["input_ids"])
selector_input = {
"input_ids":inputs,
"attention_mask":batch["attention_mask"],
"token_type_ids":batch["token_type_ids"],
}
out = self.selector.predict(selector_input)
selected_instance = inputs[out] #[seq_len]
# show examples
selected_inputs = selected_instance.detach().cpu().numpy()
selected_labels = labels[out].detach().cpu().numpy()
# convert to sequence labelling
# print(selected_instance.shape)
sl_labels = []
mask_token_id = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
# print(mask_token_id)
for i in selected_inputs:
if i == mask_token_id:
sl_labels.append(1)
else:
sl_labels.append(0)
all_inputs.append(instance.input_ids)
all_attention_mask.append(instance.attention_mask)
all_token_type_ids.append(instance.token_type_ids)
all_labels.append(sl_labels)
return {
"input_ids":torch.tensor(all_inputs, dtype=torch.long),
"attention_mask":torch.tensor(all_attention_mask, dtype=torch.long),
"token_type_ids":torch.tensor(all_token_type_ids, dtype=torch.long),
"labels": torch.tensor(all_labels, dtype=torch.long)
}
def mask_tokens(self, inputs: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
"""
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.
"""
if self.tokenizer.mask_token is None:
raise ValueError(
"This tokenizer does not have a mask token which is necessary for masked language modeling. Remove the --mlm flag if you want to use this tokenizer."
)
labels = inputs.clone()
# We sample a few tokens in each sequence for masked-LM training (with probability args.mlm_probability defaults to 0.15 in Bert/RoBERTa)
probability_matrix = torch.full(labels.shape, self.mlm_probability)
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in labels.tolist()
]
probability_matrix.masked_fill_(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = labels.eq(self.tokenizer.pad_token_id)
probability_matrix.masked_fill_(padding_mask, value=0.0)
masked_indices = torch.bernoulli(probability_matrix).bool()
labels[~masked_indices] = -100 # We only compute loss on masked tokens
# 80% of the time, we replace masked input tokens with tokenizer.mask_token ([MASK])
indices_replaced = torch.bernoulli(torch.full(labels.shape, 0.8)).bool() & masked_indices
inputs[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
# 10% of the time, we replace masked input tokens with random word
indices_random = torch.bernoulli(torch.full(labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), labels.shape, dtype=torch.long)
inputs[indices_random] = random_words[indices_random]
# The rest of the time (10% of the time) we keep the masked input tokens unchanged
return inputs, labels
def _tensorize_batch(self, examples: List[torch.Tensor]) -> torch.Tensor:
length_of_first = examples[0].size(0)
are_tensors_same_length = all(x.size(0) == length_of_first for x in examples)
if are_tensors_same_length:
return torch.stack(examples, dim=0)
else:
if self.tokenizer._pad_token is None:
raise ValueError(
"You are attempting to pad samples but the tokenizer you are using"
f" ({self.tokenizer.__class__.__name__}) does not have one."
)
return pad_sequence(examples, batch_first=True, padding_value=self.tokenizer.pad_token_id)
@dataclass
class DataCollatorForSelectLM(DataCollator):
"""
Data collator used for language modeling.
- collates batches of tensors, honoring their tokenizer's pad_token
- preprocesses batches for masked language modeling
"""
tokenizer: PreTrainedTokenizer
selector: MaskSelector
mlm_sample_times: int = 1
mlm: bool = True
mlm_probability: float = 0.15
def collate_batch(self, examples: List) -> Dict[str, torch.Tensor]:
# batch = self._tensorize_batch(examples)
all_inputs = []
all_labels = []
for instance in examples:
batch = {}
for k, v in vars(instance).items():
batch[k] = torch.tensor([getattr(instance, k) for _ in range(self.mlm_sample_times)], dtype=torch.long)
inputs, labels = self.mask_tokens(batch["input_ids"])
selector_input = {
"input_ids":inputs,
"attention_mask":batch["attention_mask"],
"token_type_ids":batch["token_type_ids"],
}
out = self.selector.predict(selector_input)
selected_instance = batch["input_ids"][out]
# show examples
selected_inputs = selected_instance.detach().cpu().numpy()
selected_labels = labels[0].detach().cpu().numpy()
all_inputs.append(selected_instance)
all_labels.append(labels[0])
return {
"input_ids":torch.stack(all_inputs, dim=0),
"labels": torch.stack(all_labels, dim=0)
}
def _tensorize_batch(self, examples: List[torch.Tensor]) -> torch.Tensor:
length_of_first = examples[0].size(0)
are_tensors_same_length = all(x.size(0) == length_of_first for x in examples)
if are_tensors_same_length:
return torch.stack(examples, dim=0)
else:
if self.tokenizer._pad_token is None:
raise ValueError(
"You are attempting to pad samples but the tokenizer you are using"
f" ({self.tokenizer.__class__.__name__}) does not have one."
)
return pad_sequence(examples, batch_first=True, padding_value=self.tokenizer.pad_token_id)
def mask_tokens(self, inputs: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
"""
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original.
"""
if self.tokenizer.mask_token is None:
raise ValueError(
"This tokenizer does not have a mask token which is necessary for masked language modeling. Remove the --mlm flag if you want to use this tokenizer."
)
labels = inputs.clone()
# We sample a few tokens in each sequence for masked-LM training (with probability args.mlm_probability defaults to 0.15 in Bert/RoBERTa)
probability_matrix = torch.full(labels.shape, self.mlm_probability)
special_tokens_mask = [
self.tokenizer.get_special_tokens_mask(val, already_has_special_tokens=True) for val in labels.tolist()
]
probability_matrix.masked_fill_(torch.tensor(special_tokens_mask, dtype=torch.bool), value=0.0)
if self.tokenizer._pad_token is not None:
padding_mask = labels.eq(self.tokenizer.pad_token_id)
probability_matrix.masked_fill_(padding_mask, value=0.0)
masked_indices = torch.bernoulli(probability_matrix).bool()
labels[~masked_indices] = -100 # We only compute loss on masked tokens
# 80% of the time, we replace masked input tokens with tokenizer.mask_token ([MASK])
indices_replaced = torch.bernoulli(torch.full(labels.shape, 0.8)).bool() & masked_indices
inputs[indices_replaced] = self.tokenizer.convert_tokens_to_ids(self.tokenizer.mask_token)
# 10% of the time, we replace masked input tokens with random word
indices_random = torch.bernoulli(torch.full(labels.shape, 0.5)).bool() & masked_indices & ~indices_replaced
random_words = torch.randint(len(self.tokenizer), labels.shape, dtype=torch.long)
inputs[indices_random] = random_words[indices_random]
# The rest of the time (10% of the time) we keep the masked input tokens unchanged
return inputs, labels
| 44.123098
| 165
| 0.657973
| 4,060
| 31,901
| 4.971429
| 0.073645
| 0.050238
| 0.022196
| 0.029132
| 0.849881
| 0.835067
| 0.827636
| 0.821195
| 0.804102
| 0.797761
| 0
| 0.010589
| 0.251027
| 31,901
| 722
| 166
| 44.184211
| 0.834177
| 0.146704
| 0
| 0.763265
| 0
| 0.012245
| 0.080502
| 0.008251
| 0
| 0
| 0
| 0
| 0
| 1
| 0.04898
| false
| 0.002041
| 0.018367
| 0
| 0.226531
| 0.004082
| 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
|
cdb249ed05f8300de6e539debc29853093859b65
| 717
|
py
|
Python
|
intake/catalog/tests/test_utils.py
|
danielballan/intake
|
5a70b7981b76717203f8f5ba74c0aea345405c8c
|
[
"BSD-2-Clause"
] | null | null | null |
intake/catalog/tests/test_utils.py
|
danielballan/intake
|
5a70b7981b76717203f8f5ba74c0aea345405c8c
|
[
"BSD-2-Clause"
] | null | null | null |
intake/catalog/tests/test_utils.py
|
danielballan/intake
|
5a70b7981b76717203f8f5ba74c0aea345405c8c
|
[
"BSD-2-Clause"
] | null | null | null |
from .. import utils
def test_expand_templates():
pars = {'a': "{{par}} hi"}
context = {'b': 1, 'par': 'ho'}
assert utils.expand_templates(pars, context)['a'] == 'ho hi'
assert utils.expand_templates(pars, context, True)[1] == {'b'}
def test_expand_nested_template():
pars = {'a': ["{{par}} hi"]}
context = {'b': 1, 'par': 'ho'}
assert utils.expand_templates(pars, context)['a'] == ['ho hi']
assert utils.expand_templates(pars, context, True)[1] == {'b'}
pars = {'a': {'k': {("{{par}} hi", )}}}
context = {'b': 1, 'par': 'ho'}
assert utils.expand_templates(pars, context)['a'] == {'k': {("ho hi", )}}
assert utils.expand_templates(pars, context, True)[1] == {'b'}
| 34.142857
| 77
| 0.563459
| 95
| 717
| 4.136842
| 0.210526
| 0.267176
| 0.338422
| 0.396947
| 0.819338
| 0.819338
| 0.819338
| 0.819338
| 0.819338
| 0.819338
| 0
| 0.010292
| 0.18689
| 717
| 20
| 78
| 35.85
| 0.663808
| 0
| 0
| 0.4
| 0
| 0
| 0.103208
| 0
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0.133333
| false
| 0
| 0.066667
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
cdcfedf06a7d46ec18510d1f96506e94ba911a46
| 1,499
|
py
|
Python
|
utils/listfile_reader.py
|
Cogito2012/3DFaceRecon
|
8119b93165033713e06145d0135ec9d26efe634b
|
[
"Apache-2.0"
] | 20
|
2019-02-23T13:22:28.000Z
|
2022-01-14T13:55:34.000Z
|
utils/listfile_reader.py
|
dafuny/3DFaceRecon
|
8119b93165033713e06145d0135ec9d26efe634b
|
[
"Apache-2.0"
] | 1
|
2019-08-12T07:30:25.000Z
|
2019-08-12T07:30:25.000Z
|
utils/listfile_reader.py
|
Cogito2012/3DFaceRecon
|
8119b93165033713e06145d0135ec9d26efe634b
|
[
"Apache-2.0"
] | 6
|
2018-11-23T17:14:40.000Z
|
2022-01-14T13:55:35.000Z
|
import os
def read_listfile_trainval(dataset_path, filename):
'''File reader for list in train and val
:param dataset_path:
:param filename:
:return: imagefiles and label files
'''
listfile = os.path.join(dataset_path, filename)
f = open(listfile)
strline = f.readline()
imgfile_results = []
labelfile_results = []
while strline:
strline = strline.strip('.txt\n')
if strline == '':
break
imgfile_abspath = os.path.join(dataset_path, 'face_images', strline + '.jpg')
imgfile_results.append(imgfile_abspath)
labelfile_abspath = os.path.join(dataset_path, 'labels', strline + '.txt')
labelfile_results.append(labelfile_abspath)
# read the next line
strline = f.readline()
f.close()
return imgfile_results, labelfile_results
def read_listfile_test(dataset_path, filename):
'''File reader for list in test
:param dataset_path:
:param filename:
:return: imagefiles and label files
'''
listfile = os.path.join(dataset_path, filename)
f = open(listfile)
strline = f.readline()
imgfile_results = []
while strline:
strline = strline.strip('.txt\n')
if strline == '':
break
imgfile_abspath = os.path.join(dataset_path, 'face_images', strline + '.jpg')
imgfile_results.append(imgfile_abspath)
# read the next line
strline = f.readline()
f.close()
return imgfile_results
| 29.98
| 85
| 0.640427
| 175
| 1,499
| 5.314286
| 0.268571
| 0.106452
| 0.053763
| 0.091398
| 0.843011
| 0.843011
| 0.812903
| 0.812903
| 0.731183
| 0.731183
| 0
| 0
| 0.252835
| 1,499
| 50
| 86
| 29.98
| 0.830357
| 0.170113
| 0
| 0.75
| 0
| 0
| 0.043369
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0625
| false
| 0
| 0.03125
| 0
| 0.15625
| 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
|
cdf1f881637633eb6a11fa52b16701a16410a614
| 88
|
py
|
Python
|
tests/float/complex_attr.py
|
iotctl/pycopy
|
eeb841afea61b19800d054b3b289729665fc9aa4
|
[
"MIT"
] | 663
|
2018-12-30T00:17:59.000Z
|
2022-03-14T05:03:41.000Z
|
tests/float/complex_attr.py
|
iotctl/pycopy
|
eeb841afea61b19800d054b3b289729665fc9aa4
|
[
"MIT"
] | 41
|
2019-06-06T08:31:19.000Z
|
2022-02-13T16:53:41.000Z
|
tests/float/complex_attr.py
|
iotctl/pycopy
|
eeb841afea61b19800d054b3b289729665fc9aa4
|
[
"MIT"
] | 60
|
2019-06-01T04:25:00.000Z
|
2022-02-25T01:47:31.000Z
|
# fmt: off
print(2.2j.real)
print(2.2j.imag)
print(1.1+0.5j.real)
print(1.1+0.5j.imag)
| 12.571429
| 20
| 0.659091
| 22
| 88
| 2.636364
| 0.454545
| 0.206897
| 0.275862
| 0.275862
| 0.344828
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 0.090909
| 88
| 6
| 21
| 14.666667
| 0.575
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 1
|
0
| 7
|
a829b4ddbc5f6a9c396b32ae2efbe504839836b8
| 37,510
|
py
|
Python
|
tests/test_services/test_validation/test_rules.py
|
john-james-ai/ml-studio
|
2230fcd6579d2291c761e559ec93b18ddd7a96e6
|
[
"BSD-3-Clause"
] | 1
|
2020-01-30T09:37:00.000Z
|
2020-01-30T09:37:00.000Z
|
tests/test_services/test_validation/test_rules.py
|
john-james-ai/ml-studio
|
2230fcd6579d2291c761e559ec93b18ddd7a96e6
|
[
"BSD-3-Clause"
] | 3
|
2019-12-05T19:37:59.000Z
|
2020-03-31T05:49:53.000Z
|
tests/test_services/test_validation/test_rules.py
|
john-james-ai/ml-studio
|
2230fcd6579d2291c761e559ec93b18ddd7a96e6
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# =========================================================================== #
# Project: ML Studio #
# Version: 0.1.14 #
# File: \test_rules.py #
# Python Version: 3.7.3 #
# --------------- #
# Author: John James #
# Company: Decision Scients #
# Email: jjames@decisionscients.com #
# --------------- #
# Create Date: Saturday December 28th 2019, 8:04:47 pm #
# Last Modified: Sunday December 29th 2019, 8:01:34 pm #
# Modified By: John James (jjames@decisionscients.com) #
# --------------- #
# License: Modified BSD #
# Copyright (c) 2019 Decision Scients #
# =========================================================================== #
from collections import OrderedDict
import numpy as np
import pandas as pd
import pytest
from pytest import mark
from ml_studio.services.validation.rules import Rule, RuleSet
class SyntacticRuleTests:
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_none
def test_validation_rules_none(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('a_n')\
.is_none\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of none rule"
# Evaluates to true
answer = rule.on(test_object)\
.when('a_xn')\
.is_none\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of none rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_not_none
def test_validation_rules_not_none(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('a_n')\
.is_not_none\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of not none rule"
# Evaluates to false
answer = rule.on(test_object)\
.when('a_xn')\
.is_not_none\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of not none rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_empty
def test_validation_rules_empty(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('e')\
.is_empty\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of empty rule"
# Evaluates to false
answer = rule.on(test_object)\
.when('s')\
.is_empty\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of empty rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_not_empty
def test_validation_rules_not_empty(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('e')\
.is_not_empty\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of not empty rule"
# Evaluates to false
answer = rule.on(test_object)\
.when('s')\
.is_not_empty\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of not empty rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_bool
def test_validation_rules_bool(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('b')\
.is_bool\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of bool rule"
# Evaluates to false
answer = rule.on(test_object)\
.when('s')\
.is_bool\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of bool rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_integer
def test_validation_rules_integer(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('i')\
.is_integer\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of integer rule"
# Evaluates to false
answer = rule.on(test_object)\
.when('s')\
.is_integer\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of integer rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_number
def test_validation_rules_number(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('f')\
.is_number\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of number rule"
# Evaluates to false
answer = rule.on(test_object)\
.when('s')\
.is_number\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of number rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_syntactic
@mark.validation_rules_string
def test_validation_rules_string(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true
answer = rule.on(test_object)\
.when('a_s')\
.is_string\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of string rule"
# Evaluates to false
answer = rule.on(test_object)\
.when('a_l')\
.is_string\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of string rule"
class SemanticRuleTests:
@mark.validation
@mark.validation_rules
@mark.validation_rules_equal
@mark.validation_rules_semantic
@mark.validation_rules_equal_number
def test_validation_rules_equal_number(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('i')\
.is_equal(5)\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('a_g')\
.is_equal(50)\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_ge')\
.is_equal('a_g')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('f')\
.is_equal('i')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_equal
@mark.validation_rules_semantic
@mark.validation_rules_equal_string
def test_validation_rules_equal_string(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('s')\
.is_equal("hats")\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('s')\
.is_equal("fott")\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_equal('a_s')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_equal('a_sg')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_not_equal
@mark.validation_rules_semantic
@mark.validation_rules_not_equal_number
def test_validation_rules_not_equal_number(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('i')\
.is_not_equal(6)\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of not_equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('i')\
.is_not_equal(5)\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of not_equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('f')\
.is_not_equal('i')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of not_equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_ge')\
.is_not_equal('a_g')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of not_equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_not_equal
@mark.validation_rules_semantic
@mark.validation_rules_not_equal_string
def test_validation_rules_not_equal_string(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('s')\
.is_not_equal("disc")\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of not_equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('s')\
.is_not_equal('hats')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of not_equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_not_equal('a_sg')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of not_equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_not_equal('a_s')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of not_equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_less
@mark.validation_rules_semantic
@mark.validation_rules_less_numbers
def test_validation_rules_less_numbers(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('i')\
.is_less(6)\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of less rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('a_g')\
.is_less(4)\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of less rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('f')\
.is_less('i')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of less rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('i')\
.is_less('f')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of less rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_less
@mark.validation_rules_semantic
@mark.validation_rules_less_strings
def test_validation_rules_less_strings(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('s')\
.is_less('z')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of less rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('s')\
.is_less('a')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of less rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('s')\
.is_less('z')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of less rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('s')\
.is_less('a_s')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of less rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_less_equal
@mark.validation_rules_semantic
@mark.validation_rules_less_equal_numbers
def test_validation_rules_less_equal_numbers(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('i')\
.is_less_equal(5)\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of less_equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('a_g')\
.is_less_equal(7)\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of less_equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_g')\
.is_less_equal('a_ge')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of less_equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_ge')\
.is_less_equal('a_le')\
.evaluate\
.is_valid
assert answer is False, "Invalid evaluation of less_equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_less_equal
@mark.validation_rules_semantic
@mark.validation_rules_less_equal_strings
def test_validation_rules_less_equal_strings(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('s')\
.is_less_equal('hats')\
.evaluate\
.is_valid
assert answer is True, "Invalid evaluation of less_equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('s')\
.is_less_equal('a')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of less_equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_less_equal('a_s')\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of less_equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_less_equal('s')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of less_equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_greater
@mark.validation_rules_semantic
@mark.validation_rules_greater_numbers
def test_validation_rules_greater_numbers(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('i')\
.is_greater(3)\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('a_g')\
.is_greater(3)\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('i')\
.is_greater('f')\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('f')\
.is_greater('i')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_greater
@mark.validation_rules_semantic
@mark.validation_rules_greater_strings
def test_validation_rules_greater_strings(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('s')\
.is_greater('a')\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('s')\
.is_greater('z')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_sg')\
.is_greater('a_s')\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_greater('a_sg')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_greater_equal
@mark.validation_rules_semantic
@mark.validation_rules_greater_equal_numbers
def test_validation_rules_greater_equal_numbers(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('i')\
.is_greater_equal(5)\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater_equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('a_g')\
.is_greater_equal(50)\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater_equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_g')\
.is_greater_equal('a_ge')\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater_equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_le')\
.is_greater_equal('a_ge')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater_equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_greater_equal
@mark.validation_rules_semantic
@mark.validation_rules_greater_equal_strings
def test_validation_rules_greater_equal_strings(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('s')\
.is_greater_equal("hats")\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater_equal rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('s')\
.is_greater_equal('z')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater_equal rule"
# Evaluates to true with attribute
answer = rule.on(test_object)\
.when('a_sg')\
.is_greater_equal('a_s')\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of greater_equal rule"
# Evaluates to false with attribute
answer = rule.on(test_object)\
.when('a_s')\
.is_greater_equal('a_sg')\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of greater_equal rule"
@mark.validation
@mark.validation_rules
@mark.validation_rules_semantic
@mark.validation_rules_match
def test_validation_rules_match(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
rule = Rule()
# Evaluates to true with constant
answer = rule.on(test_object)\
.when('a_s')\
.is_match("[a-zA-Z]+")\
.evaluate.is_valid
assert answer is True, "Invalid evaluation of match rule"
# Evaluates to false with constant
answer = rule.on(test_object)\
.when('a_s')\
.is_match("[0-9]+")\
.evaluate.is_valid
assert answer is False, "Invalid evaluation of match rule"
class RuleSetTests:
@mark.validation
@mark.validation_rules
@mark.validation_rules_semantic
@mark.validation_rules_set
@mark.validation_rules_set_and
def test_validation_rules_set_and(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
# Create True
rule1 = Rule().on(test_object)\
.when('i')\
.is_equal(5)
assert rule1.evaluate.is_valid is True, "Failed Rule 1 before assigning to set."
# Create another True rule
rule2 = Rule().on(test_object)\
.when('a_ge')\
.is_equal('a_g')
assert rule2.evaluate.is_valid is True, "Failed Rule 2 before assigning to set."
# Create a false rule
rule3 = Rule().on(test_object)\
.when('a_g')\
.is_equal(50)
assert rule3.evaluate.is_valid is False, "Failed Rule 3 before assigning to set."
# Create another false rule
rule4 = Rule().on(test_object)\
.when('a_g')\
.is_greater(50)
assert rule4.evaluate.is_valid is False, "Failed Rule 4 before assigning to set."
# Create True/True rule set where all must be true
rs = RuleSet()
rs.when_all_rules_are_true
rs.add_rule(rule1).add_rule(rule2)
# Check evaluation
answer = rs.evaluate.is_valid
assert answer is True, "Invalid evaluation of rules 1 and 2"
# Create True/False rule set where all must be true
rs.remove_rule(rule2).add_rule(rule3)
# Check evaluation
answer = rs.evaluate.is_valid
assert answer is False, "Invalid evaluation of rules 1 and 3"
# Create False/False rule where all must be true
rs.remove_rule(rule3).add_rule(rule4)
# Check evaluation
answer = rs.evaluate.is_valid
assert answer is False, "Invalid evaluation of rules 1 and 4"
@mark.validation
@mark.validation_rules
@mark.validation_rules_semantic
@mark.validation_rules_set
@mark.validation_rules_set_or
def test_validation_rules_set_or(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
# Create True
rule1 = Rule().on(test_object)\
.when('i')\
.is_equal(5)
# Create another True rule
rule2 = Rule().on(test_object)\
.when('a_ge')\
.is_equal('a_g')
# Create a false rule
rule3 = Rule().on(test_object)\
.when('a_g')\
.is_equal(50)
# Create another false rule
rule4 = Rule().on(test_object)\
.when('a_g')\
.is_greater(50)
# Create True/True rule set where all must be true
rs = RuleSet()
rs.when_any_rule_is_true
rs.add_rule(rule1)
rs.add_rule(rule2)
answer = rs.evaluate.is_valid
assert answer is True, "Invalid evaluation of rules 1 and 2"
# Create True/False rule set where all must be true
rs.remove_rule(rule2)
rs.add_rule(rule3)
answer = rs.evaluate.is_valid
rs.print_rule_set
assert answer is True, "Invalid evaluation of rules 1 and 3"
# Create False/False rule where all must be true
rs.remove_rule(rule1)
rs.add_rule(rule4)
answer = rs.evaluate.is_valid
rs.print_rule_set
assert answer is False, "Invalid evaluation of rules 3 and 4"
@mark.validation
@mark.validation_rules
@mark.validation_rules_semantic
@mark.validation_rules_set
@mark.validation_rules_set_none
def test_validation_rules_set_none(self, get_validation_rule_test_object):
test_object = get_validation_rule_test_object
# Create True
rule1 = Rule().on(test_object)\
.when('i')\
.is_equal(5)
# Create another True rule
rule2 = Rule().on(test_object)\
.when('a_ge')\
.is_equal('a_g')
# Create a false rule
rule3 = Rule().on(test_object)\
.when('a_g')\
.is_equal(50)
# Create another false rule
rule4 = Rule().on(test_object)\
.when('a_g')\
.is_greater(50)
# Create True/True rule set where all must be true
rs = RuleSet()
rs.when_no_rules_are_true
rs.add_rule(rule1)
rs.add_rule(rule2)
answer = rs.evaluate.is_valid
assert answer is False, "Invalid evaluation of rules 1 and 2"
# Create True/False rule set where all must be true
rs.remove_rule(rule2)
rs.add_rule(rule3)
answer = rs.evaluate.is_valid
rs.print_rule_set
assert answer is False, "Invalid evaluation of rules 1 and 3"
# Create False/False rule where all must be true
rs.remove_rule(rule1)
rs.add_rule(rule4)
answer = rs.evaluate.is_valid
rs.print_rule_set
assert answer is True, "Invalid evaluation of rules 3 and 4"
class ChildNodeTests:
@mark.validation
@mark.validation_rules
@mark.validation_rules_printing
def test_validation_rules_printing(self, get_validation_rule_test_object):
"""Testing propagation of data down through child nodes."""
test_object = get_validation_rule_test_object
# Create some rules
# True Test Rule
rule1 = Rule().on(test_object)\
.when('i')\
.is_equal(5)
# Create another True rule
rule2 = Rule().on(test_object)\
.when('a_ge')\
.is_equal('a_g')
# Create a false rule
rule3 = Rule().on(test_object)\
.when('a_g')\
.is_equal(50)
# Create another false rule
rule4 = Rule().on(test_object)\
.when('a_g')\
.is_greater(50)
# Add 1 and 2 to a new Rule Set
rs1 = RuleSet()
rs1.add_rule(rule1).add_rule(rule2)
# Add RS1 and rules 3 and 4 to new RuleSet
rs2 = RuleSet()
rs2.add_rule(rs1).add_rule(rule3).add_rule(rule4)
rs2.when_no_rules_are_true
# Print to see how it looks in the hierarchy
rs2.print_rule_set
@mark.validation
@mark.validation_rules
@mark.validation_rules_propagation
def test_validation_rules_propagation(self, get_validation_rule_test_object):
"""Testing propagation of data down through child nodes."""
test_object = get_validation_rule_test_object
# Create some rules
# True Test Rule
rule1 = Rule().on(test_object)\
.when('i')\
.is_equal(5)
# Create another True rule
rule2 = Rule().on(test_object)\
.when('a_ge')\
.is_equal('a_g')
# Create a false rule
rule3 = Rule().on(test_object)\
.when('a_g')\
.is_equal(50)
# Create another false rule
rule4 = Rule().on(test_object)\
.when('a_g')\
.is_greater(50)
# Add 1 and 2 to a new Rule Set
rs1 = RuleSet()
rs1.add_rule(rule1).add_rule(rule2)
# Add RS1 and rules 3 and 4 to new RuleSet
rs2 = RuleSet()
rs2.add_rule(rs1).add_rule(rule3).add_rule(rule4)
rs2.when_no_rules_are_true
# Set the target object and attribute
rs2.on(test_object)
rs2.attribute('a_g')
# Traverse through confirming updates
def traverse(rule):
assert rule._evaluated_instance == test_object, "Test object not set"
assert rule._evaluated_attribute == "a_g", "Attribute not set"
if isinstance(rule, RuleSet):
for _,rule in rule._rules.items():
return traverse(rule)
else:
assert rule._evaluated_instance == test_object, "Test object not set"
assert rule._evaluated_attribute == "a_g", "Attribute not set"
traverse(rs2)
class ErrorHandlingTests:
@mark.validation
@mark.validation_rules
@mark.validation_rules_error_handling
def test_validation_rules_error_handling(self, get_validation_rule_test_object):
"""Testing propagation of data down through child nodes."""
test_object = get_validation_rule_test_object
# Indicate action on error
rule = Rule().on(test_object)\
.when('i')\
.is_equal(5)\
.on_fail_report_error
assert rule._action_on_fail == "report", "Action assignment failed"
# Report Error Message ForRule
rule.error_message = "Dangerous for i to be 5."
assert "Dangerous" in rule._error_message, "Error message assignment didn't work"
| 41.174533
| 115
| 0.517755
| 3,880
| 37,510
| 4.749742
| 0.051289
| 0.093874
| 0.095881
| 0.075533
| 0.925172
| 0.904878
| 0.88046
| 0.87129
| 0.858972
| 0.854957
| 0
| 0.007887
| 0.405119
| 37,510
| 910
| 116
| 41.21978
| 0.818007
| 0.127779
| 0
| 0.779944
| 0
| 0
| 0.099303
| 0
| 0
| 0
| 0
| 0
| 0.118384
| 1
| 0.038997
| false
| 0
| 0.008357
| 0
| 0.05571
| 0.009749
| 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
|
a835b3a0fe0b91d909994bb3a31bf6bbc284740e
| 111
|
py
|
Python
|
mnsim_noc/Wire/__init__.py
|
godfather991/MNSIM_NoC
|
402680ad72c46c2a0b040b5fa52232807d554aec
|
[
"MIT"
] | null | null | null |
mnsim_noc/Wire/__init__.py
|
godfather991/MNSIM_NoC
|
402680ad72c46c2a0b040b5fa52232807d554aec
|
[
"MIT"
] | 3
|
2021-11-01T15:43:20.000Z
|
2021-11-09T03:49:06.000Z
|
mnsim_noc/Wire/__init__.py
|
ILTShade/MNSIM_NoC
|
8fa4580cce0ef113b473dd22662748846ec6b45a
|
[
"MIT"
] | null | null | null |
#-*-coding:utf-8-*-
# from mnsim_noc.Wire.base_wire import BaseWire
from mnsim_noc.Wire.wire_net import WireNet
| 37
| 47
| 0.792793
| 19
| 111
| 4.421053
| 0.631579
| 0.214286
| 0.285714
| 0.380952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009804
| 0.081081
| 111
| 3
| 48
| 37
| 0.813725
| 0.576577
| 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
|
b520d4c31735ef49ae046985be5690513a59d3a7
| 12,289
|
py
|
Python
|
tests/test_recursive.py
|
Skar0/generalizedparity
|
a29e08a637d8a957bc795f0bd93e5f8c420120f9
|
[
"BSD-4-Clause-UC"
] | null | null | null |
tests/test_recursive.py
|
Skar0/generalizedparity
|
a29e08a637d8a957bc795f0bd93e5f8c420120f9
|
[
"BSD-4-Clause-UC"
] | null | null | null |
tests/test_recursive.py
|
Skar0/generalizedparity
|
a29e08a637d8a957bc795f0bd93e5f8c420120f9
|
[
"BSD-4-Clause-UC"
] | null | null | null |
import random
import unittest
import file_handler as io
import generators as gen
import zielonka as zielonka
import generalized_parity_recursive as recursive
class TestRecursive(unittest.TestCase):
"""
Test cases for the recursive algorithm used to solve generalized parity games.
"""
def setUp(self):
# set the random seed to produce reproducible tests
# random.seed(42) assert problem size 22
# random.seed(41) assert problem size 18
random.seed(26)
self.number_of_random = 100
self.number_of_random_double = 100
def test_recursive_single_priority_random(self):
"""
Check if solution computed by the recursive algorithm is correct.
We create random parity games and transform them into generalized parity games by using a copy of the first
priority function as a second priority function.
"""
print("test recursive single priority random")
for i in range(5, self.number_of_random + 5):
g = gen.random(i, i / 2, 1, i / 3)
winning_region_0, winning_region_1 = zielonka.strong_parity_solver_no_strategies(g)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(winning_region_0) == set(computed_winning_0))
self.assertTrue(set(winning_region_1) == set(computed_winning_1))
def test_recursive_double_priority_random(self):
"""
Check if solution computed by the recursive algorithm is correct.
We create random parity games and transform them into generalized parity games by using a copy of the first
priority function as a second priority function.
"""
print("test recursive double priority random")
for i in range(5, self.number_of_random_double + 5):
g = gen.random(i, i / 2, 1, i / 3)
winning_region_0, winning_region_1 = zielonka.strong_parity_solver_no_strategies(g)
g_generalized = gen.multiple_priorities(g, 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g_generalized)
self.assertTrue(set(winning_region_0) == set(computed_winning_0))
self.assertTrue(set(winning_region_1) == set(computed_winning_1))
def test_recursive_solved_examples(self):
"""
Checks the solution of the recursive algorithm on examples solved by hand.
"""
print("test recursive solved examples")
g = io.load_generalized_from_file("examples/example_0.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 4, 1, 6})
self.assertTrue(set(computed_winning_1) == {5, 3})
g = io.load_generalized_from_file("examples/example_1.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 3, 2})
self.assertTrue(set(computed_winning_1) == set())
g = io.load_generalized_from_file("examples/example_2.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 3, 4, 2})
self.assertTrue(set(computed_winning_1) == set())
g = io.load_generalized_from_file("examples/example_3.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 1, 3, 4})
self.assertTrue(set(computed_winning_1) == {6, 7, 5})
g = io.load_generalized_from_file("examples/example_4.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 1, 5})
self.assertTrue(set(computed_winning_1) == {6, 3, 4})
g = io.load_generalized_from_file("examples/example_5.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 1, 5})
self.assertTrue(set(computed_winning_1) == {7, 6, 3, 4})
# corresponds to counter_example in gamesolver
g = io.load_generalized_from_file("examples/example_6.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {1, 2, 3})
# corresponds to simple_example in gamesolver
g = io.load_generalized_from_file("examples/example_7.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 2, 3})
self.assertTrue(set(computed_winning_1) == set())
# corresponds to simple_example2 in gamesolver
g = io.load_generalized_from_file("examples/example_8.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 2})
self.assertTrue(set(computed_winning_1) == {3, 4, 5})
# corresponds to simple_example3 in gamesolver
g = io.load_generalized_from_file("examples/example_9.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 2, 3, 5, 6})
self.assertTrue(set(computed_winning_1) == {4})
def test_recursive_solved_worstcases(self):
"""
Checks the solution of the recursive algorithm on worst case graphs for the recursive algorithm for regular
parity games.
"""
print("test recursive solved worstcases")
g = io.load_generalized_from_file("examples/worstcase_1.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 3, 4, 2, 0})
self.assertTrue(set(computed_winning_1) == set())
g = io.load_generalized_from_file("examples/worstcase_2.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {6, 8, 9, 7, 5, 4, 0, 2, 1, 3})
def test_recursive_solved_double_priority(self):
"""
Checks the solution of the recursive algorithm on graphs in which the priority functions are twice the same.
"""
print("test recursive solved double priority")
g = io.load_generalized_from_file("examples/double_priority.txt")
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {4, 5, 6, 7, 3, 1, 2})
g = gen.multiple_priorities(io.load_generalized_from_file("examples/example_0.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 4, 1, 6})
self.assertTrue(set(computed_winning_1) == {5, 3})
g = gen.multiple_priorities(io.load_generalized_from_file("examples/example_1.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 3, 2})
self.assertTrue(set(computed_winning_1) == set())
g = gen.multiple_priorities(io.load_generalized_from_file("examples/example_2.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 3, 4, 2})
self.assertTrue(set(computed_winning_1) == set())
g = gen.multiple_priorities(io.load_generalized_from_file("examples/example_3.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 1, 3, 4})
self.assertTrue(set(computed_winning_1) == {6, 7, 5})
g = gen.multiple_priorities(io.load_generalized_from_file("examples/example_4.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 1, 5})
self.assertTrue(set(computed_winning_1) == {6, 3, 4})
g = gen.multiple_priorities(io.load_generalized_from_file("examples/example_5.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {2, 1, 5})
self.assertTrue(set(computed_winning_1) == {7, 6, 3, 4})
g = gen.multiple_priorities(io.load_generalized_from_file("examples/worstcase_1.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == {1, 3, 4, 2, 0})
self.assertTrue(set(computed_winning_1) == set())
g = gen.multiple_priorities(io.load_generalized_from_file("examples/worstcase_2.txt"), 2)
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {6, 8, 9, 7, 5, 4, 0, 2, 1, 3})
def test_recursive_solved_opposite_priority(self):
"""
Checks the solution of the recursive algorithm on graphs in which the second priority function is the first
priority function, but complemented. functions are twice the same.
"""
print("test recursive solved opposite priority")
g = gen.opposite_priorities(io.load_generalized_from_file("examples/example_0.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {2, 4, 1, 6, 5, 3})
g = gen.opposite_priorities(io.load_generalized_from_file("examples/example_1.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {1, 3, 2})
g = gen.opposite_priorities(io.load_generalized_from_file("examples/example_2.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {1, 3, 4, 2})
g = gen.opposite_priorities(io.load_generalized_from_file("examples/example_3.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {2, 1, 3, 4, 6, 7, 5})
g = gen.opposite_priorities(io.load_generalized_from_file("examples/example_4.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {2, 1, 5, 6, 3, 4})
g = gen.opposite_priorities(io.load_generalized_from_file("examples/example_5.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {2, 1, 5, 7, 6, 3, 4})
g = gen.opposite_priorities(io.load_generalized_from_file("examples/worstcase_1.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {1, 3, 4, 2, 0})
g = gen.opposite_priorities(io.load_generalized_from_file("examples/worstcase_2.txt"))
computed_winning_0, computed_winning_1 = recursive.generalized_parity_solver(g)
self.assertTrue(set(computed_winning_0) == set())
self.assertTrue(set(computed_winning_1) == {6, 8, 9, 7, 5, 4, 0, 2, 1, 3})
if __name__ == '__main__':
unittest.main()
| 52.969828
| 116
| 0.701929
| 1,664
| 12,289
| 4.873798
| 0.072716
| 0.229346
| 0.122318
| 0.178792
| 0.895191
| 0.881011
| 0.880888
| 0.863748
| 0.863502
| 0.840321
| 0
| 0.036754
| 0.191879
| 12,289
| 231
| 117
| 53.199134
| 0.779881
| 0.106844
| 0
| 0.532468
| 0
| 0
| 0.081352
| 0.060921
| 0
| 0
| 0
| 0
| 0.402597
| 1
| 0.045455
| false
| 0
| 0.038961
| 0
| 0.090909
| 0.038961
| 0
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b52378c60858f70df61d6b9742e49eae437133b5
| 2,315
|
py
|
Python
|
validator/migrations/0037_auto_20211001_1353.py
|
wpreimes/qa4sm
|
1e9c1c18d07d713a048ad13bac617b147240991c
|
[
"MIT"
] | 10
|
2019-02-27T15:05:15.000Z
|
2022-03-10T21:13:40.000Z
|
validator/migrations/0037_auto_20211001_1353.py
|
awst-austria/qa4sm
|
e67c9c0ec75fedabbfc389e4400e1203aa2d8a57
|
[
"MIT"
] | 69
|
2019-07-04T23:20:17.000Z
|
2022-03-29T06:34:06.000Z
|
validator/migrations/0037_auto_20211001_1353.py
|
wpreimes/qa4sm
|
1e9c1c18d07d713a048ad13bac617b147240991c
|
[
"MIT"
] | 10
|
2019-03-14T11:46:58.000Z
|
2022-03-25T13:06:16.000Z
|
# Generated by Django 3.2.7 on 2021-10-01 13:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('validator', '0036_email'),
]
operations = [
migrations.AlterField(
model_name='copiedvalidations',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='datafilter',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='dataset',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='datasetconfiguration',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='datasetversion',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='datavariable',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='email',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='ismnnetworks',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='parametrisedfilter',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='settings',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='statistics',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='user',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
]
| 31.283784
| 70
| 0.561123
| 207
| 2,315
| 6.154589
| 0.222222
| 0.188383
| 0.235479
| 0.273155
| 0.759027
| 0.759027
| 0.759027
| 0.759027
| 0.759027
| 0.759027
| 0
| 0.012141
| 0.323974
| 2,315
| 73
| 71
| 31.712329
| 0.801917
| 0.019438
| 0
| 0.716418
| 1
| 0
| 0.079365
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.014925
| 0
| 0.059701
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 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
|
a9390a04cc2cd317c2852418fcfb31138c402c22
| 134
|
py
|
Python
|
pandas/io/json/__init__.py
|
tacaswell/pandas
|
81c57e20da278494dfebc2f1043f5ff361a234f3
|
[
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null |
pandas/io/json/__init__.py
|
tacaswell/pandas
|
81c57e20da278494dfebc2f1043f5ff361a234f3
|
[
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null |
pandas/io/json/__init__.py
|
tacaswell/pandas
|
81c57e20da278494dfebc2f1043f5ff361a234f3
|
[
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | 1
|
2019-02-20T18:01:08.000Z
|
2019-02-20T18:01:08.000Z
|
from .json import to_json, read_json, loads, dumps # noqa
from .normalize import json_normalize # noqa
del json, normalize # noqa
| 26.8
| 58
| 0.753731
| 20
| 134
| 4.9
| 0.5
| 0.265306
| 0.346939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179104
| 134
| 4
| 59
| 33.5
| 0.890909
| 0.104478
| 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
| 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
|
a94227fbe9f631ad0d9594aa0a29c298a5a55b90
| 181
|
py
|
Python
|
pubgate/api/__init__.py
|
autogestion/pubgate
|
e9a1850a60bb34aac59542b97f730c08dc8d46fa
|
[
"BSD-3-Clause"
] | 79
|
2018-06-23T23:20:20.000Z
|
2022-03-22T18:33:37.000Z
|
pubgate/api/__init__.py
|
autogestion/pubgate
|
e9a1850a60bb34aac59542b97f730c08dc8d46fa
|
[
"BSD-3-Clause"
] | 25
|
2018-11-03T10:14:06.000Z
|
2021-01-20T22:33:14.000Z
|
pubgate/api/__init__.py
|
autogestion/pubgate
|
e9a1850a60bb34aac59542b97f730c08dc8d46fa
|
[
"BSD-3-Clause"
] | 5
|
2018-11-03T10:11:36.000Z
|
2020-03-19T14:34:05.000Z
|
from pubgate.api.inbox import inbox_v1
from pubgate.api.outbox import outbox_v1, outbox_object_v1
from pubgate.api.user import user_v1
from pubgate.api.well_known import well_known
| 36.2
| 58
| 0.856354
| 32
| 181
| 4.625
| 0.34375
| 0.297297
| 0.378378
| 0.324324
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.093923
| 181
| 4
| 59
| 45.25
| 0.878049
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
8d3d96e310280a8648e67d99d006a077e04d05a3
| 72
|
py
|
Python
|
data_layer/pre_process_simulation.py
|
alonshpigler/US-CNN
|
2c28d1eb122162e07e4d03dcdf3df44f0ea4c8fb
|
[
"MIT"
] | null | null | null |
data_layer/pre_process_simulation.py
|
alonshpigler/US-CNN
|
2c28d1eb122162e07e4d03dcdf3df44f0ea4c8fb
|
[
"MIT"
] | null | null | null |
data_layer/pre_process_simulation.py
|
alonshpigler/US-CNN
|
2c28d1eb122162e07e4d03dcdf3df44f0ea4c8fb
|
[
"MIT"
] | null | null | null |
def pre_process_simulation(split_set_input):
return split_set_input
| 36
| 45
| 0.847222
| 11
| 72
| 5
| 0.727273
| 0.290909
| 0.472727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 72
| 2
| 46
| 36
| 0.859375
| 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
|
8d96536dd6888a775d581b9a00e6753be6c12ad5
| 125
|
py
|
Python
|
hacker/challenges/crypto/more_dastardly.py
|
Tenebrar/codebase
|
59c9a35289fb29afedad0e3edd0519b67372ef9f
|
[
"Unlicense"
] | 1
|
2020-04-21T11:39:25.000Z
|
2020-04-21T11:39:25.000Z
|
hacker/challenges/crypto/more_dastardly.py
|
Tenebrar/codebase
|
59c9a35289fb29afedad0e3edd0519b67372ef9f
|
[
"Unlicense"
] | 7
|
2020-02-12T01:08:01.000Z
|
2022-02-10T11:56:56.000Z
|
hacker/challenges/crypto/more_dastardly.py
|
Tenebrar/codebase
|
59c9a35289fb29afedad0e3edd0519b67372ef9f
|
[
"Unlicense"
] | null | null | null |
value = '16b87ecc17e3568c83d2d55d8c0d7260'
# https://md5.gromweb.com/?md5=16b87ecc17e3568c83d2d55d8c0d7260
print('flippit')
| 25
| 63
| 0.816
| 10
| 125
| 10.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.372881
| 0.056
| 125
| 4
| 64
| 31.25
| 0.491525
| 0.488
| 0
| 0
| 0
| 0
| 0.629032
| 0.516129
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
8da175a47e1afef2786950d3ee918f30a4f26e56
| 10,110
|
py
|
Python
|
test/test_npu/test_network_ops/test_binary_cross_entropy_with_logits.py
|
Ascend/pytorch
|
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
|
[
"BSD-3-Clause"
] | 1
|
2021-12-02T03:07:35.000Z
|
2021-12-02T03:07:35.000Z
|
test/test_npu/test_network_ops/test_binary_cross_entropy_with_logits.py
|
Ascend/pytorch
|
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
|
[
"BSD-3-Clause"
] | 1
|
2021-11-12T07:23:03.000Z
|
2021-11-12T08:28:13.000Z
|
test/test_npu/test_network_ops/test_binary_cross_entropy_with_logits.py
|
Ascend/pytorch
|
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
|
[
"BSD-3-Clause"
] | null | null | null |
# Copyright (c) 2020, Huawei Technologies.All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import torch
import copy
import torch.nn as nn
import numpy as np
from common_utils import TestCase, run_tests
from common_device_type import dtypes, instantiate_device_type_tests
from util_test import create_common_tensor
class TestBinaryCrossEntropyWithLogits(TestCase):
def generate_two_input(self, lower, upper, shape, dtype):
x = np.random.uniform(lower, upper, shape).astype(dtype)
y = np.random.uniform(lower, upper, shape).astype(dtype)
npu_input = torch.from_numpy(x)
target_input = torch.from_numpy(y)
return npu_input, target_input
def generate_one_input(self, lower, upper, shape, dtype):
x = np.random.uniform(lower, upper, shape).astype(dtype)
npu_input = torch.from_numpy(x)
return npu_input
def cpu_op_exec(self, input1, target, weight=None, pos_weight=None, reduction="mean"):
criterion = torch.nn.BCEWithLogitsLoss(weight=weight, pos_weight=pos_weight,
reduction=reduction)
res = criterion(input1, target)
return res.numpy()
def npu_op_exec(self, input1, target, weight=None, pos_weight=None, reduction="mean"):
input1 = input1.to("npu")
target = target.to("npu")
if weight is not None:
weight = weight.to("npu")
if pos_weight is not None:
pos_weight = pos_weight.to("npu")
criterion = torch.nn.BCEWithLogitsLoss(weight=weight, pos_weight=pos_weight,
reduction=reduction)
criterion = criterion.to("npu")
res = criterion(input1, target)
res = res.to("cpu")
return res.numpy()
def cpu_op_func_exec(self, input1, target, weight=None, pos_weight=None, reduction="mean"):
res = torch.nn.functional.binary_cross_entropy_with_logits(input1, target, weight=weight, pos_weight=pos_weight,
reduction=reduction)
return res.numpy()
def npu_op_func_exec(self, input1, target, weight=None, pos_weight=None, reduction="mean"):
input1 = input1.to("npu")
target = target.to("npu")
if weight is not None:
weight = weight.to("npu")
if pos_weight is not None:
pos_weight = pos_weight.to("npu")
res = torch.nn.functional.binary_cross_entropy_with_logits(input1, target, weight=weight, pos_weight=pos_weight,
reduction=reduction)
res = res.to("cpu")
return res.numpy()
def test_binary_cross_with_logits_float32(self, device):
for shape, weight_shape, pos_weight_shape, reduction in [
((10, 64), None, None, "mean"),
((10, 64), (10, 1), None, "mean"),
((10, 64), None, (64,), "mean"),
((10, 64), None, None, "none"),
((10, 64), (10, 1), None, "none"),
((10, 64), None, (64,), "none"),
((10, 64), None, None, "sum"),
((10, 64), (10, 1), None, "sum"),
((10, 64), None, (64,), "sum"),
((10, 64), (10, 64), (10, 64), "mean"),
((10, 64), (10, 64), (10, 64), "sum"),
((10, 64), (10, 64), (10, 64), "none")
]:
input1 = self.generate_one_input(0, 10, shape, np.float32)
target = torch.empty(shape, dtype=torch.float32).random_(2)
weight = None
pos_weight = None
if weight_shape is not None:
weight = self.generate_one_input(0, 10, weight_shape, np.float32)
if pos_weight_shape is not None:
pos_weight = self.generate_one_input(0, 10, pos_weight_shape, np.float32)
cpu_output = self.cpu_op_exec(input1, target, weight=weight, pos_weight=pos_weight, reduction=reduction)
npu_output = self.npu_op_exec(input1, target, weight=weight, pos_weight=pos_weight, reduction=reduction)
self.assertRtolEqual(cpu_output, npu_output)
def test_binary_cross_with_logits_float16(self, device):
for shape, weight_shape, pos_weight_shape, reduction in [
((10, 64), None, None, "mean"),
((10, 64), (10, 1), None, "mean"),
((10, 64), None, (64,), "mean"),
((10, 64), None, None, "none"),
((10, 64), (10, 1), None, "none"),
((10, 64), None, (64,), "none"),
((10, 64), None, None, "sum"),
((10, 64), (10, 1), None, "sum"),
((10, 64), None, (64,), "sum"),
((10, 64), (10, 64), (10, 64), "sum"),
((10, 64), (10, 64), (10, 64), "mean"),
((10, 64), (10, 64), (10, 64), "none")
]:
input1 = self.generate_one_input(0, 10, shape, np.float16)
target = torch.empty(shape, dtype=torch.float16).random_(2)
input_32 = input1.type(torch.float32)
target_32 = target.type(torch.float32)
weight = None
weight_32 = None
pos_weight = None
pos_weight_32 = None
if weight_shape is not None:
weight = self.generate_one_input(0, 10, weight_shape, np.float16)
weight_32 = weight.type(torch.float32)
if pos_weight_shape is not None:
pos_weight = self.generate_one_input(0, 10, pos_weight_shape, np.float16)
pos_weight_32 = pos_weight.type(torch.float32)
npu_output = self.npu_op_exec(input1, target, weight=weight, pos_weight=pos_weight, reduction=reduction)
cpu_output = self.cpu_op_exec(input_32, target_32, weight=weight_32, pos_weight=pos_weight_32,
reduction=reduction)
cpu_output = cpu_output.astype(np.float16)
self.assertRtolEqual(cpu_output, npu_output)
def test_binary_cross_with_logits_function_float32(self, device):
for shape, weight_shape, pos_weight_shape, reduction in [
((10, 64), None, None, "mean"),
((10, 64), (10, 1), None, "mean"),
((10, 64), None, (64,), "mean"),
((10, 64), None, None, "none"),
((10, 64), (10, 1), None, "none"),
((10, 64), None, (64,), "none"),
((10, 64), None, None, "sum"),
((10, 64), (10, 1), None, "sum"),
((10, 64), None, (64,), "sum"),
((10, 64), (10, 64), (10, 64), "mean"),
((10, 64), (10, 64), (10, 64), "sum"),
((10, 64), (10, 64), (10, 64), "none")
]:
input1 = self.generate_one_input(0, 2, shape, np.float32)
target = torch.empty(shape, dtype=torch.float32).random_(2)
weight = None
pos_weight = None
if weight_shape is not None:
weight = self.generate_one_input(0, 2, weight_shape, np.float32)
if pos_weight_shape is not None:
pos_weight = self.generate_one_input(0, 2, pos_weight_shape, np.float32)
cpu_output = self.cpu_op_func_exec(input1, target, weight=weight, pos_weight=pos_weight, reduction=reduction)
npu_output = self.npu_op_func_exec(input1, target, weight=weight, pos_weight=pos_weight, reduction=reduction)
self.assertRtolEqual(cpu_output, npu_output)
def test_binary_cross_with_logits_function_float16(self, device):
for shape, weight_shape, pos_weight_shape, reduction in [
((10, 64), None, None, "mean"),
((10, 64), (10, 1), None, "mean"),
((10, 64), None, (64,), "mean"),
((10, 64), None, None, "none"),
((10, 64), (10, 1), None, "none"),
((10, 64), None, (64,), "none"),
((10, 64), None, None, "sum"),
((10, 64), (10, 1), None, "sum"),
((10, 64), None, (64,), "sum"),
((10, 64), (10, 64), (10, 64), "sum"),
((10, 64), (10, 64), (10, 64), "mean"),
((10, 64), (10, 64), (10, 64), "none")
]:
input1 = self.generate_one_input(0, 2, shape, np.float16)
target = torch.empty(shape, dtype=torch.float16).random_(2)
input_32 = input1.type(torch.float32)
target_32 = target.type(torch.float32)
weight = None
weight_32 = None
pos_weight = None
pos_weight_32 = None
if weight_shape is not None:
weight = self.generate_one_input(0, 2, weight_shape, np.float16)
weight_32 = weight.type(torch.float32)
if pos_weight_shape is not None:
pos_weight = self.generate_one_input(0, 2, pos_weight_shape, np.float16)
pos_weight_32 = pos_weight.type(torch.float32)
npu_output = self.npu_op_func_exec(input1, target, weight=weight, pos_weight=pos_weight, reduction=reduction)
cpu_output = self.cpu_op_func_exec(input_32, target_32, weight=weight_32, pos_weight=pos_weight_32,
reduction=reduction)
cpu_output = cpu_output.astype(np.float16)
self.assertRtolEqual(cpu_output, npu_output)
instantiate_device_type_tests(TestBinaryCrossEntropyWithLogits, globals(), except_for="cpu")
if __name__ == "__main__":
run_tests()
| 47.464789
| 121
| 0.564293
| 1,265
| 10,110
| 4.313834
| 0.110672
| 0.052776
| 0.039582
| 0.035184
| 0.824446
| 0.824446
| 0.812534
| 0.811801
| 0.802089
| 0.80099
| 0
| 0.072831
| 0.304649
| 10,110
| 212
| 122
| 47.688679
| 0.703414
| 0.056775
| 0
| 0.758621
| 0
| 0
| 0.024785
| 0
| 0
| 0
| 0
| 0
| 0.022989
| 1
| 0.057471
| false
| 0
| 0.04023
| 0
| 0.137931
| 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
|
a5c51bec9c3c5ee012775dc6c1991d36a040e463
| 25,953
|
py
|
Python
|
collectioncode/process_srrgs.py
|
jbrentfoster/autosrlg
|
ee30fcb14004544f3487485c8f832830582699a4
|
[
"MIT"
] | null | null | null |
collectioncode/process_srrgs.py
|
jbrentfoster/autosrlg
|
ee30fcb14004544f3487485c8f832830582699a4
|
[
"MIT"
] | null | null | null |
collectioncode/process_srrgs.py
|
jbrentfoster/autosrlg
|
ee30fcb14004544f3487485c8f832830582699a4
|
[
"MIT"
] | null | null | null |
import json
import logging
import collectioncode.utils as utils
import xml.dom.minidom
import xml.parsers.expat
import random
def parse_ssrgs():
srrg_types = ["Conduit", "Node", "Degree", "Add/Drop", "Switch", "Link", "Card", "Future", "Central Office",
"Future", "Future", "Future", "Future", "Future", "Future", "Future"]
with open("jsongets/SRRGs.json", 'r', encoding="utf8") as f:
srrgs = json.load(f)
f.close()
for srrg in srrgs['com.response-message']['com.data']['srrg.srrg-attributes']:
fdn = srrg['srrg.fdn']
srrg_val = fdn.split('!')[1].split('=')[1]
srrg['srrg-dec'] = srrg_val
srrg['srrg-hex'] = "0x{:08x}".format(int(srrg_val))
srrg['srrg-bin'] = "{:032b}".format(int(srrg_val))
srrg['user-set'] = srrg['srrg-bin'][2] == '1'
srrg['region-bin'] = srrg['srrg-bin'][3:8]
srrg['region-dec'] = int(srrg['srrg-bin'][3:8], 2)
srrg['type-bin'] = srrg['srrg-bin'][8:12]
srrg['type-dec'] = int(srrg['srrg-bin'][8:12], 2)
srrg['type-string'] = srrg_types[int(srrg['type-dec'])]
srrg['value-bin'] = srrg['srrg-bin'][12:32]
srrg['value-dec'] = int(srrg['srrg-bin'][12:32], 2)
with open("jsonfiles/SRRG_db.json", 'w', encoding="utf8") as f:
# f.write(json.dumps(srrgs, f, sort_keys=True, indent=4, separators=(',', ': ')))
json.dump(srrgs, f, sort_keys=True, indent=4, separators=(',', ': '))
f.close()
def processl1nodes(region, type):
with open("jsonfiles/l1-nodes_db.json", 'r', encoding="utf8") as f:
l1nodes = json.load(f)
f.close()
for k1, v1 in l1nodes.items():
logging.info("")
logging.info("Matching node " + v1['Name'])
matched_srrgs = getNodeSRRGs(v1['Name'])
srrg_list = []
wrong_srrg_list = []
if len(matched_srrgs) > 0:
logging.info("Matched an SRRG...")
for srrg in matched_srrgs:
logging.info(srrg['srrg.fdn'])
logging.info("Region is: " + str(srrg['region-dec']))
logging.info("Type is: " + srrg['type-string'])
if srrg['region-dec'] == region and srrg['type-string'] == type:
logging.info("Region & type matches, node db updated.")
srrg_list.append(srrg['srrg.fdn'])
else:
logging.info("Region and/or type doesn't match!")
wrong_srrg_list.append(srrg['srrg.fdn'])
v1['srrgs'] = srrg_list
v1['srrgs-incorrect'] = wrong_srrg_list
with open("jsonfiles/l1-nodes_db.json", 'w', encoding="utf8") as f:
# f.write(json.dumps(l1nodes, f, sort_keys=True, indent=4, separators=(',', ': ')))
json.dump(l1nodes, f, sort_keys=True, indent=4, separators=(',', ': '))
f.close()
def generatel1node_srrgs(baseURL, epnmuser, epnmpassword, pool):
with open("jsonfiles/l1-nodes_db.json", 'r', encoding="utf8") as f:
l1nodes = json.load(f)
f.close()
for k1, v1 in l1nodes.items():
logging.info("")
logging.info("Generating SRRGs for node: " + v1['Name'])
if len(v1['srrgs']) > 0:
logging.info("Node already has SRRG: ")
logging.info(v1['srrgs'])
elif len(v1['srrgs']) > 1:
logging.info("Node has more than one SRRG: ")
logging.info(v1['srrgs'])
else:
usrlabel = v1['Name'] + " " + str(random.randint(1, 1001))
description = "Automated by Python."
respool = pool
rsfdn = "<p:resource-fdn>" + v1['fdn'] + "</p:resource-fdn>"
createSRRG(baseURL, epnmuser, epnmpassword, usrlabel, description, respool, rsfdn)
def unassignl1node_srrgs(baseURL, epnmuser, epnmpassword, srrg_type):
# srrg_type should be either 'srrgs' or srrgs-incorrect
with open("jsonfiles/l1-nodes_db.json", 'r', encoding="utf8") as f:
l1nodes = json.load(f)
f.close()
for k1, v1 in l1nodes.items():
logging.info("")
logging.info("Unassigning SRRGs for node: " + v1['Name'])
if len(v1[srrg_type]) == 0:
logging.info("Node has no SRRGs")
else:
for srrg in v1[srrg_type]:
fdn = srrg
rsfdn = v1['fdn']
unassignSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn)
def unassign_single_l1node_srrgs(baseURL, epnmuser, epnmpassword, node_fdn, srrg_type):
# srrg_type should be either 'srrgs' or srrgs-incorrect
with open("jsonfiles/l1-nodes_db.json", 'r', encoding="utf8") as f:
l1nodes = json.load(f)
f.close()
for k1, v1 in l1nodes.items():
if v1['fdn'] == node_fdn:
if len(v1[srrg_type]) == 0:
logging.info("Node has no SRRGs")
else:
for srrg in v1[srrg_type]:
fdn = srrg
rsfdn = v1['fdn']
unassignSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn)
def getNodeSRRGs(nodename):
with open("jsonfiles/SRRG_db.json", 'r', encoding="utf8") as f:
srrgs = json.load(f)
f.close()
matched_srrgs = []
for srrg in srrgs['com.response-message']['com.data']['srrg.srrg-attributes']:
fdn = srrg['srrg.fdn']
srrgrsdict = srrg['srrg.resource-list']
if isinstance(srrgrsdict, dict):
srrgrslist = srrgrsdict['srrg.resource']
if isinstance(srrgrslist, list):
for srrgrs in srrgrslist:
rsfdn = srrgrs['srrg.resource-fdn']
srrgrs_type = rsfdn.split('!')[1].split('=')[0]
if srrgrs_type == "ND":
node = rsfdn.split('!')[1].split('=')[1]
if node == nodename:
matched_srrgs.append(srrg)
elif isinstance(srrgrslist, dict):
rsfdn = srrgrslist['srrg.resource-fdn']
srrgrs_type = rsfdn.split('!')[1].split('=')[0]
if srrgrs_type == "ND":
node = rsfdn.split('!')[1].split('=')[1]
if node == nodename:
matched_srrgs.append(srrg)
return matched_srrgs
def processl1links(region, type):
with open("jsonfiles/l1-links_db.json", 'r', encoding="utf8") as f:
l1links = json.load(f)
f.close()
for k1, v1 in l1links.items():
logging.info("")
logging.info("Matching L1 link " + v1['fdn'])
matched_srrgs = getLinkSRRGs(v1['fdn'])
srrg_list = []
wrong_srrg_list = []
conduit_srrg_list = []
if len(matched_srrgs) > 0:
logging.info("Matched an SRRG...")
for srrg in matched_srrgs:
logging.info(srrg['srrg.fdn'])
logging.info("Region is: " + str(srrg['region-dec']))
logging.info("Type is: " + srrg['type-string'])
if srrg['region-dec'] == region and srrg['type-string'] == type:
logging.info("Region & ROADM degree type matches, link db updated.")
srrg_list.append(srrg['srrg.fdn'])
elif srrg['region-dec'] == region and srrg['type-string'] == 'Conduit':
logging.info("Region & conduit type matches, link db updated.")
conduit_srrg_list.append(srrg['srrg.fdn'])
else:
logging.info("Region and/or type doesn't match!")
wrong_srrg_list.append(srrg['srrg.fdn'])
v1['srrgs'] = srrg_list
v1['srrgs-incorrect'] = wrong_srrg_list
v1['srrgs-conduit'] = conduit_srrg_list
with open("jsonfiles/l1-links_db.json", 'w', encoding="utf8") as f:
# f.write(json.dumps(l1links, f, sort_keys=True, indent=4, separators=(',', ': ')))
json.dump(l1links, f, sort_keys=True, indent=4, separators=(',', ': '))
f.close()
def getLinkSRRGs(linkfdn):
with open("jsonfiles/SRRG_db.json", 'r', encoding="utf8") as f:
srrgs = json.load(f)
f.close()
matched_srrgs = []
for srrg in srrgs['com.response-message']['com.data']['srrg.srrg-attributes']:
fdn = srrg['srrg.fdn']
srrgrsdict = srrg['srrg.resource-list']
if isinstance(srrgrsdict, dict):
srrgrslist = srrgrsdict['srrg.resource']
if isinstance(srrgrslist, list):
for srrgrs in srrgrslist:
rsfdn = srrgrs['srrg.resource-fdn']
srrgrs_type = rsfdn.split('!')[1].split('=')[0]
if srrgrs_type == "TL":
link = rsfdn.split('!')[1].split('=')[1]
if rsfdn == linkfdn:
matched_srrgs.append(srrg)
elif isinstance(srrgrslist, dict):
rsfdn = srrgrslist['srrg.resource-fdn']
srrgrs_type = rsfdn.split('!')[1].split('=')[0]
if srrgrs_type == "TL":
link = rsfdn.split('!')[1].split('=')[1]
if rsfdn == linkfdn:
matched_srrgs.append(srrg)
return matched_srrgs
def generatel1link_srrgs(baseURL, epnmuser, epnmpassword, pool):
with open("jsonfiles/l1-links_db.json", 'r', encoding="utf8") as f:
l1links = json.load(f)
f.close()
for k1, v1 in l1links.items():
logging.info("")
logging.info("Generating SRRGs for link: " + v1['fdn'])
if len(v1['srrgs']) > 0:
logging.info("Link already has SRRG(s): ")
logging.info(v1['srrgs'])
elif len(v1['srrgs']) > 1:
logging.info("Node has more than one SRRG: ")
logging.info(v1['srrgs'])
else:
usrlabel = "Link SRRG " + str(random.randint(1, 10001))
description = "Automated by Python."
respool = pool
rsfdn = "<p:resource-fdn>" + v1['fdn'] + "</p:resource-fdn>"
createSRRG(baseURL, epnmuser, epnmpassword, usrlabel, description, respool, rsfdn)
def assign_srrg(baseURL, epnmuser, epnmpassword, pool, srrg_type, uuid, link_fdn_list):
usrlabel = "SSRG type " + srrg_type.replace('-',' ') + " UUID " + uuid
description = "Automated by Python."
respool = pool
xml_fdn_list = ""
for fdn in link_fdn_list:
xml_fdn_list += "<p:resource-fdn>" + fdn + "</p:resource-fdn>" + "\n"
result = createSRRG(baseURL, epnmuser, epnmpassword, usrlabel, description, respool, xml_fdn_list)
return result
def assign_existing_srrg(baseURL, epnmuser, epnmpassword, srrg_fdn, fdn_list):
# srrg_fdn = "MD=CISCO_EPNM!SRRG={}".format(srrg_id)
xml_fdn_list = ""
for fdn in fdn_list:
xml_fdn_list += "<p:resource-fdn>" + fdn + "</p:resource-fdn>" + "\n"
result = updateSRRG(baseURL, epnmuser, epnmpassword, srrg_fdn, xml_fdn_list)
return result
def unassignl1link_srrgs(baseURL, epnmuser, epnmpassword, srrg_type):
# srrg_type should be either 'srrgs' or srrgs-incorrect
with open("jsonfiles/l1-links_db.json", 'r', encoding="utf8") as f:
l1links = json.load(f)
f.close()
for k1, v1 in l1links.items():
logging.info("")
logging.info("Unassigning SRRGs for link: " + v1['fdn'])
if len(v1[srrg_type]) == 0:
logging.info("Link has no SRRGs")
else:
for srrg in v1[srrg_type]:
fdn = srrg
rsfdn = v1['fdn']
unassignSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn)
def unassign_single_l1link_srrgs(baseURL, epnmuser, epnmpassword, link_fdn, srrg_type):
# srrg_type should be either 'srrgs' or srrgs-incorrect
with open("jsonfiles/l1-links_db.json", 'r', encoding="utf8") as f:
l1links = json.load(f)
f.close()
logging.info("Unassigning SRRGs for link: " + link_fdn)
for k1, v1 in l1links.items():
if v1['fdn'] == link_fdn:
if len(v1[srrg_type]) == 0:
logging.info("Link has no SRRGs")
else:
for srrg in v1[srrg_type]:
fdn = srrg
rsfdn = v1['fdn']
unassignSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn)
def unassigntopolink_srrgs(baseURL, epnmuser, epnmpassword, srrg_type):
# srrg_type should be either 'srrgs' or srrgs-incorrect
with open("jsonfiles/topolinks_add_drop_db.json", 'r', encoding="utf8") as f:
topolinks = json.load(f)
f.close()
for k1, v1 in topolinks.items():
logging.info("")
logging.info("Unassigning SRRGs for link: " + v1['fdn'])
if len(v1[srrg_type]) == 0:
logging.info("Link has no SRRGs")
else:
for srrg in v1[srrg_type]:
fdn = srrg
rsfdn = v1['fdn']
unassignSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn)
def unassign_single_topolink_srrgs(baseURL, epnmuser, epnmpassword, link_fdn, srrg_type):
# srrg_type should be either 'srrgs' or srrgs-incorrect
with open("jsonfiles/topolinks_add_drop_db.json", 'r', encoding="utf8") as f:
topolinks = json.load(f)
f.close()
logging.info("Unassigning SRRGs for topolink: " + link_fdn)
for k1, v1 in topolinks.items():
if v1['fdn'] == link_fdn:
if len(v1[srrg_type]) == 0:
logging.info("Link has no SRRGs")
else:
for srrg in v1[srrg_type]:
fdn = srrg
rsfdn = v1['fdn']
unassignSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn)
def processtopolinks(region):
with open("jsonfiles/topolinks_add_drop_db.json", 'r', encoding="utf8") as f:
topolinks = json.load(f)
f.close()
for k1, v1 in topolinks.items():
logging.info("")
logging.info("Matching topo link " + v1['fdn'])
matched_srrgs = getLinkSRRGs(v1['fdn'])
srrg_lc_list = []
srrg_ad_list = []
wrong_srrg_list = []
if len(matched_srrgs) > 0:
logging.info("Matched an SRRG...")
for srrg in matched_srrgs:
logging.info(srrg['srrg.fdn'])
logging.info("Region is: " + str(srrg['region-dec']))
logging.info("Type is: " + srrg['type-string'])
if srrg['region-dec'] == region and srrg['type-string'] == 'Add/Drop':
logging.info("Region & type matches, link db updated.")
srrg_ad_list.append(srrg['srrg.fdn'])
elif srrg['region-dec'] == region and srrg['type-string'] == 'Card':
logging.info("Region & type matches, link db updated.")
srrg_lc_list.append(srrg['srrg.fdn'])
else:
logging.info("Region and/or type doesn't match!")
wrong_srrg_list.append(srrg['srrg.fdn'])
v1['srrgs-lc'] = srrg_lc_list
v1['srrgs-ad'] = srrg_ad_list
v1['srrgs-incorrect'] = wrong_srrg_list
with open("jsonfiles/topolinks_add_drop_db.json", 'w', encoding="utf8") as f:
# f.write(json.dumps(topolinks, f, sort_keys=True, indent=4, separators=(',', ': ')))
json.dump(topolinks, f, sort_keys=True, indent=4, separators=(',', ': '))
f.close()
def processtopolinks_physical(region):
with open("jsonfiles/topolinks_physical_db.json", 'r', encoding="utf8") as f:
topolinks = json.load(f)
f.close()
for k1, v1 in topolinks.items():
logging.info("")
logging.info("Matching topo link " + v1['fdn'])
matched_srrgs = getLinkSRRGs(v1['fdn'])
srrg_lc_list = []
wrong_srrg_list = []
if len(matched_srrgs) > 0:
logging.info("Matched an SRRG...")
for srrg in matched_srrgs:
logging.info(srrg['srrg.fdn'])
logging.info("Region is: " + str(srrg['region-dec']))
logging.info("Type is: " + srrg['type-string'])
if srrg['region-dec'] == region and srrg['type-string'] == 'Card':
logging.info("Region & type matches, link db updated.")
srrg_lc_list.append(srrg['srrg.fdn'])
else:
logging.info("Region and/or type doesn't match!")
wrong_srrg_list.append(srrg['srrg.fdn'])
v1['srrgs-lc'] = srrg_lc_list
v1['srrgs-incorrect'] = wrong_srrg_list
with open("jsonfiles/topolinks_physical_db.json", 'w', encoding="utf8") as f:
# f.write(json.dumps(topolinks, f, sort_keys=True, indent=4, separators=(',', ': ')))
json.dump(topolinks, f, sort_keys=True, indent=4, separators=(',', ': '))
f.close()
def generatetopolink_add_drop_srrgs(baseURL, epnmuser, epnmpassword, pool):
with open("jsonfiles/l1-nodes_db.json", 'r', encoding="utf8") as f:
l1nodes = json.load(f)
f.close()
for k1, v1 in l1nodes.items():
logging.info("")
logging.info("Evaluating topolinks for node: " + v1['Name'])
# if v1['Name'] == "NCS2K-Site2":
# continue
fdn_a_list = []
fdn_b_list = []
with open("jsonfiles/topolinks_add_drop_db.json", 'r', encoding="utf8") as f:
topolinks = json.load(f)
f.close()
for key1, val1 in topolinks.items():
for node in val1['Nodes']:
if node['node'] == v1['Name']:
logging.info('Checking topo link ' + val1['fdn'])
if len(val1['srrgs-ad']) > 0:
logging.info('Topo link already has correct SRRG assignment')
else:
ctp = node['ctp'].split('-')[0] + "-" + node['ctp'].split('-')[1] + "-" + \
node['ctp'].split('-')[2]
if ctp == "PSLINE-81-1":
fdn_a_list.append({ctp: val1['fdn']})
elif ctp == "PSLINE-81-2":
fdn_b_list.append({ctp: val1['fdn']})
if len(fdn_a_list) > 0:
print("Topo links for PSLINE-81-1")
xml_fdn_list = ""
for fdn in fdn_a_list:
xml_fdn_list += "<p:resource-fdn>" + fdn['PSLINE 81 1'] + "</p:resource-fdn>" + "\n"
print(xml_fdn_list)
usrlabel = "Add Drop Node " + v1['Name'] + " PSLINE 81 1 " + str(random.randint(1, 10001))
description = "Automated by Python."
respool = pool
createSRRG(baseURL, epnmuser, epnmpassword, usrlabel, description, respool, xml_fdn_list)
# raw_input("Press ENTER to continue...")
if len(fdn_b_list) > 0:
print("Topo links for PSLINE-81-2")
xml_fdn_list = ""
for fdn in fdn_b_list:
xml_fdn_list += "<p:resource-fdn>" + fdn['PSLINE 81 2'] + "</p:resource-fdn>" + "\n"
print(xml_fdn_list)
usrlabel = "Add Drop Node " + v1['Name'] + " PSLINE 81 2 " + str(random.randint(1, 10001))
description = "Automated by Python."
respool = pool
createSRRG(baseURL, epnmuser, epnmpassword, usrlabel, description, respool, xml_fdn_list)
# raw_input("Press ENTER to continue...")
def generatetopolink_line_card_srrgs(baseURL, epnmuser, epnmpassword, pool):
with open("jsonfiles/4k-nodes_db.json", 'r', encoding="utf8") as f:
l1nodes = json.load(f)
f.close()
for k1, v1 in l1nodes.items():
logging.info("")
logging.info("Evaluating topolinks for node: " + v1['Name'])
# if v1['Name'] == "NCS2K-Site2":
# continue
fdn_a_list = []
fdn_b_list = []
with open("jsonfiles/topolinks_add_drop_db.json", 'r', encoding="utf8") as f:
topolinks = json.load(f)
f.close()
for key1, val1 in topolinks.items():
for node in val1['Nodes']:
if node['node'] == v1['Name']:
logging.info('Checking topo link ' + val1['fdn'])
if len(val1['srrgs-lc']) > 0:
logging.info('Topo link already has correct SRRG assignment')
else:
logging.info('Topo link requires SRRG assignment')
usrlabel = "Line Card Node " + v1['Name'] + " " + node['ctp'] + str(
random.randint(1, 10001))
description = "Automated by Python."
respool = pool
rsfdn = "<p:resource-fdn>" + val1['fdn'] + "</p:resource-fdn>"
createSRRG(baseURL, epnmuser, epnmpassword, usrlabel, description, respool, rsfdn)
# raw_input("Press ENTER to continue...")
def deleteSRRG(baseURL, epnmuser, epnmpassword, fdn):
with open("collectioncode/delete-srrg.xml", 'r') as f:
xmlbody = f.read()
f.close()
logging.info("Attempting to delete SRRG: " + fdn)
newxmlbody = xmlbody.format(fdn=fdn)
logging.info(newxmlbody)
uri = "/operations/v1/cisco-resource-activation:delete-shared-risk-resource-group"
xmlresponse = utils.rest_post_xml(baseURL, uri, newxmlbody, epnmuser, epnmpassword)
logging.info(xmlresponse)
try:
thexml = xml.dom.minidom.parseString(xmlresponse)
except xml.parsers.expat.ExpatError as err:
logging.info("XML parsing error. The received message from websocket is not XML.")
return False
except Exception as err:
logging.warning("Error parsing response")
logging.warning(xmlresponse)
return False
try:
result = thexml.getElementsByTagName("ns34:status")[0].firstChild.nodeValue
fdn = thexml.getElementsByTagName("ns34:fdn")[0].firstChild.nodeValue
logging.info(fdn)
logging.info(result)
return True
except Exception as err:
logging.warning("Deleting SRRG failed!")
return False
def unassignSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn):
with open("collectioncode/post-srrg.xml", 'r') as f:
xmlbody = f.read()
f.close()
logging.info("Attempting to delete SRRG: " + fdn)
newxmlbody = xmlbody.format(fdn=fdn, rsfdn=rsfdn)
logging.info(newxmlbody)
uri = "/operations/v1/cisco-resource-activation:unassign-shared-risk-resource-group"
xmlresponse = utils.rest_post_xml(baseURL, uri, newxmlbody, epnmuser, epnmpassword)
# print xmlresponse
try:
thexml = xml.dom.minidom.parseString(xmlresponse)
except xml.parsers.expat.ExpatError as err:
logging.info("XML parsing error. The received message from websocket is not XML.")
return
except Exception as err:
logging.warning(xmlresponse)
logging.warning("Operation failed.")
return
try:
result = thexml.getElementsByTagName("ns34:status")[0].firstChild.nodeValue
fdn = thexml.getElementsByTagName("ns34:fdn")[0].firstChild.nodeValue
logging.info(fdn)
logging.info(result)
except:
logging.warning("Error parsing response")
logging.warning(xmlresponse)
return
def updateSRRG(baseURL, epnmuser, epnmpassword, fdn, rsfdn):
with open("collectioncode/post-srrg-update.xml", 'r') as f:
xmlbody = f.read()
f.close()
logging.info("Attempting to update SRRG: " + fdn)
newxmlbody = xmlbody.format(fdn=fdn, rsfdn=rsfdn)
logging.info(newxmlbody)
uri = "/operations/v1/cisco-resource-activation:assign-shared-risk-resource-group"
xmlresponse = utils.rest_post_xml(baseURL, uri, newxmlbody, epnmuser, epnmpassword)
# print xmlresponse
try:
thexml = xml.dom.minidom.parseString(xmlresponse)
except xml.parsers.expat.ExpatError as err:
logging.info("XML parsing error. The received message from websocket is not XML.")
return
except Exception as err:
logging.warning(xmlresponse)
logging.warning("Operation failed.")
return
try:
result = thexml.getElementsByTagName("ns34:status")[0].firstChild.nodeValue
fdn = thexml.getElementsByTagName("ns34:fdn")[0].firstChild.nodeValue
logging.info(fdn)
logging.info(result)
return result
except:
logging.warning("Error parsing response for update SRRG!")
logging.warning(xmlresponse)
return
def createSRRG(baseURL, epnmuser, epnmpassword, usrlabel, description, respool, rsfdn):
with open("collectioncode/create-srrg.xml", 'r') as f:
xmlbody = f.read()
f.close()
logging.info("Attempting to create SRRG...")
uri = "/operations/v1/cisco-resource-activation:create-shared-risk-resource-group"
newxmlbody = xmlbody.format(usrlabel=usrlabel, description=description, respool=respool, rsfdn=rsfdn)
logging.info(newxmlbody)
xmlresponse = utils.rest_post_xml(baseURL, uri, newxmlbody, epnmuser, epnmpassword)
try:
thexml = xml.dom.minidom.parseString(xmlresponse)
except xml.parsers.expat.ExpatError as err:
logging.warning("XML parsing error. The received message from websocket is not XML.")
return
except Exception as err:
logging.warning("Operation failed.")
return
try:
result = thexml.getElementsByTagName("ns34:status")[0].firstChild.nodeValue
fdn = thexml.getElementsByTagName("ns34:fdn")[0].firstChild.nodeValue
logging.info("EPNM generated SRRG: " + fdn)
logging.info("Result: " + result)
return result
except Exception as err:
logging.warning("Error parsing response")
logging.warning(xmlresponse)
return
| 42.476268
| 112
| 0.568875
| 3,055
| 25,953
| 4.746318
| 0.081833
| 0.067517
| 0.054
| 0.024828
| 0.885379
| 0.858483
| 0.834
| 0.816552
| 0.790276
| 0.76469
| 0
| 0.018286
| 0.289909
| 25,953
| 610
| 113
| 42.545902
| 0.768517
| 0.039764
| 0
| 0.755814
| 0
| 0
| 0.199486
| 0.043656
| 0.007752
| 0
| 0
| 0
| 0
| 1
| 0.044574
| false
| 0.063953
| 0.011628
| 0
| 0.093023
| 0.007752
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
a5ef59cee6b2084862b266e02b65636da26a28ad
| 65
|
py
|
Python
|
commands1.py
|
Coolman4128/python-food
|
f5d4dbb2d541bb52641e57824f849431e89c87f5
|
[
"MIT"
] | null | null | null |
commands1.py
|
Coolman4128/python-food
|
f5d4dbb2d541bb52641e57824f849431e89c87f5
|
[
"MIT"
] | null | null | null |
commands1.py
|
Coolman4128/python-food
|
f5d4dbb2d541bb52641e57824f849431e89c87f5
|
[
"MIT"
] | null | null | null |
import subprocess
import socketworks
def processTerm():
pass
| 13
| 18
| 0.784615
| 7
| 65
| 7.285714
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169231
| 65
| 5
| 19
| 13
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0.5
| 0
| 0.75
| 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
| 1
| 0
| 1
| 0
|
0
| 7
|
57291af5f5c7c9ccdaa8675228af7b353a6ddd7e
| 82,414
|
py
|
Python
|
xsge_physics/xsge_physics/__init__.py
|
python-sge/xsge
|
601d7eb06599be85f1f67303fe5fc79a0c332798
|
[
"CC0-1.0"
] | 2
|
2020-09-15T15:50:52.000Z
|
2020-09-19T06:27:14.000Z
|
xsge_physics/xsge_physics/__init__.py
|
python-sge/xsge
|
601d7eb06599be85f1f67303fe5fc79a0c332798
|
[
"CC0-1.0"
] | null | null | null |
xsge_physics/xsge_physics/__init__.py
|
python-sge/xsge
|
601d7eb06599be85f1f67303fe5fc79a0c332798
|
[
"CC0-1.0"
] | null | null | null |
# xSGE Physics Framework
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
xSGE is a collection of higher-level extensions for the SGE which
enhance the core functionality in an implementation-independent way.
Like the SGE itself, they are distribted under the terms of the GNU
Lesser General Public License.
This extension provides an easy-to-use framework for collision physics.
This is especially useful for platformers, though it can also be useful
for other types of games.
.. note::
This collision system supports plain rectangle-based collision
detection ONLY. Attempting to use precise or ellipse collision
detection will not work as you expect, and may often not even work at
all. This is because implementing support for such mask-based
collision detection would be guaranteed to be slow, unreliable, and
needlessly complicated; it's not worth it.
If you must use precise collision detection, consider doing so with
a separate object that follows the appropriate :class:`Collider`
object.
"""
__version__ = "0.13.3"
__all__ = ["Collider", "Wall", "SolidLeft", "SolidRight", "SolidTop",
"SolidBottom", "Solid", "SlopeTopLeft", "SlopeTopRight",
"SlopeBottomLeft", "SlopeBottomRight", "MobileWall"]
import math
import sge
NDIG = 6
class Collider(sge.dsp.Object):
"""
Class for objects which have physics interactions.
.. note::
This class depends on use of :meth:`Collider.move_x` and
:meth:`Collider.move_y` to handle physics interactions.
:meth:`event_update_position` uses these methods, so speed
attributes will work properly, but changing :attr:`x` and
:attr:`y` manually will not cause any physics to occur.
.. attribute:: nonstick_left
.. attribute:: nonstick_right
.. attribute:: nonstick_top
.. attribute:: nonstick_bottom
These attributes are used by certain wall classes to exclude the
object from "sticking" to the wall. See the documentation for
the wall classes for more information.
Default value: :const:`False`
.. attribute:: slope_acceleration
The factor by which the collider accelerates on slopes. This is
multiplied by the :attr:`slope_xacceleration` and
:attr:`slope_yacceleration` values of any slopes the collider is
touching and added to the use of :attr:`xacceleration` and
:attr:`yacceleration` by :meth:`event_update_position`.
Default value: ``0``
"""
nonstick_left = False
nonstick_right = False
nonstick_top = False
nonstick_bottom = False
slope_acceleration = 0
def move_x(self, move, absolute=False, do_events=True, exclude_events=()):
"""
Move the object horizontally, handling physics.
Arguments:
- ``move`` -- The amount to add to :attr:`x`.
- ``absolute`` -- If set to :const:`True`, the distance moved
horizontally is absolute, i.e. will not be reduced as a result
of vertical movement caused by slopes. Otherwise, any
vertical movement caused by slopes will result in a reduction
of horizontal movement.
- ``do_events`` -- Whether or not physics collision events
should be executed when appropriate.
- ``exclude_events`` -- A set, list, or tuple of wall objects
which should not cause collision events to be executed if
collided with.
"""
exclude_events = set(exclude_events)
exclude_events.add(None)
sticky = False
move_mult = 1
old_x = self.x
old_y = self.y
old_bbox_left = self.bbox_left
old_bbox_right = self.bbox_right
old_bbox_top = self.bbox_top
old_bbox_bottom = self.bbox_bottom
rold_bbox_top = round(old_bbox_top, NDIG)
rold_bbox_bottom = round(old_bbox_bottom, NDIG)
on_floor = None
on_ceil = None
def get_on_floor(on_floor, self=self, old_x=old_x, old_y=old_y):
if on_floor is not None:
return on_floor
else:
new_x = self.x
new_y = self.y
self.x = old_x
self.y = old_y
on_floor = (self.get_bottom_touching_wall() or
self.get_bottom_touching_slope())
self.x = new_x
self.y = new_y
return on_floor
def get_on_ceil(on_ceil, self=self, old_x=old_x, old_y=old_y):
if on_ceil is not None:
return on_ceil
else:
new_x = self.x
new_y = self.y
self.x = old_x
self.y = old_y
on_ceil = (self.get_top_touching_wall() or
self.get_top_touching_slope())
self.x = new_x
self.y = new_y
return on_ceil
if move > 0:
if not self.nonstick_bottom:
bbb = round(self.bbox_bottom, NDIG)
for slope in self.collision(SlopeTopRight, y=(self.y + 1)):
if slope.xsticky_top:
y = round(slope.get_slope_y(self.bbox_left), NDIG)
if bbb == y:
sticky = 1
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_width / h
break
elif (self.bbox_left <= slope.bbox_left and
not self.collision(slope)):
sticky = 1
break
if not sticky and not self.nonstick_top:
bbt = round(self.bbox_top, NDIG)
for slope in self.collision(SlopeBottomRight, y=(self.y - 1)):
if slope.xsticky_bottom:
y = round(slope.get_slope_y(self.bbox_left), NDIG)
if bbt == y:
sticky = 2
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_width / h
break
elif (self.bbox_left <= slope.bbox_left and
not self.collision(slope)):
sticky = 2
break
self.x += move * move_mult
stopper = None
slopes = self.collision(SlopeTopLeft)
def key(s, self=self): return s.get_slope_x(self.bbox_bottom)
slopes.sort(key=key)
for other in slopes:
y = other.get_slope_y(self.bbox_right)
if self.bbox_bottom > y:
oy = round(other.get_slope_y(old_bbox_right), NDIG)
if rold_bbox_bottom <= oy:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_width / h
if m < move_mult:
self.x -= move * (move_mult - m)
move_mult = m
y = other.get_slope_y(self.bbox_right)
self.move_y(y - self.bbox_bottom, do_events=do_events,
exclude_events=exclude_events)
x = other.get_slope_x(self.bbox_bottom)
diff = self.bbox_right - x
if diff > 0:
self.bbox_right = x
if self.bbox_bottom == y:
self.move_x(diff, do_events=do_events,
exclude_events=exclude_events)
on_floor = get_on_floor(on_floor)
if on_floor:
stopper = other
elif not self.collision(other, x=old_x):
self.bbox_right = min(self.bbox_right, other.bbox_left)
stopper = other
slopes = self.collision(SlopeBottomLeft)
def key(s, self=self): return s.get_slope_x(self.bbox_top)
slopes.sort(key=key)
for other in slopes:
y = other.get_slope_y(self.bbox_right)
if self.bbox_top < y:
oy = round(other.get_slope_y(old_bbox_right), NDIG)
if rold_bbox_top >= oy:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_width / h
if m < move_mult:
self.x -= move * (move_mult - m)
move_mult = m
y = other.get_slope_y(self.bbox_right)
self.move_y(y - self.bbox_top, do_events=do_events,
exclude_events=exclude_events)
x = other.get_slope_x(self.bbox_top)
diff = self.bbox_right - x
if diff > 0:
self.bbox_right = x
if self.bbox_top == y:
self.move_x(diff, do_events=do_events,
exclude_events=exclude_events)
on_ceil = get_on_ceil(on_ceil)
if on_ceil:
stopper = other
elif not self.collision(other, x=old_x):
self.bbox_right = min(self.bbox_right, other.bbox_left)
stopper = other
for other in self.collision(SolidLeft):
if not self.collision(other, x=old_x):
self.bbox_right = min(self.bbox_right, other.bbox_left)
stopper = other
if do_events and stopper not in exclude_events:
move_loss = max(0, abs(move) - abs(self.x - old_x))
self.event_physics_collision_right(stopper, move_loss)
stopper.event_physics_collision_left(self, 0)
elif move < 0:
if not self.nonstick_bottom:
bbb = round(self.bbox_bottom, NDIG)
for slope in self.collision(SlopeTopLeft, y=(self.y + 1)):
if slope.xsticky_top:
y = round(slope.get_slope_y(self.bbox_right), NDIG)
if bbb == y:
sticky = 1
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_width / h
break
elif (self.bbox_right >= slope.bbox_right and
not self.collision(slope)):
sticky = 1
break
if not sticky and not self.nonstick_top:
bbt = round(self.bbox_top, NDIG)
for slope in self.collision(SlopeBottomLeft, y=(self.y - 1)):
if slope.xsticky_bottom:
y = round(slope.get_slope_y(self.bbox_right), NDIG)
if bbt == y:
sticky = 2
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_width / h
break
elif (self.bbox_right >= slope.bbox_right and
not self.collision(slope)):
sticky = 2
break
self.x += move * move_mult
stopper = None
slopes = self.collision(SlopeTopRight)
def key(s, self=self): return -s.get_slope_x(self.bbox_bottom)
slopes.sort(key=key)
for other in slopes:
y = other.get_slope_y(self.bbox_left)
if self.bbox_bottom > y:
oy = round(other.get_slope_y(old_bbox_left), NDIG)
if rold_bbox_bottom <= oy:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_width / h
if m < move_mult:
self.x -= move * (move_mult - m)
move_mult = m
y = other.get_slope_y(self.bbox_left)
self.move_y(y - self.bbox_bottom, do_events=do_events,
exclude_events=exclude_events)
x = other.get_slope_x(self.bbox_bottom)
diff = self.bbox_left - x
if diff < 0:
self.bbox_left = x
if self.bbox_bottom == y:
self.move_x(diff, do_events=do_events,
exclude_events=exclude_events)
on_floor = get_on_floor(on_floor)
if on_floor:
stopper = other
elif not self.collision(other, x=old_x):
self.bbox_left = max(self.bbox_left, other.bbox_right)
stopper = other
slopes = self.collision(SlopeBottomRight)
def key(s, self=self): return -s.get_slope_x(self.bbox_top)
slopes.sort(key=key)
for other in slopes:
y = other.get_slope_y(self.bbox_left)
if self.bbox_top < y:
oy = round(other.get_slope_y(old_bbox_left), NDIG)
if rold_bbox_top >= oy:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_width / h
if m < move_mult:
self.x -= move * (move_mult - m)
move_mult = m
y = other.get_slope_y(self.bbox_left)
self.move_y(y - self.bbox_top, do_events=do_events,
exclude_events=exclude_events)
x = other.get_slope_x(self.bbox_top)
diff = self.bbox_left - x
if diff < 0:
self.bbox_left = x
if self.bbox_top == y:
self.move_x(diff, do_events=do_events,
exclude_events=exclude_events)
on_ceil = get_on_ceil(on_ceil)
if on_ceil:
stopper = other
elif not self.collision(other, x=old_x):
self.bbox_left = max(self.bbox_left, other.bbox_right)
stopper = other
for other in self.collision(SolidRight):
if not self.collision(other, x=old_x):
self.bbox_left = max(self.bbox_left, other.bbox_right)
stopper = other
if do_events and stopper not in exclude_events:
move_loss = max(0, abs(move) - abs(self.x - old_x))
self.event_physics_collision_left(stopper, move_loss)
stopper.event_physics_collision_right(self, 0)
# Engage stickiness (same whether moving left or right)
# 1 = sticking to the floor
# 2 = sticking to the ceiling
if sticky == 1:
if (not self.get_bottom_touching_slope() and
not self.get_bottom_touching_wall()):
new_bbox_bottom = None
others = (
sge.game.current_room.get_objects_at(
self.bbox_left, self.bbox_top, self.bbox_width,
(sge.game.current_room.height - self.bbox_top +
sge.game.current_room.object_area_height)) |
sge.game.current_room.object_area_void)
for other in others:
if (other.bbox_left >= self.bbox_right or
other.bbox_right <= self.bbox_left):
continue
if isinstance(other, SolidTop):
y = other.bbox_top
elif isinstance(other, SlopeTopLeft):
y = other.get_slope_y(self.bbox_right)
elif isinstance(other, SlopeTopRight):
y = other.get_slope_y(self.bbox_left)
else:
continue
if (y >= self.bbox_bottom and
(new_bbox_bottom is None or
y < new_bbox_bottom)):
new_bbox_bottom = y
if new_bbox_bottom is not None:
self.bbox_bottom = new_bbox_bottom
elif sticky == 2:
if (not self.get_top_touching_slope() and
not self.get_top_touching_wall()):
new_bbox_top = None
others = (
sge.game.current_room.get_objects_at(
self.bbox_left, 0, self.bbox_width, self.bbox_bottom) |
sge.game.current_room.object_area_void)
for other in others:
if (other.bbox_left >= self.bbox_right or
other.bbox_right <= self.bbox_left):
continue
if isinstance(other, SolidBottom):
y = other.bbox_bottom
elif isinstance(other, SlopeBottomLeft):
y = other.get_slope_y(self.bbox_right)
elif isinstance(other, SlopeBottomRight):
y = other.get_slope_y(self.bbox_left)
else:
continue
if y <= self.bbox_top and (new_bbox_top is None or
y > new_bbox_top):
new_bbox_top = y
if new_bbox_top is not None:
self.bbox_top = new_bbox_top
def move_y(self, move, absolute=False, do_events=True, exclude_events=()):
"""
Move the object vertically, handling physics.
Arguments:
- ``move`` -- The amount to add to :attr:`y`.
- ``absolute`` -- If set to :const:`True`, the distance moved
vertically is absolute, i.e. will not be reduced as a result
of horizontal movement caused by slopes. Otherwise, any
horizontal movement caused by slopes will result in a
reduction of vertical movement.
- ``do_events`` -- Whether or not physics collision events
should be executed when appropriate.
- ``exclude_events`` -- A set, list, or tuple of wall objects
which should not cause collision events to be executed if
collided with.
"""
exclude_events = set(exclude_events)
exclude_events.add(None)
sticky = False
move_mult = 1
old_x = self.x
old_y = self.y
old_bbox_left = self.bbox_left
old_bbox_right = self.bbox_right
rold_bbox_left = round(old_bbox_left, NDIG)
rold_bbox_right = round(old_bbox_right, NDIG)
old_bbox_top = self.bbox_top
old_bbox_bottom = self.bbox_bottom
on_right = None
on_left = None
def get_on_right(on_right, self=self, old_x=old_x, old_y=old_y):
if on_right is not None:
return on_right
else:
new_x = self.x
new_y = self.y
self.x = old_x
self.y = old_y
on_right = (self.get_right_touching_wall() or
self.get_right_touching_slope())
self.x = new_x
self.y = new_y
return on_right
def get_on_left(on_left, self=self, old_x=old_x, old_y=old_y):
if on_left is not None:
return on_left
else:
new_x = self.x
new_y = self.y
self.x = old_x
self.y = old_y
on_left = (self.get_left_touching_wall() or
self.get_left_touching_slope())
self.x = new_x
self.y = new_y
return on_left
if move > 0:
if not self.nonstick_right:
bbr = round(self.bbox_right, NDIG)
for slope in self.collision(SlopeBottomLeft, x=(self.x + 1)):
if slope.ysticky_left:
x = round(slope.get_slope_x(self.bbox_top), NDIG)
if bbr == x:
sticky = 1
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_height / h
break
elif (self.bbox_top <= slope.bbox_top and
not self.collision(slope)):
sticky = 1
break
if not sticky and not self.nonstick_left:
bbl = round(self.bbox_left, NDIG)
for slope in self.collision(SlopeBottomRight, x=(self.x - 1)):
if slope.ysticky_right:
x = round(slope.get_slope_x(self.bbox_top), NDIG)
if bbl == x:
sticky = 2
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_height / h
break
elif (self.bbox_top <= slope.bbox_top and
not self.collision(slope)):
sticky = 2
break
self.y += move * move_mult
stopper = None
slopes = self.collision(SlopeTopLeft)
def key(s, self=self): return s.get_slope_y(self.bbox_right)
slopes.sort(key=key)
for other in slopes:
x = other.get_slope_x(self.bbox_bottom)
if self.bbox_right > x:
ox = round(other.get_slope_x(old_bbox_bottom), NDIG)
if rold_bbox_right <= ox:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_height / h
if m < move_mult:
self.y -= move * (move_mult - m)
move_mult = m
x = other.get_slope_x(self.bbox_bottom)
self.move_x(x - self.bbox_right, do_events=do_events,
exclude_events=exclude_events)
y = other.get_slope_y(self.bbox_right)
diff = self.bbox_bottom - y
if diff > 0:
self.bbox_bottom = y
if self.bbox_right == x:
self.move_y(diff, do_events=do_events,
exclude_events=exclude_events)
on_right = get_on_right(on_right)
if on_right:
stopper = other
elif not self.collision(other, y=old_y):
self.bbox_bottom = min(self.bbox_bottom,
other.bbox_top)
stopper = other
slopes = self.collision(SlopeTopRight)
def key(s, self=self): return s.get_slope_y(self.bbox_left)
slopes.sort(key=key)
for other in slopes:
x = other.get_slope_x(self.bbox_bottom)
if self.bbox_left < x:
ox = round(other.get_slope_x(old_bbox_bottom), NDIG)
if rold_bbox_left >= ox:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_height / h
if m < move_mult:
self.y -= move * (move_mult - m)
move_mult = m
x = other.get_slope_x(self.bbox_bottom)
self.move_x(x - self.bbox_left, do_events=do_events,
exclude_events=exclude_events)
y = other.get_slope_y(self.bbox_left)
diff = self.bbox_bottom - y
if diff > 0:
self.bbox_bottom = y
if self.bbox_left == x:
self.move_y(diff, do_events=do_events,
exclude_events=exclude_events)
on_left = get_on_left(on_left)
if on_left:
stopper = other
elif not self.collision(other, y=old_y):
self.bbox_bottom = min(self.bbox_bottom,
other.bbox_top)
stopper = other
for other in self.collision(SolidTop):
if not self.collision(other, y=old_y):
self.bbox_bottom = min(self.bbox_bottom, other.bbox_top)
stopper = other
if do_events and stopper not in exclude_events:
move_loss = max(0, abs(move) - abs(self.y - old_y))
self.event_physics_collision_bottom(stopper, move_loss)
stopper.event_physics_collision_top(self, 0)
elif move < 0:
if not self.nonstick_right:
bbr = round(self.bbox_right, NDIG)
for slope in self.collision(SlopeTopLeft, x=(self.x + 1)):
if slope.ysticky_left:
x = round(slope.get_slope_x(self.bbox_bottom), NDIG)
if bbr == x:
sticky = 1
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_height / h
break
elif (self.bbox_bottom >= slope.bbox_bottom and
not self.collision(slope)):
sticky = 1
break
if not sticky and not self.nonstick_left:
bbl = round(self.bbox_left, NDIG)
for slope in self.collision(SlopeTopRight, x=(self.x - 1)):
if slope.ysticky_right:
x = round(slope.get_slope_x(self.bbox_bottom), NDIG)
if bbl == x:
sticky = 2
if not absolute:
h = math.hypot(slope.bbox_width,
slope.bbox_height)
move_mult = slope.bbox_height / h
break
elif (self.bbox_bottom >= slope.bbox_bottom and
not self.collision(slope)):
sticky = 2
break
self.y += move * move_mult
stopper = None
slopes = self.collision(SlopeBottomLeft)
def key(s, self=self): return -s.get_slope_y(self.bbox_right)
slopes.sort(key=key)
for other in slopes:
x = other.get_slope_x(self.bbox_top)
if self.bbox_right > x:
ox = round(other.get_slope_x(old_bbox_top), NDIG)
if rold_bbox_right <= ox:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_height / h
if m < move_mult:
self.y -= move * (move_mult - m)
move_mult = m
x = other.get_slope_x(self.bbox_top)
self.move_x(x - self.bbox_right, do_events=do_events,
exclude_events=exclude_events)
y = other.get_slope_y(self.bbox_right)
diff = self.bbox_top - y
if diff < 0:
self.bbox_top = y
if self.bbox_right == x:
self.move_y(diff, do_events=do_events,
exclude_events=exclude_events)
on_right = get_on_right(on_right)
if on_right:
stopper = other
elif not self.collision(other, y=old_y):
self.bbox_top = max(self.bbox_top, other.bbox_bottom)
stopper = other
slopes = self.collision(SlopeBottomRight)
def key(s, self=self): return -s.get_slope_y(self.bbox_left)
slopes.sort(key=key)
for other in self.collision(SlopeBottomRight):
x = other.get_slope_x(self.bbox_top)
if self.bbox_left < x:
ox = round(other.get_slope_x(old_bbox_top), NDIG)
if rold_bbox_left >= ox:
if not absolute:
h = math.hypot(other.bbox_width, other.bbox_height)
m = other.bbox_height / h
if m < move_mult:
self.y -= move * (move_mult - m)
move_mult = m
x = other.get_slope_x(self.bbox_top)
self.move_x(x - self.bbox_left, do_events=do_events,
exclude_events=exclude_events)
y = other.get_slope_y(self.bbox_left)
diff = self.bbox_top - y
if diff < 0:
self.bbox_top = y
if self.bbox_left == x:
self.move_y(diff, do_events=do_events,
exclude_events=exclude_events)
on_left = get_on_left(on_left)
if on_left:
stopper = other
elif not self.collision(other, y=old_y):
self.bbox_top = max(self.bbox_top, other.bbox_bottom)
stopper = other
for other in self.collision(SolidBottom):
if not self.collision(other, y=old_y):
self.bbox_top = max(self.bbox_top, other.bbox_bottom)
stopper = other
if do_events and stopper not in exclude_events:
move_loss = max(0, abs(move) - abs(self.y - old_y))
self.event_physics_collision_top(stopper, move_loss)
stopper.event_physics_collision_bottom(self, 0)
# Engage stickiness (same whether moving left or right)
# 1 = sticking to a wall on the right
# 2 = sticking to a wall on the left
if sticky == 1:
if (not self.get_right_touching_slope() and
not self.get_right_touching_wall()):
new_bbox_right = None
others = (
sge.game.current_room.get_objects_at(
self.bbox_left, self.bbox_top,
(sge.game.current_room.width - self.bbox_left +
sge.game.current_room.object_area_width),
self.bbox_height) |
sge.game.current_room.object_area_void)
for other in others:
if (other.bbox_top >= self.bbox_bottom or
other.bbox_bottom <= self.bbox_top):
continue
if isinstance(other, SolidLeft):
x = other.bbox_left
elif isinstance(other, SlopeTopLeft):
x = other.get_slope_x(self.bbox_bottom)
elif isinstance(other, SlopeBottomLeft):
x = other.get_slope_x(self.bbox_top)
else:
continue
if x >= self.bbox_right and (new_bbox_right is None or
x < new_bbox_right):
new_bbox_right = x
if new_bbox_right is not None:
self.bbox_right = new_bbox_right
elif sticky == 2:
if (not self.get_left_touching_slope() and
not self.get_left_touching_wall()):
new_bbox_left = None
others = (
sge.game.current_room.get_objects_at(
0, self.bbox_top, self.bbox_right, self.bbox_height) |
sge.game.current_room.object_area_void)
for other in others:
if (other.bbox_top >= self.bbox_bottom or
other.bbox_bottom <= self.bbox_top):
continue
if isinstance(other, SolidRight):
x = other.bbox_right
elif isinstance(other, SlopeTopRight):
x = other.get_slope_x(self.bbox_bottom)
elif isinstance(other, SlopeBottomRight):
x = other.get_slope_x(self.bbox_top)
else:
continue
if x <= self.bbox_left and (new_bbox_left is None or
x > new_bbox_left):
new_bbox_left = x
if new_bbox_left is not None:
self.bbox_left = new_bbox_left
def get_left_touching_wall(self):
"""
Return a list of :class:`SolidRight` objects whose right sides
are touching the left side of this object.
"""
r = []
for tile in self.collision(SolidRight, x=(self.x - 1)):
if not self.collision(tile):
r.append(tile)
return r
def get_right_touching_wall(self):
"""
Return a list of :class:`SolidLeft` objects whose left sides are
touching the right side of this object.
"""
r = []
for tile in self.collision(SolidLeft, x=(self.x + 1)):
if not self.collision(tile):
r.append(tile)
return r
def get_top_touching_wall(self):
"""
Return a list of :class:`SolidTop` objects whose top sides are
touching the bottom side of this object.
"""
r = []
for tile in self.collision(SolidBottom, y=(self.y - 1)):
if not self.collision(tile):
r.append(tile)
return r
def get_bottom_touching_wall(self):
"""
Return a list of :class:`SolidBottom` objects whose bottom sides
are touching the top side of this object.
"""
r = []
for tile in self.collision(SolidTop, y=(self.y + 1)):
if not self.collision(tile):
r.append(tile)
return r
def get_left_touching_slope(self):
"""
Return a list of :class:`SlopeTopRight` and
:class:`SlopeBottomRight` objects whose right sides are touching
the left side of this object.
"""
r = []
bbb = round(self.bbox_bottom, NDIG)
for slope in self.collision(SlopeTopRight, x=(self.x - 1)):
y = round(slope.get_slope_y(self.bbox_left), NDIG)
if bbb == y or (self.bbox_bottom >= slope.bbox_bottom and
not self.collision(slope)):
r.append(slope)
bbt = round(self.bbox_top, NDIG)
for slope in self.collision(SlopeBottomRight, x=(self.x - 1)):
y = round(slope.get_slope_y(self.bbox_left), NDIG)
if bbt == y or (self.bbox_top <= slope.bbox_top and
not self.collision(slope)):
r.append(slope)
return r
def get_right_touching_slope(self):
"""
Return a list of :class:`SlopeTopLeft` and
:class:`SlopeBottomLeft` objects whose left sides are touching
the right side of this object.
"""
r = []
bbb = round(self.bbox_bottom, NDIG)
for slope in self.collision(SlopeTopLeft, x=(self.x + 1)):
y = round(slope.get_slope_y(self.bbox_right), NDIG)
if bbb == y or (self.bbox_bottom >= slope.bbox_bottom and
not self.collision(slope)):
r.append(slope)
bbt = round(self.bbox_top, NDIG)
for slope in self.collision(SlopeBottomLeft, x=(self.x + 1)):
y = round(slope.get_slope_y(self.bbox_right), NDIG)
if bbt == y or (self.bbox_top <= slope.bbox_top and
not self.collision(slope)):
r.append(slope)
return r
def get_top_touching_slope(self):
"""
Return a list of :class:`SlopeBottomLeft` and
:class:`SlopeBottomRight` objects whose bottom sides are
touching the top side of this object.
"""
r = []
bbr = round(self.bbox_right, NDIG)
for slope in self.collision(SlopeBottomLeft, y=(self.y - 1)):
x = round(slope.get_slope_x(self.bbox_top), NDIG)
if bbr == x or (self.bbox_right >= slope.bbox_right and
not self.collision(slope)):
r.append(slope)
bbl = round(self.bbox_left, NDIG)
for slope in self.collision(SlopeBottomRight, y=(self.y - 1)):
x = round(slope.get_slope_x(self.bbox_top), NDIG)
if bbl == x or (self.bbox_left <= slope.bbox_left and
not self.collision(slope)):
r.append(slope)
return r
def get_bottom_touching_slope(self):
"""
Return a list of :class:`SlopeTopLeft` and
:class:`SlopeTopRight` objects whose top sides are touching the
bottom side of this object.
"""
r = []
bbr = round(self.bbox_right, NDIG)
for slope in self.collision(SlopeTopLeft, y=(self.y + 1)):
x = round(slope.get_slope_x(self.bbox_bottom), NDIG)
if bbr == x or (self.bbox_right >= slope.bbox_right and
not self.collision(slope)):
r.append(slope)
bbl = round(self.bbox_left, NDIG)
for slope in self.collision(SlopeTopRight, y=(self.y + 1)):
x = round(slope.get_slope_x(self.bbox_bottom), NDIG)
if bbl == x or (self.bbox_left <= slope.bbox_left and
not self.collision(slope)):
r.append(slope)
return r
def event_physics_collision_left(self, other, move_loss):
"""
Called when the left side of the collider collides with a wall
or slope in the sense of the physics system, rather than in the
sense of SGE collision detection.
Arguments:
- ``move_loss`` -- The amount of movement that was prevented by
the collision in pixels. For example, if the object would
have moved 6 pixels, but only moved 2 pixels as a result of
this collision, this value will be ``4``. This can be used to
undo such a reduction in movement.
See the documentation for :meth:`sge.dsp.Object.event_collision`
for more information.
"""
pass
def event_physics_collision_right(self, other, move_loss):
"""
Called when the right side of the collider collides with a wall
or slope in the sense of the physics system, rather than in the
sense of SGE collision detection. See the documentation for
:meth:`xsge_physics.Collider.event_physics_collision_left` for
more information.
"""
pass
def event_physics_collision_top(self, other, move_loss):
"""
Called when the top side of the collider collides with a wall or
slope in the sense of the physics system, rather than in the
sense of SGE collision detection. See the documentation for
:meth:`xsge_physics.Collider.event_physics_collision_left` for
more information.
"""
pass
def event_physics_collision_bottom(self, other, move_loss):
"""
Called when the bottom side of the collider collides with a wall
or slope in the sense of the physics system, rather than in the
sense of SGE collision detection. See the documentation for
:meth:`xsge_physics.Collider.event_physics_collision_left` for
more information.
"""
pass
def event_update_position(self, delta_mult):
if delta_mult:
xaccel = self.xacceleration
yaccel = self.yacceleration
if self.slope_acceleration:
for slope in set(self.get_left_touching_slope() +
self.get_right_touching_slope() +
self.get_top_touching_slope() +
self.get_bottom_touching_slope()):
xaccel += slope.slope_xacceleration * self.slope_acceleration
yaccel += slope.slope_yacceleration * self.slope_acceleration
vi = self.xvelocity
vf = vi + xaccel * delta_mult
dc = abs(self.xdeceleration) * delta_mult
if abs(vf) > dc:
vf -= math.copysign(dc, vf)
else:
vf = 0
self.xvelocity = vf
self.move_x(((vi + vf) / 2) * delta_mult)
vi = self.yvelocity
vf = vi + yaccel * delta_mult
dc = abs(self.ydeceleration) * delta_mult
if abs(vf) > dc:
vf -= math.copysign(dc, vf)
else:
vf = 0
self.yvelocity = vf
self.move_y(((vi + vf) / 2) * delta_mult)
class Wall(sge.dsp.Object):
"""
Base class for all wall objects that :class:`Collider` objects
interact with in some way. It is functionally identical to its
parent class, :class:`sge.dsp.Object`.
"""
class SolidLeft(Wall):
"""
Class for walls which stop movement of :class:`Collider` objects
from the top.
"""
def event_physics_collision_left(self, other, move_loss):
"""
Called when the left side of the wall collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class SolidRight(Wall):
"""
Class for walls which stop movement of :class:`Collider` objects
from the right.
"""
def event_physics_collision_right(self, other, move_loss):
"""
Called when the right side of the wall collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class SolidTop(Wall):
"""
Class for walls which stop movement of :class:`Collider` objects
from the top.
"""
def event_physics_collision_top(self, other, move_loss):
"""
Called when the top side of the wall collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class SolidBottom(Wall):
"""
Class for walls which stop movement of :class:`Collider` objects
from the bottom.
"""
def event_physics_collision_bottom(self, other, move_loss):
"""
Called when the bottom side of the wall collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class Solid(SolidLeft, SolidRight, SolidTop, SolidBottom):
"""
Inherits :class:`SolidLeft`, :class:`SolidRight`, :class:`SolidTop`,
and :class:`SolidBottom`. Meant to be a convenient parent class for
walls that should stop movement in all directions.
"""
class Slope(Wall):
"""
Base class for all slopes.
.. attribute:: slope_xacceleration
Indicates the amount of horizontal acceleration to apply to any
collider which is touching the slope. It is multiplied by the
affected colliders' :attr:`slope_acceleration` values and added
to their use of :attr:`xacceleration` in
:meth:`event_update_position`.
Default value: ``0``
.. attribute:: slope_yacceleration
Indicates the amount of vertical acceleration to apply to any
collider which is touching the slope. It is multiplied by the
affected colliders' :attr:`slope_acceleration` values and added
to their use of :attr:`yacceleration` in
:meth:`event_update_position`.
Default value: ``0``
"""
slope_xacceleration = 0
slope_yacceleration = 0
class SlopeTopLeft(Slope):
"""
A parent class for slopes which point in some direction upwards and
to the left.
Slopes of this type go from the bottom-left corner to the top-right
corner of the bounding box.
.. attribute:: xsticky_top
If set to :const:`True`, a collider that moves to the left while
touching the top side of the slope will attempt to keep touching
the top side of the slope by moving downward, unless the
collider's :attr:`nonstick_bottom` value is :const:`True`.
Default value: :const:`False`
.. attribute:: ysticky_left
If set to :const:`True`, a collider that moves upward while
touching the left side of the slope will attempt to keep touching
the left side of the slope by moving to the right, unless the
collider's :attr:`nonstick_right` value is :const:`True`.
Default value: :const:`False`
.. attribute:: slope_xacceleration
See the documentation for :attr:`Slope.slope_xacceleration`.
.. attribute:: slope_yacceleration
See the documentation for :attr:`Slope.slope_yacceleration`.
"""
xsticky_top = False
ysticky_left = False
def get_slope_x(self, y):
"""
Get the corresponding x coordinate of a given y coordinate for
the slope.
"""
# x = (y - b) / m [b is 0]
m = -self.bbox_height / self.bbox_width
y -= self.bbox_top
x = y / m + self.bbox_right
return max(self.bbox_left, min(x, self.bbox_right))
def get_slope_y(self, x):
"""
Get the corresponding y coordinate of a given x coordinate for
the slope.
"""
# y = mx + b [b is 0]
m = -self.bbox_height / self.bbox_width
x -= self.bbox_left
y = m * x + self.bbox_bottom
return max(self.bbox_top, min(y, self.bbox_bottom))
def event_physics_collision_left(self, other, move_loss):
"""
Called when the left side of the slope collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
def event_physics_collision_top(self, other, move_loss):
"""
Called when the top side of the slope collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class SlopeTopRight(Slope):
"""
A parent class for slopes which point in some direction upwards and
to the right.
Slopes of this type go from the top-left corner to the bottom-right
corner of the bounding box.
.. attribute:: xsticky_top
If set to :const:`True`, a collider that moves to the right while
touching the top side of the slope will attempt to keep touching
the top side of the slope by moving downward, unless the
collider's :attr:`nonstick_bottom` value is :const:`True`.
Default value: :const:`False`
.. attribute:: ysticky_right
If set to :const:`True`, a collider that moves upward while
touching the right side of the slope will attempt to keep
touching the right side of the slope by moving to the left,
unless the collider's :attr:`nonstick_left` value is
:const:`True`.
Default value: :const:`False`
.. attribute:: slope_xacceleration
See the documentation for :attr:`Slope.slope_xacceleration`.
.. attribute:: slope_yacceleration
See the documentation for :attr:`Slope.slope_yacceleration`.
"""
xsticky_top = False
ysticky_right = False
def get_slope_x(self, y):
"""
Get the corresponding x coordinate of a given y coordinate for
the slope.
"""
# x = (y - b) / m [b is 0]
m = self.bbox_height / self.bbox_width
y -= self.bbox_top
x = y / m + self.bbox_left
return max(self.bbox_left, min(x, self.bbox_right))
def get_slope_y(self, x):
"""
Get the corresponding y coordinate of a given x coordinate for
the slope.
"""
# y = mx + b [b is 0]
m = self.bbox_height / self.bbox_width
x -= self.bbox_left
y = m * x + self.bbox_top
return max(self.bbox_top, min(y, self.bbox_bottom))
def event_physics_collision_right(self, other, move_loss):
"""
Called when the right side of the slope collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
def event_physics_collision_top(self, other, move_loss):
"""
Called when the top side of the slope collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class SlopeBottomLeft(Slope):
"""
A parent class for slopes which point in some direction upwards and
to the left.
Slopes of this type go from the top-left corner to the bottom-right
corner of the bounding box.
.. attribute:: xsticky_bottom
If set to :const:`True`, a collider that moves to the left while
touching the bottom side of the slope will attempt to keep
touching the bottom side of the slope by moving upward, unless
the collider's :attr:`nonstick_top` value is :const:`True`.
Default value: :const:`False`
.. attribute:: ysticky_left
If set to :const:`True`, a collider that moves downward while
touching the left side of the slope will attempt to keep touching
the left side of the slope by moving to the right, unless the
collider's :attr:`nonstick_right` value is :const:`True`.
Default value: :const:`False`
.. attribute:: slope_xacceleration
See the documentation for :attr:`Slope.slope_xacceleration`.
.. attribute:: slope_yacceleration
See the documentation for :attr:`Slope.slope_yacceleration`.
"""
xsticky_bottom = False
ysticky_left = False
def get_slope_x(self, y):
"""
Get the corresponding x coordinate of a given y coordinate for
the slope.
"""
# x = (y - b) / m [b is 0]
m = self.bbox_height / self.bbox_width
y -= self.bbox_top
x = y / m + self.bbox_left
return max(self.bbox_left, min(x, self.bbox_right))
def get_slope_y(self, x):
"""
Get the corresponding y coordinate of a given x coordinate for
the slope.
"""
# y = mx + b [b is 0]
m = self.bbox_height / self.bbox_width
x -= self.bbox_left
y = m * x + self.bbox_top
return max(self.bbox_top, min(y, self.bbox_bottom))
def event_physics_collision_left(self, other, move_loss):
"""
Called when the left side of the slope collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
def event_physics_collision_bottom(self, other, move_loss):
"""
Called when the bottom side of the slope collides with a
collider in the sense of the physics system, rather than in the
sense of SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class SlopeBottomRight(Slope):
"""
A parent class for slopes which point in some direction upwards and
to the right.
Slopes of this type go from the bottom-left corner to the top-right
corner of the bounding box.
.. attribute:: xsticky_bottom
If set to :const:`True`, a collider that moves to the right while
touching the bottom side of the slope will attempt to keep
touching the bottom side of the slope by moving upward, unless
the collider's :attr:`nonstick_top` value is :const:`True`.
Default value: :const:`False`
.. attribute:: ysticky_right
If set to :const:`True`, a collider that moves downward while
touching the right side of the slope will attempt to keep
touching the right side of the slope by moving to the right,
unless the collider's :attr:`nonstick_left` value is
:const:`True`.
Default value: :const:`False`
.. attribute:: slope_xacceleration
See the documentation for :attr:`Slope.slope_xacceleration`.
.. attribute:: slope_yacceleration
See the documentation for :attr:`Slope.slope_yacceleration`.
"""
xsticky_bottom = False
ysticky_right = False
def get_slope_x(self, y):
"""
Get the corresponding x coordinate of a given y coordinate for
the slope.
"""
# x = (y - b) / m [b is 0]
m = -self.bbox_height / self.bbox_width
y -= self.bbox_top
x = y / m + self.bbox_right
return max(self.bbox_left, min(x, self.bbox_right))
def get_slope_y(self, x):
"""
Get the corresponding y coordinate of a given x coordinate for
the slope.
"""
# y = mx + b [b is 0]
m = -self.bbox_height / self.bbox_width
x -= self.bbox_left
y = m * x + self.bbox_bottom
return max(self.bbox_top, min(y, self.bbox_bottom))
def event_physics_collision_right(self, other, move_loss):
"""
Called when the right side of the slope collides with a collider
in the sense of the physics system, rather than in the sense of
SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
def event_physics_collision_bottom(self, other, move_loss):
"""
Called when the bottom side of the slope collides with a
collider in the sense of the physics system, rather than in the
sense of SGE collision detection. See the documentation for
:meth:`sge.dsp.Object.event_collision` for more information.
"""
pass
class MobileWall(Wall):
"""
A parent class for walls and slopes that can move. When an object
of this class moves, it "pushes" any appropriate colliders, as a
real wall might be expected to do.
.. note::
For classes derived from this class to be useful, they also need
to inherit one or more of the other wall classes. Objects of
this class that are not also objects of other classes will
naturally not collide.
.. note::
This class depends on use of :meth:`MobileWall.move_x` and
:meth:`MobileWall.move_y` to handle physics interactions.
:meth:`event_update_position` uses these methods, so speed
attributes will work properly, but changing :attr:`x` and
:attr:`y` manually will not cause any physics to occur.
.. attribute:: push_left
If set to :const:`True`, the wall will push any colliders
collided with as a result of the wall's movement to the left.
Otherwise, the wall will pass through such colliders.
Default value: :const:`True`
.. attribute:: push_right
If set to :const:`True`, the wall will push any colliders
collided with as a result of the wall's movement to the right.
Otherwise, the wall will pass through such colliders.
Default value: :const:`True`
.. attribute:: push_up
If set to :const:`True`, the wall will push any colliders
collided with as a result of the wall's movement upwards.
Otherwise, the wall will pass through such colliders.
Default value: :const:`True`
.. attribute:: push_down
If set to :const:`True`, the wall will push any colliders
collided with as a result of the wall's movement downwards.
Otherwise, the wall will pass through such colliders.
Default value: :const:`True`
.. attribute:: sticky_left
If set to :const:`True`, any colliders touching the left side of
the wall will move along with it, regardless of the direction of
movement, with the exception of colliders whose
:attr:`nonstick_right` values are :const:`True`.
Default value: :const:`False`
.. attribute:: sticky_right
If set to :const:`True`, any colliders touching the right side of
the wall will move along with it, regardless of the direction of
movement, with the exception of colliders whose
:attr:`nonstick_left` values are :const:`True`.
Default value: :const:`False`
.. attribute:: sticky_top
If set to :const:`True`, any colliders touching the top side of
the wall will move along with it, regardless of the direction of
movement, with the exception of colliders whose
:attr:`nonstick_bottom` values are :const:`True`.
Default value: :const:`False`
.. attribute:: sticky_bottom
If set to :const:`True`, any colliders touching the bottom side
of the wall will move along with it, regardless of the direction
of movement, with the exception of colliders whose
:attr:`nonstick_top` values are :const:`True`.
Default value: :const:`False`
"""
push_left = True
push_right = True
push_up = True
push_down = True
sticky_left = False
sticky_right = False
sticky_top = False
sticky_bottom = False
def get_stuck_colliders(self):
"""
Return a list of :class:`Collider` objects which are "stuck" to
this wall (i.e. will move along with the wall regardless of
direction).
"""
stuck = []
if self.sticky_left:
if isinstance(self, SolidLeft):
for other in self.collision(Collider, x=(self.x - 1)):
if not other.nonstick_right and not self.collision(other):
stuck.append(other)
if isinstance(self, SlopeTopLeft):
for other in self.collision(Collider, x=(self.x - 1)):
x = self.get_slope_x(other.bbox_bottom)
if (not other.nonstick_right and other.bbox_right >= x and
(not self.collision(other) or
other.bbox_right - 1 < x)):
stuck.append(other)
if isinstance(self, SlopeBottomLeft):
for other in self.collision(Collider, x=(self.x - 1)):
x = self.get_slope_x(other.bbox_top)
if (not other.nonstick_right and other.bbox_right >= x and
(not self.collision(other) or
other.bbox_right - 1 < x)):
stuck.append(other)
if self.sticky_right:
if isinstance(self, SolidRight):
for other in self.collision(Collider, x=(self.x + 1)):
if not other.nonstick_left and not self.collision(other):
stuck.append(other)
if isinstance(self, SlopeTopRight):
for other in self.collision(Collider, x=(self.x + 1)):
x = self.get_slope_x(other.bbox_bottom)
if (not other.nonstick_left and other.bbox_left <= x and
(not self.collision(other) or
other.bbox_left + 1 > x)):
stuck.append(other)
if isinstance(self, SlopeBottomRight):
for other in self.collision(Collider, x=(self.x + 1)):
x = self.get_slope_x(other.bbox_top)
if (not other.nonstick_left and other.bbox_left <= x and
(not self.collision(other) or
other.bbox_left + 1 > x)):
stuck.append(other)
if self.sticky_top:
if isinstance(self, SolidTop):
for other in self.collision(Collider, y=(self.y - 1)):
if not other.nonstick_bottom and not self.collision(other):
stuck.append(other)
if isinstance(self, SlopeTopLeft):
for other in self.collision(Collider, y=(self.y - 1)):
y = self.get_slope_y(other.bbox_right)
if (not other.nonstick_bottom and other.bbox_bottom >= y and
(not self.collision(other) or
other.bbox_bottom - 1 < y)):
stuck.append(other)
if isinstance(self, SlopeTopRight):
for other in self.collision(Collider, y=(self.y - 1)):
y = self.get_slope_y(other.bbox_left)
if (not other.nonstick_bottom and other.bbox_bottom >= y and
(not self.collision(other) or
other.bbox_bottom - 1 < y)):
stuck.append(other)
if self.sticky_bottom:
if isinstance(self, SolidBottom):
for other in self.collision(Collider, y=(self.y + 1)):
if not other.nonstick_top and not self.collision(other):
stuck.append(other)
if isinstance(self, SlopeBottomLeft):
for other in self.collision(Collider, y=(self.y + 1)):
y = self.get_slope_y(other.bbox_right)
if (not other.nonstick_top and other.bbox_top <= y and
(not self.collision(other) or
other.bbox_top + 1 > y)):
stuck.append(other)
if isinstance(self, SlopeBottomRight):
for other in self.collision(Collider, y=(self.y + 1)):
y = self.get_slope_y(other.bbox_left)
if (not other.nonstick_top and other.bbox_top <= y and
(not self.collision(other) or
other.bbox_top + 1 > y)):
stuck.append(other)
return stuck
def move_x(self, move):
"""
Move the wall horizontally, handling physics.
Arguments:
- ``move`` -- The amount to add to :attr:`x`.
"""
stuck = self.get_stuck_colliders()
old_x = self.x
self.x += move
for other in stuck:
other.move_x(move, True)
if move > 0:
if isinstance(self, SolidRight):
for other in self.collision(Collider):
if not self.collision(other, x=old_x):
if self.push_right:
other.move_x(self.bbox_right - other.bbox_left,
True)
self.event_physics_collision_right(other, 0)
other.event_physics_collision_left(self, 0)
if isinstance(self, SlopeTopRight):
for other in self.collision(Collider):
x = self.get_slope_x(other.bbox_bottom)
if other.bbox_left < x:
if other.bbox_left >= x - move:
if self.push_right:
other.move_x(x - other.bbox_left, True)
if self.push_up:
y = self.get_slope_y(other.bbox_left)
other.move_y(y - other.bbox_bottom, True)
self.event_physics_collision_right(other, 0)
other.event_physics_collision_left(self, 0)
elif not self.collision(other, x=old_x):
if self.push_right:
other.move_x(self.bbox_right - other.bbox_left,
True)
self.event_physics_collision_right(other, 0)
other.event_physics_collision_left(self, 0)
if isinstance(self, SlopeBottomRight):
for other in self.collision(Collider):
x = self.get_slope_x(other.bbox_top)
if other.bbox_left < x:
if other.bbox_left >= x - move:
if self.push_right:
other.move_x(x - other.bbox_left, True)
if self.push_down:
y = self.get_slope_y(other.bbox_left)
other.move_y(y - other.bbox_top, True)
self.event_physics_collision_right(other, 0)
other.event_physics_collision_left(self, 0)
elif not self.collision(other, x=old_x):
if self.push_right:
other.move_x(self.bbox_right - other.bbox_left,
True)
self.event_physics_collision_right(other, 0)
other.event_physics_collision_left(self, 0)
elif move < 0:
if isinstance(self, SolidLeft):
for other in self.collision(Collider):
if not self.collision(other, x=old_x):
if self.push_left:
other.move_x(self.bbox_left - other.bbox_right,
True)
self.event_physics_collision_left(other, 0)
other.event_physics_collision_right(self, 0)
if isinstance(self, SlopeTopLeft):
for other in self.collision(Collider):
x = self.get_slope_x(other.bbox_bottom)
if other.bbox_right > x:
if other.bbox_right <= x - move:
if self.push_left:
other.move_x(x - other.bbox_right, True)
if self.push_up:
y = self.get_slope_y(other.bbox_right)
other.move_y(y - other.bbox_bottom, True)
self.event_physics_collision_left(other, 0)
other.event_physics_collision_right(self, 0)
elif not self.collision(other, x=old_x):
if self.push_left:
other.move_x(self.bbox_left - other.bbox_right,
True)
self.event_physics_collision_left(other, 0)
other.event_physics_collision_right(self, 0)
if isinstance(self, SlopeBottomLeft):
for other in self.collision(Collider):
x = self.get_slope_x(other.bbox_top)
if other.bbox_right > x:
if other.bbox_right <= x - move:
if self.push_left:
other.move_x(x - other.bbox_right, True)
if self.push_down:
y = self.get_slope_y(other.bbox_right)
other.move_y(y - other.bbox_top, True)
self.event_physics_collision_left(other, 0)
other.event_physics_collision_right(self, 0)
elif not self.collision(other, x=old_x):
if self.push_left:
other.move_x(self.bbox_left - other.bbox_right,
True)
self.event_physics_collision_left(other, 0)
other.event_physics_collision_right(self, 0)
def move_y(self, move):
"""
Move the wall vertically, handling physics.
Arguments:
- ``move`` -- The amount to add to :attr:`y`.
"""
stuck = self.get_stuck_colliders()
old_y = self.y
self.y += move
for other in stuck:
other.move_y(move, True)
if move > 0:
if isinstance(self, SolidBottom):
for other in self.collision(Collider):
if not self.collision(other, y=old_y):
if self.push_down:
other.move_y(self.bbox_bottom - other.bbox_top,
True)
self.event_physics_collision_bottom(other, 0)
other.event_physics_collision_top(self, 0)
if isinstance(self, SlopeBottomLeft):
for other in self.collision(Collider):
y = self.get_slope_y(other.bbox_right)
if other.bbox_top < y:
if other.bbox_top >= y - move:
if self.push_down:
other.move_y(y - other.bbox_top, True)
if self.push_left:
x = self.get_slope_x(other.bbox_top)
other.move_x(x - other.bbox_right, True)
self.event_physics_collision_bottom(other, 0)
other.event_physics_collision_top(self, 0)
elif not self.collision(other, y=old_y):
if self.push_down:
other.move_y(self.bbox_bottom - other.bbox_top,
True)
self.event_physics_collision_bottom(other, 0)
other.event_physics_collision_top(self, 0)
if isinstance(self, SlopeBottomRight):
for other in self.collision(Collider):
y = self.get_slope_y(other.bbox_left)
if other.bbox_top < y:
if other.bbox_top >= y - move:
if self.push_down:
other.move_y(y - other.bbox_top, True)
if self.push_right:
x = self.get_slope_x(other.bbox_top)
other.move_x(x - other.bbox_left, True)
self.event_physics_collision_bottom(other, 0)
other.event_physics_collision_top(self, 0)
elif not self.collision(other, y=old_y):
if self.push_down:
other.move_y(self.bbox_bottom - other.bbox_top,
True)
self.event_physics_collision_bottom(other, 0)
other.event_physics_collision_top(self, 0)
elif move < 0:
if isinstance(self, SolidTop):
for other in self.collision(Collider):
if not self.collision(other, y=old_y):
if self.push_up:
other.move_y(self.bbox_top - other.bbox_bottom,
True)
self.event_physics_collision_top(other, 0)
other.event_physics_collision_bottom(self, 0)
if isinstance(self, SlopeTopLeft):
for other in self.collision(Collider):
y = self.get_slope_y(other.bbox_right)
if other.bbox_bottom > y:
if other.bbox_bottom <= y - move:
if self.push_up:
other.move_y(y - other.bbox_bottom, True)
if self.push_left:
x = self.get_slope_x(other.bbox_bottom)
other.move_x(x - other.bbox_right, True)
self.event_physics_collision_top(other, 0)
other.event_physics_collision_bottom(self, 0)
elif not self.collision(other, y=old_y):
other.move_y(self.bbox_top - other.bbox_bottom,
True)
self.event_physics_collision_top(other, 0)
other.event_physics_collision_bottom(self, 0)
if isinstance(self, SlopeTopRight):
for other in self.collision(Collider):
y = self.get_slope_y(other.bbox_left)
if other.bbox_bottom > y:
if other.bbox_bottom <= y - move:
if self.push_up:
other.move_y(y - other.bbox_bottom, True)
if self.push_right:
x = self.get_slope_x(other.bbox_bottom)
other.move_x(x - other.bbox_left, True)
self.event_physics_collision_top(other, 0)
other.event_physics_collision_bottom(self, 0)
elif not self.collision(other, y=old_y):
if self.push_up:
other.move_y(self.bbox_top - other.bbox_bottom,
True)
self.event_physics_collision_top(other, 0)
other.event_physics_collision_bottom(self, 0)
class MobileColliderWall(MobileWall, Collider):
"""
A parent class for mobile walls that are also colliders. See the
documentation for :class:`xsge_physics.Collider` and
:class:`xsge_physics.MobileWall` for more information.
.. note::
Due to the way movement is implemented in this class, it is not
safe to move this object during its collision events. Doing so
may cause colliders that should be stuck to this object to become
un-stuck, or cause this object to pass through colliders it
should be pushing.
"""
def move_x(self, move, absolute=False, do_events=True, exclude_events=()):
"""
Move the wall horizontally, handling physics.
Arguments:
- ``move`` -- The amount to add to :attr:`y`.
"""
xprev = self.x
Collider.move_x(self, move, absolute, do_events, exclude_events)
real_move = self.x - xprev
self.x = xprev
MobileWall.move_x(self, real_move)
def move_y(self, move, absolute=False, do_events=True, exclude_events=()):
"""
Move the wall vertically, handling physics.
Arguments:
- ``move`` -- The amount to add to :attr:`y`.
"""
yprev = self.y
Collider.move_y(self, move, absolute, do_events, exclude_events)
real_move = self.y - yprev
self.y = yprev
MobileWall.move_y(self, real_move)
def event_physics_collision_left(self, other, move_loss):
"""
Called when the left side of the wall collides with a collider,
wall, or slope in the sense of the physics system, rather than
in the sense of SGE collision detection. See the documentation
for :meth:`xsge_physics.Collider.event_physics_collision_left`
for more information.
.. note::
Due to the way movement is implemented in this class, it is
not safe to move this object during this event. Doing so may
cause colliders that should be stuck to this object to become
un-stuck, or cause this object to pass through colliders it
should be pushing.
"""
pass
def event_physics_collision_right(self, other, move_loss):
"""
Called when the right side of the wall collides with a collider,
wall, or slope in the sense of the physics system, rather than
in the sense of SGE collision detection. See the documentation
for :meth:`xsge_physics.Collider.event_physics_collision_left`
for more information.
.. note::
Due to the way movement is implemented in this class, it is
not safe to move this object during this event. Doing so may
cause colliders that should be stuck to this object to become
un-stuck, or cause this object to pass through colliders it
should be pushing.
"""
pass
def event_physics_collision_top(self, other, move_loss):
"""
Called when the top side of the wall collides with a collider,
wall, or slope in the sense of the physics system, rather than
in the sense of SGE collision detection. See the documentation
for :meth:`xsge_physics.Collider.event_physics_collision_left`
for more information.
.. note::
Due to the way movement is implemented in this class, it is
not safe to move this object during this event. Doing so may
cause colliders that should be stuck to this object to become
un-stuck, or cause this object to pass through colliders it
should be pushing.
"""
pass
def event_physics_collision_bottom(self, other, move_loss):
"""
Called when the bottom side of the wall collides with a
collider, wall, or slope in the sense of the physics system,
rather than in the sense of SGE collision detection. See the
documentation for
:meth:`xsge_physics.Collider.event_physics_collision_left` for
more information.
.. note::
Due to the way movement is implemented in this class, it is
not safe to move this object during this event. Doing so may
cause colliders that should be stuck to this object to become
un-stuck, or cause this object to pass through colliders it
should be pushing.
"""
pass
| 41.792089
| 81
| 0.528151
| 9,716
| 82,414
| 4.311342
| 0.039831
| 0.047745
| 0.037599
| 0.011459
| 0.879706
| 0.860441
| 0.841677
| 0.830051
| 0.81969
| 0.812337
| 0
| 0.003217
| 0.400235
| 82,414
| 1,971
| 82
| 41.813293
| 0.844241
| 0.264834
| 0
| 0.828724
| 0
| 0
| 0.002213
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.049955
| false
| 0.017841
| 0.001784
| 0.007136
| 0.107047
| 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
|
5749da9cc0aae6267549b7d5a3306b7a73cc155e
| 95
|
py
|
Python
|
pycsou/func/__init__.py
|
ebezzam/pycsou
|
25b69fa69134b3f1e3b9cf114844082186e04073
|
[
"MIT"
] | 36
|
2021-02-01T16:49:09.000Z
|
2022-03-16T11:40:45.000Z
|
pycsou/func/__init__.py
|
ebezzam/pycsou
|
25b69fa69134b3f1e3b9cf114844082186e04073
|
[
"MIT"
] | 11
|
2021-05-10T13:35:05.000Z
|
2022-03-15T08:12:33.000Z
|
pycsou/func/__init__.py
|
ebezzam/pycsou
|
25b69fa69134b3f1e3b9cf114844082186e04073
|
[
"MIT"
] | 9
|
2021-02-22T14:40:21.000Z
|
2022-02-02T01:11:54.000Z
|
from pycsou.func.base import *
from pycsou.func.penalty import *
from pycsou.func.loss import *
| 31.666667
| 33
| 0.789474
| 15
| 95
| 5
| 0.466667
| 0.4
| 0.56
| 0.533333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115789
| 95
| 3
| 34
| 31.666667
| 0.892857
| 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
|
939508891d47dc81bb5f3a283201b68e5c05bae8
| 156,791
|
py
|
Python
|
gooddata-metadata-client/gooddata_metadata_client/api/organization_model_controller_api.py
|
jaceksan/gooddata-python-sdk
|
640bd8b679e00a5f0eb627bdf6143de078f8b59b
|
[
"MIT"
] | null | null | null |
gooddata-metadata-client/gooddata_metadata_client/api/organization_model_controller_api.py
|
jaceksan/gooddata-python-sdk
|
640bd8b679e00a5f0eb627bdf6143de078f8b59b
|
[
"MIT"
] | null | null | null |
gooddata-metadata-client/gooddata_metadata_client/api/organization_model_controller_api.py
|
jaceksan/gooddata-python-sdk
|
640bd8b679e00a5f0eb627bdf6143de078f8b59b
|
[
"MIT"
] | null | null | null |
"""
OpenAPI definition
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from gooddata_metadata_client.api_client import ApiClient, Endpoint as _Endpoint
from gooddata_metadata_client.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from gooddata_metadata_client.model.json_api_aclin_document import JsonApiACLInDocument
from gooddata_metadata_client.model.json_api_acl_out_document import JsonApiACLOutDocument
from gooddata_metadata_client.model.json_api_acl_out_list import JsonApiACLOutList
from gooddata_metadata_client.model.json_api_data_source_in_document import JsonApiDataSourceInDocument
from gooddata_metadata_client.model.json_api_data_source_out_document import JsonApiDataSourceOutDocument
from gooddata_metadata_client.model.json_api_data_source_out_list import JsonApiDataSourceOutList
from gooddata_metadata_client.model.json_api_user_group_in_document import JsonApiUserGroupInDocument
from gooddata_metadata_client.model.json_api_user_group_out_document import JsonApiUserGroupOutDocument
from gooddata_metadata_client.model.json_api_user_group_out_list import JsonApiUserGroupOutList
from gooddata_metadata_client.model.json_api_user_in_document import JsonApiUserInDocument
from gooddata_metadata_client.model.json_api_user_out_document import JsonApiUserOutDocument
from gooddata_metadata_client.model.json_api_user_out_list import JsonApiUserOutList
from gooddata_metadata_client.model.json_api_workspace_in_document import JsonApiWorkspaceInDocument
from gooddata_metadata_client.model.json_api_workspace_out_document import JsonApiWorkspaceOutDocument
from gooddata_metadata_client.model.json_api_workspace_out_list import JsonApiWorkspaceOutList
class OrganizationModelControllerApi(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
def __create_entity_acls(
self,
json_api_aclin_document,
**kwargs
):
"""create_entity_acls # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_entity_acls(json_api_aclin_document, async_req=True)
>>> result = thread.get()
Args:
json_api_aclin_document (JsonApiACLInDocument):
Keyword Args:
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiACLOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['json_api_aclin_document'] = \
json_api_aclin_document
return self.call_with_http_info(**kwargs)
self.create_entity_acls = _Endpoint(
settings={
'response_type': (JsonApiACLOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/acls',
'operation_id': 'create_entity_acls',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'json_api_aclin_document',
'include',
],
'required': [
'json_api_aclin_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('include',): {
"USERS": "users",
"USERGROUPS": "userGroups",
"SUBJECTS": "subjects",
"OBJECTS": "objects",
"ALL": "ALL"
},
},
'openapi_types': {
'json_api_aclin_document':
(JsonApiACLInDocument,),
'include':
([str],),
},
'attribute_map': {
'include': 'include',
},
'location_map': {
'json_api_aclin_document': 'body',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__create_entity_acls
)
def __create_entity_data_sources(
self,
json_api_data_source_in_document,
**kwargs
):
"""create_entity_data_sources # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_entity_data_sources(json_api_data_source_in_document, async_req=True)
>>> result = thread.get()
Args:
json_api_data_source_in_document (JsonApiDataSourceInDocument):
Keyword Args:
_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.
_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:
JsonApiDataSourceOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['json_api_data_source_in_document'] = \
json_api_data_source_in_document
return self.call_with_http_info(**kwargs)
self.create_entity_data_sources = _Endpoint(
settings={
'response_type': (JsonApiDataSourceOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/dataSources',
'operation_id': 'create_entity_data_sources',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'json_api_data_source_in_document',
],
'required': [
'json_api_data_source_in_document',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'json_api_data_source_in_document':
(JsonApiDataSourceInDocument,),
},
'attribute_map': {
},
'location_map': {
'json_api_data_source_in_document': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__create_entity_data_sources
)
def __create_entity_user_groups(
self,
json_api_user_group_in_document,
**kwargs
):
"""create_entity_user_groups # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_entity_user_groups(json_api_user_group_in_document, async_req=True)
>>> result = thread.get()
Args:
json_api_user_group_in_document (JsonApiUserGroupInDocument):
Keyword Args:
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiUserGroupOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['json_api_user_group_in_document'] = \
json_api_user_group_in_document
return self.call_with_http_info(**kwargs)
self.create_entity_user_groups = _Endpoint(
settings={
'response_type': (JsonApiUserGroupOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/userGroups',
'operation_id': 'create_entity_user_groups',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'json_api_user_group_in_document',
'include',
],
'required': [
'json_api_user_group_in_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"PARENTS": "parents",
"ALL": "ALL"
},
},
'openapi_types': {
'json_api_user_group_in_document':
(JsonApiUserGroupInDocument,),
'include':
([str],),
},
'attribute_map': {
'include': 'include',
},
'location_map': {
'json_api_user_group_in_document': 'body',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__create_entity_user_groups
)
def __create_entity_users(
self,
json_api_user_in_document,
**kwargs
):
"""create_entity_users # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_entity_users(json_api_user_in_document, async_req=True)
>>> result = thread.get()
Args:
json_api_user_in_document (JsonApiUserInDocument):
Keyword Args:
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiUserOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['json_api_user_in_document'] = \
json_api_user_in_document
return self.call_with_http_info(**kwargs)
self.create_entity_users = _Endpoint(
settings={
'response_type': (JsonApiUserOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/users',
'operation_id': 'create_entity_users',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'json_api_user_in_document',
'include',
],
'required': [
'json_api_user_in_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"ALL": "ALL"
},
},
'openapi_types': {
'json_api_user_in_document':
(JsonApiUserInDocument,),
'include':
([str],),
},
'attribute_map': {
'include': 'include',
},
'location_map': {
'json_api_user_in_document': 'body',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__create_entity_users
)
def __create_entity_workspaces(
self,
json_api_workspace_in_document,
**kwargs
):
"""create_entity_workspaces # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_entity_workspaces(json_api_workspace_in_document, async_req=True)
>>> result = thread.get()
Args:
json_api_workspace_in_document (JsonApiWorkspaceInDocument):
Keyword Args:
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiWorkspaceOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['json_api_workspace_in_document'] = \
json_api_workspace_in_document
return self.call_with_http_info(**kwargs)
self.create_entity_workspaces = _Endpoint(
settings={
'response_type': (JsonApiWorkspaceOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/workspaces',
'operation_id': 'create_entity_workspaces',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'json_api_workspace_in_document',
'include',
],
'required': [
'json_api_workspace_in_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('include',): {
"WORKSPACES": "workspaces",
"PARENT": "parent",
"ALL": "ALL"
},
},
'openapi_types': {
'json_api_workspace_in_document':
(JsonApiWorkspaceInDocument,),
'include':
([str],),
},
'attribute_map': {
'include': 'include',
},
'location_map': {
'json_api_workspace_in_document': 'body',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__create_entity_workspaces
)
def __delete_entity_acls(
self,
id,
**kwargs
):
"""delete_entity_acls # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_entity_acls(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [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.
_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:
None
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.delete_entity_acls = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/api/entities/acls/{id}',
'operation_id': 'delete_entity_acls',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [],
'content_type': [],
},
api_client=api_client,
callable=__delete_entity_acls
)
def __delete_entity_data_sources(
self,
id,
**kwargs
):
"""delete_entity_data_sources # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_entity_data_sources(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [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.
_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:
None
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.delete_entity_data_sources = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/api/entities/dataSources/{id}',
'operation_id': 'delete_entity_data_sources',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [],
'content_type': [],
},
api_client=api_client,
callable=__delete_entity_data_sources
)
def __delete_entity_user_groups(
self,
id,
**kwargs
):
"""delete_entity_user_groups # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_entity_user_groups(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [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.
_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:
None
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.delete_entity_user_groups = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/api/entities/userGroups/{id}',
'operation_id': 'delete_entity_user_groups',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [],
'content_type': [],
},
api_client=api_client,
callable=__delete_entity_user_groups
)
def __delete_entity_users(
self,
id,
**kwargs
):
"""delete_entity_users # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_entity_users(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [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.
_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:
None
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.delete_entity_users = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/api/entities/users/{id}',
'operation_id': 'delete_entity_users',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [],
'content_type': [],
},
api_client=api_client,
callable=__delete_entity_users
)
def __delete_entity_workspaces(
self,
id,
**kwargs
):
"""delete_entity_workspaces # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_entity_workspaces(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [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.
_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:
None
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.delete_entity_workspaces = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/api/entities/workspaces/{id}',
'operation_id': 'delete_entity_workspaces',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [],
'content_type': [],
},
api_client=api_client,
callable=__delete_entity_workspaces
)
def __get_all_entities_acls(
self,
**kwargs
):
"""get_all_entities_acls # 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_all_entities_acls(async_req=True)
>>> result = thread.get()
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional]
page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0
size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20
sort ([str]): Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [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.
_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:
JsonApiACLOutList
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['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.get_all_entities_acls = _Endpoint(
settings={
'response_type': (JsonApiACLOutList,),
'auth': [],
'endpoint_path': '/api/entities/acls',
'operation_id': 'get_all_entities_acls',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'predicate',
'filter',
'include',
'page',
'size',
'sort',
],
'required': [],
'nullable': [
],
'enum': [
'include',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('include',): {
"USERS": "users",
"USERGROUPS": "userGroups",
"SUBJECTS": "subjects",
"OBJECTS": "objects",
"ALL": "ALL"
},
},
'openapi_types': {
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
'page':
(int,),
'size':
(int,),
'sort':
([str],),
},
'attribute_map': {
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
'page': 'page',
'size': 'size',
'sort': 'sort',
},
'location_map': {
'predicate': 'query',
'filter': 'query',
'include': 'query',
'page': 'query',
'size': 'query',
'sort': 'query',
},
'collection_format_map': {
'include': 'csv',
'sort': 'multi',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_all_entities_acls
)
def __get_all_entities_data_sources(
self,
**kwargs
):
"""get_all_entities_data_sources # 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_all_entities_data_sources(async_req=True)
>>> result = thread.get()
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0
size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20
sort ([str]): Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [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.
_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:
JsonApiDataSourceOutList
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['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.get_all_entities_data_sources = _Endpoint(
settings={
'response_type': (JsonApiDataSourceOutList,),
'auth': [],
'endpoint_path': '/api/entities/dataSources',
'operation_id': 'get_all_entities_data_sources',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'predicate',
'filter',
'page',
'size',
'sort',
],
'required': [],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'page':
(int,),
'size':
(int,),
'sort':
([str],),
},
'attribute_map': {
'predicate': 'predicate',
'filter': 'filter',
'page': 'page',
'size': 'size',
'sort': 'sort',
},
'location_map': {
'predicate': 'query',
'filter': 'query',
'page': 'query',
'size': 'query',
'sort': 'query',
},
'collection_format_map': {
'sort': 'multi',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_all_entities_data_sources
)
def __get_all_entities_user_groups(
self,
**kwargs
):
"""get_all_entities_user_groups # 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_all_entities_user_groups(async_req=True)
>>> result = thread.get()
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional]
page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0
size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20
sort ([str]): Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [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.
_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:
JsonApiUserGroupOutList
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['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.get_all_entities_user_groups = _Endpoint(
settings={
'response_type': (JsonApiUserGroupOutList,),
'auth': [],
'endpoint_path': '/api/entities/userGroups',
'operation_id': 'get_all_entities_user_groups',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'predicate',
'filter',
'include',
'page',
'size',
'sort',
],
'required': [],
'nullable': [
],
'enum': [
'include',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"PARENTS": "parents",
"ALL": "ALL"
},
},
'openapi_types': {
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
'page':
(int,),
'size':
(int,),
'sort':
([str],),
},
'attribute_map': {
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
'page': 'page',
'size': 'size',
'sort': 'sort',
},
'location_map': {
'predicate': 'query',
'filter': 'query',
'include': 'query',
'page': 'query',
'size': 'query',
'sort': 'query',
},
'collection_format_map': {
'include': 'csv',
'sort': 'multi',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_all_entities_user_groups
)
def __get_all_entities_users(
self,
**kwargs
):
"""get_all_entities_users # 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_all_entities_users(async_req=True)
>>> result = thread.get()
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional]
page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0
size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20
sort ([str]): Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [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.
_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:
JsonApiUserOutList
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['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.get_all_entities_users = _Endpoint(
settings={
'response_type': (JsonApiUserOutList,),
'auth': [],
'endpoint_path': '/api/entities/users',
'operation_id': 'get_all_entities_users',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'predicate',
'filter',
'include',
'page',
'size',
'sort',
],
'required': [],
'nullable': [
],
'enum': [
'include',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"ALL": "ALL"
},
},
'openapi_types': {
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
'page':
(int,),
'size':
(int,),
'sort':
([str],),
},
'attribute_map': {
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
'page': 'page',
'size': 'size',
'sort': 'sort',
},
'location_map': {
'predicate': 'query',
'filter': 'query',
'include': 'query',
'page': 'query',
'size': 'query',
'sort': 'query',
},
'collection_format_map': {
'include': 'csv',
'sort': 'multi',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_all_entities_users
)
def __get_all_entities_workspaces(
self,
**kwargs
):
"""get_all_entities_workspaces # 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_all_entities_workspaces(async_req=True)
>>> result = thread.get()
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional]
page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0
size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20
sort ([str]): Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [optional]
meta_include ([str]): Include Meta objects.. [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.
_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:
JsonApiWorkspaceOutList
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['_host_index'] = kwargs.get('_host_index')
return self.call_with_http_info(**kwargs)
self.get_all_entities_workspaces = _Endpoint(
settings={
'response_type': (JsonApiWorkspaceOutList,),
'auth': [],
'endpoint_path': '/api/entities/workspaces',
'operation_id': 'get_all_entities_workspaces',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'predicate',
'filter',
'include',
'page',
'size',
'sort',
'meta_include',
],
'required': [],
'nullable': [
],
'enum': [
'include',
'meta_include',
],
'validation': [
'meta_include',
]
},
root_map={
'validations': {
('meta_include',): {
},
},
'allowed_values': {
('include',): {
"WORKSPACES": "workspaces",
"PARENT": "parent",
"ALL": "ALL"
},
('meta_include',): {
"CONFIG": "config",
"ALL": "all"
},
},
'openapi_types': {
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
'page':
(int,),
'size':
(int,),
'sort':
([str],),
'meta_include':
([str],),
},
'attribute_map': {
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
'page': 'page',
'size': 'size',
'sort': 'sort',
'meta_include': 'metaInclude',
},
'location_map': {
'predicate': 'query',
'filter': 'query',
'include': 'query',
'page': 'query',
'size': 'query',
'sort': 'query',
'meta_include': 'query',
},
'collection_format_map': {
'include': 'csv',
'sort': 'multi',
'meta_include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_all_entities_workspaces
)
def __get_entity_acls(
self,
id,
**kwargs
):
"""get_entity_acls # 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_entity_acls(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiACLOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.get_entity_acls = _Endpoint(
settings={
'response_type': (JsonApiACLOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/acls/{id}',
'operation_id': 'get_entity_acls',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
'include',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
('include',): {
"USERS": "users",
"USERGROUPS": "userGroups",
"SUBJECTS": "subjects",
"OBJECTS": "objects",
"ALL": "ALL"
},
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_entity_acls
)
def __get_entity_data_sources(
self,
id,
**kwargs
):
"""get_entity_data_sources # 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_entity_data_sources(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [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.
_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:
JsonApiDataSourceOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.get_entity_data_sources = _Endpoint(
settings={
'response_type': (JsonApiDataSourceOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/dataSources/{id}',
'operation_id': 'get_entity_data_sources',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_entity_data_sources
)
def __get_entity_user_groups(
self,
id,
**kwargs
):
"""get_entity_user_groups # 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_entity_user_groups(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiUserGroupOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.get_entity_user_groups = _Endpoint(
settings={
'response_type': (JsonApiUserGroupOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/userGroups/{id}',
'operation_id': 'get_entity_user_groups',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
'include',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"PARENTS": "parents",
"ALL": "ALL"
},
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_entity_user_groups
)
def __get_entity_users(
self,
id,
**kwargs
):
"""get_entity_users # 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_entity_users(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiUserOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.get_entity_users = _Endpoint(
settings={
'response_type': (JsonApiUserOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/users/{id}',
'operation_id': 'get_entity_users',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
'include',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"ALL": "ALL"
},
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_entity_users
)
def __get_entity_workspaces(
self,
id,
**kwargs
):
"""get_entity_workspaces # 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_entity_workspaces(id, async_req=True)
>>> result = thread.get()
Args:
id (str):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional]
meta_include ([str]): Include Meta objects.. [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.
_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:
JsonApiWorkspaceOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
return self.call_with_http_info(**kwargs)
self.get_entity_workspaces = _Endpoint(
settings={
'response_type': (JsonApiWorkspaceOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/workspaces/{id}',
'operation_id': 'get_entity_workspaces',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'id',
'predicate',
'filter',
'include',
'meta_include',
],
'required': [
'id',
],
'nullable': [
],
'enum': [
'include',
'meta_include',
],
'validation': [
'id',
'meta_include',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
('meta_include',): {
},
},
'allowed_values': {
('include',): {
"WORKSPACES": "workspaces",
"PARENT": "parent",
"ALL": "ALL"
},
('meta_include',): {
"CONFIG": "config",
"ALL": "all"
},
},
'openapi_types': {
'id':
(str,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
'meta_include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
'meta_include': 'metaInclude',
},
'location_map': {
'id': 'path',
'predicate': 'query',
'filter': 'query',
'include': 'query',
'meta_include': 'query',
},
'collection_format_map': {
'include': 'csv',
'meta_include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [],
},
api_client=api_client,
callable=__get_entity_workspaces
)
def __update_entity_acls(
self,
id,
json_api_aclin_document,
**kwargs
):
"""update_entity_acls # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_entity_acls(id, json_api_aclin_document, async_req=True)
>>> result = thread.get()
Args:
id (str):
json_api_aclin_document (JsonApiACLInDocument):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiACLOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
kwargs['json_api_aclin_document'] = \
json_api_aclin_document
return self.call_with_http_info(**kwargs)
self.update_entity_acls = _Endpoint(
settings={
'response_type': (JsonApiACLOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/acls/{id}',
'operation_id': 'update_entity_acls',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'id',
'json_api_aclin_document',
'predicate',
'filter',
'include',
],
'required': [
'id',
'json_api_aclin_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
('include',): {
"USERS": "users",
"USERGROUPS": "userGroups",
"SUBJECTS": "subjects",
"OBJECTS": "objects",
"ALL": "ALL"
},
},
'openapi_types': {
'id':
(str,),
'json_api_aclin_document':
(JsonApiACLInDocument,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
},
'location_map': {
'id': 'path',
'json_api_aclin_document': 'body',
'predicate': 'query',
'filter': 'query',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__update_entity_acls
)
def __update_entity_data_sources(
self,
id,
json_api_data_source_in_document,
**kwargs
):
"""update_entity_data_sources # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_entity_data_sources(id, json_api_data_source_in_document, async_req=True)
>>> result = thread.get()
Args:
id (str):
json_api_data_source_in_document (JsonApiDataSourceInDocument):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [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.
_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:
JsonApiDataSourceOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
kwargs['json_api_data_source_in_document'] = \
json_api_data_source_in_document
return self.call_with_http_info(**kwargs)
self.update_entity_data_sources = _Endpoint(
settings={
'response_type': (JsonApiDataSourceOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/dataSources/{id}',
'operation_id': 'update_entity_data_sources',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'id',
'json_api_data_source_in_document',
'predicate',
'filter',
],
'required': [
'id',
'json_api_data_source_in_document',
],
'nullable': [
],
'enum': [
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
},
'openapi_types': {
'id':
(str,),
'json_api_data_source_in_document':
(JsonApiDataSourceInDocument,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
},
'location_map': {
'id': 'path',
'json_api_data_source_in_document': 'body',
'predicate': 'query',
'filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__update_entity_data_sources
)
def __update_entity_user_groups(
self,
id,
json_api_user_group_in_document,
**kwargs
):
"""update_entity_user_groups # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_entity_user_groups(id, json_api_user_group_in_document, async_req=True)
>>> result = thread.get()
Args:
id (str):
json_api_user_group_in_document (JsonApiUserGroupInDocument):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiUserGroupOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
kwargs['json_api_user_group_in_document'] = \
json_api_user_group_in_document
return self.call_with_http_info(**kwargs)
self.update_entity_user_groups = _Endpoint(
settings={
'response_type': (JsonApiUserGroupOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/userGroups/{id}',
'operation_id': 'update_entity_user_groups',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'id',
'json_api_user_group_in_document',
'predicate',
'filter',
'include',
],
'required': [
'id',
'json_api_user_group_in_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"PARENTS": "parents",
"ALL": "ALL"
},
},
'openapi_types': {
'id':
(str,),
'json_api_user_group_in_document':
(JsonApiUserGroupInDocument,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
},
'location_map': {
'id': 'path',
'json_api_user_group_in_document': 'body',
'predicate': 'query',
'filter': 'query',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__update_entity_user_groups
)
def __update_entity_users(
self,
id,
json_api_user_in_document,
**kwargs
):
"""update_entity_users # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_entity_users(id, json_api_user_in_document, async_req=True)
>>> result = thread.get()
Args:
id (str):
json_api_user_in_document (JsonApiUserInDocument):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiUserOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
kwargs['json_api_user_in_document'] = \
json_api_user_in_document
return self.call_with_http_info(**kwargs)
self.update_entity_users = _Endpoint(
settings={
'response_type': (JsonApiUserOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/users/{id}',
'operation_id': 'update_entity_users',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'id',
'json_api_user_in_document',
'predicate',
'filter',
'include',
],
'required': [
'id',
'json_api_user_in_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
('include',): {
"USERGROUPS": "userGroups",
"ALL": "ALL"
},
},
'openapi_types': {
'id':
(str,),
'json_api_user_in_document':
(JsonApiUserInDocument,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
},
'location_map': {
'id': 'path',
'json_api_user_in_document': 'body',
'predicate': 'query',
'filter': 'query',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__update_entity_users
)
def __update_entity_workspaces(
self,
id,
json_api_workspace_in_document,
**kwargs
):
"""update_entity_workspaces # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_entity_workspaces(id, json_api_workspace_in_document, async_req=True)
>>> result = thread.get()
Args:
id (str):
json_api_workspace_in_document (JsonApiWorkspaceInDocument):
Keyword Args:
predicate ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Composed query parameters used for filtering. 'id' parameter can be used for all objects. Other parameters are present according to object type (title, description,...). You can specify any object parameter and parameter of related entity up to 2nd level (for example name=John&language=english,czech&address.city=London&father.id=123).. [optional]
filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser.You can specify any object parameter and parameter of related entity up to 2nd level (for example title=='Some Title';description=='desc'). [optional]
include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [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.
_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:
JsonApiWorkspaceOutDocument
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['_host_index'] = kwargs.get('_host_index')
kwargs['id'] = \
id
kwargs['json_api_workspace_in_document'] = \
json_api_workspace_in_document
return self.call_with_http_info(**kwargs)
self.update_entity_workspaces = _Endpoint(
settings={
'response_type': (JsonApiWorkspaceOutDocument,),
'auth': [],
'endpoint_path': '/api/entities/workspaces/{id}',
'operation_id': 'update_entity_workspaces',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'id',
'json_api_workspace_in_document',
'predicate',
'filter',
'include',
],
'required': [
'id',
'json_api_workspace_in_document',
],
'nullable': [
],
'enum': [
'include',
],
'validation': [
'id',
]
},
root_map={
'validations': {
('id',): {
'regex': {
'pattern': r'^[.A-Za-z0-9_-]{1,255}$', # noqa: E501
},
},
},
'allowed_values': {
('include',): {
"WORKSPACES": "workspaces",
"PARENT": "parent",
"ALL": "ALL"
},
},
'openapi_types': {
'id':
(str,),
'json_api_workspace_in_document':
(JsonApiWorkspaceInDocument,),
'predicate':
({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
'filter':
(str,),
'include':
([str],),
},
'attribute_map': {
'id': 'id',
'predicate': 'predicate',
'filter': 'filter',
'include': 'include',
},
'location_map': {
'id': 'path',
'json_api_workspace_in_document': 'body',
'predicate': 'query',
'filter': 'query',
'include': 'query',
},
'collection_format_map': {
'include': 'csv',
}
},
headers_map={
'accept': [
'application/vnd.gooddata.api+json'
],
'content_type': [
'application/vnd.gooddata.api+json'
]
},
api_client=api_client,
callable=__update_entity_workspaces
)
| 43.027168
| 554
| 0.484065
| 13,999
| 156,791
| 5.210801
| 0.02193
| 0.022825
| 0.017821
| 0.018507
| 0.970019
| 0.953856
| 0.944877
| 0.937173
| 0.927659
| 0.913278
| 0
| 0.004452
| 0.426919
| 156,791
| 3,643
| 555
| 43.038979
| 0.807376
| 0.383536
| 0
| 0.745876
| 1
| 0
| 0.220327
| 0.061866
| 0
| 0
| 0
| 0
| 0
| 1
| 0.010212
| false
| 0
| 0.007463
| 0
| 0.027887
| 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
|
939ea6f302e96e675e014c1abec01550dbb90903
| 338
|
py
|
Python
|
experiments/test.py
|
sorawee/fmt
|
7672e7a682ea7dcb47d79d4d1074a72fad98619e
|
[
"Apache-2.0",
"MIT"
] | 39
|
2021-09-23T14:07:37.000Z
|
2022-03-12T15:01:52.000Z
|
experiments/test.py
|
sorawee/fmt
|
7672e7a682ea7dcb47d79d4d1074a72fad98619e
|
[
"Apache-2.0",
"MIT"
] | 29
|
2021-09-25T07:28:29.000Z
|
2022-02-20T15:23:00.000Z
|
experiments/test.py
|
sorawee/fmt
|
7672e7a682ea7dcb47d79d4d1074a72fad98619e
|
[
"Apache-2.0",
"MIT"
] | 1
|
2022-02-20T01:00:07.000Z
|
2022-02-20T01:00:07.000Z
|
def test(x, y):
x + y
test(
11111111,
test(11111111, 1111111),
test(11111111, 1111111),
222,
222,
test(11111111, 1111111),
test(11111111, 1111111),
222,
test(11111111, 1111111),
test(11111111, 1111111),
test(11111111, 1111111),
test(11111111, 1111111),
test(11111111, 1111111),
)
| 16.9
| 28
| 0.600592
| 38
| 338
| 5.342105
| 0.184211
| 0.591133
| 0.842365
| 0.679803
| 0.8867
| 0.8867
| 0.8867
| 0.46798
| 0.46798
| 0.46798
| 0
| 0.608
| 0.260355
| 338
| 19
| 29
| 17.789474
| 0.204
| 0
| 0
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.058824
| false
| 0
| 0
| 0
| 0.058824
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
93a92db4a222900c7a0d30a7ca5de8033c284708
| 28,313
|
py
|
Python
|
rss_temple/api/tests/views/test_feed_entry.py
|
murrple-1/rss_temple
|
289197923b1e7d1213f1673d164337df17d7269b
|
[
"MIT"
] | null | null | null |
rss_temple/api/tests/views/test_feed_entry.py
|
murrple-1/rss_temple
|
289197923b1e7d1213f1673d164337df17d7269b
|
[
"MIT"
] | 8
|
2019-12-04T21:58:35.000Z
|
2021-12-15T02:29:49.000Z
|
rss_temple/api/tests/views/test_feed_entry.py
|
murrple-1/rss_temple
|
289197923b1e7d1213f1673d164337df17d7269b
|
[
"MIT"
] | null | null | null |
import logging
import datetime
import uuid
from django.test import TestCase, Client
from django.db import transaction
import ujson
from api import models
class FeedEntryTestCase(TestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.old_app_logger_level = logging.getLogger(
'rss_temple').getEffectiveLevel()
cls.old_django_logger_level = logging.getLogger(
'django').getEffectiveLevel()
logging.getLogger('rss_temple').setLevel(logging.CRITICAL)
logging.getLogger('django').setLevel(logging.CRITICAL)
@classmethod
def tearDownClass(cls):
super().tearDownClass()
logging.getLogger('rss_temple').setLevel(cls.old_app_logger_level)
logging.getLogger('django').setLevel(cls.old_django_logger_level)
@classmethod
def setUpTestData(cls):
super().setUpTestData()
cls.user = models.User.objects.create(email='test@test.com')
cls.session = models.Session.objects.create(
user=cls.user, expires_at=datetime.datetime.utcnow() + datetime.timedelta(days=2))
cls.session_token = cls.session.uuid
cls.session_token_str = str(cls.session.uuid)
cls.feed = models.Feed.objects.create(
feed_url='http://example.com/rss.xml',
title='Sample Feed',
home_url='http://example.com',
published_at=datetime.datetime.utcnow(),
updated_at=None,
db_updated_at=None)
def test_feedentry_get(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
c = Client()
response = c.get(f'/api/feedentry/{feed_entry.uuid}',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
def test_feedentry_get_not_found(self):
c = Client()
response = c.get(f'/api/feedentry/{uuid.uuid4()}',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 404, response.content)
def test_feedentries_query_post(self):
models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
c = Client()
response = c.post('/api/feedentries/query', '{}', 'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
def test_feedentry_read_post(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
c = Client()
response = c.post(f'/api/feedentry/{feed_entry.uuid}/read',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
json_ = ujson.loads(response.content)
self.assertIsInstance(json_, str)
self.assertTrue(models.ReadFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry=feed_entry).exists())
def test_feedentry_read_post_not_found(self):
c = Client()
response = c.post(f'/api/feedentry/{uuid.uuid4()}/read',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 404, response.content)
def test_feedentry_read_post_duplicate(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
models.ReadFeedEntryUserMapping.objects.create(
user=FeedEntryTestCase.user, feed_entry=feed_entry)
c = Client()
with transaction.atomic():
response = c.post(f'/api/feedentry/{feed_entry.uuid}/read',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
self.assertTrue(models.ReadFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry=feed_entry).exists())
def test_feedentry_read_delete(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
models.ReadFeedEntryUserMapping.objects.create(
user=FeedEntryTestCase.user, feed_entry=feed_entry)
c = Client()
response = c.delete(f'/api/feedentry/{feed_entry.uuid}/read',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertFalse(models.ReadFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry=feed_entry).exists())
def test_feedentries_read_post(self):
feed_entry1 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 1 Title',
url='http://example.com/entry1.html',
content='Some Entry content 1',
author_name='John Doe',
db_updated_at=None)
feed_entry2 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 2 Title',
url='http://example.com/entry2.html',
content='Some Entry content 2',
author_name='John Doe',
db_updated_at=None)
c = Client()
data = {
'feedUuids': [str(FeedEntryTestCase.feed.uuid)],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertEqual(models.ReadFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry__in=[feed_entry1, feed_entry2]).count(), 2)
models.ReadFeedEntryUserMapping.objects.all().delete()
data = {
'feedEntryUuids': [str(feed_entry1.uuid), str(feed_entry2.uuid)],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertEqual(models.ReadFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry__in=[feed_entry1, feed_entry2]).count(), 2)
models.ReadFeedEntryUserMapping.objects.all().delete()
data = {
'feedEntryUuids': [str(feed_entry1.uuid)],
'feedUuids': [str(FeedEntryTestCase.feed.uuid)],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertEqual(models.ReadFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry__in=[feed_entry1, feed_entry2]).count(), 2)
def test_feedentries_read_post_noentries(self):
c = Client()
data = {}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_typeerror(self):
c = Client()
data = []
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_feeduuids_typeerror(self):
c = Client()
data = {
'feedUuids': 0,
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_feeduuids_element_typeerror(self):
c = Client()
data = {
'feedUuids': [0],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_feeduuids_element_malformed(self):
c = Client()
data = {
'feedUuids': ['baduuid'],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_feedentryuuids_typeerror(self):
c = Client()
data = {
'feedEntryUuids': 0,
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_feedentryuuids_element_typeerror(self):
c = Client()
data = {
'feedEntryUuids': [0],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_feedentryuuids_element_malformed(self):
c = Client()
data = {
'feedEntryUuids': ['baduuid'],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_read_post_duplicate(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
models.ReadFeedEntryUserMapping.objects.create(
feed_entry=feed_entry, user=FeedEntryTestCase.user)
c = Client()
data = {
'feedEntryUuids': [str(feed_entry.uuid)],
}
response = c.post('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
def test_feedentries_read_delete(self):
feed_entry1 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 1 Title',
url='http://example.com/entry1.html',
content='Some Entry content 1',
author_name='John Doe',
db_updated_at=None)
feed_entry2 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 2 Title',
url='http://example.com/entry2.html',
content='Some Entry content 2',
author_name='John Doe',
db_updated_at=None)
models.ReadFeedEntryUserMapping.objects.create(
user=FeedEntryTestCase.user, feed_entry=feed_entry1)
models.ReadFeedEntryUserMapping.objects.create(
user=FeedEntryTestCase.user, feed_entry=feed_entry2)
c = Client()
data = [str(feed_entry1.uuid), str(feed_entry2.uuid)]
response = c.delete('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertFalse(models.ReadFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry__in=[feed_entry1, feed_entry2]).exists())
def test_feedentries_read_delete_shortcut(self):
c = Client()
data = []
response = c.delete('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
def test_feedentries_read_delete_malformed(self):
c = Client()
data = [0]
response = c.delete('/api/feedentries/read',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentry_favorite_post(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
c = Client()
response = c.post(f'/api/feedentry/{feed_entry.uuid}/favorite',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertTrue(models.FavoriteFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry=feed_entry).exists())
def test_feedentry_favorite_post_not_found(self):
c = Client()
response = c.post(f'/api/feedentry/{uuid.uuid4()}/favorite',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 404, response.content)
def test_feedentry_favorite_post_duplicate(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
models.FavoriteFeedEntryUserMapping.objects.create(
feed_entry=feed_entry, user=FeedEntryTestCase.user)
c = Client()
response = c.post(f'/api/feedentry/{feed_entry.uuid}/favorite',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
def test_feedentry_favorite_delete(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
models.FavoriteFeedEntryUserMapping.objects.create(
user=FeedEntryTestCase.user, feed_entry=feed_entry)
c = Client()
response = c.delete(f'/api/feedentry/{feed_entry.uuid}/favorite',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertFalse(models.FavoriteFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry=feed_entry).exists())
def test_feedentries_favorite_post(self):
feed_entry1 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 1 Title',
url='http://example.com/entry1.html',
content='Some Entry content 1',
author_name='John Doe',
db_updated_at=None)
feed_entry2 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 2 Title',
url='http://example.com/entry2.html',
content='Some Entry content 2',
author_name='John Doe',
db_updated_at=None)
c = Client()
data = [str(feed_entry1.uuid), str(feed_entry2.uuid)]
response = c.post('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertEqual(models.FavoriteFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry__in=[feed_entry1, feed_entry2]).count(), 2)
def test_feedentries_favorite_post_shortcut(self):
c = Client()
data = []
response = c.post('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
def test_feedentries_favorite_post_malformed(self):
c = Client()
data = [0]
response = c.post('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_favorite_post_not_found(self):
c = Client()
data = [str(uuid.uuid4())]
response = c.post('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 404, response.content)
def test_feedentries_favorite_post_duplicate(self):
feed_entry = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry Title',
url='http://example.com/entry1.html',
content='Some Entry content',
author_name='John Doe',
db_updated_at=None)
models.FavoriteFeedEntryUserMapping.objects.create(
feed_entry=feed_entry, user=FeedEntryTestCase.user)
c = Client()
data = [str(feed_entry.uuid)]
response = c.post('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
def test_feedentries_favorite_delete(self):
feed_entry1 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 1 Title',
url='http://example.com/entry1.html',
content='Some Entry content 1',
author_name='John Doe',
db_updated_at=None)
feed_entry2 = models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 2 Title',
url='http://example.com/entry2.html',
content='Some Entry content 2',
author_name='John Doe',
db_updated_at=None)
models.FavoriteFeedEntryUserMapping.objects.create(
user=FeedEntryTestCase.user, feed_entry=feed_entry1)
models.FavoriteFeedEntryUserMapping.objects.create(
user=FeedEntryTestCase.user, feed_entry=feed_entry2)
c = Client()
data = [str(feed_entry1.uuid), str(feed_entry2.uuid)]
response = c.delete('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
self.assertFalse(models.FavoriteFeedEntryUserMapping.objects.filter(
user=FeedEntryTestCase.user, feed_entry__in=[feed_entry1, feed_entry2]).exists())
def test_feedentries_favorite_delete_shortcut(self):
c = Client()
data = []
response = c.delete('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 204, response.content)
def test_feedentries_favorite_delete_malformed(self):
c = Client()
data = [0]
response = c.delete('/api/feedentries/favorite',
ujson.dumps(data),
'application/json',
HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
def test_feedentries_query_stable_create_post(self):
c = Client()
data = {}
response = c.post('/api/feedentries/query/stable/create', ujson.dumps(data),
'application/json', HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
json_ = ujson.loads(response.content)
self.assertIsInstance(json_, str)
def test_feedentries_query_stable_post(self):
models.FeedEntry.objects.create(
id=None,
feed=FeedEntryTestCase.feed,
created_at=None,
updated_at=None,
title='Feed Entry 1 Title',
url='http://example.com/entry1.html',
content='Some Entry content 1',
author_name='John Doe',
db_updated_at=None)
c = Client()
data = {}
response = c.post('/api/feedentries/query/stable/create', ujson.dumps(data),
'application/json', HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
json_ = ujson.loads(response.content)
self.assertIsInstance(json_, str)
data = {
'token': json_,
}
response = c.post('/api/feedentries/query/stable', ujson.dumps(data),
'application/json', HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
json_ = ujson.loads(response.content)
self.assertIsInstance(json_, dict)
self.assertIn('objects', json_)
self.assertIsInstance(json_['objects'], list)
def test_feedentries_query_stable_post_token_missing(self):
c = Client()
data = {}
response = c.post('/api/feedentries/query/stable', ujson.dumps(data),
'application/json', HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
self.assertIn(b'token', response.content)
self.assertIn(b'missing', response.content)
def test_feedentries_query_stable_post_token_typeerror(self):
c = Client()
data = {
'token': 0,
}
response = c.post('/api/feedentries/query/stable', ujson.dumps(data),
'application/json', HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
self.assertIn(b'token', response.content)
self.assertIn(b'must be', response.content)
def test_feedentries_query_stable_post_token_malformed(self):
c = Client()
data = {
'token': 'badtoken',
}
response = c.post('/api/feedentries/query/stable', ujson.dumps(data),
'application/json', HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 400, response.content)
self.assertIn(b'token', response.content)
self.assertIn(b'malformed', response.content)
def test_feedentries_query_stable_post_token_valid(self):
c = Client()
data = {
'token': 'feedentry-0123456789',
}
response = c.post('/api/feedentries/query/stable', ujson.dumps(data),
'application/json', HTTP_X_SESSION_TOKEN=FeedEntryTestCase.session_token_str)
self.assertEqual(response.status_code, 200, response.content)
json_ = ujson.loads(response.content)
self.assertIsInstance(json_, dict)
self.assertIn('objects', json_)
self.assertIsInstance(json_['objects'], list)
| 36.865885
| 103
| 0.603504
| 2,889
| 28,313
| 5.693319
| 0.045691
| 0.061284
| 0.038303
| 0.042376
| 0.942911
| 0.923881
| 0.915856
| 0.903393
| 0.898954
| 0.886916
| 0
| 0.011042
| 0.296295
| 28,313
| 767
| 104
| 36.91395
| 0.814495
| 0
| 0
| 0.812081
| 0
| 0
| 0.119945
| 0.039593
| 0
| 0
| 0
| 0
| 0.112416
| 1
| 0.068792
| false
| 0
| 0.011745
| 0
| 0.082215
| 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
|
f5083ca191b6916594c4c0f2134877473de99c6f
| 95,885
|
py
|
Python
|
neural_net_cell_segmenter/data/ground_truth/gonzalez/Seeds.py
|
NilaiVemula/neural_net_cell_segmenter
|
c9d8727a329980b12e266c6749f7df911aae84aa
|
[
"MIT"
] | null | null | null |
neural_net_cell_segmenter/data/ground_truth/gonzalez/Seeds.py
|
NilaiVemula/neural_net_cell_segmenter
|
c9d8727a329980b12e266c6749f7df911aae84aa
|
[
"MIT"
] | 147
|
2020-07-28T20:30:45.000Z
|
2022-03-12T00:31:33.000Z
|
neural_net_cell_segmenter/data/ground_truth/gonzalez/Seeds.py
|
NilaiVemula/neural_net_cell_segmenter
|
c9d8727a329980b12e266c6749f7df911aae84aa
|
[
"MIT"
] | null | null | null |
seedList = [
[[0, 0], [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7], [0, 8], [0, 9], [0, 10], [0, 11], [0, 12], [0, 13],
[0, 14], [0, 15], [0, 16], [0, 17], [0, 18], [0, 19], [0, 20], [0, 21], [0, 22], [0, 23], [0, 24], [0, 25],
[0, 26], [0, 27], [0, 28], [0, 29], [0, 30], [0, 31], [0, 32], [0, 33], [0, 34], [0, 35], [0, 36], [0, 37],
[0, 38], [0, 39], [0, 40], [0, 41], [0, 42], [0, 43], [0, 44], [0, 45], [0, 46], [0, 47], [0, 48], [0, 49],
[0, 50], [0, 51], [0, 52], [0, 53], [0, 54], [0, 55], [0, 56], [0, 57], [0, 58], [0, 59], [0, 60], [0, 61],
[0, 62], [0, 63], [0, 64], [0, 65], [0, 66], [0, 67], [0, 68], [0, 69], [0, 70], [0, 71], [0, 72], [0, 73],
[0, 74], [0, 75], [0, 76], [0, 77], [0, 78], [0, 79], [0, 80], [0, 81], [0, 82], [0, 83], [0, 84], [0, 85],
[0, 86], [0, 87], [0, 88], [0, 89], [0, 90], [0, 91], [0, 92], [0, 93], [0, 94], [0, 95], [0, 96], [0, 97],
[0, 98], [0, 99], [0, 100], [0, 101], [0, 102], [0, 103], [0, 104], [0, 105], [0, 106], [0, 107], [0, 108],
[0, 109], [0, 110], [0, 111], [0, 112], [0, 113], [0, 114], [0, 115], [0, 116], [0, 117], [0, 118], [0, 119],
[0, 120], [0, 121], [0, 122], [0, 123], [0, 124], [0, 125], [0, 126], [0, 127], [0, 128], [0, 129], [0, 130],
[0, 131], [0, 132], [0, 133], [0, 134], [0, 135], [0, 136], [0, 137], [0, 138], [0, 139], [0, 140], [0, 141],
[0, 142], [0, 143], [0, 144], [0, 145], [0, 146], [0, 147], [0, 148], [0, 149], [0, 150], [0, 151], [0, 152],
[0, 153], [0, 154], [0, 155], [0, 156], [0, 157], [0, 158], [0, 159], [0, 160], [0, 161], [0, 162], [0, 163],
[0, 164], [0, 165], [0, 166], [0, 167], [0, 168], [0, 169], [0, 170], [0, 171], [0, 172], [0, 173], [0, 174],
[0, 175], [0, 176], [0, 177], [0, 178], [0, 179], [0, 180], [0, 181], [0, 182], [0, 183], [0, 184], [0, 185],
[0, 186], [0, 187], [0, 188], [0, 189], [0, 190], [0, 191], [0, 192], [0, 193], [0, 194], [0, 195], [0, 196],
[0, 197], [0, 198], [0, 199], [0, 200], [0, 201], [0, 202], [0, 203], [0, 204], [0, 205], [0, 206], [0, 207],
[0, 208], [0, 209], [0, 210], [0, 211], [0, 212], [0, 213], [0, 214], [0, 215], [0, 216], [0, 217], [0, 218],
[0, 219], [0, 220], [0, 221], [0, 222], [0, 223], [0, 224], [0, 225], [0, 226], [0, 227], [0, 228], [0, 229],
[0, 230], [0, 231], [0, 232], [0, 233], [0, 234], [0, 235], [0, 236], [0, 237], [0, 238], [0, 239], [0, 240],
[0, 241], [0, 242], [0, 243], [0, 244], [0, 245], [0, 246], [0, 247], [0, 248], [0, 249], [0, 250], [0, 251],
[0, 252], [0, 253], [0, 254], [0, 255], [0, 256], [0, 257], [0, 258], [0, 259], [0, 260], [0, 261], [0, 262],
[0, 263], [0, 264], [0, 265], [0, 266], [0, 267], [0, 268], [0, 269], [0, 270], [0, 271], [0, 272], [0, 273],
[0, 274], [0, 275], [0, 276], [0, 277], [0, 278], [0, 279], [0, 280], [0, 281], [0, 282], [0, 283], [0, 284],
[0, 285], [0, 286], [0, 287], [0, 288], [0, 289], [0, 290], [0, 291], [0, 292], [0, 293], [0, 294], [0, 295],
[0, 296], [0, 297], [0, 298], [0, 299], [0, 300], [0, 301], [0, 302], [0, 303], [0, 304], [0, 305], [0, 306],
[0, 307], [0, 308], [0, 309], [0, 310], [0, 311], [0, 312], [0, 313], [0, 314], [0, 315], [0, 316], [0, 317],
[0, 318], [0, 319], [0, 320], [0, 321], [0, 322], [0, 323], [0, 324], [0, 325], [0, 326], [0, 327], [0, 328],
[0, 329], [0, 330], [0, 331], [0, 332], [0, 333], [0, 334], [0, 335], [0, 336], [0, 337], [0, 338], [0, 339],
[0, 340], [0, 341], [0, 342], [0, 343], [0, 344], [0, 345], [0, 346], [0, 347], [0, 348], [0, 349], [0, 350],
[0, 351], [0, 352], [0, 353], [0, 354], [0, 355], [0, 356], [0, 357], [0, 358], [0, 359], [0, 360], [0, 361],
[0, 362], [0, 363], [0, 364], [0, 365], [0, 366], [0, 367], [0, 368], [0, 369], [0, 370], [0, 371], [0, 372],
[0, 373], [0, 374], [0, 375], [0, 376], [0, 377], [0, 378], [0, 379], [0, 380], [0, 381], [0, 382], [0, 383],
[0, 384], [0, 385], [0, 386], [0, 387], [1, 0], [1, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [1, 8],
[1, 9], [1, 10], [1, 11], [1, 12], [1, 13], [1, 14], [1, 15], [1, 16], [1, 17], [1, 18], [1, 19], [1, 20], [1, 21],
[1, 22], [1, 23], [1, 24], [1, 25], [1, 26], [1, 27], [1, 28], [1, 29], [1, 30], [1, 31], [1, 32], [1, 33],
[1, 34], [1, 35], [1, 36], [1, 37], [1, 38], [1, 39], [1, 40], [1, 41], [1, 42], [1, 43], [1, 44], [1, 45],
[1, 46], [1, 47], [1, 48], [1, 49], [1, 50], [1, 51], [1, 52], [1, 53], [1, 54], [1, 55], [1, 56], [1, 57],
[1, 58], [1, 59], [1, 60], [1, 61], [1, 62], [1, 63], [1, 64], [1, 65], [1, 66], [1, 67], [1, 68], [1, 69],
[1, 70], [1, 71], [1, 72], [1, 73], [1, 74], [1, 75], [1, 76], [1, 77], [1, 78], [1, 79], [1, 80], [1, 81],
[1, 82], [1, 83], [1, 84], [1, 85], [1, 86], [1, 87], [1, 88], [1, 89], [1, 90], [1, 91], [1, 92], [1, 93],
[1, 94], [1, 95], [1, 96], [1, 97], [1, 98], [1, 99], [1, 100], [1, 101], [1, 102], [1, 103], [1, 104], [1, 105],
[1, 106], [1, 107], [1, 108], [1, 109], [1, 110], [1, 111], [1, 112], [1, 113], [1, 114], [1, 115], [1, 116],
[1, 117], [1, 118], [1, 119], [1, 120], [1, 121], [1, 122], [1, 123], [1, 124], [1, 125], [1, 126], [1, 127],
[1, 128], [1, 129], [1, 130], [1, 131], [1, 132], [1, 133], [1, 134], [1, 135], [1, 136], [1, 137], [1, 138],
[1, 139], [1, 140], [1, 141], [1, 142], [1, 143], [1, 144], [1, 145], [1, 146], [1, 147], [1, 148], [1, 149],
[1, 150], [1, 151], [1, 152], [1, 153], [1, 154], [1, 155], [1, 156], [1, 157], [1, 158], [1, 159], [1, 160],
[1, 161], [1, 162], [1, 163], [1, 164], [1, 165], [1, 166], [1, 167], [1, 168], [1, 169], [1, 170], [1, 171],
[1, 172], [1, 173], [1, 174], [1, 175], [1, 176], [1, 177], [1, 178], [1, 179], [1, 180], [1, 181], [1, 182],
[1, 183], [1, 184], [1, 185], [1, 186], [1, 187], [1, 188], [1, 189], [1, 190], [1, 191], [1, 192], [1, 193],
[1, 194], [1, 195], [1, 196], [1, 197], [1, 198], [1, 199], [1, 200], [1, 201], [1, 202], [1, 203], [1, 204],
[1, 205], [1, 206], [1, 207], [1, 208], [1, 209], [1, 210], [1, 211], [1, 212], [1, 213], [1, 214], [1, 215],
[1, 216], [1, 217], [1, 218], [1, 219], [1, 220], [1, 221], [1, 222], [1, 223], [1, 224], [1, 225], [1, 226],
[1, 227], [1, 228], [1, 229], [1, 230], [1, 231], [1, 232], [1, 233], [1, 234], [1, 235], [1, 236], [1, 237],
[1, 238], [1, 239], [1, 240], [1, 241], [1, 242], [1, 243], [1, 244], [1, 245], [1, 246], [1, 247], [1, 248],
[1, 249], [1, 250], [1, 251], [1, 252], [1, 253], [1, 254], [1, 255], [1, 256], [1, 257], [1, 258], [1, 259],
[1, 260], [1, 261], [1, 262], [1, 263], [1, 264], [1, 265], [1, 266], [1, 267], [1, 268], [1, 269], [1, 270],
[1, 271], [1, 272], [1, 273], [1, 274], [1, 275], [1, 276], [1, 277], [1, 278], [1, 279], [1, 280], [1, 281],
[1, 282], [1, 283], [1, 284], [1, 285], [1, 286], [1, 287], [1, 288], [1, 289], [1, 290], [1, 291], [1, 292],
[1, 293], [1, 294], [1, 295], [1, 296], [1, 297], [1, 298], [1, 299], [1, 300], [1, 301], [1, 302], [1, 303],
[1, 304], [1, 305], [1, 306], [1, 307], [1, 308], [1, 309], [1, 310], [1, 311], [1, 312], [1, 313], [1, 314],
[1, 315], [1, 316], [1, 317], [1, 318], [1, 319], [1, 320], [1, 321], [1, 322], [1, 323], [1, 324], [1, 325],
[1, 326], [1, 327], [1, 328], [1, 329], [1, 330], [1, 331], [1, 332], [1, 333], [1, 334], [1, 335], [1, 336],
[1, 337], [1, 338], [1, 339], [1, 340], [1, 341], [1, 342], [1, 343], [1, 344], [1, 345], [1, 346], [1, 347],
[1, 348], [1, 349], [1, 350], [1, 351], [1, 352], [1, 353], [1, 354], [1, 355], [1, 356], [1, 357], [1, 358],
[1, 359], [1, 360], [1, 361], [1, 362], [1, 363], [1, 364], [1, 365], [1, 366], [1, 367], [1, 368], [1, 369],
[1, 370], [1, 371], [1, 372], [1, 373], [1, 374], [1, 375], [1, 376], [1, 377], [1, 378], [1, 379], [1, 380],
[1, 381], [1, 382], [1, 383], [1, 384], [1, 385], [1, 386], [1, 387], [2, 0], [2, 1], [2, 386], [2, 387], [3, 0],
[3, 1], [3, 386], [3, 387], [4, 0], [4, 1], [4, 386], [4, 387], [5, 0], [5, 1], [5, 386], [5, 387], [6, 0], [6, 1],
[6, 386], [6, 387], [7, 0], [7, 1], [7, 386], [7, 387], [8, 0], [8, 1], [8, 386], [8, 387], [9, 0], [9, 1],
[9, 386], [9, 387], [10, 0], [10, 1], [10, 386], [10, 387], [11, 0], [11, 1], [11, 386], [11, 387], [12, 0],
[12, 1], [12, 386], [12, 387], [13, 0], [13, 1], [13, 386], [13, 387], [14, 0], [14, 1], [14, 386], [14, 387],
[15, 0], [15, 1], [15, 386], [15, 387], [16, 0], [16, 1], [16, 386], [16, 387], [17, 0], [17, 1], [17, 386],
[17, 387], [18, 0], [18, 1], [18, 386], [18, 387], [19, 0], [19, 1], [19, 386], [19, 387], [20, 0], [20, 1],
[20, 386], [20, 387], [21, 0], [21, 1], [21, 386], [21, 387], [22, 0], [22, 1], [22, 386], [22, 387], [23, 0],
[23, 1], [23, 386], [23, 387], [24, 0], [24, 1], [24, 386], [24, 387], [25, 0], [25, 1], [25, 386], [25, 387],
[26, 0], [26, 1], [26, 106], [26, 107], [26, 108], [26, 109], [26, 110], [26, 386], [26, 387], [27, 0], [27, 1],
[27, 106], [27, 107], [27, 108], [27, 109], [27, 110], [27, 386], [27, 387], [28, 0], [28, 1], [28, 26], [28, 27],
[28, 28], [28, 29], [28, 30], [28, 106], [28, 107], [28, 108], [28, 109], [28, 110], [28, 386], [28, 387], [29, 0],
[29, 1], [29, 26], [29, 27], [29, 28], [29, 29], [29, 30], [29, 106], [29, 107], [29, 108], [29, 109], [29, 110],
[29, 334], [29, 335], [29, 336], [29, 337], [29, 338], [29, 386], [29, 387], [30, 0], [30, 1], [30, 26], [30, 27],
[30, 28], [30, 29], [30, 30], [30, 106], [30, 107], [30, 108], [30, 109], [30, 110], [30, 334], [30, 335],
[30, 336], [30, 337], [30, 338], [30, 386], [30, 387], [31, 0], [31, 1], [31, 26], [31, 27], [31, 28], [31, 29],
[31, 30], [31, 334], [31, 335], [31, 336], [31, 337], [31, 338], [31, 386], [31, 387], [32, 0], [32, 1], [32, 26],
[32, 27], [32, 28], [32, 29], [32, 30], [32, 334], [32, 335], [32, 336], [32, 337], [32, 338], [32, 386],
[32, 387], [33, 0], [33, 1], [33, 334], [33, 335], [33, 336], [33, 337], [33, 338], [33, 386], [33, 387], [34, 0],
[34, 1], [34, 386], [34, 387], [35, 0], [35, 1], [35, 386], [35, 387], [36, 0], [36, 1], [36, 386], [36, 387],
[37, 0], [37, 1], [37, 234], [37, 235], [37, 236], [37, 237], [37, 238], [37, 386], [37, 387], [38, 0], [38, 1],
[38, 234], [38, 235], [38, 236], [38, 237], [38, 238], [38, 386], [38, 387], [39, 0], [39, 1], [39, 234],
[39, 235], [39, 236], [39, 237], [39, 238], [39, 386], [39, 387], [40, 0], [40, 1], [40, 234], [40, 235],
[40, 236], [40, 237], [40, 238], [40, 386], [40, 387], [41, 0], [41, 1], [41, 234], [41, 235], [41, 236],
[41, 237], [41, 238], [41, 386], [41, 387], [42, 0], [42, 1], [42, 386], [42, 387], [43, 0], [43, 1], [43, 386],
[43, 387], [44, 0], [44, 1], [44, 386], [44, 387], [45, 0], [45, 1], [45, 386], [45, 387], [46, 0], [46, 1],
[46, 386], [46, 387], [47, 0], [47, 1], [47, 152], [47, 153], [47, 154], [47, 155], [47, 156], [47, 386],
[47, 387], [48, 0], [48, 1], [48, 72], [48, 73], [48, 74], [48, 75], [48, 76], [48, 152], [48, 153], [48, 154],
[48, 155], [48, 156], [48, 386], [48, 387], [49, 0], [49, 1], [49, 72], [49, 73], [49, 74], [49, 75], [49, 76],
[49, 152], [49, 153], [49, 154], [49, 155], [49, 156], [49, 386], [49, 387], [50, 0], [50, 1], [50, 72], [50, 73],
[50, 74], [50, 75], [50, 76], [50, 152], [50, 153], [50, 154], [50, 155], [50, 156], [50, 386], [50, 387], [51, 0],
[51, 1], [51, 72], [51, 73], [51, 74], [51, 75], [51, 76], [51, 152], [51, 153], [51, 154], [51, 155], [51, 156],
[51, 386], [51, 387], [52, 0], [52, 1], [52, 72], [52, 73], [52, 74], [52, 75], [52, 76], [52, 386], [52, 387],
[53, 0], [53, 1], [53, 303], [53, 304], [53, 305], [53, 306], [53, 307], [53, 386], [53, 387], [54, 0], [54, 1],
[54, 303], [54, 304], [54, 305], [54, 306], [54, 307], [54, 386], [54, 387], [55, 0], [55, 1], [55, 303],
[55, 304], [55, 305], [55, 306], [55, 307], [55, 386], [55, 387], [56, 0], [56, 1], [56, 303], [56, 304],
[56, 305], [56, 306], [56, 307], [56, 386], [56, 387], [57, 0], [57, 1], [57, 303], [57, 304], [57, 305],
[57, 306], [57, 307], [57, 386], [57, 387], [58, 0], [58, 1], [58, 386], [58, 387], [59, 0], [59, 1], [59, 386],
[59, 387], [60, 0], [60, 1], [60, 191], [60, 192], [60, 193], [60, 194], [60, 195], [60, 386], [60, 387], [61, 0],
[61, 1], [61, 191], [61, 192], [61, 193], [61, 194], [61, 195], [61, 386], [61, 387], [62, 0], [62, 1], [62, 191],
[62, 192], [62, 193], [62, 194], [62, 195], [62, 386], [62, 387], [63, 0], [63, 1], [63, 191], [63, 192],
[63, 193], [63, 194], [63, 195], [63, 386], [63, 387], [64, 0], [64, 1], [64, 191], [64, 192], [64, 193],
[64, 194], [64, 195], [64, 386], [64, 387], [65, 0], [65, 1], [65, 386], [65, 387], [66, 0], [66, 1], [66, 386],
[66, 387], [67, 0], [67, 1], [67, 386], [67, 387], [68, 0], [68, 1], [68, 386], [68, 387], [69, 0], [69, 1],
[69, 386], [69, 387], [70, 0], [70, 1], [70, 41], [70, 42], [70, 43], [70, 44], [70, 45], [70, 386], [70, 387],
[71, 0], [71, 1], [71, 41], [71, 42], [71, 43], [71, 44], [71, 45], [71, 386], [71, 387], [72, 0], [72, 1],
[72, 41], [72, 42], [72, 43], [72, 44], [72, 45], [72, 106], [72, 107], [72, 108], [72, 109], [72, 110], [72, 386],
[72, 387], [73, 0], [73, 1], [73, 41], [73, 42], [73, 43], [73, 44], [73, 45], [73, 106], [73, 107], [73, 108],
[73, 109], [73, 110], [73, 386], [73, 387], [74, 0], [74, 1], [74, 41], [74, 42], [74, 43], [74, 44], [74, 45],
[74, 106], [74, 107], [74, 108], [74, 109], [74, 110], [74, 386], [74, 387], [75, 0], [75, 1], [75, 106],
[75, 107], [75, 108], [75, 109], [75, 110], [75, 345], [75, 346], [75, 347], [75, 348], [75, 349], [75, 386],
[75, 387], [76, 0], [76, 1], [76, 106], [76, 107], [76, 108], [76, 109], [76, 110], [76, 345], [76, 346],
[76, 347], [76, 348], [76, 349], [76, 386], [76, 387], [77, 0], [77, 1], [77, 345], [77, 346], [77, 347],
[77, 348], [77, 349], [77, 386], [77, 387], [78, 0], [78, 1], [78, 265], [78, 266], [78, 267], [78, 268],
[78, 269], [78, 345], [78, 346], [78, 347], [78, 348], [78, 349], [78, 386], [78, 387], [79, 0], [79, 1],
[79, 265], [79, 266], [79, 267], [79, 268], [79, 269], [79, 345], [79, 346], [79, 347], [79, 348], [79, 349],
[79, 386], [79, 387], [80, 0], [80, 1], [80, 265], [80, 266], [80, 267], [80, 268], [80, 269], [80, 386],
[80, 387], [81, 0], [81, 1], [81, 265], [81, 266], [81, 267], [81, 268], [81, 269], [81, 386], [81, 387], [82, 0],
[82, 1], [82, 265], [82, 266], [82, 267], [82, 268], [82, 269], [82, 386], [82, 387], [83, 0], [83, 1], [83, 386],
[83, 387], [84, 0], [84, 1], [84, 386], [84, 387], [85, 0], [85, 1], [85, 386], [85, 387], [86, 0], [86, 1],
[86, 386], [86, 387], [87, 0], [87, 1], [87, 386], [87, 387], [88, 0], [88, 1], [88, 386], [88, 387], [89, 0],
[89, 1], [89, 83], [89, 84], [89, 85], [89, 86], [89, 87], [89, 151], [89, 152], [89, 153], [89, 154], [89, 155],
[89, 386], [89, 387], [90, 0], [90, 1], [90, 83], [90, 84], [90, 85], [90, 86], [90, 87], [90, 151], [90, 152],
[90, 153], [90, 154], [90, 155], [90, 386], [90, 387], [91, 0], [91, 1], [91, 83], [91, 84], [91, 85], [91, 86],
[91, 87], [91, 151], [91, 152], [91, 153], [91, 154], [91, 155], [91, 386], [91, 387], [92, 0], [92, 1], [92, 83],
[92, 84], [92, 85], [92, 86], [92, 87], [92, 151], [92, 152], [92, 153], [92, 154], [92, 155], [92, 386],
[92, 387], [93, 0], [93, 1], [93, 83], [93, 84], [93, 85], [93, 86], [93, 87], [93, 151], [93, 152], [93, 153],
[93, 154], [93, 155], [93, 386], [93, 387], [94, 0], [94, 1], [94, 219], [94, 220], [94, 221], [94, 222],
[94, 223], [94, 386], [94, 387], [95, 0], [95, 1], [95, 219], [95, 220], [95, 221], [95, 222], [95, 223],
[95, 386], [95, 387], [96, 0], [96, 1], [96, 219], [96, 220], [96, 221], [96, 222], [96, 223], [96, 386],
[96, 387], [97, 0], [97, 1], [97, 219], [97, 220], [97, 221], [97, 222], [97, 223], [97, 386], [97, 387], [98, 0],
[98, 1], [98, 219], [98, 220], [98, 221], [98, 222], [98, 223], [98, 386], [98, 387], [99, 0], [99, 1], [99, 313],
[99, 314], [99, 315], [99, 316], [99, 317], [99, 386], [99, 387], [100, 0], [100, 1], [100, 313], [100, 314],
[100, 315], [100, 316], [100, 317], [100, 386], [100, 387], [101, 0], [101, 1], [101, 313], [101, 314], [101, 315],
[101, 316], [101, 317], [101, 386], [101, 387], [102, 0], [102, 1], [102, 188], [102, 189], [102, 190], [102, 191],
[102, 192], [102, 313], [102, 314], [102, 315], [102, 316], [102, 317], [102, 386], [102, 387], [103, 0], [103, 1],
[103, 37], [103, 38], [103, 39], [103, 40], [103, 41], [103, 188], [103, 189], [103, 190], [103, 191], [103, 192],
[103, 313], [103, 314], [103, 315], [103, 316], [103, 317], [103, 386], [103, 387], [104, 0], [104, 1], [104, 37],
[104, 38], [104, 39], [104, 40], [104, 41], [104, 188], [104, 189], [104, 190], [104, 191], [104, 192], [104, 386],
[104, 387], [105, 0], [105, 1], [105, 37], [105, 38], [105, 39], [105, 40], [105, 41], [105, 188], [105, 189],
[105, 190], [105, 191], [105, 192], [105, 386], [105, 387], [106, 0], [106, 1], [106, 37], [106, 38], [106, 39],
[106, 40], [106, 41], [106, 188], [106, 189], [106, 190], [106, 191], [106, 192], [106, 386], [106, 387], [107, 0],
[107, 1], [107, 37], [107, 38], [107, 39], [107, 40], [107, 41], [107, 125], [107, 126], [107, 127], [107, 128],
[107, 129], [107, 386], [107, 387], [108, 0], [108, 1], [108, 125], [108, 126], [108, 127], [108, 128], [108, 129],
[108, 386], [108, 387], [109, 0], [109, 1], [109, 125], [109, 126], [109, 127], [109, 128], [109, 129], [109, 386],
[109, 387], [110, 0], [110, 1], [110, 125], [110, 126], [110, 127], [110, 128], [110, 129], [110, 386], [110, 387],
[111, 0], [111, 1], [111, 125], [111, 126], [111, 127], [111, 128], [111, 129], [111, 386], [111, 387], [112, 0],
[112, 1], [112, 262], [112, 263], [112, 264], [112, 265], [112, 266], [112, 386], [112, 387], [113, 0], [113, 1],
[113, 262], [113, 263], [113, 264], [113, 265], [113, 266], [113, 386], [113, 387], [114, 0], [114, 1], [114, 262],
[114, 263], [114, 264], [114, 265], [114, 266], [114, 353], [114, 354], [114, 355], [114, 356], [114, 357],
[114, 386], [114, 387], [115, 0], [115, 1], [115, 262], [115, 263], [115, 264], [115, 265], [115, 266], [115, 353],
[115, 354], [115, 355], [115, 356], [115, 357], [115, 386], [115, 387], [116, 0], [116, 1], [116, 262], [116, 263],
[116, 264], [116, 265], [116, 266], [116, 353], [116, 354], [116, 355], [116, 356], [116, 357], [116, 386],
[116, 387], [117, 0], [117, 1], [117, 353], [117, 354], [117, 355], [117, 356], [117, 357], [117, 386], [117, 387],
[118, 0], [118, 1], [118, 353], [118, 354], [118, 355], [118, 356], [118, 357], [118, 386], [118, 387], [119, 0],
[119, 1], [119, 386], [119, 387], [120, 0], [120, 1], [120, 386], [120, 387], [121, 0], [121, 1], [121, 386],
[121, 387], [122, 0], [122, 1], [122, 386], [122, 387], [123, 0], [123, 1], [123, 386], [123, 387], [124, 0],
[124, 1], [124, 386], [124, 387], [125, 0], [125, 1], [125, 159], [125, 160], [125, 161], [125, 162], [125, 163],
[125, 386], [125, 387], [126, 0], [126, 1], [126, 80], [126, 81], [126, 82], [126, 83], [126, 84], [126, 159],
[126, 160], [126, 161], [126, 162], [126, 163], [126, 386], [126, 387], [127, 0], [127, 1], [127, 80], [127, 81],
[127, 82], [127, 83], [127, 84], [127, 159], [127, 160], [127, 161], [127, 162], [127, 163], [127, 386],
[127, 387], [128, 0], [128, 1], [128, 80], [128, 81], [128, 82], [128, 83], [128, 84], [128, 159], [128, 160],
[128, 161], [128, 162], [128, 163], [128, 386], [128, 387], [129, 0], [129, 1], [129, 80], [129, 81], [129, 82],
[129, 83], [129, 84], [129, 159], [129, 160], [129, 161], [129, 162], [129, 163], [129, 386], [129, 387], [130, 0],
[130, 1], [130, 80], [130, 81], [130, 82], [130, 83], [130, 84], [130, 386], [130, 387], [131, 0], [131, 1],
[131, 227], [131, 228], [131, 229], [131, 230], [131, 231], [131, 386], [131, 387], [132, 0], [132, 1], [132, 227],
[132, 228], [132, 229], [132, 230], [132, 231], [132, 386], [132, 387], [133, 0], [133, 1], [133, 44], [133, 45],
[133, 46], [133, 47], [133, 48], [133, 227], [133, 228], [133, 229], [133, 230], [133, 231], [133, 303],
[133, 304], [133, 305], [133, 306], [133, 307], [133, 386], [133, 387], [134, 0], [134, 1], [134, 44], [134, 45],
[134, 46], [134, 47], [134, 48], [134, 227], [134, 228], [134, 229], [134, 230], [134, 231], [134, 303],
[134, 304], [134, 305], [134, 306], [134, 307], [134, 386], [134, 387], [135, 0], [135, 1], [135, 44], [135, 45],
[135, 46], [135, 47], [135, 48], [135, 227], [135, 228], [135, 229], [135, 230], [135, 231], [135, 303],
[135, 304], [135, 305], [135, 306], [135, 307], [135, 386], [135, 387], [136, 0], [136, 1], [136, 44], [136, 45],
[136, 46], [136, 47], [136, 48], [136, 303], [136, 304], [136, 305], [136, 306], [136, 307], [136, 386],
[136, 387], [137, 0], [137, 1], [137, 44], [137, 45], [137, 46], [137, 47], [137, 48], [137, 303], [137, 304],
[137, 305], [137, 306], [137, 307], [137, 386], [137, 387], [138, 0], [138, 1], [138, 116], [138, 117], [138, 118],
[138, 119], [138, 120], [138, 386], [138, 387], [139, 0], [139, 1], [139, 116], [139, 117], [139, 118], [139, 119],
[139, 120], [139, 386], [139, 387], [140, 0], [140, 1], [140, 116], [140, 117], [140, 118], [140, 119], [140, 120],
[140, 189], [140, 190], [140, 191], [140, 192], [140, 193], [140, 386], [140, 387], [141, 0], [141, 1], [141, 116],
[141, 117], [141, 118], [141, 119], [141, 120], [141, 189], [141, 190], [141, 191], [141, 192], [141, 193],
[141, 386], [141, 387], [142, 0], [142, 1], [142, 116], [142, 117], [142, 118], [142, 119], [142, 120], [142, 189],
[142, 190], [142, 191], [142, 192], [142, 193], [142, 386], [142, 387], [143, 0], [143, 1], [143, 189], [143, 190],
[143, 191], [143, 192], [143, 193], [143, 386], [143, 387], [144, 0], [144, 1], [144, 189], [144, 190], [144, 191],
[144, 192], [144, 193], [144, 386], [144, 387], [145, 0], [145, 1], [145, 386], [145, 387], [146, 0], [146, 1],
[146, 386], [146, 387], [147, 0], [147, 1], [147, 386], [147, 387], [148, 0], [148, 1], [148, 270], [148, 271],
[148, 272], [148, 273], [148, 274], [148, 386], [148, 387], [149, 0], [149, 1], [149, 270], [149, 271], [149, 272],
[149, 273], [149, 274], [149, 386], [149, 387], [150, 0], [150, 1], [150, 270], [150, 271], [150, 272], [150, 273],
[150, 274], [150, 386], [150, 387], [151, 0], [151, 1], [151, 270], [151, 271], [151, 272], [151, 273], [151, 274],
[151, 386], [151, 387], [152, 0], [152, 1], [152, 270], [152, 271], [152, 272], [152, 273], [152, 274], [152, 386],
[152, 387], [153, 0], [153, 1], [153, 348], [153, 349], [153, 350], [153, 351], [153, 352], [153, 386], [153, 387],
[154, 0], [154, 1], [154, 79], [154, 80], [154, 81], [154, 82], [154, 83], [154, 348], [154, 349], [154, 350],
[154, 351], [154, 352], [154, 386], [154, 387], [155, 0], [155, 1], [155, 79], [155, 80], [155, 81], [155, 82],
[155, 83], [155, 348], [155, 349], [155, 350], [155, 351], [155, 352], [155, 386], [155, 387], [156, 0], [156, 1],
[156, 79], [156, 80], [156, 81], [156, 82], [156, 83], [156, 348], [156, 349], [156, 350], [156, 351], [156, 352],
[156, 386], [156, 387], [157, 0], [157, 1], [157, 79], [157, 80], [157, 81], [157, 82], [157, 83], [157, 161],
[157, 162], [157, 163], [157, 164], [157, 165], [157, 348], [157, 349], [157, 350], [157, 351], [157, 352],
[157, 386], [157, 387], [158, 0], [158, 1], [158, 79], [158, 80], [158, 81], [158, 82], [158, 83], [158, 161],
[158, 162], [158, 163], [158, 164], [158, 165], [158, 386], [158, 387], [159, 0], [159, 1], [159, 161], [159, 162],
[159, 163], [159, 164], [159, 165], [159, 386], [159, 387], [160, 0], [160, 1], [160, 161], [160, 162], [160, 163],
[160, 164], [160, 165], [160, 386], [160, 387], [161, 0], [161, 1], [161, 161], [161, 162], [161, 163], [161, 164],
[161, 165], [161, 386], [161, 387], [162, 0], [162, 1], [162, 42], [162, 43], [162, 44], [162, 45], [162, 46],
[162, 386], [162, 387], [163, 0], [163, 1], [163, 42], [163, 43], [163, 44], [163, 45], [163, 46], [163, 238],
[163, 239], [163, 240], [163, 241], [163, 242], [163, 386], [163, 387], [164, 0], [164, 1], [164, 42], [164, 43],
[164, 44], [164, 45], [164, 46], [164, 238], [164, 239], [164, 240], [164, 241], [164, 242], [164, 386],
[164, 387], [165, 0], [165, 1], [165, 42], [165, 43], [165, 44], [165, 45], [165, 46], [165, 238], [165, 239],
[165, 240], [165, 241], [165, 242], [165, 386], [165, 387], [166, 0], [166, 1], [166, 42], [166, 43], [166, 44],
[166, 45], [166, 46], [166, 238], [166, 239], [166, 240], [166, 241], [166, 242], [166, 386], [166, 387], [167, 0],
[167, 1], [167, 238], [167, 239], [167, 240], [167, 241], [167, 242], [167, 386], [167, 387], [168, 0], [168, 1],
[168, 386], [168, 387], [169, 0], [169, 1], [169, 310], [169, 311], [169, 312], [169, 313], [169, 314], [169, 386],
[169, 387], [170, 0], [170, 1], [170, 310], [170, 311], [170, 312], [170, 313], [170, 314], [170, 386], [170, 387],
[171, 0], [171, 1], [171, 310], [171, 311], [171, 312], [171, 313], [171, 314], [171, 386], [171, 387], [172, 0],
[172, 1], [172, 310], [172, 311], [172, 312], [172, 313], [172, 314], [172, 386], [172, 387], [173, 0], [173, 1],
[173, 121], [173, 122], [173, 123], [173, 124], [173, 125], [173, 310], [173, 311], [173, 312], [173, 313],
[173, 314], [173, 386], [173, 387], [174, 0], [174, 1], [174, 121], [174, 122], [174, 123], [174, 124], [174, 125],
[174, 386], [174, 387], [175, 0], [175, 1], [175, 121], [175, 122], [175, 123], [175, 124], [175, 125], [175, 386],
[175, 387], [176, 0], [176, 1], [176, 121], [176, 122], [176, 123], [176, 124], [176, 125], [176, 386], [176, 387],
[177, 0], [177, 1], [177, 121], [177, 122], [177, 123], [177, 124], [177, 125], [177, 386], [177, 387], [178, 0],
[178, 1], [178, 386], [178, 387], [179, 0], [179, 1], [179, 386], [179, 387], [180, 0], [180, 1], [180, 83],
[180, 84], [180, 85], [180, 86], [180, 87], [180, 275], [180, 276], [180, 277], [180, 278], [180, 279], [180, 386],
[180, 387], [181, 0], [181, 1], [181, 83], [181, 84], [181, 85], [181, 86], [181, 87], [181, 275], [181, 276],
[181, 277], [181, 278], [181, 279], [181, 386], [181, 387], [182, 0], [182, 1], [182, 83], [182, 84], [182, 85],
[182, 86], [182, 87], [182, 275], [182, 276], [182, 277], [182, 278], [182, 279], [182, 386], [182, 387], [183, 0],
[183, 1], [183, 83], [183, 84], [183, 85], [183, 86], [183, 87], [183, 275], [183, 276], [183, 277], [183, 278],
[183, 279], [183, 386], [183, 387], [184, 0], [184, 1], [184, 83], [184, 84], [184, 85], [184, 86], [184, 87],
[184, 206], [184, 207], [184, 208], [184, 209], [184, 210], [184, 275], [184, 276], [184, 277], [184, 278],
[184, 279], [184, 386], [184, 387], [185, 0], [185, 1], [185, 206], [185, 207], [185, 208], [185, 209], [185, 210],
[185, 386], [185, 387], [186, 0], [186, 1], [186, 206], [186, 207], [186, 208], [186, 209], [186, 210], [186, 342],
[186, 343], [186, 344], [186, 345], [186, 346], [186, 386], [186, 387], [187, 0], [187, 1], [187, 206], [187, 207],
[187, 208], [187, 209], [187, 210], [187, 342], [187, 343], [187, 344], [187, 345], [187, 346], [187, 386],
[187, 387], [188, 0], [188, 1], [188, 206], [188, 207], [188, 208], [188, 209], [188, 210], [188, 342], [188, 343],
[188, 344], [188, 345], [188, 346], [188, 386], [188, 387], [189, 0], [189, 1], [189, 342], [189, 343], [189, 344],
[189, 345], [189, 346], [189, 386], [189, 387], [190, 0], [190, 1], [190, 44], [190, 45], [190, 46], [190, 47],
[190, 48], [190, 164], [190, 165], [190, 166], [190, 167], [190, 168], [190, 342], [190, 343], [190, 344],
[190, 345], [190, 346], [190, 386], [190, 387], [191, 0], [191, 1], [191, 44], [191, 45], [191, 46], [191, 47],
[191, 48], [191, 164], [191, 165], [191, 166], [191, 167], [191, 168], [191, 386], [191, 387], [192, 0], [192, 1],
[192, 44], [192, 45], [192, 46], [192, 47], [192, 48], [192, 164], [192, 165], [192, 166], [192, 167], [192, 168],
[192, 386], [192, 387], [193, 0], [193, 1], [193, 44], [193, 45], [193, 46], [193, 47], [193, 48], [193, 164],
[193, 165], [193, 166], [193, 167], [193, 168], [193, 386], [193, 387], [194, 0], [194, 1], [194, 44], [194, 45],
[194, 46], [194, 47], [194, 48], [194, 164], [194, 165], [194, 166], [194, 167], [194, 168], [194, 386],
[194, 387], [195, 0], [195, 1], [195, 386], [195, 387], [196, 0], [196, 1], [196, 235], [196, 236], [196, 237],
[196, 238], [196, 239], [196, 386], [196, 387], [197, 0], [197, 1], [197, 235], [197, 236], [197, 237], [197, 238],
[197, 239], [197, 386], [197, 387], [198, 0], [198, 1], [198, 235], [198, 236], [198, 237], [198, 238], [198, 239],
[198, 386], [198, 387], [199, 0], [199, 1], [199, 235], [199, 236], [199, 237], [199, 238], [199, 239], [199, 308],
[199, 309], [199, 310], [199, 311], [199, 312], [199, 386], [199, 387], [200, 0], [200, 1], [200, 235], [200, 236],
[200, 237], [200, 238], [200, 239], [200, 308], [200, 309], [200, 310], [200, 311], [200, 312], [200, 386],
[200, 387], [201, 0], [201, 1], [201, 308], [201, 309], [201, 310], [201, 311], [201, 312], [201, 386], [201, 387],
[202, 0], [202, 1], [202, 308], [202, 309], [202, 310], [202, 311], [202, 312], [202, 386], [202, 387], [203, 0],
[203, 1], [203, 308], [203, 309], [203, 310], [203, 311], [203, 312], [203, 386], [203, 387], [204, 0], [204, 1],
[204, 125], [204, 126], [204, 127], [204, 128], [204, 129], [204, 386], [204, 387], [205, 0], [205, 1], [205, 125],
[205, 126], [205, 127], [205, 128], [205, 129], [205, 386], [205, 387], [206, 0], [206, 1], [206, 125], [206, 126],
[206, 127], [206, 128], [206, 129], [206, 386], [206, 387], [207, 0], [207, 1], [207, 125], [207, 126], [207, 127],
[207, 128], [207, 129], [207, 386], [207, 387], [208, 0], [208, 1], [208, 125], [208, 126], [208, 127], [208, 128],
[208, 129], [208, 386], [208, 387], [209, 0], [209, 1], [209, 386], [209, 387], [210, 0], [210, 1], [210, 274],
[210, 275], [210, 276], [210, 277], [210, 278], [210, 386], [210, 387], [211, 0], [211, 1], [211, 274], [211, 275],
[211, 276], [211, 277], [211, 278], [211, 386], [211, 387], [212, 0], [212, 1], [212, 87], [212, 88], [212, 89],
[212, 90], [212, 91], [212, 274], [212, 275], [212, 276], [212, 277], [212, 278], [212, 386], [212, 387], [213, 0],
[213, 1], [213, 87], [213, 88], [213, 89], [213, 90], [213, 91], [213, 274], [213, 275], [213, 276], [213, 277],
[213, 278], [213, 386], [213, 387], [214, 0], [214, 1], [214, 87], [214, 88], [214, 89], [214, 90], [214, 91],
[214, 202], [214, 203], [214, 204], [214, 205], [214, 206], [214, 274], [214, 275], [214, 276], [214, 277],
[214, 278], [214, 386], [214, 387], [215, 0], [215, 1], [215, 87], [215, 88], [215, 89], [215, 90], [215, 91],
[215, 202], [215, 203], [215, 204], [215, 205], [215, 206], [215, 386], [215, 387], [216, 0], [216, 1], [216, 87],
[216, 88], [216, 89], [216, 90], [216, 91], [216, 202], [216, 203], [216, 204], [216, 205], [216, 206], [216, 332],
[216, 333], [216, 334], [216, 335], [216, 336], [216, 386], [216, 387], [217, 0], [217, 1], [217, 202], [217, 203],
[217, 204], [217, 205], [217, 206], [217, 332], [217, 333], [217, 334], [217, 335], [217, 336], [217, 386],
[217, 387], [218, 0], [218, 1], [218, 202], [218, 203], [218, 204], [218, 205], [218, 206], [218, 332], [218, 333],
[218, 334], [218, 335], [218, 336], [218, 386], [218, 387], [219, 0], [219, 1], [219, 332], [219, 333], [219, 334],
[219, 335], [219, 336], [219, 386], [219, 387], [220, 0], [220, 1], [220, 332], [220, 333], [220, 334], [220, 335],
[220, 336], [220, 386], [220, 387], [221, 0], [221, 1], [221, 386], [221, 387], [222, 0], [222, 1], [222, 162],
[222, 163], [222, 164], [222, 165], [222, 166], [222, 386], [222, 387], [223, 0], [223, 1], [223, 162], [223, 163],
[223, 164], [223, 165], [223, 166], [223, 386], [223, 387], [224, 0], [224, 1], [224, 162], [224, 163], [224, 164],
[224, 165], [224, 166], [224, 386], [224, 387], [225, 0], [225, 1], [225, 39], [225, 40], [225, 41], [225, 42],
[225, 43], [225, 162], [225, 163], [225, 164], [225, 165], [225, 166], [225, 386], [225, 387], [226, 0], [226, 1],
[226, 39], [226, 40], [226, 41], [226, 42], [226, 43], [226, 162], [226, 163], [226, 164], [226, 165], [226, 166],
[226, 386], [226, 387], [227, 0], [227, 1], [227, 39], [227, 40], [227, 41], [227, 42], [227, 43], [227, 386],
[227, 387], [228, 0], [228, 1], [228, 39], [228, 40], [228, 41], [228, 42], [228, 43], [228, 386], [228, 387],
[229, 0], [229, 1], [229, 39], [229, 40], [229, 41], [229, 42], [229, 43], [229, 386], [229, 387], [230, 0],
[230, 1], [230, 240], [230, 241], [230, 242], [230, 243], [230, 244], [230, 386], [230, 387], [231, 0], [231, 1],
[231, 240], [231, 241], [231, 242], [231, 243], [231, 244], [231, 386], [231, 387], [232, 0], [232, 1], [232, 240],
[232, 241], [232, 242], [232, 243], [232, 244], [232, 386], [232, 387], [233, 0], [233, 1], [233, 124], [233, 125],
[233, 126], [233, 127], [233, 128], [233, 240], [233, 241], [233, 242], [233, 243], [233, 244], [233, 386],
[233, 387], [234, 0], [234, 1], [234, 124], [234, 125], [234, 126], [234, 127], [234, 128], [234, 240], [234, 241],
[234, 242], [234, 243], [234, 244], [234, 308], [234, 309], [234, 310], [234, 311], [234, 312], [234, 386],
[234, 387], [235, 0], [235, 1], [235, 124], [235, 125], [235, 126], [235, 127], [235, 128], [235, 308], [235, 309],
[235, 310], [235, 311], [235, 312], [235, 386], [235, 387], [236, 0], [236, 1], [236, 124], [236, 125], [236, 126],
[236, 127], [236, 128], [236, 308], [236, 309], [236, 310], [236, 311], [236, 312], [236, 386], [236, 387],
[237, 0], [237, 1], [237, 124], [237, 125], [237, 126], [237, 127], [237, 128], [237, 308], [237, 309], [237, 310],
[237, 311], [237, 312], [237, 386], [237, 387], [238, 0], [238, 1], [238, 308], [238, 309], [238, 310], [238, 311],
[238, 312], [238, 386], [238, 387], [239, 0], [239, 1], [239, 386], [239, 387], [240, 0], [240, 1], [240, 386],
[240, 387], [241, 0], [241, 1], [241, 386], [241, 387], [242, 0], [242, 1], [242, 271], [242, 272], [242, 273],
[242, 274], [242, 275], [242, 386], [242, 387], [243, 0], [243, 1], [243, 271], [243, 272], [243, 273], [243, 274],
[243, 275], [243, 386], [243, 387], [244, 0], [244, 1], [244, 271], [244, 272], [244, 273], [244, 274], [244, 275],
[244, 386], [244, 387], [245, 0], [245, 1], [245, 271], [245, 272], [245, 273], [245, 274], [245, 275], [245, 386],
[245, 387], [246, 0], [246, 1], [246, 83], [246, 84], [246, 85], [246, 86], [246, 87], [246, 216], [246, 217],
[246, 218], [246, 219], [246, 220], [246, 271], [246, 272], [246, 273], [246, 274], [246, 275], [246, 386],
[246, 387], [247, 0], [247, 1], [247, 83], [247, 84], [247, 85], [247, 86], [247, 87], [247, 216], [247, 217],
[247, 218], [247, 219], [247, 220], [247, 386], [247, 387], [248, 0], [248, 1], [248, 83], [248, 84], [248, 85],
[248, 86], [248, 87], [248, 216], [248, 217], [248, 218], [248, 219], [248, 220], [248, 386], [248, 387], [249, 0],
[249, 1], [249, 83], [249, 84], [249, 85], [249, 86], [249, 87], [249, 216], [249, 217], [249, 218], [249, 219],
[249, 220], [249, 386], [249, 387], [250, 0], [250, 1], [250, 83], [250, 84], [250, 85], [250, 86], [250, 87],
[250, 216], [250, 217], [250, 218], [250, 219], [250, 220], [250, 386], [250, 387], [251, 0], [251, 1], [251, 386],
[251, 387], [252, 0], [252, 1], [252, 168], [252, 169], [252, 170], [252, 171], [252, 172], [252, 336], [252, 337],
[252, 338], [252, 339], [252, 340], [252, 386], [252, 387], [253, 0], [253, 1], [253, 168], [253, 169], [253, 170],
[253, 171], [253, 172], [253, 336], [253, 337], [253, 338], [253, 339], [253, 340], [253, 386], [253, 387],
[254, 0], [254, 1], [254, 168], [254, 169], [254, 170], [254, 171], [254, 172], [254, 336], [254, 337], [254, 338],
[254, 339], [254, 340], [254, 386], [254, 387], [255, 0], [255, 1], [255, 168], [255, 169], [255, 170], [255, 171],
[255, 172], [255, 336], [255, 337], [255, 338], [255, 339], [255, 340], [255, 386], [255, 387], [256, 0], [256, 1],
[256, 168], [256, 169], [256, 170], [256, 171], [256, 172], [256, 336], [256, 337], [256, 338], [256, 339],
[256, 340], [256, 386], [256, 387], [257, 0], [257, 1], [257, 386], [257, 387], [258, 0], [258, 1], [258, 386],
[258, 387], [259, 0], [259, 1], [259, 386], [259, 387], [260, 0], [260, 1], [260, 386], [260, 387], [261, 0],
[261, 1], [261, 386], [261, 387], [262, 0], [262, 1], [262, 293], [262, 294], [262, 295], [262, 296], [262, 297],
[262, 386], [262, 387], [263, 0], [263, 1], [263, 59], [263, 60], [263, 61], [263, 62], [263, 63], [263, 293],
[263, 294], [263, 295], [263, 296], [263, 297], [263, 386], [263, 387], [264, 0], [264, 1], [264, 59], [264, 60],
[264, 61], [264, 62], [264, 63], [264, 251], [264, 252], [264, 253], [264, 254], [264, 255], [264, 293],
[264, 294], [264, 295], [264, 296], [264, 297], [264, 386], [264, 387], [265, 0], [265, 1], [265, 59], [265, 60],
[265, 61], [265, 62], [265, 63], [265, 251], [265, 252], [265, 253], [265, 254], [265, 255], [265, 293],
[265, 294], [265, 295], [265, 296], [265, 297], [265, 386], [265, 387], [266, 0], [266, 1], [266, 59], [266, 60],
[266, 61], [266, 62], [266, 63], [266, 251], [266, 252], [266, 253], [266, 254], [266, 255], [266, 293],
[266, 294], [266, 295], [266, 296], [266, 297], [266, 386], [266, 387], [267, 0], [267, 1], [267, 23], [267, 24],
[267, 25], [267, 26], [267, 27], [267, 59], [267, 60], [267, 61], [267, 62], [267, 63], [267, 251], [267, 252],
[267, 253], [267, 254], [267, 255], [267, 386], [267, 387], [268, 0], [268, 1], [268, 23], [268, 24], [268, 25],
[268, 26], [268, 27], [268, 251], [268, 252], [268, 253], [268, 254], [268, 255], [268, 386], [268, 387], [269, 0],
[269, 1], [269, 23], [269, 24], [269, 25], [269, 26], [269, 27], [269, 386], [269, 387], [270, 0], [270, 1],
[270, 23], [270, 24], [270, 25], [270, 26], [270, 27], [270, 386], [270, 387], [271, 0], [271, 1], [271, 23],
[271, 24], [271, 25], [271, 26], [271, 27], [271, 140], [271, 141], [271, 142], [271, 143], [271, 144], [271, 386],
[271, 387], [272, 0], [272, 1], [272, 140], [272, 141], [272, 142], [272, 143], [272, 144], [272, 386], [272, 387],
[273, 0], [273, 1], [273, 140], [273, 141], [273, 142], [273, 143], [273, 144], [273, 386], [273, 387], [274, 0],
[274, 1], [274, 140], [274, 141], [274, 142], [274, 143], [274, 144], [274, 386], [274, 387], [275, 0], [275, 1],
[275, 140], [275, 141], [275, 142], [275, 143], [275, 144], [275, 386], [275, 387], [276, 0], [276, 1], [276, 208],
[276, 209], [276, 210], [276, 211], [276, 212], [276, 386], [276, 387], [277, 0], [277, 1], [277, 208], [277, 209],
[277, 210], [277, 211], [277, 212], [277, 362], [277, 363], [277, 364], [277, 365], [277, 366], [277, 386],
[277, 387], [278, 0], [278, 1], [278, 93], [278, 94], [278, 95], [278, 96], [278, 97], [278, 208], [278, 209],
[278, 210], [278, 211], [278, 212], [278, 362], [278, 363], [278, 364], [278, 365], [278, 366], [278, 386],
[278, 387], [279, 0], [279, 1], [279, 93], [279, 94], [279, 95], [279, 96], [279, 97], [279, 208], [279, 209],
[279, 210], [279, 211], [279, 212], [279, 362], [279, 363], [279, 364], [279, 365], [279, 366], [279, 386],
[279, 387], [280, 0], [280, 1], [280, 93], [280, 94], [280, 95], [280, 96], [280, 97], [280, 208], [280, 209],
[280, 210], [280, 211], [280, 212], [280, 362], [280, 363], [280, 364], [280, 365], [280, 366], [280, 386],
[280, 387], [281, 0], [281, 1], [281, 93], [281, 94], [281, 95], [281, 96], [281, 97], [281, 362], [281, 363],
[281, 364], [281, 365], [281, 366], [281, 386], [281, 387], [282, 0], [282, 1], [282, 93], [282, 94], [282, 95],
[282, 96], [282, 97], [282, 325], [282, 326], [282, 327], [282, 328], [282, 329], [282, 386], [282, 387], [283, 0],
[283, 1], [283, 325], [283, 326], [283, 327], [283, 328], [283, 329], [283, 386], [283, 387], [284, 0], [284, 1],
[284, 325], [284, 326], [284, 327], [284, 328], [284, 329], [284, 386], [284, 387], [285, 0], [285, 1], [285, 325],
[285, 326], [285, 327], [285, 328], [285, 329], [285, 386], [285, 387], [286, 0], [286, 1], [286, 169], [286, 170],
[286, 171], [286, 172], [286, 173], [286, 325], [286, 326], [286, 327], [286, 328], [286, 329], [286, 386],
[286, 387], [287, 0], [287, 1], [287, 169], [287, 170], [287, 171], [287, 172], [287, 173], [287, 386], [287, 387],
[288, 0], [288, 1], [288, 169], [288, 170], [288, 171], [288, 172], [288, 173], [288, 386], [288, 387], [289, 0],
[289, 1], [289, 169], [289, 170], [289, 171], [289, 172], [289, 173], [289, 386], [289, 387], [290, 0], [290, 1],
[290, 169], [290, 170], [290, 171], [290, 172], [290, 173], [290, 286], [290, 287], [290, 288], [290, 289],
[290, 290], [290, 386], [290, 387], [291, 0], [291, 1], [291, 286], [291, 287], [291, 288], [291, 289], [291, 290],
[291, 386], [291, 387], [292, 0], [292, 1], [292, 286], [292, 287], [292, 288], [292, 289], [292, 290], [292, 386],
[292, 387], [293, 0], [293, 1], [293, 286], [293, 287], [293, 288], [293, 289], [293, 290], [293, 386], [293, 387],
[294, 0], [294, 1], [294, 61], [294, 62], [294, 63], [294, 64], [294, 65], [294, 286], [294, 287], [294, 288],
[294, 289], [294, 290], [294, 386], [294, 387], [295, 0], [295, 1], [295, 61], [295, 62], [295, 63], [295, 64],
[295, 65], [295, 386], [295, 387], [296, 0], [296, 1], [296, 61], [296, 62], [296, 63], [296, 64], [296, 65],
[296, 386], [296, 387], [297, 0], [297, 1], [297, 61], [297, 62], [297, 63], [297, 64], [297, 65], [297, 244],
[297, 245], [297, 246], [297, 247], [297, 248], [297, 386], [297, 387], [298, 0], [298, 1], [298, 61], [298, 62],
[298, 63], [298, 64], [298, 65], [298, 123], [298, 124], [298, 125], [298, 126], [298, 127], [298, 244],
[298, 245], [298, 246], [298, 247], [298, 248], [298, 386], [298, 387], [299, 0], [299, 1], [299, 123], [299, 124],
[299, 125], [299, 126], [299, 127], [299, 244], [299, 245], [299, 246], [299, 247], [299, 248], [299, 386],
[299, 387], [300, 0], [300, 1], [300, 123], [300, 124], [300, 125], [300, 126], [300, 127], [300, 244], [300, 245],
[300, 246], [300, 247], [300, 248], [300, 386], [300, 387], [301, 0], [301, 1], [301, 123], [301, 124], [301, 125],
[301, 126], [301, 127], [301, 244], [301, 245], [301, 246], [301, 247], [301, 248], [301, 386], [301, 387],
[302, 0], [302, 1], [302, 123], [302, 124], [302, 125], [302, 126], [302, 127], [302, 386], [302, 387], [303, 0],
[303, 1], [303, 386], [303, 387], [304, 0], [304, 1], [304, 386], [304, 387], [305, 0], [305, 1], [305, 386],
[305, 387], [306, 0], [306, 1], [306, 386], [306, 387], [307, 0], [307, 1], [307, 386], [307, 387], [308, 0],
[308, 1], [308, 35], [308, 36], [308, 37], [308, 38], [308, 39], [308, 317], [308, 318], [308, 319], [308, 320],
[308, 321], [308, 386], [308, 387], [309, 0], [309, 1], [309, 35], [309, 36], [309, 37], [309, 38], [309, 39],
[309, 93], [309, 94], [309, 95], [309, 96], [309, 97], [309, 213], [309, 214], [309, 215], [309, 216], [309, 217],
[309, 317], [309, 318], [309, 319], [309, 320], [309, 321], [309, 386], [309, 387], [310, 0], [310, 1], [310, 35],
[310, 36], [310, 37], [310, 38], [310, 39], [310, 93], [310, 94], [310, 95], [310, 96], [310, 97], [310, 213],
[310, 214], [310, 215], [310, 216], [310, 217], [310, 317], [310, 318], [310, 319], [310, 320], [310, 321],
[310, 386], [310, 387], [311, 0], [311, 1], [311, 35], [311, 36], [311, 37], [311, 38], [311, 39], [311, 93],
[311, 94], [311, 95], [311, 96], [311, 97], [311, 213], [311, 214], [311, 215], [311, 216], [311, 217], [311, 317],
[311, 318], [311, 319], [311, 320], [311, 321], [311, 386], [311, 387], [312, 0], [312, 1], [312, 35], [312, 36],
[312, 37], [312, 38], [312, 39], [312, 93], [312, 94], [312, 95], [312, 96], [312, 97], [312, 213], [312, 214],
[312, 215], [312, 216], [312, 217], [312, 317], [312, 318], [312, 319], [312, 320], [312, 321], [312, 386],
[312, 387], [313, 0], [313, 1], [313, 93], [313, 94], [313, 95], [313, 96], [313, 97], [313, 213], [313, 214],
[313, 215], [313, 216], [313, 217], [313, 386], [313, 387], [314, 0], [314, 1], [314, 386], [314, 387], [315, 0],
[315, 1], [315, 386], [315, 387], [316, 0], [316, 1], [316, 386], [316, 387], [317, 0], [317, 1], [317, 386],
[317, 387], [318, 0], [318, 1], [318, 386], [318, 387], [319, 0], [319, 1], [319, 179], [319, 180], [319, 181],
[319, 182], [319, 183], [319, 386], [319, 387], [320, 0], [320, 1], [320, 179], [320, 180], [320, 181], [320, 182],
[320, 183], [320, 284], [320, 285], [320, 286], [320, 287], [320, 288], [320, 386], [320, 387], [321, 0], [321, 1],
[321, 179], [321, 180], [321, 181], [321, 182], [321, 183], [321, 284], [321, 285], [321, 286], [321, 287],
[321, 288], [321, 386], [321, 387], [322, 0], [322, 1], [322, 179], [322, 180], [322, 181], [322, 182], [322, 183],
[322, 284], [322, 285], [322, 286], [322, 287], [322, 288], [322, 386], [322, 387], [323, 0], [323, 1], [323, 179],
[323, 180], [323, 181], [323, 182], [323, 183], [323, 284], [323, 285], [323, 286], [323, 287], [323, 288],
[323, 386], [323, 387], [324, 0], [324, 1], [324, 284], [324, 285], [324, 286], [324, 287], [324, 288], [324, 386],
[324, 387], [325, 0], [325, 1], [325, 386], [325, 387], [326, 0], [326, 1], [326, 64], [326, 65], [326, 66],
[326, 67], [326, 68], [326, 386], [326, 387], [327, 0], [327, 1], [327, 64], [327, 65], [327, 66], [327, 67],
[327, 68], [327, 138], [327, 139], [327, 140], [327, 141], [327, 142], [327, 386], [327, 387], [328, 0], [328, 1],
[328, 64], [328, 65], [328, 66], [328, 67], [328, 68], [328, 138], [328, 139], [328, 140], [328, 141], [328, 142],
[328, 386], [328, 387], [329, 0], [329, 1], [329, 64], [329, 65], [329, 66], [329, 67], [329, 68], [329, 138],
[329, 139], [329, 140], [329, 141], [329, 142], [329, 249], [329, 250], [329, 251], [329, 252], [329, 253],
[329, 386], [329, 387], [330, 0], [330, 1], [330, 64], [330, 65], [330, 66], [330, 67], [330, 68], [330, 138],
[330, 139], [330, 140], [330, 141], [330, 142], [330, 249], [330, 250], [330, 251], [330, 252], [330, 253],
[330, 386], [330, 387], [331, 0], [331, 1], [331, 138], [331, 139], [331, 140], [331, 141], [331, 142], [331, 249],
[331, 250], [331, 251], [331, 252], [331, 253], [331, 386], [331, 387], [332, 0], [332, 1], [332, 249], [332, 250],
[332, 251], [332, 252], [332, 253], [332, 386], [332, 387], [333, 0], [333, 1], [333, 249], [333, 250], [333, 251],
[333, 252], [333, 253], [333, 386], [333, 387], [334, 0], [334, 1], [334, 31], [334, 32], [334, 33], [334, 34],
[334, 35], [334, 352], [334, 353], [334, 354], [334, 355], [334, 356], [334, 386], [334, 387], [335, 0], [335, 1],
[335, 31], [335, 32], [335, 33], [335, 34], [335, 35], [335, 214], [335, 215], [335, 216], [335, 217], [335, 218],
[335, 352], [335, 353], [335, 354], [335, 355], [335, 356], [335, 386], [335, 387], [336, 0], [336, 1], [336, 31],
[336, 32], [336, 33], [336, 34], [336, 35], [336, 104], [336, 105], [336, 106], [336, 107], [336, 108], [336, 214],
[336, 215], [336, 216], [336, 217], [336, 218], [336, 352], [336, 353], [336, 354], [336, 355], [336, 356],
[336, 386], [336, 387], [337, 0], [337, 1], [337, 31], [337, 32], [337, 33], [337, 34], [337, 35], [337, 104],
[337, 105], [337, 106], [337, 107], [337, 108], [337, 214], [337, 215], [337, 216], [337, 217], [337, 218],
[337, 352], [337, 353], [337, 354], [337, 355], [337, 356], [337, 386], [337, 387], [338, 0], [338, 1], [338, 31],
[338, 32], [338, 33], [338, 34], [338, 35], [338, 104], [338, 105], [338, 106], [338, 107], [338, 108], [338, 214],
[338, 215], [338, 216], [338, 217], [338, 218], [338, 352], [338, 353], [338, 354], [338, 355], [338, 356],
[338, 386], [338, 387], [339, 0], [339, 1], [339, 104], [339, 105], [339, 106], [339, 107], [339, 108], [339, 214],
[339, 215], [339, 216], [339, 217], [339, 218], [339, 386], [339, 387], [340, 0], [340, 1], [340, 104], [340, 105],
[340, 106], [340, 107], [340, 108], [340, 386], [340, 387], [341, 0], [341, 1], [341, 386], [341, 387], [342, 0],
[342, 1], [342, 386], [342, 387], [343, 0], [343, 1], [343, 386], [343, 387], [344, 0], [344, 1], [344, 311],
[344, 312], [344, 313], [344, 314], [344, 315], [344, 386], [344, 387], [345, 0], [345, 1], [345, 311], [345, 312],
[345, 313], [345, 314], [345, 315], [345, 386], [345, 387], [346, 0], [346, 1], [346, 311], [346, 312], [346, 313],
[346, 314], [346, 315], [346, 386], [346, 387], [347, 0], [347, 1], [347, 311], [347, 312], [347, 313], [347, 314],
[347, 315], [347, 386], [347, 387], [348, 0], [348, 1], [348, 177], [348, 178], [348, 179], [348, 180], [348, 181],
[348, 311], [348, 312], [348, 313], [348, 314], [348, 315], [348, 386], [348, 387], [349, 0], [349, 1], [349, 177],
[349, 178], [349, 179], [349, 180], [349, 181], [349, 386], [349, 387], [350, 0], [350, 1], [350, 177], [350, 178],
[350, 179], [350, 180], [350, 181], [350, 386], [350, 387], [351, 0], [351, 1], [351, 177], [351, 178], [351, 179],
[351, 180], [351, 181], [351, 280], [351, 281], [351, 282], [351, 283], [351, 284], [351, 386], [351, 387],
[352, 0], [352, 1], [352, 177], [352, 178], [352, 179], [352, 180], [352, 181], [352, 280], [352, 281], [352, 282],
[352, 283], [352, 284], [352, 386], [352, 387], [353, 0], [353, 1], [353, 58], [353, 59], [353, 60], [353, 61],
[353, 62], [353, 280], [353, 281], [353, 282], [353, 283], [353, 284], [353, 386], [353, 387], [354, 0], [354, 1],
[354, 58], [354, 59], [354, 60], [354, 61], [354, 62], [354, 91], [354, 92], [354, 93], [354, 94], [354, 95],
[354, 280], [354, 281], [354, 282], [354, 283], [354, 284], [354, 386], [354, 387], [355, 0], [355, 1], [355, 58],
[355, 59], [355, 60], [355, 61], [355, 62], [355, 91], [355, 92], [355, 93], [355, 94], [355, 95], [355, 280],
[355, 281], [355, 282], [355, 283], [355, 284], [355, 386], [355, 387], [356, 0], [356, 1], [356, 58], [356, 59],
[356, 60], [356, 61], [356, 62], [356, 91], [356, 92], [356, 93], [356, 94], [356, 95], [356, 386], [356, 387],
[357, 0], [357, 1], [357, 58], [357, 59], [357, 60], [357, 61], [357, 62], [357, 91], [357, 92], [357, 93],
[357, 94], [357, 95], [357, 139], [357, 140], [357, 141], [357, 142], [357, 143], [357, 386], [357, 387], [358, 0],
[358, 1], [358, 91], [358, 92], [358, 93], [358, 94], [358, 95], [358, 139], [358, 140], [358, 237], [358, 238],
[358, 239], [358, 240], [358, 241], [358, 386], [358, 387], [359, 0], [359, 1], [359, 139], [359, 140], [359, 237],
[359, 238], [359, 239], [359, 240], [359, 241], [359, 386], [359, 387], [360, 0], [360, 1], [360, 139], [360, 140],
[360, 237], [360, 238], [360, 239], [360, 240], [360, 241], [360, 386], [360, 387], [361, 0], [361, 1], [361, 139],
[361, 140], [361, 237], [361, 238], [361, 239], [361, 240], [361, 241], [361, 386], [361, 387], [362, 0], [362, 1],
[362, 237], [362, 238], [362, 239], [362, 240], [362, 241], [362, 386], [362, 387], [363, 0], [363, 1], [363, 386],
[363, 387], [364, 0], [364, 1], [364, 386], [364, 387], [365, 0], [365, 1], [365, 209], [365, 210], [365, 211],
[365, 212], [365, 213], [365, 386], [365, 387], [366, 0], [366, 1], [366, 209], [366, 210], [366, 211], [366, 212],
[366, 213], [366, 386], [366, 387], [367, 0], [367, 1], [367, 209], [367, 210], [367, 211], [367, 212], [367, 213],
[367, 339], [367, 340], [367, 341], [367, 342], [367, 343], [367, 386], [367, 387], [368, 0], [368, 1], [368, 209],
[368, 210], [368, 211], [368, 212], [368, 213], [368, 339], [368, 340], [368, 341], [368, 342], [368, 343],
[368, 386], [368, 387], [369, 0], [369, 1], [369, 209], [369, 210], [369, 211], [369, 212], [369, 213], [369, 339],
[369, 340], [369, 341], [369, 342], [369, 343], [369, 386], [369, 387], [370, 0], [370, 1], [370, 339], [370, 340],
[370, 341], [370, 342], [370, 343], [370, 386], [370, 387], [371, 0], [371, 1], [371, 339], [371, 340], [371, 341],
[371, 342], [371, 343], [371, 386], [371, 387], [372, 0], [372, 1], [372, 175], [372, 176], [372, 177], [372, 178],
[372, 179], [372, 386], [372, 387], [373, 0], [373, 1], [373, 175], [373, 176], [373, 177], [373, 178], [373, 179],
[373, 386], [373, 387], [374, 0], [374, 1], [374, 175], [374, 176], [374, 177], [374, 178], [374, 179], [374, 386],
[374, 387], [375, 0], [375, 1], [375, 175], [375, 176], [375, 177], [375, 178], [375, 179], [375, 386], [375, 387],
[376, 0], [376, 1], [376, 175], [376, 176], [376, 177], [376, 178], [376, 179], [376, 386], [376, 387], [377, 0],
[377, 1], [377, 386], [377, 387], [378, 0], [378, 1], [378, 56], [378, 57], [378, 58], [378, 59], [378, 60],
[378, 386], [378, 387], [379, 0], [379, 1], [379, 56], [379, 57], [379, 58], [379, 59], [379, 60], [379, 91],
[379, 92], [379, 93], [379, 94], [379, 95], [379, 386], [379, 387], [380, 0], [380, 1], [380, 56], [380, 57],
[380, 58], [380, 59], [380, 60], [380, 91], [380, 92], [380, 93], [380, 94], [380, 95], [380, 271], [380, 272],
[380, 273], [380, 274], [380, 275], [380, 307], [380, 308], [380, 309], [380, 310], [380, 311], [380, 386],
[380, 387], [381, 0], [381, 1], [381, 56], [381, 57], [381, 58], [381, 59], [381, 60], [381, 91], [381, 92],
[381, 93], [381, 94], [381, 95], [381, 133], [381, 134], [381, 135], [381, 136], [381, 137], [381, 271],
[381, 272], [381, 273], [381, 274], [381, 275], [381, 307], [381, 308], [381, 309], [381, 310], [381, 311],
[381, 386], [381, 387], [382, 0], [382, 1], [382, 56], [382, 57], [382, 58], [382, 59], [382, 60], [382, 91],
[382, 92], [382, 93], [382, 94], [382, 95], [382, 133], [382, 134], [382, 135], [382, 136], [382, 137], [382, 271],
[382, 272], [382, 273], [382, 274], [382, 275], [382, 307], [382, 308], [382, 309], [382, 310], [382, 311],
[382, 386], [382, 387], [383, 0], [383, 1], [383, 91], [383, 92], [383, 93], [383, 94], [383, 95], [383, 133],
[383, 134], [383, 135], [383, 136], [383, 137], [383, 271], [383, 272], [383, 273], [383, 274], [383, 275],
[383, 307], [383, 308], [383, 309], [383, 310], [383, 311], [383, 386], [383, 387], [384, 0], [384, 1], [384, 133],
[384, 134], [384, 135], [384, 136], [384, 137], [384, 271], [384, 272], [384, 273], [384, 274], [384, 275],
[384, 307], [384, 308], [384, 309], [384, 310], [384, 311], [384, 386], [384, 387], [385, 0], [385, 1], [385, 30],
[385, 31], [385, 32], [385, 33], [385, 34], [385, 133], [385, 134], [385, 135], [385, 136], [385, 137], [385, 386],
[385, 387], [386, 0], [386, 1], [386, 30], [386, 31], [386, 32], [386, 33], [386, 34], [386, 386], [386, 387],
[387, 0], [387, 1], [387, 30], [387, 31], [387, 32], [387, 33], [387, 34], [387, 386], [387, 387], [388, 0],
[388, 1], [388, 30], [388, 31], [388, 32], [388, 33], [388, 34], [388, 386], [388, 387], [389, 0], [389, 1],
[389, 30], [389, 31], [389, 32], [389, 33], [389, 34], [389, 241], [389, 242], [389, 243], [389, 244], [389, 245],
[389, 386], [389, 387], [390, 0], [390, 1], [390, 196], [390, 197], [390, 198], [390, 199], [390, 200], [390, 241],
[390, 242], [390, 243], [390, 244], [390, 245], [390, 386], [390, 387], [391, 0], [391, 1], [391, 196], [391, 197],
[391, 198], [391, 199], [391, 200], [391, 241], [391, 242], [391, 243], [391, 244], [391, 245], [391, 386],
[391, 387], [392, 0], [392, 1], [392, 196], [392, 197], [392, 198], [392, 199], [392, 200], [392, 241], [392, 242],
[392, 243], [392, 244], [392, 245], [392, 386], [392, 387], [393, 0], [393, 1], [393, 196], [393, 197], [393, 198],
[393, 199], [393, 200], [393, 241], [393, 242], [393, 243], [393, 244], [393, 245], [393, 386], [393, 387],
[394, 0], [394, 1], [394, 163], [394, 164], [394, 165], [394, 166], [394, 167], [394, 196], [394, 197], [394, 198],
[394, 199], [394, 200], [394, 386], [394, 387], [395, 0], [395, 1], [395, 163], [395, 164], [395, 165], [395, 166],
[395, 167], [395, 349], [395, 350], [395, 351], [395, 352], [395, 353], [395, 386], [395, 387], [396, 0], [396, 1],
[396, 163], [396, 164], [396, 165], [396, 166], [396, 167], [396, 349], [396, 350], [396, 351], [396, 352],
[396, 353], [396, 386], [396, 387], [397, 0], [397, 1], [397, 163], [397, 164], [397, 165], [397, 166], [397, 167],
[397, 349], [397, 350], [397, 351], [397, 352], [397, 353], [397, 386], [397, 387], [398, 0], [398, 1], [398, 163],
[398, 164], [398, 165], [398, 166], [398, 167], [398, 349], [398, 350], [398, 351], [398, 352], [398, 353],
[398, 386], [398, 387], [399, 0], [399, 1], [399, 349], [399, 350], [399, 351], [399, 352], [399, 353], [399, 386],
[399, 387], [400, 0], [400, 1], [400, 386], [400, 387], [401, 0], [401, 1], [401, 386], [401, 387], [402, 0],
[402, 1], [402, 131], [402, 132], [402, 133], [402, 134], [402, 135], [402, 386], [402, 387], [403, 0], [403, 1],
[403, 131], [403, 132], [403, 133], [403, 134], [403, 135], [403, 386], [403, 387], [404, 0], [404, 1], [404, 131],
[404, 132], [404, 133], [404, 134], [404, 135], [404, 386], [404, 387], [405, 0], [405, 1], [405, 56], [405, 57],
[405, 58], [405, 59], [405, 60], [405, 92], [405, 93], [405, 94], [405, 95], [405, 96], [405, 131], [405, 132],
[405, 133], [405, 134], [405, 135], [405, 286], [405, 287], [405, 288], [405, 289], [405, 290], [405, 386],
[405, 387], [406, 0], [406, 1], [406, 56], [406, 57], [406, 58], [406, 59], [406, 60], [406, 92], [406, 93],
[406, 94], [406, 95], [406, 96], [406, 131], [406, 132], [406, 133], [406, 134], [406, 135], [406, 286],
[406, 287], [406, 288], [406, 289], [406, 290], [406, 386], [406, 387], [407, 0], [407, 1], [407, 23], [407, 24],
[407, 25], [407, 26], [407, 27], [407, 56], [407, 57], [407, 58], [407, 59], [407, 60], [407, 92], [407, 93],
[407, 94], [407, 95], [407, 96], [407, 286], [407, 287], [407, 288], [407, 289], [407, 290], [407, 386],
[407, 387], [408, 0], [408, 1], [408, 23], [408, 24], [408, 25], [408, 26], [408, 27], [408, 56], [408, 57],
[408, 58], [408, 59], [408, 60], [408, 92], [408, 93], [408, 94], [408, 95], [408, 96], [408, 286], [408, 287],
[408, 288], [408, 289], [408, 290], [408, 386], [408, 387], [409, 0], [409, 1], [409, 23], [409, 24], [409, 25],
[409, 26], [409, 27], [409, 56], [409, 57], [409, 58], [409, 59], [409, 60], [409, 92], [409, 93], [409, 94],
[409, 95], [409, 96], [409, 286], [409, 287], [409, 288], [409, 289], [409, 290], [409, 386], [409, 387], [410, 0],
[410, 1], [410, 23], [410, 24], [410, 25], [410, 26], [410, 27], [410, 322], [410, 323], [410, 324], [410, 325],
[410, 326], [410, 386], [410, 387], [411, 0], [411, 1], [411, 23], [411, 24], [411, 25], [411, 26], [411, 27],
[411, 322], [411, 323], [411, 324], [411, 325], [411, 326], [411, 386], [411, 387], [412, 0], [412, 1], [412, 224],
[412, 225], [412, 226], [412, 227], [412, 228], [412, 322], [412, 323], [412, 324], [412, 325], [412, 326],
[412, 386], [412, 387], [413, 0], [413, 1], [413, 224], [413, 225], [413, 226], [413, 227], [413, 228], [413, 322],
[413, 323], [413, 324], [413, 325], [413, 326], [413, 386], [413, 387], [414, 0], [414, 1], [414, 188], [414, 189],
[414, 190], [414, 191], [414, 192], [414, 224], [414, 225], [414, 226], [414, 227], [414, 228], [414, 322],
[414, 323], [414, 324], [414, 325], [414, 326], [414, 386], [414, 387], [415, 0], [415, 1], [415, 188], [415, 189],
[415, 190], [415, 191], [415, 192], [415, 224], [415, 225], [415, 226], [415, 227], [415, 228], [415, 386],
[415, 387], [416, 0], [416, 1], [416, 188], [416, 189], [416, 190], [416, 191], [416, 192], [416, 224], [416, 225],
[416, 226], [416, 227], [416, 228], [416, 386], [416, 387], [417, 0], [417, 1], [417, 188], [417, 189], [417, 190],
[417, 191], [417, 192], [417, 253], [417, 254], [417, 255], [417, 256], [417, 257], [417, 386], [417, 387],
[418, 0], [418, 1], [418, 158], [418, 159], [418, 160], [418, 161], [418, 162], [418, 188], [418, 189], [418, 190],
[418, 191], [418, 192], [418, 253], [418, 254], [418, 255], [418, 256], [418, 257], [418, 386], [418, 387],
[419, 0], [419, 1], [419, 158], [419, 159], [419, 160], [419, 161], [419, 162], [419, 253], [419, 254], [419, 255],
[419, 256], [419, 257], [419, 386], [419, 387], [420, 0], [420, 1], [420, 158], [420, 159], [420, 160], [420, 161],
[420, 162], [420, 253], [420, 254], [420, 255], [420, 256], [420, 257], [420, 386], [420, 387], [421, 0], [421, 1],
[421, 158], [421, 159], [421, 160], [421, 161], [421, 162], [421, 253], [421, 254], [421, 255], [421, 256],
[421, 257], [421, 386], [421, 387], [422, 0], [422, 1], [422, 158], [422, 159], [422, 160], [422, 161], [422, 162],
[422, 386], [422, 387], [423, 0], [423, 1], [423, 386], [423, 387], [424, 0], [424, 1], [424, 386], [424, 387],
[425, 0], [425, 1], [425, 386], [425, 387], [426, 0], [426, 1], [426, 386], [426, 387], [427, 0], [427, 1],
[427, 386], [427, 387], [428, 0], [428, 1], [428, 386], [428, 387], [429, 0], [429, 1], [429, 386], [429, 387],
[430, 0], [430, 1], [430, 386], [430, 387], [431, 0], [431, 1], [431, 386], [431, 387], [432, 0], [432, 1],
[432, 386], [432, 387], [433, 0], [433, 1], [433, 386], [433, 387], [434, 0], [434, 1], [434, 2], [434, 3],
[434, 4], [434, 5], [434, 6], [434, 7], [434, 8], [434, 9], [434, 10], [434, 11], [434, 12], [434, 13], [434, 14],
[434, 15], [434, 16], [434, 17], [434, 18], [434, 19], [434, 20], [434, 21], [434, 22], [434, 23], [434, 24],
[434, 25], [434, 26], [434, 27], [434, 28], [434, 29], [434, 30], [434, 31], [434, 32], [434, 33], [434, 34],
[434, 35], [434, 36], [434, 37], [434, 38], [434, 39], [434, 40], [434, 41], [434, 42], [434, 43], [434, 44],
[434, 45], [434, 46], [434, 47], [434, 48], [434, 49], [434, 50], [434, 51], [434, 52], [434, 53], [434, 54],
[434, 55], [434, 56], [434, 57], [434, 58], [434, 59], [434, 60], [434, 61], [434, 62], [434, 63], [434, 64],
[434, 65], [434, 66], [434, 67], [434, 68], [434, 69], [434, 70], [434, 71], [434, 72], [434, 73], [434, 74],
[434, 75], [434, 76], [434, 77], [434, 78], [434, 79], [434, 80], [434, 81], [434, 82], [434, 83], [434, 84],
[434, 85], [434, 86], [434, 87], [434, 88], [434, 89], [434, 90], [434, 91], [434, 92], [434, 93], [434, 94],
[434, 95], [434, 96], [434, 97], [434, 98], [434, 99], [434, 100], [434, 101], [434, 102], [434, 103], [434, 104],
[434, 105], [434, 106], [434, 107], [434, 108], [434, 109], [434, 110], [434, 111], [434, 112], [434, 113],
[434, 114], [434, 115], [434, 116], [434, 117], [434, 118], [434, 119], [434, 120], [434, 121], [434, 122],
[434, 123], [434, 124], [434, 125], [434, 126], [434, 127], [434, 128], [434, 129], [434, 130], [434, 131],
[434, 132], [434, 133], [434, 134], [434, 135], [434, 136], [434, 137], [434, 138], [434, 139], [434, 140],
[434, 141], [434, 142], [434, 143], [434, 144], [434, 145], [434, 146], [434, 147], [434, 148], [434, 149],
[434, 150], [434, 151], [434, 152], [434, 153], [434, 154], [434, 155], [434, 156], [434, 157], [434, 158],
[434, 159], [434, 160], [434, 161], [434, 162], [434, 163], [434, 164], [434, 165], [434, 166], [434, 167],
[434, 168], [434, 169], [434, 170], [434, 171], [434, 172], [434, 173], [434, 174], [434, 175], [434, 176],
[434, 177], [434, 178], [434, 179], [434, 180], [434, 181], [434, 182], [434, 183], [434, 184], [434, 185],
[434, 186], [434, 187], [434, 188], [434, 189], [434, 190], [434, 191], [434, 192], [434, 193], [434, 194],
[434, 195], [434, 196], [434, 197], [434, 198], [434, 199], [434, 200], [434, 201], [434, 202], [434, 203],
[434, 204], [434, 205], [434, 206], [434, 207], [434, 208], [434, 209], [434, 210], [434, 211], [434, 212],
[434, 213], [434, 214], [434, 215], [434, 216], [434, 217], [434, 218], [434, 219], [434, 220], [434, 221],
[434, 222], [434, 223], [434, 224], [434, 225], [434, 226], [434, 227], [434, 228], [434, 229], [434, 230],
[434, 231], [434, 232], [434, 233], [434, 234], [434, 235], [434, 236], [434, 237], [434, 238], [434, 239],
[434, 240], [434, 241], [434, 242], [434, 243], [434, 244], [434, 245], [434, 246], [434, 247], [434, 248],
[434, 249], [434, 250], [434, 251], [434, 252], [434, 253], [434, 254], [434, 255], [434, 256], [434, 257],
[434, 258], [434, 259], [434, 260], [434, 261], [434, 262], [434, 263], [434, 264], [434, 265], [434, 266],
[434, 267], [434, 268], [434, 269], [434, 270], [434, 271], [434, 272], [434, 273], [434, 274], [434, 275],
[434, 276], [434, 277], [434, 278], [434, 279], [434, 280], [434, 281], [434, 282], [434, 283], [434, 284],
[434, 285], [434, 286], [434, 287], [434, 288], [434, 289], [434, 290], [434, 291], [434, 292], [434, 293],
[434, 294], [434, 295], [434, 296], [434, 297], [434, 298], [434, 299], [434, 300], [434, 301], [434, 302],
[434, 303], [434, 304], [434, 305], [434, 306], [434, 307], [434, 308], [434, 309], [434, 310], [434, 311],
[434, 312], [434, 313], [434, 314], [434, 315], [434, 316], [434, 317], [434, 318], [434, 319], [434, 320],
[434, 321], [434, 322], [434, 323], [434, 324], [434, 325], [434, 326], [434, 327], [434, 328], [434, 329],
[434, 330], [434, 331], [434, 332], [434, 333], [434, 334], [434, 335], [434, 336], [434, 337], [434, 338],
[434, 339], [434, 340], [434, 341], [434, 342], [434, 343], [434, 344], [434, 345], [434, 346], [434, 347],
[434, 348], [434, 349], [434, 350], [434, 351], [434, 352], [434, 353], [434, 354], [434, 355], [434, 356],
[434, 357], [434, 358], [434, 359], [434, 360], [434, 361], [434, 362], [434, 363], [434, 364], [434, 365],
[434, 366], [434, 367], [434, 368], [434, 369], [434, 370], [434, 371], [434, 372], [434, 373], [434, 374],
[434, 375], [434, 376], [434, 377], [434, 378], [434, 379], [434, 380], [434, 381], [434, 382], [434, 383],
[434, 384], [434, 385], [434, 386], [434, 387], [435, 0], [435, 1], [435, 2], [435, 3], [435, 4], [435, 5],
[435, 6], [435, 7], [435, 8], [435, 9], [435, 10], [435, 11], [435, 12], [435, 13], [435, 14], [435, 15],
[435, 16], [435, 17], [435, 18], [435, 19], [435, 20], [435, 21], [435, 22], [435, 23], [435, 24], [435, 25],
[435, 26], [435, 27], [435, 28], [435, 29], [435, 30], [435, 31], [435, 32], [435, 33], [435, 34], [435, 35],
[435, 36], [435, 37], [435, 38], [435, 39], [435, 40], [435, 41], [435, 42], [435, 43], [435, 44], [435, 45],
[435, 46], [435, 47], [435, 48], [435, 49], [435, 50], [435, 51], [435, 52], [435, 53], [435, 54], [435, 55],
[435, 56], [435, 57], [435, 58], [435, 59], [435, 60], [435, 61], [435, 62], [435, 63], [435, 64], [435, 65],
[435, 66], [435, 67], [435, 68], [435, 69], [435, 70], [435, 71], [435, 72], [435, 73], [435, 74], [435, 75],
[435, 76], [435, 77], [435, 78], [435, 79], [435, 80], [435, 81], [435, 82], [435, 83], [435, 84], [435, 85],
[435, 86], [435, 87], [435, 88], [435, 89], [435, 90], [435, 91], [435, 92], [435, 93], [435, 94], [435, 95],
[435, 96], [435, 97], [435, 98], [435, 99], [435, 100], [435, 101], [435, 102], [435, 103], [435, 104], [435, 105],
[435, 106], [435, 107], [435, 108], [435, 109], [435, 110], [435, 111], [435, 112], [435, 113], [435, 114],
[435, 115], [435, 116], [435, 117], [435, 118], [435, 119], [435, 120], [435, 121], [435, 122], [435, 123],
[435, 124], [435, 125], [435, 126], [435, 127], [435, 128], [435, 129], [435, 130], [435, 131], [435, 132],
[435, 133], [435, 134], [435, 135], [435, 136], [435, 137], [435, 138], [435, 139], [435, 140], [435, 141],
[435, 142], [435, 143], [435, 144], [435, 145], [435, 146], [435, 147], [435, 148], [435, 149], [435, 150],
[435, 151], [435, 152], [435, 153], [435, 154], [435, 155], [435, 156], [435, 157], [435, 158], [435, 159],
[435, 160], [435, 161], [435, 162], [435, 163], [435, 164], [435, 165], [435, 166], [435, 167], [435, 168],
[435, 169], [435, 170], [435, 171], [435, 172], [435, 173], [435, 174], [435, 175], [435, 176], [435, 177],
[435, 178], [435, 179], [435, 180], [435, 181], [435, 182], [435, 183], [435, 184], [435, 185], [435, 186],
[435, 187], [435, 188], [435, 189], [435, 190], [435, 191], [435, 192], [435, 193], [435, 194], [435, 195],
[435, 196], [435, 197], [435, 198], [435, 199], [435, 200], [435, 201], [435, 202], [435, 203], [435, 204],
[435, 205], [435, 206], [435, 207], [435, 208], [435, 209], [435, 210], [435, 211], [435, 212], [435, 213],
[435, 214], [435, 215], [435, 216], [435, 217], [435, 218], [435, 219], [435, 220], [435, 221], [435, 222],
[435, 223], [435, 224], [435, 225], [435, 226], [435, 227], [435, 228], [435, 229], [435, 230], [435, 231],
[435, 232], [435, 233], [435, 234], [435, 235], [435, 236], [435, 237], [435, 238], [435, 239], [435, 240],
[435, 241], [435, 242], [435, 243], [435, 244], [435, 245], [435, 246], [435, 247], [435, 248], [435, 249],
[435, 250], [435, 251], [435, 252], [435, 253], [435, 254], [435, 255], [435, 256], [435, 257], [435, 258],
[435, 259], [435, 260], [435, 261], [435, 262], [435, 263], [435, 264], [435, 265], [435, 266], [435, 267],
[435, 268], [435, 269], [435, 270], [435, 271], [435, 272], [435, 273], [435, 274], [435, 275], [435, 276],
[435, 277], [435, 278], [435, 279], [435, 280], [435, 281], [435, 282], [435, 283], [435, 284], [435, 285],
[435, 286], [435, 287], [435, 288], [435, 289], [435, 290], [435, 291], [435, 292], [435, 293], [435, 294],
[435, 295], [435, 296], [435, 297], [435, 298], [435, 299], [435, 300], [435, 301], [435, 302], [435, 303],
[435, 304], [435, 305], [435, 306], [435, 307], [435, 308], [435, 309], [435, 310], [435, 311], [435, 312],
[435, 313], [435, 314], [435, 315], [435, 316], [435, 317], [435, 318], [435, 319], [435, 320], [435, 321],
[435, 322], [435, 323], [435, 324], [435, 325], [435, 326], [435, 327], [435, 328], [435, 329], [435, 330],
[435, 331], [435, 332], [435, 333], [435, 334], [435, 335], [435, 336], [435, 337], [435, 338], [435, 339],
[435, 340], [435, 341], [435, 342], [435, 343], [435, 344], [435, 345], [435, 346], [435, 347], [435, 348],
[435, 349], [435, 350], [435, 351], [435, 352], [435, 353], [435, 354], [435, 355], [435, 356], [435, 357],
[435, 358], [435, 359], [435, 360], [435, 361], [435, 362], [435, 363], [435, 364], [435, 365], [435, 366],
[435, 367], [435, 368], [435, 369], [435, 370], [435, 371], [435, 372], [435, 373], [435, 374], [435, 375],
[435, 376], [435, 377], [435, 378], [435, 379], [435, 380], [435, 381], [435, 382], [435, 383], [435, 384],
[435, 385], [435, 386], [435, 387]]]
seedVals = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
10, 10, 10, 10, 10, 1, 1, 1, 1, 10, 10, 10, 10, 10, 1, 1, 1, 1, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 1, 1, 1, 1,
12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 13, 13, 13, 13, 13, 1, 1, 1, 1, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 13,
13, 13, 13, 13, 1, 1, 1, 1, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 1, 1, 1, 1, 12, 12, 12, 12, 12, 13, 13, 13, 13,
13, 1, 1, 1, 1, 13, 13, 13, 13, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 176, 176, 176, 176, 176, 1, 1,
1, 1, 176, 176, 176, 176, 176, 1, 1, 1, 1, 176, 176, 176, 176, 176, 1, 1, 1, 1, 176, 176, 176, 176, 176, 1, 1, 1,
1, 176, 176, 176, 176, 176, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 175, 175, 175,
175, 175, 1, 1, 1, 1, 17, 17, 17, 17, 17, 175, 175, 175, 175, 175, 1, 1, 1, 1, 17, 17, 17, 17, 17, 175, 175, 175,
175, 175, 1, 1, 1, 1, 17, 17, 17, 17, 17, 175, 175, 175, 175, 175, 1, 1, 1, 1, 17, 17, 17, 17, 17, 175, 175, 175,
175, 175, 1, 1, 1, 1, 17, 17, 17, 17, 17, 1, 1, 1, 1, 21, 21, 21, 21, 21, 1, 1, 1, 1, 21, 21, 21, 21, 21, 1, 1, 1,
1, 21, 21, 21, 21, 21, 1, 1, 1, 1, 21, 21, 21, 21, 21, 1, 1, 1, 1, 21, 21, 21, 21, 21, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 177, 177, 177, 177, 177, 1, 1, 1, 1, 177, 177, 177, 177, 177, 1, 1, 1, 1, 177, 177, 177, 177, 177, 1, 1,
1, 1, 177, 177, 177, 177, 177, 1, 1, 1, 1, 177, 177, 177, 177, 177, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 24, 24, 24, 24, 24, 1, 1, 1, 1, 24, 24, 24, 24, 24, 1, 1, 1, 1, 24, 24, 24, 24, 24, 25, 25,
25, 25, 25, 1, 1, 1, 1, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 1, 1, 1, 1, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25,
1, 1, 1, 1, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 1, 1, 1, 1, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 1, 1, 1, 1,
26, 26, 26, 26, 26, 1, 1, 1, 1, 27, 27, 27, 27, 27, 26, 26, 26, 26, 26, 1, 1, 1, 1, 27, 27, 27, 27, 27, 26, 26, 26,
26, 26, 1, 1, 1, 1, 27, 27, 27, 27, 27, 1, 1, 1, 1, 27, 27, 27, 27, 27, 1, 1, 1, 1, 27, 27, 27, 27, 27, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 32, 32, 32, 32, 32, 170, 170, 170, 170,
170, 1, 1, 1, 1, 32, 32, 32, 32, 32, 170, 170, 170, 170, 170, 1, 1, 1, 1, 32, 32, 32, 32, 32, 170, 170, 170, 170,
170, 1, 1, 1, 1, 32, 32, 32, 32, 32, 170, 170, 170, 170, 170, 1, 1, 1, 1, 32, 32, 32, 32, 32, 170, 170, 170, 170,
170, 1, 1, 1, 1, 34, 34, 34, 34, 34, 1, 1, 1, 1, 34, 34, 34, 34, 34, 1, 1, 1, 1, 34, 34, 34, 34, 34, 1, 1, 1, 1,
34, 34, 34, 34, 34, 1, 1, 1, 1, 34, 34, 34, 34, 34, 1, 1, 1, 1, 36, 36, 36, 36, 36, 1, 1, 1, 1, 36, 36, 36, 36, 36,
1, 1, 1, 1, 36, 36, 36, 36, 36, 1, 1, 1, 1, 37, 37, 37, 37, 37, 36, 36, 36, 36, 36, 1, 1, 1, 1, 38, 38, 38, 38, 38,
37, 37, 37, 37, 37, 36, 36, 36, 36, 36, 1, 1, 1, 1, 38, 38, 38, 38, 38, 37, 37, 37, 37, 37, 1, 1, 1, 1, 38, 38, 38,
38, 38, 37, 37, 37, 37, 37, 1, 1, 1, 1, 38, 38, 38, 38, 38, 37, 37, 37, 37, 37, 1, 1, 1, 1, 38, 38, 38, 38, 38, 40,
40, 40, 40, 40, 1, 1, 1, 1, 40, 40, 40, 40, 40, 1, 1, 1, 1, 40, 40, 40, 40, 40, 1, 1, 1, 1, 40, 40, 40, 40, 40, 1,
1, 1, 1, 40, 40, 40, 40, 40, 1, 1, 1, 1, 42, 42, 42, 42, 42, 1, 1, 1, 1, 42, 42, 42, 42, 42, 1, 1, 1, 1, 42, 42,
42, 42, 42, 43, 43, 43, 43, 43, 1, 1, 1, 1, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 1, 1, 1, 1, 42, 42, 42, 42, 42,
43, 43, 43, 43, 43, 1, 1, 1, 1, 43, 43, 43, 43, 43, 1, 1, 1, 1, 43, 43, 43, 43, 43, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 46, 46, 46, 46, 46, 1, 1, 1, 1, 47, 47, 47, 47, 47, 46, 46,
46, 46, 46, 1, 1, 1, 1, 47, 47, 47, 47, 47, 46, 46, 46, 46, 46, 1, 1, 1, 1, 47, 47, 47, 47, 47, 46, 46, 46, 46, 46,
1, 1, 1, 1, 47, 47, 47, 47, 47, 46, 46, 46, 46, 46, 1, 1, 1, 1, 47, 47, 47, 47, 47, 1, 1, 1, 1, 49, 49, 49, 49, 49,
1, 1, 1, 1, 49, 49, 49, 49, 49, 1, 1, 1, 1, 51, 51, 51, 51, 51, 49, 49, 49, 49, 49, 52, 52, 52, 52, 52, 1, 1, 1, 1,
51, 51, 51, 51, 51, 49, 49, 49, 49, 49, 52, 52, 52, 52, 52, 1, 1, 1, 1, 51, 51, 51, 51, 51, 49, 49, 49, 49, 49, 52,
52, 52, 52, 52, 1, 1, 1, 1, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 1, 1, 1, 1, 51, 51, 51, 51, 51, 52, 52, 52, 52,
52, 1, 1, 1, 1, 53, 53, 53, 53, 53, 1, 1, 1, 1, 53, 53, 53, 53, 53, 1, 1, 1, 1, 53, 53, 53, 53, 53, 55, 55, 55, 55,
55, 1, 1, 1, 1, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 1, 1, 1, 1, 53, 53, 53, 53, 53, 55, 55, 55, 55, 55, 1, 1,
1, 1, 55, 55, 55, 55, 55, 1, 1, 1, 1, 55, 55, 55, 55, 55, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 57, 57,
57, 57, 57, 1, 1, 1, 1, 57, 57, 57, 57, 57, 1, 1, 1, 1, 57, 57, 57, 57, 57, 1, 1, 1, 1, 57, 57, 57, 57, 57, 1, 1,
1, 1, 57, 57, 57, 57, 57, 1, 1, 1, 1, 58, 58, 58, 58, 58, 1, 1, 1, 1, 59, 59, 59, 59, 59, 58, 58, 58, 58, 58, 1, 1,
1, 1, 59, 59, 59, 59, 59, 58, 58, 58, 58, 58, 1, 1, 1, 1, 59, 59, 59, 59, 59, 58, 58, 58, 58, 58, 1, 1, 1, 1, 59,
59, 59, 59, 59, 60, 60, 60, 60, 60, 58, 58, 58, 58, 58, 1, 1, 1, 1, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 1, 1,
1, 1, 60, 60, 60, 60, 60, 1, 1, 1, 1, 60, 60, 60, 60, 60, 1, 1, 1, 1, 60, 60, 60, 60, 60, 1, 1, 1, 1, 61, 61, 61,
61, 61, 1, 1, 1, 1, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 1, 1, 1, 1, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 1,
1, 1, 1, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 1, 1, 1, 1, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 1, 1, 1, 1,
62, 62, 62, 62, 62, 1, 1, 1, 1, 1, 1, 1, 1, 63, 63, 63, 63, 63, 1, 1, 1, 1, 63, 63, 63, 63, 63, 1, 1, 1, 1, 63, 63,
63, 63, 63, 1, 1, 1, 1, 63, 63, 63, 63, 63, 1, 1, 1, 1, 64, 64, 64, 64, 64, 63, 63, 63, 63, 63, 1, 1, 1, 1, 64, 64,
64, 64, 64, 1, 1, 1, 1, 64, 64, 64, 64, 64, 1, 1, 1, 1, 64, 64, 64, 64, 64, 1, 1, 1, 1, 64, 64, 64, 64, 64, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 69, 69, 69, 69, 69, 71, 71, 71, 71, 71, 1, 1, 1, 1, 69, 69, 69, 69, 69, 71, 71, 71,
71, 71, 1, 1, 1, 1, 69, 69, 69, 69, 69, 71, 71, 71, 71, 71, 1, 1, 1, 1, 69, 69, 69, 69, 69, 71, 71, 71, 71, 71, 1,
1, 1, 1, 69, 69, 69, 69, 69, 73, 73, 73, 73, 73, 71, 71, 71, 71, 71, 1, 1, 1, 1, 73, 73, 73, 73, 73, 1, 1, 1, 1,
73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 1, 1, 1, 1, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 1, 1, 1, 1, 73, 73, 73,
73, 73, 74, 74, 74, 74, 74, 1, 1, 1, 1, 74, 74, 74, 74, 74, 1, 1, 1, 1, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 74,
74, 74, 74, 74, 1, 1, 1, 1, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 1, 1, 1, 1, 75, 75, 75, 75, 75, 76, 76, 76, 76,
76, 1, 1, 1, 1, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 1, 1, 1, 1, 75, 75, 75, 75, 75, 76, 76, 76, 76, 76, 1, 1,
1, 1, 1, 1, 1, 1, 77, 77, 77, 77, 77, 1, 1, 1, 1, 77, 77, 77, 77, 77, 1, 1, 1, 1, 77, 77, 77, 77, 77, 1, 1, 1, 1,
77, 77, 77, 77, 77, 79, 79, 79, 79, 79, 1, 1, 1, 1, 77, 77, 77, 77, 77, 79, 79, 79, 79, 79, 1, 1, 1, 1, 79, 79, 79,
79, 79, 1, 1, 1, 1, 79, 79, 79, 79, 79, 1, 1, 1, 1, 79, 79, 79, 79, 79, 1, 1, 1, 1, 174, 174, 174, 174, 174, 1, 1,
1, 1, 174, 174, 174, 174, 174, 1, 1, 1, 1, 174, 174, 174, 174, 174, 1, 1, 1, 1, 174, 174, 174, 174, 174, 1, 1, 1,
1, 174, 174, 174, 174, 174, 1, 1, 1, 1, 1, 1, 1, 1, 83, 83, 83, 83, 83, 1, 1, 1, 1, 83, 83, 83, 83, 83, 1, 1, 1, 1,
84, 84, 84, 84, 84, 83, 83, 83, 83, 83, 1, 1, 1, 1, 84, 84, 84, 84, 84, 83, 83, 83, 83, 83, 1, 1, 1, 1, 84, 84, 84,
84, 84, 85, 85, 85, 85, 85, 83, 83, 83, 83, 83, 1, 1, 1, 1, 84, 84, 84, 84, 84, 85, 85, 85, 85, 85, 1, 1, 1, 1, 84,
84, 84, 84, 84, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 1, 1, 1, 1, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 1, 1,
1, 1, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 1, 1, 1, 1, 86, 86, 86, 86, 86, 1, 1, 1, 1, 86, 86, 86, 86, 86, 1, 1,
1, 1, 1, 1, 1, 1, 87, 87, 87, 87, 87, 1, 1, 1, 1, 87, 87, 87, 87, 87, 1, 1, 1, 1, 87, 87, 87, 87, 87, 1, 1, 1, 1,
88, 88, 88, 88, 88, 87, 87, 87, 87, 87, 1, 1, 1, 1, 88, 88, 88, 88, 88, 87, 87, 87, 87, 87, 1, 1, 1, 1, 88, 88, 88,
88, 88, 1, 1, 1, 1, 88, 88, 88, 88, 88, 1, 1, 1, 1, 88, 88, 88, 88, 88, 1, 1, 1, 1, 90, 90, 90, 90, 90, 1, 1, 1, 1,
90, 90, 90, 90, 90, 1, 1, 1, 1, 90, 90, 90, 90, 90, 1, 1, 1, 1, 92, 92, 92, 92, 92, 90, 90, 90, 90, 90, 1, 1, 1, 1,
92, 92, 92, 92, 92, 90, 90, 90, 90, 90, 93, 93, 93, 93, 93, 1, 1, 1, 1, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 1,
1, 1, 1, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 1, 1, 1, 1, 92, 92, 92, 92, 92, 93, 93, 93, 93, 93, 1, 1, 1, 1,
93, 93, 93, 93, 93, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 96, 96, 96, 96, 96, 1, 1, 1, 1, 96, 96, 96, 96,
96, 1, 1, 1, 1, 96, 96, 96, 96, 96, 1, 1, 1, 1, 96, 96, 96, 96, 96, 1, 1, 1, 1, 98, 98, 98, 98, 98, 99, 99, 99, 99,
99, 96, 96, 96, 96, 96, 1, 1, 1, 1, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 1, 1, 1, 1, 98, 98, 98, 98, 98, 99, 99,
99, 99, 99, 1, 1, 1, 1, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99, 1, 1, 1, 1, 98, 98, 98, 98, 98, 99, 99, 99, 99, 99,
1, 1, 1, 1, 1, 1, 1, 1, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 1, 1, 1, 1, 101, 101, 101, 101, 101, 102,
102, 102, 102, 102, 1, 1, 1, 1, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 1, 1, 1, 1, 101, 101, 101, 101,
101, 102, 102, 102, 102, 102, 1, 1, 1, 1, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 172, 172, 172, 172, 172, 1, 1, 1, 1, 103, 103, 103, 103, 103, 172,
172, 172, 172, 172, 1, 1, 1, 1, 103, 103, 103, 103, 103, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 1, 1, 1,
1, 103, 103, 103, 103, 103, 171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 1, 1, 1, 1, 103, 103, 103, 103, 103,
171, 171, 171, 171, 171, 172, 172, 172, 172, 172, 1, 1, 1, 1, 104, 104, 104, 104, 104, 103, 103, 103, 103, 103,
171, 171, 171, 171, 171, 1, 1, 1, 1, 104, 104, 104, 104, 104, 171, 171, 171, 171, 171, 1, 1, 1, 1, 104, 104, 104,
104, 104, 1, 1, 1, 1, 104, 104, 104, 104, 104, 1, 1, 1, 1, 104, 104, 104, 104, 104, 106, 106, 106, 106, 106, 1, 1,
1, 1, 106, 106, 106, 106, 106, 1, 1, 1, 1, 106, 106, 106, 106, 106, 1, 1, 1, 1, 106, 106, 106, 106, 106, 1, 1, 1,
1, 106, 106, 106, 106, 106, 1, 1, 1, 1, 108, 108, 108, 108, 108, 1, 1, 1, 1, 108, 108, 108, 108, 108, 109, 109,
109, 109, 109, 1, 1, 1, 1, 110, 110, 110, 110, 110, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 1, 1, 1, 1,
110, 110, 110, 110, 110, 108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 1, 1, 1, 1, 110, 110, 110, 110, 110,
108, 108, 108, 108, 108, 109, 109, 109, 109, 109, 1, 1, 1, 1, 110, 110, 110, 110, 110, 109, 109, 109, 109, 109, 1,
1, 1, 1, 110, 110, 110, 110, 110, 111, 111, 111, 111, 111, 1, 1, 1, 1, 111, 111, 111, 111, 111, 1, 1, 1, 1, 111,
111, 111, 111, 111, 1, 1, 1, 1, 111, 111, 111, 111, 111, 1, 1, 1, 1, 112, 112, 112, 112, 112, 111, 111, 111, 111,
111, 1, 1, 1, 1, 112, 112, 112, 112, 112, 1, 1, 1, 1, 112, 112, 112, 112, 112, 1, 1, 1, 1, 112, 112, 112, 112, 112,
1, 1, 1, 1, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 1, 1, 1, 1, 113, 113, 113, 113, 113, 1, 1, 1, 1, 113,
113, 113, 113, 113, 1, 1, 1, 1, 113, 113, 113, 113, 113, 1, 1, 1, 1, 114, 114, 114, 114, 114, 113, 113, 113, 113,
113, 1, 1, 1, 1, 114, 114, 114, 114, 114, 1, 1, 1, 1, 114, 114, 114, 114, 114, 1, 1, 1, 1, 114, 114, 114, 114, 114,
115, 115, 115, 115, 115, 1, 1, 1, 1, 114, 114, 114, 114, 114, 116, 116, 116, 116, 116, 115, 115, 115, 115, 115, 1,
1, 1, 1, 116, 116, 116, 116, 116, 115, 115, 115, 115, 115, 1, 1, 1, 1, 116, 116, 116, 116, 116, 115, 115, 115, 115,
115, 1, 1, 1, 1, 116, 116, 116, 116, 116, 115, 115, 115, 115, 115, 1, 1, 1, 1, 116, 116, 116, 116, 116, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 1, 1,
1, 1, 119, 119, 119, 119, 119, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 120, 120, 120, 120, 120, 1, 1, 1,
1, 119, 119, 119, 119, 119, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 120, 120, 120, 120, 120, 1, 1, 1, 1,
119, 119, 119, 119, 119, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 120, 120, 120, 120, 120, 1, 1, 1, 1,
119, 119, 119, 119, 119, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 120, 120, 120, 120, 120, 1, 1, 1, 1,
121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 123, 123, 123, 123, 123, 1, 1, 1, 1, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 1, 1, 1, 1, 123, 123,
123, 123, 123, 124, 124, 124, 124, 124, 1, 1, 1, 1, 123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 1, 1, 1, 1,
123, 123, 123, 123, 123, 124, 124, 124, 124, 124, 1, 1, 1, 1, 124, 124, 124, 124, 124, 1, 1, 1, 1, 1, 1, 1, 1, 125,
125, 125, 125, 125, 1, 1, 1, 1, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 1, 1, 1, 1, 125, 125, 125, 125,
125, 126, 126, 126, 126, 126, 1, 1, 1, 1, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 127, 127, 127, 127,
127, 1, 1, 1, 1, 125, 125, 125, 125, 125, 126, 126, 126, 126, 126, 127, 127, 127, 127, 127, 1, 1, 1, 1, 126, 126,
126, 126, 126, 127, 127, 127, 127, 127, 1, 1, 1, 1, 127, 127, 127, 127, 127, 1, 1, 1, 1, 127, 127, 127, 127, 127,
1, 1, 1, 1, 128, 128, 128, 128, 128, 129, 129, 129, 129, 129, 1, 1, 1, 1, 128, 128, 128, 128, 128, 130, 130, 130,
130, 130, 129, 129, 129, 129, 129, 1, 1, 1, 1, 128, 128, 128, 128, 128, 131, 131, 131, 131, 131, 130, 130, 130,
130, 130, 129, 129, 129, 129, 129, 1, 1, 1, 1, 128, 128, 128, 128, 128, 131, 131, 131, 131, 131, 130, 130, 130,
130, 130, 129, 129, 129, 129, 129, 1, 1, 1, 1, 128, 128, 128, 128, 128, 131, 131, 131, 131, 131, 130, 130, 130,
130, 130, 129, 129, 129, 129, 129, 1, 1, 1, 1, 131, 131, 131, 131, 131, 130, 130, 130, 130, 130, 1, 1, 1, 1, 131,
131, 131, 131, 131, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 132, 132, 132, 132, 132, 1, 1, 1, 1, 132, 132,
132, 132, 132, 1, 1, 1, 1, 132, 132, 132, 132, 132, 1, 1, 1, 1, 132, 132, 132, 132, 132, 1, 1, 1, 1, 133, 133, 133,
133, 133, 132, 132, 132, 132, 132, 1, 1, 1, 1, 133, 133, 133, 133, 133, 1, 1, 1, 1, 133, 133, 133, 133, 133, 1, 1,
1, 1, 133, 133, 133, 133, 133, 134, 134, 134, 134, 134, 1, 1, 1, 1, 133, 133, 133, 133, 133, 134, 134, 134, 134,
134, 1, 1, 1, 1, 135, 135, 135, 135, 135, 134, 134, 134, 134, 134, 1, 1, 1, 1, 135, 135, 135, 135, 135, 136, 136,
136, 136, 136, 134, 134, 134, 134, 134, 1, 1, 1, 1, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 134, 134,
134, 134, 134, 1, 1, 1, 1, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 1, 1, 1, 1, 135, 135, 135, 135, 135,
136, 136, 136, 136, 136, 138, 138, 138, 138, 138, 1, 1, 1, 1, 136, 136, 136, 136, 136, 138, 138, 140, 140, 140,
140, 140, 1, 1, 1, 1, 138, 138, 140, 140, 140, 140, 140, 1, 1, 1, 1, 138, 138, 140, 140, 140, 140, 140, 1, 1, 1, 1,
138, 138, 140, 140, 140, 140, 140, 1, 1, 1, 1, 140, 140, 140, 140, 140, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 141,
141, 141, 141, 141, 1, 1, 1, 1, 141, 141, 141, 141, 141, 1, 1, 1, 1, 141, 141, 141, 141, 141, 143, 143, 143, 143,
143, 1, 1, 1, 1, 141, 141, 141, 141, 141, 143, 143, 143, 143, 143, 1, 1, 1, 1, 141, 141, 141, 141, 141, 143, 143,
143, 143, 143, 1, 1, 1, 1, 143, 143, 143, 143, 143, 1, 1, 1, 1, 143, 143, 143, 143, 143, 1, 1, 1, 1, 144, 144, 144,
144, 144, 1, 1, 1, 1, 144, 144, 144, 144, 144, 1, 1, 1, 1, 144, 144, 144, 144, 144, 1, 1, 1, 1, 144, 144, 144, 144,
144, 1, 1, 1, 1, 144, 144, 144, 144, 144, 1, 1, 1, 1, 1, 1, 1, 1, 145, 145, 145, 145, 145, 1, 1, 1, 1, 145, 145,
145, 145, 145, 146, 146, 146, 146, 146, 1, 1, 1, 1, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 147, 147,
147, 147, 147, 148, 148, 148, 148, 148, 1, 1, 1, 1, 145, 145, 145, 145, 145, 146, 146, 146, 146, 146, 149, 149,
149, 149, 149, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 1, 1, 1, 1, 145, 145, 145, 145, 145, 146, 146,
146, 146, 146, 149, 149, 149, 149, 149, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 1, 1, 1, 1, 146, 146,
146, 146, 146, 149, 149, 149, 149, 149, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 1, 1, 1, 1, 149, 149,
149, 149, 149, 147, 147, 147, 147, 147, 148, 148, 148, 148, 148, 1, 1, 1, 1, 150, 150, 150, 150, 150, 149, 149,
149, 149, 149, 1, 1, 1, 1, 150, 150, 150, 150, 150, 1, 1, 1, 1, 150, 150, 150, 150, 150, 1, 1, 1, 1, 150, 150, 150,
150, 150, 1, 1, 1, 1, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 1, 1, 1, 1, 152, 152, 152, 152, 152, 151,
151, 151, 151, 151, 1, 1, 1, 1, 152, 152, 152, 152, 152, 151, 151, 151, 151, 151, 1, 1, 1, 1, 152, 152, 152, 152,
152, 151, 151, 151, 151, 151, 1, 1, 1, 1, 152, 152, 152, 152, 152, 151, 151, 151, 151, 151, 1, 1, 1, 1, 153, 153,
153, 153, 153, 152, 152, 152, 152, 152, 1, 1, 1, 1, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 1, 1, 1, 1,
153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 1, 1, 1, 1, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 1,
1, 1, 1, 153, 153, 153, 153, 153, 154, 154, 154, 154, 154, 1, 1, 1, 1, 154, 154, 154, 154, 154, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 155, 155, 155, 155, 155, 1, 1, 1, 1, 155, 155, 155, 155, 155, 1, 1, 1, 1, 155, 155, 155, 155,
155, 1, 1, 1, 1, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 155, 155, 155, 155, 155, 158, 158, 158, 158,
158, 1, 1, 1, 1, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 155, 155, 155, 155, 155, 158, 158, 158, 158,
158, 1, 1, 1, 1, 159, 159, 159, 159, 159, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 158, 158, 158, 158,
158, 1, 1, 1, 1, 159, 159, 159, 159, 159, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 158, 158, 158, 158,
158, 1, 1, 1, 1, 159, 159, 159, 159, 159, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 158, 158, 158, 158,
158, 1, 1, 1, 1, 159, 159, 159, 159, 159, 160, 160, 160, 160, 160, 1, 1, 1, 1, 159, 159, 159, 159, 159, 160, 160,
160, 160, 160, 1, 1, 1, 1, 161, 161, 161, 161, 161, 160, 160, 160, 160, 160, 1, 1, 1, 1, 161, 161, 161, 161, 161,
160, 160, 160, 160, 160, 1, 1, 1, 1, 162, 162, 162, 162, 162, 161, 161, 161, 161, 161, 160, 160, 160, 160, 160, 1,
1, 1, 1, 162, 162, 162, 162, 162, 161, 161, 161, 161, 161, 1, 1, 1, 1, 162, 162, 162, 162, 162, 161, 161, 161, 161,
161, 1, 1, 1, 1, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 1, 1, 1, 1, 164, 164, 164, 164, 164, 162, 162,
162, 162, 162, 163, 163, 163, 163, 163, 1, 1, 1, 1, 164, 164, 164, 164, 164, 163, 163, 163, 163, 163, 1, 1, 1, 1,
164, 164, 164, 164, 164, 163, 163, 163, 163, 163, 1, 1, 1, 1, 164, 164, 164, 164, 164, 163, 163, 163, 163, 163, 1,
1, 1, 1, 164, 164, 164, 164, 164, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]
walgorithm = ['PyMorph']
woundCenters = [None]
| 95,885
| 95,885
| 0.442478
| 18,510
| 95,885
| 2.292112
| 0.023879
| 0.138968
| 0.184764
| 0.214769
| 0.250572
| 0.249629
| 0.249629
| 0.249134
| 0.249134
| 0.241662
| 0
| 0.578279
| 0.23572
| 95,885
| 1
| 95,885
| 95,885
| 0.000669
| 0
| 0
| 0.065773
| 0
| 0
| 0.000073
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f524810fb2487ac3cc2f68c096f816885f20c8c7
| 2,030
|
py
|
Python
|
pirates/leveleditor/worldData/InternIsland.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 81
|
2018-04-08T18:14:24.000Z
|
2022-01-11T07:22:15.000Z
|
pirates/leveleditor/worldData/InternIsland.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 4
|
2018-09-13T20:41:22.000Z
|
2022-01-08T06:57:00.000Z
|
pirates/leveleditor/worldData/InternIsland.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 26
|
2018-05-26T12:49:27.000Z
|
2021-09-11T09:11:59.000Z
|
from pandac.PandaModules import Point3, VBase3
objectStruct = {'Interact Links': [['1175129600.0dxschafe1', '1182807424.0dxschafe', 'Bi-directional'], ['1182807296.0dxschafe0', '1182807552.0dxschafe', 'Bi-directional'], ['1182807552.0dxschafe0', '1175129600.0dxschafe0', 'Bi-directional'], ['1182807296.0dxschafe', '1182807552.0dxschafe2', 'Bi-directional']],'Objects': {'1180633600.0sdnaik0': {'Type': 'Island','Name': 'InternIsland','File': '','AdditionalData': ['RumrunnerIsland'],'Objects': {"\n '1180634112.0sdnaik': {\n 'Type': 'InternObject',\n 'Hpr': Point3(0.000,0.000,0.000),\n 'Pos': Point3(142.858,194.580,0.000),\n 'Scale': VBase3(1.000,1.000,1.000),\n 'Visual': {\n 'Model': 'models/props/barrel',},},\n1180635136.0sdnaik": {'Type': 'Player Spawn Node','Hpr': Point3(0.0, 0.0, 0.0),'Index': 1,'Pos': Point3(127.066, 202.495, 7.685),'Scale': VBase3(1.0, 1.0, 1.0),'Spawnables': 'All','Visual': {'Color': (0.5, 0.5, 0.5, 1),'Model': 'models/misc/smiley'}},'1155695180.13sdnaik': {'Type': 'Port Collision Sphere','Name': 'PortRoyalPort','Hpr': VBase3(34.116, 0.0, 0.0),'Pos': Point3(-240.041, -2028.15, 0.0),'Scale': VBase3(2076.06, 2076.06, 2076.06),'Visual': {'Color': (0.5, 0.5, 1.0, 0.2),'Model': 'models/misc/smiley'}},'1183682138.26joswilso': {'Type': 'Dinghy','Hpr': VBase3(0.0, 9.07, 0.0),'Pos': Point3(130.736, 169.944, 1.634),'Scale': VBase3(1.0, 1.0, 1.0),'Visual': {'Model': 'models/shipparts/dingy-geometry_High'}}},'Visual': {'Model': 'models/islands/pir_m_are_isl_rumRunner'}}},'Node Links': [],'Layers': {},'ObjectIds': {'1180633600.0sdnaik0': '["Objects"]["1180633600.0sdnaik0"]','1155695180.13sdnaik': '["Objects"]["1180633600.0sdnaik0"]["Objects"]["1155695180.13sdnaik"]','1180635136.0sdnaik': '["Objects"]["1180633600.0sdnaik0"]["Objects"]["1180635136.0sdnaik"]','1183682138.26joswilso': '["Objects"]["1180633600.0sdnaik0"]["Objects"]["1183682138.26joswilso"]'}}
| 1,015
| 1,983
| 0.627586
| 254
| 2,030
| 4.996063
| 0.405512
| 0.018913
| 0.014184
| 0.012608
| 0.058314
| 0.050433
| 0.026793
| 0.026793
| 0
| 0
| 0
| 0.251119
| 0.119212
| 2,030
| 2
| 1,983
| 1,015
| 0.458613
| 0
| 0
| 0
| 0
| 0.5
| 0.675037
| 0.302807
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 8
|
f556b35ec4bf96d27230bb87bfac865e7de1cece
| 158
|
py
|
Python
|
tests/__main__.py
|
Fergui/noaaclass
|
9adbcd66e830f64dee475cd87e5621b8cb8d9677
|
[
"MIT"
] | null | null | null |
tests/__main__.py
|
Fergui/noaaclass
|
9adbcd66e830f64dee475cd87e5621b8cb8d9677
|
[
"MIT"
] | null | null | null |
tests/__main__.py
|
Fergui/noaaclass
|
9adbcd66e830f64dee475cd87e5621b8cb8d9677
|
[
"MIT"
] | 1
|
2020-07-13T21:58:00.000Z
|
2020-07-13T21:58:00.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from noaaclass_test import *
from core_test import *
from gvarimg_test import *
unittest.main()
| 19.75
| 28
| 0.734177
| 23
| 158
| 4.913043
| 0.652174
| 0.265487
| 0.247788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007353
| 0.139241
| 158
| 7
| 29
| 22.571429
| 0.823529
| 0.265823
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 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
|
f55db2ea398fd3b60393ff34efe04ae6fe7169ba
| 24,290
|
py
|
Python
|
sspredict/make_prediction/input_format.py
|
DS-Wen/SSPredict
|
663f693405b066d4b93751c8374d9f5412c501ee
|
[
"MIT"
] | 2
|
2019-03-02T06:32:05.000Z
|
2021-04-30T04:18:24.000Z
|
sspredict/make_prediction/input_format.py
|
DS-Wen/SSPredict
|
663f693405b066d4b93751c8374d9f5412c501ee
|
[
"MIT"
] | null | null | null |
sspredict/make_prediction/input_format.py
|
DS-Wen/SSPredict
|
663f693405b066d4b93751c8374d9f5412c501ee
|
[
"MIT"
] | 1
|
2019-05-12T11:46:24.000Z
|
2019-05-12T11:46:24.000Z
|
class input_format():
def __init__(self,format_tag):
self.tag = format_tag
def print_sample_input(self):
if self.tag =='FCC_BCC_Edge_Ternary':
print('''
Sample JSON for using pseudo-ternary predictions of solid solution strength by Curtin edge dislocation model.
------------------------------------------------------------
{
"material":"MnFeCoNiAl",
"structure":"FCC",
"pseudo-ternary":{
"increment": 1,
"psA": {"grouped_elements":["Mn","Co"],
"ratio": [1,1],
"range":[0,100]},
"psB": {"grouped_elements":["Fe","Ni"],
"ratio": [1,1],
"range":[0,100]},
"psC": {"grouped_elements":["Al"],
"ratio": [1],
"range":[0,100]}
},
"elements":{
"Co": {"Vn":11.12,"E":262.9,"G":101.7,"nu":0.292},
"Ni": {"Vn":10.94,"E":199.1,"G":76.0,"nu":0.309},
"Al": {"Vn":16.472,"E":65.5,"G":23.9,"nu":0.369},
"Mn": {"Vn":12.60,"E":197.7,"G":73.4,"nu":0.347},
"Fe": {"Vn":12.09,"E":194.3,"G":73.4}
},
"uncertainty_level":{
"on/off":"on",
"a":0.01,
"elastic_constants":0.05
},
"conditions":{"temperature":300,"strain_r":0.001},
"model":{
"name":"FCC_Varvenne-Curtin-2016"
},
"savefile":"MnFeCoNiAl_out"
}
------------------------------------------------------------
Nesessary tags:
"material": material name
--
"structure": "FCC" or "BCC"
--
"pseudo-ternary": containing "psA" "psB" 'psC' for pseudo-ternary components
"psA": pseudo-ternary component, can be a single element or grouped element.
"grouped_elements": # group specific elements in psA
# eg. "grouped_elements":["Ni","Co"], Mn and Co are grouped
"ratio": # specify the ratio between elements in A
# eg. "ratio": [1,1], represent Co:Ni=1:1
"range": # specify the concentration range for "psA"
# eg. "range":[0,100], range from 0 to 100 at.%
--
"elements": input data for elements:
"Co": element symbol for Co
"Vn": atomic volume
"a": lattice constant
"b": Burgers vector
# NOTE, just need to specify one of "Vn", "a" or "b"
"E": Young's modulus
"G": shear modulus
"nu": Poisson's ratio
# NOTE, in Voigt notation, as indicated in the paper.
# Need to specify 2 of the "E", "G", and "nu" for isotropic.
--
"conditions": experimental conditions
"temperature": Kelvin
"strain_r": experiment strain rate,
typical tensile tests: 0.001 /s
--
"model":
IMPORTANT!!!
"name": name of the model,
use "FCC_Varvenne-Curtin-2016" for FCC and
use "BCC_edge_Maresca-Curtin-2019" for BCC
The following are adjustable parameters for the model
"f1": # dimensionless pressure field parameter for athermal yield stress
"f2": # dimensionless pressure field parameter for energy barrier
"alpha": # dislocation line tension parameter
IMPORTANT:
If you don't know f1, f2, and alpha for your material,
DO NOT change f1, f2 and alpha.
The default values were optimized for FCC HEAs and BCC HEAs.
Read Curtin's papers.
-------
Optional tags:
"uncertainty_level": allow uncertainty evaluation on input data.
"on/off":"on" # turn on/off the uncertainty calculation
# if off, no need to set the following tags
# if on, specify the standard deviations
for lattice constants and elastic constants
"a": 0.01 # applied 1% standard deviation to lattice constants
# 1000 data points were generated to evaluate the average and standar deviation
# this means for each element,
# a new lattice constant will be generated using normal distribution,
# centered at the value "a" (lattice constants) in "elements"
# with a standard deviation 0.01a.
"elastic_constants": 0.05 # applied 5% standard deviation to elastic constants
# 1000 data points were generated to evaluate the average and standar deviation
# this means for each element,
# new elastic constants will be generated using normal distribution,
# centered at the values "E", "G", "nu" (elastic constants) in "elements"
# with a standard deviation 0.01a.
"savefile": output filename, CSV file.
END
''')
elif self.tag =='FCC_BCC_Edge_Composition_Temperature':
print('''
Sample JSON for composition-temperature predictions of solid solution strength by Curtin edge dislocation model.
------------------------------------------------------------
{
"material":"MnFeCoNi",
"structure":"FCC",
"elements":{
"Co": {"Vn":11.12,"E":262.9,"G":101.7,"nu":0.292},
"Ni": {"Vn":10.94,"E":199.1,"G":76.0,"nu":0.309},
"Mn": {"Vn":12.60,"E":197.7,"G":73.4,"nu":0.347},
"Fe": {"Vn":12.09,"E":194.3,"G":73.4}
},
"compositions":{
"element_order": ["Co","Ni","Fe","Mn"],
"concentrations": [
[25,25,25,25],
[20,20,30,30],
[30,30,20,20]
]
},
"uncertainty_level":{
"on/off":"on",
"a":0.01,
"elastic_constants":0.05
},
"conditions":{
"temperature":{
"min": 300,
"max": 600,
"inc": 10
},
"strain_r":0.001
},
"model":{
"name":"FCC_Varvenne-Curtin-2016"
},
"savefile":"MnFeCoNi_out"
}
------------------------------------------------------------
Nesessary tags:
"material": material name
--
"structure": "FCC" or "BCC"
--
"compositions": containing element symbols and concentrations for calculation.
"element_order": a list of element symbols in order, be consistent with the "concentrations"
"concentrations": a list of concentrations in at.% for elements in the "element_order",
add up to 100.
--
"elements": input data for elements:
"Co": element symbol for Co
"Vn": atomic volume
"a": lattice constant
"b": Burgers vector
# NOTE, just need to specify one of "Vn", "a" or "b"
"E": Young's modulus
"G": shear modulus
"nu": Poisson's ratio
# NOTE, in Voigt notation, as indicated in the paper.
# Need to specify 2 of the "E", "G", and "nu" for isotropic.
--
"conditions": experimental conditions
"temperature": specify temperature (Kelvin) range and increment for the calculations.
"max": max T
"min": min T
"inc": increment.
"strain_r": experiment strain rate,
typical tensile tests: 0.001 /s
--
"model":
IMPORTANT!!!
"name": name of the model,
use "FCC_Varvenne-Curtin-2016" for FCC and
use "BCC_edge_Maresca-Curtin-2019" for BCC
The following are adjustable parameters for the model
"f1": # dimensionless pressure field parameter for athermal yield stress
"f2": # dimensionless pressure field parameter for energy barrier
"alpha": # dislocation line tension parameter
IMPORTANT:
If you don't know f1, f2, and alpha for your material,
DO NOT change f1, f2 and alpha.
The default values were optimized for FCC HEAs and BCC HEAs.
Read Curtin's papers.
-------
Optional tags:
"uncertainty_level": allow uncertainty evaluation on input data.
"on/off":"on" # turn on/off the uncertainty calculation
# if off, no need to set the following tags
# if on, specify the standard deviations
for lattice constants and elastic constants
"a": 0.01 # applied 1% standard deviation to lattice constants
# 1000 data points were generated to evaluate the average and standar deviation
# this means for each element,
# a new lattice constant will be generated using normal distribution,
# centered at the value "a" (lattice constants) in "elements"
# with a standard deviation 0.01a.
"elastic_constants": 0.05 # applied 5% standard deviation to elastic constants
# 1000 data points were generated to evaluate the average and standar deviation
# this means for each element,
# new elastic constants will be generated using normal distribution,
# centered at the values "E", "G", "nu" (elastic constants) in "elements"
# with a standard deviation 0.05*value.
"savefile": output filename, CSV file.
END
''')
elif self.tag =='BCC_Screw_Curtin_Ternary':
print('''
Sample JSON for predictions of solid solution strength for pseudo-ternary BCC by Curtin screw dislocation model.
Screw dislocation in BCC.
------------------------------------------------------------
{
"material":"NbMoW",
"pseudo-ternary":{
"increment": 1,
"psA": {"grouped_elements":["Nb"],
"ratio": [1],
"range":[0,100]},
"psB": {"grouped_elements":["Mo"],
"ratio": [1],
"range":[0,100]},
"psC": {"grouped_elements":["W"],
"ratio": [1],
"range":[0,100]}
},
"elements":{
"Nb": {"a":3.30,"Delta_E_p":0.0345,"E_k":0.6400,"E_v":2.9899,"E_si":5.2563,"Delta_V_p":0.020},
"Mo": {"a":3.14,"Delta_E_p":0.1579,"E_k":0.5251,"E_v":2.9607,"E_si":7.3792,"Delta_V_p":0.020},
"W": {"a":3.16,"Delta_E_p":0.1493,"E_k":0.9057,"E_v":3.5655,"E_si":9.5417,"Delta_V_p":0.020}
},
"adjustables":{
"kink_width":10,
"Delta_V_p_scaler":1,
"Delta_E_p_scaler":1
},
"conditions":{"temperature":300,"strain_r":0.001},
"model":{
"name":"BCC_screw_Maresca-Curtin-2019"
},
"savefile":"NbMoW_out"
}
------------------------------------------------------------
Nesessary tags:
"material": material name
--
"pseudo-ternary": containing "psA" "psB" 'psC' for pseudo-ternary components
"psA": pseudo-ternary component, can be a single element or grouped elements.
"grouped_elements": # group specific elements in psA
# eg. "grouped_elements":["W","Ta"], Mn and Co are grouped
"ratio": # specify the ratio between elements in A
# eg. "ratio": [1,1], represent W:Ta=1:1
"range": # specify the concentration range for "psA"
# eg. "range":[0,100], range from 0 to 100 at.%
--
"elements": input data for elements:
"W": element symbol for W
below are necessary inputs.
"a": lattice constant
"E_k": screw dislocation kink formation energy (usually by DFT or MD calculations)
"E_v": vacancy formation energy (usually by DFT or MD)
"E_si": self-interstitial formation energy (usually by DFT or MD)
"Delta_E_p": solute-dislocation interaction energy (usually by DFT or MD)
"Delta_V_p": Peierls barrier (usually by DFT or MD)
--
"adjustables": adjustable parameters for the model. Be VERY careful to change the values.
"kink_width":10 kink width, default is 10, (unit: burgers vector), usually between 10b to 20b.
"Delta_V_p_scaler":1, Peierls barrier scaler, DFT values are usually very high compared to experiments.
So rescaling was taken to fit the experimental yield strengths.
"Delta_E_p_scaler":1 Solute-dislocation interaction energy scaler.
This is also rescaled for DFT/MD values.
--
"conditions": experimental conditions
"temperature": specify temperature (Kelvin) the calculations.
"strain_r": experiment strain rate,
typical tensile tests: 0.001 /s
--
"model": "BCC_screw_Maresca-Curtin-2019",
-------
Optional tags:
"savefile": output filename, CSV file.
END
''')
elif self.tag =='BCC_Screw_Curtin_Composition_Temperature':
print('''
Sample JSON for composition-temperature predictions of BCC solid solution strength by Curtin screw dislocation model.
Screw dislocation in BCC.
------------------------------------------------------------
{
"material":"Nb95Mo5",
"model":"BCC_screw_Maresca-Curtin-2019",
"properties":{
"a": 3.289,
"E_k": 0.6342,
"E_v": 2.989,
"E_si": 5.361,
"Delta_E_p": 0.0488,
"Delta_V_p": 0.020
},
"conditions":{
"temperature":{
"max":500,
"min":0,
"inc":10
},
"strain_r":0.001
},
"adjustables":{
"kink_width":10,
"Delta_V_p_scaler":1,
"Delta_E_p_scaler":1
},
"savefile":"Nb95Mo5_out"
}
------------------------------------------------------------
Nesessary tags:
"material": material name
--
"properties": input data for the material:
"a": lattice constant
"E_k": screw dislocation kink formation energy (usually by DFT or MD calculations)
"E_v": vacancy formation energy (usually by DFT or MD)
"E_si": self-interstitial formation energy (usually by DFT or MD)
"Delta_E_p": solute-dislocation interaction energy (usually by DFT or MD)
"Delta_V_p": Peierls barrier (usually by DFT or MD)
--
"conditions": experimental conditions
"temperature": specify temperature (Kelvin) range and increment for the calculations.
"max": max T
"min": min T
"inc": increment.
"strain_r": experiment strain rate,
typical tensile tests: 0.001 /s
--
"adjustables": adjustable parameters for the model. Be VERY careful to change the values.
"kink_width":10 kink width, default is 10, (unit: burgers vector), usually between 10b to 20b.
"Delta_V_p_scaler":1, Peierls barrier scaler, DFT values are usually very high compared to experiments.
So rescaling was taken to fit the experimental yield strengths.
"Delta_E_p_scaler":1 Solute-dislocation interaction energy scaler.
This is also rescaled for DFT/MD values.
--
"model": "BCC_screw_Maresca-Curtin-2019",
-------
Optional tags:
"savefile": output filename, CSV file.
END
''')
elif self.tag =='BCC_Screw_Suzuki_Temperature':
print('''
Sample JSON for predictions of solid solution strength vs. temperature for BCC by Suzuki screw dislocation model.
Screw dislocation in BCC.
------------------------------------------------------------
{
"material":"Ti33Nb33Zr33",
"model":"BCC_screw_Suzuki_RWASM-2020",
"elements":{
"Nb": {"c":0.34,"a":3.30,"G":38,"nu":0.40,"E_w":0.054 ,"E_f_v":2.99,"E_f_si":5.25},
"Ti": {"c":0.33,"a":3.31,"G":44,"nu":0.32,"E_w":-0.028,"E_f_v":2.22,"E_f_si":2.4},
"Zr": {"c":0.33,"a":3.58,"G":33,"nu":0.34,"E_w":-0.053,"E_f_v":1.80,"E_f_si":3.5}
},
"conditions":{
"temperature":{
"max":1400,
"min":300,
"inc":200
},
"strain_r":0.001
},
"adjustables":{
"kink_width":10,
"tau_i_exponent":1,
"dislocation_density":4e13,
"trial_kappa":{
"min":1,
"max":4,
"inc":0.05
},
"trial_tau_k":5
},
"savefile":"TiNbZr_Suzuki_out"
}
------------------------------------------------------------
Nesessary tags:
"material": material name
--
"elements": input data for elements:
"Nb": element symbol for Nb
below are necessary inputs.
"c": concentration in at.%
"a": lattice constant
"E_w": solute-dislocation interaction (usually by DFT or MD calculations)
"E_f_v": vacancy formation energy (usually by DFT or MD)
"E_f_si": self-interstitial formation energy (usually by DFT or MD)
"G": shear modulus
"nu": Poisson ratio
--
"adjustables": adjustable parameters for the model. Be VERY careful to change the values.
"kink_width":10 kink width, default is 10, (unit: burgers vector),
usually between 10b to 20b.
"dislocation_density": mobile dislocation density
default is 4e13, usually between 1e12 to 1e14
"tau_i_exponent": exponent for contributions of tau_y from different elements
phenomenological equation for tau_y:
q = tau_i_exponent
tau_y = sum( tau_y_i^(1/q) )^q
i for element_i
for refractory metals, a safe value is 0.95-1. # same as the reference.
"trial_kappa": The value of tau_y is obtained by minimizing tau_y over this kappa parameter.
A range of kappa values are supplied to obtain tau_y vs. kappa curve.
Then tau_y is found for minimum of the curve.
Be careful to try different kappa range for convergence test.
"trial_tau_k": Also needed for tau_y minimization.
A fourth order equation must be solved for tau_k, before tau_y minimization.
tau_k^4 + S * tau_k -R = 0
This trial_tau_k value provides the initial guess for scipy.optimize.root.
Default value is 5, unit is MPa.
--
"conditions": experimental conditions
"temperature": specify temperature (Kelvin) range and increment for the calculations.
"max": max T
"min": min T
"inc": increment.
"strain_r": experiment strain rate,
typical tensile tests: 0.001 /s
--
"model": "BCC_screw_Suzuki_RWASM-2020"
name of the Suzuki model
# Paper: Rao, S.I., Woodward, C., Akdim, B., Senkov, O.N. and Miracle, D., 2021.
# Theory of solid solution strengthening of BCC Chemically Complex Alloys. Acta Materialia, 209, p.116758.
-------
Optional tags:
"savefile": output filename, CSV file.
END
''')
elif self.tag =='BCC_Screw_Suzuki_Ternary':
print('''
Sample JSON for predictions of solid solution strength for ternary/pseudo-ternary BCC
by Suzuki screw dislocation model.
------------------------------------------------------------
{
"material":"TiNbZr",
"model":"BCC_screw_Suzuki_RWASM-2020",
"pseudo-ternary":{
"increment": 5,
"psA": {"grouped_elements":["Nb"],
"ratio": [1],
"range":[0,100]},
"psB": {"grouped_elements":["Ti"],
"ratio": [1],
"range":[0,100]},
"psC": {"grouped_elements":["Zr"],
"ratio": [1],
"range":[0,100]}
},
"elements":{
"Nb": {"a":3.30,"G":38,"nu":0.40,"E_w":0.054 ,"E_f_v":2.99,"E_f_si":5.25},
"Ti": {"a":3.31,"G":44,"nu":0.32,"E_w":-0.028,"E_f_v":2.22,"E_f_si":2.4},
"Zr": {"a":3.58,"G":33,"nu":0.34,"E_w":-0.053,"E_f_v":1.80,"E_f_si":3.5}
},
"conditions":{
"temperature":300,
"strain_r":0.001
},
"adjustables":{
"kink_width":10,
"tau_i_exponent":1,
"dislocation_density":4e13,
"trial_kappa":{
"min":1,
"max":4,
"inc":0.05
},
"trial_tau_k":5
},
"savefile":"TiNbZr_Suzuki_Ternary_out"
}
------------------------------------------------------------
Nesessary tags:
"material": material name
--
"pseudo-ternary": containing "psA" "psB" 'psC' for pseudo-ternary components
"psA": pseudo-ternary component, can be a single element or grouped elements.
"grouped_elements": # group specific elements in psA
# eg. "grouped_elements":["W","Ta"], Mn and Co are grouped
"ratio": # specify the ratio between elements in A
# eg. "ratio": [1,1], represent W:Ta=1:1
"range": # specify the concentration range for "psA"
# eg. "range":[0,100], range from 0 to 100 at.%
--
"elements": input data for elements:
"Nb": element symbol for Nb
below are necessary inputs.
"a": lattice constant
"E_w": solute-dislocation interaction (usually by DFT or MD calculations)
"E_f_v": vacancy formation energy (usually by DFT or MD)
"E_f_si": self-interstitial formation energy (usually by DFT or MD)
"G": shear modulus
"nu": Poisson ratio
--
"adjustables": adjustable parameters for the model. Be VERY careful to change the values.
"kink_width":10 kink width, default is 10, (unit: burgers vector),
usually between 10b to 20b.
"dislocation_density": mobile dislocation density
default is 4e13, usually between 1e12 to 1e14
"tau_i_exponent": exponent for contributions of tau_y from different elements
phenomenological equation for tau_y:
q = tau_i_exponent
tau_y = sum( tau_y_i^(1/q) )^q
i for element_i
for refractory metals, a safe value is 0.95-1. # same as the reference.
"trial_kappa": The value of tau_y is obtained by minimizing tau_y over this kappa parameter.
A range of kappa values are supplied to obtain tau_y vs. kappa curve.
Then tau_y is found for minimum of the curve.
Be careful to try different kappa range for convergence test.
"trial_tau_k": Also needed for tau_y minimization.
A fourth order equation must be solved for tau_k, before tau_y minimization.
tau_k^4 + S * tau_k -R = 0
This trial_tau_k value provides the initial guess for scipy.optimize.root.
Default value is 5, unit is MPa.
--
"conditions": experimental conditions
"temperature": specify temperature (Kelvin) the calculations.
"strain_r": experiment strain rate,
typical tensile tests: 0.001 /s
--
"model": "BCC_screw_Suzuki_RWASM-2020"
name of the Suzuki model
# Paper: Rao, S.I., Woodward, C., Akdim, B., Senkov, O.N. and Miracle, D., 2021.
# Theory of solid solution strengthening of BCC Chemically Complex Alloys. Acta Materialia, 209, p.116758.
-------
Optional tags:
"savefile": output filename, CSV file.
END
''')
else:
print('NOT a valid name. Available input formats: \n'
'FCC_BCC_Edge_Ternary\n'
'FCC_BCC_Edge_Composition_Temperature\n'
'BCC_Screw_Curtin_Ternary\n'
'BCC_Screw_Curtin_Composition_Temperature\n'
'BCC_Screw_Suzuki_Temperature\n'
'BCC_Screw_Suzuki_Ternary\n')
| 42.243478
| 118
| 0.536188
| 2,902
| 24,290
| 4.384562
| 0.138525
| 0.006287
| 0.01509
| 0.017605
| 0.917479
| 0.895552
| 0.876847
| 0.86718
| 0.855391
| 0.843996
| 0
| 0.049146
| 0.322314
| 24,290
| 575
| 119
| 42.243478
| 0.723832
| 0
| 0
| 0.767273
| 0
| 0.047273
| 0.971553
| 0.149397
| 0
| 0
| 0
| 0
| 0
| 1
| 0.003636
| false
| 0
| 0.007273
| 0
| 0.012727
| 0.014545
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f582e5e4f7dd091b8758fbfe83838e90595601c8
| 702
|
py
|
Python
|
python/ttt.py
|
littlebenlittle/rps
|
e462ebe0ab6439daea4526c1bb871258717c0b27
|
[
"MIT"
] | null | null | null |
python/ttt.py
|
littlebenlittle/rps
|
e462ebe0ab6439daea4526c1bb871258717c0b27
|
[
"MIT"
] | null | null | null |
python/ttt.py
|
littlebenlittle/rps
|
e462ebe0ab6439daea4526c1bb871258717c0b27
|
[
"MIT"
] | null | null | null |
import numpy as np
BEGIN = np.array(
[[0,0,0],
[0,0,0],
[0,0,0]]
)
WIN_FILTERS = [
np.array(
[[1,1,1],
[0,0,0],
[0,0,0]]
),
np.array(
[[0,0,0],
[1,1,1],
[0,0,0]]
),
np.array(
[[0,0,0],
[0,0,0],
[1,1,1]]
),
np.array(
[[1,0,0],
[1,0,0],
[1,0,0]]
),
np.array(
[[0,1,0],
[0,1,0],
[0,1,0]]
),
np.array(
[[0,0,1],
[0,0,1],
[0,0,1]]
),
np.array(
[[1,0,0],
[0,1,0],
[0,0,1]]
),
np.array(
[[0,0,1],
[0,1,0],
[1,0,0]]
),
]
| 13.5
| 18
| 0.249288
| 106
| 702
| 1.641509
| 0.09434
| 0.413793
| 0.327586
| 0.275862
| 0.781609
| 0.683908
| 0.413793
| 0.413793
| 0
| 0
| 0
| 0.226257
| 0.490028
| 702
| 51
| 19
| 13.764706
| 0.259777
| 0
| 0
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.020833
| 0
| 0.020833
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f58c0c1730435a1b5eec482db0e8d38ffaebf05e
| 120,018
|
py
|
Python
|
cinnamon_sdk/cinnamon.py
|
adgorithmics-inc/cinnamon-python-sdk
|
804e7d00bb728c4d91280d7236a4dc06fefaeea0
|
[
"MIT"
] | null | null | null |
cinnamon_sdk/cinnamon.py
|
adgorithmics-inc/cinnamon-python-sdk
|
804e7d00bb728c4d91280d7236a4dc06fefaeea0
|
[
"MIT"
] | null | null | null |
cinnamon_sdk/cinnamon.py
|
adgorithmics-inc/cinnamon-python-sdk
|
804e7d00bb728c4d91280d7236a4dc06fefaeea0
|
[
"MIT"
] | null | null | null |
from typing import Union, List, Iterable
from datetime import datetime
from .internals.base_classes import (
BaseSyncCinnamon,
BaseCinnamonField,
QueryFieldSet,
QueryField,
)
from .internals.constants import CinnamonUndefined
from .internals import scalars
from . import fields as fields_module
from . import objects
from . import inputs
class _ARGUMENT_LEGENDS:
class campaign_template:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class campaign_templates_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class campaign_templates_with_current_gcpx_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class catalog:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class catalogs_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class creative_font:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class creative_fonts_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class creative_image:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class creative_images_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class creative_layer:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class creative_layers_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class creative_template:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class creative_templates_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class entitlement:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class marketing_ad:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class marketing_ads_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class marketing_campaign:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class marketing_campaigns_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class marketplace:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class marketplaces_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class media_channel:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class media_channels_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class notification:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class organization:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class organizations_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class product:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class products_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class result:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class vendor:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class vendors_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class vendor_token:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class vendor_tokens_each:
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class create_catalog:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CatalogCreateInput"
python_iterable = None
python_name = "input"
class import_catalog:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CatalogImportInput"
python_iterable = None
python_name = "input"
class update_catalog:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CatalogUpdateInput"
python_iterable = None
python_name = "input"
class update_catalogs_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CatalogUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class sync_catalog:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CatalogSyncInput"
python_iterable = None
python_name = "input"
class sync_catalog_products:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class delete_catalog:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_creative_font:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeFontCreateInput"
python_iterable = None
python_name = "input"
class update_creative_font:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeFontUpdateInput"
python_iterable = None
python_name = "input"
class update_creative_fonts_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeFontUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_creative_font:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_creative_image:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeImageCreateInput"
python_iterable = None
python_name = "input"
class update_creative_image:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeImageUpdateInput"
python_iterable = None
python_name = "input"
class update_creative_images_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeImageUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_creative_image:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_creative_layer:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeLayerCreateInput"
python_iterable = None
python_name = "input"
class update_creative_layer:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeLayerUpdateInput"
python_iterable = None
python_name = "input"
class update_creative_layers_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeLayerUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_creative_layer:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_creative_template:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeTemplateCreateInput"
python_iterable = None
python_name = "input"
class update_creative_template:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeTemplateUpdateInput"
python_iterable = None
python_name = "input"
class update_creative_templates_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "CreativeTemplateUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_creative_template:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_entitlement:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "EntitlementInput"
python_iterable = None
python_name = "input"
class update_entitlement:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "EntitlementUpdateInput"
python_iterable = None
python_name = "input"
class delete_entitlement:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_marketing_campaign:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MarketingCampaignInput"
python_iterable = None
python_name = "input"
class update_marketing_campaign:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MarketingCampaignUpdateInput"
python_iterable = None
python_name = "input"
class update_marketing_campaigns_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MarketingCampaignUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class sync_marketing_campaign:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MarketingCampaignSyncInput"
python_iterable = None
python_name = "input"
class approve_marketing_campaign:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class last_change_date(BaseCinnamonField):
api_name = "lastChangeDate"
api_kind = "SCALAR"
api_kind_name = "DateISO"
python_iterable = None
python_name = "last_change_date"
scalar = scalars.DateISO
class delete_marketing_campaign:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_marketplace:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MarketplaceInput"
python_iterable = None
python_name = "input"
class update_marketplace:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MarketplaceUpdateInput"
python_iterable = None
python_name = "input"
class update_marketplaces_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MarketplaceUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_marketplace:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_media_channel:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MediaChannelCreateInput"
python_iterable = None
python_name = "input"
class import_media_channel:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MediaChannelImportInput"
python_iterable = None
python_name = "input"
class update_media_channel:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MediaChannelUpdateInput"
python_iterable = None
python_name = "input"
class update_media_channels_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "MediaChannelUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_media_channel:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class update_notification:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "NotificationUpdateInput"
python_iterable = None
python_name = "input"
class create_organization:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "OrganizationInput"
python_iterable = None
python_name = "input"
class update_organization:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "OrganizationUpdateInput"
python_iterable = None
python_name = "input"
class update_organizations_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "OrganizationUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_organization:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_product:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "ProductInput"
python_iterable = None
python_name = "input"
class update_product:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "ProductUpdateInput"
python_iterable = None
python_name = "input"
class update_products_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "ProductUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_product:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class request_reset_password:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "RequestResetPasswordInput"
python_iterable = None
python_name = "input"
class reset_password:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "ResetPasswordInput"
python_iterable = None
python_name = "input"
class update_user:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "UserUpdateInput"
python_iterable = None
python_name = "input"
class create_vendor:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "VendorInput"
python_iterable = None
python_name = "input"
class update_vendor:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "VendorUpdateInput"
python_iterable = None
python_name = "input"
class update_vendors_each:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "VendorUpdateInput"
python_iterable = None
python_name = "input"
class sort(BaseCinnamonField):
api_name = "sort"
api_kind = "INPUT_OBJECT"
api_kind_name = "SortInput"
python_iterable = None
python_name = "sort"
class filter(BaseCinnamonField):
api_name = "filter"
api_kind = "SCALAR"
api_kind_name = "FilterInput"
python_iterable = None
python_name = "filter"
scalar = scalars.FilterInput
class show_deleted(BaseCinnamonField):
api_name = "showDeleted"
api_kind = "SCALAR"
api_kind_name = "Boolean"
python_iterable = None
python_name = "show_deleted"
scalar = scalars.Boolean
class delete_vendor:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class create_vendor_token:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "VendorTokenInput"
python_iterable = None
python_name = "input"
class login_vendor:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "LoginVendorInput"
python_iterable = None
python_name = "input"
class set_vendor_password:
class input(BaseCinnamonField):
api_name = "input"
api_kind = "INPUT_OBJECT"
api_kind_name = "SetVendorPasswordInput"
python_iterable = None
python_name = "input"
class delete_vendor_token:
class id(BaseCinnamonField):
api_name = "id"
api_kind = "SCALAR"
api_kind_name = "ObjectId"
python_iterable = None
python_name = "id"
scalar = scalars.ObjectId
class Cinnamon(BaseSyncCinnamon):
def campaign_template(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CampaignTemplateFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CampaignTemplate:
query_args = self._query_builder(
"query",
"campaignTemplate",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.campaign_template,
False,
)
return objects.CampaignTemplate(
self.api(headers=headers, token=token, **query_args)["data"][
"campaignTemplate"
],
)
def campaign_templates_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CampaignTemplateConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CampaignTemplateConnection]:
query_args = self._query_builder(
"query",
"campaignTemplates",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.campaign_templates_each,
True,
)
return self.iterate_edges(
objects.CampaignTemplateConnection,
query_args,
headers,
token,
"campaignTemplates",
)
def campaign_templates_with_current_gcpx_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CampaignTemplateConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CampaignTemplateConnection]:
query_args = self._query_builder(
"query",
"campaignTemplatesWithCurrentGCPX",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.campaign_templates_with_current_gcpx_each,
True,
)
return self.iterate_edges(
objects.CampaignTemplateConnection,
query_args,
headers,
token,
"campaignTemplatesWithCurrentGCPX",
)
def catalog(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Catalog:
query_args = self._query_builder(
"query", "catalog", fields, {"id": id,}, _ARGUMENT_LEGENDS.catalog, False,
)
return objects.Catalog(
self.api(headers=headers, token=token, **query_args)["data"]["catalog"],
)
def catalogs_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CatalogConnection]:
query_args = self._query_builder(
"query",
"catalogs",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.catalogs_each,
True,
)
return self.iterate_edges(
objects.CatalogConnection, query_args, headers, token, "catalogs",
)
def creative_font(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeFontFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeFont:
query_args = self._query_builder(
"query",
"creativeFont",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.creative_font,
False,
)
return objects.CreativeFont(
self.api(headers=headers, token=token, **query_args)["data"][
"creativeFont"
],
)
def creative_fonts_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeFontConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeFontConnection]:
query_args = self._query_builder(
"query",
"creativeFonts",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.creative_fonts_each,
True,
)
return self.iterate_edges(
objects.CreativeFontConnection, query_args, headers, token, "creativeFonts",
)
def creative_image(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeImageFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeImage:
query_args = self._query_builder(
"query",
"creativeImage",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.creative_image,
False,
)
return objects.CreativeImage(
self.api(headers=headers, token=token, **query_args)["data"][
"creativeImage"
],
)
def creative_images_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeImageConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeImageConnection]:
query_args = self._query_builder(
"query",
"creativeImages",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.creative_images_each,
True,
)
return self.iterate_edges(
objects.CreativeImageConnection,
query_args,
headers,
token,
"creativeImages",
)
def creative_layer(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeLayerFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeLayer:
query_args = self._query_builder(
"query",
"creativeLayer",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.creative_layer,
False,
)
return objects.CreativeLayer(
self.api(headers=headers, token=token, **query_args)["data"][
"creativeLayer"
],
)
def creative_layers_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeLayerConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeLayerConnection]:
query_args = self._query_builder(
"query",
"creativeLayers",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.creative_layers_each,
True,
)
return self.iterate_edges(
objects.CreativeLayerConnection,
query_args,
headers,
token,
"creativeLayers",
)
def creative_template(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeTemplateFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeTemplate:
query_args = self._query_builder(
"query",
"creativeTemplate",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.creative_template,
False,
)
return objects.CreativeTemplate(
self.api(headers=headers, token=token, **query_args)["data"][
"creativeTemplate"
],
)
def creative_templates_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeTemplateConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeTemplateConnection]:
query_args = self._query_builder(
"query",
"creativeTemplates",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.creative_templates_each,
True,
)
return self.iterate_edges(
objects.CreativeTemplateConnection,
query_args,
headers,
token,
"creativeTemplates",
)
def entitlement(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.EntitlementFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Entitlement:
query_args = self._query_builder(
"query",
"entitlement",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.entitlement,
False,
)
return objects.Entitlement(
self.api(headers=headers, token=token, **query_args)["data"]["entitlement"],
)
def marketing_ad(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingAdFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MarketingAd:
query_args = self._query_builder(
"query",
"marketingAd",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.marketing_ad,
False,
)
return objects.MarketingAd(
self.api(headers=headers, token=token, **query_args)["data"]["marketingAd"],
)
def marketing_ads_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingAdConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.MarketingAdConnection]:
query_args = self._query_builder(
"query",
"marketingAds",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.marketing_ads_each,
True,
)
return self.iterate_edges(
objects.MarketingAdConnection, query_args, headers, token, "marketingAds",
)
def marketing_campaign(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingCampaignFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MarketingCampaign:
query_args = self._query_builder(
"query",
"marketingCampaign",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.marketing_campaign,
False,
)
return objects.MarketingCampaign(
self.api(headers=headers, token=token, **query_args)["data"][
"marketingCampaign"
],
)
def marketing_campaigns_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingCampaignConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.MarketingCampaignConnection]:
query_args = self._query_builder(
"query",
"marketingCampaigns",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.marketing_campaigns_each,
True,
)
return self.iterate_edges(
objects.MarketingCampaignConnection,
query_args,
headers,
token,
"marketingCampaigns",
)
def marketplace(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketplaceFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Marketplace:
query_args = self._query_builder(
"query",
"marketplace",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.marketplace,
False,
)
return objects.Marketplace(
self.api(headers=headers, token=token, **query_args)["data"]["marketplace"],
)
def marketplaces_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketplaceConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.MarketplaceConnection]:
query_args = self._query_builder(
"query",
"marketplaces",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.marketplaces_each,
True,
)
return self.iterate_edges(
objects.MarketplaceConnection, query_args, headers, token, "marketplaces",
)
def media_channel(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MediaChannelFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MediaChannel:
query_args = self._query_builder(
"query",
"mediaChannel",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.media_channel,
False,
)
return objects.MediaChannel(
self.api(headers=headers, token=token, **query_args)["data"][
"mediaChannel"
],
)
def media_channels_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MediaChannelConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.MediaChannelConnection]:
query_args = self._query_builder(
"query",
"mediaChannels",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.media_channels_each,
True,
)
return self.iterate_edges(
objects.MediaChannelConnection, query_args, headers, token, "mediaChannels",
)
def notification(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.NotificationFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Notification:
query_args = self._query_builder(
"query",
"notification",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.notification,
False,
)
return objects.Notification(
self.api(headers=headers, token=token, **query_args)["data"][
"notification"
],
)
def organization(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.OrganizationFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Organization:
query_args = self._query_builder(
"query",
"organization",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.organization,
False,
)
return objects.Organization(
self.api(headers=headers, token=token, **query_args)["data"][
"organization"
],
)
def organizations_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.OrganizationConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.OrganizationConnection]:
query_args = self._query_builder(
"query",
"organizations",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.organizations_each,
True,
)
return self.iterate_edges(
objects.OrganizationConnection, query_args, headers, token, "organizations",
)
def product(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.ProductFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Product:
query_args = self._query_builder(
"query", "product", fields, {"id": id,}, _ARGUMENT_LEGENDS.product, False,
)
return objects.Product(
self.api(headers=headers, token=token, **query_args)["data"]["product"],
)
def products_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.ProductConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.ProductConnection]:
query_args = self._query_builder(
"query",
"products",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.products_each,
True,
)
return self.iterate_edges(
objects.ProductConnection, query_args, headers, token, "products",
)
def result(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.ResultFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Result:
query_args = self._query_builder(
"query", "result", fields, {"id": id,}, _ARGUMENT_LEGENDS.result, False,
)
return objects.Result(
self.api(headers=headers, token=token, **query_args)["data"]["result"],
)
def vendor(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Vendor:
query_args = self._query_builder(
"query", "vendor", fields, {"id": id,}, _ARGUMENT_LEGENDS.vendor, False,
)
return objects.Vendor(
self.api(headers=headers, token=token, **query_args)["data"]["vendor"],
)
def vendors_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.VendorConnection]:
query_args = self._query_builder(
"query",
"vendors",
fields,
{"sort": sort, "filter": filter, "show_deleted": show_deleted,},
_ARGUMENT_LEGENDS.vendors_each,
True,
)
return self.iterate_edges(
objects.VendorConnection, query_args, headers, token, "vendors",
)
def vendor_token(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorTokenFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.VendorToken:
query_args = self._query_builder(
"query",
"vendorToken",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.vendor_token,
False,
)
return objects.VendorToken(
self.api(headers=headers, token=token, **query_args)["data"]["vendorToken"],
)
def vendor_tokens_each(
self,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorTokenConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.VendorTokenConnection]:
query_args = self._query_builder(
"query",
"vendorTokens",
fields,
{"sort": sort, "filter": filter,},
_ARGUMENT_LEGENDS.vendor_tokens_each,
True,
)
return self.iterate_edges(
objects.VendorTokenConnection, query_args, headers, token, "vendorTokens",
)
def create_catalog(
self,
input: inputs.CatalogCreateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Catalog:
query_args = self._query_builder(
"mutation",
"createCatalog",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_catalog,
False,
)
return objects.Catalog(
self.api(headers=headers, token=token, **query_args)["data"][
"createCatalog"
],
)
def import_catalog(
self,
input: inputs.CatalogImportInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Catalog:
query_args = self._query_builder(
"mutation",
"importCatalog",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.import_catalog,
False,
)
return objects.Catalog(
self.api(headers=headers, token=token, **query_args)["data"][
"importCatalog"
],
)
def update_catalog(
self,
id: str,
input: inputs.CatalogUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Catalog:
query_args = self._query_builder(
"mutation",
"updateCatalog",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_catalog,
False,
)
return objects.Catalog(
self.api(headers=headers, token=token, **query_args)["data"][
"updateCatalog"
],
)
def update_catalogs_each(
self,
input: inputs.CatalogUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CatalogConnection]:
query_args = self._query_builder(
"mutation",
"updateCatalogs",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_catalogs_each,
True,
)
return self.iterate_edges(
objects.CatalogConnection, query_args, headers, token, "updateCatalogs",
)
def sync_catalog(
self,
id: str,
input: Union[
inputs.CatalogSyncInput, None, CinnamonUndefined
] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Catalog:
query_args = self._query_builder(
"mutation",
"syncCatalog",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.sync_catalog,
False,
)
return objects.Catalog(
self.api(headers=headers, token=token, **query_args)["data"]["syncCatalog"],
)
def sync_catalog_products(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CatalogFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Catalog:
query_args = self._query_builder(
"mutation",
"syncCatalogProducts",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.sync_catalog_products,
False,
)
return objects.Catalog(
self.api(headers=headers, token=token, **query_args)["data"][
"syncCatalogProducts"
],
)
def delete_catalog(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteCatalog",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_catalog,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteCatalog"
],
)
def create_creative_font(
self,
input: inputs.CreativeFontCreateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeFontFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeFont:
query_args = self._query_builder(
"mutation",
"createCreativeFont",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_creative_font,
False,
)
return objects.CreativeFont(
self.api(headers=headers, token=token, **query_args)["data"][
"createCreativeFont"
],
)
def update_creative_font(
self,
id: str,
input: inputs.CreativeFontUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeFontFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeFont:
query_args = self._query_builder(
"mutation",
"updateCreativeFont",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_creative_font,
False,
)
return objects.CreativeFont(
self.api(headers=headers, token=token, **query_args)["data"][
"updateCreativeFont"
],
)
def update_creative_fonts_each(
self,
input: inputs.CreativeFontUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeFontConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeFontConnection]:
query_args = self._query_builder(
"mutation",
"updateCreativeFonts",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_creative_fonts_each,
True,
)
return self.iterate_edges(
objects.CreativeFontConnection,
query_args,
headers,
token,
"updateCreativeFonts",
)
def delete_creative_font(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteCreativeFont",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_creative_font,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteCreativeFont"
],
)
def create_creative_image(
self,
input: inputs.CreativeImageCreateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeImageFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeImage:
query_args = self._query_builder(
"mutation",
"createCreativeImage",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_creative_image,
False,
)
return objects.CreativeImage(
self.api(headers=headers, token=token, **query_args)["data"][
"createCreativeImage"
],
)
def update_creative_image(
self,
id: str,
input: inputs.CreativeImageUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeImageFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeImage:
query_args = self._query_builder(
"mutation",
"updateCreativeImage",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_creative_image,
False,
)
return objects.CreativeImage(
self.api(headers=headers, token=token, **query_args)["data"][
"updateCreativeImage"
],
)
def update_creative_images_each(
self,
input: inputs.CreativeImageUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeImageConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeImageConnection]:
query_args = self._query_builder(
"mutation",
"updateCreativeImages",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_creative_images_each,
True,
)
return self.iterate_edges(
objects.CreativeImageConnection,
query_args,
headers,
token,
"updateCreativeImages",
)
def delete_creative_image(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteCreativeImage",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_creative_image,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteCreativeImage"
],
)
def create_creative_layer(
self,
input: inputs.CreativeLayerCreateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeLayerFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeLayer:
query_args = self._query_builder(
"mutation",
"createCreativeLayer",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_creative_layer,
False,
)
return objects.CreativeLayer(
self.api(headers=headers, token=token, **query_args)["data"][
"createCreativeLayer"
],
)
def update_creative_layer(
self,
id: str,
input: inputs.CreativeLayerUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeLayerFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeLayer:
query_args = self._query_builder(
"mutation",
"updateCreativeLayer",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_creative_layer,
False,
)
return objects.CreativeLayer(
self.api(headers=headers, token=token, **query_args)["data"][
"updateCreativeLayer"
],
)
def update_creative_layers_each(
self,
input: inputs.CreativeLayerUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeLayerConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeLayerConnection]:
query_args = self._query_builder(
"mutation",
"updateCreativeLayers",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_creative_layers_each,
True,
)
return self.iterate_edges(
objects.CreativeLayerConnection,
query_args,
headers,
token,
"updateCreativeLayers",
)
def delete_creative_layer(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteCreativeLayer",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_creative_layer,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteCreativeLayer"
],
)
def create_creative_template(
self,
input: inputs.CreativeTemplateCreateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeTemplateFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeTemplate:
query_args = self._query_builder(
"mutation",
"createCreativeTemplate",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_creative_template,
False,
)
return objects.CreativeTemplate(
self.api(headers=headers, token=token, **query_args)["data"][
"createCreativeTemplate"
],
)
def update_creative_template(
self,
id: str,
input: inputs.CreativeTemplateUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeTemplateFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.CreativeTemplate:
query_args = self._query_builder(
"mutation",
"updateCreativeTemplate",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_creative_template,
False,
)
return objects.CreativeTemplate(
self.api(headers=headers, token=token, **query_args)["data"][
"updateCreativeTemplate"
],
)
def update_creative_templates_each(
self,
input: inputs.CreativeTemplateUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.CreativeTemplateConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.CreativeTemplateConnection]:
query_args = self._query_builder(
"mutation",
"updateCreativeTemplates",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_creative_templates_each,
True,
)
return self.iterate_edges(
objects.CreativeTemplateConnection,
query_args,
headers,
token,
"updateCreativeTemplates",
)
def delete_creative_template(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteCreativeTemplate",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_creative_template,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteCreativeTemplate"
],
)
def create_entitlement(
self,
input: inputs.EntitlementInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.EntitlementFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Entitlement:
query_args = self._query_builder(
"mutation",
"createEntitlement",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_entitlement,
False,
)
return objects.Entitlement(
self.api(headers=headers, token=token, **query_args)["data"][
"createEntitlement"
],
)
def update_entitlement(
self,
id: str,
input: inputs.EntitlementUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.EntitlementFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Entitlement:
query_args = self._query_builder(
"mutation",
"updateEntitlement",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_entitlement,
False,
)
return objects.Entitlement(
self.api(headers=headers, token=token, **query_args)["data"][
"updateEntitlement"
],
)
def delete_entitlement(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteEntitlement",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_entitlement,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteEntitlement"
],
)
def create_marketing_campaign(
self,
input: inputs.MarketingCampaignInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingCampaignFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MarketingCampaign:
query_args = self._query_builder(
"mutation",
"createMarketingCampaign",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_marketing_campaign,
False,
)
return objects.MarketingCampaign(
self.api(headers=headers, token=token, **query_args)["data"][
"createMarketingCampaign"
],
)
def update_marketing_campaign(
self,
id: str,
input: inputs.MarketingCampaignUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingCampaignFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MarketingCampaign:
query_args = self._query_builder(
"mutation",
"updateMarketingCampaign",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_marketing_campaign,
False,
)
return objects.MarketingCampaign(
self.api(headers=headers, token=token, **query_args)["data"][
"updateMarketingCampaign"
],
)
def update_marketing_campaigns_each(
self,
input: inputs.MarketingCampaignUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingCampaignConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.MarketingCampaignConnection]:
query_args = self._query_builder(
"mutation",
"updateMarketingCampaigns",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_marketing_campaigns_each,
True,
)
return self.iterate_edges(
objects.MarketingCampaignConnection,
query_args,
headers,
token,
"updateMarketingCampaigns",
)
def sync_marketing_campaign(
self,
id: str,
input: Union[
inputs.MarketingCampaignSyncInput, None, CinnamonUndefined
] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingCampaignFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MarketingCampaign:
query_args = self._query_builder(
"mutation",
"syncMarketingCampaign",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.sync_marketing_campaign,
False,
)
return objects.MarketingCampaign(
self.api(headers=headers, token=token, **query_args)["data"][
"syncMarketingCampaign"
],
)
def approve_marketing_campaign(
self,
id: str,
last_change_date: datetime,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketingCampaignFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MarketingCampaign:
query_args = self._query_builder(
"mutation",
"approveMarketingCampaign",
fields,
{"id": id, "last_change_date": last_change_date,},
_ARGUMENT_LEGENDS.approve_marketing_campaign,
False,
)
return objects.MarketingCampaign(
self.api(headers=headers, token=token, **query_args)["data"][
"approveMarketingCampaign"
],
)
def delete_marketing_campaign(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteMarketingCampaign",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_marketing_campaign,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteMarketingCampaign"
],
)
def create_marketplace(
self,
input: inputs.MarketplaceInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketplaceFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Marketplace:
query_args = self._query_builder(
"mutation",
"createMarketplace",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_marketplace,
False,
)
return objects.Marketplace(
self.api(headers=headers, token=token, **query_args)["data"][
"createMarketplace"
],
)
def update_marketplace(
self,
id: str,
input: inputs.MarketplaceUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketplaceFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Marketplace:
query_args = self._query_builder(
"mutation",
"updateMarketplace",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_marketplace,
False,
)
return objects.Marketplace(
self.api(headers=headers, token=token, **query_args)["data"][
"updateMarketplace"
],
)
def update_marketplaces_each(
self,
input: inputs.MarketplaceUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MarketplaceConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.MarketplaceConnection]:
query_args = self._query_builder(
"mutation",
"updateMarketplaces",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_marketplaces_each,
True,
)
return self.iterate_edges(
objects.MarketplaceConnection,
query_args,
headers,
token,
"updateMarketplaces",
)
def delete_marketplace(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteMarketplace",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_marketplace,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteMarketplace"
],
)
def create_media_channel(
self,
input: inputs.MediaChannelCreateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MediaChannelFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MediaChannel:
query_args = self._query_builder(
"mutation",
"createMediaChannel",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_media_channel,
False,
)
return objects.MediaChannel(
self.api(headers=headers, token=token, **query_args)["data"][
"createMediaChannel"
],
)
def import_media_channel(
self,
input: inputs.MediaChannelImportInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MediaChannelFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MediaChannel:
query_args = self._query_builder(
"mutation",
"importMediaChannel",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.import_media_channel,
False,
)
return objects.MediaChannel(
self.api(headers=headers, token=token, **query_args)["data"][
"importMediaChannel"
],
)
def update_media_channel(
self,
id: str,
input: inputs.MediaChannelUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MediaChannelFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.MediaChannel:
query_args = self._query_builder(
"mutation",
"updateMediaChannel",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_media_channel,
False,
)
return objects.MediaChannel(
self.api(headers=headers, token=token, **query_args)["data"][
"updateMediaChannel"
],
)
def update_media_channels_each(
self,
input: inputs.MediaChannelUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.MediaChannelConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.MediaChannelConnection]:
query_args = self._query_builder(
"mutation",
"updateMediaChannels",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_media_channels_each,
True,
)
return self.iterate_edges(
objects.MediaChannelConnection,
query_args,
headers,
token,
"updateMediaChannels",
)
def delete_media_channel(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteMediaChannel",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_media_channel,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteMediaChannel"
],
)
def update_notification(
self,
id: str,
input: inputs.NotificationUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.NotificationFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Notification:
query_args = self._query_builder(
"mutation",
"updateNotification",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_notification,
False,
)
return objects.Notification(
self.api(headers=headers, token=token, **query_args)["data"][
"updateNotification"
],
)
def create_organization(
self,
input: inputs.OrganizationInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.OrganizationFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Organization:
query_args = self._query_builder(
"mutation",
"createOrganization",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_organization,
False,
)
return objects.Organization(
self.api(headers=headers, token=token, **query_args)["data"][
"createOrganization"
],
)
def update_organization(
self,
id: str,
input: inputs.OrganizationUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.OrganizationFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Organization:
query_args = self._query_builder(
"mutation",
"updateOrganization",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_organization,
False,
)
return objects.Organization(
self.api(headers=headers, token=token, **query_args)["data"][
"updateOrganization"
],
)
def update_organizations_each(
self,
input: inputs.OrganizationUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.OrganizationConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.OrganizationConnection]:
query_args = self._query_builder(
"mutation",
"updateOrganizations",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_organizations_each,
True,
)
return self.iterate_edges(
objects.OrganizationConnection,
query_args,
headers,
token,
"updateOrganizations",
)
def delete_organization(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteOrganization",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_organization,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteOrganization"
],
)
def create_product(
self,
input: inputs.ProductInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.ProductFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Product:
query_args = self._query_builder(
"mutation",
"createProduct",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_product,
False,
)
return objects.Product(
self.api(headers=headers, token=token, **query_args)["data"][
"createProduct"
],
)
def update_product(
self,
id: str,
input: inputs.ProductUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.ProductFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Product:
query_args = self._query_builder(
"mutation",
"updateProduct",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_product,
False,
)
return objects.Product(
self.api(headers=headers, token=token, **query_args)["data"][
"updateProduct"
],
)
def update_products_each(
self,
input: inputs.ProductUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.ProductConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.ProductConnection]:
query_args = self._query_builder(
"mutation",
"updateProducts",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_products_each,
True,
)
return self.iterate_edges(
objects.ProductConnection, query_args, headers, token, "updateProducts",
)
def delete_product(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteProduct",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_product,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteProduct"
],
)
def request_reset_password(
self,
input: inputs.RequestResetPasswordInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.RequestResultFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.RequestResult:
query_args = self._query_builder(
"mutation",
"requestResetPassword",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.request_reset_password,
False,
)
return objects.RequestResult(
self.api(headers=headers, token=token, **query_args)["data"][
"requestResetPassword"
],
)
def reset_password(
self,
input: inputs.ResetPasswordInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.UserFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.User:
query_args = self._query_builder(
"mutation",
"resetPassword",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.reset_password,
False,
)
return objects.User(
self.api(headers=headers, token=token, **query_args)["data"][
"resetPassword"
],
)
def update_user(
self,
input: inputs.UserUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.UserFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.User:
query_args = self._query_builder(
"mutation",
"updateUser",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.update_user,
False,
)
return objects.User(
self.api(headers=headers, token=token, **query_args)["data"]["updateUser"],
)
def create_vendor(
self,
input: inputs.VendorInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Vendor:
query_args = self._query_builder(
"mutation",
"createVendor",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_vendor,
False,
)
return objects.Vendor(
self.api(headers=headers, token=token, **query_args)["data"][
"createVendor"
],
)
def update_vendor(
self,
id: str,
input: inputs.VendorUpdateInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Vendor:
query_args = self._query_builder(
"mutation",
"updateVendor",
fields,
{"id": id, "input": input,},
_ARGUMENT_LEGENDS.update_vendor,
False,
)
return objects.Vendor(
self.api(headers=headers, token=token, **query_args)["data"][
"updateVendor"
],
)
def update_vendors_each(
self,
input: inputs.VendorUpdateInput,
sort: Union[inputs.SortInput, None, CinnamonUndefined] = CinnamonUndefined,
filter: Union[dict, None, CinnamonUndefined] = CinnamonUndefined,
show_deleted: Union[bool, None, CinnamonUndefined] = CinnamonUndefined,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorConnectionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> Iterable[objects.VendorConnection]:
query_args = self._query_builder(
"mutation",
"updateVendors",
fields,
{
"input": input,
"sort": sort,
"filter": filter,
"show_deleted": show_deleted,
},
_ARGUMENT_LEGENDS.update_vendors_each,
True,
)
return self.iterate_edges(
objects.VendorConnection, query_args, headers, token, "updateVendors",
)
def delete_vendor(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteVendor",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_vendor,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteVendor"
],
)
def create_vendor_token(
self,
input: inputs.VendorTokenInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorTokenFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.VendorToken:
query_args = self._query_builder(
"mutation",
"createVendorToken",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.create_vendor_token,
False,
)
return objects.VendorToken(
self.api(headers=headers, token=token, **query_args)["data"][
"createVendorToken"
],
)
def login_vendor(
self,
input: inputs.LoginVendorInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorTokenFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.VendorToken:
query_args = self._query_builder(
"mutation",
"loginVendor",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.login_vendor,
False,
)
return objects.VendorToken(
self.api(headers=headers, token=token, **query_args)["data"]["loginVendor"],
)
def set_vendor_password(
self,
input: inputs.SetVendorPasswordInput,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.VendorTokenFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.VendorToken:
query_args = self._query_builder(
"mutation",
"setVendorPassword",
fields,
{"input": input,},
_ARGUMENT_LEGENDS.set_vendor_password,
False,
)
return objects.VendorToken(
self.api(headers=headers, token=token, **query_args)["data"][
"setVendorPassword"
],
)
def delete_vendor_token(
self,
id: str,
fields: List[
Union[QueryField, QueryFieldSet, str]
] = fields_module.DeletionFields._sdk_default_fields,
headers: Union[dict, None] = None,
token: Union[str, None] = None,
) -> objects.Deletion:
query_args = self._query_builder(
"mutation",
"deleteVendorToken",
fields,
{"id": id,},
_ARGUMENT_LEGENDS.delete_vendor_token,
False,
)
return objects.Deletion(
self.api(headers=headers, token=token, **query_args)["data"][
"deleteVendorToken"
],
)
__all__ = ["Cinnamon"]
| 32.899671
| 88
| 0.5584
| 10,292
| 120,018
| 6.257093
| 0.027206
| 0.037175
| 0.063729
| 0.063729
| 0.883987
| 0.868039
| 0.846859
| 0.83574
| 0.818628
| 0.807975
| 0
| 0
| 0.352772
| 120,018
| 3,647
| 89
| 32.908692
| 0.829027
| 0
| 0
| 0.783072
| 0
| 0
| 0.083521
| 0.009915
| 0
| 0
| 0
| 0
| 0
| 1
| 0.027523
| false
| 0.006215
| 0.006511
| 0
| 0.140278
| 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
|
f58c146c178d613e511e88dbe5c7af0540c993a0
| 31,387
|
py
|
Python
|
tests/onegov/wtfs/test_security.py
|
politbuero-kampagnen/onegov-cloud
|
20148bf321b71f617b64376fe7249b2b9b9c4aa9
|
[
"MIT"
] | null | null | null |
tests/onegov/wtfs/test_security.py
|
politbuero-kampagnen/onegov-cloud
|
20148bf321b71f617b64376fe7249b2b9b9c4aa9
|
[
"MIT"
] | null | null | null |
tests/onegov/wtfs/test_security.py
|
politbuero-kampagnen/onegov-cloud
|
20148bf321b71f617b64376fe7249b2b9b9c4aa9
|
[
"MIT"
] | null | null | null |
import sedate
from datetime import date, datetime
from freezegun import freeze_time
from morepath import Identity
from onegov.core.security import Public
from onegov.user import User
from onegov.user import UserCollection
from onegov.user import UserGroup
from onegov.user import UserGroupCollection
from onegov.wtfs.collections import MunicipalityCollection
from onegov.wtfs.collections import PaymentTypeCollection
from onegov.wtfs.collections import ScanJobCollection
from onegov.wtfs.models import DailyList
from onegov.wtfs.models import DailyListBoxes
from onegov.wtfs.models import DailyListBoxesAndForms
from onegov.wtfs.models import Invoice
from onegov.wtfs.models import Municipality
from onegov.wtfs.models import Notification
from onegov.wtfs.models import PaymentType
from onegov.wtfs.models import PickupDate
from onegov.wtfs.models import Report
from onegov.wtfs.models import ReportBoxes
from onegov.wtfs.models import ReportBoxesAndForms
from onegov.wtfs.models import ReportFormsByMunicipality
from onegov.wtfs.models import ScanJob
from onegov.wtfs.models import UserManual
from onegov.wtfs.security import AddModel
from onegov.wtfs.security import AddModelUnrestricted
from onegov.wtfs.security import DeleteModel
from onegov.wtfs.security import EditModel
from onegov.wtfs.security import EditModelUnrestricted
from onegov.wtfs.security import ViewModel
from onegov.wtfs.security import ViewModelUnrestricted
from uuid import uuid4
def permits_by_app(app, user, model, permission):
return app._permits(
Identity(
userid=user.username,
groupid=user.group_id.hex if user.group_id else '',
role=user.role,
application_id=app.application_id
),
model,
permission
)
def test_permissions(wtfs_app, wtfs_password):
session = wtfs_app.session()
def permits(user, model, permission):
return permits_by_app(wtfs_app, user, model, permission)
# Remove existing users and group
session.query(User).filter_by(realname='Editor').one().group_id = None
session.query(User).filter_by(realname='Member').one().group_id = None
session.query(Municipality).delete()
# Add new
municipality_a_id = uuid4()
session.add(Municipality(
id=municipality_a_id,
name='Municipality A',
bfs_number=10,
))
session.add(PickupDate(
date=date.today(),
municipality_id=municipality_a_id,
))
session.add(ScanJob(
type='normal',
municipality_id=municipality_a_id,
delivery_number=1,
dispatch_date=date(2019, 1, 1))
)
session.add(User(
realname='Admin A',
username='admin-a@example.org',
password_hash=wtfs_password,
role='admin',
group_id=municipality_a_id
))
session.add(User(
realname='Editor A',
username='editor-a@example.org',
password_hash=wtfs_password,
role='editor',
group_id=municipality_a_id
))
session.add(User(
realname='Member A',
username='member-a@example.org',
password_hash=wtfs_password,
role='member',
group_id=municipality_a_id
))
municipality_b_id = uuid4()
session.add(Municipality(
id=municipality_b_id,
name='Municipality B',
bfs_number=20,
))
session.add(User(
realname='Admin B',
username='admin-b@example.org',
password_hash=wtfs_password,
role='admin',
group_id=municipality_b_id
))
session.add(User(
realname='Editor B',
username='editor-b@example.org',
password_hash=wtfs_password,
role='editor',
group_id=municipality_b_id
))
session.add(User(
realname='Member B',
username='member-b@example.org',
password_hash=wtfs_password,
role='member',
group_id=municipality_b_id
))
query = session.query
admin = query(User).filter_by(realname='Admin').one()
admin_a = query(User).filter_by(realname='Admin A').one()
admin_b = query(User).filter_by(realname='Admin B').one()
editor = query(User).filter_by(realname='Editor').one()
editor_a = query(User).filter_by(realname='Editor A').one()
editor_b = query(User).filter_by(realname='Editor B').one()
member = query(User).filter_by(realname='Member').one()
member_a = query(User).filter_by(realname='Member A').one()
member_b = query(User).filter_by(realname='Member B').one()
group = UserGroup()
group_a = query(UserGroup).filter_by(name='Municipality A').one()
group_b = query(UserGroup).filter_by(name='Municipality B').one()
municipality = Municipality()
municipality_a = query(Municipality).filter_by(name='Municipality A').one()
municipality_b = query(Municipality).filter_by(name='Municipality B').one()
scan_job = query(ScanJob).one()
# General
model = object()
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# UserGroupCollection / MunicipalityCollection
# MunicipalityCollection
for model in (
MunicipalityCollection(session),
UserGroupCollection(session)
):
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# UserGroup / Municipality
for user in (admin, admin_a, admin_b):
for model in (group_a, group_b, municipality_a, municipality_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for model in (group, municipality):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
for model in (
group_a, group_b, group,
municipality_a, municipality_b, municipality
):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# UserCollection
model = UserCollection(session)
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# User
for user in (admin, admin_a, admin_b):
for model in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
if user == model:
assert not permits(user, model, DeleteModel)
else:
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for model in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, ):
for model in (admin, admin_a, admin_b, editor_a, editor_b,
member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (editor, ):
for model in (editor, ):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (editor_a, ):
for model in (admin, admin_a, admin_b, editor, editor_b,
member, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for model in (editor_a, ):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for model in (member_a,):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (editor_b, ):
for model in (admin, admin_a, admin_b, editor, editor_a,
member, member_a):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for model in (editor_b, ):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for model in (member_b,):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (member, member_a, member_b):
for model in (admin, admin_a, admin_b, editor, editor_a, editor_b,
member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# ScanJobCollection
model = ScanJobCollection(session)
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor_a, editor_b, member_a, member_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (editor, member):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# ScanJob
model = scan_job
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_b, member, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (editor_a, member_a):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# DailyList
for model in (DailyList(), DailyListBoxes(session)):
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for user in (member,):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
for model in (DailyListBoxesAndForms(session), ):
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# Report
for model in (
Report(session),
ReportBoxes(session),
ReportBoxesAndForms(session),
ReportFormsByMunicipality(session)
):
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# Notification
model = Notification()
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# Invoice
model = Invoice(session)
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# PaymentType
model = PaymentType()
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# PaymentTypeCollection
model = PaymentTypeCollection(session)
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert not permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
# UserManual
model = UserManual(wtfs_app)
for user in (admin, admin_a, admin_b):
assert permits(user, model, Public)
assert permits(user, model, AddModel)
assert permits(user, model, AddModelUnrestricted)
assert permits(user, model, EditModel)
assert permits(user, model, EditModelUnrestricted)
assert permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert permits(user, model, ViewModelUnrestricted)
for user in (editor, editor_a, editor_b, member, member_a, member_b):
assert permits(user, model, Public)
assert not permits(user, model, AddModel)
assert not permits(user, model, AddModelUnrestricted)
assert not permits(user, model, EditModel)
assert not permits(user, model, EditModelUnrestricted)
assert not permits(user, model, DeleteModel)
assert permits(user, model, ViewModel)
assert not permits(user, model, ViewModelUnrestricted)
def test_editor_delete_day_before(wtfs_app, wtfs_password):
session = wtfs_app.session()
def permits(user, model, permission):
return permits_by_app(wtfs_app, user, model, permission)
# Remove existing users and group
session.query(User).delete()
session.query(Municipality).delete()
# Add two towns
foo = uuid4()
session.add(Municipality(
id=foo,
name='Foo',
bfs_number=1,
))
session.add(PickupDate(
date=date.today(),
municipality_id=foo,
))
bar = uuid4()
session.add(Municipality(
id=bar,
name='Bar',
bfs_number=1,
))
session.add(PickupDate(
date=date.today(),
municipality_id=bar,
))
# add a single scan job to foo
session.add(ScanJob(
type='normal',
municipality_id=foo,
delivery_number=1,
dispatch_date=date(2019, 1, 1))
)
# an admin with access to all of it
session.add(User(
username='admin@example.org',
password_hash=wtfs_password,
role='admin'
))
# an editor with access to foo
session.add(User(
username='foo-editor@example.org',
password_hash=wtfs_password,
role='editor',
group_id=foo
))
# a member with access to foo
session.add(User(
username='foo-member@example.org',
password_hash=wtfs_password,
role='member',
group_id=foo
))
# an editor with access to bar
session.add(User(
username='bar-editor@example.org',
password_hash=wtfs_password,
role='editor',
group_id=bar
))
# a member with access to bar
session.add(User(
username='bar-member@example.org',
password_hash=wtfs_password,
role='member',
group_id=bar
))
session.flush()
def fetch_user(username):
return session.query(User).filter_by(username=username).one()
job = session.query(ScanJob).one()
admin = fetch_user('admin@example.org')
foo_editor = fetch_user('foo-editor@example.org')
foo_member = fetch_user('foo-member@example.org')
bar_editor = fetch_user('bar-editor@example.org')
bar_member = fetch_user('bar-member@example.org')
dt = sedate.replace_timezone(datetime(2018, 12, 31), 'Europe/Zurich')
with freeze_time(dt.replace(hour=17, minute=0)):
assert permits(admin, job, DeleteModel)
assert permits(foo_editor, job, DeleteModel)
assert not permits(foo_member, job, DeleteModel)
assert not permits(bar_editor, job, DeleteModel)
assert not permits(bar_member, job, DeleteModel)
with freeze_time(dt.replace(hour=17, minute=1)):
assert permits(admin, job, DeleteModel)
assert not permits(foo_editor, job, DeleteModel)
assert not permits(foo_member, job, DeleteModel)
assert not permits(bar_editor, job, DeleteModel)
assert not permits(bar_member, job, DeleteModel)
| 43.472299
| 79
| 0.662249
| 3,476
| 31,387
| 5.901036
| 0.039125
| 0.157518
| 0.276911
| 0.196275
| 0.887627
| 0.843896
| 0.815181
| 0.799629
| 0.789879
| 0.772767
| 0
| 0.001665
| 0.253513
| 31,387
| 721
| 80
| 43.532594
| 0.873794
| 0.015675
| 0
| 0.752688
| 0
| 0
| 0.020312
| 0.005702
| 0
| 0
| 0
| 0
| 0.557604
| 1
| 0.009217
| false
| 0.019969
| 0.052227
| 0.006144
| 0.067588
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
f59bd6c21847291e8db907494b8784e417cd7a4a
| 35
|
py
|
Python
|
tests/test_package.py
|
s274001/PINA
|
beb33f0da20581338c46f0c525775904b35a1130
|
[
"MIT"
] | 4
|
2022-02-16T14:52:55.000Z
|
2022-03-17T13:31:42.000Z
|
tests/test_package.py
|
s274001/PINA
|
beb33f0da20581338c46f0c525775904b35a1130
|
[
"MIT"
] | 3
|
2022-02-17T08:57:42.000Z
|
2022-03-28T08:41:53.000Z
|
tests/test_package.py
|
s274001/PINA
|
beb33f0da20581338c46f0c525775904b35a1130
|
[
"MIT"
] | 7
|
2022-02-13T14:35:00.000Z
|
2022-03-28T08:51:11.000Z
|
def test_import():
import pina
| 11.666667
| 18
| 0.685714
| 5
| 35
| 4.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.228571
| 35
| 2
| 19
| 17.5
| 0.851852
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 1
| 0
| 1.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
192085b06f7f3333e10aeb584d46371bc1f2cf3b
| 120
|
py
|
Python
|
prova1/exec4.py
|
josecostamartins/pythonreges
|
0e5a0e5a5a348a3c6217f0700b0866231bca5050
|
[
"MIT"
] | null | null | null |
prova1/exec4.py
|
josecostamartins/pythonreges
|
0e5a0e5a5a348a3c6217f0700b0866231bca5050
|
[
"MIT"
] | null | null | null |
prova1/exec4.py
|
josecostamartins/pythonreges
|
0e5a0e5a5a348a3c6217f0700b0866231bca5050
|
[
"MIT"
] | 2
|
2021-05-18T02:44:49.000Z
|
2021-12-06T17:41:55.000Z
|
print 1+2*5+(7*1)
print 0 * 1 + 1 + 1 + 1 + 1 + 1 + 1 - 1 + 1 + 1
print 2**2+1*3+(7+2)
print "Resposta: alternativa C"
| 20
| 47
| 0.516667
| 29
| 120
| 2.137931
| 0.344828
| 0.290323
| 0.387097
| 0.451613
| 0.16129
| 0.16129
| 0.16129
| 0.16129
| 0.16129
| 0
| 0
| 0.247191
| 0.258333
| 120
| 5
| 48
| 24
| 0.449438
| 0
| 0
| 0
| 0
| 0
| 0.191667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
1934228277a841351f11e92148774c02f096b65d
| 4,352
|
py
|
Python
|
code/zhihucrawl/crawl/zhihui_scrapy_single_QA.py
|
Rr-shan/COVID-19_Ailuo_princess
|
1f70d426d93f4aac3a73166b17cbf44359065639
|
[
"MIT"
] | 2
|
2020-06-06T00:50:54.000Z
|
2020-06-08T05:32:16.000Z
|
code/zhihucrawl/crawl/zhihui_scrapy_single_QA.py
|
Rr-shan/COVID-19_Ailuo_princess
|
1f70d426d93f4aac3a73166b17cbf44359065639
|
[
"MIT"
] | null | null | null |
code/zhihucrawl/crawl/zhihui_scrapy_single_QA.py
|
Rr-shan/COVID-19_Ailuo_princess
|
1f70d426d93f4aac3a73166b17cbf44359065639
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Time : 2020/5/19 17:21
# @Author : Sanzzi
import requests
from bs4 import BeautifulSoup
import json
import re
path = '../raw_data/'
def draw_ans(string):
RE = re.compile('<[^>]*>')
temp_list = RE.sub("", string).replace("\n", "").replace(" ","")
return temp_list
def Crawl_answer():
headers = {
'accept-language': 'zh-CN,zh;q=0.9',
'origin': 'https://www.zhihu.com',
'referer': 'https://www.zhihu.com/question/388922853', # 修改
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36'
}
begin_url = 'https://www.zhihu.com/api/v4/questions/388922853/answers?include=data%5B%2A%5D.is_normal%2Cadmin_closed_comment%2Creward_info%2Cis_collapsed%2Cannotation_action%2Cannotation_detail%2Ccollapse_reason%2Cis_sticky%2Ccollapsed_by%2Csuggest_edit%2Ccomment_count%2Ccan_comment%2Ccontent%2Ceditable_content%2Cvoteup_count%2Creshipment_settings%2Ccomment_permission%2Ccreated_time%2Cupdated_time%2Creview_info%2Crelevant_info%2Cquestion%2Cexcerpt%2Crelationship.is_authorized%2Cis_author%2Cvoting%2Cis_thanked%2Cis_nothelp%2Cis_labeled%2Cis_recognized%2Cpaid_info%2Cpaid_info_content%3Bdata%5B%2A%5D.mark_infos%5B%2A%5D.url%3Bdata%5B%2A%5D.author.follower_count%2Cbadge%5B%2A%5D.topics&limit=3&offset=0&platform=desktop&sort_by=default' #修改
next_url = [begin_url]
answers = []
for url in next_url:
html = requests.get(url, headers=headers)
html.encoding = html.apparent_encoding
soup = BeautifulSoup(html.text, "lxml")
content = str(soup.p).split("<p>")[1].split("</p>")[0]
c = json.loads(content)
answers += [draw_ans(item["content"]) for item in c["data"] if draw_ans(item["content"]) != ""]
next_url.append(c["paging"]["next"])
if c["paging"]["is_end"]:
break
i = 0
with open(path + '5月10日全球共确诊新冠肺炎患者400万例_死亡20万例_目前全球情况如何.csv', 'w', encoding='utf-8') as f:
for elem in range(len(answers)):
f.write(answers[elem] + '\n')
print(str(i)+':'+ answers[elem]) # check the items
i += 1
print(len(answers)) # check the answers number
def Crawl_answer_time():
headers = {
'accept-language': 'zh-CN,zh;q=0.9',
'origin': 'https://www.zhihu.com',
'referer': 'https://www.zhihu.com/question/388922853', # 修改
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36'
}
begin_url = 'https://www.zhihu.com/api/v4/questions/388922853/answers?include=data%5B%2A%5D.is_normal%2Cadmin_closed_comment%2Creward_info%2Cis_collapsed%2Cannotation_action%2Cannotation_detail%2Ccollapse_reason%2Cis_sticky%2Ccollapsed_by%2Csuggest_edit%2Ccomment_count%2Ccan_comment%2Ccontent%2Ceditable_content%2Cvoteup_count%2Creshipment_settings%2Ccomment_permission%2Ccreated_time%2Cupdated_time%2Creview_info%2Crelevant_info%2Cquestion%2Cexcerpt%2Crelationship.is_authorized%2Cis_author%2Cvoting%2Cis_thanked%2Cis_nothelp%2Cis_labeled%2Cis_recognized%2Cpaid_info%2Cpaid_info_content%3Bdata%5B%2A%5D.mark_infos%5B%2A%5D.url%3Bdata%5B%2A%5D.author.follower_count%2Cbadge%5B%2A%5D.topics&limit=3&offset=0&platform=desktop&sort_by=default' # 修改
next_url = [begin_url]
answers = []
data = []
for url in next_url:
html = requests.get(url, headers=headers)
html.encoding = html.apparent_encoding
soup = BeautifulSoup(html.text, "lxml")
content = str(soup.p).split("<p>")[1].split("</p>")[0]
c = json.loads(content)
data += [item["ContentItem-time"] for item in c["data"] if item["ContentItem-time"] != ""]
answers += [draw_ans(item["content"]) for item in c["data"] if draw_ans(item["content"]) != ""]
next_url.append(c["paging"]["next"])
if c["paging"]["is_end"]:
break
i = 0
with open(path + '5月10日全球共确诊新冠肺炎患者400万例_死亡20万例_目前全球情况如何.csv', 'w', encoding='utf-8') as f:
for elem in range(len(answers)):
f.write(str(data[elem]) + ',' + answers[elem] + '\n')
f.write(answers[elem] + '\n')
print(str(i) + ':' + answers[elem]) # check the items
i += 1
print(len(answers)) # check the answers number
| 50.604651
| 751
| 0.678079
| 607
| 4,352
| 4.705107
| 0.293245
| 0.014006
| 0.021008
| 0.033613
| 0.901261
| 0.901261
| 0.895658
| 0.895658
| 0.895658
| 0.895658
| 0
| 0.066227
| 0.163833
| 4,352
| 86
| 752
| 50.604651
| 0.718604
| 0.036535
| 0
| 0.757576
| 0
| 0.060606
| 0.519608
| 0.019608
| 0
| 0
| 0
| 0
| 0
| 1
| 0.045455
| false
| 0
| 0.060606
| 0
| 0.121212
| 0.060606
| 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
|
194d480f6c446ed8844c1b2499dcd270529ea699
| 6,576
|
py
|
Python
|
pydip/test/turn/test_circular_moves.py
|
otech-nl/pydip
|
fbe085ccc0473b145d2fe424460163ad90c8ea57
|
[
"MIT"
] | 13
|
2018-04-04T02:48:59.000Z
|
2020-09-13T09:38:24.000Z
|
pydip/test/turn/test_circular_moves.py
|
otech-nl/pydip
|
fbe085ccc0473b145d2fe424460163ad90c8ea57
|
[
"MIT"
] | 6
|
2018-06-24T19:52:37.000Z
|
2021-02-11T20:13:58.000Z
|
pydip/test/turn/test_circular_moves.py
|
otech-nl/pydip
|
fbe085ccc0473b145d2fe424460163ad90c8ea57
|
[
"MIT"
] | 5
|
2018-02-28T21:03:46.000Z
|
2022-03-25T15:58:27.000Z
|
from pydip.player.unit import Unit, UnitTypes
from pydip.test.command_helper import CommandType, CommandHelper
from pydip.test.player_helper import PlayerHelper
from pydip.test.turn_helper import TurnHelper
def test_three_country_rotation():
helper = TurnHelper([
PlayerHelper('Germany', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Galicia', 'Bohemia'),
]),
PlayerHelper('Austria', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Bohemia', 'Vienna'),
]),
PlayerHelper('Turkey', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Vienna', 'Galicia'),
]),
])
result = helper.resolve()
assert result == {
'Germany': {
Unit(UnitTypes.TROOP, 'Bohemia'): None,
},
'Austria': {
Unit(UnitTypes.TROOP, 'Vienna'): None,
},
'Turkey': {
Unit(UnitTypes.TROOP, 'Galicia'): None,
},
}
def test_three_country_rotation_with_one_move_supported():
helper = TurnHelper([
PlayerHelper('Germany', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Galicia', 'Bohemia'),
CommandHelper(CommandType.SUPPORT, UnitTypes.TROOP, 'Silesia', 'Galicia', 'Bohemia'),
]),
PlayerHelper('Austria', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Bohemia', 'Vienna'),
]),
PlayerHelper('Turkey', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Vienna', 'Galicia'),
]),
])
result = helper.resolve()
assert result == {
'Germany': {
Unit(UnitTypes.TROOP, 'Bohemia'): None,
Unit(UnitTypes.TROOP, 'Silesia'): None,
},
'Austria': {
Unit(UnitTypes.TROOP, 'Vienna'): None,
},
'Turkey': {
Unit(UnitTypes.TROOP, 'Galicia'): None,
},
}
def test_three_country_rotation_with_one_support_each():
helper = TurnHelper([
PlayerHelper('Germany', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Galicia', 'Bohemia'),
CommandHelper(CommandType.SUPPORT, UnitTypes.TROOP, 'Silesia', 'Galicia', 'Bohemia'),
]),
PlayerHelper('Austria', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Bohemia', 'Vienna'),
CommandHelper(CommandType.SUPPORT, UnitTypes.TROOP, 'Tyrolia', 'Bohemia', 'Vienna'),
]),
PlayerHelper('Turkey', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Vienna', 'Galicia'),
CommandHelper(CommandType.SUPPORT, UnitTypes.TROOP, 'Budapest', 'Vienna', 'Galicia'),
]),
])
result = helper.resolve()
assert result == {
'Germany': {
Unit(UnitTypes.TROOP, 'Bohemia'): None,
Unit(UnitTypes.TROOP, 'Silesia'): None,
},
'Austria': {
Unit(UnitTypes.TROOP, 'Vienna'): None,
Unit(UnitTypes.TROOP, 'Tyrolia'): None,
},
'Turkey': {
Unit(UnitTypes.TROOP, 'Galicia'): None,
Unit(UnitTypes.TROOP, 'Budapest'): None,
},
}
def test_three_country_rotation_with_external_disruption():
helper = TurnHelper([
PlayerHelper('Germany', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Galicia', 'Bohemia'),
]),
PlayerHelper('Austria', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Bohemia', 'Vienna'),
]),
PlayerHelper('Turkey', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Vienna', 'Galicia'),
]),
PlayerHelper('Russia', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Ukraine', 'Galicia'),
]),
])
result = helper.resolve()
assert result == {
'Germany': {
Unit(UnitTypes.TROOP, 'Galicia'): None,
},
'Austria': {
Unit(UnitTypes.TROOP, 'Bohemia'): None,
},
'Turkey': {
Unit(UnitTypes.TROOP, 'Vienna'): None,
},
'Russia': {
Unit(UnitTypes.TROOP, 'Ukraine'): None,
},
}
def test_three_country_rotation_with_external_dislodge():
helper = TurnHelper([
PlayerHelper('Germany', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Galicia', 'Bohemia'),
]),
PlayerHelper('Austria', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Bohemia', 'Vienna'),
]),
PlayerHelper('Turkey', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Vienna', 'Galicia'),
]),
PlayerHelper('Russia', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Ukraine', 'Galicia'),
CommandHelper(CommandType.SUPPORT, UnitTypes.TROOP, 'Warsaw', 'Ukraine', 'Galicia'),
]),
])
result = helper.resolve()
assert result == {
'Germany': {
Unit(UnitTypes.TROOP, 'Galicia'): {
'Silesia',
'Budapest',
'Rumania',
},
},
'Austria': {
Unit(UnitTypes.TROOP, 'Bohemia'): None,
},
'Turkey': {
Unit(UnitTypes.TROOP, 'Vienna'): None,
},
'Russia': {
Unit(UnitTypes.TROOP, 'Galicia'): None,
Unit(UnitTypes.TROOP, 'Warsaw'): None,
},
}
def test_three_country_rotation_with_external_disruption_overcome_by_support():
helper = TurnHelper([
PlayerHelper('Germany', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Galicia', 'Bohemia'),
]),
PlayerHelper('Austria', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Bohemia', 'Vienna'),
]),
PlayerHelper('Turkey', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Vienna', 'Galicia'),
CommandHelper(CommandType.SUPPORT, UnitTypes.TROOP, 'Budapest', 'Vienna', 'Galicia'),
]),
PlayerHelper('Russia', [
CommandHelper(CommandType.MOVE, UnitTypes.TROOP, 'Ukraine', 'Galicia'),
]),
])
result = helper.resolve()
assert result == {
'Germany': {
Unit(UnitTypes.TROOP, 'Bohemia'): None,
},
'Austria': {
Unit(UnitTypes.TROOP, 'Vienna'): None,
},
'Turkey': {
Unit(UnitTypes.TROOP, 'Galicia'): None,
Unit(UnitTypes.TROOP, 'Budapest'): None,
},
'Russia': {
Unit(UnitTypes.TROOP, 'Ukraine'): None,
},
}
| 32.716418
| 97
| 0.556873
| 516
| 6,576
| 7.017442
| 0.091085
| 0.208782
| 0.134217
| 0.214582
| 0.919635
| 0.898647
| 0.886219
| 0.87462
| 0.854736
| 0.826567
| 0
| 0
| 0.295773
| 6,576
| 200
| 98
| 32.88
| 0.781905
| 0
| 0
| 0.747253
| 0
| 0
| 0.135037
| 0
| 0
| 0
| 0
| 0
| 0.032967
| 1
| 0.032967
| false
| 0
| 0.021978
| 0
| 0.054945
| 0
| 0
| 0
| 0
| null | 1
| 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
| 9
|
1965fd9017572eae1552bfd4b96fd6c9710905ed
| 10,617
|
py
|
Python
|
edge_dataloader.py
|
mgpadalkar/pidinet
|
781924fe30469cdc64f63ce6666a3e1f5b4e576f
|
[
"MIT"
] | 137
|
2021-07-26T14:24:12.000Z
|
2022-03-31T12:26:38.000Z
|
edge_dataloader.py
|
mgpadalkar/pidinet
|
781924fe30469cdc64f63ce6666a3e1f5b4e576f
|
[
"MIT"
] | 29
|
2021-07-26T21:36:29.000Z
|
2022-03-31T17:48:59.000Z
|
edge_dataloader.py
|
mgpadalkar/pidinet
|
781924fe30469cdc64f63ce6666a3e1f5b4e576f
|
[
"MIT"
] | 26
|
2021-07-27T07:57:50.000Z
|
2022-03-30T08:01:06.000Z
|
from torch.utils import data
import torchvision.transforms as transforms
import os
from pathlib import Path
from PIL import Image
import numpy as np
def fold_files(foldname):
"""All files in the fold should have the same extern"""
allfiles = os.listdir(foldname)
if len(allfiles) < 1:
raise ValueError('No images in the data folder')
return None
else:
return allfiles
class BSDS_Loader(data.Dataset):
"""
Dataloader BSDS500
"""
def __init__(self, root='data/HED-BSDS', split='train', transform=False, threshold=0.3, ablation=False):
self.root = root
self.split = split
self.threshold = threshold * 256
print('Threshold for ground truth: %f on BSDS' % self.threshold)
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225])
self.transform = transforms.Compose([
transforms.ToTensor(),
normalize])
if self.split == 'train':
if ablation:
self.filelist = os.path.join(self.root, 'train200_pair.lst')
else:
self.filelist = os.path.join(self.root, 'train_pair.lst')
elif self.split == 'test':
if ablation:
self.filelist = os.path.join(self.root, 'val.lst')
else:
self.filelist = os.path.join(self.root, 'test.lst')
else:
raise ValueError("Invalid split type!")
with open(self.filelist, 'r') as f:
self.filelist = f.readlines()
def __len__(self):
return len(self.filelist)
def __getitem__(self, index):
if self.split == "train":
img_file, lb_file = self.filelist[index].split()
img_file = img_file.strip()
lb_file = lb_file.strip()
lb = np.array(Image.open(os.path.join(self.root, lb_file)), dtype=np.float32)
if lb.ndim == 3:
lb = np.squeeze(lb[:, :, 0])
assert lb.ndim == 2
threshold = self.threshold
lb = lb[np.newaxis, :, :]
lb[lb == 0] = 0
lb[np.logical_and(lb>0, lb<threshold)] = 2
lb[lb >= threshold] = 1
else:
img_file = self.filelist[index].rstrip()
with open(os.path.join(self.root, img_file), 'rb') as f:
img = Image.open(f)
img = img.convert('RGB')
img = self.transform(img)
if self.split == "train":
return img, lb
else:
img_name = Path(img_file).stem
return img, img_name
class BSDS_VOCLoader(data.Dataset):
"""
Dataloader BSDS500
"""
def __init__(self, root='data/HED-BSDS_PASCAL', split='train', transform=False, threshold=0.3, ablation=False):
self.root = root
self.split = split
self.threshold = threshold * 256
print('Threshold for ground truth: %f on BSDS_VOC' % self.threshold)
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225])
self.transform = transforms.Compose([
transforms.ToTensor(),
normalize])
if self.split == 'train':
if ablation:
self.filelist = os.path.join(self.root, 'bsds_pascal_train200_pair.lst')
else:
self.filelist = os.path.join(self.root, 'bsds_pascal_train_pair.lst')
elif self.split == 'test':
if ablation:
self.filelist = os.path.join(self.root, 'val.lst')
else:
self.filelist = os.path.join(self.root, 'test.lst')
else:
raise ValueError("Invalid split type!")
with open(self.filelist, 'r') as f:
self.filelist = f.readlines()
def __len__(self):
return len(self.filelist)
def __getitem__(self, index):
if self.split == "train":
img_file, lb_file = self.filelist[index].split()
img_file = img_file.strip()
lb_file = lb_file.strip()
lb = np.array(Image.open(os.path.join(self.root, lb_file)), dtype=np.float32)
if lb.ndim == 3:
lb = np.squeeze(lb[:, :, 0])
assert lb.ndim == 2
threshold = self.threshold
lb = lb[np.newaxis, :, :]
lb[lb == 0] = 0
lb[np.logical_and(lb>0, lb<threshold)] = 2
lb[lb >= threshold] = 1
else:
img_file = self.filelist[index].rstrip()
with open(os.path.join(self.root, img_file), 'rb') as f:
img = Image.open(f)
img = img.convert('RGB')
img = self.transform(img)
if self.split == "train":
return img, lb
else:
img_name = Path(img_file).stem
return img, img_name
class Multicue_Loader(data.Dataset):
"""
Dataloader for Multicue
"""
def __init__(self, root='data/', split='train', transform=False, threshold=0.3, setting=['boundary', '1']):
"""
setting[0] should be 'boundary' or 'edge'
setting[1] should be '1' or '2' or '3'
"""
self.root = root
self.split = split
self.threshold = threshold * 256
print('Threshold for ground truth: %f on setting %s' % (self.threshold, str(setting)))
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225])
self.transform = transforms.Compose([
transforms.ToTensor(),
normalize])
if self.split == 'train':
self.filelist = os.path.join(
self.root, 'train_pair_%s_set_%s.lst' % (setting[0], setting[1]))
elif self.split == 'test':
self.filelist = os.path.join(
self.root, 'test_%s_set_%s.lst' % (setting[0], setting[1]))
else:
raise ValueError("Invalid split type!")
with open(self.filelist, 'r') as f:
self.filelist = f.readlines()
def __len__(self):
return len(self.filelist)
def __getitem__(self, index):
if self.split == "train":
img_file, lb_file = self.filelist[index].split()
img_file = img_file.strip()
lb_file = lb_file.strip()
lb = np.array(Image.open(os.path.join(self.root, lb_file)), dtype=np.float32)
if lb.ndim == 3:
lb = np.squeeze(lb[:, :, 0])
assert lb.ndim == 2
threshold = self.threshold
lb = lb[np.newaxis, :, :]
lb[lb == 0] = 0
lb[np.logical_and(lb>0, lb<threshold)] = 2
lb[lb >= threshold] = 1
else:
img_file = self.filelist[index].rstrip()
with open(os.path.join(self.root, img_file), 'rb') as f:
img = Image.open(f)
img = img.convert('RGB')
img = self.transform(img)
if self.split == "train":
return img, lb
else:
img_name = Path(img_file).stem
return img, img_name
class NYUD_Loader(data.Dataset):
"""
Dataloader for NYUDv2
"""
def __init__(self, root='data/', split='train', transform=False, threshold=0.4, setting=['image']):
"""
There is no threshold for NYUDv2 since it is singlely annotated
setting should be 'image' or 'hha'
"""
self.root = root
self.split = split
self.threshold = 128
print('Threshold for ground truth: %f on setting %s' % (self.threshold, str(setting)))
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225])
self.transform = transforms.Compose([
transforms.ToTensor(),
normalize])
if self.split == 'train':
self.filelist = os.path.join(
self.root, '%s-train_da.lst' % (setting[0]))
elif self.split == 'test':
self.filelist = os.path.join(
self.root, '%s-test.lst' % (setting[0]))
else:
raise ValueError("Invalid split type!")
with open(self.filelist, 'r') as f:
self.filelist = f.readlines()
def __len__(self):
return len(self.filelist)
def __getitem__(self, index):
scale = 1.0
if self.split == "train":
img_file, lb_file, scale = self.filelist[index].split()
img_file = img_file.strip()
lb_file = lb_file.strip()
scale = float(scale.strip())
pil_image = Image.open(os.path.join(self.root, lb_file))
if scale < 0.99: # which means it < 1.0
W = int(scale * pil_image.width)
H = int(scale * pil_image.height)
pil_image = pil_image.resize((W, H))
lb = np.array(pil_image, dtype=np.float32)
if lb.ndim == 3:
lb = np.squeeze(lb[:, :, 0])
assert lb.ndim == 2
threshold = self.threshold
lb = lb[np.newaxis, :, :]
lb[lb == 0] = 0
lb[np.logical_and(lb>0, lb<threshold)] = 2
lb[lb >= threshold] = 1
else:
img_file = self.filelist[index].rstrip()
with open(os.path.join(self.root, img_file), 'rb') as f:
img = Image.open(f)
if scale < 0.9:
img = img.resize((W, H))
img = img.convert('RGB')
img = self.transform(img)
if self.split == "train":
return img, lb
else:
img_name = Path(img_file).stem
return img, img_name
class Custom_Loader(data.Dataset):
"""
Custom Dataloader
"""
def __init__(self, root='data/'):
self.root = root
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225])
self.transform = transforms.Compose([
transforms.ToTensor(),
normalize])
self.imgList = fold_files(os.path.join(root))
def __len__(self):
return len(self.imgList)
def __getitem__(self, index):
with open(os.path.join(self.root, self.imgList[index]), 'rb') as f:
img = Image.open(f)
img = img.convert('RGB')
img = self.transform(img)
filename = Path(self.imgList[index]).stem
return img, filename
| 35.508361
| 115
| 0.525478
| 1,293
| 10,617
| 4.204176
| 0.116009
| 0.07064
| 0.040471
| 0.054084
| 0.834805
| 0.820272
| 0.816041
| 0.811074
| 0.788631
| 0.777226
| 0
| 0.030994
| 0.3436
| 10,617
| 298
| 116
| 35.627517
| 0.749031
| 0.033249
| 0
| 0.795833
| 0
| 0
| 0.063531
| 0.007806
| 0
| 0
| 0
| 0
| 0.016667
| 1
| 0.066667
| false
| 0
| 0.025
| 0.020833
| 0.179167
| 0.016667
| 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
|
198d61b68553be9dbb8716fc9f4fbcc51623dbf6
| 8,075
|
py
|
Python
|
backend/backend/tests/views/city_view.py
|
Drew138/v_website
|
c5b6556ccaf146d2296ff0c48c7473a7cc63d2ad
|
[
"MIT"
] | null | null | null |
backend/backend/tests/views/city_view.py
|
Drew138/v_website
|
c5b6556ccaf146d2296ff0c48c7473a7cc63d2ad
|
[
"MIT"
] | 8
|
2020-12-03T15:15:32.000Z
|
2022-03-12T00:58:27.000Z
|
backend/backend/tests/views/city_view.py
|
Drew138/v_website
|
c5b6556ccaf146d2296ff0c48c7473a7cc63d2ad
|
[
"MIT"
] | 1
|
2021-04-09T16:17:11.000Z
|
2021-04-09T16:17:11.000Z
|
from rest_framework_simplejwt.tokens import RefreshToken
from rest_framework.test import APITestCase
from rest_framework import status
from django.urls import reverse
from model_bakery import baker
from faker import Faker
class TestCityView(APITestCase):
@classmethod
def setUpTestData(cls):
cls.city_url = reverse('city-list')
cls.user = baker.make('backend.VibroUser')
def setUp(self):
faker = Faker()
self.city = baker.make('backend.City')
self.data = {
"name": faker.city(),
"state": faker.state()
}
def test_admin_can_post_city(self):
"""
assert admin can create a new city,
and check ofr city data in response.
"""
self.user.is_superuser = True
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
res = self.client.post(self.city_url, self.data, format='json')
self.assertEqual(res.status_code, status.HTTP_201_CREATED)
self.assertEqual(res.data['name'], self.data['name'])
self.assertEqual(res.data['state'], self.data['state'])
def test_staff_can_post_city(self):
"""
assert staff users can create a new city,
and check ofr city data in response.
"""
self.user.is_staff = True
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
res = self.client.post(self.city_url, self.data, format='json')
self.assertEqual(res.status_code, status.HTTP_201_CREATED)
self.assertEqual(res.data['name'], self.data['name'])
self.assertEqual(res.data['state'], self.data['state'])
def test_client_cant_post_city(self):
"""
assert client users are fobidden
from creating new cities.
"""
self.user.is_staff = False
self.user.is_superuser = False
self.user.user_type = 'client'
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
res = self.client.post(self.city_url, self.data, format='json')
self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN)
def test_post_requires_body(self):
"""
assert creating a new city requires
related information in json body.
"""
self.user.is_staff = True
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
res = self.client.post(self.city_url, format='json')
self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST)
def test_user_can_get_city(self):
"""
assert any type of user can
retrieve cities.
"""
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
res = self.client.get(self.city_url)
self.assertEqual(res.status_code, status.HTTP_200_OK)
self.assertEqual(res.data['results'][0]['id'], self.city.id)
self.assertEqual(res.data['results'][0]['name'], self.city.name)
self.assertEqual(res.data['results'][0]['state'], self.city.state)
self.assertEqual(res.data['count'], 1)
def test_user_can_get_filtered_city(self):
"""
assert any type of user can
filter and retrieve cities.
"""
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
params = {
'id': self.city.id,
'name': self.city.name,
'state': self.city.state,
}
res = self.client.get(self.city_url, data=params)
self.assertEqual(res.status_code, status.HTTP_200_OK)
self.assertEqual(res.data['results'][0]['id'], self.city.id)
self.assertEqual(res.data['results'][0]['name'], self.city.name)
self.assertEqual(res.data['results'][0]['state'], self.city.state)
self.assertEqual(res.data['count'], 1)
def test_admin_can_delete_city(self):
"""
assert admin users can delete
city instances.
"""
self.user.is_superuser = True
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
city_url_detail = reverse('city-detail', kwargs={"pk": self.city.id})
res = self.client.delete(city_url_detail)
self.assertEqual(res.status_code, status.HTTP_204_NO_CONTENT)
def test_staff_can_delete_city(self):
"""
assert staff users can delete
city instances.
"""
self.user.is_staff = True
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
city_url_detail = reverse('city-detail', kwargs={"pk": self.city.id})
res = self.client.delete(city_url_detail)
self.assertEqual(res.status_code, status.HTTP_204_NO_CONTENT)
def test_client_cant_delete_city(self):
"""
assert client users cant delete
city instances.
"""
self.user.is_staff = False
self.user.is_superuser = False
self.user.user_type = 'client'
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
city_url_detail = reverse('city-detail', kwargs={"pk": self.city.id})
res = self.client.delete(city_url_detail)
self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN)
def test_admin_can_patch_city(self):
"""
assert admin users can update
city instances.
"""
self.user.is_superuser = True
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
city_url_detail = reverse('city-detail', kwargs={"pk": self.city.id})
res = self.client.patch(city_url_detail, self.data, format='json')
self.assertEqual(res.status_code, status.HTTP_200_OK)
self.assertEqual(res.data['name'], self.data['name'])
self.assertEqual(res.data['state'], self.data['state'])
def test_staff_can_patch_city(self):
"""
assert staff users can update
city instances.
"""
self.user.is_staff = True
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
city_url_detail = reverse('city-detail', kwargs={"pk": self.city.id})
res = self.client.patch(city_url_detail, self.data, format='json')
self.assertEqual(res.status_code, status.HTTP_200_OK)
self.assertEqual(res.data['name'], self.data['name'])
self.assertEqual(res.data['state'], self.data['state'])
def test_client_cant_patch_city(self):
"""
assert client users cant update
city instances.
"""
self.user.is_superuser = False
self.user.is_staff = False
self.user.user_type = 'client'
self.user.save()
refresh = RefreshToken.for_user(self.user)
self.client.credentials(
HTTP_AUTHORIZATION=f'Bearer {refresh.access_token}')
city_url_detail = reverse('city-detail', kwargs={"pk": self.city.id})
res = self.client.patch(city_url_detail, self.data, format='json')
self.assertEqual(res.status_code, status.HTTP_403_FORBIDDEN)
| 36.704545
| 77
| 0.632446
| 1,003
| 8,075
| 4.917248
| 0.109671
| 0.061638
| 0.10219
| 0.071371
| 0.868208
| 0.84631
| 0.814274
| 0.790349
| 0.766829
| 0.757097
| 0
| 0.007234
| 0.246811
| 8,075
| 219
| 78
| 36.872146
| 0.803683
| 0.081981
| 0
| 0.727273
| 0
| 0
| 0.096023
| 0.0375
| 0
| 0
| 0
| 0
| 0.195804
| 1
| 0.097902
| false
| 0
| 0.041958
| 0
| 0.146853
| 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
|
2729b326c75b3bfb444a94e8e49680a4be030bfb
| 13,663
|
py
|
Python
|
tests/test_embedder.py
|
PooyaHekmati/music_embedding
|
20072478c01dc2e433c1393298310213cf8745b6
|
[
"MIT"
] | 19
|
2021-04-30T11:23:20.000Z
|
2022-03-21T10:39:21.000Z
|
tests/test_embedder.py
|
PooyaHekmati/music_embedding
|
20072478c01dc2e433c1393298310213cf8745b6
|
[
"MIT"
] | 1
|
2021-08-06T04:45:26.000Z
|
2021-08-06T04:45:26.000Z
|
tests/test_embedder.py
|
PooyaHekmati/music_embedding
|
20072478c01dc2e433c1393298310213cf8745b6
|
[
"MIT"
] | 3
|
2021-04-01T12:47:59.000Z
|
2022-01-11T09:22:47.000Z
|
from music_embedding.interval import interval
from music_embedding.embedder import embedder
import pytest
import numpy as np
#TODO implement a function that checks the variables for any problems.
def test__get_none_error_message():
assert embedder()._get_none_error_message("test") == "Both test argument and self.test are None."
def test__get_range_error_message():
assert embedder()._get_range_error_message() == "Attempted to assign an out of range value. MIDI accepts values in the range 0-127."
def test__get_incompatible_dimension_error_message():
assert embedder()._get_incompatible_dimension_error_message("pianoroll") == "Wrong pianoroll shape, second dimension must be 128."
assert embedder()._get_incompatible_dimension_error_message("intervals") == f"Wrong intervals shape, second dimension must be interval.feature_dimensions ({interval().feature_dimensions})."
with pytest.raises(ValueError):
embedder._get_incompatible_dimension_error_message("invalid_input")
def test_invalid_argument_handling():
#extract_highest_pitch_notes_from_pianoroll
emb = embedder()
with pytest.raises(TypeError):
emb.extract_highest_pitch_notes_from_pianoroll()
emb.pianoroll = np.zeros((1,1))
with pytest.raises(IndexError):
emb.extract_highest_pitch_notes_from_pianoroll()
#get_melodic_intervals_from_pianoroll
emb.pianoroll = None
with pytest.raises(TypeError):
emb.get_melodic_intervals_from_pianoroll()
emb.pianoroll = np.zeros((1,1))
with pytest.raises(IndexError):
emb.get_melodic_intervals_from_pianoroll()
emb.pianoroll = np.zeros((1,150))
with pytest.raises(IndexError):
emb.get_melodic_intervals_from_pianoroll()
#get_pianoroll_from_melodic_intervals
emb.intervals=None
with pytest.raises(TypeError):
emb.get_pianoroll_from_melodic_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions-1))
with pytest.raises(IndexError):
emb.get_pianoroll_from_melodic_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions+1))
with pytest.raises(IndexError):
emb.get_pianoroll_from_melodic_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions))
with pytest.raises(ValueError):
emb.get_pianoroll_from_melodic_intervals(leading_silence=2)
emb.origin = 128
with pytest.raises(IndexError):
emb.get_pianoroll_from_melodic_intervals()
with pytest.raises(IndexError):
emb.get_pianoroll_from_melodic_intervals(origin=-1)
emb.default_velocity = 128
emb.intervals=np.zeros((1,interval.feature_dimensions))
with pytest.raises(IndexError):
emb.get_pianoroll_from_melodic_intervals()
with pytest.raises(IndexError):
emb.get_pianoroll_from_melodic_intervals(velocity=-1)
#get_harmonic_intervals_from_pianoroll
emb.pianoroll = None
with pytest.raises(TypeError):
emb.get_harmonic_intervals_from_pianoroll(ref_pianoroll = np.zeros((1,128)))
emb.pianoroll = np.zeros((1,1))
with pytest.raises(IndexError):
emb.get_harmonic_intervals_from_pianoroll(ref_pianoroll = np.zeros((1,128)))
emb.pianoroll = np.zeros((1,150))
with pytest.raises(IndexError):
emb.get_harmonic_intervals_from_pianoroll(ref_pianoroll = np.zeros((1,128)))
emb.pianoroll = np.zeros((1,128))
with pytest.raises(IndexError):
emb.get_harmonic_intervals_from_pianoroll(ref_pianoroll = np.zeros((1,1)))
with pytest.raises(IndexError):
emb.get_harmonic_intervals_from_pianoroll(ref_pianoroll = np.zeros((1,150)))
#get_pianoroll_from_harmonic_intervals
emb.intervals=None
with pytest.raises(TypeError):
emb.get_pianoroll_from_harmonic_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions-1))
with pytest.raises(IndexError):
emb.get_pianoroll_from_harmonic_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions+1))
with pytest.raises(IndexError):
emb.get_pianoroll_from_harmonic_intervals()
emb.default_velocity = 128
emb.intervals=np.zeros((1,interval.feature_dimensions))
with pytest.raises(IndexError):
emb.get_pianoroll_from_harmonic_intervals()
with pytest.raises(IndexError):
emb.get_pianoroll_from_harmonic_intervals(velocity=-1)
emb.pianoroll = None
with pytest.raises(TypeError):
emb.get_pianoroll_from_harmonic_intervals()
emb.pianoroll = np.zeros((1,1))
with pytest.raises(IndexError):
emb.get_pianoroll_from_harmonic_intervals()
emb.pianoroll = np.zeros((1,150))
with pytest.raises(IndexError):
emb.get_pianoroll_from_harmonic_intervals()
#get_barwise_intervals_from_pianoroll
emb.pianoroll = None
with pytest.raises(TypeError):
emb.get_barwise_intervals_from_pianoroll()
emb.pianoroll = np.zeros((1,1))
with pytest.raises(IndexError):
emb.get_barwise_intervals_from_pianoroll()
emb.pianoroll = np.zeros((1,150))
with pytest.raises(IndexError):
emb.get_barwise_intervals_from_pianoroll()
emb.pixels_per_bar = 0
emb.pianoroll = np.zeros((1,128))
with pytest.raises(ValueError):
emb.get_barwise_intervals_from_pianoroll()
with pytest.raises(ValueError):
emb.get_barwise_intervals_from_pianoroll(pixels_per_bar=-1)
#get_pianoroll_from_barwise_intervals
emb.pixels_per_bar = 0
with pytest.raises(ValueError):
emb.get_pianoroll_from_barwise_intervals()
with pytest.raises(ValueError):
emb.get_pianoroll_from_barwise_intervals(pixels_per_bar=-1)
emb.intervals=None
emb.pixels_per_bar = 96
with pytest.raises(TypeError):
emb.get_pianoroll_from_barwise_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions-1))
with pytest.raises(IndexError):
emb.get_pianoroll_from_barwise_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions+1))
with pytest.raises(IndexError):
emb.get_pianoroll_from_barwise_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions))
with pytest.raises(ValueError):
emb.get_pianoroll_from_barwise_intervals(leading_silence=2)
emb.origin = 128
with pytest.raises(IndexError):
emb.get_pianoroll_from_barwise_intervals()
with pytest.raises(IndexError):
emb.get_pianoroll_from_barwise_intervals(origin=-1)
emb.default_velocity = 128
emb.intervals=np.zeros((1,interval.feature_dimensions))
with pytest.raises(IndexError):
emb.get_pianoroll_from_barwise_intervals()
with pytest.raises(IndexError):
emb.get_pianoroll_from_barwise_intervals(velocity=-1)
#chunk_sequence_of_intervals
emb.intervals=None
with pytest.raises(TypeError):
emb.chunk_sequence_of_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions-1))
with pytest.raises(IndexError):
emb.chunk_sequence_of_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions+1))
with pytest.raises(IndexError):
emb.chunk_sequence_of_intervals()
emb.pixels_per_bar = 0
emb.intervals=np.zeros((1,interval.feature_dimensions))
with pytest.raises(ValueError):
emb.chunk_sequence_of_intervals()
with pytest.raises(ValueError):
emb.chunk_sequence_of_intervals(pixels_per_chunk =-1)
#get_RLE_from_intervals
emb.intervals=None
with pytest.raises(TypeError):
emb.get_RLE_from_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions-1))
with pytest.raises(IndexError):
emb.get_RLE_from_intervals()
emb.intervals=np.zeros((1,interval.feature_dimensions+1))
with pytest.raises(IndexError):
emb.get_RLE_from_intervals()
def test_extract_highest_pitch_notes_from_pianoroll():
emb = embedder()
pianoroll = np.zeros((128,128),dtype=np.int8)
for i in range(128):
pianoroll[i,0] = i
pianoroll[i,i] = 127-i
emb.pianoroll = pianoroll
actual = emb.extract_highest_pitch_notes_from_pianoroll()
expected = np.arange(0,128)
expected[-1] = 0
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_get_melodic_intervals_from_pianoroll():
emb = embedder()
pianoroll = np.zeros((128,128),dtype=np.int8)
for i in range(128):
pianoroll[i,i] = 100
csum = 0
for i in range(15):
csum += i
for j in range(i):
pianoroll[csum+j,csum+j] = 0
actual = emb.get_melodic_intervals_from_pianoroll( pianoroll)
expected = np.asarray([[0,0,0,0],[0,0,0,0],[2,1,0,0],[0,0,0,0],[0,0,0,0],[3,-1,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[3,1,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[4,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[5,-2,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[5,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[6,-1,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[6,1,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[7,-1,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[7,1,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[1,0,0,1],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[2,-1,0,1],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[2,1,0,1],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[3,-1,0,1],[2,-1,0,0],[2,-1,0,0],[2,-1,0,0],[2,-1,0,0],[2,-1,0,0],[2,-1,0,0],[2,-1,0,0],[2,-1,0,0]],dtype=np.int8)
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_get_pianoroll_from_melodic_intervals():
emb = embedder()
expected = np.zeros((128,128),dtype=np.int8)
for i in range(128):
expected[i,i] = 100
csum = 0
for i in range(15):
csum += i
for j in range(i):
expected[csum+j,csum+j] = 0
intervals = emb.get_melodic_intervals_from_pianoroll(expected)
actual = emb.get_pianoroll_from_melodic_intervals(intervals,origin=0)
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_get_harmonic_intervals_from_pianoroll():
emb = embedder()
pianoroll = np.zeros((15,128),dtype=np.int8)
for i in range(2,15):
pianoroll[i,0] = 100
pianoroll[i,i] = 100
actual = emb.get_harmonic_intervals_from_pianoroll(pianoroll,pianoroll)
expected = [[0,0,0,0],[0,0,0,0],[2,1,0,0],[3,-1,0,0],[3,1,0,0],[4,0,0,0],[5,-2,0,0],[5,0,0,0],[6,-1,0,0],[6,1,0,0],[7,-1,0,0],[7,1,0,0],[1,0,0,1],[2,-1,0,1],[2,1,0,1]]
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_get_pianoroll_from_harmonic_intervals():
emb = embedder()
pianoroll = np.zeros((15,128),dtype=np.int8)
for i in range(1,15):
pianoroll[i,1] = 100
pianoroll[i,i] = 100
intervals = emb.get_harmonic_intervals_from_pianoroll(pianoroll,pianoroll)
ref_pianoroll = np.zeros((15,128),dtype=np.int8)
for i in range(2,15):
ref_pianoroll[i,1] = 100
expected = np.zeros((15,128),dtype=np.int8)
for i in range(2,15):
expected[i,i] = 100
actual = emb.get_pianoroll_from_harmonic_intervals(pianoroll=ref_pianoroll,intervals=intervals)
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_barwise_embedding():
emb = embedder()
expected = np.zeros((128*12,128), dtype=np.int8)
for i in range(1, 128*12):
expected[i,i%64+32]=100
intervals = emb.get_barwise_intervals_from_pianoroll(expected,96)
actual = emb.get_pianoroll_from_barwise_intervals(intervals,origin=1+32,velocity=100,leading_silence=1)
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_chunk():
emb = embedder()
expected = np.random.randint(low = -2, high = 2, size=(960,4), dtype=np.int8)
chunked_intervals = emb.chunk_sequence_of_intervals(expected)
actual = emb.merge_chunked_intervals(chunked_intervals)
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_RLE():
emb = embedder()
expected = np.random.randint(low = -2, high = 2, size=(960,4), dtype=np.int8)
RLE = emb.get_RLE_from_intervals(expected)
actual = emb.get_intervals_from_RLE(RLE)
np.testing.assert_array_equal(actual, expected, verbose=True)
def test_RLE_bulk():
emb = embedder()
expected = np.random.randint(low = -2, high = 2, size=(960,4), dtype=np.int8)
chunked_intervals = emb.chunk_sequence_of_intervals(expected)
RLE_bulk = emb.get_RLE_from_intervals_bulk(chunked_intervals)
intervals_bulk = emb.get_intervals_from_RLE_bulk(RLE_bulk)
actual = emb.merge_chunked_intervals(intervals_bulk)
np.testing.assert_array_equal(actual, expected, verbose=True)
| 42.04
| 1,336
| 0.665666
| 2,131
| 13,663
| 4.06382
| 0.059127
| 0.106467
| 0.147575
| 0.188915
| 0.879792
| 0.834988
| 0.776328
| 0.735219
| 0.707968
| 0.680023
| 0
| 0.076058
| 0.180122
| 13,663
| 325
| 1,337
| 42.04
| 0.697018
| 0.027666
| 0
| 0.720648
| 0
| 0
| 0.024179
| 0.004595
| 0
| 0
| 0
| 0.003077
| 0.052632
| 1
| 0.052632
| false
| 0
| 0.016194
| 0
| 0.068826
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
278b93440433ce19db710c6cfb867893a7d69ae7
| 4,598
|
py
|
Python
|
dingtalk/python/alibabacloud_dingtalk/trade_1_0/client.py
|
yndu13/dingtalk-sdk
|
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
|
[
"Apache-2.0"
] | null | null | null |
dingtalk/python/alibabacloud_dingtalk/trade_1_0/client.py
|
yndu13/dingtalk-sdk
|
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
|
[
"Apache-2.0"
] | null | null | null |
dingtalk/python/alibabacloud_dingtalk/trade_1_0/client.py
|
yndu13/dingtalk-sdk
|
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_dingtalk.trade_1_0 import models as dingtalktrade__1__0_models
from alibabacloud_tea_util import models as util_models
from alibabacloud_openapi_util.client import Client as OpenApiUtilClient
class Client(OpenApiClient):
"""
*\
"""
def __init__(
self,
config: open_api_models.Config,
):
super().__init__(config)
self._endpoint_rule = ''
if UtilClient.empty(self._endpoint):
self._endpoint = 'api.dingtalk.com'
def query_trade_order(
self,
request: dingtalktrade__1__0_models.QueryTradeOrderRequest,
) -> dingtalktrade__1__0_models.QueryTradeOrderResponse:
runtime = util_models.RuntimeOptions()
headers = dingtalktrade__1__0_models.QueryTradeOrderHeaders()
return self.query_trade_order_with_options(request, headers, runtime)
async def query_trade_order_async(
self,
request: dingtalktrade__1__0_models.QueryTradeOrderRequest,
) -> dingtalktrade__1__0_models.QueryTradeOrderResponse:
runtime = util_models.RuntimeOptions()
headers = dingtalktrade__1__0_models.QueryTradeOrderHeaders()
return await self.query_trade_order_with_options_async(request, headers, runtime)
def query_trade_order_with_options(
self,
request: dingtalktrade__1__0_models.QueryTradeOrderRequest,
headers: dingtalktrade__1__0_models.QueryTradeOrderHeaders,
runtime: util_models.RuntimeOptions,
) -> dingtalktrade__1__0_models.QueryTradeOrderResponse:
UtilClient.validate_model(request)
body = {}
if not UtilClient.is_unset(request.outer_order_id):
body['outerOrderId'] = request.outer_order_id
if not UtilClient.is_unset(request.order_id):
body['orderId'] = request.order_id
if not UtilClient.is_unset(request.ding_isv_org_id):
body['dingIsvOrgId'] = request.ding_isv_org_id
if not UtilClient.is_unset(request.ding_suite_key):
body['dingSuiteKey'] = request.ding_suite_key
real_headers = {}
if not UtilClient.is_unset(headers.common_headers):
real_headers = headers.common_headers
if not UtilClient.is_unset(headers.x_acs_dingtalk_access_token):
real_headers['x-acs-dingtalk-access-token'] = headers.x_acs_dingtalk_access_token
req = open_api_models.OpenApiRequest(
headers=real_headers,
body=OpenApiUtilClient.parse_to_map(body)
)
return TeaCore.from_map(
dingtalktrade__1__0_models.QueryTradeOrderResponse(),
self.do_roarequest('QueryTradeOrder', 'trade_1.0', 'HTTP', 'POST', 'AK', f'/v1.0/trade/orders/query', 'json', req, runtime)
)
async def query_trade_order_with_options_async(
self,
request: dingtalktrade__1__0_models.QueryTradeOrderRequest,
headers: dingtalktrade__1__0_models.QueryTradeOrderHeaders,
runtime: util_models.RuntimeOptions,
) -> dingtalktrade__1__0_models.QueryTradeOrderResponse:
UtilClient.validate_model(request)
body = {}
if not UtilClient.is_unset(request.outer_order_id):
body['outerOrderId'] = request.outer_order_id
if not UtilClient.is_unset(request.order_id):
body['orderId'] = request.order_id
if not UtilClient.is_unset(request.ding_isv_org_id):
body['dingIsvOrgId'] = request.ding_isv_org_id
if not UtilClient.is_unset(request.ding_suite_key):
body['dingSuiteKey'] = request.ding_suite_key
real_headers = {}
if not UtilClient.is_unset(headers.common_headers):
real_headers = headers.common_headers
if not UtilClient.is_unset(headers.x_acs_dingtalk_access_token):
real_headers['x-acs-dingtalk-access-token'] = headers.x_acs_dingtalk_access_token
req = open_api_models.OpenApiRequest(
headers=real_headers,
body=OpenApiUtilClient.parse_to_map(body)
)
return TeaCore.from_map(
dingtalktrade__1__0_models.QueryTradeOrderResponse(),
await self.do_roarequest_async('QueryTradeOrder', 'trade_1.0', 'HTTP', 'POST', 'AK', f'/v1.0/trade/orders/query', 'json', req, runtime)
)
| 45.524752
| 147
| 0.706829
| 532
| 4,598
| 5.693609
| 0.180451
| 0.011885
| 0.074282
| 0.103995
| 0.815451
| 0.781776
| 0.729614
| 0.729614
| 0.726312
| 0.726312
| 0
| 0.011289
| 0.210091
| 4,598
| 100
| 148
| 45.98
| 0.822687
| 0.017399
| 0
| 0.693182
| 1
| 0
| 0.062167
| 0.022647
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034091
| false
| 0
| 0.079545
| 0
| 0.170455
| 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
|
279a5c261d723daa47fac5063efe6025cd9fd5b6
| 7,729
|
py
|
Python
|
tests/test_step_builder.py
|
ldtoolkit/legdb
|
3b201fbf7b81881ddd6eee9efe2070731d4610ee
|
[
"Apache-2.0"
] | 1
|
2020-09-01T13:11:17.000Z
|
2020-09-01T13:11:17.000Z
|
tests/test_step_builder.py
|
ldtoolkit/legdb
|
3b201fbf7b81881ddd6eee9efe2070731d4610ee
|
[
"Apache-2.0"
] | null | null | null |
tests/test_step_builder.py
|
ldtoolkit/legdb
|
3b201fbf7b81881ddd6eee9efe2070731d4610ee
|
[
"Apache-2.0"
] | null | null | null |
import string
from legdb.step import SourceStep, HasStep, PynndbFilterStep, PynndbEdgeOutStep, PynndbEdgeInStep, PynndbEdgeAllStep
from legdb.step_builder import StepBuilder
from conftest import Node, Edge
def test_step_repr():
assert repr(SourceStep(Node)) == "node"
assert repr(HasStep(language="en", label="test")) == "has(language='en', label='test')"
def test_step_builder_repr():
step_builder = StepBuilder().source(Node).has(language="en", label="test").edge_all()
assert repr(step_builder) == "node.has(language='en', label='test').edge_all()"
def test_step_builder_has(database, page_size):
with database.read_transaction as txn:
def new_step_builder():
return StepBuilder(database=database, page_size=page_size, txn=txn)
step_builder = new_step_builder().source(Node)
assert [node.c for node in step_builder] == list(string.ascii_lowercase)
assert step_builder._compiled_steps == [PynndbFilterStep(
database=database,
what=Node,
attrs={},
txn=txn,
)]
step_builder = new_step_builder().source(Node).has(c="a")
assert [node.c for node in step_builder] == ["a"]
assert step_builder._compiled_steps == [PynndbFilterStep(
database=database,
what=Node,
attrs={"c": "a"},
txn=txn,
)]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"c"}): frozenset()}
assert step_builder._compiled_steps[0].index_names == {frozenset({"c"}): "by_c"}
step_builder = new_step_builder().source(Node).has(ord_c_mod_2=0)
assert [node.c for node in step_builder] == list(string.ascii_lowercase[1::2])
assert step_builder._compiled_steps == [PynndbFilterStep(
database=database,
what=Node,
attrs={"ord_c_mod_2": 0},
txn=txn,
)]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"ord_c_mod_2"}): frozenset()}
assert step_builder._compiled_steps[0].index_names == {frozenset({"ord_c_mod_2"}): "by_ord_c_mod_2"}
step_builder = new_step_builder().source(Node).has(ord_c_mod_2=0).has(c="d")
assert [node.c for node in step_builder] == ["d"]
assert step_builder._compiled_steps == [PynndbFilterStep(
database=database,
what=Node,
attrs={"c": "d", "ord_c_mod_2": 0},
txn=txn,
)]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"c", "ord_c_mod_2"}): frozenset({"ord_c_mod_2"})}
assert step_builder._compiled_steps[0].index_names == {frozenset({"c", "ord_c_mod_2"}): "by_c"}
step_builder = new_step_builder().source(Node).has(ord_c_mod_2=0).has(ord_c_mod_3=0)
assert [node.c for node in step_builder] == ['f', 'l', 'r', 'x']
assert step_builder._compiled_steps == [PynndbFilterStep(
database=database,
what=Node,
attrs={"ord_c_mod_2": 0, "ord_c_mod_3": 0},
txn=txn,
)]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): frozenset({"ord_c_mod_2"})}
assert step_builder._compiled_steps[0].index_names == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): "by_ord_c_mod_3"}
step_builder = new_step_builder().source(Node).has(ord_c_mod_4=0)
assert [node.c for node in step_builder] == ["d", "h", "l", "p", "t", "x"]
assert step_builder._compiled_steps == [PynndbFilterStep(
database=database,
what=Node,
attrs={"ord_c_mod_4": 0},
txn=txn,
)]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"ord_c_mod_4"}): frozenset({"ord_c_mod_4"})}
assert step_builder._compiled_steps[0].index_names == {frozenset({"ord_c_mod_4"}): None}
def test_step_builder_edge_steps(database, page_size):
with database.read_transaction as txn:
def new_step_builder():
return StepBuilder(database=database, edge_cls=Edge, page_size=page_size, txn=txn)
step_builder = new_step_builder().source(Node).has(ord_c_mod_2=0, ord_c_mod_3=0).edge_in(w=-1.0)
assert [edge.start.c for edge in step_builder] == ['g', 'm', 's', 'y']
assert step_builder._compiled_steps == [
PynndbFilterStep(
database=database,
what=Node,
attrs={"ord_c_mod_2": 0, "ord_c_mod_3": 0},
txn=txn,
),
PynndbEdgeInStep(
database=database,
what=Edge,
attrs={"w": -1.0},
txn=txn,
)
]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): frozenset({"ord_c_mod_2"})}
assert step_builder._compiled_steps[0].index_names == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): "by_ord_c_mod_3"}
assert step_builder._compiled_steps[1].attrs_to_check == {frozenset({"w", "end_id"}): frozenset({"end_id"})}
assert step_builder._compiled_steps[1].index_names == {frozenset({"w", "end_id"}): "by_w"}
step_builder = new_step_builder().source(Node).has(ord_c_mod_2=0, ord_c_mod_3=0).edge_out(w=1.0)
assert [edge.end.c for edge in step_builder] == ['g', 'm', 's', 'y']
assert step_builder._compiled_steps == [
PynndbFilterStep(
database=database,
what=Node,
attrs={"ord_c_mod_2": 0, "ord_c_mod_3": 0},
txn=txn,
),
PynndbEdgeOutStep(
database=database,
what=Edge,
attrs={"w": 1.0},
txn=txn,
)
]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): frozenset({"ord_c_mod_2"})}
assert step_builder._compiled_steps[0].index_names == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): "by_ord_c_mod_3"}
assert step_builder._compiled_steps[1].attrs_to_check == {frozenset({"w", "start_id"}): frozenset({"start_id"})}
assert step_builder._compiled_steps[1].index_names == {frozenset({"w", "start_id"}): "by_w"}
step_builder = new_step_builder().source(Node).has(ord_c_mod_2=0, ord_c_mod_3=0).edge_all(w=1.0)
edges = list(step_builder)
assert len(edges) == 8
for edge in edges:
cs = ['f', 'l', 'r', 'x']
assert edge.start.c in cs or edge.end.c in cs
assert ord(edge.end.c) - ord(edge.start.c) == 1
assert step_builder._compiled_steps == [
PynndbFilterStep(
database=database,
what=Node,
attrs={"ord_c_mod_2": 0, "ord_c_mod_3": 0},
txn=txn,
),
PynndbEdgeAllStep(
database=database,
what=Edge,
attrs={"w": 1.0},
txn=txn,
)
]
assert step_builder._compiled_steps[0].attrs_to_check == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): frozenset({"ord_c_mod_2"})}
assert step_builder._compiled_steps[0].index_names == {frozenset({"ord_c_mod_3", "ord_c_mod_2"}): "by_ord_c_mod_3"}
assert step_builder._compiled_steps[1].attrs_to_check == {
frozenset({"w", "start_id"}): frozenset({"start_id"}),
frozenset({"w", "end_id"}): frozenset({"end_id"}),
}
assert step_builder._compiled_steps[1].index_names == {
frozenset({"w", "start_id"}): "by_w",
frozenset({"w", "end_id"}): "by_w",
}
| 46.560241
| 136
| 0.601113
| 1,033
| 7,729
| 4.124879
| 0.081317
| 0.170383
| 0.090354
| 0.181882
| 0.863412
| 0.842056
| 0.835015
| 0.835015
| 0.809904
| 0.787139
| 0
| 0.019896
| 0.252167
| 7,729
| 165
| 137
| 46.842424
| 0.717301
| 0
| 0
| 0.510204
| 0
| 0
| 0.096778
| 0.006081
| 0
| 0
| 0
| 0
| 0.306122
| 1
| 0.040816
| false
| 0
| 0.027211
| 0.013605
| 0.081633
| 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
|
fd6bd800c4c837fa777ae9fbbc4c075077b93ab6
| 72
|
py
|
Python
|
aging/environment_processing/EarlyLifeFactors/__init__.py
|
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
|
f6913ce4ec1f6aed358ba27fdf575257f712c132
|
[
"MIT"
] | null | null | null |
aging/environment_processing/EarlyLifeFactors/__init__.py
|
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
|
f6913ce4ec1f6aed358ba27fdf575257f712c132
|
[
"MIT"
] | null | null | null |
aging/environment_processing/EarlyLifeFactors/__init__.py
|
Deep-Learning-and-Aging/Scalars-based-models-and-XWAS-pipeline
|
f6913ce4ec1f6aed358ba27fdf575257f712c132
|
[
"MIT"
] | null | null | null |
from .early_life_factors_processing import read_early_life_factors_data
| 36
| 71
| 0.930556
| 11
| 72
| 5.454545
| 0.727273
| 0.3
| 0.533333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 72
| 1
| 72
| 72
| 0.882353
| 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
|
8bf15db5bd8c2d23c83f927eb4b9781c13ea601e
| 3,307
|
py
|
Python
|
smartstart/environments/presets.py
|
BartKeulen/smartstart
|
13c0a1dbc794081c37d58d730ed1a0dc53f0dee8
|
[
"MIT"
] | 3
|
2017-09-27T22:47:13.000Z
|
2022-02-08T16:27:32.000Z
|
smartstart/environments/presets.py
|
BartKeulen/smartstart
|
13c0a1dbc794081c37d58d730ed1a0dc53f0dee8
|
[
"MIT"
] | null | null | null |
smartstart/environments/presets.py
|
BartKeulen/smartstart
|
13c0a1dbc794081c37d58d730ed1a0dc53f0dee8
|
[
"MIT"
] | null | null | null |
"""Preset GridWorlds module
Are used by the :obj:`~smartexploration.environments.gridworld.GridWorld` to
generate the gridworld.
"""
def easy():
"""Easy GridWorld
Returns
-------
:obj:`str`
name
double :obj:`list` of `int`
layout
:obj:`int`
scale
"""
name = "Easy"
layout = [[3, 0, 0],
[1, 1, 0],
[1, 1, 0],
[2, 0, 0]]
scale = 5
return name, layout, scale
def medium():
"""Medium GridWorld
Returns
-------
:obj:`str`
name
double :obj:`list` of `int`
layout
:obj:`int`
scale
"""
name = "Medium"
layout = [[3, 0, 0, 0, 0],
[1, 1, 1, 1, 0],
[0, 0, 0, 0, 0],
[0, 1, 1, 1, 1],
[0, 0, 0, 0, 2]]
scale = 5
return name, layout, scale
def hard():
"""Hard GridWorld
Returns
-------
:obj:`str`
name
double :obj:`list` of `int`
layout
:obj:`int`
scale
"""
name = "Hard"
layout = [[3, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 1, 1, 1, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 1, 1, 1, 1, 1, 1],
[0, 0, 0, 0, 0, 0, 0],
[1, 1, 1, 1, 1, 1, 0],
[2, 0, 0, 0, 0, 0, 0]]
scale = 5
return name, layout, scale
def extreme():
"""Extreme GridWorld
Returns
-------
:obj:`str`
name
double :obj:`list` of `int`
layout
:obj:`int`
scale
"""
name = "Extreme"
layout = [[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3],
[1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0],
[0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0],
[0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1],
[0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0],
[0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0],
[0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0],
[0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0],
[1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0],
[0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0],
[0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0],
[0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0],
[0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0],
[0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0],
[1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0],
[0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1],
[0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0],
[1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0],
[2, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0]]
scale = 3
return name, layout, scale
| 30.063636
| 84
| 0.338071
| 666
| 3,307
| 1.678679
| 0.04955
| 0.336315
| 0.346154
| 0.286225
| 0.809481
| 0.809481
| 0.789803
| 0.756708
| 0.756708
| 0.689624
| 0
| 0.289017
| 0.424554
| 3,307
| 109
| 85
| 30.33945
| 0.298476
| 0.175083
| 0
| 0.25
| 1
| 0
| 0.008226
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.076923
| false
| 0
| 0
| 0
| 0.153846
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
e3640c50f88bf1a46caa6c8392d2b81b6b4f421e
| 3,521
|
py
|
Python
|
src/aggregator.py
|
nandofioretto/dp-federated_sharing
|
4f237565568e5765119a80a3754a16b009fa1158
|
[
"MIT"
] | 3
|
2019-06-20T07:07:14.000Z
|
2021-01-08T11:40:03.000Z
|
src/aggregator.py
|
nandofioretto/dp-federated_sharing
|
4f237565568e5765119a80a3754a16b009fa1158
|
[
"MIT"
] | null | null | null |
src/aggregator.py
|
nandofioretto/dp-federated_sharing
|
4f237565568e5765119a80a3754a16b009fa1158
|
[
"MIT"
] | 1
|
2019-09-10T15:40:09.000Z
|
2019-09-10T15:40:09.000Z
|
'''
Model Aggregators:
Take several models (from different agents) and aggregates them into a unified model.
'''
import numpy as np
from agt_linreg import LinearRegressionAgt
from agt_logreg import LogisticRegressionAgt
class ModelAggregator:
def __init__(self, agents: list):
self.agents = agents
class RegressionModelAggregator(ModelAggregator, LinearRegressionAgt):
'''
Aggregator for Linear Regression Agents
'''
def __init__(self, agents, seed=1234):
ModelAggregator.__init__(self, agents)
LinearRegressionAgt.__init__(self, seed)
def aggregate(self):
assert len(self.agents) > 0
n = len(self.agents)
self.w = np.sum(agt.w for agt in self.agents) / n
self.b = np.sum(agt.b for agt in self.agents) / n
def fit(self, X, y, epsilon=None):
pass
class LogRegAggregator(ModelAggregator, LogisticRegressionAgt):
'''
Aggregator for Logistic Regression Agents
'''
def __init__(self, agents, seed=1234, classes=[0, 1]):
ModelAggregator.__init__(self, agents)
LogisticRegressionAgt.__init__(self, seed, classes)
def aggregate(self):
assert len(self.agents) > 0
n = len(self.agents)
self.w = np.sum(agt.w for agt in self.agents) / n
self.b = np.sum(agt.b for agt in self.agents) / n
def fit(self, X, y, epsilon=None):
pass
def _classification(self, Xtest, w, b):
y = np.matmul(Xtest, w.flatten()) + b
y[y > 0.5] = self.classes[1]
y[y <= 0.5] = self.classes[0]
return y
def predict(self, Xtest):
y = np.matmul(Xtest, self.w.flatten()) #+ self.b
y[y > 0.5] = self.classes[1]
y[y <= 0.5] = self.classes[0]
return y
class LinRegAggregator(ModelAggregator, LinearRegressionAgt):
'''
Aggregator for Logistic Regression Agents
'''
def __init__(self, agents, seed=1234):
ModelAggregator.__init__(self, agents)
LinearRegressionAgt.__init__(self, seed)
def aggregate(self):
assert len(self.agents) > 0
n = len(self.agents)
self.w = np.sum(agt.w for agt in self.agents) / n
self.b = np.sum(agt.b for agt in self.agents) / n
def fit(self, X, y, epsilon=None):
pass
def _classification(self, Xtest, w, b):
y = np.matmul(Xtest, w.flatten()) + b
y[y > 1] = 1.0
y[y < -1] = -1.0
return y
def predict(self, Xtest):
y = np.matmul(Xtest, self.w.flatten()) + self.b
y[y > 1] = 1.0
y[y < -1] = -1.0
return y
from agt_svm import SVMAgt
class SVMAggregator(ModelAggregator, SVMAgt):
'''
Aggregator for Logistic Regression Agents
'''
def __init__(self, agents, seed=1234):
ModelAggregator.__init__(self, agents)
SVMAgt.__init__(self, seed=seed, classes=agents[0].classes)
def aggregate(self):
assert len(self.agents) > 0
n = len(self.agents)
self.w = np.sum(agt.w for agt in self.agents) / n
self.b = np.sum(agt.b for agt in self.agents) / n
def fit(self, X, y, epsilon=None):
pass
def _classification(self, Xtest, w, b):
y = np.matmul(Xtest, w.flatten()) + b
y[y >= 0] = self.classes[1]
y[y < 0] = self.classes[0]
return y
def predict(self, Xtest):
y = np.matmul(Xtest, self.w.flatten()) + self.b
y[y >= 0] = self.classes[1]
y[y < 0] = self.classes[0]
return y
| 26.674242
| 89
| 0.598694
| 483
| 3,521
| 4.244306
| 0.136646
| 0.126829
| 0.061463
| 0.046829
| 0.707805
| 0.707805
| 0.707805
| 0.707805
| 0.707805
| 0.707805
| 0
| 0.021577
| 0.276058
| 3,521
| 132
| 90
| 26.674242
| 0.78266
| 0.079239
| 0
| 0.814815
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.049383
| 1
| 0.234568
| false
| 0.049383
| 0.049383
| 0
| 0.419753
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e37240bc84975bce66ce0f90e71721293aa47f6d
| 49
|
py
|
Python
|
reporting/reporting_miro_inventory_transformer/src/transform.py
|
TheStanfordDaily/loris-archives
|
357e6918ac9dc76a451af47f810017cb55cfa43d
|
[
"MIT"
] | null | null | null |
reporting/reporting_miro_inventory_transformer/src/transform.py
|
TheStanfordDaily/loris-archives
|
357e6918ac9dc76a451af47f810017cb55cfa43d
|
[
"MIT"
] | null | null | null |
reporting/reporting_miro_inventory_transformer/src/transform.py
|
TheStanfordDaily/loris-archives
|
357e6918ac9dc76a451af47f810017cb55cfa43d
|
[
"MIT"
] | null | null | null |
def transform(input_data):
return input_data
| 16.333333
| 26
| 0.77551
| 7
| 49
| 5.142857
| 0.714286
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.163265
| 49
| 2
| 27
| 24.5
| 0.878049
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
8b67caf768a0e3377736f5f2bd50d770917fd7c9
| 54,420
|
py
|
Python
|
venv/lib/python3.6/site-packages/ansible_collections/vyos/vyos/plugins/modules/vyos_prefix_lists.py
|
usegalaxy-no/usegalaxy
|
75dad095769fe918eb39677f2c887e681a747f3a
|
[
"MIT"
] | 1
|
2020-01-22T13:11:23.000Z
|
2020-01-22T13:11:23.000Z
|
venv/lib/python3.6/site-packages/ansible_collections/vyos/vyos/plugins/modules/vyos_prefix_lists.py
|
usegalaxy-no/usegalaxy
|
75dad095769fe918eb39677f2c887e681a747f3a
|
[
"MIT"
] | 12
|
2020-02-21T07:24:52.000Z
|
2020-04-14T09:54:32.000Z
|
venv/lib/python3.6/site-packages/ansible_collections/vyos/vyos/plugins/modules/vyos_prefix_lists.py
|
usegalaxy-no/usegalaxy
|
75dad095769fe918eb39677f2c887e681a747f3a
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2021 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The module file for vyos_prefix_lists
"""
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = """
module: vyos_prefix_lists
short_description: Prefix-Lists resource module for VyOS
description:
- This module manages prefix-lists configuration on devices running VyOS
version_added: 2.4.0
author: Priyam Sahoo (@priyamsahoo)
notes:
- Tested against VyOS 1.1.8 (helium)
- This module works with connection C(network_cli)
options:
config:
description: A list of prefix-list options
type: list
elements: dict
suboptions:
afi:
description: The Address Family Indicator (AFI) for the prefix-lists
type: str
choices: ["ipv4", "ipv6"]
required: true
prefix_lists:
description: A list of prefix-list configurations
type: list
elements: dict
suboptions:
name:
description: The name of a defined prefix-list
type: str
required: true
description:
description: A brief text description for the prefix-list
type: str
entries:
description: Rule configurations for the prefix-list
type: list
elements: dict
suboptions:
sequence:
description: A numeric identifier for the rule
type: int
required: true
description:
description: A brief text description for the prefix list rule
type: str
action:
description: The action to be taken for packets matching a prefix list rule
type: str
choices: ["permit", "deny"]
ge:
description: Minimum prefix length to be matched
type: int
le:
description: Maximum prefix list length to be matched
type: int
prefix:
description: IPv4 or IPv6 prefix in A.B.C.D/LEN or A:B::C:D/LEN format
type: str
running_config:
description:
- This option is used only with state I(parsed).
- The value of this option should be the output received from the VyOS device
by executing the command B(show configuration commands | grep prefix-list).
- The state I(parsed) reads the configuration from C(running_config) option and
transforms it into Ansible structured data as per the resource module's argspec
and the value is then returned in the I(parsed) key within the result.
type: str
state:
description:
- The state the configuration should be left in
type: str
choices:
- merged
- replaced
- overridden
- deleted
- gathered
- rendered
- parsed
default: merged
"""
EXAMPLES = """
# # -------------------
# # 1. Using merged
# # -------------------
# # Before state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# vyos@vyos:~$
# # Task
# # -------------
# - name: Merge the provided configuration with the existing running configuration
# vyos.vyos.vyos_prefix_lists:
# config:
# - afi: "ipv4"
# prefix_lists:
# - name: "AnsibleIPv4PrefixList"
# description: "PL configured by ansible"
# entries:
# - sequence: 2
# description: "Rule 2 given by ansible"
# action: "permit"
# prefix: "92.168.10.0/26"
# le: 32
# - sequence: 3
# description: "Rule 3"
# action: "deny"
# prefix: "72.168.2.0/24"
# ge: 26
# - afi: "ipv6"
# prefix_lists:
# - name: "AllowIPv6Prefix"
# description: "Configured by ansible for allowing IPv6 networks"
# entries:
# - sequence: 5
# description: "Permit rule"
# action: "permit"
# prefix: "2001:db8:8000::/35"
# le: 37
# - name: DenyIPv6Prefix
# description: "Configured by ansible for disallowing IPv6 networks"
# entries:
# - sequence: 8
# action: deny
# prefix: "2001:db8:2000::/35"
# le: 37
# state: merged
# # Task output:
# # -------------
# "after": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ],
# "before": [],
# "changed": true,
# "commands": [
# "set policy prefix-list AnsibleIPv4PrefixList",
# "set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'",
# "set policy prefix-list6 AllowIPv6Prefix",
# "set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'",
# "set policy prefix-list6 DenyIPv6Prefix",
# "set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'",
# "set policy prefix-list6 DenyIPv6Prefix rule 8",
# "set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'",
# "set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'",
# "set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'"
# ]
# After state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# vyos@vyos:~$
# # -------------------
# # 2. Using replaced
# # -------------------
# # Before state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# vyos@vyos:~$
# # Task:
# # -------------
# - name: Replace prefix-lists configurations of listed prefix-lists with provided configurations
# vyos.vyos.vyos_prefix_lists:
# config:
# - afi: "ipv4"
# prefix_lists:
# - name: "AnsibleIPv4PrefixList"
# description: "Configuration replaced by ansible"
# entries:
# - sequence: 3
# description: "Rule 3 replaced by ansible"
# action: "permit"
# prefix: "82.168.2.0/24"
# ge: 26
# state: replaced
# # Task output:
# # -------------
# "after": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "Configuration replaced by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 3 replaced by ansible",
# "ge": 26,
# "sequence": 3,
# "prefix": "82.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ],
# "before": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ],
# "changed": true,
# "commands": [
# "set policy prefix-list AnsibleIPv4PrefixList description 'Configuration replaced by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'permit'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3 replaced by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '82.168.2.0/24'",
# "delete policy prefix-list AnsibleIPv4PrefixList rule 2"
# ]
# # After state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'Configuration replaced by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3 replaced by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '82.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# vyos@vyos:~$
# # -------------------
# # 3. Using overridden
# # -------------------
# # Before state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# vyos@vyos:~$
# # Task:
# # -------------
# - name: Override all prefix-lists configuration with provided configuration
# vyos.vyos.vyos_prefix_lists:
# config:
# - afi: "ipv4"
# prefix_lists:
# - name: "AnsibleIPv4PrefixList"
# description: Rule 2 overridden by ansible
# entries:
# - sequence: 2
# action: "deny"
# ge: 26
# prefix: "82.168.2.0/24"
# - name: "OverriddenPrefixList"
# description: Configuration overridden by ansible
# entries:
# - sequence: 10
# action: permit
# prefix: "203.0.113.96/27"
# le: 32
# state: overridden
# # Task output:
# # -------------
# "after": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "Rule 2 overridden by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "deny",
# "ge": 26,
# "sequence": 2,
# "prefix": "82.168.2.0/24"
# }
# ]
# },
# {
# "description": "Configuration overridden by ansible",
# "name": "OverriddenPrefixList",
# "entries": [
# {
# "action": "permit",
# "sequence": 10,
# "le": 32,
# "prefix": "203.0.113.96/27"
# }
# ]
# }
# ]
# }
# ],
# "before": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ],
# "changed": true,
# "commands": [
# "delete policy prefix-list6 AllowIPv6Prefix",
# "delete policy prefix-list6 DenyIPv6Prefix",
# "set policy prefix-list AnsibleIPv4PrefixList description 'Rule 2 overridden by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'deny'",
# "delete policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 ge '26'",
# "delete policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '82.168.2.0/24'",
# "delete policy prefix-list AnsibleIPv4PrefixList rule 3",
# "set policy prefix-list OverriddenPrefixList",
# "set policy prefix-list OverriddenPrefixList description 'Configuration overridden by ansible'",
# "set policy prefix-list OverriddenPrefixList rule 10",
# "set policy prefix-list OverriddenPrefixList rule 10 action 'permit'",
# "set policy prefix-list OverriddenPrefixList rule 10 le '32'",
# "set policy prefix-list OverriddenPrefixList rule 10 prefix '203.0.113.96/27'"
# ]
# # After state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'Rule 2 overridden by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '82.168.2.0/24'
# set policy prefix-list OverriddenPrefixList description 'Configuration overridden by ansible'
# set policy prefix-list OverriddenPrefixList rule 10 action 'permit'
# set policy prefix-list OverriddenPrefixList rule 10 le '32'
# set policy prefix-list OverriddenPrefixList rule 10 prefix '203.0.113.96/27'
# vyos@vyos:~$
# # -------------------
# # 4(i). Using deleted (to delete all prefix lists from the device)
# # -------------------
# # Before state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# vyos@vyos:~$
# # Task:
# # -------------
# - name: Delete all prefix-lists
# vyos.vyos.vyos_prefix_lists:
# config:
# state: deleted
# # Task output:
# # -------------
# "after": [],
# "before": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ],
# "changed": true,
# "commands": [
# "delete policy prefix-list AnsibleIPv4PrefixList",
# "delete policy prefix-list6 AllowIPv6Prefix",
# "delete policy prefix-list6 DenyIPv6Prefix"
# ]
# # After state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# vyos@vyos:~$
# # -------------------
# # 4(ii). Using deleted (to delete all prefix lists for an AFI)
# # -------------------
# # Before state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# vyos@vyos:~$
# # Task:
# # -------------
# - name: Delete all prefix-lists for IPv6 AFI
# vyos.vyos.vyos_prefix_lists:
# config:
# - afi: "ipv6"
# state: deleted
# # Task output:
# # -------------
# "after": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# }
# ],
# "before": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ],
# "changed": true,
# "commands": [
# "delete policy prefix-list6 AllowIPv6Prefix",
# "delete policy prefix-list6 DenyIPv6Prefix"
# ]
# # After state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# vyos@vyos:~$
# # -------------------
# # 4(iii). Using deleted (to delete single prefix list by name in different AFIs)
# # -------------------
# # Before state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# vyos@vyos:~$
# # Task:
# # -------------
# - name: Delete a single prefix-list from different AFIs
# vyos.vyos.vyos_prefix_lists:
# config:
# - afi: "ipv4"
# prefix_lists:
# - name: "AnsibleIPv4PrefixList"
# - afi: "ipv6"
# prefix_lists:
# - name: "DenyIPv6Prefix"
# state: deleted
# # Task output:
# # -------------
# "after": [
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# }
# ]
# }
# ],
# "before": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ],
# "changed": true,
# "commands": [
# "delete policy prefix-list AnsibleIPv4PrefixList",
# "delete policy prefix-list6 DenyIPv6Prefix"
# ]
# # After state:
# # -------------
# vyos@vyos:~$ show configuration commands | grep prefix-list
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# vyos@vyos:~$
# # -------------------
# # 5. Using gathered
# # -------------------
# # Task:
# # -------------
# - name: Gather prefix-lists configurations
# vyos.vyos.vyos_prefix_lists:
# config:
# state: gathered
# # Task output:
# # -------------
# "gathered": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ]
# # -------------------
# # 6. Using rendered
# # -------------------
# # Task:
# # -------------
# - name: Render commands externally for the described prefix-list configurations
# vyos.vyos.vyos_prefix_lists:
# config:
# - afi: "ipv4"
# prefix_lists:
# - name: "AnsibleIPv4PrefixList"
# description: "PL configured by ansible"
# entries:
# - sequence: 2
# description: "Rule 2 given by ansible"
# action: "permit"
# prefix: "92.168.10.0/26"
# le: 32
# - sequence: 3
# description: "Rule 3"
# action: "deny"
# prefix: "72.168.2.0/24"
# ge: 26
# - afi: "ipv6"
# prefix_lists:
# - name: "AllowIPv6Prefix"
# description: "Configured by ansible for allowing IPv6 networks"
# entries:
# - sequence: 5
# description: "Permit rule"
# action: "permit"
# prefix: "2001:db8:8000::/35"
# le: 37
# - name: DenyIPv6Prefix
# description: "Configured by ansible for disallowing IPv6 networks"
# entries:
# - sequence: 8
# action: deny
# prefix: "2001:db8:2000::/35"
# le: 37
# state: rendered
# # Task output:
# # -------------
# "rendered": [
# "set policy prefix-list AnsibleIPv4PrefixList",
# "set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'",
# "set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'",
# "set policy prefix-list6 AllowIPv6Prefix",
# "set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'",
# "set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'",
# "set policy prefix-list6 DenyIPv6Prefix",
# "set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'",
# "set policy prefix-list6 DenyIPv6Prefix rule 8",
# "set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'",
# "set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'",
# "set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'"
# ]
# # -------------------
# # 7. Using parsed
# # -------------------
# # sample_config.cfg:
# # -------------
# set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 description 'Rule 2 given by ansible'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 le '32'
# set policy prefix-list AnsibleIPv4PrefixList rule 2 prefix '92.168.10.0/26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 action 'deny'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 description 'Rule 3'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 ge '26'
# set policy prefix-list AnsibleIPv4PrefixList rule 3 prefix '72.168.2.0/24'
# set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
# set policy prefix-list6 AllowIPv6Prefix rule 5 action 'permit'
# set policy prefix-list6 AllowIPv6Prefix rule 5 description 'Permit rule'
# set policy prefix-list6 AllowIPv6Prefix rule 5 le '37'
# set policy prefix-list6 AllowIPv6Prefix rule 5 prefix '2001:db8:8000::/35'
# set policy prefix-list6 DenyIPv6Prefix description 'Configured by ansible for disallowing IPv6 networks'
# set policy prefix-list6 DenyIPv6Prefix rule 8 action 'deny'
# set policy prefix-list6 DenyIPv6Prefix rule 8 le '37'
# set policy prefix-list6 DenyIPv6Prefix rule 8 prefix '2001:db8:2000::/35'
# # Task:
# # -------------
# - name: Parse externally provided prefix-lists configuration
# vyos.vyos.vyos_prefix_lists:
# running_config: "{{ lookup('file', './sample_config.cfg') }}"
# state: parsed
# # Task output:
# # -------------
# "parsed": [
# {
# "afi": "ipv4",
# "prefix_lists": [
# {
# "description": "PL configured by ansible",
# "name": "AnsibleIPv4PrefixList",
# "entries": [
# {
# "action": "permit",
# "description": "Rule 2 given by ansible",
# "sequence": 2,
# "le": 32,
# "prefix": "92.168.10.0/26"
# },
# {
# "action": "deny",
# "description": "Rule 3",
# "ge": 26,
# "sequence": 3,
# "prefix": "72.168.2.0/24"
# }
# ]
# }
# ]
# },
# {
# "afi": "ipv6",
# "prefix_lists": [
# {
# "description": "Configured by ansible for allowing IPv6 networks",
# "name": "AllowIPv6Prefix",
# "entries": [
# {
# "action": "permit",
# "description": "Permit rule",
# "sequence": 5,
# "le": 37,
# "prefix": "2001:db8:8000::/35"
# }
# ]
# },
# {
# "description": "Configured by ansible for disallowing IPv6 networks",
# "name": "DenyIPv6Prefix",
# "entries": [
# {
# "action": "deny",
# "sequence": 8,
# "le": 37,
# "prefix": "2001:db8:2000::/35"
# }
# ]
# }
# ]
# }
# ]
"""
RETURN = """
before:
description: The configuration prior to the module invocation.
returned: when state is I(merged), I(replaced), I(overridden) or I(deleted)
type: list
sample: >
This output will always be in the same format as the
module argspec.
after:
description: The resulting configuration after the module invocation.
returned: when changed
type: list
sample: >
This output will always be in the same format as the
module argspec.
commands:
description: The set of commands pushed to the remote device for the required configurations to take place.
returned: when state is I(merged), I(replaced), I(overridden) or I(deleted)
type: list
sample:
- set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
- set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
- set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
rendered:
description: The provided configuration in the task rendered in device-native format (offline).
returned: when state is I(rendered)
type: list
sample:
- set policy prefix-list AnsibleIPv4PrefixList description 'PL configured by ansible'
- set policy prefix-list AnsibleIPv4PrefixList rule 2 action 'permit'
- set policy prefix-list6 AllowIPv6Prefix description 'Configured by ansible for allowing IPv6 networks'
gathered:
description: Facts about the network resource gathered from the remote device as structured data.
returned: when state is I(gathered)
type: list
sample: >
This output will always be in the same format as the
module argspec.
parsed:
description: The device native config provided in I(running_config) option parsed into structured data as per module argspec.
returned: when state is I(parsed)
type: list
sample: >
This output will always be in the same format as the
module argspec.
"""
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.argspec.prefix_lists.prefix_lists import (
Prefix_listsArgs,
)
from ansible_collections.vyos.vyos.plugins.module_utils.network.vyos.config.prefix_lists.prefix_lists import (
Prefix_lists,
)
def main():
"""
Main entry point for module execution
:returns: the result form module invocation
"""
module = AnsibleModule(
argument_spec=Prefix_listsArgs.argument_spec,
mutually_exclusive=[["config", "running_config"]],
required_if=[
["state", "merged", ["config"]],
["state", "replaced", ["config"]],
["state", "overridden", ["config"]],
["state", "rendered", ["config"]],
["state", "parsed", ["running_config"]],
],
supports_check_mode=True,
)
result = Prefix_lists(module).execute_module()
module.exit_json(**result)
if __name__ == "__main__":
main()
| 40.917293
| 127
| 0.490224
| 4,811
| 54,420
| 5.524007
| 0.054874
| 0.110626
| 0.130945
| 0.090796
| 0.880381
| 0.862959
| 0.843129
| 0.832669
| 0.828642
| 0.824089
| 0
| 0.060367
| 0.395461
| 54,420
| 1,329
| 128
| 40.948081
| 0.747439
| 0.005017
| 0
| 0.858748
| 0
| 0.024077
| 0.982538
| 0.062773
| 0
| 0
| 0
| 0
| 0
| 1
| 0.000803
| false
| 0
| 0.00321
| 0
| 0.004013
| 0.000803
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
4740f44e6daea7cb7f13f645df931a28ef675b98
| 2,276
|
py
|
Python
|
spacy/tests/print/test_print.py
|
moyogo/spacy
|
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
|
[
"MIT"
] | null | null | null |
spacy/tests/print/test_print.py
|
moyogo/spacy
|
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
|
[
"MIT"
] | null | null | null |
spacy/tests/print/test_print.py
|
moyogo/spacy
|
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import pytest
def test_print_doc(EN):
try:
doc = EN(u'I sat down for coffee at the coffee store')
print(doc)
except Exception:
pytest.fail("Printing failed")
def test_repr_doc(EN):
try:
doc = EN(u'I sat down for coffee at the coffee store')
print(repr(doc))
except Exception:
pytest.fail("Printing failed")
def test_print_doc_unicode(EN):
try:
doc = EN(u'I sat down for coffee at the café')
print(doc)
except Exception:
pytest.fail("Printing failed")
def test_repr_doc_unicode(EN):
try:
doc = EN(u'I sat down for coffee at the café')
print(repr(doc))
except Exception:
pytest.fail("Printing failed")
def test_print_span(EN):
try:
span = EN(u'I sat down for coffee at the coffee store')[-3:]
print(span)
except Exception:
pytest.fail("Printing failed")
def test_repr_span(EN):
try:
span = EN(u'I sat down for coffee at the coffee store')[-3:]
print(repr(span))
except Exception:
pytest.fail("Printing failed")
def test_print_span_unicode(EN):
try:
span = EN(u'I sat down for coffee at the café')[-3:]
print(span)
except Exception:
pytest.fail("Printing failed")
def test_repr_span_unicode(EN):
try:
span = EN(u'I sat down for coffee at the café')[-3:]
print(repr(span))
except Exception:
pytest.fail("Printing failed")
def test_print_token(EN):
try:
token = EN(u'I sat down for coffee at the coffee store')[-1]
print(token)
except Exception:
pytest.fail("Printing failed")
def test_repr_token(EN):
try:
token = EN(u'I sat down for coffee at the coffee store')[-1]
print(repr(token))
except Exception:
pytest.fail("Printing failed")
def test_print_token_unicode(EN):
try:
token = EN(u'I sat down for coffee at the café')[-1]
print(token)
except Exception:
pytest.fail("Printing failed")
def test_repr_token_unicode(EN):
try:
token = EN(u'I sat down for coffee at the café')[-1]
print(repr(token))
except Exception:
pytest.fail("Printing failed")
| 22.989899
| 68
| 0.608963
| 331
| 2,276
| 4.096677
| 0.096677
| 0.061947
| 0.035398
| 0.061947
| 0.974926
| 0.974926
| 0.974926
| 0.974926
| 0.974926
| 0.974926
| 0
| 0.005491
| 0.279877
| 2,276
| 98
| 69
| 23.22449
| 0.821843
| 0.009227
| 0
| 0.821918
| 0
| 0
| 0.276964
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.164384
| false
| 0
| 0.013699
| 0
| 0.178082
| 0.246575
| 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
|
47931aa9e03d1644b9aa50644b8a1a490738a01e
| 26,398
|
py
|
Python
|
src/hiro_graph_client/iamclient.py
|
arago/hiro-client-python
|
30ab1a7ac0f89f413573f762ff25e8071c139f74
|
[
"MIT"
] | null | null | null |
src/hiro_graph_client/iamclient.py
|
arago/hiro-client-python
|
30ab1a7ac0f89f413573f762ff25e8071c139f74
|
[
"MIT"
] | 2
|
2021-11-16T12:07:37.000Z
|
2022-01-20T17:00:01.000Z
|
src/hiro_graph_client/iamclient.py
|
arago/hiro-client-python
|
30ab1a7ac0f89f413573f762ff25e8071c139f74
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
from typing import Any, Iterator
from urllib.parse import quote_plus
from hiro_graph_client.clientlib import AuthenticatedAPIHandler, AbstractTokenApiHandler
class HiroIam(AuthenticatedAPIHandler):
"""
Python implementation for accessing the HIRO IAM REST API.
See https://core.arago.co/help/specs/?url=definitions/iam.yaml
"""
def __init__(self, api_handler: AbstractTokenApiHandler):
"""
Constructor
:param api_handler: External API handler.
"""
super().__init__(api_name='iam',
api_handler=api_handler)
###############################################################################################################
# REST API operations against the IAM API
###############################################################################################################
###############################################################################################################
# Accounts
###############################################################################################################
def create_account(self, data: dict, import_flag: bool = None) -> dict:
"""
create an account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/post_accounts
:param import_flag: Default is false
:param data: The dict with the account data.
:return: Dict with the result
"""
query = {
"import": import_flag
}
url = self.endpoint + "/accounts" + self._get_query_part(query)
return self.post(url, data)
def update_account(self, account_id: str, data: dict) -> dict:
"""
update an account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/post_accounts__id_
:param account_id: ogit/_id of the ogit/Auth/Account
:param data: The dict with the account data.
:return: Dict with the result
"""
url = self.endpoint + "/accounts/" + quote_plus(account_id)
return self.post(url, data)
def get_account(self, account_id: str, profile: bool = None) -> dict:
"""
gets an account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/get_accounts__id_
:param profile: return account with profile. Default false.
:param account_id: ogit/_id of the ogit/Auth/Account
:return: Dict with the result
"""
query = {
"profile": profile
}
url = self.endpoint + "/accounts/" + quote_plus(account_id) + self._get_query_part(query)
return self.get(url)
def delete_account(self, account_id: str) -> dict:
"""
deletes an account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/delete_accounts__id_
:param account_id: ogit/_id of the ogit/Auth/Account
:return: Dict with the result
"""
url = self.endpoint + "/accounts/" + quote_plus(account_id)
return self.delete(url)
def activate_account(self, node_id: str) -> dict:
"""
activates an account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/patch_accounts__id__activate
:param node_id: ogit/_id of the ogit/Auth/Account
:return: Dict with the result
"""
url = self.endpoint + "/accounts/" + quote_plus(node_id) + "/activate"
return self.patch(url, data=None)
def get_account_avatar(self, account_id: str) -> Iterator[bytes]:
"""
gets avatar of account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/get_accounts__id__avatar
:param account_id: ogit/_id of the ogit/Auth/Account
:return: Binary content of the avatar
"""
url = self.endpoint + "/accounts/" + quote_plus(account_id) + "/avatar"
return self.get_binary(url)
def put_account_avatar(self, account_id: str, data: Any, content_type: str = 'image/png') -> str:
"""
sets the avatar of account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/put_accounts__id__avatar
:param account_id: ogit/_id of the ogit/Auth/Account
:param data: Binary data for image of avatar.
:param content_type: Content-Type. Default: image/png
:return: The result payload / size of the avatar in bytes.
"""
url = self.endpoint + "/accounts/" + quote_plus(account_id) + "/avatar"
return self.put_binary(url, data, content_type=content_type)
def deactivate_account(self, account_id: str, reason: str) -> dict:
"""
deactivates an account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/patch_accounts__id__deactivate
:param reason: reason of deactivation of an ogit/Auth/Account.
Available values : UserDeactivated, AdminDeactivated, PasswordExpired, AutoDeactivated, None
:param account_id: ogit/_id of the ogit/Auth/Account
:return: Dict with the result
"""
query = {
"reason": reason
}
url = self.endpoint + "/accounts/" + quote_plus(account_id) + "/deactivate" + self._get_query_part(query)
return self.patch(url, data=None)
def put_account_password(self, account_id: str, data: dict) -> dict:
"""
set password of account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/put_accounts__id__password
:param account_id: ogit/_id of the ogit/Auth/Account
:param data: The dict with the new password data.
:return: Dict with the result
"""
url = self.endpoint + "/accounts/" + quote_plus(account_id) + "/password"
return self.post(url, data)
def get_account_profile(self, account_id: str = None, profile_id: str = None) -> dict:
"""
get profile of account
You need to specify either profile_id or account_id.
With account_id: https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/get_accounts__id__profile
With profile_id: https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/get_accounts_profile__profileId_
:param profile_id: ogit/_id of the ogit/Auth/AccountProfile
:param account_id: ogit/_id of the ogit/Auth/Account
:return: Dict with the result or an empty dict if neither account_id nor profile_id are given.
"""
if account_id:
url = self.endpoint + "/accounts/" + quote_plus(account_id) + "/profile"
elif profile_id:
url = self.endpoint + "/accounts/profile/" + quote_plus(profile_id)
else:
return {}
return self.get(url)
def get_account_teams(self, account_id: str, include_virtual: bool = None) -> dict:
"""
get teams of account
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/get_accounts__id__teams
:param include_virtual: return virtual teams in output. Default false.
:param account_id: ogit/_id of the ogit/Auth/Account
:return: Dict with the result
"""
query = {
"include_virtual": include_virtual
}
url = self.endpoint + "/accounts/" + quote_plus(account_id) + "/teams" + self._get_query_part(query)
return self.get(url)
def update_account_profile(self, profile_id: str, data: dict) -> dict:
"""
updates an account profile
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Account/post_accounts_profile__profileId_
:param data: Dict with the new profile data.
:param profile_id: ogit/_id of the ogit/Auth/AccountProfile
:return: Dict with the result
"""
url = self.endpoint + "/accounts/profile/" + quote_plus(profile_id)
return self.post(url, data)
###############################################################################################################
# DataScope
###############################################################################################################
def create_scope(self, data: dict) -> dict:
"""
creates a DataScope
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_DataScope/post_scope
:param data: Dict with the new scope data.
:return: Dict with the result
"""
url = self.endpoint + "/scope"
return self.post(url, data)
def get_scope(self, scope_id: str) -> dict:
"""
retrieves a DataScope
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_DataScope/get_scope__id_
:param scope_id: ogit/_id of the ogit/Auth/DataScope
:return: Dict with the result
"""
url = self.endpoint + "/scope/" + quote_plus(scope_id)
return self.get(url)
def update_scope(self, scope_id: str, data: dict) -> dict:
"""
updates a DataScope
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_DataScope/put_scope__id_
:param scope_id: ogit/_id of the ogit/Auth/DataScope
:param data: Dict with the new scope data.
:return: Dict with the result
"""
url = self.endpoint + "/scope/" + quote_plus(scope_id)
return self.put(url, data)
###############################################################################################################
# Organization
###############################################################################################################
def create_organization(self, data: dict) -> dict:
"""
creates an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/post_organization
:param data: Dict with the new organization data.
:return: Dict with the result
"""
url = self.endpoint + "/organization"
return self.post(url, data)
def get_organization_configuration(self, organization_id: str) -> dict:
"""
gets configuration of an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/get_organization__id__configuration
:param organization_id: ogit/_id of the ogit/Auth/Organization
:return: Dict with the result
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/configuration"
return self.get(url)
def update_organization_configuration(self, organization_id: str, data: dict) -> dict:
"""
updates configuration of an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/put_organization__id__configuration
:param organization_id: ogit/_id of the ogit/Auth/Organization
:param data: Dict with the new organization data.
:return: Dict with the result
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/configuration"
return self.put(url, data)
def get_organization_datasets(self, organization_id: str) -> dict:
"""
gets datasets of an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/get_organization__id__datasets
:param organization_id: ogit/_id of the ogit/Auth/Organization
:return: Dict with the result
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/datasets"
return self.get(url)
def get_organization_domains(self, organization_id: str) -> dict:
"""
gets domains of an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/get_organization__id__domains
:param organization_id: ogit/_id of the ogit/Auth/Organization
:return: Dict with the result
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/domains"
return self.get(url)
def get_organization_roleassignments(self, organization_id: str) -> dict:
"""
gets roleassignments of an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/get_organization__id__roleassignments
:param organization_id: ogit/_id of the ogit/Auth/Organization
:return: Dict with the result
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/roleassignments"
return self.get(url)
def get_organization_scopes(self, organization_id: str) -> dict:
"""
gets scopes of an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/get_organization__id__scopes
:param organization_id: ogit/_id of the ogit/Auth/Organization
:return: Dict with the result
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/scopes"
return self.get(url)
def get_organization_teams(self, organization_id: str) -> dict:
"""
gets teams of an Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/get_organization__id__teams
:param organization_id: ogit/_id of the ogit/Auth/Organization
:return: Dict with the result
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/teams"
return self.get(url)
def get_organization_avatar(self, organization_id: str) -> Iterator[bytes]:
"""
gets avatar of Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/get_organization__id__avatar
:param organization_id: ogit/_id of the ogit/Auth/Organization
:return: Binary content of the avatar
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/avatar"
return self.get_binary(url)
def put_organization_avatar(self, organization_id: str, data: Any, content_type: str = 'image/png') -> str:
"""
sets the avatar of Auth Organization
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Organization/put_organization__id__avatar
:param organization_id: ogit/_id of the ogit/Auth/Organization
:param data: Binary data for image of avatar.
:param content_type: Content-Type. Default: image/png
:return: The result payload / size of the avatar in bytes.
"""
url = self.endpoint + "/organization/" + quote_plus(organization_id) + "/avatar"
return self.put_binary(url, data, content_type=content_type)
###############################################################################################################
# Org Domain
###############################################################################################################
def create_domain(self, data: dict) -> dict:
"""
creates an Org Domain
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_OrgDomain/post_domain
:param data: Dict with the new domain data.
:return: Dict with the result
"""
url = self.endpoint + "/domain"
return self.post(url, data)
def get_domain(self, domain_id: str) -> dict:
"""
retrieves an Org Domain
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_OrgDomain/get_domain__id_
:param domain_id: ogit/_id of the ogit/Auth/OrgDomain
:return: Dict with the result
"""
url = self.endpoint + "/domain/" + quote_plus(domain_id)
return self.get(url)
def delete_domain(self, domain_id: str) -> dict:
"""
deletes an Org Domain
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_OrgDomain/delete_domain__id_
:param domain_id: ogit/_id of the ogit/Auth/OrgDomain
:return: Dict with the result
"""
url = self.endpoint + "/domain/" + quote_plus(domain_id)
return self.delete(url)
def get_domain_organization(self, domain_id: str) -> dict:
"""
retrieves an Organization of Org Domain
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_OrgDomain/get_domain__id__organization
:param domain_id: ogit/_id of the ogit/Auth/OrgDomain
:return: Dict with the result
"""
url = self.endpoint + "/domain/" + quote_plus(domain_id) + "/organization"
return self.get(url)
###############################################################################################################
# Auth Role
###############################################################################################################
def create_role(self, data: dict) -> dict:
"""
creates an Auth Role
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Role/post_role
:param data: Dict with the new role data.
:return: Dict with the result
"""
url = self.endpoint + "/role"
return self.post(url, data)
def update_role(self, role_id: str, data: dict) -> dict:
"""
updates an Auth Role
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Role/put_role__id_
:param role_id: ogit/_id of the ogit/Auth/Role
:param data: Dict with the new role data.
:return: Dict with the result
"""
url = self.endpoint + "/role/" + quote_plus(role_id)
return self.put(url, data)
def get_role(self, role_id: str) -> dict:
"""
retrieves an Auth Role
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Role/get_role__id_
:param role_id: ogit/_id of the ogit/Auth/Role
:return: Dict with the result
"""
url = self.endpoint + "/role/" + quote_plus(role_id)
return self.get(url)
def delete_role(self, role_id: str) -> dict:
"""
deletes an Auth Role
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Role/delete_role__id_
:param role_id: ogit/_id of the ogit/Auth/Role
:return: Dict with the result
"""
url = self.endpoint + "/role/" + quote_plus(role_id)
return self.delete(url)
def get_roles(self) -> dict:
"""
retrieves public roles
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Role/get_roles
:return: Dict with the result
"""
url = self.endpoint + "/roles"
return self.get(url)
###############################################################################################################
# Auth RoleAssignment
###############################################################################################################
def create_roleassignment(self, data: dict) -> dict:
"""
creates an Auth RoleAssignment
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_RoleAssignment/post_roleassignment
:param data: Dict with the new roleassignment data.
:return: Dict with the result
"""
url = self.endpoint + "/roleassignment"
return self.post(url, data)
def get_roleassignment(self, roleassignment_id: str) -> dict:
"""
retrieves an Auth RoleAssignment
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_RoleAssignment/get_roleassignment__id_
:param roleassignment_id: ogit/_id of the ogit/Auth/RoleAssignment
:return: Dict with the result
"""
url = self.endpoint + "/roleassignment/" + quote_plus(roleassignment_id)
return self.get(url)
def delete_roleassignment(self, roleassignment_id: str) -> dict:
"""
deletes an Auth RoleAssignment
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_RoleAssignment/delete_roleassignment__id_
:param roleassignment_id: ogit/_id of the ogit/Auth/RoleAssignment
:return: Dict with the result
"""
url = self.endpoint + "/roleassignment/" + quote_plus(roleassignment_id)
return self.delete(url)
###############################################################################################################
# Auth Team
###############################################################################################################
def create_team(self, data: dict) -> dict:
"""
creates an Auth Team
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Team/post_team
:param data: Dict with the new team data.
:return: Dict with the result
"""
url = self.endpoint + "/team"
return self.post(url, data)
def update_team(self, team_id: str, data: dict) -> dict:
"""
updates an Auth Team
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Team/put_team__id_
:param team_id: ogit/_id of the ogit/Auth/Team
:param data: Dict with the new team data.
:return: Dict with the result
"""
url = self.endpoint + "/team/" + quote_plus(team_id)
return self.put(url, data)
def get_team(self, team_id: str) -> dict:
"""
retrieves an Auth Team
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Team/get_team__id_
:param team_id: ogit/_id of the ogit/Auth/Team
:return: Dict with the result
"""
url = self.endpoint + "/team/" + quote_plus(team_id)
return self.get(url)
def delete_team(self, team_id: str) -> dict:
"""
deletes an Auth Team
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Team/delete_team__id_
:param team_id: ogit/_id of the ogit/Auth/Team
:return: Dict with the result
"""
url = self.endpoint + "/team/" + quote_plus(team_id)
return self.delete(url)
def get_team_members(self, team_id: str, profile: bool = None) -> dict:
"""
gets members of an Auth Team
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Team/get_team__id__members
:param profile: return account with profile. Default False.
:param team_id: ogit/_id of the ogit/Auth/Team
:return: Dict with the result
"""
query = {
"profile": profile
}
url = self.endpoint + "/team/" + quote_plus(team_id) + "/members" + self._get_query_part(query)
return self.get(url)
def add_team_members(self, team_id: str, data: dict) -> dict:
"""
adds members to an Auth Team
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Team/post_team__id__members_add
:param team_id: ogit/_id of the ogit/Auth/Team
:param data: dict with the account data
:return: Dict with the result
"""
url = self.endpoint + "/team/" + quote_plus(team_id) + "/members/add"
return self.post(url, data)
def remove_team_members(self, team_id: str, data: dict) -> dict:
"""
adds members to an Auth Team
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_Auth_Team/post_team__id__members_remove
:param team_id: ogit/_id of the ogit/Auth/Team
:param data: dict with the account data
:return: Dict with the result
"""
url = self.endpoint + "/team/" + quote_plus(team_id) + "/members/remove"
return self.post(url, data)
###############################################################################################################
# DataSet
###############################################################################################################
def create_dataset(self, data: dict) -> dict:
"""
creates a DataSet
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_DataSet/post_dataset
:param data: Dict with the new dataset data.
:return: Dict with the result
"""
url = self.endpoint + "/dataset"
return self.post(url, data)
def update_dataset(self, dataset_id: str, data: dict) -> dict:
"""
updates a DataSet
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_DataSet/put_dataset__id_
:param dataset_id: ogit/_id of the ogit/Auth/DataSet
:param data: Dict with the new dataset data.
:return: Dict with the result
"""
url = self.endpoint + "/dataset/" + quote_plus(dataset_id)
return self.put(url, data)
def get_dataset(self, dataset_id: str) -> dict:
"""
retrieves a DataSet
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_DataSet/get_dataset__id_
:param dataset_id: ogit/_id of the ogit/Auth/DataSet
:return: Dict with the result
"""
url = self.endpoint + "/dataset/" + quote_plus(dataset_id)
return self.get(url)
def delete_dataset(self, dataset_id: str) -> dict:
"""
deletes a DataSet
https://core.arago.co/help/specs/?url=definitions/iam.yaml#/[Management]_DataSet/delete_dataset__id_
:param dataset_id: ogit/_id of the ogit/Auth/DataSet
:return: Dict with the result
"""
url = self.endpoint + "/dataset/" + quote_plus(dataset_id)
return self.delete(url)
| 41.246875
| 140
| 0.592772
| 3,086
| 26,398
| 4.876539
| 0.050227
| 0.032959
| 0.045319
| 0.05316
| 0.871287
| 0.853612
| 0.78982
| 0.721908
| 0.699249
| 0.67154
| 0
| 0.000049
| 0.227745
| 26,398
| 639
| 141
| 41.311424
| 0.738154
| 0.461171
| 0
| 0.467836
| 0
| 0
| 0.076228
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.28655
| false
| 0.011696
| 0.02924
| 0
| 0.608187
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
47f35d4297acdceec80143a4a8cb91a5e0226ef6
| 9,698
|
py
|
Python
|
hw/vendor/lowrisc_ibex/vendor/google_riscv-dv/pygen/pygen_src/isa/rv32b_instr.py
|
asb/opentitan
|
af68ff5041b10c81e97adc075a4d042f8ac7ab20
|
[
"Apache-2.0"
] | 1,375
|
2019-11-05T15:11:00.000Z
|
2022-03-28T17:50:43.000Z
|
hw/vendor/lowrisc_ibex/vendor/google_riscv-dv/pygen/pygen_src/isa/rv32b_instr.py
|
asb/opentitan
|
af68ff5041b10c81e97adc075a4d042f8ac7ab20
|
[
"Apache-2.0"
] | 7,045
|
2019-11-05T16:05:45.000Z
|
2022-03-31T23:08:08.000Z
|
hw/vendor/lowrisc_ibex/vendor/google_riscv-dv/pygen/pygen_src/isa/rv32b_instr.py
|
asb/opentitan
|
af68ff5041b10c81e97adc075a4d042f8ac7ab20
|
[
"Apache-2.0"
] | 428
|
2019-11-05T15:00:20.000Z
|
2022-03-28T15:34:57.000Z
|
"""
Copyright 2020 Google LLC
Copyright 2020 PerfectVIPs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
"""
from pygen_src.riscv_defines import DEFINE_B_INSTR
from pygen_src.riscv_instr_pkg import (riscv_instr_name_t, riscv_instr_format_t,
riscv_instr_category_t, riscv_instr_group_t, imm_t)
DEFINE_B_INSTR(riscv_instr_name_t.SEXT_B, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SEXT_H, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.ANDN, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.ORN, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.XNOR, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.GORC, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.GORCI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CMIX, riscv_instr_format_t.R4_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CMOV, riscv_instr_format_t.R4_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.PACK, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.PACKU, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.PACKH, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.LOGICAL, riscv_instr_group_t.RV32B, g=globals())
# SHIFH instructions
DEFINE_B_INSTR(riscv_instr_name_t.SLO, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SRO, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.ROL, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.ROR, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBCLR, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBSET, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBINV, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBEXT, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.GREV, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.GREVI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SLOI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SROI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.RORI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBCLRI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBSETI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBINVI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SBEXTI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.FSL, riscv_instr_format_t.R4_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.FSR, riscv_instr_format_t.R4_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.FSRI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.SHIFT, riscv_instr_group_t.RV32B, imm_t.UIMM, g=globals())
# ARITMETIC instructions
DEFINE_B_INSTR(riscv_instr_name_t.CLZ, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CTZ, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.PCNT, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CRC32_B, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CRC32_H, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CRC32_W, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CRC32C_B, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CRC32C_H, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CRC32C_W, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CLMUL, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CLMULR, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.CLMULH, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.MIN, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.MAX, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.MINU, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.MAXU, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SHFL, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.UNSHFL, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.BDEP, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.BEXT, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.BFP, riscv_instr_format_t.R_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.SHFLI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, imm_t.UIMM,
g=globals())
DEFINE_B_INSTR(riscv_instr_name_t.UNSHFLI, riscv_instr_format_t.I_FORMAT,
riscv_instr_category_t.ARITHMETIC, riscv_instr_group_t.RV32B, imm_t.UIMM,
g=globals())
| 71.308824
| 98
| 0.787688
| 1,592
| 9,698
| 4.255025
| 0.086683
| 0.332152
| 0.099203
| 0.124004
| 0.890464
| 0.890464
| 0.890464
| 0.890464
| 0.873782
| 0.873782
| 0
| 0.016393
| 0.131986
| 9,698
| 135
| 99
| 71.837037
| 0.788311
| 0.053619
| 0
| 0.486957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.017391
| 0
| 0.017391
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
47f96d0fba190ae328b902c7eda844959cca6732
| 8,753
|
py
|
Python
|
bindsnet_master/test/network/test_learning.py
|
Singular-Brain/ProjectBrain
|
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
|
[
"MIT"
] | null | null | null |
bindsnet_master/test/network/test_learning.py
|
Singular-Brain/ProjectBrain
|
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
|
[
"MIT"
] | null | null | null |
bindsnet_master/test/network/test_learning.py
|
Singular-Brain/ProjectBrain
|
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
|
[
"MIT"
] | null | null | null |
import torch
from bindsnet.network import Network
from bindsnet.network.nodes import Input, LIFNodes, CSRMNodes, SRM0Nodes
from bindsnet.network.topology import Connection, Conv2dConnection
from bindsnet.learning import (
Hebbian,
PostPre,
WeightDependentPostPre,
MSTDP,
MSTDPET,
Rmax,
)
class TestLearningRules:
"""
Tests all stable learning rules for compatible ``Connection`` types.
"""
def test_hebbian(self):
# Connection test
network = Network(dt=1.0)
network.add_layer(Input(n=100, traces=True), name="input")
network.add_layer(LIFNodes(n=100, traces=True), name="output")
network.add_connection(
Connection(
source=network.layers["input"],
target=network.layers["output"],
nu=1e-2,
update_rule=Hebbian,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 100)).byte()}, time=250
)
# Conv2dConnection test
network = Network(dt=1.0)
network.add_layer(Input(shape=[1, 10, 10], traces=True), name="input")
network.add_layer(LIFNodes(shape=[32, 8, 8], traces=True), name="output")
network.add_connection(
Conv2dConnection(
source=network.layers["input"],
target=network.layers["output"],
kernel_size=3,
stride=1,
nu=1e-2,
update_rule=Hebbian,
),
source="input",
target="output",
)
# shape is [time, batch, channels, height, width]
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 1, 1, 10, 10)).byte()},
time=250,
)
def test_post_pre(self):
# Connection test
network = Network(dt=1.0)
network.add_layer(Input(n=100, traces=True), name="input")
network.add_layer(LIFNodes(n=100, traces=True), name="output")
network.add_connection(
Connection(
source=network.layers["input"],
target=network.layers["output"],
nu=1e-2,
update_rule=PostPre,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 100)).byte()}, time=250
)
network2 = Network(dt=1.0)
network2.add_layer(Input(n=100, traces=True), name="input")
network2.add_layer(CSRMNodes(n=100, traces=True), name="output")
network2.add_connection(
Connection(
source=network2.layers["input"],
target=network2.layers["output"],
nu=1e-2,
update_rule=PostPre,
),
source="input",
target="output",
)
network2.run(
inputs={"input": torch.bernoulli(torch.rand(250, 100)).byte()}, time=250
)
# Conv2dConnection test
network = Network(dt=1.0)
network.add_layer(Input(shape=[1, 10, 10], traces=True), name="input")
network.add_layer(LIFNodes(shape=[32, 8, 8], traces=True), name="output")
network.add_connection(
Conv2dConnection(
source=network.layers["input"],
target=network.layers["output"],
kernel_size=3,
stride=1,
nu=1e-2,
update_rule=PostPre,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 1, 1, 10, 10)).byte()},
time=250,
)
def test_weight_dependent_post_pre(self):
# Connection test
network = Network(dt=1.0)
network.add_layer(Input(n=100, traces=True), name="input")
network.add_layer(LIFNodes(n=100, traces=True), name="output")
network.add_connection(
Connection(
source=network.layers["input"],
target=network.layers["output"],
nu=1e-2,
update_rule=WeightDependentPostPre,
wmin=-1,
wmax=1,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 100)).byte()}, time=250
)
# Conv2dConnection test
network = Network(dt=1.0)
network.add_layer(Input(shape=[1, 10, 10], traces=True), name="input")
network.add_layer(LIFNodes(shape=[32, 8, 8], traces=True), name="output")
network.add_connection(
Conv2dConnection(
source=network.layers["input"],
target=network.layers["output"],
kernel_size=3,
stride=1,
nu=1e-2,
update_rule=WeightDependentPostPre,
wmin=-1,
wmax=1,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 1, 1, 10, 10)).byte()},
time=250,
)
def test_mstdp(self):
# Connection test
network = Network(dt=1.0)
network.add_layer(Input(n=100), name="input")
network.add_layer(LIFNodes(n=100), name="output")
network.add_connection(
Connection(
source=network.layers["input"],
target=network.layers["output"],
nu=1e-2,
update_rule=MSTDP,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 100)).byte()},
time=250,
reward=1.0,
)
# Conv2dConnection test
network = Network(dt=1.0)
network.add_layer(Input(shape=[1, 10, 10]), name="input")
network.add_layer(LIFNodes(shape=[32, 8, 8]), name="output")
network.add_connection(
Conv2dConnection(
source=network.layers["input"],
target=network.layers["output"],
kernel_size=3,
stride=1,
nu=1e-2,
update_rule=MSTDP,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 1, 1, 10, 10)).byte()},
time=250,
reward=1.0,
)
def test_mstdpet(self):
# Connection test
network = Network(dt=1.0)
network.add_layer(Input(n=100), name="input")
network.add_layer(LIFNodes(n=100), name="output")
network.add_connection(
Connection(
source=network.layers["input"],
target=network.layers["output"],
nu=1e-2,
update_rule=MSTDPET,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 100)).byte()},
time=250,
reward=1.0,
)
# Conv2dConnection test
network = Network(dt=1.0)
network.add_layer(Input(shape=[1, 10, 10]), name="input")
network.add_layer(LIFNodes(shape=[32, 8, 8]), name="output")
network.add_connection(
Conv2dConnection(
source=network.layers["input"],
target=network.layers["output"],
kernel_size=3,
stride=1,
nu=1e-2,
update_rule=MSTDPET,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 1, 1, 10, 10)).byte()},
time=250,
reward=1.0,
)
def test_rmax(self):
# Connection test
network = Network(dt=1.0)
network.add_layer(Input(n=100, traces=True, traces_additive=True), name="input")
network.add_layer(SRM0Nodes(n=100), name="output")
network.add_connection(
Connection(
source=network.layers["input"],
target=network.layers["output"],
nu=1e-2,
update_rule=Rmax,
),
source="input",
target="output",
)
network.run(
inputs={"input": torch.bernoulli(torch.rand(250, 100)).byte()},
time=250,
reward=1.0,
)
| 32.298893
| 88
| 0.507826
| 889
| 8,753
| 4.928009
| 0.089989
| 0.075325
| 0.075325
| 0.03013
| 0.873317
| 0.873317
| 0.861447
| 0.861447
| 0.861447
| 0.85323
| 0
| 0.053938
| 0.360334
| 8,753
| 270
| 89
| 32.418519
| 0.728523
| 0.036902
| 0
| 0.777311
| 0
| 0
| 0.054266
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.02521
| false
| 0
| 0.021008
| 0
| 0.05042
| 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
|
9a5508d25c7634e872d09b8306c5d3b827143bf0
| 3,697
|
py
|
Python
|
podnn/demos/utils.py
|
peymanmashhadi/podnn
|
b33a51ed044e8989328ab48d4eccd2f71088e43c
|
[
"Apache-2.0"
] | 2
|
2022-03-02T17:46:35.000Z
|
2022-03-12T14:39:02.000Z
|
podnn/demos/utils.py
|
caisr-hh/podnn
|
27b94aa3e1b35ab40b7cc84234ed7c44b9b0117d
|
[
"Apache-2.0"
] | null | null | null |
podnn/demos/utils.py
|
caisr-hh/podnn
|
27b94aa3e1b35ab40b7cc84234ed7c44b9b0117d
|
[
"Apache-2.0"
] | 2
|
2021-12-08T15:45:16.000Z
|
2022-03-02T17:46:28.000Z
|
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import torch
#-----------------------------------------------------------------------
def plot_bounday_tensorflow(model,n_models,x_train,y_train,x_test,y_test):
w = model.layers[-1].weights[0]
idx = np.where(w < 0)[0]
colors = ['black' if l == 0 else 'purple' for l in y_train]
plot_step = 0.02
x_min, x_max = x_train[:, 0].min() - 1, x_train[:, 0].max() + 1
y_min, y_max = x_train[:, 1].min() - 1, x_train[:, 1].max() + 1
xx, yy = np.meshgrid(np.arange(x_min, x_max, plot_step),
np.arange(y_min, y_max, plot_step))
input = np.c_[xx.ravel(), yy.ravel()]
input = tf.convert_to_tensor(input)
_, Z = model(input)
n_rows = int(np.floor(np.sqrt(n_models)))
n_cols = int(np.floor(np.sqrt(n_models)))
fig, ax = plt.subplots(nrows=n_rows,ncols=n_cols)
model_number = 0
for r in range(n_rows):
for c in range(n_cols):
Z_current = np.round(np.reshape(Z[:,model_number], xx.shape))
if model_number in idx:
Z_current = 1 - Z_current
boundary = ax[r,c].contourf(xx, yy, Z_current, cmap=plt.cm.RdYlBu)
ax[r,c].scatter(x_train[:, 0], x_train[:, 1], c=colors,s=5)
model_number += 1
fig.colorbar(boundary, ax=ax, shrink=0.6)
ax[0, 0].set_title('Aggregation layer decision boundaries')
ax[0,1].set_title('Aggregation layer decision boundaries')
plt.axis('off')
plt.show(block=False)
plt.axis('off')
plt.show()
plt.figure()
input = np.c_[xx.ravel(), yy.ravel()]
Z = tf.convert_to_tensor(input)
preds,_ = model(Z)
preds = np.reshape(preds, xx.shape)
boundary = plt.contourf(xx, yy, preds, cmap=plt.cm.RdYlBu)
plt.scatter(x_train[:,0],x_train[:,1],c=y_train)
plt.show()
def plot_bounday_torch(model,n_models,x_train,y_train,x_test,y_test):
w = model[-2].weight[0]
idx = np.where(w < 0)[0]
colors = ['black' if l == 0 else 'purple' for l in y_train]
plot_step = 0.02
x_min, x_max = x_train[:, 0].min() - 1, x_train[:, 0].max() + 1
y_min, y_max = x_train[:, 1].min() - 1, x_train[:, 1].max() + 1
xx, yy = np.meshgrid(np.arange(x_min, x_max, plot_step),
np.arange(y_min, y_max, plot_step))
input = np.c_[xx.ravel(), yy.ravel()]
Z = torch.from_numpy(input).float()
counter = 0
for layer in model:
Z = layer(Z)
if counter==3:
break
counter += 1
Z = torch.detach(Z)
n_rows = int(np.floor(np.sqrt(n_models)))
n_cols = int(np.floor(np.sqrt(n_models)))
fig, ax = plt.subplots(nrows=n_rows,ncols=n_cols)
model_number = 0
for r in range(n_rows):
for c in range(n_cols):
Z_current = np.round(np.reshape(Z[:,model_number], xx.shape))
if model_number in idx:
Z_current = 1 - Z_current
boundary = ax[r,c].contourf(xx, yy, Z_current, cmap=plt.cm.RdYlBu)
ax[r,c].scatter(x_train[:, 0], x_train[:, 1], c=colors,s=5)
model_number += 1
fig.colorbar(boundary, ax=ax, shrink=0.6)
ax[0, 0].set_title('Aggregation layer decision boundaries')
ax[0,1].set_title('Aggregation layer decision boundaries')
plt.axis('off')
plt.show(block=False)
plt.axis('off')
plt.show()
plt.figure()
input = np.c_[xx.ravel(), yy.ravel()]
Z = torch.from_numpy(input).float()
preds = torch.detach(model(Z))
preds = np.reshape(preds, xx.shape)
boundary = plt.contourf(xx, yy, preds, cmap=plt.cm.RdYlBu)
plt.scatter(x_train[:,0],x_train[:,1],c=y_train)
plt.show()
| 31.87069
| 78
| 0.586151
| 604
| 3,697
| 3.415563
| 0.163907
| 0.052351
| 0.027145
| 0.015511
| 0.883665
| 0.862336
| 0.862336
| 0.862336
| 0.862336
| 0.862336
| 0
| 0.022269
| 0.234785
| 3,697
| 115
| 79
| 32.147826
| 0.706964
| 0.019205
| 0
| 0.772727
| 0
| 0
| 0.050207
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.022727
| false
| 0
| 0.045455
| 0
| 0.068182
| 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
|
d03407c791469abc90c286e86bdf016f767fb993
| 5,165
|
py
|
Python
|
tests/test_validate.py
|
tommilligan/pyqubes
|
8f9bccf2dc8b5f0eac75efd896bcba85eb3e6a6d
|
[
"Apache-2.0"
] | 12
|
2017-05-01T10:40:24.000Z
|
2018-05-30T03:09:50.000Z
|
tests/test_validate.py
|
tommilligan/pyqubes
|
8f9bccf2dc8b5f0eac75efd896bcba85eb3e6a6d
|
[
"Apache-2.0"
] | 3
|
2017-05-06T15:46:52.000Z
|
2017-05-06T16:27:30.000Z
|
tests/test_validate.py
|
tommilligan/pyqubes
|
8f9bccf2dc8b5f0eac75efd896bcba85eb3e6a6d
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
import unittest
import pyqubes.validate
import pyqubes.constants
class TestvalidateLinuxUsername(unittest.TestCase):
def test_validate_linux_username_valid_simple(self):
input_string = "foobar"
valid_input_string = pyqubes.validate.linux_username(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_linux_username_valid_complex(self):
input_string = "_f00-bar$"
valid_input_string = pyqubes.validate.linux_username(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_linux_username_invalid_spaces(self):
input_string = "foo bar"
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_username(input_string)
def test_validate_linux_username_invalid_numeric(self):
input_string = "1234foobar"
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_username(input_string)
def test_validate_linux_username_invalid_length_zero(self):
input_string = ""
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_username(input_string)
def test_validate_linux_username_invalid_length_long(self):
input_string = "fb" * 32
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_username(input_string)
class TestvalidateLinuxHostname(unittest.TestCase):
def test_validate_linux_hostname_valid_simple(self):
input_string = "foobar"
valid_input_string = pyqubes.validate.linux_hostname(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_linux_hostname_valid_constant(self):
input_string = pyqubes.constants.FEDORA_23
valid_input_string = pyqubes.validate.linux_hostname(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_linux_hostname_valid_complex(self):
input_string = "edge.had-oop.1234-"
valid_input_string = pyqubes.validate.linux_hostname(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_linux_hostname_invalid_spaces(self):
input_string = "foo bar"
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_hostname(input_string)
def test_validate_linux_hostname_invalid_period(self):
input_string = "."
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_hostname(input_string)
def test_validate_linux_hostname_invalid_trailing(self):
input_string = "trailing."
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_hostname(input_string)
def test_validate_linux_hostname_invalid_length_zero(self):
input_string = ""
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_hostname(input_string)
def test_validate_linux_hostname_invalid_length_long(self):
input_string = "fb" * 256
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.linux_hostname(input_string)
class TestvalidateFirewallPolicy(unittest.TestCase):
def test_validate_firewall_policy_valid(self):
input_string = "allow"
valid_input_string = pyqubes.validate.firewall_policy(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_firewall_policy_valid_constant(self):
input_string = pyqubes.constants.DENY
valid_input_string = pyqubes.validate.firewall_policy(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_firewall_policy_invalid_string(self):
input_string = "fooxbar"
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.firewall_policy(input_string)
def test_validate_firewall_policy_invalid_length_zero(self):
input_string = ""
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.firewall_policy(input_string)
class TestvalidateLabelColor(unittest.TestCase):
def test_validate_label_color_valid(self):
input_string = "orange"
valid_input_string = pyqubes.validate.label_color(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_label_color_valid_constant(self):
input_string = pyqubes.constants.GRAY
valid_input_string = pyqubes.validate.label_color(input_string)
self.assertEqual(valid_input_string, input_string)
def test_validate_label_color_invalid_string(self):
input_string = "fooxbar"
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.label_color(input_string)
def test_validate_label_color_invalid_length_zero(self):
input_string = ""
with self.assertRaises(ValueError):
valid_input_string = pyqubes.validate.label_color(input_string)
| 41.99187
| 79
| 0.7485
| 597
| 5,165
| 6.051926
| 0.103853
| 0.255743
| 0.137282
| 0.14005
| 0.905619
| 0.884583
| 0.841129
| 0.794354
| 0.779408
| 0.779408
| 0
| 0.00402
| 0.18122
| 5,165
| 122
| 80
| 42.336066
| 0.850319
| 0.003872
| 0
| 0.568421
| 0
| 0
| 0.019833
| 0
| 0
| 0
| 0
| 0
| 0.231579
| 1
| 0.231579
| false
| 0
| 0.031579
| 0
| 0.305263
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d052e5e2181888923a057ae38ee2830b44d4e2f9
| 188
|
py
|
Python
|
7_Modules/H_packages_02.py
|
Oscar-Oliveira/Python3
|
fa791225a6810b75890d24407b73c5e1b514acbe
|
[
"MIT"
] | null | null | null |
7_Modules/H_packages_02.py
|
Oscar-Oliveira/Python3
|
fa791225a6810b75890d24407b73c5e1b514acbe
|
[
"MIT"
] | null | null | null |
7_Modules/H_packages_02.py
|
Oscar-Oliveira/Python3
|
fa791225a6810b75890d24407b73c5e1b514acbe
|
[
"MIT"
] | null | null | null |
"""
Packages
"""
from Package1 import ModuleTest
import Package2.ModuleTest
print(ModuleTest.my_multiplier(15, 10))
print(Package2.ModuleTest.my_multiplier(15, 10)) # full Path
| 18.8
| 61
| 0.744681
| 23
| 188
| 6
| 0.565217
| 0.26087
| 0.318841
| 0.347826
| 0.376812
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068323
| 0.143617
| 188
| 9
| 62
| 20.888889
| 0.78882
| 0.101064
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 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
| 1
|
0
| 8
|
d07c110c99d7d6aa4adaa131f01e7ef00783c21d
| 208
|
py
|
Python
|
django_emailsupport/tasks.py
|
rosti-cz/django-emailsupport
|
908e347b1cc09d51096d2d14b4ccc3f1ccccc953
|
[
"MIT"
] | 2
|
2016-01-16T08:45:28.000Z
|
2017-11-15T19:30:52.000Z
|
django_emailsupport/tasks.py
|
rosti-cz/django-emailsupport
|
908e347b1cc09d51096d2d14b4ccc3f1ccccc953
|
[
"MIT"
] | null | null | null |
django_emailsupport/tasks.py
|
rosti-cz/django-emailsupport
|
908e347b1cc09d51096d2d14b4ccc3f1ccccc953
|
[
"MIT"
] | null | null | null |
from django.core.mail import send_mail as email_sender
def send_mail(subject, message, from_email, recipient_list, **kwargs):
return email_sender(subject, message, from_email, recipient_list, **kwargs)
| 34.666667
| 79
| 0.793269
| 30
| 208
| 5.233333
| 0.533333
| 0.101911
| 0.229299
| 0.292994
| 0.535032
| 0.535032
| 0.535032
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 208
| 5
| 80
| 41.6
| 0.853261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| 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
| 1
| 1
| 1
| 0
|
0
| 7
|
ef6c8c08915d03e4a438bf6b135967830ba66557
| 180
|
py
|
Python
|
reaver/models/base/__init__.py
|
HatsuneMiku4/reaver
|
059320ce109498ec4100fcc2cee32177c427f1ea
|
[
"MIT"
] | 239
|
2019-01-18T08:47:24.000Z
|
2022-03-21T08:29:50.000Z
|
reaver/models/base/__init__.py
|
HatsuneMiku4/reaver
|
059320ce109498ec4100fcc2cee32177c427f1ea
|
[
"MIT"
] | 19
|
2019-01-27T10:10:12.000Z
|
2021-12-29T20:02:05.000Z
|
reaver/models/base/__init__.py
|
HatsuneMiku4/reaver
|
059320ce109498ec4100fcc2cee32177c427f1ea
|
[
"MIT"
] | 44
|
2019-01-18T02:12:46.000Z
|
2021-07-28T14:54:10.000Z
|
import reaver.models.base.layers
from reaver.models.base.mlp import build_mlp
from reaver.models.base.cnn import build_cnn_nature
from reaver.models.base.policy import MultiPolicy
| 36
| 51
| 0.855556
| 29
| 180
| 5.206897
| 0.413793
| 0.317881
| 0.423841
| 0.397351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.077778
| 180
| 4
| 52
| 45
| 0.909639
| 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
|
efc070f5459abc2acebdb304e71912457a4893d9
| 2,177
|
py
|
Python
|
tests/snippets/set.py
|
evilpie/RustPython
|
2d22a882ae642d4b2e66b44008378da63e71f78f
|
[
"MIT"
] | null | null | null |
tests/snippets/set.py
|
evilpie/RustPython
|
2d22a882ae642d4b2e66b44008378da63e71f78f
|
[
"MIT"
] | null | null | null |
tests/snippets/set.py
|
evilpie/RustPython
|
2d22a882ae642d4b2e66b44008378da63e71f78f
|
[
"MIT"
] | null | null | null |
assert set([1,2]) == set([1,2])
assert not set([1,2,3]) == set([1,2])
assert set([1,2,3]) >= set([1,2])
assert set([1,2]) >= set([1,2])
assert not set([1,3]) >= set([1,2])
assert set([1,2,3]).issuperset(set([1,2]))
assert set([1,2]).issuperset(set([1,2]))
assert not set([1,3]).issuperset(set([1,2]))
assert set([1,2,3]) > set([1,2])
assert not set([1,2]) > set([1,2])
assert not set([1,3]) > set([1,2])
assert set([1,2]) <= set([1,2,3])
assert set([1,2]) <= set([1,2])
assert not set([1,3]) <= set([1,2])
assert set([1,2]).issubset(set([1,2,3]))
assert set([1,2]).issubset(set([1,2]))
assert not set([1,3]).issubset(set([1,2]))
assert set([1,2]) < set([1,2,3])
assert not set([1,2]) < set([1,2])
assert not set([1,3]) < set([1,2])
class Hashable(object):
def __init__(self, obj):
self.obj = obj
def __repr__(self):
return repr(self.obj)
def __hash__(self):
return id(self)
recursive = set()
recursive.add(Hashable(recursive))
assert repr(recursive) == "{set(...)}"
a = set([1, 2, 3])
assert len(a) == 3
a.clear()
assert len(a) == 0
assert set([1,2,3]).union(set([4,5])) == set([1,2,3,4,5])
assert set([1,2,3]).union(set([1,2,3,4,5])) == set([1,2,3,4,5])
assert set([1,2,3]) | set([4,5]) == set([1,2,3,4,5])
assert set([1,2,3]) | set([1,2,3,4,5]) == set([1,2,3,4,5])
assert set([1,2,3]).intersection(set([1,2])) == set([1,2])
assert set([1,2,3]).intersection(set([5,6])) == set([])
assert set([1,2,3]) & set([4,5]) == set([])
assert set([1,2,3]) & set([1,2,3,4,5]) == set([1,2,3])
assert set([1,2,3]).difference(set([1,2])) == set([3])
assert set([1,2,3]).difference(set([5,6])) == set([1,2,3])
assert set([1,2,3]) - set([4,5]) == set([1,2,3])
assert set([1,2,3]) - set([1,2,3,4,5]) == set([])
assert set([1,2,3]).symmetric_difference(set([1,2])) == set([3])
assert set([1,2,3]).symmetric_difference(set([5,6])) == set([1,2,3,5,6])
assert set([1,2,3]) ^ set([4,5]) == set([1,2,3,4,5])
assert set([1,2,3]) ^ set([1,2,3,4,5]) == set([4,5])
try:
set([[]])
except TypeError:
pass
else:
assert False, "TypeError was not raised"
try:
set().add([])
except TypeError:
pass
else:
assert False, "TypeError was not raised"
| 25.313953
| 72
| 0.55627
| 449
| 2,177
| 2.665924
| 0.089087
| 0.250627
| 0.288221
| 0.190476
| 0.83208
| 0.807018
| 0.807018
| 0.759399
| 0.631579
| 0.583124
| 0
| 0.122557
| 0.130455
| 2,177
| 85
| 73
| 25.611765
| 0.509773
| 0
| 0
| 0.16129
| 0
| 0
| 0.026654
| 0
| 0
| 0
| 0
| 0
| 0.66129
| 1
| 0.048387
| false
| 0.032258
| 0
| 0.032258
| 0.096774
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 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
|
efda50e7b61e07a5f279e8620f3f65e2d2b5f9d6
| 154
|
py
|
Python
|
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_0/_pkg0_0_0_0_1/__init__.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_0/_pkg0_0_0_0_1/__init__.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_0/_pkg0_0_0_0/_pkg0_0_0_0_1/__init__.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
from ._mod0_0_0_0_1_0 import *
from ._mod0_0_0_0_1_1 import *
from ._mod0_0_0_0_1_2 import *
from ._mod0_0_0_0_1_3 import *
from ._mod0_0_0_0_1_4 import *
| 30.8
| 30
| 0.811688
| 40
| 154
| 2.375
| 0.2
| 0.210526
| 0.473684
| 0.526316
| 0.884211
| 0.884211
| 0.757895
| 0
| 0
| 0
| 0
| 0.222222
| 0.123377
| 154
| 5
| 31
| 30.8
| 0.481481
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 11
|
eff28c6e22a1eda4ed5e2be7da988074e02b33f4
| 71,110
|
py
|
Python
|
src/sdk/python/OsduClient/api/register_api.py
|
Kyle-MSFT/self-managed-osdu
|
4d5117686a3d06c8d41565cdf0214c883515b148
|
[
"MIT"
] | 3
|
2021-11-05T20:52:54.000Z
|
2021-11-23T23:02:29.000Z
|
src/sdk/python/OsduClient/api/register_api.py
|
Kyle-MSFT/self-managed-osdu
|
4d5117686a3d06c8d41565cdf0214c883515b148
|
[
"MIT"
] | 4
|
2021-11-05T19:57:08.000Z
|
2021-12-14T13:59:04.000Z
|
src/sdk/python/OsduClient/api/register_api.py
|
Kyle-MSFT/self-managed-osdu
|
4d5117686a3d06c8d41565cdf0214c883515b148
|
[
"MIT"
] | 36
|
2021-08-31T20:58:25.000Z
|
2022-03-30T17:02:57.000Z
|
# coding: utf-8
"""
self-managed-osdu
Rest API Documentation for Self Managed OSDU # noqa: E501
OpenAPI spec version: 0.11.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from OsduClient.api_client import ApiClient
class RegisterApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create_a_ddms_registration(self, data_partition_id, **kwargs): # noqa: E501
"""Create a DDMS registration # noqa: E501
Create a DDMS registration using an OpenApi spec V3 document. Required roles: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_a_ddms_registration(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterDdms body:
:return: RegisterDdms
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_a_ddms_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.create_a_ddms_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
return data
def create_a_ddms_registration_with_http_info(self, data_partition_id, **kwargs): # noqa: E501
"""Create a DDMS registration # noqa: E501
Create a DDMS registration using an OpenApi spec V3 document. Required roles: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_a_ddms_registration_with_http_info(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterDdms body:
:return: RegisterDdms
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['data_partition_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_a_ddms_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `create_a_ddms_registration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/ddms', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RegisterDdms', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def create_a_subscription(self, data_partition_id, **kwargs): # noqa: E501
"""Create a subscription # noqa: E501
Create a subscription. Required roles: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_a_subscription(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterSubscription body:
:return: RegisterSubscriptionCreateResult
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_a_subscription_with_http_info(data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.create_a_subscription_with_http_info(data_partition_id, **kwargs) # noqa: E501
return data
def create_a_subscription_with_http_info(self, data_partition_id, **kwargs): # noqa: E501
"""Create a subscription # noqa: E501
Create a subscription. Required roles: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_a_subscription_with_http_info(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterSubscription body:
:return: RegisterSubscriptionCreateResult
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['data_partition_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_a_subscription" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `create_a_subscription`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/subscription', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RegisterSubscriptionCreateResult', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def create_an_action_registration(self, data_partition_id, **kwargs): # noqa: E501
"""Create an action registration # noqa: E501
Create an action registration. Required role: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_an_action_registration(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterCreateAction body:
:return: RegisterAction
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_an_action_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.create_an_action_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
return data
def create_an_action_registration_with_http_info(self, data_partition_id, **kwargs): # noqa: E501
"""Create an action registration # noqa: E501
Create an action registration. Required role: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_an_action_registration_with_http_info(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterCreateAction body:
:return: RegisterAction
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['data_partition_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_an_action_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `create_an_action_registration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/action', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RegisterAction', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_a_ddms_registration(self, id, data_partition_id, **kwargs): # noqa: E501
"""Delete a DDMS registration # noqa: E501
Delete a DDMS registration with the given id. Required roles: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_a_ddms_registration(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_a_ddms_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.delete_a_ddms_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
return data
def delete_a_ddms_registration_with_http_info(self, id, data_partition_id, **kwargs): # noqa: E501
"""Delete a DDMS registration # noqa: E501
Delete a DDMS registration with the given id. Required roles: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_a_ddms_registration_with_http_info(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_a_ddms_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in params or
params['id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `id` when calling `delete_a_ddms_registration`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `delete_a_ddms_registration`") # noqa: E501
if self.api_client.client_side_validation and ('id' in params and not re.search(r'^[A-Za-z0-9-]{2,50}', params['id'])): # noqa: E501
raise ValueError("Invalid value for parameter `id` when calling `delete_a_ddms_registration`, must conform to the pattern `/^[A-Za-z0-9-]{2,50}/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/ddms/{id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_a_subscription_by_id(self, id, data_partition_id, **kwargs): # noqa: E501
"""Delete a subscription # noqa: E501
Delete a subscription with its Id. Required role: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_a_subscription_by_id(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_a_subscription_by_id_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.delete_a_subscription_by_id_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
return data
def delete_a_subscription_by_id_with_http_info(self, id, data_partition_id, **kwargs): # noqa: E501
"""Delete a subscription # noqa: E501
Delete a subscription with its Id. Required role: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_a_subscription_by_id_with_http_info(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_a_subscription_by_id" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in params or
params['id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `id` when calling `delete_a_subscription_by_id`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `delete_a_subscription_by_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/subscription/{id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_an_action_registration(self, id, data_partition_id, **kwargs): # noqa: E501
"""Delete an action registration # noqa: E501
Delete an action registration with the given id. Required role: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_an_action_registration(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_an_action_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.delete_an_action_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
return data
def delete_an_action_registration_with_http_info(self, id, data_partition_id, **kwargs): # noqa: E501
"""Delete an action registration # noqa: E501
Delete an action registration with the given id. Required role: 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_an_action_registration_with_http_info(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_an_action_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in params or
params['id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `id` when calling `delete_an_action_registration`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `delete_an_action_registration`") # noqa: E501
if self.api_client.client_side_validation and ('id' in params and not re.search(r'^[A-Za-z0-9-]{2,50}', params['id'])): # noqa: E501
raise ValueError("Invalid value for parameter `id` when calling `delete_an_action_registration`, must conform to the pattern `/^[A-Za-z0-9-]{2,50}/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/action/{id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_a_ddms_registration(self, id, data_partition_id, **kwargs): # noqa: E501
"""Get a DDMS registration # noqa: E501
Get a DDMS registration with the given id. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # 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_a_ddms_registration(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: RegisterDdms
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_a_ddms_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.get_a_ddms_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
return data
def get_a_ddms_registration_with_http_info(self, id, data_partition_id, **kwargs): # noqa: E501
"""Get a DDMS registration # noqa: E501
Get a DDMS registration with the given id. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # 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_a_ddms_registration_with_http_info(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: RegisterDdms
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_a_ddms_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in params or
params['id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `id` when calling `get_a_ddms_registration`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `get_a_ddms_registration`") # noqa: E501
if self.api_client.client_side_validation and ('id' in params and not re.search(r'^[A-Za-z0-9-]{2,50}', params['id'])): # noqa: E501
raise ValueError("Invalid value for parameter `id` when calling `get_a_ddms_registration`, must conform to the pattern `/^[A-Za-z0-9-]{2,50}/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/ddms/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RegisterDdms', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_a_subscription_by_id(self, id, data_partition_id, **kwargs): # noqa: E501
"""Get a subscription # noqa: E501
Get a subscription with its Id. Required role: 'users.datalake.editors' or 'users.datalake.admins' # 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_a_subscription_by_id(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: RegisterGetSubscriptionResult
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_a_subscription_by_id_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.get_a_subscription_by_id_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
return data
def get_a_subscription_by_id_with_http_info(self, id, data_partition_id, **kwargs): # noqa: E501
"""Get a subscription # noqa: E501
Get a subscription with its Id. Required role: 'users.datalake.editors' or 'users.datalake.admins' # 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_a_subscription_by_id_with_http_info(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: RegisterGetSubscriptionResult
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_a_subscription_by_id" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in params or
params['id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `id` when calling `get_a_subscription_by_id`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `get_a_subscription_by_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/subscription/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RegisterGetSubscriptionResult', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_an_action_registration(self, id, data_partition_id, **kwargs): # noqa: E501
"""Get an action registration # noqa: E501
Get an action registration with the given id. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # 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_an_action_registration(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: RegisterAction
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_an_action_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.get_an_action_registration_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
return data
def get_an_action_registration_with_http_info(self, id, data_partition_id, **kwargs): # noqa: E501
"""Get an action registration # noqa: E501
Get an action registration with the given id. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # 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_an_action_registration_with_http_info(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: RegisterAction
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_an_action_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in params or
params['id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `id` when calling `get_an_action_registration`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `get_an_action_registration`") # noqa: E501
if self.api_client.client_side_validation and ('id' in params and not re.search(r'^[A-Za-z0-9-]{2,50}', params['id'])): # noqa: E501
raise ValueError("Invalid value for parameter `id` when calling `get_an_action_registration`, must conform to the pattern `/^[A-Za-z0-9-]{2,50}/`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/action/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RegisterAction', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_all_topics(self, data_partition_id, **kwargs): # noqa: E501
"""List all topics # noqa: E501
List all topics that you can create a subscription for, along with the corresponding sample messages. Required role: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_all_topics(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: list[RegisterTopic]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_all_topics_with_http_info(data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.list_all_topics_with_http_info(data_partition_id, **kwargs) # noqa: E501
return data
def list_all_topics_with_http_info(self, data_partition_id, **kwargs): # noqa: E501
"""List all topics # noqa: E501
List all topics that you can create a subscription for, along with the corresponding sample messages. Required role: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_all_topics_with_http_info(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: list[RegisterTopic]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_all_topics" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `list_all_topics`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/topics', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[RegisterTopic]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def query_a_ddms_registration(self, type, data_partition_id, **kwargs): # noqa: E501
"""Query for DDMS registrations # noqa: E501
Query for DDMS registrations allowing retrievals by type. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.query_a_ddms_registration(type, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str type: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: list[RegisterDdms]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.query_a_ddms_registration_with_http_info(type, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.query_a_ddms_registration_with_http_info(type, data_partition_id, **kwargs) # noqa: E501
return data
def query_a_ddms_registration_with_http_info(self, type, data_partition_id, **kwargs): # noqa: E501
"""Query for DDMS registrations # noqa: E501
Query for DDMS registrations allowing retrievals by type. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.query_a_ddms_registration_with_http_info(type, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str type: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:return: list[RegisterDdms]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['type', 'data_partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method query_a_ddms_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'type' is set
if self.api_client.client_side_validation and ('type' not in params or
params['type'] is None): # noqa: E501
raise ValueError("Missing the required parameter `type` when calling `query_a_ddms_registration`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `query_a_ddms_registration`") # noqa: E501
if self.api_client.client_side_validation and ('type' in params and not re.search(r'^[A-Za-z0-9 ]{2,50}', params['type'])): # noqa: E501
raise ValueError("Invalid value for parameter `type` when calling `query_a_ddms_registration`, must conform to the pattern `/^[A-Za-z0-9 ]{2,50}/`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
if 'type' in params:
query_params.append(('type', params['type'])) # noqa: E501
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/ddms', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[RegisterDdms]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def retrieve_an_action_registration(self, data_partition_id, **kwargs): # noqa: E501
"""Query for action registrations and substitutes any action with the given parameters # noqa: E501
Retrieve an action registration. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.retrieve_an_action_registration(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterRecord body: The Record to find matching actions for and apply the template for.
:return: list[RegisterAction]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.retrieve_an_action_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.retrieve_an_action_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
return data
def retrieve_an_action_registration_with_http_info(self, data_partition_id, **kwargs): # noqa: E501
"""Query for action registrations and substitutes any action with the given parameters # noqa: E501
Retrieve an action registration. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.retrieve_an_action_registration_with_http_info(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterRecord body: The Record to find matching actions for and apply the template for.
:return: list[RegisterAction]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['data_partition_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method retrieve_an_action_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `retrieve_an_action_registration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/action:retrieve', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[RegisterAction]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def test_an_action_registration(self, data_partition_id, **kwargs): # noqa: E501
"""Test an action registration # noqa: E501
Test an action registration. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.test_an_action_registration(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterTestAction body:
:return: RegisterTestActionResult
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.test_an_action_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.test_an_action_registration_with_http_info(data_partition_id, **kwargs) # noqa: E501
return data
def test_an_action_registration_with_http_info(self, data_partition_id, **kwargs): # noqa: E501
"""Test an action registration # noqa: E501
Test an action registration. Required roles: 'users.datalake.viewers' or 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.test_an_action_registration_with_http_info(data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterTestAction body:
:return: RegisterTestActionResult
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['data_partition_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method test_an_action_registration" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `test_an_action_registration`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/action:test', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RegisterTestActionResult', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_secret_for_subscription(self, id, data_partition_id, **kwargs): # noqa: E501
"""Update secret for subscription # noqa: E501
Update secret for a subscription. Required role: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_secret_for_subscription(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterSecret body:
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_secret_for_subscription_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
else:
(data) = self.update_secret_for_subscription_with_http_info(id, data_partition_id, **kwargs) # noqa: E501
return data
def update_secret_for_subscription_with_http_info(self, id, data_partition_id, **kwargs): # noqa: E501
"""Update secret for subscription # noqa: E501
Update secret for a subscription. Required role: 'users.datalake.editors' or 'users.datalake.admins' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_secret_for_subscription_with_http_info(id, data_partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: (required)
:param str data_partition_id: Specifies the partition to use. This should be either the partition name associated with the partition. (required)
:param RegisterSecret body:
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'data_partition_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_secret_for_subscription" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'id' is set
if self.api_client.client_side_validation and ('id' not in params or
params['id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `id` when calling `update_secret_for_subscription`") # noqa: E501
# verify the required parameter 'data_partition_id' is set
if self.api_client.client_side_validation and ('data_partition_id' not in params or
params['data_partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `data_partition_id` when calling `update_secret_for_subscription`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'data_partition_id' in params:
header_params['data-partition-id'] = params['data_partition_id'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/register/v1/subscription/{id}/secret', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 46.813693
| 190
| 0.632344
| 8,471
| 71,110
| 5.052414
| 0.026325
| 0.051029
| 0.078507
| 0.027477
| 0.983621
| 0.981121
| 0.98035
| 0.976495
| 0.974088
| 0.971869
| 0
| 0.017486
| 0.280228
| 71,110
| 1,518
| 191
| 46.844532
| 0.818709
| 0.353031
| 0
| 0.82104
| 1
| 0.006046
| 0.212951
| 0.060226
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035067
| false
| 0
| 0.004837
| 0
| 0.091898
| 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
|
4bc8a2034c931f2f9b8c62ed47e8166cbd91f43e
| 491
|
py
|
Python
|
src/runtime/tests/fake_app_library/app/main.py
|
dslab-epfl/svshi
|
0b0f62931698bfd670dae3117078889d966688de
|
[
"MIT"
] | 1
|
2022-02-11T14:54:49.000Z
|
2022-02-11T14:54:49.000Z
|
src/runtime/tests/fake_app_library/app/main.py
|
dslab-epfl/svshi
|
0b0f62931698bfd670dae3117078889d966688de
|
[
"MIT"
] | null | null | null |
src/runtime/tests/fake_app_library/app/main.py
|
dslab-epfl/svshi
|
0b0f62931698bfd670dae3117078889d966688de
|
[
"MIT"
] | null | null | null |
from devices import BINARY_SENSOR_INSTANCE_NAME, SWITCH_INSTANCE_NAME, TEMPERATURE_SENSOR_INSTANCE_NAME, HUMIDITY_SENSOR_INSTANCE_NAME
def invariant() -> bool:
# Write the invariants of the app here
# It can be any boolean expressions containing the read properties of the devices and constants
return HUMIDITY_SENSOR_INSTANCE_NAME.read() < 82
def iteration():
# Write your app code here
if HUMIDITY_SENSOR_INSTANCE_NAME.read() > 30:
SWITCH_INSTANCE_NAME.on()
| 37.769231
| 134
| 0.778004
| 68
| 491
| 5.338235
| 0.558824
| 0.231405
| 0.247934
| 0.214876
| 0.165289
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009804
| 0.169043
| 491
| 12
| 135
| 40.916667
| 0.879902
| 0.315682
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.166667
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 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
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
4bde294263410e09b57a019729fa0c90d4e5e515
| 181
|
py
|
Python
|
operators/convolutional_layers_operators.py
|
deepcrime-tool/DeepCrime
|
b6ba1b99757d0106176a35d1059cf549f39fa780
|
[
"MIT"
] | 1
|
2021-05-26T15:26:36.000Z
|
2021-05-26T15:26:36.000Z
|
operators/convolutional_layers_operators.py
|
deepcrime-tool/DeepCrime
|
b6ba1b99757d0106176a35d1059cf549f39fa780
|
[
"MIT"
] | null | null | null |
operators/convolutional_layers_operators.py
|
deepcrime-tool/DeepCrime
|
b6ba1b99757d0106176a35d1059cf549f39fa780
|
[
"MIT"
] | null | null | null |
def mutate_kernel_size(kernel):
return None
def mutate_stride(stride):
return None
def mutate_padding(padding):
return None
def mutate_filter(filter):
return None
| 16.454545
| 31
| 0.745856
| 25
| 181
| 5.2
| 0.36
| 0.276923
| 0.3
| 0.438462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.187845
| 181
| 11
| 32
| 16.454545
| 0.884354
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
4be0524b6d45ec6169ba06697c9036e4f9631238
| 1,035
|
py
|
Python
|
main.py
|
vitaliiseuk/Auto-Mac-App-Installer
|
59ae503397f60e98482a372545c6a3585cfebf88
|
[
"MIT"
] | null | null | null |
main.py
|
vitaliiseuk/Auto-Mac-App-Installer
|
59ae503397f60e98482a372545c6a3585cfebf88
|
[
"MIT"
] | null | null | null |
main.py
|
vitaliiseuk/Auto-Mac-App-Installer
|
59ae503397f60e98482a372545c6a3585cfebf88
|
[
"MIT"
] | null | null | null |
import commands
import time
import getpass
import os
def main():
cmd = 'open wine.dmg'
a = commands.getstatusoutput(cmd)
print 'Wine package opened.'
time.sleep(8)
cmd = 'cp -a /Volumes/WineBottler\ Combo/Wine.app /Applications'
print 'on installing...'
a = commands.getstatusoutput(cmd)
print 'Finished.'
cmd = 'diskutil unmount /Volumes/WineBottler\ Combo/'
a = commands.getstatusoutput(cmd)
cmd = 'open sample.exe'
a = commands.getstatusoutput(cmd)
paths = dict()
with open('urls.txt') as fp:
for item in fp:
temp = item.split('=')
paths[temp[0]] = temp[1].strip('\n')
user_name = getpass.getuser()
url_check = '/Users/' + user_name + paths['RUN_PATH']
temp1 = paths['RUN_PATH'].replace(' ', '\ ')
url = '/Users/' + user_name + temp1
while True:
time.sleep(8)
if os.path.exists(url_check):
cmd = 'open ' + url
a = commands.getstatusoutput(cmd)
break
cmd = 'cp -a ../../../run.app ~/Desktop'
a = commands.getstatusoutput(cmd)
pass
if __name__ == '__main__':
main()
| 1,035
| 1,035
| 0.65314
| 139
| 1,035
| 4.755396
| 0.460432
| 0.081694
| 0.217852
| 0.245083
| 0.096823
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007109
| 0.184541
| 1,035
| 1
| 1,035
| 1,035
| 0.776066
| 0
| 0
| 0.216216
| 0
| 0
| 0.253861
| 0.040541
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.081081
| 0.108108
| null | null | 0.081081
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
4bef7613489c5d2bddef5ce010e42e9fb9902c77
| 9,121
|
py
|
Python
|
vb2py/test_at_scale/testabhijeetviswa.py
|
ceprio/xl_vb2py
|
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
|
[
"BSD-3-Clause"
] | null | null | null |
vb2py/test_at_scale/testabhijeetviswa.py
|
ceprio/xl_vb2py
|
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
|
[
"BSD-3-Clause"
] | null | null | null |
vb2py/test_at_scale/testabhijeetviswa.py
|
ceprio/xl_vb2py
|
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
|
[
"BSD-3-Clause"
] | null | null | null |
import unittest
from vb2py.test_at_scale import file_tester
class Test_abhijeetviswa(file_tester.FileTester):
def test0(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modDatabase.bas')
def test1(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modConstants.bas')
def test2(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modCombat.bas')
def test3(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modQuest.bas')
def test4(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modGeneral.bas')
def test5(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modSysTray.bas')
def test6(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modGlobals.bas')
def test7(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modServerLoop.bas')
def test8(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modCustomScripts.bas')
def test9(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modHandleData.bas')
def test10(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modPlayer.bas')
def test11(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/frmServer.frm')
def test12(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modCommands.bas')
def test13(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modEventLogic.bas')
def test14(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/clsBuffer.cls')
def test15(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modServerTCP.bas')
def test16(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modEnumerations.bas')
def test17(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modTypes.bas')
def test18(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Server/src/modGameLogic.bas')
def test19(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmCharEditor.frm')
def test20(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modDatabase.bas')
def test21(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modConstants.bas')
def test22(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/cSelfSubHookCallback.cls')
def test23(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Shop.frm')
def test24(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/cGDIpToken.cls')
def test25(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmAdmin.frm')
def test26(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modQuest.bas')
def test27(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Events.frm')
def test28(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmSendGetData.frm')
def test29(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmMenu.frm')
def test30(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/cGDIpMultiImage.cls')
def test31(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modGeneral.bas')
def test32(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_NPC.frm')
def test33(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modAdvMapEditor.bas')
def test34(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmMapReport.frm')
def test35(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modGlobals.bas')
def test36(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmMapPreview.frm')
def test37(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Animation.frm')
def test38(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmItemDesc.frm')
def test39(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modRendering.bas')
def test40(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmAlert.frm')
def test41(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Emoticon.frm')
def test42(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmMain.frm')
def test43(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modHandleData.bas')
def test44(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Resource.frm')
def test45(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/clsAudio.cls')
def test46(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Ban.frm')
def test47(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Moral.frm')
def test48(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modText.bas')
def test49(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modClientTCP.bas')
def test50(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modCommands.bas')
def test51(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Spell.frm')
def test52(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/cGDIpPenBrush.cls')
def test53(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modGameEditors.bas')
def test54(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/clsBuffer.cls')
def test55(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Item.frm')
def test56(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_MapProperties.frm')
def test57(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/cGDIpImage.cls')
def test58(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Title.frm')
def test59(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modEnumerations.bas')
def test60(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modInput.bas')
def test61(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modTypes.bas')
def test62(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Map.frm')
def test63(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Class.frm')
def test64(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modBass.bas')
def test65(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modGDIPlusResize.bas')
def test66(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmItemSpawner.frm')
def test67(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/cGDIpRenderer.cls')
def test68(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/modGameLogic.bas')
def test69(self):
self._testFile('/Users/paul/Workspace/sandbox/vb2py-git-files/abhijeetviswa/Client/src/frmEditor_Quest.frm')
if __name__ == '__main__':
unittest.main()
| 41.271493
| 118
| 0.789277
| 1,226
| 9,121
| 5.792007
| 0.12969
| 0.078862
| 0.157724
| 0.207013
| 0.768202
| 0.768202
| 0.768202
| 0.768202
| 0.768202
| 0.768202
| 0
| 0.02334
| 0.055805
| 9,121
| 220
| 119
| 41.459091
| 0.801208
| 0
| 0
| 0
| 0
| 0.482759
| 0.669956
| 0.669079
| 0
| 0
| 0
| 0
| 0
| 1
| 0.482759
| false
| 0
| 0.013793
| 0
| 0.503448
| 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
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
ef21f49037d821b2dfb3fe9ec582ec82280d1dc3
| 43
|
py
|
Python
|
colabtweak/__init__.py
|
kmedian/colabtweak
|
748fca67db0b7f400f59f8e06e86b54342b02bd7
|
[
"MIT"
] | 2
|
2020-04-17T12:52:44.000Z
|
2020-09-22T12:36:54.000Z
|
colabtweak/__init__.py
|
kmedian/colabtweak
|
748fca67db0b7f400f59f8e06e86b54342b02bd7
|
[
"MIT"
] | 3
|
2018-10-31T06:36:24.000Z
|
2019-12-01T10:50:59.000Z
|
colabtweak/__init__.py
|
kmedian/colabtweak
|
748fca67db0b7f400f59f8e06e86b54342b02bd7
|
[
"MIT"
] | null | null | null |
from .load_data_path import load_data_path
| 21.5
| 42
| 0.883721
| 8
| 43
| 4.25
| 0.625
| 0.470588
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093023
| 43
| 1
| 43
| 43
| 0.871795
| 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
| 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
| 0
| 0
|
0
| 7
|
322c580d8102a0aa3650cc85a6674634cb671321
| 22,494
|
py
|
Python
|
opportunity/tracker/migrations/0001_initial.py
|
kern3020/opportunity
|
cc842876e93d949e205b124d90e8d54149d81993
|
[
"MIT"
] | null | null | null |
opportunity/tracker/migrations/0001_initial.py
|
kern3020/opportunity
|
cc842876e93d949e205b124d90e8d54149d81993
|
[
"MIT"
] | null | null | null |
opportunity/tracker/migrations/0001_initial.py
|
kern3020/opportunity
|
cc842876e93d949e205b124d90e8d54149d81993
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'UserProfile'
db.create_table('tracker_userprofile', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
('title', self.gf('django.db.models.fields.CharField')(max_length=32)),
))
db.send_create_signal('tracker', ['UserProfile'])
# Adding model 'Company'
db.create_table('tracker_company', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=32)),
('division', self.gf('django.db.models.fields.CharField')(max_length=64, null=True, blank=True)),
('address', self.gf('django.db.models.fields.CharField')(max_length=128)),
('city', self.gf('django.db.models.fields.CharField')(max_length=32)),
('state_province', self.gf('django.db.models.fields.CharField')(max_length=32)),
('country', self.gf('django.db.models.fields.CharField')(max_length=3)),
('zipCode', self.gf('django.db.models.fields.CharField')(max_length=16, null=True, blank=True)),
('website', self.gf('django.db.models.fields.URLField')(max_length=200)),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
))
db.send_create_signal('tracker', ['Company'])
# Adding model 'Person'
db.create_table('tracker_person', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('first_name', self.gf('django.db.models.fields.CharField')(max_length=16)),
('last_name', self.gf('django.db.models.fields.CharField')(max_length=16)),
('title', self.gf('django.db.models.fields.CharField')(max_length=64)),
('company', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Company'], unique=True, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
))
db.send_create_signal('tracker', ['Person'])
# Adding model 'Position'
db.create_table('tracker_position', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('company', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Company'], unique=True)),
('title', self.gf('django.db.models.fields.CharField')(max_length=64)),
('website', self.gf('django.db.models.fields.URLField')(max_length=200)),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
))
db.send_create_signal('tracker', ['Position'])
# Adding model 'Interview'
db.create_table('tracker_interview', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('when', self.gf('django.db.models.fields.DateField')()),
('time', self.gf('django.db.models.fields.TimeField')()),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
('position', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Position'], unique=True)),
('withWhom', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Person'])),
))
db.send_create_signal('tracker', ['Interview'])
# Adding model 'Apply'
db.create_table('tracker_apply', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('when', self.gf('django.db.models.fields.DateField')()),
('time', self.gf('django.db.models.fields.TimeField')()),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
('position', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Position'], unique=True)),
))
db.send_create_signal('tracker', ['Apply'])
# Adding model 'Networking'
db.create_table('tracker_networking', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('when', self.gf('django.db.models.fields.DateField')()),
('time', self.gf('django.db.models.fields.TimeField')()),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
('venue', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Company'], unique=True)),
))
db.send_create_signal('tracker', ['Networking'])
# Adding model 'Lunch'
db.create_table('tracker_lunch', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('when', self.gf('django.db.models.fields.DateField')()),
('time', self.gf('django.db.models.fields.TimeField')()),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
('withWhom', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Person'])),
('venue', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
))
db.send_create_signal('tracker', ['Lunch'])
# Adding model 'Gratitude'
db.create_table('tracker_gratitude', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('when', self.gf('django.db.models.fields.DateField')()),
('time', self.gf('django.db.models.fields.TimeField')()),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
('person', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Person'], unique=True)),
))
db.send_create_signal('tracker', ['Gratitude'])
# Adding model 'Conversation'
db.create_table('tracker_conversation', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('when', self.gf('django.db.models.fields.DateField')()),
('time', self.gf('django.db.models.fields.TimeField')()),
('comment', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
('via', self.gf('django.db.models.fields.CharField')(max_length=16)),
('person', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.Person'], unique=True)),
))
db.send_create_signal('tracker', ['Conversation'])
# Adding model 'Pitch'
db.create_table('tracker_pitch', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('role', self.gf('django.db.models.fields.CharField')(max_length=32)),
('thePitch', self.gf('django.db.models.fields.CharField')(max_length=256)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
))
db.send_create_signal('tracker', ['Pitch'])
# Adding model 'OnlinePresence'
db.create_table('tracker_onlinepresence', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=32)),
('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
))
db.send_create_signal('tracker', ['OnlinePresence'])
# Adding model 'PAR'
db.create_table('tracker_par', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('question', self.gf('django.db.models.fields.CharField')(max_length=128)),
('par_response', self.gf('django.db.models.fields.TextField')()),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['tracker.UserProfile'])),
))
db.send_create_signal('tracker', ['PAR'])
def backwards(self, orm):
# Deleting model 'UserProfile'
db.delete_table('tracker_userprofile')
# Deleting model 'Company'
db.delete_table('tracker_company')
# Deleting model 'Person'
db.delete_table('tracker_person')
# Deleting model 'Position'
db.delete_table('tracker_position')
# Deleting model 'Interview'
db.delete_table('tracker_interview')
# Deleting model 'Apply'
db.delete_table('tracker_apply')
# Deleting model 'Networking'
db.delete_table('tracker_networking')
# Deleting model 'Lunch'
db.delete_table('tracker_lunch')
# Deleting model 'Gratitude'
db.delete_table('tracker_gratitude')
# Deleting model 'Conversation'
db.delete_table('tracker_conversation')
# Deleting model 'Pitch'
db.delete_table('tracker_pitch')
# Deleting model 'OnlinePresence'
db.delete_table('tracker_onlinepresence')
# Deleting model 'PAR'
db.delete_table('tracker_par')
models = {
'auth.group': {
'Meta': {'object_name': 'Group'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
'auth.permission': {
'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'auth.user': {
'Meta': {'object_name': 'User'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'tracker.apply': {
'Meta': {'ordering': "['when']", 'object_name': 'Apply'},
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'position': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Position']", 'unique': 'True'}),
'time': ('django.db.models.fields.TimeField', [], {}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'when': ('django.db.models.fields.DateField', [], {})
},
'tracker.company': {
'Meta': {'ordering': "['name']", 'object_name': 'Company'},
'address': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'city': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'country': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
'division': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
'state_province': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'website': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
'zipCode': ('django.db.models.fields.CharField', [], {'max_length': '16', 'null': 'True', 'blank': 'True'})
},
'tracker.conversation': {
'Meta': {'ordering': "['when']", 'object_name': 'Conversation'},
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'person': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Person']", 'unique': 'True'}),
'time': ('django.db.models.fields.TimeField', [], {}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'via': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
'when': ('django.db.models.fields.DateField', [], {})
},
'tracker.gratitude': {
'Meta': {'ordering': "['when']", 'object_name': 'Gratitude'},
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'person': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Person']", 'unique': 'True'}),
'time': ('django.db.models.fields.TimeField', [], {}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'when': ('django.db.models.fields.DateField', [], {})
},
'tracker.interview': {
'Meta': {'ordering': "['when']", 'object_name': 'Interview'},
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'position': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Position']", 'unique': 'True'}),
'time': ('django.db.models.fields.TimeField', [], {}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'when': ('django.db.models.fields.DateField', [], {}),
'withWhom': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Person']"})
},
'tracker.lunch': {
'Meta': {'ordering': "['when']", 'object_name': 'Lunch'},
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'time': ('django.db.models.fields.TimeField', [], {}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'venue': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
'when': ('django.db.models.fields.DateField', [], {}),
'withWhom': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Person']"})
},
'tracker.networking': {
'Meta': {'ordering': "['when']", 'object_name': 'Networking'},
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'time': ('django.db.models.fields.TimeField', [], {}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'venue': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Company']", 'unique': 'True'}),
'when': ('django.db.models.fields.DateField', [], {})
},
'tracker.onlinepresence': {
'Meta': {'ordering': "['name']", 'object_name': 'OnlinePresence'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"})
},
'tracker.par': {
'Meta': {'ordering': "['question']", 'object_name': 'PAR'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'par_response': ('django.db.models.fields.TextField', [], {}),
'question': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"})
},
'tracker.person': {
'Meta': {'object_name': 'Person'},
'company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Company']", 'unique': 'True', 'null': 'True', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"})
},
'tracker.pitch': {
'Meta': {'object_name': 'Pitch'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'role': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
'thePitch': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"})
},
'tracker.position': {
'Meta': {'ordering': "['title']", 'object_name': 'Position'},
'comment': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
'company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.Company']", 'unique': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['tracker.UserProfile']"}),
'website': ('django.db.models.fields.URLField', [], {'max_length': '200'})
},
'tracker.userprofile': {
'Meta': {'object_name': 'UserProfile'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
}
}
complete_apps = ['tracker']
| 64.268571
| 182
| 0.576687
| 2,414
| 22,494
| 5.279619
| 0.05551
| 0.112358
| 0.195528
| 0.279325
| 0.806905
| 0.78368
| 0.776618
| 0.759121
| 0.733229
| 0.672813
| 0
| 0.009564
| 0.195874
| 22,494
| 350
| 183
| 64.268571
| 0.695046
| 0.02983
| 0
| 0.443299
| 0
| 0
| 0.515507
| 0.326849
| 0
| 0
| 0
| 0
| 0
| 1
| 0.006873
| false
| 0.003436
| 0.013746
| 0
| 0.030928
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
324818ad4c2ccf3d444c68b906f147a04fe401c4
| 15,192
|
py
|
Python
|
script/lib/get_drone_cmd.py
|
cyberphantom/Selfie-Drone-Stick
|
7ac9fa49445c63a4fdbcb20db47ae877624ea03b
|
[
"MIT"
] | 2
|
2021-07-29T00:55:43.000Z
|
2022-03-21T17:36:51.000Z
|
script/lib/get_drone_cmd.py
|
cyberphantom/Selfie-Drone-Stick
|
7ac9fa49445c63a4fdbcb20db47ae877624ea03b
|
[
"MIT"
] | null | null | null |
script/lib/get_drone_cmd.py
|
cyberphantom/Selfie-Drone-Stick
|
7ac9fa49445c63a4fdbcb20db47ae877624ea03b
|
[
"MIT"
] | 1
|
2022-03-21T17:36:52.000Z
|
2022-03-21T17:36:52.000Z
|
#!/usr/bin/env python
from geometry_msgs.msg import Twist
def cmdVel(ac, vel):
vel_cmd = Twist()
action = ac
if action == 0: # Hover
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
if action == 1: # Forward
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 2: # Forward + Tilt Left
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 3: # Forward + Tilt Left + Ang Left
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 4: # Forward + Tilt Left + Ang Right
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 5: # Forward + Tilt Right
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 6: # Forward + Tilt Right + Ang Left
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 7: # Forward + Tilt Right + Ang Right
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 8: # Forward + Up
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 9: # Forward + Down
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 10: # Forward + Ang Left
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 11: # Forward + Ang Right
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 12: # Forward + Tilt Left + Up
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 13: # Forward + Tilt Left + Down
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 14: # Forward + Tilt Right + Up
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 15: # Forward + Tilt Right + Down
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 16: # Forward + Up + Ang Left
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = vel
elif action == 17: # Forward + Up + Ang Right
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = -vel
elif action == 18: # Forward + Down + Ang Left
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = vel
elif action == 19: # Forward + Down + Ang Right
vel_cmd.linear.x = vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = -vel
elif action == 20: # Backword
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 21: # Backword + Tilt Left
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 22: # Backword + Tilt Left + Ang Left
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 23: # Backword + Tilt Left + Ang Right
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 24: # Backword + Tilt Right
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 25: # Backword + Tilt Right + Ang Left
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 26: # Backword + Tilt Right + Ang Right
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 27: # Backword + Up
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 28: # Backword + Down
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 29: # Backword + Ang Left
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 30: # Backword + Ang Right
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 31: # Backword + Tilt Left + Up
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 32: # Backword + Tilt Left + Down
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 33: # Backword + Tilt Right + Up
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 34: # Backword + Tilt Right + Down
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 35: # Backword + Up + Ang Left
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = vel
elif action == 36: # Backword + Up + Ang Right
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = -vel
elif action == 37: # Backword + Down + Ang Left
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = vel
elif action == 38: # Backword + Down + Ang Right
vel_cmd.linear.x = -vel
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = -vel
elif action == 39: # Tilt Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 40: # Tilt Left + Up
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 41: # Tilt Left + Down
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 42: # Tilt Left + Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 43: # Tilt Left + Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 44: # Tilt Left + Up + Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = vel
elif action == 45: # Tilt Left + Up + Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = -vel
elif action == 46: # Tilt Left + Down + Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = vel
elif action == 47: # Tilt Left + Down + Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = -vel
elif action == 48: # Tilt Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = 0.0
elif action == 49: # Tilt Right + Up
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 50: # Tilt Right + Down
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 51: # Tilt Right + Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 52: # Tilt Right + Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
elif action == 53: # Tilt Right + Up + Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = vel
elif action == 54: # Tilt Right + Up + Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = -vel
elif action == 55: # Tilt Right + Down + Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = vel
elif action == 56: # Tilt Right + Down + Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = -vel
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = -vel
elif action == 57: # Up
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = 0.0
elif action == 58: # Down
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = 0.0
elif action == 59: # Up + Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = vel
vel_cmd.angular.z = vel
elif action == 60: # Down + Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = -vel
vel_cmd.angular.z = -vel
elif action == 61: # Ang Left
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = vel
elif action == 62: # Ang Right
vel_cmd.linear.x = 0.0
vel_cmd.angular.x = 0.0
vel_cmd.linear.y = 0.0
vel_cmd.angular.y = 0.0
vel_cmd.linear.z = 0.0
vel_cmd.angular.z = -vel
return vel_cmd
| 29.614035
| 59
| 0.540482
| 2,554
| 15,192
| 3.065779
| 0.037588
| 0.291188
| 0.12963
| 0.207407
| 0.925926
| 0.925926
| 0.924904
| 0.920562
| 0.91622
| 0.91622
| 0
| 0.057594
| 0.341693
| 15,192
| 513
| 60
| 29.614035
| 0.725327
| 0.092549
| 0
| 0.847534
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002242
| false
| 0
| 0.002242
| 0
| 0.006726
| 0
| 0
| 0
| 0
| null | 1
| 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
| 9
|
32b3b5e397e0ecd91eb15298c06bf67c9980ab26
| 9,734
|
py
|
Python
|
tsc/models/.ipynb_checkpoints/lrs_layer-checkpoint.py
|
vishalbelsare/seq2tens
|
e5d1160dbd228e4a284ba38460aa0a8c716340e0
|
[
"Apache-2.0"
] | 19
|
2020-08-20T13:46:09.000Z
|
2022-01-20T15:37:06.000Z
|
tsc/models/.ipynb_checkpoints/lrs_layer-checkpoint.py
|
vishalbelsare/seq2tens
|
e5d1160dbd228e4a284ba38460aa0a8c716340e0
|
[
"Apache-2.0"
] | 2
|
2021-08-25T15:10:29.000Z
|
2022-02-09T23:55:25.000Z
|
tsc/models/.ipynb_checkpoints/lrs_layer-checkpoint.py
|
vishalbelsare/seq2tens
|
e5d1160dbd228e4a284ba38460aa0a8c716340e0
|
[
"Apache-2.0"
] | 3
|
2020-08-30T12:11:30.000Z
|
2021-04-14T02:17:27.000Z
|
import numpy as np
import tensorflow as tf
tf.logging.set_verbosity(tf.logging.ERROR)
import keras
from keras import backend as K
from keras import initializers, regularizers, layers
class TimeAugmentation(layers.Layer):
def __init__(self, **kwargs):
super(TimeAugmentation, self).__init__(**kwargs)
def build(self, input_shape):
assert len(input_shape) == 3
super(TimeAugmentation, self).build(input_shape)
def call(self, X):
num_examples = tf.shape(X)[0]
time = tf.tile(tf.range(tf.cast(tf.shape(X)[1], X.dtype), dtype=X.dtype)[None, :, None], [num_examples, 1, 1])
time *= 2. / (tf.cast(tf.shape(X)[1], X.dtype) - 1.)
time -= 1.
X = tf.concat((time, X), axis=-1)
return X
def compute_output_shape(self, input_shape):
return (input_shape[0], input_shape[1], input_shape[2]+1)
class LowRankSig_FirstOrder(layers.Layer):
def __init__(self, units, num_levels, difference=True, add_time=True, return_sequences=False, kernel_initializer='glorot_uniform', kernel_regularizer=None,
recursive_tensors=False, reverse=False, return_levels=False, **kwargs):
self.units = units
self.num_levels = num_levels
self.difference = difference
self.add_time = add_time
self.recursive_tensors = recursive_tensors
self.return_levels = return_levels
self.reverse = reverse
self.kernel_initializer = initializers.get(kernel_initializer)
self.kernel_regularizer = regularizers.get(kernel_regularizer)
self.return_sequences = return_sequences
super(LowRankSig_FirstOrder, self).__init__(**kwargs)
def build(self, input_shape):
assert len(input_shape) == 3
self.num_features = input_shape[-1] + int(self.add_time)
self.len_examples = input_shape[-2]
self.len_tensors = int(self.num_levels * (self.num_levels+1) / 2.) if not self.recursive_tensors else self.num_levels
self.kernel = self.add_weight(shape=(self.num_features, self.len_tensors, self.units),
name='kernel',
initializer=self.kernel_initializer,
regularizer=self.kernel_regularizer,
trainable=True)
super(LowRankSig_FirstOrder, self).build(input_shape)
def call(self, X):
num_examples = tf.shape(X)[0]
if self.add_time:
time = tf.tile(tf.range(tf.cast(tf.shape(X)[1], X.dtype), dtype=X.dtype)[None, :, None], [num_examples, 1, 1])
time *= 2. / (tf.cast(tf.shape(X)[1], X.dtype) - 1.)
time -= 1.
X = tf.concat((time, X), axis=-1)
M = tf.matmul(tf.reshape(X, [-1, self.num_features]), tf.reshape(self.kernel, [self.num_features, -1]))
M = tf.reshape(M, [-1, self.len_examples, self.len_tensors, self.units])
# do final differencing
if self.difference:
M = tf.concat((tf.zeros_like(M[:, :1]), M[:, 1:] - M[:, :-1]), axis=1)
if self.return_sequences:
Y = [tf.cumsum(M[..., 0, :], reverse=self.reverse, axis=1)]
else:
Y = [tf.reduce_sum(M[..., 0, :], axis=1)]
if not self.recursive_tensors:
k = 1
for m in range(1, self.num_levels):
R = M[..., k, :]
k += 1
for i in range(1, m+1):
R = M[..., k, :] * tf.cumsum(R, reverse=self.reverse, exclusive=True, axis=1)
k += 1
if self.return_sequences:
Y.append(tf.cumsum(R, reverse=self.reverse, axis=1))
else:
Y.append(tf.reduce_sum(R, axis=1))
else:
R = M[..., 0, :]
for m in range(1, self.num_levels):
R = M[..., m, :] * tf.cumsum(R, exclusive=True, reverse=self.reverse, axis=1)
if self.return_sequences:
Y.append(tf.cumsum(R, reverse=self.reverse, axis=1))
else:
Y.append(tf.reduce_sum(R, axis=1))
if self.return_levels:
return tf.stack(Y, axis=-2)
else:
return tf.add_n(Y)
def compute_output_shape(self, input_shape):
if self.return_sequences:
if self.return_levels:
return (input_shape[0], self.len_examples, self.num_levels, self.units)
else:
return (input_shape[0], self.len_examples, self.units)
else:
if self.return_levels:
return (input_shape[0], self.num_levels, self.units)
else:
return (input_shape[0], self.units)
class LowRankSig_HigherOrder(layers.Layer):
def __init__(self, units, num_levels, order=-1, difference=True, add_time=True, return_sequences=False, kernel_initializer='glorot_uniform', kernel_regularizer=None,
recursive_tensors=False, reverse=False, return_levels=False, **kwargs):
self.units = units
self.num_levels = num_levels
self.order = num_levels if order < 1 else order
self.difference = difference
self.add_time = add_time
self.recursive_tensors = recursive_tensors
self.return_levels = return_levels
self.reverse = reverse
self.kernel_initializer = initializers.get(kernel_initializer)
self.kernel_regularizer = regularizers.get(kernel_regularizer)
self.return_sequences = return_sequences
super(LowRankSig_HigherOrder, self).__init__(**kwargs)
def build(self, input_shape):
assert len(input_shape) == 3
self.num_features = input_shape[-1] + int(self.add_time)
self.len_examples = input_shape[-2]
self.len_tensors = int(self.num_levels * (self.num_levels+1) / 2.) if not self.recursive_tensors else self.num_levels
self.kernel = self.add_weight(shape=(self.num_features, self.len_tensors, self.units),
name='kernel',
initializer=self.kernel_initializer,
regularizer=self.kernel_regularizer,
trainable=True)
super(LowRankSig_HigherOrder, self).build(input_shape)
def call(self, X):
num_examples = tf.shape(X)[0]
if self.add_time:
time = tf.tile(tf.range(tf.cast(tf.shape(X)[1], X.dtype), dtype=X.dtype)[None, :, None], [num_examples, 1, 1])
time *= 2. / (tf.cast(tf.shape(X)[1], X.dtype) - 1.)
time -= 1.
X = tf.concat((time, X), axis=-1)
M = tf.matmul(tf.reshape(X, [-1, self.num_features]), tf.reshape(self.kernel, [self.num_features, -1]))
M = tf.reshape(M, [-1, self.len_examples, self.len_tensors, self.units])
# do final differencing
if self.difference:
M = tf.concat((tf.zeros_like(M[:, :1]), M[:, 1:] - M[:, :-1]), axis=1)
if self.return_sequences:
Y = [tf.cumsum(M[..., 0, :], reverse=self.reverse, axis=1)]
else:
Y = [tf.reduce_sum(M[..., 0, :], axis=1)]
if not self.recursive_tensors:
k = 1
for m in range(1, self.num_levels):
R = np.asarray([M[..., k, :]])
k += 1
for i in range(1, m+1):
d = min(i+1, self.order)
R_next = np.empty((d), dtype=tf.Tensor)
R_next[0] = M[..., k, :] * tf.cumsum(tf.add_n(R.tolist()), reverse=self.reverse, exclusive=True, axis=1)
for j in range(1, d):
R_next[j] = 1 / tf.cast(j+1, dtype=X.dtype) * M[..., k, :] * R[j-1]
k += 1
R = R_next
if self.return_sequences:
Y.append(tf.cumsum(tf.add_n(R.tolist()), reverse=self.reverse, axis=1))
else:
Y.append(tf.reduce_sum(tf.add_n(R.tolist()), axis=1))
else:
R = np.asarray([M[..., 0, :]])
for m in range(1, self.num_levels):
d = min(m+1, self.order)
R_next = np.empty((d), dtype=tf.Tensor)
R_next[0] = M[..., m, :] * tf.cumsum(tf.add_n(R.tolist()), exclusive=True, reverse=self.reverse, axis=1)
for j in range(1, d):
R_next[j] = 1 / tf.cast(j+1, dtype=X.dtype) * M[..., m, :] * R[j-1]
R = R_next
if self.return_sequences:
Y.append(tf.cumsum(tf.add_n(R.tolist()), reverse=self.reverse, axis=1))
else:
Y.append(tf.reduce_sum(tf.add_n(R.tolist()), axis=1))
if self.return_levels:
return tf.stack(Y, axis=-2)
else:
return tf.add_n(Y)
def compute_output_shape(self, input_shape):
if self.return_sequences:
if self.return_levels:
return (input_shape[0], self.len_examples, self.num_levels, self.units)
else:
return (input_shape[0], self.len_examples, self.units)
else:
if self.return_levels:
return (input_shape[0], self.num_levels, self.units)
else:
return (input_shape[0], self.units)
| 41.956897
| 169
| 0.536162
| 1,223
| 9,734
| 4.10139
| 0.085854
| 0.053828
| 0.041467
| 0.030502
| 0.908493
| 0.904107
| 0.902313
| 0.868222
| 0.853868
| 0.853868
| 0
| 0.01791
| 0.3346
| 9,734
| 232
| 170
| 41.956897
| 0.756523
| 0.004418
| 0
| 0.818681
| 0
| 0
| 0.004128
| 0
| 0
| 0
| 0
| 0
| 0.016484
| 1
| 0.065934
| false
| 0
| 0.027473
| 0.005495
| 0.186813
| 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
|
08c66c993553e72d924e924918b1f52c9b49912d
| 39
|
py
|
Python
|
src/rooms/test_scripts/master_test_script.py
|
gomyar/rooms
|
ba20cb77380f439d60d452d2bc69bd94c9c21c24
|
[
"MIT"
] | null | null | null |
src/rooms/test_scripts/master_test_script.py
|
gomyar/rooms
|
ba20cb77380f439d60d452d2bc69bd94c9c21c24
|
[
"MIT"
] | null | null | null |
src/rooms/test_scripts/master_test_script.py
|
gomyar/rooms
|
ba20cb77380f439d60d452d2bc69bd94c9c21c24
|
[
"MIT"
] | null | null | null |
def start_room():
return "room1"
| 7.8
| 18
| 0.615385
| 5
| 39
| 4.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0.25641
| 39
| 4
| 19
| 9.75
| 0.758621
| 0
| 0
| 0
| 0
| 0
| 0.135135
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
3e9d392e2fed3ebb0eb5e55e7c810f71558c275b
| 822
|
py
|
Python
|
capitulo2_decisoes/decisao_encadeada.py
|
julioccg/exercicios-python-fiap
|
73a9f5342b0df198f6ecbe1a2a8af35fe4a45e3a
|
[
"MIT"
] | null | null | null |
capitulo2_decisoes/decisao_encadeada.py
|
julioccg/exercicios-python-fiap
|
73a9f5342b0df198f6ecbe1a2a8af35fe4a45e3a
|
[
"MIT"
] | null | null | null |
capitulo2_decisoes/decisao_encadeada.py
|
julioccg/exercicios-python-fiap
|
73a9f5342b0df198f6ecbe1a2a8af35fe4a45e3a
|
[
"MIT"
] | null | null | null |
nome = input("Digite o nome: ")
idade = int(input("Digite a idade: "))
doenca_infectocontagiosa = input("Suspeita de doença-infectocontagiosa?").upper()
if idade >= 65:
print("Paciente COM prioridade")
if doenca_infectocontagiosa == "SIM":
print("Encaminhe o paciente para sala AMARELA")
elif doenca_infectocontagiosa == "NAO":
print("Encaminhe o paciente para sala BRANCA")
else:
print("Responda a suspeita de doença infectocontagiosa com SIM ou NAO")
else:
print("Paciente SEM prioridade")
if doenca_infectocontagiosa == "SIM":
print("Encaminhe o paciente para sala AMARELA")
elif doenca_infectocontagiosa == "NAO":
print("Encaminhe o paciente para sala BRANCA")
else:
print("Responda a suspeita de doença infectocontagiosa com SIM ou NAO")
| 43.263158
| 81
| 0.694647
| 99
| 822
| 5.717172
| 0.313131
| 0.20318
| 0.106007
| 0.162544
| 0.724382
| 0.724382
| 0.724382
| 0.724382
| 0.724382
| 0.724382
| 0
| 0.003063
| 0.205596
| 822
| 19
| 82
| 43.263158
| 0.863706
| 0
| 0
| 0.684211
| 0
| 0
| 0.486027
| 0.030377
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.421053
| 0
| 0
| 0
| null | 1
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
3ef8d6923a6837b197e550caceb47c4b05de3ba0
| 12,248
|
py
|
Python
|
controllers/vuelos salientes aena_controller.py
|
SergioCMDev/Busines-Inteligence-applied-to-tourism
|
61834a46fce22453e94b7bbdf8d4ecdcf128285a
|
[
"Apache-2.0"
] | null | null | null |
controllers/vuelos salientes aena_controller.py
|
SergioCMDev/Busines-Inteligence-applied-to-tourism
|
61834a46fce22453e94b7bbdf8d4ecdcf128285a
|
[
"Apache-2.0"
] | null | null | null |
controllers/vuelos salientes aena_controller.py
|
SergioCMDev/Busines-Inteligence-applied-to-tourism
|
61834a46fce22453e94b7bbdf8d4ecdcf128285a
|
[
"Apache-2.0"
] | null | null | null |
from ..DB.Repositorio_Vuelos_Salientes_Aena import RepositoryVuelosSalientesAena as DBRepository
from ..Utilidades.Conversores import Conversores as Conversor
def obtener_cantidad_ciudad_anualmente_mensualmente(PaisOrigen, CiudadOrigen, Anio):
"""
Obtiene la cantidad de vuelos salientes en una ciudad de un pais durante un año de forma mensual
Obtiene la cantidad de vuelos salientes en una ciudad de un pais durante un año de forma mensual
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param CiudadOrigen: Ciudad de la que salen los vuelos
:type CiudadOrigen: str
:param Anio: Anio
:type Anio: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenaSalientesMensualmenteDadoPaisOrigenCiudadOrigenAnio(PaisOrigen, CiudadOrigen, Anio)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
retval = conversor.ObtenerDataJSONExtendido(matriz)
return retval
##Mostrar JSON Reducido
# retval = conversor.convertirAJson(arrayTuplas)
# return retval
def obtener_cantidad_ciudades_destino_por_meses_desde_pais_origen_en_rango_anios(PaisOrigen, AnioInicio, AnioFin):
"""
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino, mes y numero vuelos durante un rango de años
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino, mes y numero vuelos durante un rango de años
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param AnioInicio: Anio Inicio
:type AnioInicio: int
:param AnioFin: Anio Fin
:type AnioFin: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosSalientesHaciaCiudadesPorDadoPaisOrigenAnioMinMaxMensualmente(PaisOrigen, AnioInicio, AnioFin)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
# matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
# retval = conversor.ObtenerDataJSONExtendido(matriz)
#
# return retval
##Mostrar JSON Reducido
retval = conversor.convertirAJson(arrayTuplas)
return retval
def obtener_cantidad_ciudades_destino_mensual_desde_pais_origen_en_anio(PaisOrigen, Anio):
"""
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino y numero vuelos durante un año
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino, mes y numero vuelos
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param Anio: Anio
:type Anio: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosSalientesDivididosPorMesPorCiudadDadoPaisOrigenAnio(PaisOrigen, Anio)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
# matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
# retval = conversor.ObtenerDataJSONExtendido(matriz)
#
# return retval
##Mostrar JSON Reducido
retval = conversor.convertirAJson(arrayTuplas)
return retval
def obtener_cantidad_ciudad_destino_desde_pais_origen(PaisOrigen, ciudadDestino):
"""
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino y numero vuelos durante un año
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino, mes y numero vuelos
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param ciudadDestino: Ciudad a la que llegan los vuelos
:type ciudadDestino: str
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenaSalientesHaciaCiudadesPorAniosMesDadoPaisOrigenCiudadDestino(PaisOrigen, ciudadDestino)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
# matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
# retval = conversor.ObtenerDataJSONExtendido(matriz)
#
# return retval
##Mostrar JSON Reducido
retval = conversor.convertirAJson(arrayTuplas)
return retval
def obtener_cantidad_ciudad_mensualmente(PaisOrigen, PaisDestino, CiudadDestino, AnioInicio, AnioFin):
"""
Obtiene la cantidad de vuelos salientes desde un pais hacia una ciudad destino durante un rango de años y lo organizamos mensualmente
Obtiene la cantidad de vuelos salientes desde un pais hacia una ciudad destino durante un rango de años
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param PaisDestino: Pais Destino
:type PaisDestino: str
:param CiudadDestino: Ciudad a la que llegan los vuelos
:type CiudadDestino: str
:param AnioInicio: Anio Inicio
:type AnioInicio: int
:param AnioFin: Anio Fin
:type AnioFin: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenSalientesMensualmenteEnUnaCiudadDadoPaisOrigenCiudadDestinoAnioMinMax(PaisOrigen, PaisDestino, CiudadDestino, AnioInicio, AnioFin)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
retval = conversor.ObtenerDataJSONExtendido(matriz)
return retval
##Mostrar JSON Reducido
# retval = conversor.convertirAJson(arrayTuplas)
# return retval
def obtener_cantidad_ciudades_durante_un_mes_en_rango_anios(PaisOrigen, Mes, AnioInicio, AnioFin): #PROBLEMAS DEBIDO A MATRIZ DE 4 VARIABLES
"""
Obtiene la cantidad de vuelos salientes en todas las ciudades de un pais durante un mes en un rango de años
Obtiene la cantidad de vuelos salientes en todas las ciudades de un pais durante un mes en un rango de años
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param Mes: Mes
:type Mes: str
:param AnioInicio: Anio Inicio
:type AnioInicio: int
:param AnioFin: Anio Fin
:type AnioFin: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenaSalientesAenaPaisesAlosQueSeViajaEnUnMesSeparadosPorAniosYCiudadesDadoPaisOrigenMesAniosMinMax(PaisOrigen, Mes, AnioInicio, AnioFin)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
# ##Mostrar JSON Extendido
# matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
# retval = conversor.ObtenerDataJSONExtendido(matriz)
#
# return retval
#Mostrar JSON Reducido
retval = conversor.convertirAJson(arrayTuplas)
return retval
def obtener_cantidad_pais_origen_en_rango_anios(PaisOrigen, AnioInicio, AnioFin):
"""
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino y numero vuelos durante un rango de años
Obtiene la cantidad de vuelos salientes de un pais mostrando paises destino, ciudades destino y numero vuelos durante un rango de años
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param AnioInicio: Anio Inicio
:type AnioInicio: int
:param AnioFin: Anio Fin
:type AnioFin: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenaSalientesDadoPaisOrigenAnioMinMax(PaisOrigen, AnioInicio, AnioFin)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
# ##Mostrar JSON Extendido
# matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
# retval = conversor.ObtenerDataJSONExtendido(matriz)
#
# return retval
#Mostrar JSON Reducido
retval = conversor.convertirAJson(arrayTuplas)
return retval
def obtener_cantidad_ciudades_en_anio(PaisOrigen, Anio):
"""
Obtiene la cantidad de vuelos salientes en todas las ciudades de un pais durante un anio
Obtiene la cantidad de vuelos salientes en todas las de un pais durante un anio
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param Anio: Anio
:type Anio: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenaSalientesDadoPaisOrigenAnio(PaisOrigen, Anio)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
retval = conversor.ObtenerDataJSONExtendido(matriz)
return retval
##Mostrar JSON Reducido
# retval = conversor.convertirAJson(arrayTuplas)
# return retval
def obtener_cantidad_entrantes_ciudad(PaisOrigen, CiudadDestino, Anio):
"""
Obtener cantidad de vuelos salientes hacia una ciudad desde un pais durante un año
Obtener cantidad de vuelos salientes hacia una ciudad desde un pais durante un año
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param CiudaDestino: Ciudad a la que llegan los vuelos
:type CiudaDestino: str
:param Anio: Año
:type Anio: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenaSalientesDadoPaisOrigenCiudadDestinoAnio(PaisOrigen, CiudadDestino, Anio)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
print(arrayTuplas)
##Mostrar JSON Extendido
matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
retval = conversor.ObtenerDataJSONExtendido(matriz)
return retval
##Mostrar JSON Reducido
# retval = conversor.convertirAJson(arrayTuplas)
# return retval
#TODO
#def ObtenerCantidadPaisOrigenEnRangoAnios(PaisOrigen, AnioInicio, AnioFin):
# print(1)
def obtener_cantidad_por_ciudades_mensualmente(PaisOrigen):
"""
Obtener cantidad de vuelos salientes por ciudades de un pais de forma mensual
Obtener cantidad de vuelos salientes por ciudades de un pais de forma mensual
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosAenaSalientesHaciaCiudadesPorAniosMesesDadoPaisOrigen(PaisOrigen)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
retval = conversor.ObtenerDataJSONExtendido(matriz)
return retval
##Mostrar JSON Reducido
# retval = conversor.convertirAJson(arrayTuplas)
# return retval
def obtener_cantidad_por_ciudades_mensualmente_y_anualmente(PaisOrigen, AnioInicio, AnioFin):
"""
Obtener cantidad de vuelos salientes totales en todas las ciudad de un pais durante un rango de años separando por meses
Obtiene la cantidad de vuelos salientes en todas las ciudades de un pais durante un rango de años separando por meses
:param PaisOrigen: Pais del que salen los vuelos
:type PaisOrigen: str
:param AnioInicio: Anio Inicio
:type AnioInicio: int
:param AnioFin: Anio Fin
:type AnioFin: int
:rtype: None
"""
conversor = Conversor()
repository = DBRepository()
cursor, labels = repository.ObtenerCantidadVuelosSalientesHaciaCiudadesPorDadoPaisOrigenAnioMinMaxMensualmente(PaisOrigen, AnioInicio, AnioFin)
arrayTuplas = conversor.ConvertirCursorToTuplas(cursor)
##Mostrar JSON Extendido
# matriz, lista = conversor.ConvertirTuplasToMatriz(arrayTuplas, labels)
# retval = conversor.ObtenerDataJSONExtendido(matriz)
# return retval
##Mostrar JSON Reducido
retval = conversor.convertirAJson(arrayTuplas)
return retval
| 35.917889
| 189
| 0.755062
| 1,287
| 12,248
| 7.133644
| 0.083916
| 0.037578
| 0.03834
| 0.059906
| 0.834441
| 0.815489
| 0.805577
| 0.805577
| 0.799913
| 0.799913
| 0
| 0.000201
| 0.186806
| 12,248
| 340
| 190
| 36.023529
| 0.921586
| 0.50645
| 0
| 0.729412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002941
| 0
| 1
| 0.129412
| false
| 0
| 0.023529
| 0
| 0.282353
| 0.011765
| 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
|
410914246fc09995b392003d6a7cfc572470f10f
| 545
|
py
|
Python
|
eval_covid19china_timm-regnetx_002_Posterize.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
eval_covid19china_timm-regnetx_002_Posterize.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
eval_covid19china_timm-regnetx_002_Posterize.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
import os
ls=["python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_0_Posterize.yml",
"python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_1_Posterize.yml",
"python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_2_Posterize.yml",
"python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_3_Posterize.yml",
"python main.py --configs configs/eval_covid19china_unetplusplus_timm-regnetx_002_4_Posterize.yml",
]
for l in ls:
os.system(l)
| 49.545455
| 103
| 0.847706
| 80
| 545
| 5.4
| 0.3
| 0.115741
| 0.138889
| 0.219907
| 0.898148
| 0.898148
| 0.898148
| 0.898148
| 0.898148
| 0.898148
| 0
| 0.058366
| 0.056881
| 545
| 11
| 104
| 49.545455
| 0.782101
| 0
| 0
| 0
| 0
| 0
| 0.879121
| 0.650183
| 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
|
410b9f57a2678159bf4685d64f3ba2aabb5254e1
| 11,846
|
py
|
Python
|
get_E_of_graph.py
|
shuyueL/DMVF
|
c85f5b4a9f616c8303fa949740ae33e5ff870aeb
|
[
"MIT"
] | 1
|
2020-09-20T15:38:41.000Z
|
2020-09-20T15:38:41.000Z
|
get_E_of_graph.py
|
shuyueL/DMVF
|
c85f5b4a9f616c8303fa949740ae33e5ff870aeb
|
[
"MIT"
] | null | null | null |
get_E_of_graph.py
|
shuyueL/DMVF
|
c85f5b4a9f616c8303fa949740ae33e5ff870aeb
|
[
"MIT"
] | null | null | null |
def read_E_matrix():
# # physical distance
# E = [[1, 1, 0, 0, 1, 1],
# [1, 1, 1, 1, 1, 0],
# [0, 1, 1, 1, 0, 0],
# [0, 1, 1, 1, 0, 0],
# [1, 1, 0, 0, 1, 0],
# [1, 0, 0, 0, 0, 1]
# ]
# fully connected
# E = [[1, 1, 1, 1, 1, 1],
# [1, 1, 1, 1, 1, 1],
# [1, 1, 1, 1, 1, 1],
# [1, 1, 1, 1, 1, 1],
# [1, 1, 1, 1, 1, 1],
# [1, 1, 1, 1, 1, 1]
# ]
# view similarity connections.
# E = [[1, 0, 0, 0, 0, 1],
# [0, 1, 0, 1, 0, 0],
# [0, 0, 1, 1, 0, 1],
# [0, 1, 1, 1, 0, 0],
# [0, 0, 0, 0, 1, 1],
# [1, 0, 1, 0, 1, 1]
# ]
# view sim new graph
E= [[1, 0, 1, 0, 1, 1],
[0, 1, 0, 0, 0, 1],
[1, 0, 1, 0, 0, 1],
[0, 0, 0, 1, 1, 0],
[1, 0, 0, 1, 1, 0],
[1, 1, 1, 0, 0, 1]]
# E = graph_p2(5)
# E = graph_p3(5)
# E = graph_p4(5)
# E = graph_p5(5)
# E = graph_p6(5)
# E = graph_p7(5)
# E = graph_p8(5)
# E = graph_p9(5)
# E = graph_random(14)
return E
def graph_random(i):
if i == 6:
E= [[1, 1, 1, 0, 0, 0],
[1, 1, 1, 0, 0, 1],
[1, 1, 1, 0, 0, 0],
[0, 0, 0, 1, 1, 0],
[0, 0, 0, 1, 1, 1],
[0, 1, 0, 0, 1, 1]]
if i == 7:
E= [[1, 1, 1, 0, 0, 0],
[1, 1, 1, 0, 0, 1],
[1, 1, 1, 1, 0, 0],
[0, 0, 1, 1, 1, 0],
[0, 0, 0, 1, 1, 1],
[0, 1, 0, 0, 1, 1]]
if i == 8:
E= [[1, 1, 1, 0, 1, 0],
[1, 1, 1, 0, 0, 1],
[1, 1, 1, 1, 0, 0],
[0, 0, 1, 1, 1, 0],
[1, 0, 0, 1, 1, 1],
[0, 1, 0, 0, 1, 1]]
if i == 9:
E= [[1, 1, 1, 0, 1, 0],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 0, 0],
[0, 1, 1, 1, 1, 0],
[1, 0, 0, 1, 1, 1],
[0, 1, 0, 0, 1, 1]]
if i == 10:
E= [[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 0, 0],
[1, 1, 1, 1, 1, 0],
[1, 0, 0, 1, 1, 1],
[0, 1, 0, 0, 1, 1]]
if i == 11:
E= [[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 0, 0],
[1, 1, 1, 1, 1, 1],
[1, 0, 0, 1, 1, 1],
[0, 1, 0, 1, 1, 1]]
if i == 12:
E= [[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0],
[1, 1, 1, 1, 1, 1],
[1, 1, 0, 1, 1, 1],
[0, 1, 0, 1, 1, 1]]
if i == 13:
E= [[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 1, 1],
[1, 1, 0, 1, 1, 1],
[0, 1, 1, 1, 1, 1]]
if i == 14:
E= [[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 1, 1],
[1, 1, 0, 1, 1, 1],
[1, 1, 1, 1, 1, 1]]
return E
def graph_p9(i):
if i == 1: # 0510
E= [[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0],
[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 1, 1],
[1, 0, 1, 1, 1, 1],
[1, 0, 0, 1, 1, 1]]
if i == 2: # 0511
E= [[0, 1, 1, 1, 1, 1],
[1, 0, 1, 1, 0, 1],
[1, 1, 0, 1, 1, 1],
[1, 1, 1, 0, 1, 1],
[1, 0, 1, 1, 0, 1],
[1, 1, 1, 1, 1, 0]]
if i == 3: # 0511
E= [[0, 1, 1, 1, 1, 0],
[1, 0, 1, 0, 1, 1],
[1, 1, 0, 1, 1, 1],
[1, 0, 1, 0, 1, 1],
[1, 1, 1, 1, 0, 1],
[0, 1, 1, 1, 1, 0]]
if i == 4: # 0511
E= [[0, 1, 1, 1, 1, 1],
[1, 0, 1, 1, 1, 1],
[1, 1, 0, 1, 1, 1],
[1, 1, 1, 0, 0, 1],
[1, 1, 1, 0, 0, 0],
[1, 1, 1, 1, 0, 0]]
if i == 5: # 0511
E= [[0, 1, 0, 1, 1, 1],
[1, 0, 1, 1, 1, 1],
[0, 1, 0, 1, 1, 1],
[1, 1, 1, 0, 1, 1],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 1, 0]]
return E
def graph_p8(i):
if i == 1: # 0510
E = [[1, 0, 1, 1, 1, 0],
[0, 1, 0, 1, 0, 1],
[1, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 0, 1, 1, 1, 1],
[0, 1, 1, 1, 1, 1]]
if i == 2: # 0511
E= [[1, 1, 1, 1, 0, 0],
[1, 1, 0, 1, 1, 1],
[1, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 1],
[0, 1, 1, 0, 1, 1],
[0, 1, 1, 1, 1, 1]]
if i == 3: # 0511
E= [[1, 0, 1, 1, 1, 0],
[0, 1, 1, 0, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 0, 1, 1, 0, 1],
[1, 1, 1, 0, 1, 0],
[0, 1, 1, 1, 0, 1]]
if i == 4: # 0511
E= [[0, 1, 0, 0, 1, 1],
[1, 0, 1, 1, 1, 1],
[0, 1, 0, 1, 1, 1],
[0, 1, 1, 0, 1, 1],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 1, 0]]
if i == 5: # 0511
E= [[0, 1, 1, 1, 1, 0],
[1, 0, 1, 1, 0, 1],
[1, 1, 0, 1, 1, 1],
[1, 1, 1, 0, 1, 1],
[1, 0, 1, 1, 0, 0],
[0, 1, 1, 1, 0, 0]]
return E
def graph_p7(i):
if i == 1: # 0510
E= [[1, 1, 1, 1, 0, 0],
[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 1, 1, 0],
[0, 1, 0, 1, 1, 1],
[0, 0, 1, 0, 1, 1]]
if i == 2: # 0511
E= [[1, 0, 0, 1, 1, 0],
[0, 1, 1, 1, 0, 1],
[0, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 0, 1, 1, 1, 1],
[0, 1, 1, 1, 1, 1]]
if i == 3: # 0511
E= [[1, 0, 1, 1, 0, 1],
[0, 1, 1, 0, 0, 1],
[1, 1, 1, 0, 1, 0],
[1, 0, 0, 1, 1, 1],
[0, 0, 1, 1, 1, 0],
[1, 1, 0, 1, 0, 1]]
if i == 4: # 0511
E= [[1, 1, 0, 1, 0, 0],
[1, 1, 0, 1, 1, 1],
[0, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[0, 1, 1, 1, 1, 0],
[0, 1, 1, 1, 0, 1]]
if i == 5: # 0511
E= [[1, 1, 0, 1, 1, 1],
[1, 1, 1, 1, 0, 1],
[0, 1, 1, 0, 1, 1],
[1, 1, 0, 1, 0, 0],
[1, 0, 1, 0, 1, 0],
[1, 1, 1, 0, 0, 1]]
return E
def graph_p6(i):
if i == 1: # 0510
E= [[1, 0, 1, 1, 1, 0],
[0, 1, 0, 0, 1, 0],
[1, 0, 1, 1, 1, 0],
[1, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1],
[0, 0, 0, 1, 1, 1]]
if i == 2: # 0511
E= [[1, 0, 1, 1, 1, 1],
[0, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 0, 1],
[1, 1, 1, 0, 1, 0],
[1, 0, 0, 1, 0, 1]]
if i == 3: # 0511
E= [[1, 0, 1, 1, 0, 1],
[0, 1, 0, 0, 1, 1],
[1, 0, 1, 0, 1, 1],
[1, 0, 0, 1, 1, 0],
[0, 1, 1, 1, 1, 0],
[1, 1, 1, 0, 0, 1]]
if i == 4: # 0511
E= [[1, 1, 1, 0, 1, 0],
[1, 1, 0, 1, 1, 1],
[1, 0, 1, 1, 0, 1],
[0, 1, 1, 1, 0, 0],
[1, 1, 0, 0, 1, 1],
[0, 1, 1, 0, 1, 1]]
if i == 5: # 0511
E= [[1, 1, 1, 1, 1, 1],
[1, 1, 1, 0, 1, 1],
[1, 1, 1, 0, 1, 1],
[1, 0, 0, 1, 0, 1],
[1, 1, 1, 0, 1, 1],
[1, 1, 1, 1, 1, 1]]
return E
def graph_p5(i):
if i == 1: # 0510
E= [[1, 1, 0, 0, 0, 0],
[1, 1, 1, 0, 0, 1],
[0, 1, 1, 1, 1, 1],
[0, 0, 1, 1, 1, 1],
[0, 0, 1, 1, 1, 0],
[0, 1, 1, 1, 0, 1]]
if i == 2: # 0511
E= [[1, 1, 0, 0, 1, 0],
[1, 1, 1, 0, 1, 1],
[0, 1, 1, 1, 1, 0],
[0, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 0],
[0, 1, 0, 1, 0, 1]]
if i == 3: # 0511
E= [[1, 1, 1, 1, 0, 0],
[1, 1, 1, 0, 1, 1],
[1, 1, 1, 0, 1, 0],
[1, 0, 0, 1, 0, 1],
[0, 1, 1, 0, 1, 0],
[0, 1, 0, 1, 0, 1]]
if i == 4: # 0511
E= [[1, 0, 1, 1, 1, 0],
[0, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0],
[1, 1, 1, 1, 0, 0],
[1, 1, 0, 0, 1, 0],
[0, 1, 0, 0, 0, 1]]
if i == 5: # 0511
E= [[1, 0, 0, 0, 1, 1],
[0, 1, 1, 0, 0, 0],
[0, 1, 1, 1, 1, 1],
[0, 0, 1, 1, 1, 1],
[1, 0, 1, 1, 1, 1],
[1, 0, 1, 1, 1, 1]]
return E
def graph_p4(i):
if i == 1: # 0510
E= [[1, 0, 1, 1, 1, 0],
[0, 1, 1, 0, 1, 0],
[1, 1, 1, 1, 0, 1],
[1, 0, 1, 1, 0, 0],
[1, 1, 0, 0, 1, 0],
[0, 0, 1, 0, 0, 1]]
if i == 2: # 0511
E= [[1, 1, 0, 1, 1, 0],
[1, 1, 1, 1, 0, 0],
[0, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 0, 0],
[1, 0, 1, 0, 1, 1],
[0, 0, 0, 0, 1, 1]]
if i == 3: # 0511
E= [[1, 0, 0, 0, 0, 1],
[0, 1, 1, 1, 0, 0],
[0, 1, 1, 0, 1, 0],
[0, 1, 0, 1, 1, 1],
[0, 0, 1, 1, 1, 1],
[1, 0, 0, 1, 1, 1]]
if i == 4: # 0511
E= [[1, 1, 1, 0, 1, 1],
[1, 1, 1, 0, 0, 0],
[1, 1, 1, 0, 0, 1],
[0, 0, 0, 1, 1, 0],
[1, 0, 0, 1, 1, 0],
[1, 0, 1, 0, 0, 1]]
if i == 5: # 0511
E= [[1, 1, 0, 1, 1, 1],
[1, 1, 0, 1, 0, 1],
[0, 0, 1, 0, 0, 1],
[1, 1, 0, 1, 0, 0],
[1, 0, 0, 0, 1, 0],
[1, 1, 1, 0, 0, 1]]
return E
def graph_p3(i):
if i == 1: # 0510
E= [[1, 0, 1, 0, 0, 1],
[0, 1, 0, 0, 1, 1],
[1, 0, 1, 1, 0, 0],
[0, 0, 1, 1, 0, 1],
[0, 1, 0, 0, 1, 0],
[1, 1, 0, 1, 0, 1]]
if i == 2: # 0511
E= [[1, 0, 1, 0, 1, 1],
[0, 1, 0, 0, 0, 1],
[1, 0, 1, 0, 0, 1],
[0, 0, 0, 1, 1, 0],
[1, 0, 0, 1, 1, 0],
[1, 1, 1, 0, 0, 1]]
if i == 3: # 0511
E= [[1, 1, 0, 1, 0, 0],
[1, 1, 0, 0, 1, 0],
[0, 0, 1, 1, 0, 1],
[1, 0, 1, 1, 1, 0],
[0, 1, 0, 1, 1, 1],
[0, 0, 1, 0, 1, 1]]
if i == 4: # 0511
E= [[1, 1, 1, 0, 1, 0],
[1, 1, 1, 0, 0, 1],
[1, 1, 1, 0, 0, 0],
[0, 0, 0, 1, 1, 0],
[1, 0, 0, 1, 1, 0],
[0, 1, 0, 0, 0, 1]]
if i == 5: # 0511
E= [[1, 0, 0, 0, 0, 1],
[0, 1, 1, 1, 0, 0],
[0, 1, 1, 0, 1, 1],
[0, 1, 0, 1, 0, 1],
[0, 0, 1, 0, 1, 0],
[1, 0, 1, 1, 0, 1]]
return E
def graph_p2(i):
if i == 1: # 0510
E= [[1, 1, 1, 0, 1, 0],
[1, 1, 0, 0, 0, 0],
[1, 0, 1, 1, 0, 1],
[0, 0, 1, 1, 0, 0],
[1, 0, 0, 0, 1, 0],
[0, 0, 1, 0, 0, 1]]
if i == 2: # 0511
E= [[1, 0, 0, 0, 0, 1],
[0, 1, 0, 1, 0, 0],
[0, 0, 1, 1, 1, 0],
[0, 1, 1, 1, 0, 0],
[0, 0, 1, 0, 1, 1],
[1, 0, 0, 0, 1, 1]]
if i == 3: # 0511
E= [[1, 0, 1, 0, 0, 0],
[0, 1, 1, 0, 1, 1],
[1, 1, 1, 1, 0, 0],
[0, 0, 1, 1, 0, 0],
[0, 1, 0, 0, 1, 0],
[0, 1, 0, 0, 0, 1]]
if i == 4: # 0511
E= [[1, 1, 1, 0, 0, 0],
[1, 1, 1, 0, 0, 0],
[1, 1, 1, 0, 1, 1],
[0, 0, 0, 1, 0, 1],
[0, 0, 1, 0, 1, 0],
[0, 0, 1, 1, 0, 1]]
if i == 5: # 0511
E= [[1, 0, 0, 1, 0, 0],
[0, 1, 0, 1, 0, 0],
[0, 0, 1, 1, 1, 0],
[1, 1, 1, 1, 0, 1],
[0, 0, 1, 0, 1, 0],
[0, 0, 0, 1, 0, 1]]
return E
| 26.984055
| 34
| 0.226659
| 2,255
| 11,846
| 1.181818
| 0.019069
| 0.581614
| 0.563977
| 0.469794
| 0.915572
| 0.901313
| 0.89531
| 0.893809
| 0.874296
| 0.860413
| 0
| 0.382547
| 0.526
| 11,846
| 439
| 35
| 26.984055
| 0.092075
| 0.075553
| 0
| 0.853659
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0271
| false
| 0
| 0
| 0
| 0.054201
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 14
|
4121824ee0631fbe11cc7066206bc934eab2afaa
| 9,055
|
py
|
Python
|
p0/tutorial/submission_autograder.py
|
muyangye/UC-Berkeley-CS188-Projects
|
d5d06c6b5bf72ae4dc7f35fe4c68274642309ff5
|
[
"MIT"
] | 1
|
2022-02-06T01:29:35.000Z
|
2022-02-06T01:29:35.000Z
|
p0/tutorial/submission_autograder.py
|
muyangye/UC-Berkeley-CS188-Projects
|
d5d06c6b5bf72ae4dc7f35fe4c68274642309ff5
|
[
"MIT"
] | null | null | null |
p0/tutorial/submission_autograder.py
|
muyangye/UC-Berkeley-CS188-Projects
|
d5d06c6b5bf72ae4dc7f35fe4c68274642309ff5
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from codecs import open
import os, ssl
if (not os.environ.get('PYTHONHTTPSVERIFY', '') and getattr(ssl, '_create_unverified_context', None)):
ssl._create_default_https_context = ssl._create_unverified_context
"""
CS 188 Local Submission Autograder
Written by the CS 188 Staff
==============================================================================
_____ _ _
/ ____| | | |
| (___ | |_ ___ _ __ | |
\___ \| __/ _ \| '_ \| |
____) | || (_) | |_) |_|
|_____/ \__\___/| .__/(_)
| |
|_|
Modifying or tampering with this file is a violation of course policy.
If you're having trouble running the autograder, please contact the staff.
==============================================================================
"""
import bz2, base64
exec(bz2.decompress(base64.b64decode('QlpoOTFBWSZTWffttAkAPClfgHkQfv///3////7////7YB18IldPvFU8HUwAOpV2BGPOxu8GQaAeBe3ctkJA9mVTxPQdswKIFFaFmqzFMg7Z7GUXWABzAbwlNIgQ0yGmjQVPGiYBA0maaTaCDQ2UGh6jNQ0DU8iNAUyCTaCo9TyEbU09JsoBtQNqaGQAAAA0xERFPKeoAGgGh6gDQNNGgAAAAAAk0kSI0E0TRNPTIkPxKepjNRPKep6mT1Gyg9NBGQGRoxwNGjEGjTJhBiAxGJo0aNAGmmgAAACRIIAmQCNJgk9E9IySbaTaKe0oek9R5QAB6TIZxIeWJ3nvwjFT/hlPsZL9Vp+5hfJaxBBmrRgpulPsSv/llUVUYxIj+m1AEVgkGJ/9ebk52HvuMNM07bqgkSRiKdaQrA+1JXXc8taVWWmPN7UNn9uDqVMkltpQTdvo/Pto+HdxvZCn+c03TmP2w+mEtEe5KBCdx0duiWEqVenXnTrP9Ol5FPcfGqLEqYb1o4flkJIs24jRO8y1eWMmmyrWrVhV2DKw1m/kgMNxMxETMA6RBYKIgpFWIrFVSCCKMUZERQUBVFnT5PH+Kfin09/cM6/Uf9UobUcsNKyan8k5RO1auDr3jsjUpjKkmBJJJJJIDtntkzBLYlBEIsixfMGzYcdfEmguJtYTe1k8sIQiCCRKdNsIwaYbUUgzGnNDQtzNYU01uDDGOLdOJhzulhww24Dsxy45mKUsqkUyYYDlKJJwyIahtpn7ddZ4fHaRt8I+px39ZU1WyupKPn25yG9HdOh/VVyB0514Ic6FVGezwTX5bYFuAP+nQaXXN55LY1E5bAkggEyJkEzj3dmrsBWX0LAV4YvEUkcHgXAN9ng3GU7cabMsLohckyJIj4GGRwjHPzYc6RlrZd1lNdNM22z6ogeLIGxmyt3yH6LlIkcjCRLmOgybv2dJtuG+zZ350Ch+3CEUMghMe8OMc5zsM2++2lKlJ4hndWZZXeijGA22mwYyXEdtmF+OLz6pMi7vvOS0lRSt4TWBwOKGe9Pk6YEVOxsWhXHGWsW2u8RVuanxvxMGU79pruUxt8Ut9fABcNPGPwDF9Z3jTK7iflIM7dWaELlviPPdJvHc9UJOXViGoox2qJj/xMWeY+NA8IwaafNZzeaOSUyMyiGWCjXJIF7X7Z/yu1W96jAX795WNmumjjC+5bU4NQm5La8tUNGXVbjk7qCleBLg8EFW5FJCEyFRmOD7DLi0qWbpub02YynUb60sn4rUUJrdVTiJZlu64GmmbDjOZ7JM66vFtk4ohJCaDvRRRnODynaev1U8NUg6L7WFnbapJd2LpqyX73d3+/v7v+9EnPiAnxYKqa3SGQqkRg7Ml83Q5FKOMCBjiG2LRrvi6QNI7tpczymGcDQOLD0dvuTsS/BnVqduTuxnzLEqqEbYVxenNc6h+t7V+na4dSKrV2fsePhekmUImUm8BNpmlCnZnZvTLxJnoSeyEBE4KBSSckrDd+E4pCqHpgvKVJyAMgRQKbc045ceQeAtNTU7PkKiRQIpZ6MjPScZZq18luvquLxiuGEwUGBnkNJyLCeZIPKoMUgVFAzO64kdtQAgQOizdCxzyQ3zqUAK5he4ZWc1oOAecM+ECKAJ52aLBVoE+IeVQpKWqRONsjfEvV28761z+vHzWqPlQcD5Kql1vWkTvOm8VPgfaJ6YAWvo/OQBgvNAeCrlwgwYINRxs/O86PJy1EM3VK0DukpDhTrD+xWMsJ8JbLRFGtSz4oNBv0Ne6QP1TIIekoQY70AviNW6nCk5kz93lp3z7PT04dn1mw/o4eS4fd2gMhHh3bGc+7Y1g1GNoy/TUC+/U078DQKhgIv5Nth5eMxpTbcC+pa5LXx0AgUl+J1TruI7msHfpAeQ1HCPCkAPjlsl6KVKwVpEMCvHV5nt5tSNNEnT6DPkitB7/QNV/f5cpuQDX3fYB55Enc0vJ9yew2yIzisp0FDO1hxdHJ09377fvs0L7exiWxhDHkQ9tJKTUOdYI6u6szTriukQzFqHdjHcihLzvYTM0ND561MreLY2GA3nOKeXzONaNZeY4O5lShAZKCb2EylBtq3z+mhWhFnNaTvW+PZ2WRpT4VeZxMIYmFC4iKZT02E0WdhW084d6jQ5aK82Gi/PSJ5sOCSPEQslrt5GOODNunolyX+XZmIBk+rZmc6qenjR4b/QP9YG0p6Mp6NBW5iv7OgfI12xAQM4dpYsLkGQasbnQal+ESYFiAz+u0CNNrswB2tyrggqBOmEKfbEIkzcBEvnRfA6Z2zR430liwvSaId/GyZf9tYyGoVzClU01fnWKKTF8Bzd7m3UyNrbd6aAwV9mXi9wIdsyJxnlKRCDPTbtyM8orZjnjkWT/Vtlv9lPjoP7EjXD7T3gb0iqBmut6VwAI49s6gNpujz70PDyu6ZrVKd6MkUVEgOHOCcRFuGYYdlw0DjqwRf6JKOlvQBnLxgnlpElBtXOPFJCSXMJjYKWvHL06I8+lguAt7MFgKwanmdpcB97Cd+Fe89tvNXvnPx+HhLnbv0b1LHtTXPTyDawwKC7XRIII4injurG1Q4gQRUjhyvS5znQts3CImmYx3dL4ifoG1t8CK4esW4QORkBd3FWyZAK/EMAFoucJU35fOKI0kbbQ2BvTYjozYB5OfLA16vJ02m0pCWkllsoE6yAgapAgXQ0xg4PT5XQ93xxzZIA84EQlsYBuYZ5WGfo2e27331eG7CdjSu9tIx1eBbezUmbg2qe3FdxOHIIj1jMbX/Drzct7g1nmxJzPdz62rQQqFlA0CNzfhUyRl9ytWpZCCAURPdVbqlkr9kxqr2LXas+lquhUgIEFy+UpqiEN66PWLg56ksjMQ6UTiZRIJBLd5RxNAilbWTsklI7wkdR13XpIlEz5fUp/Jq8Wzc93yL2jFd0x9m/spOfcAZoQ7+7PjVD0otVVLUSSqqiPszAwuN69Ea/Q6tbVxVdT5PnzBVjtWjVduQcb+oSEbmBUUHlzPQGaHa7uSPJ4dDoFz5S8OlopbrLw102HU2uS5Sb3DJMVdWUMQbzpmI27Mo1zBMOE4IcEMhhsIN2YJ4ykybFukhjg2MKbulcoLYApM2Oe0kGCCaxp4xlbk4AxkKTzdU5m+xN7pjt27lxFyFSYXjV1odZLwqaM1hUqNu2UQUlGIMEGtGjDhM2UKXVcyNu7XNTo6ZqtI6h1pyQWXndqiMUHnTjKIqFGWhpDOSlsdXh1lzRazLo1o0lRVP+/9vWAzMMV5Cr0v7Z3JPY5xIOwBmYY6+3y/GPbs93kPuAZoQ9voHx+n1tGHyXG+K602pqyUpg61p1mtYZomONEWKti1bTSZhWSrMiEMjIGZhUW5VccLXHLpHTrK4g4MspaVLMnGpK6EskLYuittCBQigUu0dZmCtxChYDIosyUMgKNE/q5fHxqPKAnFaUZZmY1krFkaQZKJRMEoGGKlkaHKi5kwxBcSUKEZaMMLIZEQqAoWTzbT9wCSEXcvL/wBJCJLh+QCSEWH8OrnUuPhxASQj9/xASQj0ekBJCLLDw5a9v6UPKziAkhGN5sK/YAkhHS79fdfjbLjZ8fL+oBJCMiP+QEkIzwk4+ACSERD0+wBJCJPkZ/VWfFlmwBJCJ2++BG71+2lmlbH/+AkhDXB/9/5gJIR+4BJCJT+iKAJIR9ACSEa/wASQjIpy70fsbXzsL9Sfm17Kel79+y/VynGG/C1fhPL3jsneooS9t83z8bvQo/N7HYyHEETspSJW7NMwNS+X2gRw9UuRbZQPgh1XD50fZcHx4e+Gk2yt2RP3v8vxjzMTAZKf7SBREowEPLOzVSsYS/CFFDmOz9xO4rrKpcpCt2ut5GvOUoUXi8hSOnCmimIZjZU+nRRzVyL/f7l9x4F3xmDUUcwEcRo1lmmEwgdmQL8Fx3qS7Ix7gyt8A1OxsycxrZagZcSDrytm0FRsYqiUiWSkAscxbjgbWyGiBLBVgjsIe1EESBkPux1tdzcKksQ0WFgIgcod8eZ9dZ7s9EzpjD5XjejWu4DYitJyrps/MJG4nzkASst4EEhARBDw2W6sUzQdJzROFWPVUGHBLMXZCIiBnAeaMDyx2HRRdcrk2LtKbNufsAhYrsCcbFcErlqgbPizOgPcw5yAMDKrAZXVMbrZIyw/Y11HOIzOrr9p8RKPnbbPXZjkgwgPfCB4CAjIeAhDyhxwrsmiAjJZAqgUiJDzmhneY/L7fwsLkA+dyu2uRu6mbphEwN4CSESWCwWPjHZjAlNrqsPfgeskbAvjSzskSUyxkjcRNVngdzGpiUNQGNi8kdrgqVVwYTFj9MqhPegMdrr0SvvVq2MN2py+u97tkiLWQ+OwkwH30CNqw/tlpY0cL5zVVC3BLar0Gn8QHG1zgwZe3MiFyiSL7DCWsesBJCO2aLH6Hf4ng4JRSFm/KQ7Rbi6JaerTDVmAhMlj+iNfJAGBwyQ4EMBQYFXt5mjr6l6NbeV3oqX0yEwYHUIImYLSGCRGTBCUZBGTshxnq1JIeaeddfWuH5/V3onaCqNB0QGCR4pN0HHrFMGIYwFLMDtOCTqkHlzrOeBsGuQkuQ+QGwRUSAiQClKERgIMgjA9rq9Xh38INh3VQtqKZHMsD0UNztXlZMA6Gho0l4TJzmNHwDoJIjAAspSRGGFKAiH4/bDVBu1xePdTEXBN4mCxGAxgAxgmMCCCEDGHI503+Csim2JsdAiI88I23E/SPwtgL37rVmAzK0urzVns91pqPpEMfeyRcMVKBKTUZFeh2AlZyHZ4UtTl9ECis4sKh3MCtNr8aWAmcspVBlIOPEAgTE5Pc1zmHjK4GhgWrpByELEJXLUGs5imlIXuyntslINwEfxJW2o785vd6qSq7XlJQFKdugGKDsQen5oAaDLESR13Bt6cy4I55RifQ2EmvcxFIHA2sOvb023NUw4ffia2F2hLca3ykM3U6rEYHlobiduiDj+2lvDkPCshyUSalEgkTIgjJGmCmFgo45X2i4IGqF+992MC9BSTkIYNxQjWgzgVsM2H3diCt+t1/5kifiIwObfqNTZIKaTNbZ6yqTYqPEOEesxZQLRWIC622LEmSumIukAXlgH9NPGwALfyASQi5SMORO/7gib9EYDsvmPfAiiQYwYKETzZaIM0PXFzv7e603gg8PU8qYXswbpFlguJQ4RqQiEdh3WmPYtsl6qkKDEqlpNT4/QBKc/aURNO60yASQiRNC9iGDY814UHRBiVXZhBJVVg+3TbNYGIFR50P5CSb8n4fK5bgpkwwyYlwS3C0XqbrXFKukwBsLU43iJrWb1dW4rZtcu9VdSU2CuCyjbalBUtLiZKQYYEGSlsVskYiuVagxESRu9DLWi22yjKaFmAUlgJRw0DEDagCD0s+sjzzuk8ydhNGI/SLlFm8skBKxKbRyGe3foGieb2uQ2lKCLcty5ZWsqWUQRTJhgomEuWtGgsUTuPGaCIsMRamgyDGMVzBcDATLJSLE8p6mRNlkKMS9vj0EHwASQiPcxEgqRBG3i+z5iYVVjIvTBEEP5el/UckilTfzRJnshcE0/PxRZKfiugI5+vzp8OSRmIvy4hhwzDcNtpekaPpaXXctPcAkhEiw2XzpuTsAwSr2ps8i073vaBsQTTQHztKoINgBsElyBdDmrb7ZvRH6Rgj5P8D1BwNAfcea4Y7uI2ibOUubkRJ5DioxpkpQ91/Df8oGzu5+tO06oc73xgsVICKMYPxQNn207uUNEg6PuOXbxyaMfLU8VbcYC4I998iQMB5QGpbu8UuqeeBdO04aOW3GtoSO8vASQjIFnm5z8YnODo/0ASQilQZs7BSEUDwLXffxnyi9Z23OSPX0DxCFZQjElvv0olPACSEM0/FDpYEBuLRsNGIL2kXh+PnGBNV1hTaFdoYzGIrPOKelotpNFGjhplM2aoaxqkBkccayD2ju2OjrtaPHDZuIMs0Y0iXAwKmhkzNZyYHu0gDVEBwoHUWXyNlZktjhTNlERKfzgJIRtXl1ZnczXffB8/dJI4UWzSM571DlEF8KG0gaTAZHNjTYbb43ca28jAw4Ykui90VDNHWBmAxXbL0HK0XhnCKwAHjEQmiCRV46bFnL7aMnLfLyRnB0CO2SgxGIMYjEROzMHC3Q4Vpe3HNGq/RIpWJ7fLkbSGvH3JmQh7qfw4poEuL2BKQmFxhs7LLemU5QQcjfeigDaLkXyeFGB0KQyAUlIzu0Z6hNMhDcA97ljLMkS+UVnIDSdnHi+A0G0a1Xj9gCSEbbsUyHgmCgKAdEmmCFZfBJNSMdnpnzMqyKG8+WPAAzMMXM2bZ6yByxB2xjSCSUNoyl1pmn96SGqBpzhBi4Gc2TUPemyI+ck3JW+ZrXaGJVtIlPqNGgbEiJQ2ImHOz+Y6l+FlisRJmwL49Pu3cudL/dRoFBcXbpqoWodtQ+b1CqGxpFoIojDjmHbnW1I6mT9q2muhbP9Q5zA4rz+X3W5WYhxG6KBNzbxx6mbaQbz3PySSbrt/wMzNXybje1V2s0owAFjEJILd40P7u469uY/bmjw8OBRiy0kJE7LXvtm10bGGLsus4iLkYoKL4csbrDIQH1vdPKp7wEkIYZsh0MTnyeyhDEe6Ntq9yUetodTeDRgWRIeLlerihu2WdQHsAPpTp2IC/tAJ3XLB5DJJlqXHKsqQUi6IL0Y+AsxU54nuLUTO0PZesxjplCSXc7+WddAYYemkpzKJlVB5mu4BJCLEVEPFMAYAbbkXCL+fmqYj2rHjbjgH96gNQkBAWvMAzaaeHs+60mUbdRFUR4+MOCzGVPtMLrlmFJBNh9dtb1i6FpFaIc1JSI9yiHK8ZB2+oKVeUHO8yQlpBUX0gzsUxYlWlmbvYu7qhrRmuW9a5XeKaEMCCQyHD9NeNpDZpuKhhiBEYZyVsTlNvEkoaJzmVzU878J6xkMxZhgiSkAxXoIc5kzUgLMJU6M5FCQyCamoapqQRgVRpmjikKg3aJbyy1o2hW0KmDKojQaNLhQDAGQ1yzkJvu7+yd3HXysowqU6RLJhR6QHWagx0HIiXbGyQOqTp4/gfddcuTFc24bhtMNUcimIxjJBCuXez164/IO7Kt9iJhpfPwQEgNy0Wm0rHKIJyJQQ5DJTUocFFKFzBwhRLkEWw6jno+fs7f5td/bIW5wmNANrPLXlqseJwj3jnaaizsBsTBElCAYPIcZRHMCANS67pKt5rF+FxftrZyTJ0uxxfMCRD+Li1XXOd5c+iJbGserozrghtmhDcGW0ZiLKGSo0ES4rQ3zD3fJz8jnP7kyB2FSJTlT8aMEyrzpuUQOpsYMrEJQzOQLdKOzhibN4Bd26JkFoDnHGtTYhmwhUO8BJCIqky9ntIF2yuwAvsD7XTXZnO+y4cSCVJTzm3DKOucC23G23BHwYQ8+1g+/HIKXYAi1JgYMakgOjXeWVwDNRPWhus7Pk7zfwDg0xoKINszXfuOuc3Q0kSjOJKUROJZJUBO5k0SBouSIKx1nfzRNLAdqHvyM22ZMRCB7okPrSNLE5ABPFY4LgXK3mgYH/oCSEYVDpMApnqurQlCmfcIjSD/Uf0A6yzXTDsBi8Hg7DpVDX+Vp1elROUpIttWtO2yQAdoWAU7B0743j09W+3mMvuK8kYdRlHxabFAWl62cbdO3t1JSz6AJIRj3PGJJvfb4umBRyynh6icsWE157QEkIyrU4Fgucy25QlMWNgS0Oo+/bjYL1tH1AJIQyA6d1H3y4dclJOUKlKedaJK1iMQmN2OIOm5kMAplBsMgBhlpYKRUOFebWMy3JUlwVAczfCiBVQAVAsFNWh0BqHgGr3vcXDk5pmWdeOazRrMbaDkttpUawgLQoiZGZCBcLVBkQcrWpWywFX4evW+my5yBjQQZTkBTCwiYgNJTFw1JEYHVhoBwRtttN0oVYhEWmFJkKWtkpRGIxNeSHo3xuseXJbLljWFmrLShStYmUqWGhMFGDKI5DCkTAuWtYVFRO32dVTyfQbDoAkhEKSORmwH26m0xqT+1h1hY/7nH0v0r3jpvV0b896Tn3jrbr/pdi7cvdjmaSaJAgTEKwP/F3JFOFCQ9+20CQ=')))
| 292.096774
| 8,142
| 0.927554
| 264
| 9,055
| 31.57197
| 0.916667
| 0.003239
| 0.004559
| 0.006239
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124238
| 0.022198
| 9,055
| 30
| 8,143
| 301.833333
| 0.817145
| 0.004638
| 0
| 0
| 0
| 0.142857
| 0.967332
| 0.965312
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.571429
| 0
| 0.571429
| 0.142857
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
f5c0a714ef9a8dfb8360101216a48f44fbe7b9a8
| 130
|
py
|
Python
|
geojsoncontour/__init__.py
|
moghimis/geojsoncontour
|
23f298cb5c5ae4b7000024423493e109a9cc908d
|
[
"MIT"
] | 63
|
2016-10-31T06:55:47.000Z
|
2022-02-04T06:47:32.000Z
|
geojsoncontour/__init__.py
|
moghimis/geojsoncontour
|
23f298cb5c5ae4b7000024423493e109a9cc908d
|
[
"MIT"
] | 20
|
2016-09-26T15:25:53.000Z
|
2020-11-11T18:26:32.000Z
|
geojsoncontour/__init__.py
|
moghimis/geojsoncontour
|
23f298cb5c5ae4b7000024423493e109a9cc908d
|
[
"MIT"
] | 26
|
2016-06-15T02:39:10.000Z
|
2022-02-04T06:48:15.000Z
|
from .contour import contour_to_geojson
from .contour import contourf_to_geojson_overlap
from .contour import contourf_to_geojson
| 32.5
| 48
| 0.884615
| 19
| 130
| 5.684211
| 0.368421
| 0.305556
| 0.472222
| 0.462963
| 0.62963
| 0.62963
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092308
| 130
| 3
| 49
| 43.333333
| 0.915254
| 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
|
f5e0023cc7f83e68f712bc1d6d2348734d48c426
| 1,767
|
py
|
Python
|
entente/test_shuffle.py
|
metabolize/entente
|
c1b16bb7c7fb83b31db4e8ddaf65f1504374fe7a
|
[
"MIT"
] | 4
|
2019-05-09T17:11:58.000Z
|
2022-01-28T20:27:39.000Z
|
entente/test_shuffle.py
|
metabolize/entente
|
c1b16bb7c7fb83b31db4e8ddaf65f1504374fe7a
|
[
"MIT"
] | 94
|
2018-10-02T15:45:55.000Z
|
2021-07-14T14:20:38.000Z
|
entente/test_shuffle.py
|
metabolize/entente
|
c1b16bb7c7fb83b31db4e8ddaf65f1504374fe7a
|
[
"MIT"
] | 3
|
2019-01-21T00:59:24.000Z
|
2022-01-28T20:26:28.000Z
|
from entente.shuffle import shuffle_faces, shuffle_vertices
import numpy as np
from .testing import assert_same_face_set, assert_same_vertex_set, vitra_mesh
def test_shuffle_vertices():
test_mesh = vitra_mesh()
shuffled, ordering = shuffle_vertices(test_mesh, ret_new_ordering=True)
np.testing.assert_raises(
AssertionError, np.testing.assert_array_equal, shuffled.v, test_mesh.v
)
np.testing.assert_raises(
AssertionError, np.testing.assert_array_equal, shuffled.f, test_mesh.f
)
assert_same_vertex_set(test_mesh, shuffled)
np.testing.assert_array_equal(test_mesh.v[ordering], shuffled.v)
# Test `ret_new_ordering=False`.
shuffled = shuffle_vertices(test_mesh, ret_new_ordering=False)
np.testing.assert_raises(
AssertionError, np.testing.assert_array_equal, shuffled.v, test_mesh.v
)
np.testing.assert_raises(
AssertionError, np.testing.assert_array_equal, shuffled.f, test_mesh.f
)
assert_same_vertex_set(test_mesh, shuffled)
def test_shuffle_faces():
test_mesh = vitra_mesh()
shuffled, ordering = shuffle_faces(test_mesh, ret_new_ordering=True)
np.testing.assert_array_equal(shuffled.v, test_mesh.v)
np.testing.assert_raises(
AssertionError, np.testing.assert_array_equal, shuffled.f, test_mesh.f
)
assert_same_face_set(test_mesh, shuffled)
np.testing.assert_array_equal(test_mesh.f[ordering], shuffled.f)
# Test `ret_new_ordering=False`.
shuffled = shuffle_faces(test_mesh, ret_new_ordering=False)
np.testing.assert_array_equal(shuffled.v, test_mesh.v)
np.testing.assert_raises(
AssertionError, np.testing.assert_array_equal, shuffled.f, test_mesh.f
)
assert_same_face_set(test_mesh, shuffled)
| 36.061224
| 78
| 0.757216
| 249
| 1,767
| 5.016064
| 0.124498
| 0.128102
| 0.192154
| 0.160128
| 0.835869
| 0.835869
| 0.835869
| 0.690152
| 0.690152
| 0.605284
| 0
| 0
| 0.152801
| 1,767
| 48
| 79
| 36.8125
| 0.834335
| 0.034522
| 0
| 0.540541
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.567568
| 1
| 0.054054
| false
| 0
| 0.081081
| 0
| 0.135135
| 0
| 0
| 0
| 0
| null | 0
| 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
| 7
|
eb0ec71ad624093baa7aadf12ea0dd9bc5be68d9
| 274
|
py
|
Python
|
test2.py
|
Hy-Oy/new
|
88a47d75b5750bdb2e8a9ea09e5e66c1f0ab82e4
|
[
"MIT"
] | null | null | null |
test2.py
|
Hy-Oy/new
|
88a47d75b5750bdb2e8a9ea09e5e66c1f0ab82e4
|
[
"MIT"
] | null | null | null |
test2.py
|
Hy-Oy/new
|
88a47d75b5750bdb2e8a9ea09e5e66c1f0ab82e4
|
[
"MIT"
] | null | null | null |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# author: ouyangshaokun
# date:
print(44444444444)
print("fsfasfaa")
print(22222222)
print("fsfasfa")
print(123214)
print(22222222)
print(22222222)
print(22222222)
print(22222222)
print(22222222)
print(22222222)
print(42342)
| 14.421053
| 23
| 0.733577
| 34
| 274
| 5.911765
| 0.5
| 0.452736
| 0.626866
| 0.646766
| 0.412935
| 0.412935
| 0.412935
| 0.412935
| 0.412935
| 0.412935
| 0
| 0.319838
| 0.09854
| 274
| 19
| 24
| 14.421053
| 0.493927
| 0.259124
| 0
| 0.583333
| 0
| 0
| 0.075
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 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
| 1
|
0
| 7
|
eb4092161363be97992b3d1e815e23d53856a2b4
| 40,481
|
py
|
Python
|
rcnn/lib/python3.6/site-packages/imgaug/bak/affine.py
|
dreamingweaver/making_passportImage
|
68f23411780ff82abe934dfae5fc04acb80f2c49
|
[
"MIT"
] | 1
|
2019-01-12T13:17:32.000Z
|
2019-01-12T13:17:32.000Z
|
rcnn/lib/python3.6/site-packages/imgaug/bak/affine.py
|
dreamingweaver/making_passportImage
|
68f23411780ff82abe934dfae5fc04acb80f2c49
|
[
"MIT"
] | null | null | null |
rcnn/lib/python3.6/site-packages/imgaug/bak/affine.py
|
dreamingweaver/making_passportImage
|
68f23411780ff82abe934dfae5fc04acb80f2c49
|
[
"MIT"
] | null | null | null |
class AbstractAffine(Augmenter):
def __init__(self):
super(AbstractAffine, self).__init__(name=name, deterministic=deterministic, random_state=random_state)
self.scale = self._process_scale_param()
def _process_scale_param(self, scale):
# scale
# float | (float, float) | [float, float] | StochasticParameter
def scale_handle_param(param, allow_dict):
if isinstance(param, StochasticParameter):
return param
elif ia.is_single_number(param):
assert param > 0.0, "Expected scale to have range (0, inf), got value %.4f. Note: The value to _not_ change the scale of images is 1.0, not 0.0." % (param,)
return Deterministic(param)
elif ia.is_iterable(param) and not isinstance(param, dict):
assert len(param) == 2, "Expected scale tuple/list with 2 entries, got %d entries." % (len(param),)
assert param[0] > 0.0 and param[1] > 0.0, "Expected scale tuple/list to have values in range (0, inf), got values %.4f and %.4f. Note: The value to _not_ change the scale of images is 1.0, not 0.0." % (param[0], param[1])
return Uniform(param[0], param[1])
elif allow_dict and isinstance(param, dict):
assert "x" in param or "y" in param
x = param.get("x")
y = param.get("y")
x = x if x is not None else 1.0
y = y if y is not None else 1.0
return (scale_handle_param(x, False), scale_handle_param(y, False))
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(param),))
return scale_handle_param(scale, True)
def _process_translate_param(self, translate_percent, translate_px):
# translate
if translate_percent is None and translate_px is None:
translate_px = 0
assert translate_percent is None or translate_px is None
if translate_percent is not None:
# translate by percent
def translate_handle_param(param, allow_dict):
if ia.is_single_number(param):
return Deterministic(float(param))
elif ia.is_iterable(param) and not isinstance(param, dict):
assert len(param) == 2, "Expected translate_percent tuple/list with 2 entries, got %d entries." % (len(param),)
all_numbers = all([ia.is_single_number(p) for p in param])
assert all_numbers, "Expected translate_percent tuple/list to contain only numbers, got types %s." % (str([type(p) for p in param]),)
#assert param[0] > 0.0 and param[1] > 0.0, "Expected translate_percent tuple/list to have values in range (0, inf), got values %.4f and %.4f." % (param[0], param[1])
return Uniform(param[0], param[1])
elif allow_dict and isinstance(param, dict):
assert "x" in param or "y" in param
x = param.get("x")
y = param.get("y")
x = x if x is not None else 0
y = y if y is not None else 0
return (translate_handle_param(x, False), translate_handle_param(y, False))
elif isinstance(param, StochasticParameter):
return param
else:
raise Exception("Expected float, int or tuple/list with 2 entries of both floats or ints or StochasticParameter. Got %s." % (type(param),))
translate = translate_handle_param(translate_percent, True)
else:
# translate by pixels
def translate_handle_param(param, allow_dict):
if ia.is_single_integer(param):
return Deterministic(param)
elif ia.is_iterable(param) and not isinstance(param, dict):
assert len(param) == 2, "Expected translate_px tuple/list with 2 entries, got %d entries." % (len(param),)
all_integer = all([ia.is_single_integer(p) for p in param])
assert all_integer, "Expected translate_px tuple/list to contain only integers, got types %s." % (str([type(p) for p in param]),)
return DiscreteUniform(param[0], param[1])
elif allow_dict and isinstance(param, dict):
assert "x" in param or "y" in param
x = param.get("x")
y = param.get("y")
x = x if x is not None else 0
y = y if y is not None else 0
return (translate_handle_param(x, False), translate_handle_param(y, False))
elif isinstance(param, StochasticParameter):
return param
else:
raise Exception("Expected int or tuple/list with 2 ints or StochasticParameter. Got %s." % (type(param),))
translate = translate_handle_param(translate_px, True)
return translate
def _process_rotate_param(self, rotate):
# StochasticParameter | float | int | (float or int, float or int) | [float or int, float or int]
if isinstance(rotate, StochasticParameter):
return rotate
elif ia.is_single_number(rotate):
return Deterministic(rotate)
elif ia.is_iterable(rotate):
assert len(rotate) == 2, "Expected rotate tuple/list with 2 entries, got %d entries." % (len(rotate),)
assert all([ia.is_single_number(val) for val in rotate]), "Expected floats/ints in rotate tuple/list"
return Uniform(rotate[0], rotate[1])
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(rotate),))
def _process_shear_param(self, shear):
# StochasticParameter | float | int | (float or int, float or int) | [float or int, float or int]
if isinstance(shear, StochasticParameter):
return shear = shear
elif ia.is_single_number(shear):
return shear = Deterministic(shear)
elif ia.is_iterable(shear):
assert len(shear) == 2, "Expected rotate tuple/list with 2 entries, got %d entries." % (len(shear),)
assert all([ia.is_single_number(val) for val in shear]), "Expected floats/ints in shear tuple/list."
return shear = Uniform(shear[0], shear[1])
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(shear),))
def _augment_keypoints(self, keypoints_on_images, random_state, parents, hooks):
result = []
nb_images = len(keypoints_on_images)
scale_samples, translate_samples, rotate_samples, shear_samples, cval_samples, mode_samples, order_samples = self._draw_samples(nb_images, random_state)
for i, keypoints_on_image in enumerate(keypoints_on_images):
height, width = keypoints_on_image.height, keypoints_on_image.width
shift_x = width / 2.0 - 0.5
shift_y = height / 2.0 - 0.5
scale_x, scale_y = scale_samples[0][i], scale_samples[1][i]
translate_x, translate_y = translate_samples[0][i], translate_samples[1][i]
#assert isinstance(translate_x, (float, int))
#assert isinstance(translate_y, (float, int))
if ia.is_single_float(translate_y):
translate_y_px = int(round(translate_y * keypoints_on_image.shape[0]))
else:
translate_y_px = translate_y
if ia.is_single_float(translate_x):
translate_x_px = int(round(translate_x * keypoints_on_image.shape[1]))
else:
translate_x_px = translate_x
rotate = rotate_samples[i]
shear = shear_samples[i]
#cval = cval_samples[i]
#mode = mode_samples[i]
#order = order_samples[i]
if scale_x != 1.0 or scale_y != 1.0 or translate_x_px != 0 or translate_y_px != 0 or rotate != 0 or shear != 0:
matrix_to_topleft = tf.SimilarityTransform(translation=[-shift_x, -shift_y])
matrix_transforms = tf.AffineTransform(
scale=(scale_x, scale_y),
translation=(translate_x_px, translate_y_px),
rotation=math.radians(rotate),
shear=math.radians(shear)
)
matrix_to_center = tf.SimilarityTransform(translation=[shift_x, shift_y])
matrix = (matrix_to_topleft + matrix_transforms + matrix_to_center)
coords = keypoints_on_image.get_coords_array()
#print("coords", coords)
#print("matrix", matrix.params)
coords_aug = tf.matrix_transform(coords, matrix.params)
#print("coords before", coords)
#print("coordsa ftre", coords_aug, np.around(coords_aug).astype(np.int32))
result.append(ia.KeypointsOnImage.from_coords_array(np.around(coords_aug).astype(np.int32), shape=keypoints_on_image.shape))
else:
result.append(keypoints_on_image)
return result
def _sample_affine_parameters(self, nb_samples, seed):
if isinstance(self.scale, tuple):
scale_samples = (
self.scale[0].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 10)),
self.scale[1].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 20)),
)
else:
scale_samples = self.scale.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 30))
scale_samples = (scale_samples, scale_samples)
if isinstance(self.translate, tuple):
translate_samples = (
self.translate[0].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 40)),
self.translate[1].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 50)),
)
else:
translate_samples = self.translate.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 60))
translate_samples = (translate_samples, translate_samples)
assert translate_samples[0].dtype in [np.int32, np.int64, np.float32, np.float64]
assert translate_samples[1].dtype in [np.int32, np.int64, np.float32, np.float64]
rotate_samples = self.rotate.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 70))
shear_samples = self.shear.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 80))
return scale_samples, translate_samples, rotate_samples, shear_samples
def _draw_samples(self, nb_samples, random_state, nb_cval_values=None):
seed = random_state.randint(0, 10**6, 1)[0]
if isinstance(self.scale, tuple):
scale_samples = (
self.scale[0].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 10)),
self.scale[1].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 20)),
)
else:
scale_samples = self.scale.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 30))
scale_samples = (scale_samples, scale_samples)
if isinstance(self.translate, tuple):
translate_samples = (
self.translate[0].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 40)),
self.translate[1].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 50)),
)
else:
translate_samples = self.translate.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 60))
translate_samples = (translate_samples, translate_samples)
assert translate_samples[0].dtype in [np.int32, np.int64, np.float32, np.float64]
assert translate_samples[1].dtype in [np.int32, np.int64, np.float32, np.float64]
rotate_samples = self.rotate.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 70))
shear_samples = self.shear.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 80))
cval_samples = self.cval.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 90))
mode_samples = self.mode.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 100))
order_samples = self.order.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 110))
return scale_samples, translate_samples, rotate_samples, shear_samples, cval_samples, mode_samples, order_samples
class AffineSkimage(Augmenter):
"""
Augmenter to apply affine transformations to images.
This is mostly a wrapper around skimage's AffineTransform class and
warp function.
Affine transformations
involve:
- Translation ("move" image on the x-/y-axis)
- Rotation
- Scaling ("zoom" in/out)
- Shear (move one side of the image, turning a square into a trapezoid)
All such transformations can create "new" pixels in the image without a
defined content, e.g. if the image is translated to the left, pixels
are created on the right.
A method has to be defined to deal with these pixel values. The
parameters `cval` and `mode` of this class deal with this.
Some transformations involve interpolations between several pixels
of the input image to generate output pixel values. The parameter `order`
deals with the method of interpolation used for this.
Parameters
----------
scale : float or tuple of two floats or StochasticParameter or dict {"x": float/tuple/StochasticParameter, "y": float/tuple/StochasticParameter}, optional(default=1.0)
Scaling factor to use, where 1.0 represents no change and 0.5 is
zoomed out to 50 percent of the original size.
* If a single float, then that value will be used for all images.
* If a tuple (a, b), then a value will be sampled from the range
a <= x <= b per image. That value will be used identically for
both x- and y-axis.
* If a StochasticParameter, then from that parameter a value will
be sampled per image (again, used for both x- and y-axis).
* If a dictionary, then it is expected to have the keys "x" and/or "y".
Each of these keys can have the same values as described before
for this whole parameter (`scale`). Using a dictionary allows to
set different values for the axis. If they are set to the same
ranges, different values may still be sampled per axis.
translate_percent : float or tuple of two floats or StochasticParameter or dict {"x": float/tuple/StochasticParameter, "y": float/tuple/StochasticParameter}, optional(default=1.0)
Translation in percent relative to the image
height/width (x-translation, y-translation) to use,
where 0 represents no change and 0.5 is half of the image
height/width.
* If a single float, then that value will be used for all images.
* If a tuple (a, b), then a value will be sampled from the range
a <= x <= b per image. That percent value will be used identically
for both x- and y-axis.
* If a StochasticParameter, then from that parameter a value will
be sampled per image (again, used for both x- and y-axis).
* If a dictionary, then it is expected to have the keys "x" and/or "y".
Each of these keys can have the same values as described before
for this whole parameter (`translate_percent`).
Using a dictionary allows to set different values for the axis.
If they are set to the same ranges, different values may still
be sampled per axis.
translate_px : int or tuple of two ints or StochasticParameter or dict {"x": int/tuple/StochasticParameter, "y": int/tuple/StochasticParameter}, optional(default=1.0)
Translation in
pixels.
* If a single int, then that value will be used for all images.
* If a tuple (a, b), then a value will be sampled from the discrete
range [a .. b] per image. That number will be used identically
for both x- and y-axis.
* If a StochasticParameter, then from that parameter a value will
be sampled per image (again, used for both x- and y-axis).
* If a dictionary, then it is expected to have the keys "x" and/or "y".
Each of these keys can have the same values as described before
for this whole parameter (`translate_px`).
Using a dictionary allows to set different values for the axis.
If they are set to the same ranges, different values may still
be sampled per axis.
rotate : float or int or tuple of two floats/ints or StochasticParameter, optional(default=0)
Rotation in degrees (NOT radians), i.e. expected value range is
0 to 360 for positive rotations (may also be negative).
* If a float/int, then that value will be used for all images.
* If a tuple (a, b), then a value will be sampled per image from the
range a <= x <= b and be used as the rotation value.
* If a StochasticParameter, then this parameter will be used to
sample the rotation value per image.
shear : float or int or tuple of two floats/ints or StochasticParameter, optional(default=0)
Shear in degrees (NOT radians), i.e. expected value range is
0 to 360 for positive shear (may also be negative).
* If a float/int, then that value will be used for all images.
* If a tuple (a, b), then a value will be sampled per image from the
range a <= x <= b and be used as the rotation value.
* If a StochasticParameter, then this parameter will be used to
sample the shear value per image.
order : int or iterable of int or ia.ALL or StochasticParameter, optional(default=1)
Interpolation order to use. Same meaning as in
skimage:
* 0: Nearest-neighbor
* 1: Bi-linear (default)
* 2: Bi-quadratic (not recommended by skimage)
* 3: Bi-cubic
* 4: Bi-quartic
* 5: Bi-quintic
Method 0 and 1 are fast, 3 is a bit slower, 4 and 5 are very
slow.
* If a single int, then that order will be used for all images.
* If an iterable, then for each image a random value will be sampled
from that iterable (i.e. list of allowed order values).
* If ia.ALL, then equivalant to list [0, 1, 3, 4, 5].
* If StochasticParameter, then that parameter is queried per image
to sample the order value to use.
cval : number or tuple of two number or ia.ALL or StochasticParameter, optional(default=0)
The constant value used for skimage's transform function.
This is the value used to fill up pixels in the result image that
didn't exist in the input image (e.g. when translating to the left,
some new pixels are created at the right). Such a fill-up with a
constant value only happens, when `mode` is "constant".
For standard uint8 images (value range 0-255), this value may also
come from the range 0-255. It may be a float value, even for
integer image dtypes.
* If this is a single int or float, then that value will be used
(e.g. 0 results in black pixels).
* If a tuple (a, b), then a random value from the range a <= x <= b
is picked per image.
* If ia.ALL, a value from the discrete range [0 .. 255] will be
sampled per image.
* If a StochasticParameter, a new value will be sampled from the
parameter per image.
mode : string or list of string or ia.ALL or StochasticParameter, optional(default="constant")
Parameter that defines the handling of newly created pixels.
Same meaning as in skimage (and numpy.pad):
* "constant": Pads with a constant value
* "edge": Pads with the edge values of array
* "symmetric": Pads with the reflection of the vector mirrored
along the edge of the array.
* "reflect": Pads with the reflection of the vector mirrored on
the first and last values of the vector along each axis.
* "wrap": Pads with the wrap of the vector along the axis.
The first values are used to pad the end and the end values
are used to pad the beginning.
The datatype of the parameter may
be:
* If a single string, then that mode will be used for all images.
* If a list of strings, then per image a random mode will be picked
from that list.
* If ia.ALL, then a random mode from all possible modes will be
picked.
* If StochasticParameter, then the mode will be sampled from that
parameter per image, i.e. it must return only the above mentioned
strings.
name : string, optional(default=None)
See `Augmenter.__init__()`
deterministic : bool, optional(default=False)
See `Augmenter.__init__()`
random_state : int or np.random.RandomState or None, optional(default=None)
See `Augmenter.__init__()`
Examples
--------
>>> aug = iaa.Affine(scale=2.0)
zooms all images by a factor of 2.
>>> aug = iaa.Affine(translate_px=16)
translates all images on the x- and y-axis by 16 pixels (to the
right/top), fills up any new pixels with zero (black values).
>>> aug = iaa.Affine(translate_percent=0.1)
translates all images on the x- and y-axis by 10 percent of their
width/height (to the right/top), fills up any new pixels with zero
(black values).
>>> aug = iaa.Affine(rotate=35)
rotates all images by 35 degrees, fills up any new pixels with zero
(black values).
>>> aug = iaa.Affine(shear=15)
rotates all images by 15 degrees, fills up any new pixels with zero
(black values).
>>> aug = iaa.Affine(translate_px=(-16, 16))
translates all images on the x- and y-axis by a random value
between -16 and 16 pixels (to the right/top) (same for both axis, i.e.
sampled once per image), fills up any new pixels with zero (black values).
>>> aug = iaa.Affine(translate_px={"x": (-16, 16), "y": (-4, 4)})
translates all images on the x-axis by a random value
between -16 and 16 pixels (to the right) and on the y-axis by a
random value between -4 and 4 pixels to the top. Even if both ranges
were the same, both axis could use different samples.
Fills up any new pixels with zero (black values).
>>> aug = iaa.Affine(scale=2.0, order=[0, 1])
same as previously, but uses (randomly) either nearest neighbour
interpolation or linear interpolation.
>>> aug = iaa.Affine(translate_px=16, cval=(0, 255))
same as previously, but fills up any new pixels with a random
brightness (same for the whole image).
>>> aug = iaa.Affine(translate_px=16, mode=["constant", "edge"])
same as previously, but fills up the new pixels in only 50 percent
of all images with black values. In the other 50 percent of all cases,
the value of the nearest edge is used.
"""
def __init__(self, scale=1.0, translate_percent=None, translate_px=None,
rotate=0.0, shear=0.0, order=1, cval=0, mode="constant",
name=None, deterministic=False, random_state=None):
super(Affine, self).__init__(name=name, deterministic=deterministic, random_state=random_state)
# Peformance:
# 1.0x order 0
# 1.5x order 1
# 3.0x order 3
# 30.0x order 4
# 60.0x order 5
# measurement based on 256x256x3 batches, difference is smaller
# on smaller images (seems to grow more like exponentially with image
# size)
if order == ia.ALL:
# self.order = DiscreteUniform(0, 5)
self.order = Choice([0, 1, 3, 4, 5]) # dont use order=2 (bi-quadratic) because that is apparently currently not recommended (and throws a warning)
elif ia.is_single_integer(order):
assert 0 <= order <= 5, "Expected order's integer value to be in range 0 <= x <= 5, got %d." % (order,)
self.order = Deterministic(order)
elif isinstance(order, list):
assert all([ia.is_single_integer(val) for val in order]), "Expected order list to only contain integers, got types %s." % (str([type(val) for val in order]),)
assert all([0 <= val <= 5 for val in order]), "Expected all of order's integer values to be in range 0 <= x <= 5, got %s." % (str(order),)
self.order = Choice(order)
elif isinstance(order, StochasticParameter):
self.order = order
else:
raise Exception("Expected order to be imgaug.ALL, int, list of int or StochasticParameter, got %s." % (type(order),))
if cval == ia.ALL:
self.cval = DiscreteUniform(0, 255)
elif ia.is_single_number(cval):
self.cval = Deterministic(cval)
elif ia.is_iterable(cval):
assert len(cval) == 2
assert 0 <= cval[0] <= 255
assert 0 <= cval[1] <= 255
self.cval = Uniform(cval[0], cval[1])
elif isinstance(cval, StochasticParameter):
self.cval = cval
else:
raise Exception("Expected cval to be imgaug.ALL, int, float or StochasticParameter, got %s." % (type(cval),))
# constant, edge, symmetric, reflect, wrap
if mode == ia.ALL:
self.mode = Choice(["constant", "edge", "symmetric", "reflect", "wrap"])
elif ia.is_string(mode):
self.mode = Deterministic(mode)
elif isinstance(mode, list):
assert all([ia.is_string(val) for val in mode])
self.mode = Choice(mode)
elif isinstance(mode, StochasticParameter):
self.mode = mode
else:
raise Exception("Expected mode to be imgaug.ALL, a string, a list of strings or StochasticParameter, got %s." % (type(mode),))
# scale
# float | (float, float) | [float, float] | StochasticParameter
def scale_handle_param(param, allow_dict):
if isinstance(param, StochasticParameter):
return param
elif ia.is_single_number(param):
assert param > 0.0, "Expected scale to have range (0, inf), got value %.4f. Note: The value to _not_ change the scale of images is 1.0, not 0.0." % (param,)
return Deterministic(param)
elif ia.is_iterable(param) and not isinstance(param, dict):
assert len(param) == 2, "Expected scale tuple/list with 2 entries, got %d entries." % (len(param),)
assert param[0] > 0.0 and param[1] > 0.0, "Expected scale tuple/list to have values in range (0, inf), got values %.4f and %.4f. Note: The value to _not_ change the scale of images is 1.0, not 0.0." % (param[0], param[1])
return Uniform(param[0], param[1])
elif allow_dict and isinstance(param, dict):
assert "x" in param or "y" in param
x = param.get("x")
y = param.get("y")
x = x if x is not None else 1.0
y = y if y is not None else 1.0
return (scale_handle_param(x, False), scale_handle_param(y, False))
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(param),))
self.scale = scale_handle_param(scale, True)
# translate
if translate_percent is None and translate_px is None:
translate_px = 0
assert translate_percent is None or translate_px is None
if translate_percent is not None:
# translate by percent
def translate_handle_param(param, allow_dict):
if ia.is_single_number(param):
return Deterministic(float(param))
elif ia.is_iterable(param) and not isinstance(param, dict):
assert len(param) == 2, "Expected translate_percent tuple/list with 2 entries, got %d entries." % (len(param),)
all_numbers = all([ia.is_single_number(p) for p in param])
assert all_numbers, "Expected translate_percent tuple/list to contain only numbers, got types %s." % (str([type(p) for p in param]),)
#assert param[0] > 0.0 and param[1] > 0.0, "Expected translate_percent tuple/list to have values in range (0, inf), got values %.4f and %.4f." % (param[0], param[1])
return Uniform(param[0], param[1])
elif allow_dict and isinstance(param, dict):
assert "x" in param or "y" in param
x = param.get("x")
y = param.get("y")
x = x if x is not None else 0
y = y if y is not None else 0
return (translate_handle_param(x, False), translate_handle_param(y, False))
elif isinstance(param, StochasticParameter):
return param
else:
raise Exception("Expected float, int or tuple/list with 2 entries of both floats or ints or StochasticParameter. Got %s." % (type(param),))
self.translate = translate_handle_param(translate_percent, True)
else:
# translate by pixels
def translate_handle_param(param, allow_dict):
if ia.is_single_integer(param):
return Deterministic(param)
elif ia.is_iterable(param) and not isinstance(param, dict):
assert len(param) == 2, "Expected translate_px tuple/list with 2 entries, got %d entries." % (len(param),)
all_integer = all([ia.is_single_integer(p) for p in param])
assert all_integer, "Expected translate_px tuple/list to contain only integers, got types %s." % (str([type(p) for p in param]),)
return DiscreteUniform(param[0], param[1])
elif allow_dict and isinstance(param, dict):
assert "x" in param or "y" in param
x = param.get("x")
y = param.get("y")
x = x if x is not None else 0
y = y if y is not None else 0
return (translate_handle_param(x, False), translate_handle_param(y, False))
elif isinstance(param, StochasticParameter):
return param
else:
raise Exception("Expected int or tuple/list with 2 ints or StochasticParameter. Got %s." % (type(param),))
self.translate = translate_handle_param(translate_px, True)
# rotate
# StochasticParameter | float | int | (float or int, float or int) | [float or int, float or int]
if isinstance(rotate, StochasticParameter):
self.rotate = rotate
elif ia.is_single_number(rotate):
self.rotate = Deterministic(rotate)
elif ia.is_iterable(rotate):
assert len(rotate) == 2, "Expected rotate tuple/list with 2 entries, got %d entries." % (len(rotate),)
assert all([ia.is_single_number(val) for val in rotate]), "Expected floats/ints in rotate tuple/list"
self.rotate = Uniform(rotate[0], rotate[1])
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(rotate),))
# shear
# StochasticParameter | float | int | (float or int, float or int) | [float or int, float or int]
if isinstance(shear, StochasticParameter):
self.shear = shear
elif ia.is_single_number(shear):
self.shear = Deterministic(shear)
elif ia.is_iterable(shear):
assert len(shear) == 2, "Expected rotate tuple/list with 2 entries, got %d entries." % (len(shear),)
assert all([ia.is_single_number(val) for val in shear]), "Expected floats/ints in shear tuple/list."
self.shear = Uniform(shear[0], shear[1])
else:
raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter. Got %s." % (type(shear),))
def _augment_images(self, images, random_state, parents, hooks):
#images = images if isinstance(images, list) else [images]
nb_images = len(images)
#result = [None] * nb_images
result = images
scale_samples, translate_samples, rotate_samples, shear_samples, cval_samples, mode_samples, order_samples = self._draw_samples(nb_images, random_state)
for i in sm.xrange(nb_images):
height, width = images[i].shape[0], images[i].shape[1]
shift_x = width / 2.0 - 0.5
shift_y = height / 2.0 - 0.5
scale_x, scale_y = scale_samples[0][i], scale_samples[1][i]
translate_x, translate_y = translate_samples[0][i], translate_samples[1][i]
#assert isinstance(translate_x, (float, int))
#assert isinstance(translate_y, (float, int))
if ia.is_single_float(translate_y):
translate_y_px = int(round(translate_y * images[i].shape[0]))
else:
translate_y_px = translate_y
if ia.is_single_float(translate_x):
translate_x_px = int(round(translate_x * images[i].shape[1]))
else:
translate_x_px = translate_x
rotate = rotate_samples[i]
shear = shear_samples[i]
cval = cval_samples[i]
mode = mode_samples[i]
order = order_samples[i]
if scale_x != 1.0 or scale_y != 1.0 or translate_x_px != 0 or translate_y_px != 0 or rotate != 0 or shear != 0:
matrix_to_topleft = tf.SimilarityTransform(translation=[-shift_x, -shift_y])
matrix_transforms = tf.AffineTransform(
scale=(scale_x, scale_y),
translation=(translate_x_px, translate_y_px),
rotation=math.radians(rotate),
shear=math.radians(shear)
)
matrix_to_center = tf.SimilarityTransform(translation=[shift_x, shift_y])
matrix = (matrix_to_topleft + matrix_transforms + matrix_to_center)
image_warped = tf.warp(
images[i],
matrix.inverse,
order=order,
mode=mode,
cval=cval,
preserve_range=True
)
# warp changes uint8 to float64, making this necessary
if image_warped.dtype != images[i].dtype:
image_warped = image_warped.astype(images[i].dtype, copy=False)
result[i] = image_warped
else:
result[i] = images[i]
return result
def _augment_keypoints(self, keypoints_on_images, random_state, parents, hooks):
result = []
nb_images = len(keypoints_on_images)
scale_samples, translate_samples, rotate_samples, shear_samples, cval_samples, mode_samples, order_samples = self._draw_samples(nb_images, random_state)
for i, keypoints_on_image in enumerate(keypoints_on_images):
height, width = keypoints_on_image.height, keypoints_on_image.width
shift_x = width / 2.0 - 0.5
shift_y = height / 2.0 - 0.5
scale_x, scale_y = scale_samples[0][i], scale_samples[1][i]
translate_x, translate_y = translate_samples[0][i], translate_samples[1][i]
#assert isinstance(translate_x, (float, int))
#assert isinstance(translate_y, (float, int))
if ia.is_single_float(translate_y):
translate_y_px = int(round(translate_y * keypoints_on_image.shape[0]))
else:
translate_y_px = translate_y
if ia.is_single_float(translate_x):
translate_x_px = int(round(translate_x * keypoints_on_image.shape[1]))
else:
translate_x_px = translate_x
rotate = rotate_samples[i]
shear = shear_samples[i]
#cval = cval_samples[i]
#mode = mode_samples[i]
#order = order_samples[i]
if scale_x != 1.0 or scale_y != 1.0 or translate_x_px != 0 or translate_y_px != 0 or rotate != 0 or shear != 0:
matrix_to_topleft = tf.SimilarityTransform(translation=[-shift_x, -shift_y])
matrix_transforms = tf.AffineTransform(
scale=(scale_x, scale_y),
translation=(translate_x_px, translate_y_px),
rotation=math.radians(rotate),
shear=math.radians(shear)
)
matrix_to_center = tf.SimilarityTransform(translation=[shift_x, shift_y])
matrix = (matrix_to_topleft + matrix_transforms + matrix_to_center)
coords = keypoints_on_image.get_coords_array()
#print("coords", coords)
#print("matrix", matrix.params)
coords_aug = tf.matrix_transform(coords, matrix.params)
#print("coords before", coords)
#print("coordsa ftre", coords_aug, np.around(coords_aug).astype(np.int32))
result.append(ia.KeypointsOnImage.from_coords_array(np.around(coords_aug).astype(np.int32), shape=keypoints_on_image.shape))
else:
result.append(keypoints_on_image)
return result
def get_parameters(self):
return [self.scale, self.translate, self.rotate, self.shear]
def _draw_samples(self, nb_samples, random_state):
seed = random_state.randint(0, 10**6, 1)[0]
if isinstance(self.scale, tuple):
scale_samples = (
self.scale[0].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 10)),
self.scale[1].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 20)),
)
else:
scale_samples = self.scale.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 30))
scale_samples = (scale_samples, scale_samples)
if isinstance(self.translate, tuple):
translate_samples = (
self.translate[0].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 40)),
self.translate[1].draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 50)),
)
else:
translate_samples = self.translate.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 60))
translate_samples = (translate_samples, translate_samples)
assert translate_samples[0].dtype in [np.int32, np.int64, np.float32, np.float64]
assert translate_samples[1].dtype in [np.int32, np.int64, np.float32, np.float64]
rotate_samples = self.rotate.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 70))
shear_samples = self.shear.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 80))
cval_samples = self.cval.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 90))
mode_samples = self.mode.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 100))
order_samples = self.order.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 110))
return scale_samples, translate_samples, rotate_samples, shear_samples, cval_samples, mode_samples, order_samples
| 54.118984
| 237
| 0.615177
| 5,416
| 40,481
| 4.45938
| 0.070532
| 0.034614
| 0.017763
| 0.026499
| 0.783745
| 0.760724
| 0.743748
| 0.731244
| 0.714516
| 0.712074
| 0
| 0.018656
| 0.292903
| 40,481
| 747
| 238
| 54.191432
| 0.825112
| 0.054668
| 0
| 0.752404
| 0
| 0.019231
| 0.108419
| 0
| 0
| 0
| 0
| 0
| 0.103365
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
de62293d8d5434e1c68b606e15919f74a056f0b4
| 64,972
|
py
|
Python
|
Fun/President_Test.py
|
Premium-Snow-Removal/Website
|
191588dc913954ffa854d3bd15ecb96c7c3c72f9
|
[
"Unlicense"
] | null | null | null |
Fun/President_Test.py
|
Premium-Snow-Removal/Website
|
191588dc913954ffa854d3bd15ecb96c7c3c72f9
|
[
"Unlicense"
] | null | null | null |
Fun/President_Test.py
|
Premium-Snow-Removal/Website
|
191588dc913954ffa854d3bd15ecb96c7c3c72f9
|
[
"Unlicense"
] | null | null | null |
#Import
import os
#Set window size and get rid of Script Terminal Auto-Prints
os.system('clear')
raw_input("type anything to start: ")
os.system('clear')
#Setting Defaults
R_points = 18
A_points = 30
O_points = 0
J_points = 5
V_points = 14
alist = [A_points, "Alexander"]
olist = [O_points, "Olivia"]
vlist = [V_points, "Vince"]
rlist = [R_points, "Rebecca"]
jlist = [J_points, "Jonathan"]
while True:
#Special Effects
print "President Quiz 4.4.1(2017 Standard Edition)"
print "By Alexander Greco"
print "Sponsored by BusinessRate"
print " $$$$$$$$$"
print " $$o$o$$$$"
print " $$$L$$$$$"
print " $$___$$$$"
print " $$$$$$$$$"
print " $$ $$"
print " $$ $$"
print " $$ $$"
print " $$$$$$$$$$$$$$$$$$$$"
print " $$ $$"
print " $$ $$"
print " $$ $$"
print " $$"
print " $$$$ $$$$$"
print " $$ $$ $$"
print " $$ $$ $$"
print " $$ $$$$$$$$$$"
print " $$"
print " $$"
print " $$"
print "$$$$$"
#Lets the user read status or take the test
menu = raw_input("What do you want to do? (Take the test, Study, Repitition or Read the leaderboard)")
#If the user would like to test themself
if menu == "Take the test":
name = raw_input("Please enter your name: ")
#Tests the individuals separately so they can have there own scores
if name == "Olivia":
while True:
ifUserStart = raw_input("Are you ready? ")
if ifUserStart == "yes":
break
if ifUserStart == "Yes":
break
points = 0
QA = raw_input("Who is the 45th President? ")
if QA == "Donald Trump":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Donald Trump"
QA = raw_input("Who is the 44th President? ")
if QA == "Barack Obama":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Barack Obama"
QA = raw_input("Who is the 43rd President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 42nd President? ")
if QA == "Bill Clinton":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Bill Clinton"
QA = raw_input("Who is the 41st President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 40th President? ")
if QA == "Ronald Reagan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ronald Reagan"
QA = raw_input("Who is the 39th President? ")
if QA == "Jimmy Carter":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Jimmy Carter"
QA = raw_input("Who is the 38th President? ")
if QA == "Gerald Ford":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Gerald Ford"
QA = raw_input("Who is the 37th President? ")
if QA == "Richard Nixon":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Richard Nixon"
QA = raw_input("Who is the 36th President? ")
if QA == "Lyndon Johnson":
points = points + 1
print "Correct!"
print "Lyndon Johnson"
else:
print "WRONG!!!"
print "Lyndon Johnson"
QA = raw_input("Who is the 35th President? ")
if QA == "John Kennedy":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Kennedy"
QA = raw_input("Who is the 34th President? ")
if QA == "Dwight Eisenhower":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Dwight Eisenhower"
QA = raw_input("Who is the 33th President? ")
if QA == "Harry Truman":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Harry Truman"
QA = raw_input("Who is the 32nd President? ")
if QA == "Franklin Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Roosevelt"
QA = raw_input("Who is the 31st President? ")
if QA == "Herbert Hoover":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Herbert Hoover"
QA = raw_input("Who is the 30th President? ")
if QA == "Calvin Coolidge":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Calvin Coolidge"
QA = raw_input("Who is the 29th President? ")
if QA == "Warren Harding":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Warren Harding"
QA = raw_input("Who is the 28th President? ")
if QA == "Woodrow Wilson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Woodrow Wilson"
QA = raw_input("Who is the 27th President? ")
if QA == "William Taft":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Taft"
QA = raw_input("Who is the 26th President? ")
if QA == "Theodore Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Theodore Roosevelt"
QA = raw_input("Who is the 25th President? ")
if QA == "William McKinley":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William McKinley"
QA = raw_input("Who is the 24th President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 23th President? ")
if QA == "Benjamin Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Benjamin Harrison"
QA = raw_input("Who is the 22nd President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 21st President? ")
if QA == "Chester Arthur":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Chester Arthur"
QA = raw_input("Who is the 20th President? ")
if QA == "James Garfield":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Garfield"
QA = raw_input("Who is the 19th President? ")
if QA == "Ruthford Hayes":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ruthford Hayes"
QA = raw_input("Who is the 18th President? ")
if QA == "Ulysses Grant":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ulysses Grant"
QA = raw_input("Who is the 17th President? ")
if QA == "Andrew Johnson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Johnson"
QA = raw_input("Who is the 16th President? ")
if QA == "Abraham Lincoln":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Abraham Lincoln"
QA = raw_input("Who is the 15th President? ")
if QA == "James Buchanan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Buchanan"
QA = raw_input("Who is the 14th President? ")
if QA == "Franklin Pierce":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Pierce"
QA = raw_input("Who is the 13th President? ")
if QA == "Millard Fillmore":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Millard Fillmore"
QA = raw_input("Who is the 12th President? ")
if QA == "Zachary Taylor":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Zachary Taylor"
QA = raw_input("Who is the 11th President? ")
if QA == "James Polk":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Polk"
QA = raw_input("Who is the 10th President? ")
if QA == "John Tyler":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Tyler"
QA = raw_input("Who is the 9th President? ")
if QA == "William Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Harrison"
QA = raw_input("Who is the 8th President? ")
if QA == "Martin Van Buren":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Martin Van Buren"
QA = raw_input("Who is the 7th President? ")
if QA == "Andrew Jackson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Jackson"
QA = raw_input("Who is the 6th President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 5th President? ")
if QA == "James Monroe":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Monroe"
QA = raw_input("Who is the 4th President? ")
if QA == "James Madison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Madison"
QA = raw_input("Who is the 3rd President? ")
if QA == "Thomas Jefferson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Thomas Jefferson"
QA = raw_input("Who is the 2nd President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 1st President? ")
if QA == "George Washington":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Washington"
print str(points) + "/45"
percent1 = float(points)/45.0
percent2 = int((percent1 * 100)+0.5)
print str(percent2) + "%"
if points >= 40:
print "A+"
print "You are a Genius, or maybe just a cheater."
elif points >= 35:
print "A"
print "You are a Super Star, or did you have a peek for a few?"
elif points >= 30:
print "B+"
print "Awesome Job! You beat the Creater!"
elif points >= 25:
print "B"
print "Great Job!"
elif points >= 20:
print "C+"
print "You did pretty well!"
elif points >= 15:
print "C"
print "You are starting to get the hang of this!"
elif points >= 10:
print "D+"
print "Slightly Smarter than the average American"
elif points >= 5:
print "D"
print "You are an average American, try studying who the leaders of your own country were instead of watching TV!"
elif points >= 0:
print "F"
print "What are you, a rock?"
raw_input("Press anything to continue: ")
if O_points < points:
O_points = points
if name == "Jonathan":
while True:
ggez = raw_input("Are you ready? ")
if ggez == "yes":
break
if ggez== "Yes":
break
points = 0
QA = raw_input("Who is the 45th President? ")
if QA == "Donald Trump":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Donald Trump"
QA = raw_input("Who is the 44th President? ")
if QA == "Barack Obama":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Barack Obama"
QA = raw_input("Who is the 43rd President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 42nd President? ")
if QA == "Bill Clinton":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Bill Clinton"
QA = raw_input("Who is the 41st President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 40th President? ")
if QA == "Ronald Reagan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ronald Reagan"
QA = raw_input("Who is the 39th President? ")
if QA == "Jimmy Carter":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Jimmy Carter"
QA = raw_input("Who is the 38th President? ")
if QA == "Gerald Ford":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Gerald Ford"
QA = raw_input("Who is the 37th President? ")
if QA == "Richard Nixon":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Richard Nixon"
QA = raw_input("Who is the 36th President? ")
if QA == "Lyndon Johnson":
points = points + 1
print "Correct!"
print "Lyndon Johnson"
else:
print "WRONG!!!"
print "Lyndon Johnson"
QA = raw_input("Who is the 35th President? ")
if QA == "John Kennedy":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Kennedy"
QA = raw_input("Who is the 34th President? ")
if QA == "Dwight Eisenhower":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Dwight Eisenhower"
QA = raw_input("Who is the 33th President? ")
if QA == "Harry Truman":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Harry Truman"
QA = raw_input("Who is the 32nd President? ")
if QA == "Franklin Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Roosevelt"
QA = raw_input("Who is the 31st President? ")
if QA == "Herbert Hoover":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Herbert Hoover"
QA = raw_input("Who is the 30th President? ")
if QA == "Calvin Coolidge":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Calvin Coolidge"
QA = raw_input("Who is the 29th President? ")
if QA == "Warren Harding":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Warren Harding"
QA = raw_input("Who is the 28th President? ")
if QA == "Woodrow Wilson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Woodrow Wilson"
QA = raw_input("Who is the 27th President? ")
if QA == "William Taft":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Taft"
QA = raw_input("Who is the 26th President? ")
if QA == "Theodore Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Theodore Roosevelt"
QA = raw_input("Who is the 25th President? ")
if QA == "William McKinley":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William McKinley"
QA = raw_input("Who is the 24th President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 23th President? ")
if QA == "Benjamin Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Benjamin Harrison"
QA = raw_input("Who is the 22nd President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 21st President? ")
if QA == "Chester Arthur":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Chester Arthur"
QA = raw_input("Who is the 20th President? ")
if QA == "James Garfield":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Garfield"
QA = raw_input("Who is the 19th President? ")
if QA == "Ruthford Hayes":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ruthford Hayes"
QA = raw_input("Who is the 18th President? ")
if QA == "Ulysses Grant":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ulysses Grant"
QA = raw_input("Who is the 17th President? ")
if QA == "Andrew Johnson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Johnson"
QA = raw_input("Who is the 16th President? ")
if QA == "Abraham Lincoln":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Abraham Lincoln"
QA = raw_input("Who is the 15th President? ")
if QA == "James Buchanan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Buchanan"
QA = raw_input("Who is the 14th President? ")
if QA == "Franklin Pierce":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Pierce"
QA = raw_input("Who is the 13th President? ")
if QA == "Millard Fillmore":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Millard Fillmore"
QA = raw_input("Who is the 12th President? ")
if QA == "Zachary Taylor":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Zachary Taylor"
QA = raw_input("Who is the 11th President? ")
if QA == "James Polk":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Polk"
QA = raw_input("Who is the 10th President? ")
if QA == "John Tyler":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Tyler"
QA = raw_input("Who is the 9th President? ")
if QA == "William Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Harrison"
QA = raw_input("Who is the 8th President? ")
if QA == "Martin Van Buren":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Martin Van Buren"
QA = raw_input("Who is the 7th President? ")
if QA == "Andrew Jackson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Jackson"
QA = raw_input("Who is the 6th President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 5th President? ")
if QA == "James Monroe":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Monroe"
QA = raw_input("Who is the 4th President? ")
if QA == "James Madison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Madison"
QA = raw_input("Who is the 3rd President? ")
if QA == "Thomas Jefferson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Thomas Jefferson"
QA = raw_input("Who is the 2nd President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 1st President? ")
if QA == "George Washington":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Washington"
print str(points) + "/45"
percent1 = float(points)/45.0
percent2 = int((percent1 * 100)+0.5)
print str(percent2) + "%"
if points >= 40:
print "A+"
print "You are a Genius, or maybe just a cheater."
elif points >= 35:
print "A"
print "You are a Super Star, or did you have a peek for a few?"
elif points >= 30:
print "B+"
print "Awesome Job! You beat the Creater!"
elif points >= 25:
print "B"
print "Great Job!"
elif points >= 20:
print "C+"
print "You did pretty well!"
elif points >= 15:
print "C"
print "You are starting to get the hang of this!"
elif points >= 10:
print "D+"
print "Slightly Smarter than the average American"
elif points >= 5:
print "D"
print "You are an average American, try studying who the leaders of your own country were instead of watchnig TV!"
elif points >= 0:
print "F"
print "What are you, a rock?"
raw_input("Press anything to continue: ")
if J_points < points:
J_points = points
if name == "Vince":
while True:
ggez = raw_input("Are you ready? ")
if ggez == "yes":
break
if ggez== "Yes":
break
points = 0
QA = raw_input("Who is the 45th President? ")
if QA == "Donald Trump":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Donald Trump"
QA = raw_input("Who is the 44th President? ")
if QA == "Barack Obama":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Barack Obama"
QA = raw_input("Who is the 43rd President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 42nd President? ")
if QA == "Bill Clinton":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Bill Clinton"
QA = raw_input("Who is the 41st President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 40th President? ")
if QA == "Ronald Reagan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ronald Reagan"
QA = raw_input("Who is the 39th President? ")
if QA == "Jimmy Carter":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Jimmy Carter"
QA = raw_input("Who is the 38th President? ")
if QA == "Gerald Ford":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Gerald Ford"
QA = raw_input("Who is the 37th President? ")
if QA == "Richard Nixon":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Richard Nixon"
QA = raw_input("Who is the 36th President? ")
if QA == "Lyndon Johnson":
points = points + 1
print "Correct!"
print "Lyndon Johnson"
else:
print "WRONG!!!"
print "Lyndon Johnson"
QA = raw_input("Who is the 35th President? ")
if QA == "John Kennedy":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Kennedy"
QA = raw_input("Who is the 34th President? ")
if QA == "Dwight Eisenhower":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Dwight Eisenhower"
QA = raw_input("Who is the 33th President? ")
if QA == "Harry Truman":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Harry Truman"
QA = raw_input("Who is the 32nd President? ")
if QA == "Franklin Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Roosevelt"
QA = raw_input("Who is the 31st President? ")
if QA == "Herbert Hoover":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Herbert Hoover"
QA = raw_input("Who is the 30th President? ")
if QA == "Calvin Coolidge":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Calvin Coolidge"
QA = raw_input("Who is the 29th President? ")
if QA == "Warren Harding":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Warren Harding"
QA = raw_input("Who is the 28th President? ")
if QA == "Woodrow Wilson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Woodrow Wilson"
QA = raw_input("Who is the 27th President? ")
if QA == "William Taft":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Taft"
QA = raw_input("Who is the 26th President? ")
if QA == "Theodore Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Theodore Roosevelt"
QA = raw_input("Who is the 25th President? ")
if QA == "William McKinley":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William McKinley"
QA = raw_input("Who is the 24th President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 23th President? ")
if QA == "Benjamin Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Benjamin Harrison"
QA = raw_input("Who is the 22nd President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 21st President? ")
if QA == "Chester Arthur":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Chester Arthur"
QA = raw_input("Who is the 20th President? ")
if QA == "James Garfield":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Garfield"
QA = raw_input("Who is the 19th President? ")
if QA == "Ruthford Hayes":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ruthford Hayes"
QA = raw_input("Who is the 18th President? ")
if QA == "Ulysses Grant":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ulysses Grant"
QA = raw_input("Who is the 17th President? ")
if QA == "Andrew Johnson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Johnson"
QA = raw_input("Who is the 16th President? ")
if QA == "Abraham Lincoln":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Abraham Lincoln"
QA = raw_input("Who is the 15th President? ")
if QA == "James Buchanan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Buchanan"
QA = raw_input("Who is the 14th President? ")
if QA == "Franklin Pierce":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Pierce"
QA = raw_input("Who is the 13th President? ")
if QA == "Millard Fillmore":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Millard Fillmore"
QA = raw_input("Who is the 12th President? ")
if QA == "Zachary Taylor":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Zachary Taylor"
QA = raw_input("Who is the 11th President? ")
if QA == "James Polk":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Polk"
QA = raw_input("Who is the 10th President? ")
if QA == "John Tyler":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Tyler"
QA = raw_input("Who is the 9th President? ")
if QA == "William Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Harrison"
QA = raw_input("Who is the 8th President? ")
if QA == "Martin Van Buren":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Martin Van Buren"
QA = raw_input("Who is the 7th President? ")
if QA == "Andrew Jackson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Jackson"
QA = raw_input("Who is the 6th President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 5th President? ")
if QA == "James Monroe":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Monroe"
QA = raw_input("Who is the 4th President? ")
if QA == "James Madison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Madison"
QA = raw_input("Who is the 3rd President? ")
if QA == "Thomas Jefferson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Thomas Jefferson"
QA = raw_input("Who is the 2nd President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 1st President? ")
if QA == "George Washington":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Washington"
print str(points) + "/45"
percent1 = float(points)/45.0
percent2 = int((percent1 * 100)+0.5)
print str(percent2) + "%"
if points >= 40:
print "A+"
print "You are a Genius, or maybe just a cheater."
elif points >= 35:
print "A"
print "You are a Super Star, or did you have a peek for a few?"
elif points >= 30:
print "B+"
print "Awesome Job! You beat the Creater!"
elif points >= 25:
print "B"
print "Great Job!"
elif points >= 20:
print "C+"
print "You did pretty well!"
elif points >= 15:
print "C"
print "You are starting to get the hang of this!"
elif points >= 10:
print "D+"
print "Slightly Smarter than the average American"
elif points >= 5:
print "D"
print "You are an average American, try studying who the leaders of your own country were instead of watching TV!"
elif points >= 0:
print "F"
print "What are you, a rock?"
raw_input("Press anything to continue: ")
if V_points < points:
V_points = points
if name == "Rebecca":
while True:
ggez = raw_input("Are you ready? ")
if ggez == "yes":
break
if ggez== "Yes":
break
points = 0
QA = raw_input("Who is the 45th President? ")
if QA == "Donald Trump":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Donald Trump"
QA = raw_input("Who is the 44th President? ")
if QA == "Barack Obama":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Barack Obama"
QA = raw_input("Who is the 43rd President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 42nd President? ")
if QA == "Bill Clinton":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Bill Clinton"
QA = raw_input("Who is the 41st President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 40th President? ")
if QA == "Ronald Reagan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ronald Reagan"
QA = raw_input("Who is the 39th President? ")
if QA == "Jimmy Carter":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Jimmy Carter"
QA = raw_input("Who is the 38th President? ")
if QA == "Gerald Ford":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Gerald Ford"
QA = raw_input("Who is the 37th President? ")
if QA == "Richard Nixon":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Richard Nixon"
QA = raw_input("Who is the 36th President? ")
if QA == "Lyndon Johnson":
points = points + 1
print "Correct!"
print "Lyndon Johnson"
else:
print "WRONG!!!"
print "Lyndon Johnson"
QA = raw_input("Who is the 35th President? ")
if QA == "John Kennedy":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Kennedy"
QA = raw_input("Who is the 34th President? ")
if QA == "Dwight Eisenhower":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Dwight Eisenhower"
QA = raw_input("Who is the 33th President? ")
if QA == "Harry Truman":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Harry Truman"
QA = raw_input("Who is the 32nd President? ")
if QA == "Franklin Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Roosevelt"
QA = raw_input("Who is the 31st President? ")
if QA == "Herbert Hoover":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Herbert Hoover"
QA = raw_input("Who is the 30th President? ")
if QA == "Calvin Coolidge":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Calvin Coolidge"
QA = raw_input("Who is the 29th President? ")
if QA == "Warren Harding":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Warren Harding"
QA = raw_input("Who is the 28th President? ")
if QA == "Woodrow Wilson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Woodrow Wilson"
QA = raw_input("Who is the 27th President? ")
if QA == "William Taft":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Taft"
QA = raw_input("Who is the 26th President? ")
if QA == "Theodore Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Theodore Roosevelt"
QA = raw_input("Who is the 25th President? ")
if QA == "William McKinley":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William McKinley"
QA = raw_input("Who is the 24th President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 23th President? ")
if QA == "Benjamin Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Benjamin Harrison"
QA = raw_input("Who is the 22nd President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 21st President? ")
if QA == "Chester Arthur":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Chester Arthur"
QA = raw_input("Who is the 20th President? ")
if QA == "James Garfield":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Garfield"
QA = raw_input("Who is the 19th President? ")
if QA == "Ruthford Hayes":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ruthford Hayes"
QA = raw_input("Who is the 18th President? ")
if QA == "Ulysses Grant":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ulysses Grant"
QA = raw_input("Who is the 17th President? ")
if QA == "Andrew Johnson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Johnson"
QA = raw_input("Who is the 16th President? ")
if QA == "Abraham Lincoln":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Abraham Lincoln"
QA = raw_input("Who is the 15th President? ")
if QA == "James Buchanan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Buchanan"
QA = raw_input("Who is the 14th President? ")
if QA == "Franklin Pierce":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Pierce"
QA = raw_input("Who is the 13th President? ")
if QA == "Millard Fillmore":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Millard Fillmore"
QA = raw_input("Who is the 12th President? ")
if QA == "Zachary Taylor":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Zachary Taylor"
QA = raw_input("Who is the 11th President? ")
if QA == "James Polk":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Polk"
QA = raw_input("Who is the 10th President? ")
if QA == "John Tyler":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Tyler"
QA = raw_input("Who is the 9th President? ")
if QA == "William Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Harrison"
QA = raw_input("Who is the 8th President? ")
if QA == "Martin Van Buren":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Martin Van Buren"
QA = raw_input("Who is the 7th President? ")
if QA == "Andrew Jackson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Jackson"
QA = raw_input("Who is the 6th President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 5th President? ")
if QA == "James Monroe":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Monroe"
QA = raw_input("Who is the 4th President? ")
if QA == "James Madison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Madison"
QA = raw_input("Who is the 3rd President? ")
if QA == "Thomas Jefferson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Thomas Jefferson"
QA = raw_input("Who is the 2nd President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 1st President? ")
if QA == "George Washington":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Washington"
print str(points) + "/45"
percent1 = float(points)/45.0
percent2 = int((percent1 * 100)+0.5)
print str(percent2) + "%"
if points >= 40:
print "A+"
print "You are a Genius, or maybe just a cheater."
elif points >= 35:
print "A"
print "You are a Super Star, or did you have a peek for a few?"
elif points >= 30:
print "B+"
print "Awesome Job! You beat the Creater!"
elif points >= 25:
print "B"
print "Great Job!"
elif points >= 20:
print "C+"
print "You did pretty well!"
elif points >= 15:
print "C"
print "You are starting to get the hang of this!"
elif points >= 10:
print "D+"
print "Slightly Smarter than the average American"
elif points >= 5:
print "D"
print "You are an average American, try studying who the leaders of your own country were instead of watching TV!"
elif points >= 0:
print "F"
print "What are you, a rock?"
raw_input("Press anything to continue: ")
if R_points < points:
R_points = points
if name == "Alexander":
while True:
ggez = raw_input("Are you ready? ")
if ggez == "yes":
break
if ggez== "Yes":
break
points = 0
QA = raw_input("Who is the 45th President? ")
if QA == "Donald Trump":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Donald Trump"
QA = raw_input("Who is the 44th President? ")
if QA == "Barack Obama":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Barack Obama"
QA = raw_input("Who is the 43rd President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 42nd President? ")
if QA == "Bill Clinton":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Bill Clinton"
QA = raw_input("Who is the 41st President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 40th President? ")
if QA == "Ronald Reagan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ronald Reagan"
QA = raw_input("Who is the 39th President? ")
if QA == "Jimmy Carter":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Jimmy Carter"
QA = raw_input("Who is the 38th President? ")
if QA == "Gerald Ford":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Gerald Ford"
QA = raw_input("Who is the 37th President? ")
if QA == "Richard Nixon":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Richard Nixon"
QA = raw_input("Who is the 36th President? ")
if QA == "Lyndon Johnson":
points = points + 1
print "Correct!"
print "Lyndon Johnson"
else:
print "WRONG!!!"
print "Lyndon Johnson"
QA = raw_input("Who is the 35th President? ")
if QA == "John Kennedy":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Kennedy"
QA = raw_input("Who is the 34th President? ")
if QA == "Dwight Eisenhower":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Dwight Eisenhower"
QA = raw_input("Who is the 33th President? ")
if QA == "Harry Truman":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Harry Truman"
QA = raw_input("Who is the 32nd President? ")
if QA == "Franklin Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Roosevelt"
QA = raw_input("Who is the 31st President? ")
if QA == "Herbert Hoover":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Herbert Hoover"
QA = raw_input("Who is the 30th President? ")
if QA == "Calvin Coolidge":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Calvin Coolidge"
QA = raw_input("Who is the 29th President? ")
if QA == "Warren Harding":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Warren Harding"
QA = raw_input("Who is the 28th President? ")
if QA == "Woodrow Wilson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Woodrow Wilson"
QA = raw_input("Who is the 27th President? ")
if QA == "William Taft":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Taft"
QA = raw_input("Who is the 26th President? ")
if QA == "Theodore Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Theodore Roosevelt"
QA = raw_input("Who is the 25th President? ")
if QA == "William McKinley":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William McKinley"
QA = raw_input("Who is the 24th President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 23th President? ")
if QA == "Benjamin Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Benjamin Harrison"
QA = raw_input("Who is the 22nd President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 21st President? ")
if QA == "Chester Arthur":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Chester Arthur"
QA = raw_input("Who is the 20th President? ")
if QA == "James Garfield":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Garfield"
QA = raw_input("Who is the 19th President? ")
if QA == "Ruthford Hayes":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ruthford Hayes"
QA = raw_input("Who is the 18th President? ")
if QA == "Ulysses Grant":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ulysses Grant"
QA = raw_input("Who is the 17th President? ")
if QA == "Andrew Johnson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Johnson"
QA = raw_input("Who is the 16th President? ")
if QA == "Abraham Lincoln":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Abraham Lincoln"
QA = raw_input("Who is the 15th President? ")
if QA == "James Buchanan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Buchanan"
QA = raw_input("Who is the 14th President? ")
if QA == "Franklin Pierce":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Pierce"
QA = raw_input("Who is the 13th President? ")
if QA == "Millard Fillmore":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Millard Fillmore"
QA = raw_input("Who is the 12th President? ")
if QA == "Zachary Taylor":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Zachary Taylor"
QA = raw_input("Who is the 11th President? ")
if QA == "James Polk":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Polk"
QA = raw_input("Who is the 10th President? ")
if QA == "John Tyler":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Tyler"
QA = raw_input("Who is the 9th President? ")
if QA == "William Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Harrison"
QA = raw_input("Who is the 8th President? ")
if QA == "Martin Van Buren":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Martin Van Buren"
QA = raw_input("Who is the 7th President? ")
if QA == "Andrew Jackson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Jackson"
QA = raw_input("Who is the 6th President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 5th President? ")
if QA == "James Monroe":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Monroe"
QA = raw_input("Who is the 4th President? ")
if QA == "James Madison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Madison"
QA = raw_input("Who is the 3rd President? ")
if QA == "Thomas Jefferson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Thomas Jefferson"
QA = raw_input("Who is the 2nd President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 1st President? ")
if QA == "George Washington":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Washington"
print str(points) + "/45"
percent1 = float(points)/45.0
percent2 = int((percent1 * 100)+0.5)
print str(percent2) + "%"
if points >= 40:
print "A+"
print "You are a Genius, or maybe just a cheater."
elif points >= 35:
print "A"
print "You are a Super Star, or did you have a peek for a few?"
elif points >= 30:
print "B+"
print "Awesome Job! You beat the Creater!!"
elif points >= 25:
print "B"
print "Great Job!"
elif points >= 20:
print "C+"
print "You did pretty well!"
elif points >= 15:
print "C"
print "You are starting to get the hang of this!"
elif points >= 10:
print "D+"
print "Slightly Smarter than the average American"
elif points >= 5:
print "D"
print "You are an average American, try studying who the leaders of your own country were instaed of watching TV!"
elif points >= 0:
print "F"
print "What are you, a rock?"
raw_input("Press anything to continue: ")
if A_points < points:
A_points = points
if menu == "Repetition":
if 1==1:
while True:
ggez = raw_input("Are you ready? ")
if ggez == "yes":
break
if ggez== "Yes":
break
points = 0
while True:
QA = raw_input("Who is the 45th President? ")
if QA == "Donald Trump":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 44th President? ")
if QA == "Barack Obama":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 43rd President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 42nd President? ")
if QA == "Bill Clinton":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 41st President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 40th President? ")
if QA == "Ronald Reagan":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 39th President? ")
if QA == "Jimmy Carter":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 38th President? ")
if QA == "Gerald Ford":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 37th President? ")
if QA == "Richard Nixon":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 36th President? ")
if QA == "Lyndon Johnson":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 35th President? ")
if QA == "John Kennedy":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 34th President? ")
if QA == "Dwight Eisenhower":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 33th President? ")
if QA == "Harry Truman":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 32nd President? ")
if QA == "Franklin Roosevelt":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 31st President? ")
if QA == "Herbert Hoover":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 30th President? ")
if QA == "Calvin Coolidge":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 29th President? ")
if QA == "Warren Harding":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 28th President? ")
if QA == "Woodrow Wilson":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 27th President? ")
if QA == "William Taft":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 26th President? ")
if QA == "Theodore Roosevelt":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 25th President? ")
if QA == "William McKinley":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 24th President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 23th President? ")
if QA == "Benjamin Harrison":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 22nd President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 21st President? ")
if QA == "Chester Arthur":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 20th President? ")
if QA == "James Garfield":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 19th President? ")
if QA == "Ruthford Hayes":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 18th President? ")
if QA == "Ulysses Grant":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 17th President? ")
if QA == "Andrew Johnson":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 16th President? ")
if QA == "Abraham Lincoln":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 15th President? ")
if QA == "James Buchanan":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 14th President? ")
if QA == "Franklin Pierce":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 13th President? ")
if QA == "Millard Fillmore":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 12th President? ")
if QA == "Zachary Taylor":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 11th President? ")
if QA == "James Polk":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 10th President? ")
if QA == "John Tyler":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 9th President? ")
if QA == "William Harrison":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 8th President? ")
if QA == "Martin Van Buren":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 7th President? ")
if QA == "Andrew Jackson":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 6th President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 5th President? ")
if QA == "James Monroe":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 4th President? ")
if QA == "James Madison":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 3rd President? ")
if QA == "Thomas Jefferson":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 2nd President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
break
while True:
QA = raw_input("Who is the 1st President? ")
if QA == "George Washington":
points = points + 1
print "Correct!"
break
if menu == "Study":
while True:
ggez = raw_input("Are you ready? ")
if ggez == "yes":
target = raw_input("What is your Goal?(How many presidents you would like to get correct in this session) ")
try:
int(target)
break
except ValueError:
print "Scammer"
if ggez== "Yes":
target = raw_input("What is your Goal?(How many presidents you would like to get correct in this session) ")
if target.isint():
break
while True:
points = 0
QA = raw_input("Who is the 45th President? ")
if QA == "Donald Trump":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Donald Trump"
QA = raw_input("Who is the 44th President? ")
if QA == "Barack Obama":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Barack Obama"
QA = raw_input("Who is the 43rd President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 42nd President? ")
if QA == "Bill Clinton":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Bill Clinton"
QA = raw_input("Who is the 41st President? ")
if QA == "George Bush":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Bush"
QA = raw_input("Who is the 40th President? ")
if QA == "Ronald Reagan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ronald Reagan"
QA = raw_input("Who is the 39th President? ")
if QA == "Jimmy Carter":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Jimmy Carter"
QA = raw_input("Who is the 38th President? ")
if QA == "Gerald Ford":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Gerald Ford"
QA = raw_input("Who is the 37th President? ")
if QA == "Richard Nixon":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Richard Nixon"
QA = raw_input("Who is the 36th President? ")
if QA == "Lyndon Johnson":
points = points + 1
print "Correct!"
print "Lyndon Johnson"
else:
print "WRONG!!!"
print "Lyndon Johnson"
QA = raw_input("Who is the 35th President? ")
if QA == "John Kennedy":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Kennedy"
QA = raw_input("Who is the 34th President? ")
if QA == "Dwight Eisenhower":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Dwight Eisenhower"
QA = raw_input("Who is the 33th President? ")
if QA == "Harry Truman":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Harry Truman"
QA = raw_input("Who is the 32nd President? ")
if QA == "Franklin Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Roosevelt"
QA = raw_input("Who is the 31st President? ")
if QA == "Herbert Hoover":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Herbert Hoover"
QA = raw_input("Who is the 30th President? ")
if QA == "Calvin Coolidge":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Calvin Coolidge"
QA = raw_input("Who is the 29th President? ")
if QA == "Warren Harding":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Warren Harding"
QA = raw_input("Who is the 28th President? ")
if QA == "Woodrow Wilson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Woodrow Wilson"
QA = raw_input("Who is the 27th President? ")
if QA == "William Taft":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Taft"
QA = raw_input("Who is the 26th President? ")
if QA == "Theodore Roosevelt":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Theodore Roosevelt"
QA = raw_input("Who is the 25th President? ")
if QA == "William McKinley":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William McKinley"
QA = raw_input("Who is the 24th President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 23th President? ")
if QA == "Benjamin Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Benjamin Harrison"
QA = raw_input("Who is the 22nd President? ")
if QA == "Grover Cleveland":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Grover Cleveland"
QA = raw_input("Who is the 21st President? ")
if QA == "Chester Arthur":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Chester Arthur"
QA = raw_input("Who is the 20th President? ")
if QA == "James Garfield":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Garfield"
QA = raw_input("Who is the 19th President? ")
if QA == "Ruthford Hayes":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ruthford Hayes"
QA = raw_input("Who is the 18th President? ")
if QA == "Ulysses Grant":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Ulysses Grant"
QA = raw_input("Who is the 17th President? ")
if QA == "Andrew Johnson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Johnson"
QA = raw_input("Who is the 16th President? ")
if QA == "Abraham Lincoln":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Abraham Lincoln"
QA = raw_input("Who is the 15th President? ")
if QA == "James Buchanan":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Buchanan"
QA = raw_input("Who is the 14th President? ")
if QA == "Franklin Pierce":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Franklin Pierce"
QA = raw_input("Who is the 13th President? ")
if QA == "Millard Fillmore":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Millard Fillmore"
QA = raw_input("Who is the 12th President? ")
if QA == "Zachary Taylor":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Zachary Taylor"
QA = raw_input("Who is the 11th President? ")
if QA == "James Polk":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Polk"
QA = raw_input("Who is the 10th President? ")
if QA == "John Tyler":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Tyler"
QA = raw_input("Who is the 9th President? ")
if QA == "William Harrison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "William Harrison"
QA = raw_input("Who is the 8th President? ")
if QA == "Martin Van Buren":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Martin Van Buren"
QA = raw_input("Who is the 7th President? ")
if QA == "Andrew Jackson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Andrew Jackson"
QA = raw_input("Who is the 6th President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 5th President? ")
if QA == "James Monroe":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Monroe"
QA = raw_input("Who is the 4th President? ")
if QA == "James Madison":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "James Madison"
QA = raw_input("Who is the 3rd President? ")
if QA == "Thomas Jefferson":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "Thomas Jefferson"
QA = raw_input("Who is the 2nd President? ")
if QA == "John Adams":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "John Adams"
QA = raw_input("Who is the 1st President? ")
if QA == "George Washington":
points = points + 1
print "Correct!"
else:
print "WRONG!!!"
print "George Washington"
print str(points) + "/45"
if int(target) > points:
raw_input("Try Again :(")
else:
print "Success!!!"
break
raw_input("Press anything to continue: ")
if menu == "Read the leaderboard": #Set the stats
alist = [A_points, "Alexander"]
olist = [O_points, "Olivia"]
vlist = [V_points, "Vince"]
rlist = [R_points, "Rebecca"]
jlist = [J_points, "Jonathan"]
#Combine the stats
leaderboard = [alist,
olist,
jlist, vlist,
rlist]
#Order the stats
leaderboard2 = sorted(leaderboard)
#Print out the stats([-*] goes backwards in the stats because it is in asending order)
print "1. "
print leaderboard2[-1]
print "2. "
print leaderboard2[-2]
print "3. "
print leaderboard2[-3]
print "4. "
print leaderboard2[-4]
print "5. "
print leaderboard2[-5]
#Moves on when user is ready
raw_input("Press anything to continue: ")
| 26.135157
| 118
| 0.58162
| 8,419
| 64,972
| 4.445421
| 0.036821
| 0.071608
| 0.084166
| 0.109416
| 0.965265
| 0.965265
| 0.963742
| 0.96286
| 0.96262
| 0.96262
| 0
| 0.023256
| 0.289202
| 64,972
| 2,485
| 119
| 26.145674
| 0.787147
| 0.006141
| 0
| 0.972896
| 0
| 0.002023
| 0.379006
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.000405
| null | null | 0.403722
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
dead50dd23e0622be5f0c426e6a866dfa742c903
| 170
|
py
|
Python
|
bayesian_torch/layers/__init__.py
|
JunhoPark0314/bayesian-torch
|
1590cc483ae7649cd60aad2886ae95f32bea0dbe
|
[
"BSD-3-Clause"
] | 117
|
2021-01-12T11:14:09.000Z
|
2022-03-27T08:04:35.000Z
|
bayesian_torch/layers/__init__.py
|
piEsposito/bayesian-torch
|
f1fc4e5b044fae587279ef29bc9cd33364791d56
|
[
"BSD-3-Clause"
] | 12
|
2021-04-01T10:36:51.000Z
|
2021-12-16T21:51:30.000Z
|
bayesian_torch/layers/__init__.py
|
piEsposito/bayesian-torch
|
f1fc4e5b044fae587279ef29bc9cd33364791d56
|
[
"BSD-3-Clause"
] | 17
|
2021-01-13T13:16:54.000Z
|
2022-03-06T16:28:45.000Z
|
from .flipout_layers import *
from .variational_layers import *
from .base_variational_layer import *
from .batchnorm import *
from .dropout import *
from .relu import *
| 24.285714
| 37
| 0.788235
| 22
| 170
| 5.909091
| 0.454545
| 0.384615
| 0.246154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141176
| 170
| 6
| 38
| 28.333333
| 0.890411
| 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
|
deb4423e85cdbe44fddc37e7703f6cf806083f5a
| 23,712
|
py
|
Python
|
generated/resources/service_template_heat.py
|
atsgen/tf-heat-plugin
|
5c0405eb93287368f60f7e227e5af5ada6bfeed2
|
[
"Apache-2.0"
] | 1
|
2020-04-05T19:43:40.000Z
|
2020-04-05T19:43:40.000Z
|
generated/resources/service_template_heat.py
|
atsgen/tf-heat-plugin
|
5c0405eb93287368f60f7e227e5af5ada6bfeed2
|
[
"Apache-2.0"
] | null | null | null |
generated/resources/service_template_heat.py
|
atsgen/tf-heat-plugin
|
5c0405eb93287368f60f7e227e5af5ada6bfeed2
|
[
"Apache-2.0"
] | 1
|
2020-08-25T12:47:27.000Z
|
2020-08-25T12:47:27.000Z
|
# AUTO-GENERATED file from IFMapApiGenerator. Do Not Edit!
from contrail_heat.resources import contrail
try:
from heat.common.i18n import _
except ImportError:
pass
from heat.engine import attributes
from heat.engine import constraints
from heat.engine import properties
try:
from heat.openstack.common import log as logging
except ImportError:
from oslo_log import log as logging
import uuid
from vnc_api import vnc_api
LOG = logging.getLogger(__name__)
class ContrailServiceTemplate(contrail.ContrailResource):
PROPERTIES = (
NAME, FQ_NAME, DISPLAY_NAME, SERVICE_TEMPLATE_PROPERTIES, SERVICE_TEMPLATE_PROPERTIES_VERSION, SERVICE_TEMPLATE_PROPERTIES_SERVICE_MODE, SERVICE_TEMPLATE_PROPERTIES_SERVICE_TYPE, SERVICE_TEMPLATE_PROPERTIES_IMAGE_NAME, SERVICE_TEMPLATE_PROPERTIES_SERVICE_SCALING, SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SERVICE_INTERFACE_TYPE, SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SHARED_IP, SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_STATIC_ROUTE_ENABLE, SERVICE_TEMPLATE_PROPERTIES_FLAVOR, SERVICE_TEMPLATE_PROPERTIES_ORDERED_INTERFACES, SERVICE_TEMPLATE_PROPERTIES_SERVICE_VIRTUALIZATION_TYPE, SERVICE_TEMPLATE_PROPERTIES_AVAILABILITY_ZONE_ENABLE, SERVICE_TEMPLATE_PROPERTIES_VROUTER_INSTANCE_TYPE, SERVICE_TEMPLATE_PROPERTIES_INSTANCE_DATA, SERVICE_APPLIANCE_SET_REFS, DOMAIN
) = (
'name', 'fq_name', 'display_name', 'service_template_properties', 'service_template_properties_version', 'service_template_properties_service_mode', 'service_template_properties_service_type', 'service_template_properties_image_name', 'service_template_properties_service_scaling', 'service_template_properties_interface_type', 'service_template_properties_interface_type_service_interface_type', 'service_template_properties_interface_type_shared_ip', 'service_template_properties_interface_type_static_route_enable', 'service_template_properties_flavor', 'service_template_properties_ordered_interfaces', 'service_template_properties_service_virtualization_type', 'service_template_properties_availability_zone_enable', 'service_template_properties_vrouter_instance_type', 'service_template_properties_instance_data', 'service_appliance_set_refs', 'domain'
)
properties_schema = {
NAME: properties.Schema(
properties.Schema.STRING,
_('NAME.'),
update_allowed=True,
required=False,
),
FQ_NAME: properties.Schema(
properties.Schema.STRING,
_('FQ_NAME.'),
update_allowed=True,
required=False,
),
DISPLAY_NAME: properties.Schema(
properties.Schema.STRING,
_('DISPLAY_NAME.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES: properties.Schema(
properties.Schema.MAP,
_('SERVICE_TEMPLATE_PROPERTIES.'),
update_allowed=True,
required=False,
schema={
SERVICE_TEMPLATE_PROPERTIES_VERSION: properties.Schema(
properties.Schema.INTEGER,
_('SERVICE_TEMPLATE_PROPERTIES_VERSION.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_SERVICE_MODE: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_SERVICE_MODE.'),
update_allowed=True,
required=False,
constraints=[
constraints.AllowedValues([u'transparent', u'in-network', u'in-network-nat']),
],
),
SERVICE_TEMPLATE_PROPERTIES_SERVICE_TYPE: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_SERVICE_TYPE.'),
update_allowed=True,
required=False,
constraints=[
constraints.AllowedValues([u'firewall', u'analyzer', u'source-nat', u'loadbalancer']),
],
),
SERVICE_TEMPLATE_PROPERTIES_IMAGE_NAME: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_IMAGE_NAME.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_SERVICE_SCALING: properties.Schema(
properties.Schema.BOOLEAN,
_('SERVICE_TEMPLATE_PROPERTIES_SERVICE_SCALING.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE: properties.Schema(
properties.Schema.LIST,
_('SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE.'),
update_allowed=True,
required=False,
schema=properties.Schema(
properties.Schema.MAP,
schema={
SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SERVICE_INTERFACE_TYPE: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SERVICE_INTERFACE_TYPE.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SHARED_IP: properties.Schema(
properties.Schema.BOOLEAN,
_('SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SHARED_IP.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_STATIC_ROUTE_ENABLE: properties.Schema(
properties.Schema.BOOLEAN,
_('SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_STATIC_ROUTE_ENABLE.'),
update_allowed=True,
required=False,
),
}
)
),
SERVICE_TEMPLATE_PROPERTIES_FLAVOR: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_FLAVOR.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_ORDERED_INTERFACES: properties.Schema(
properties.Schema.BOOLEAN,
_('SERVICE_TEMPLATE_PROPERTIES_ORDERED_INTERFACES.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_SERVICE_VIRTUALIZATION_TYPE: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_SERVICE_VIRTUALIZATION_TYPE.'),
update_allowed=True,
required=False,
constraints=[
constraints.AllowedValues([u'virtual-machine', u'network-namespace', u'vrouter-instance', u'physical-device']),
],
),
SERVICE_TEMPLATE_PROPERTIES_AVAILABILITY_ZONE_ENABLE: properties.Schema(
properties.Schema.BOOLEAN,
_('SERVICE_TEMPLATE_PROPERTIES_AVAILABILITY_ZONE_ENABLE.'),
update_allowed=True,
required=False,
),
SERVICE_TEMPLATE_PROPERTIES_VROUTER_INSTANCE_TYPE: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_VROUTER_INSTANCE_TYPE.'),
update_allowed=True,
required=False,
constraints=[
constraints.AllowedValues([u'libvirt-qemu', u'docker']),
],
),
SERVICE_TEMPLATE_PROPERTIES_INSTANCE_DATA: properties.Schema(
properties.Schema.STRING,
_('SERVICE_TEMPLATE_PROPERTIES_INSTANCE_DATA.'),
update_allowed=True,
required=False,
),
}
),
SERVICE_APPLIANCE_SET_REFS: properties.Schema(
properties.Schema.LIST,
_('SERVICE_APPLIANCE_SET_REFS.'),
update_allowed=True,
required=False,
),
DOMAIN: properties.Schema(
properties.Schema.STRING,
_('DOMAIN.'),
update_allowed=True,
required=False,
),
}
attributes_schema = {
NAME: attributes.Schema(
_('NAME.'),
),
FQ_NAME: attributes.Schema(
_('FQ_NAME.'),
),
DISPLAY_NAME: attributes.Schema(
_('DISPLAY_NAME.'),
),
SERVICE_TEMPLATE_PROPERTIES: attributes.Schema(
_('SERVICE_TEMPLATE_PROPERTIES.'),
),
SERVICE_APPLIANCE_SET_REFS: attributes.Schema(
_('SERVICE_APPLIANCE_SET_REFS.'),
),
DOMAIN: attributes.Schema(
_('DOMAIN.'),
),
}
update_allowed_keys = ('Properties',)
def handle_create(self):
parent_obj = None
if parent_obj is None and self.properties.get(self.DOMAIN):
try:
parent_obj = self.vnc_lib().domain_read(id=self.properties.get(self.DOMAIN))
except vnc_api.NoIdError:
parent_obj = self.vnc_lib().domain_read(fq_name_str=self.properties.get(self.DOMAIN))
except:
parent_obj = None
if parent_obj is None:
raise Exception('Error: parent is not specified in template!')
obj_0 = vnc_api.ServiceTemplate(name=self.properties[self.NAME],
parent_obj=parent_obj)
if self.properties.get(self.DISPLAY_NAME) is not None:
obj_0.set_display_name(self.properties.get(self.DISPLAY_NAME))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES) is not None:
obj_1 = vnc_api.ServiceTemplateType()
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VERSION) is not None:
obj_1.set_version(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VERSION))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_MODE) is not None:
obj_1.set_service_mode(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_MODE))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_TYPE) is not None:
obj_1.set_service_type(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_TYPE))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_IMAGE_NAME) is not None:
obj_1.set_image_name(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_IMAGE_NAME))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_SCALING) is not None:
obj_1.set_service_scaling(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_SCALING))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE) is not None:
for index_1 in range(len(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE))):
obj_2 = vnc_api.ServiceTemplateInterfaceType()
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SERVICE_INTERFACE_TYPE) is not None:
obj_2.set_service_interface_type(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SERVICE_INTERFACE_TYPE))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SHARED_IP) is not None:
obj_2.set_shared_ip(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SHARED_IP))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_STATIC_ROUTE_ENABLE) is not None:
obj_2.set_static_route_enable(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_STATIC_ROUTE_ENABLE))
obj_1.add_interface_type(obj_2)
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_FLAVOR) is not None:
obj_1.set_flavor(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_FLAVOR))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_ORDERED_INTERFACES) is not None:
obj_1.set_ordered_interfaces(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_ORDERED_INTERFACES))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_VIRTUALIZATION_TYPE) is not None:
obj_1.set_service_virtualization_type(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_VIRTUALIZATION_TYPE))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_AVAILABILITY_ZONE_ENABLE) is not None:
obj_1.set_availability_zone_enable(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_AVAILABILITY_ZONE_ENABLE))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VROUTER_INSTANCE_TYPE) is not None:
obj_1.set_vrouter_instance_type(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VROUTER_INSTANCE_TYPE))
if self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INSTANCE_DATA) is not None:
obj_1.set_instance_data(self.properties.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INSTANCE_DATA))
obj_0.set_service_template_properties(obj_1)
# reference to service_appliance_set_refs
if self.properties.get(self.SERVICE_APPLIANCE_SET_REFS):
for index_0 in range(len(self.properties.get(self.SERVICE_APPLIANCE_SET_REFS))):
try:
ref_obj = self.vnc_lib().service_appliance_set_read(
id=self.properties.get(self.SERVICE_APPLIANCE_SET_REFS)[index_0]
)
except vnc_api.NoIdError:
ref_obj = self.vnc_lib().service_appliance_set_read(
fq_name_str=self.properties.get(self.SERVICE_APPLIANCE_SET_REFS)[index_0]
)
obj_0.add_service_appliance_set(ref_obj)
try:
obj_uuid = super(ContrailServiceTemplate, self).resource_create(obj_0)
except:
raise Exception(_('service-template %s could not be updated.') % self.name)
self.resource_id_set(obj_uuid)
def handle_update(self, json_snippet, tmpl_diff, prop_diff):
try:
obj_0 = self.vnc_lib().service_template_read(
id=self.resource_id
)
except:
raise Exception(_('service-template %s not found.') % self.name)
if prop_diff.get(self.DISPLAY_NAME) is not None:
obj_0.set_display_name(prop_diff.get(self.DISPLAY_NAME))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES) is not None:
obj_1 = vnc_api.ServiceTemplateType()
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VERSION) is not None:
obj_1.set_version(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VERSION))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_MODE) is not None:
obj_1.set_service_mode(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_MODE))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_TYPE) is not None:
obj_1.set_service_type(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_TYPE))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_IMAGE_NAME) is not None:
obj_1.set_image_name(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_IMAGE_NAME))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_SCALING) is not None:
obj_1.set_service_scaling(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_SCALING))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE) is not None:
for index_1 in range(len(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE))):
obj_2 = vnc_api.ServiceTemplateInterfaceType()
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SERVICE_INTERFACE_TYPE) is not None:
obj_2.set_service_interface_type(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SERVICE_INTERFACE_TYPE))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SHARED_IP) is not None:
obj_2.set_shared_ip(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_SHARED_IP))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_STATIC_ROUTE_ENABLE) is not None:
obj_2.set_static_route_enable(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE, {})[index_1].get(self.SERVICE_TEMPLATE_PROPERTIES_INTERFACE_TYPE_STATIC_ROUTE_ENABLE))
obj_1.add_interface_type(obj_2)
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_FLAVOR) is not None:
obj_1.set_flavor(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_FLAVOR))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_ORDERED_INTERFACES) is not None:
obj_1.set_ordered_interfaces(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_ORDERED_INTERFACES))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_VIRTUALIZATION_TYPE) is not None:
obj_1.set_service_virtualization_type(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_SERVICE_VIRTUALIZATION_TYPE))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_AVAILABILITY_ZONE_ENABLE) is not None:
obj_1.set_availability_zone_enable(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_AVAILABILITY_ZONE_ENABLE))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VROUTER_INSTANCE_TYPE) is not None:
obj_1.set_vrouter_instance_type(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_VROUTER_INSTANCE_TYPE))
if prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INSTANCE_DATA) is not None:
obj_1.set_instance_data(prop_diff.get(self.SERVICE_TEMPLATE_PROPERTIES, {}).get(self.SERVICE_TEMPLATE_PROPERTIES_INSTANCE_DATA))
obj_0.set_service_template_properties(obj_1)
# reference to service_appliance_set_refs
ref_obj_list = []
ref_data_list = []
if self.SERVICE_APPLIANCE_SET_REFS in prop_diff:
for index_0 in range(len(prop_diff.get(self.SERVICE_APPLIANCE_SET_REFS) or [])):
try:
ref_obj = self.vnc_lib().service_appliance_set_read(
id=prop_diff.get(self.SERVICE_APPLIANCE_SET_REFS)[index_0]
)
except:
ref_obj = self.vnc_lib().service_appliance_set_read(
fq_name_str=prop_diff.get(self.SERVICE_APPLIANCE_SET_REFS)[index_0]
)
ref_obj_list.append(ref_obj.fq_name)
obj_0.set_service_appliance_set_list(ref_obj_list)
# End: reference to service_appliance_set_refs
try:
self.vnc_lib().service_template_update(obj_0)
except:
raise Exception(_('service-template %s could not be updated.') % self.name)
def handle_delete(self):
if self.resource_id is None:
return
try:
self.vnc_lib().service_template_delete(id=self.resource_id)
except Exception as ex:
self._ignore_not_found(ex)
LOG.warn(_('service_template %s already deleted.') % self.name)
def _show_resource(self):
obj = self.vnc_lib().service_template_read(id=self.resource_id)
obj_dict = obj.serialize_to_json()
return obj_dict
def resource_mapping():
return {
'OS::ContrailV2::ServiceTemplate': ContrailServiceTemplate,
}
| 65.142857
| 866
| 0.676409
| 2,574
| 23,712
| 5.784382
| 0.060218
| 0.211566
| 0.339177
| 0.197999
| 0.881926
| 0.847606
| 0.7973
| 0.789711
| 0.741286
| 0.69004
| 0
| 0.003947
| 0.241312
| 23,712
| 363
| 867
| 65.322314
| 0.82368
| 0.007633
| 0
| 0.438438
| 1
| 0
| 0.087014
| 0.067885
| 0
| 0
| 0
| 0
| 0
| 1
| 0.015015
| false
| 0.003003
| 0.033033
| 0.003003
| 0.072072
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 10
|
debe1c012c715d79cab8ef0d2e6e853850cb3f48
| 124
|
py
|
Python
|
functions/test/test_hello_world.py
|
developerDemetri/lambda-utils
|
d2afa4e185f77655bb4b297024107ae94926d952
|
[
"MIT"
] | null | null | null |
functions/test/test_hello_world.py
|
developerDemetri/lambda-utils
|
d2afa4e185f77655bb4b297024107ae94926d952
|
[
"MIT"
] | null | null | null |
functions/test/test_hello_world.py
|
developerDemetri/lambda-utils
|
d2afa4e185f77655bb4b297024107ae94926d952
|
[
"MIT"
] | null | null | null |
from src.HelloWorld import index
def test_hello_world_handler():
assert index.hello_world_handler(None, None) is None
| 20.666667
| 56
| 0.798387
| 19
| 124
| 4.947368
| 0.684211
| 0.212766
| 0.361702
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137097
| 124
| 5
| 57
| 24.8
| 0.878505
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
9d3e227669fa72afd0dec072cab2331dc372b9ce
| 816,856
|
py
|
Python
|
pirates/quest/QuestDB.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 81
|
2018-04-08T18:14:24.000Z
|
2022-01-11T07:22:15.000Z
|
pirates/quest/QuestDB.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 4
|
2018-09-13T20:41:22.000Z
|
2022-01-08T06:57:00.000Z
|
pirates/quest/QuestDB.py
|
Willy5s/Pirates-Online-Rewritten
|
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
|
[
"BSD-3-Clause"
] | 26
|
2018-05-26T12:49:27.000Z
|
2021-09-11T09:11:59.000Z
|
import random
from direct.directnotify import DirectNotifyGlobal
from pirates.quest.QuestDNA import QuestDNA
from pirates.quest.QuestTaskDNA import *
from pirates.quest.QuestPrereq import *
from pirates.quest.QuestReward import *
from pirates.quest.QuestConstants import QuestItems
from pirates.quest.QuestConstants import PropIds, NPCIds
from pirates.quest.QuestConstants import Bribes, PokerPots, ExpRewards
from pirates.quest.QuestConstants import Probability, Attempts, DoubleRepTime
from pirates.battle import EnemyGlobals
from pirates.ship import ShipGlobals
from pirates.pirate import AvatarTypes
from pirates.pirate.AvatarType import AvatarType
from pirates.tutorial import TutorialGlobals
from pirates.piratesbase import PiratesGlobals
from pirates.ai import HolidayGlobals
from pirates.makeapirate import JewelryGlobals, TattooGlobals, ClothingGlobals
from pirates.economy.EconomyGlobals import ItemId
from pirates.world.LocationConstants import LocationIds
INSTANCE_REF_TYPE_AREA = 0
INSTANCE_REF_TYPE_OBJECT = 1
AUTO_TRIGGER_OBJ_EXISTS = 0
QuestDict = {'Chapter1.rung1': QuestDNA(obsolete=False, questInt=1000, finalizeInfo=({'type': 'cutscene','sceneId': '1.1.1: Jail Break','sendEvent': 'doneJackIntro'}, {'type': 'cutscene','sceneId': '1.1.2: Jail Break (continued)','waitEvent': 'makeAPirateComplete'}), combineOp=QuestDNA.OR, droppable=False, playStinger=False, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_GOT_SEACHEST, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'Chapter1.rung3': QuestDNA(obsolete=False, questInt=1002, tasks=(VisitTaskDNA(goalLocation=LocationIds.RAMBLESHACK_DOCK, npcId=TutorialGlobals.STUMPY_BOAT_UID),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), finalizeInfo=({'type': 'cutscene','sceneId': "1.2: Beck's Boat",'giverId': 'tutorial_stumpy','altInteractiveId': TutorialGlobals.STUMPY_BOAT_UID}, {'type': 'cutscene','sceneId': '1.3: Jolly Roger','giverId': 'tutorial_stumpy','waitEvent': 'tutorialJROnStage'}), combineOp=QuestDNA.OR, droppable=False, playStinger=False, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_MET_JOLLY_ROGER, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2_visit_will_turner': QuestDNA(obsolete=False, questInt=2000, tasks=(VisitTaskDNA(autoTriggerInfo=(AUTO_TRIGGER_OBJ_EXISTS, [NPCIds.WILL_TURNER]), goalLocation=LocationIds.RAMBLESHACK_DOCK, npcId=NPCIds.WILL_TURNER),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), finalizeInfo=({'type': 'cutscene','sceneId': '2.1: Will Turner Sword','preloadInfo': ['2.1.b: Sword Tut end'],'giverId': NPCIds.WILL_TURNER}, {'type': 'dialog','sceneId': 'quest_tut_blacksmith_intro_100_v2','giverId': NPCIds.WILL_TURNER}, {'type': 'cutscene','sceneId': '2.1.b: Sword Tut end','giverId': NPCIds.WILL_TURNER}), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_GOT_CUTLASS, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2.2defeatSkeletons': QuestDNA(obsolete=False, questInt=2001, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ALL, goalLocation=LocationIds.PORT_ROYAL_GRAVEYARD, enemyType=AvatarTypes.WillBurybones, num=3, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_KILLED_1_SKELETON, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2_visit_tia_dalma': QuestDNA(obsolete=False, questInt=2002, tasks=(VisitTaskDNA(autoTriggerInfo=(AUTO_TRIGGER_OBJ_EXISTS, [NPCIds.TIA_DALMA_PR]), npcId=NPCIds.TIA_DALMA_PR),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), finalizeInfo=({'type': 'cutscene','sceneId': '2.2: Tia Dalma Compass','giverId': NPCIds.TIA_DALMA_PR,'waitEvent': 'leaveTunnelDone'}, {'type': 'dialog','sceneId': 'quest_tut_tia_dalma_compass_intro_100','giverId': NPCIds.TIA_DALMA_PR}, {'type': 'dialog','sceneId': 'quest_tut_tia_dalma_compass_finish','giverId': NPCIds.TIA_DALMA_PR}), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.TIA_DALMA_PR), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_GOT_COMPASS, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2.4recoverOrders': QuestDNA(obsolete=False, questInt=2003, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, goalLocation=LocationIds.GOVERNORS_MANSION_COURTYARD, item=QuestItems.ReleaseOrders, num=1, enemyType=AvatarTypes.Cadet, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2.5deliverOrders': QuestDNA(obsolete=False, questInt=2004, tasks=(DeliverItemTaskDNA(location=LocationIds.GOVERNORS_MANSION, autoTriggerInfo=(AUTO_TRIGGER_OBJ_EXISTS, [NPCIds.ELIZABETH]), item=QuestItems.ReleaseOrders, num=1, npcId=NPCIds.ELIZABETH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), finalizeInfo={'type': 'cutscene','sceneId': '2.3: Elizabeth Swan ','giverId': NPCIds.ELIZABETH}, returnGiverIds=(NPCIds.ELIZABETH,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2.9visitDarby': QuestDNA(obsolete=False, questInt=2008, tasks=(VisitTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, npcId=NPCIds.DARBY_DRYDOCK),), rewards=(ShipReward(amount=1), ReputationReward(amount=ExpRewards.TRIVIAL)), finalizeInfo=({'type': 'dialog','sceneId': 'quest_tut_darby_ship1','giverId': NPCIds.DARBY_DRYDOCK}, {'type': 'dialog','sceneId': 'quest_tut_darby_ship2','giverId': NPCIds.DARBY_DRYDOCK,'waitEvent': 'tutorialShipConstructed'}), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_GOT_SHIP, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2.10visitDockworker': QuestDNA(obsolete=False, questInt=2009, tasks=(DeployShipTaskDNA(location=LocationIds.PORT_ROYAL_ALL, goalLocation=LocationIds.PORT_ROYAL_DINGHY),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c2.11visitBarbossa': QuestDNA(obsolete=False, questInt=2010, tasks=(VisitTaskDNA(location=LocationIds.ANVIL_CAVE_BARBOSA, autoTriggerInfo=(AUTO_TRIGGER_OBJ_EXISTS, [NPCIds.BARBOSSA]), npcId=NPCIds.BARBOSSA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), finalizeInfo=({'type': 'cutscene','sceneId': '2.4: Capt Barbossa Intro','preloadInfo': ['2.4.b: Capt Barbossa Pistol Finish'],'giverId': NPCIds.BARBOSSA}, {'type': 'dialog','sceneId': 'quest_tut_barbossa_pistol_tutorial','giverId': NPCIds.BARBOSSA}, {'type': 'cutscene','sceneId': '2.4.b: Capt Barbossa Pistol Finish','giverId': NPCIds.BARBOSSA}, {'type': 'dialog','sceneId': 'quest_tut_barbossa_lookout_tutorial','giverId': NPCIds.BARBOSSA}), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.BARBOSSA), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_GOT_PISTOL, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3visitJack': QuestDNA(obsolete=False, questInt=3000, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, autoTriggerInfo=(AUTO_TRIGGER_OBJ_EXISTS, [NPCIds.JACK, NPCIds.CARVER]), npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), finalizeInfo={'type': 'cutscene','sceneId': '2.5: Jack Sparrow in Bar','giverId': NPCIds.JACK}, instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, checkPoint=PiratesGlobals.TUT_CHAPTER3_STARTED, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3visitJoshamee': QuestDNA(obsolete=False, questInt=3001, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2.5.5visitOrinda': QuestDNA(obsolete=False, questInt=3350, tasks=(VisitTaskDNA(npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2.5captureMontrose': QuestDNA(obsolete=False, questInt=3351, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_MONTROSE, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_WARSHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JOSHAMEE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2.6visitCarver': QuestDNA(obsolete=False, questInt=3352, tasks=(VisitTaskDNA(npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2.7deliverPint': QuestDNA(obsolete=False, questInt=3353, tasks=(DeliverItemTaskDNA(item=QuestItems.Pint, num=1, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOSHAMEE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3.4captureMontrose': QuestDNA(obsolete=False, questInt=3752, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_MONTROSE, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_COLOSSUS, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3.5maroonMontrose': QuestDNA(obsolete=False, questInt=3753, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_MONTROSE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3.6deliverMap': QuestDNA(obsolete=False, questInt=3754, tasks=(DeliverItemTaskDNA(item=QuestItems.Map, num=1, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.LARGE), TreasureMapReward(amount=1)), returnGiverIds=(NPCIds.JOSHAMEE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3.7recoverPearl': QuestDNA(obsolete=False, questInt=3755, tasks=(BossBattleTaskDNA(treasureMapId=PiratesGlobals.GAME_STYLE_TM_BLACK_PEARL),), rewards=(ReputationReward(amount=ExpRewards.HUGE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3.8visitJack': QuestDNA(obsolete=False, questInt=3756, tasks=(VisitTaskDNA(npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.HUGE), MainStoryReward()), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=True, finalQuest=True, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r1.1sinkNavyShips': QuestDNA(obsolete=False, questInt=3003, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_FERRET, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r1.2defeatNavyGuards': QuestDNA(obsolete=False, questInt=3004, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_JUNGLE_C, enemyType=AvatarTypes.Cadet, num=4, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.1visitScarlet': QuestDNA(obsolete=False, questInt=3006, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.6.5bribeBonita': QuestDNA(obsolete=False, questInt=3011, questLink='c3r2r1r1.Tattoo', tasks=(VisitTaskDNA(location=LocationIds.BONITAS_TATTOOS, npcId=NPCIds.BONITA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.7visitCarver': QuestDNA(obsolete=False, questInt=3015, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.8recoverFlag': QuestDNA(obsolete=False, questInt=3016, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Flag, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.9captureSteadman': QuestDNA(obsolete=False, questInt=3017, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_STEADMAN, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_SEA_VIPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.10maroonSteadman': QuestDNA(obsolete=False, questInt=3018, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_STEADMAN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.11stealList': QuestDNA(obsolete=False, questInt=3019, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.TRADING_COMPANY, containerId=PropIds.T_EITC_DESK, item=QuestItems.List, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.12recoverWarrants': QuestDNA(obsolete=False, questInt=3020, tasks=(RecoverShipItemTaskDNA(item=QuestItems.ArrestWarrant, num=4, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_BULWARK, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.13visitGrog': QuestDNA(obsolete=False, questInt=3025, tasks=(VisitTaskDNA(location=LocationIds.DOCTOR_GROGS, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r1.1recoverClaw': QuestDNA(obsolete=False, questInt=3012, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneDust, num=2, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r1.2recoverRod': QuestDNA(obsolete=False, questInt=3013, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CopperRod, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r1.3recoverBlood': QuestDNA(obsolete=False, questInt=3014, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=3, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r2.1Carrou': QuestDNA(obsolete=False, questInt=3021, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.JEHAN_CARROU, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r2.2DArcis': QuestDNA(obsolete=False, questInt=3022, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Handkerchief, num=1, enemyType=AvatarTypes.Sergeant, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r2.3Coteau': QuestDNA(obsolete=False, questInt=3023, tasks=(VisitTaskDNA(npcId=NPCIds.MALLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r3.1Guano': QuestDNA(obsolete=False, questInt=3026, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatGuano, num=6, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r3.2Hair': QuestDNA(obsolete=False, questInt=3027, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hair, num=4, enemyType=AvatarTypes.Undead, level=4, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r3.3Blood': QuestDNA(obsolete=False, questInt=3028, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=4, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r1.1tattoo': QuestDNA(obsolete=False, questInt=4920, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_C, item=QuestItems.BoneDust, num=4, enemyType=AvatarTypes.Sludge, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r1.2tattoo': QuestDNA(obsolete=False, questInt=4921, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_C, item=QuestItems.Blood, num=6, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r2.1ArcisHenchmen': QuestDNA(obsolete=False, questInt=4980, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_CAVE, enemyType=AvatarTypes.Guard, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r2.2ClaudeDArcis': QuestDNA(obsolete=False, questInt=4981, tasks=(DefeatNPCTaskDNA(location=LocationIds.TORTUGA_CAVE, npcId=NPCIds.CLAUDE_DARCIS),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r3.1tattooRemoval': QuestDNA(obsolete=False, questInt=4923, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_A_GRAVEYARD, item=QuestItems.LiverVial, num=10, enemyType=AvatarTypes.MireKnife, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1r3.2tattooRemoval': QuestDNA(obsolete=False, questInt=4924, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_A_GRAVEYARD, item=QuestItems.HairPatch, num=8, enemyType=AvatarTypes.Mire, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.8recoverFlags': QuestDNA(obsolete=False, questInt=4922, questLink='c3r2r1.9captureSteadman', tasks=(RecoverShipItemTaskDNA(item=QuestItems.Flag, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_BULWARK, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.BernardBrothers': QuestDNA(obsolete=False, questInt=4982, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_SEA_VIPER, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.14deliverRemedy': QuestDNA(obsolete=False, questInt=19770, tasks=(DeliverItemTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, item=QuestItems.Remedy, num=1, npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.14.5stealWarrant': QuestDNA(obsolete=False, questInt=19771, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.EITC_OUTPOST, containerId=PropIds.T_OUTPOST_DESK, item=QuestItems.ArrestWarrant, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.CARVER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=True, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r1.15visitJoshamee': QuestDNA(obsolete=False, questInt=19772, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8.4recoverPig': QuestDNA(obsolete=False, questInt=3072, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Pig, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5.1visitLucinda': QuestDNA(obsolete=False, questInt=3073, questLink='c3r2r2r8r5.NecklaceMaterials', tasks=(VisitTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, npcId=NPCIds.LUCINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5.1.5bribeLucinda': QuestDNA(obsolete=False, questInt=3074, tasks=(BribeNPCTaskDNA(npcId=NPCIds.LUCINDA, gold=Bribes.MEDIUM, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5.3deliverNecklace': QuestDNA(obsolete=False, questInt=3078, tasks=(DeliverItemTaskDNA(location=LocationIds.JUNEGREER_RESIDENCE, item=QuestItems.Necklace, num=1, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5r2.1recoverTeeth': QuestDNA(obsolete=False, questInt=3075, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tooth, num=7, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5r2.2recoverTeeth': QuestDNA(obsolete=False, questInt=3076, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tooth, num=7, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5.1necklaceMaterials': QuestDNA(obsolete=False, questInt=4933, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_B, item=QuestItems.Tooth, num=4, enemyType=AvatarTypes.MuckCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5.2necklaceMaterials': QuestDNA(obsolete=False, questInt=4934, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_B, item=QuestItems.GourdShaker, num=4, enemyType=AvatarTypes.Muck, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5.3necklaceMaterials': QuestDNA(obsolete=False, questInt=4935, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_B, item=QuestItems.BileSack, num=8, enemyType=AvatarTypes.RabidBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r4.4recoverClaw': QuestDNA(obsolete=False, questInt=3087, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrabClaw, num=10, enemyType=AvatarTypes.Crab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r4.5recoverMud': QuestDNA(obsolete=False, questInt=3088, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Mud, num=1, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.1visitGreer': QuestDNA(obsolete=False, questInt=3079, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.2visitMallet': QuestDNA(obsolete=False, questInt=3080, tasks=(VisitTaskDNA(npcId=NPCIds.MALLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.3visitFabiola': QuestDNA(obsolete=False, questInt=3081, tasks=(VisitTaskDNA(npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.3.5bribeFabiola': QuestDNA(obsolete=False, questInt=3082, tasks=(BribeNPCTaskDNA(npcId=NPCIds.FABIOLA, gold=Bribes.MEDIUM, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.8deliverDoll': QuestDNA(obsolete=False, questInt=3094, tasks=(DeliverItemTaskDNA(item=QuestItems.Doll, num=1, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r4.1recoverWings': QuestDNA(obsolete=False, questInt=3083, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WaspWings, num=5, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r4.2recoverScales': QuestDNA(obsolete=False, questInt=3084, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorScales, num=8, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r4.3recoverPoison': QuestDNA(obsolete=False, questInt=3085, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Poison, num=8, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5r3.1recoverSpecial': QuestDNA(obsolete=False, questInt=4936, tasks=(RecoverShipItemTaskDNA(item=QuestItems.JunesItem, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_CORVETTE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r5r3.2recoverSpecial': QuestDNA(obsolete=False, questInt=4937, tasks=(RecoverShipItemTaskDNA(item=QuestItems.LoveLetter, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_PANTHER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r3.1curseCure': QuestDNA(obsolete=False, questInt=4940, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_C, item=QuestItems.Stinger, num=6, enemyType=AvatarTypes.KillerWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ANGEL_OBONNEY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r3.2curseCure': QuestDNA(obsolete=False, questInt=4941, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_C, item=QuestItems.GallBladder, num=6, enemyType=AvatarTypes.DireScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ANGEL_OBONNEY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6r3.3curseCure': QuestDNA(obsolete=False, questInt=4942, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_C, enemyType=AvatarTypes.VampireBat, num=3, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ANGEL_OBONNEY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.1visitStormhawk': QuestDNA(obsolete=False, questInt=4938, tasks=(VisitTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, npcId=NPCIds.EDWARD_STORMHAWK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.2visitAngel': QuestDNA(obsolete=False, questInt=4939, tasks=(VisitTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, npcId=NPCIds.ANGEL_OBONNEY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.4deliverCure': QuestDNA(obsolete=False, questInt=4943, tasks=(DeliverItemTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, item=QuestItems.Cure, num=1, npcId=NPCIds.EDWARD_STORMHAWK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_STORMHAWK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r6.5deliverDoll': QuestDNA(obsolete=False, questInt=4944, tasks=(DeliverItemTaskDNA(location=LocationIds.JUNEGREER_RESIDENCE, item=QuestItems.Doll, num=1, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8.1visitGreer': QuestDNA(obsolete=False, questInt=3096, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8.2visitOrinda': QuestDNA(obsolete=False, questInt=3097, tasks=(VisitTaskDNA(npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8.5deliverParrot': QuestDNA(obsolete=False, questInt=3103, tasks=(DeliverItemTaskDNA(item=QuestItems.Parrot, num=1, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8r4.1recoverHoneyShips': QuestDNA(obsolete=False, questInt=3099, tasks=(RecoverShipItemTaskDNA(item=QuestItems.HoneyBarrel, num=10, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8r4r2.2bribeMarsh': QuestDNA(obsolete=False, questInt=3101, tasks=(BribeNPCTaskDNA(npcId=NPCIds.BEN_FLATTS, gold=Bribes.LARGE, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8r4r2.3deliverHoney': QuestDNA(obsolete=False, questInt=3102, tasks=(DeliverItemTaskDNA(item=QuestItems.HoneyBarrel, num=10, npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8.1recoverJewelry': QuestDNA(obsolete=False, questInt=4946, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, item=QuestItems.Earring, num=4, enemyType=AvatarTypes.Thug, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CASSANDRA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8.2recoverJewelry': QuestDNA(obsolete=False, questInt=4947, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, item=QuestItems.Ring, num=4, enemyType=AvatarTypes.Sergeant, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CASSANDRA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8.2recoverHoney': QuestDNA(obsolete=False, questInt=4945, tasks=(RecoverShipItemTaskDNA(item=QuestItems.HoneyBarrel, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_GREYHOUND, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CASSANDRA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r8.1visitCassandra': QuestDNA(obsolete=False, questInt=4983, tasks=(VisitTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, npcId=NPCIds.CASSANDRA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r9.1visitGreer': QuestDNA(obsolete=False, questInt=3104, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r9.2recoverDice': QuestDNA(obsolete=False, questInt=3105, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.ANY_PORT_ROYAL_JUNGLE, item=QuestItems.Dice, num=6, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GORDON_GREER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r9.3deliverDice': QuestDNA(obsolete=False, questInt=3106, tasks=(DeliverItemTaskDNA(item=QuestItems.Dice, num=6, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r11.1visitGreer': QuestDNA(obsolete=False, questInt=3107, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r11.2visitCassandra': QuestDNA(obsolete=False, questInt=3108, tasks=(VisitTaskDNA(npcId=NPCIds.CASSANDRA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r11.3recoverEarrings': QuestDNA(obsolete=False, questInt=3109, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Earring, num=2, enemyType=AvatarTypes.TradingCo, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CASSANDRA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r11.4deliverDress': QuestDNA(obsolete=False, questInt=3110, tasks=(DeliverItemTaskDNA(item=QuestItems.Dress, num=1, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.1visitGreer': QuestDNA(obsolete=False, questInt=3050, tasks=(VisitTaskDNA(location=LocationIds.FORT_CHARLES, npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.2visitBingham': QuestDNA(obsolete=False, questInt=3051, tasks=(VisitTaskDNA(location=LocationIds.FORT_CHARLES, npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.2.5bribeBingham': QuestDNA(obsolete=False, questInt=3052, tasks=(BribeNPCTaskDNA(npcId=NPCIds.BINGHAM, gold=Bribes.SMALL, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.3recoverRum': QuestDNA(obsolete=False, questInt=3053, questLink='c3r2r2.5visitGreer', tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=2, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.4blackjack': QuestDNA(obsolete=False, questInt=3054, tasks=(BlackjackTaskDNA(gold=PokerPots.MINOR),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.5visitGreer': QuestDNA(obsolete=False, questInt=3055, tasks=(VisitTaskDNA(location=LocationIds.FORT_CHARLES, npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.6visitBlakeley': QuestDNA(obsolete=False, questInt=3056, tasks=(VisitTaskDNA(location=LocationIds.BLAKELEYS_RESIDENCE, npcId=NPCIds.BLAKELEY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.7visitJune': QuestDNA(obsolete=False, questInt=3057, tasks=(VisitTaskDNA(location=LocationIds.JUNEGREER_RESIDENCE, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.9deliverList': QuestDNA(obsolete=False, questInt=3111, tasks=(DeliverItemTaskDNA(location=LocationIds.FORT_CHARLES, item=QuestItems.List, num=1, npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GORDON_GREER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.10.5visitJune': QuestDNA(obsolete=False, questInt=3133, tasks=(VisitTaskDNA(location=LocationIds.JUNEGREER_RESIDENCE, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.10.51visitBlakeley': QuestDNA(obsolete=False, questInt=3134, tasks=(VisitTaskDNA(location=LocationIds.BLAKELEYS_RESIDENCE, npcId=NPCIds.BLAKELEY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.10.52disruptRitual': QuestDNA(obsolete=False, questInt=3135, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_B, enemyType=AvatarTypes.Undead, num=8, level=12),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.BLAKELEY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.10.53visitGreer': QuestDNA(obsolete=False, questInt=3136, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.11visitJoshamee': QuestDNA(obsolete=False, questInt=3137, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r1.1visitSmitty': QuestDNA(obsolete=False, questInt=3058, tasks=(VisitTaskDNA(location=LocationIds.SMITTYS_JEWELRY, npcId=NPCIds.JEWELER_SMITTY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r1.3deliverRing': QuestDNA(obsolete=False, questInt=3062, tasks=(DeliverItemTaskDNA(item=QuestItems.GlassRing, num=1, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r1r2.1recoverTin': QuestDNA(obsolete=False, questInt=3059, tasks=(RecoverShipItemTaskDNA(item=QuestItems.TinShipment, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r1r2.2recoverSand': QuestDNA(obsolete=False, questInt=3060, tasks=(RecoverShipItemTaskDNA(item=QuestItems.SandShipment, num=2, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r1.1ringMaterials': QuestDNA(obsolete=False, questInt=4927, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, item=QuestItems.Ore, num=10, enemyType=AvatarTypes.Marine, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r1.2ringMaterials': QuestDNA(obsolete=False, questInt=4929, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, containerId=PropIds.RC_BARRELS, item=QuestItems.SandShipment, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r2.1visitCraven': QuestDNA(obsolete=False, questInt=3063, tasks=(VisitTaskDNA(npcId=NPCIds.BASTIEN_CRAVEN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r2.1.5bribeCraven': QuestDNA(obsolete=False, questInt=3064, tasks=(BribeNPCTaskDNA(npcId=NPCIds.BASTIEN_CRAVEN, gold=Bribes.MEDIUM, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r2.2sinkShips': QuestDNA(obsolete=False, questInt=3065, tasks=(DefeatShipTaskDNA(num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BASTIEN_CRAVEN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r2.3sinkNavyShips': QuestDNA(obsolete=False, questInt=3066, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=2, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BASTIEN_CRAVEN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r2.4deliverPlates': QuestDNA(obsolete=False, questInt=3067, tasks=(DeliverItemTaskDNA(item=QuestItems.WoodenPlates, num=8, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r3.1recoverChickens': QuestDNA(obsolete=False, questInt=3068, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.PR_CRATES, item=QuestItems.Chicken, num=6, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r3.2recoverChickens': QuestDNA(obsolete=False, questInt=3069, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chicken, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r3.3deliverEggs': QuestDNA(obsolete=False, questInt=3070, tasks=(DeliverItemTaskDNA(item=QuestItems.Egg, num=12, npcId=NPCIds.BLAKELEY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BLAKELEY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r3.4visitJune': QuestDNA(obsolete=False, questInt=3071, tasks=(VisitTaskDNA(location=LocationIds.JUNEGREER_RESIDENCE, npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r3.1chickenCrates': QuestDNA(obsolete=False, questInt=4930, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, containerId=PropIds.PR_CRATES, item=QuestItems.Chicken, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r8r3.2recoverChicken': QuestDNA(obsolete=False, questInt=4932, questLink='c3r2r2r8r3.3deliverEggs', tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chicken, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JUNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r1.1visitBowdash': QuestDNA(obsolete=False, questInt=3112, tasks=(VisitTaskDNA(npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r1.2sinkShips': QuestDNA(obsolete=False, questInt=3113, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=4, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r1.3visitGreer': QuestDNA(obsolete=False, questInt=3114, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2.1visitGrog': QuestDNA(obsolete=False, questInt=3115, tasks=(VisitTaskDNA(location=LocationIds.DOCTOR_GROGS, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2.3recoverRum': QuestDNA(obsolete=False, questInt=3120, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RumBottle, num=3, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2.4visitGreer': QuestDNA(obsolete=False, questInt=3121, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2r2.1recoverWaspEggs': QuestDNA(obsolete=False, questInt=3116, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WaspEggs, num=4, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2r2.2recoverCrabBile': QuestDNA(obsolete=False, questInt=3117, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bile, num=8, enemyType=AvatarTypes.Crab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2r2.3recoverSaliva': QuestDNA(obsolete=False, questInt=3118, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorSaliva, num=9, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.1visitOrinda': QuestDNA(obsolete=False, questInt=3122, tasks=(VisitTaskDNA(location=LocationIds.TORTUGA_ISLAND, npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.2captureAlthea': QuestDNA(obsolete=False, questInt=3123, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.ALTHEA, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.3maroonAlthea': QuestDNA(obsolete=False, questInt=3124, questLink='c3r2r2r10r3.6deliverBracelet', tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.ALTHEA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.4visitFlatts': QuestDNA(obsolete=False, questInt=3125, tasks=(VisitTaskDNA(npcId=NPCIds.BEN_FLATTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.5smuggleRum': QuestDNA(obsolete=False, questInt=3126, tasks=(SmuggleItemTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, item=QuestItems.RumBarrel, num=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.6deliverBracelet': QuestDNA(obsolete=False, questInt=3127, questLink='c3r2r2r10r4Lucinda', tasks=(DeliverItemTaskDNA(location=LocationIds.TORTUGA_ISLAND, item=QuestItems.Bracelet, num=1, npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.7visitGreer': QuestDNA(obsolete=False, questInt=3800, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r3.2captureAltheaNew': QuestDNA(obsolete=False, questInt=4954, questLink='c3r2r2r10r3.3maroonAlthea', tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.ALTHEA, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_GREYHOUND, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.1visitLucinda': QuestDNA(obsolete=False, questInt=3128, tasks=(VisitTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, npcId=NPCIds.LUCINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.2visitDaisy': QuestDNA(obsolete=False, questInt=3129, tasks=(VisitTaskDNA(npcId=NPCIds.DAISY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.3recoverNeedles': QuestDNA(obsolete=False, questInt=3130, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Needle, num=4, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DAISY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.4visitLucinda': QuestDNA(obsolete=False, questInt=3131, tasks=(VisitTaskDNA(npcId=NPCIds.LUCINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.5visitGreer': QuestDNA(obsolete=False, questInt=3132, tasks=(VisitTaskDNA(npcId=NPCIds.GORDON_GREER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.1stolenVoodoo': QuestDNA(obsolete=False, questInt=4955, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.FORT_CHARLES, item=QuestItems.Sugar, num=5, enemyType=AvatarTypes.Stalker, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.2stolenVoodoo': QuestDNA(obsolete=False, questInt=4956, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.FORT_CHARLES, item=QuestItems.GunpowderPouch, num=5, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.3stolenVoodoo': QuestDNA(obsolete=False, questInt=4957, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.FORT_CHARLES, containerId=PropIds.FC_SHELF, item=QuestItems.EmptyRumBottle, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r4.3recoverRareItem': QuestDNA(obsolete=False, questInt=4958, questLink='c3r2r2.10.5visitJune', tasks=(RecoverShipItemTaskDNA(item=QuestItems.SaltedRib, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_PHANTOM, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r1.1visitWilliam': QuestDNA(obsolete=False, questInt=4948, tasks=(VisitTaskDNA(location=LocationIds.ROWDYROOSTER_TAVERN, npcId=NPCIds.WILLIAM_TURK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r1.2sinkNavyShips': QuestDNA(obsolete=False, questInt=4950, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=8, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2r2.1remedy': QuestDNA(obsolete=False, questInt=4951, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, item=QuestItems.EyeSocket, num=8, enemyType=AvatarTypes.Corpse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2r2.2remedy': QuestDNA(obsolete=False, questInt=4952, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, item=QuestItems.Toenail, num=8, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2.3plunderRum': QuestDNA(obsolete=False, questInt=4953, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FineRum, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_VANGUARD, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r10r2.1visitDocGrog': QuestDNA(obsolete=False, questInt=4984, tasks=(VisitTaskDNA(location=LocationIds.DOCTOR_GROGS, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r1.1recoverRum': QuestDNA(obsolete=False, questInt=4925, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_BULWARK, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2r1.2recoverRum': QuestDNA(obsolete=False, questInt=4926, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FineRum, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_PANTHER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.10.1disruptRitual': QuestDNA(obsolete=False, questInt=4959, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_B, enemyType=AvatarTypes.Corpse, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BLAKELEY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r2.10.2disruptRitual': QuestDNA(obsolete=False, questInt=4960, tasks=(DefeatNPCTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_B, npcId=NPCIds.GENERAL_BLOODLESS),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.BLAKELEY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1.4recoverNavy': QuestDNA(obsolete=False, questInt=3161, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.EngravedPearl, num=2, enemyType=AvatarTypes.Navy, level=5, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.1visitOrinda': QuestDNA(obsolete=False, questInt=3162, tasks=(VisitTaskDNA(npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.2visitFlatts': QuestDNA(obsolete=False, questInt=3163, tasks=(VisitTaskDNA(location=LocationIds.FLATTS_WEAPONS, npcId=NPCIds.BEN_FLATTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.3sinkNavyShips': QuestDNA(obsolete=False, questInt=3164, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=5, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.4recoverArm': QuestDNA(obsolete=False, questInt=3165, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, item=QuestItems.PearlSack, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.5visitFabiola': QuestDNA(obsolete=False, questInt=3166, tasks=(VisitTaskDNA(location=LocationIds.TORTUGA_ISLAND, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.7deliverCutts': QuestDNA(obsolete=False, questInt=3171, tasks=(DeliverItemTaskDNA(location=LocationIds.TORTUGA_ISLAND, item=QuestItems.EngravedPearl, num=5, npcId=NPCIds.HENDRY_CUTTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5r6.1GatorSaliva': QuestDNA(obsolete=False, questInt=3167, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorSaliva, num=6, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5r6.2WaspVenom': QuestDNA(obsolete=False, questInt=3168, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Venom, num=8, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5r6.3ScorpionBlood': QuestDNA(obsolete=False, questInt=3169, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=10, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.3sinkShips': QuestDNA(obsolete=False, questInt=4967, questLink='c3r2r3r1r5.4recoverArm', tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=6, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.1curseRemoval': QuestDNA(obsolete=False, questInt=4969, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.GatorSaliva, num=4, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.2curseRemoval': QuestDNA(obsolete=False, questInt=4970, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.VenomSack, num=1, enemyType=AvatarTypes.RancidFlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r5.3curseRemoval': QuestDNA(obsolete=False, questInt=4971, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.Blood, num=6, enemyType=AvatarTypes.Corpse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r6.1visitCarver': QuestDNA(obsolete=False, questInt=3172, tasks=(VisitTaskDNA(npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r6.2visitFabiola': QuestDNA(obsolete=False, questInt=3173, tasks=(VisitTaskDNA(location=LocationIds.TORTUGA_ISLAND, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r6.3recoverSkeletonShips': QuestDNA(obsolete=False, questInt=3174, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedWood, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r6.4deliverCutts': QuestDNA(obsolete=False, questInt=3175, tasks=(DeliverItemTaskDNA(location=LocationIds.TORTUGA_ISLAND, item=QuestItems.EngravedPearl, num=2, npcId=NPCIds.HENDRY_CUTTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r6.3phantomShips': QuestDNA(obsolete=False, questInt=4972, questLink='c3r2r3r1r6.4deliverCutts', tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedWood, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_PHANTOM, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1.4pearlsOnNavy': QuestDNA(obsolete=False, questInt=4966, questLink='c3r2r3r1r5Smuggler', tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.FORT_CHARLES, item=QuestItems.EngravedPearl, num=5, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.1visitScarlet': QuestDNA(obsolete=False, questInt=3138, tasks=(VisitTaskDNA(npcId=NPCIds.SCARLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.2recoverEffects': QuestDNA(obsolete=False, questInt=3139, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.PersonalEffects, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.3visitMillie': QuestDNA(obsolete=False, questInt=3140, tasks=(VisitTaskDNA(location=LocationIds.MILLIES_COTTAGE, npcId=NPCIds.MILLIE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.4visitCutts': QuestDNA(obsolete=False, questInt=3153, tasks=(VisitTaskDNA(location=LocationIds.TORTUGA_ISLAND, npcId=NPCIds.HENDRY_CUTTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.8visitJack': QuestDNA(obsolete=False, questInt=3181, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.9recoverPapers': QuestDNA(obsolete=False, questInt=3182, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Document, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_WARSHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.10deliverJack': QuestDNA(obsolete=False, questInt=3183, tasks=(DeliverItemTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, item=QuestItems.Document, num=1, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.11deliverPearl': QuestDNA(obsolete=False, questInt=3184, tasks=(DeliverItemTaskDNA(location=LocationIds.TORTUGA_ISLAND, item=QuestItems.EngravedPearl, num=1, npcId=NPCIds.HENDRY_CUTTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.12deliverMillie': QuestDNA(obsolete=False, questInt=3185, questLink='c3r2r3.14visitJoshamee', tasks=(DeliverItemTaskDNA(location=LocationIds.MILLIES_COTTAGE, item=QuestItems.Necklace, num=1, npcId=NPCIds.MILLIE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MILLIE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.13visitCutts': QuestDNA(obsolete=False, questInt=3186, tasks=(VisitTaskDNA(npcId=NPCIds.HENDRY_CUTTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.14visitJoshamee': QuestDNA(obsolete=False, questInt=3187, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1.1RecoverSkeletons': QuestDNA(obsolete=False, questInt=3154, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EngravedPearl, num=2, enemyType=AvatarTypes.Undead, level=7, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1.3recoverShips': QuestDNA(obsolete=False, questInt=3160, tasks=(RecoverShipItemTaskDNA(item=QuestItems.EngravedPearl, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r2.1visitBowdash': QuestDNA(obsolete=False, questInt=3155, tasks=(VisitTaskDNA(location=LocationIds.KINGSARM_TAVERN, npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r2.2poker': QuestDNA(obsolete=False, questInt=3156, tasks=(PokerTaskDNA(gold=PokerPots.SMALL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r2.3poker': QuestDNA(obsolete=False, questInt=3157, tasks=(PokerTaskDNA(gold=PokerPots.MEDIUM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r2.4poker': QuestDNA(obsolete=False, questInt=3158, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r2.5deliverCutts': QuestDNA(obsolete=False, questInt=3159, tasks=(DeliverItemTaskDNA(location=LocationIds.TORTUGA_ISLAND, item=QuestItems.EngravedPearl, num=2, npcId=NPCIds.HENDRY_CUTTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r2.1sinkShips': QuestDNA(obsolete=False, questInt=4963, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_CORVETTE, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r2.2sinkShips': QuestDNA(obsolete=False, questInt=4964, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_SENTINEL, num=2, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1.1recoverPearls': QuestDNA(obsolete=False, questInt=4961, questLink='c3r2r3r1r2Cufflinks', tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, item=QuestItems.EngravedPearl, num=4, enemyType=AvatarTypes.Corpse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1.3pearlsOnShips': QuestDNA(obsolete=False, questInt=4965, questLink='c3r2r3r1Pearls2', tasks=(RecoverShipItemTaskDNA(item=QuestItems.EngravedPearl, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BLOODHOUND, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r7.1visitMallet': QuestDNA(obsolete=False, questInt=3176, tasks=(VisitTaskDNA(location=LocationIds.TORTUGA_JUNGLE_A_GRAVEYARD, npcId=NPCIds.MALLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r7.2deliverFabiola': QuestDNA(obsolete=False, questInt=3177, tasks=(DeliverItemTaskDNA(item=QuestItems.Map, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r7.3recoverEffects': QuestDNA(obsolete=False, questInt=3178, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.PersonalEffects, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r7.4recoverCrabs': QuestDNA(obsolete=False, questInt=3179, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EngravedPearl, num=2, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r7.5deliverCutts': QuestDNA(obsolete=False, questInt=3180, tasks=(DeliverItemTaskDNA(location=LocationIds.TORTUGA_ISLAND, item=QuestItems.PearlSack, num=1, npcId=NPCIds.HENDRY_CUTTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.HENDRY_CUTTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r7.1albertosRemains': QuestDNA(obsolete=False, questInt=4974, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.RUMRUNNER_ISLE, item=QuestItems.PearlSack, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MALLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3r1r7.2albertosRemains': QuestDNA(obsolete=False, questInt=4975, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.RUMRUNNER_ISLE, item=QuestItems.EngravedPearl, num=5, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MALLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.1navyDocument': QuestDNA(obsolete=False, questInt=4977, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_VANGUARD, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r3.2navyDocument': QuestDNA(obsolete=False, questInt=4978, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Document, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_CENTURION, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.1visitCarver': QuestDNA(obsolete=False, questInt=3200, tasks=(VisitTaskDNA(npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.2bribeCarver': QuestDNA(obsolete=False, questInt=3201, tasks=(BribeNPCTaskDNA(npcId=NPCIds.CARVER, gold=Bribes.MEDIUM, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.3visitNill': QuestDNA(obsolete=False, questInt=3202, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.NILL_OFFRILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.4blackjack': QuestDNA(obsolete=False, questInt=3203, questLink='c3r2r4r6Creditors', tasks=(BlackjackTaskDNA(gold=PokerPots.MINOR),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NILL_OFFRILL,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.5poker': QuestDNA(obsolete=False, questInt=3204, tasks=(PokerTaskDNA(gold=PokerPots.MEDIUM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NILL_OFFRILL,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.7visitNill': QuestDNA(obsolete=False, questInt=3242, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.NILL_OFFRILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.9visitJohn': QuestDNA(obsolete=False, questInt=3256, tasks=(VisitTaskDNA(npcId=NPCIds.BRONZE_JOHN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.10deliverDice': QuestDNA(obsolete=False, questInt=3257, tasks=(DeliverItemTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, item=QuestItems.DicePair, num=1, npcId=NPCIds.NILL_OFFRILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NILL_OFFRILL,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.11poker': QuestDNA(obsolete=False, questInt=3258, tasks=(PokerTaskDNA(gold=PokerPots.AVERAGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NILL_OFFRILL,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.12visitJoshamee': QuestDNA(obsolete=False, questInt=3259, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.9visitBastien': QuestDNA(obsolete=False, questInt=3809, tasks=(VisitTaskDNA(location=LocationIds.RUMRUNNER_ISLE, npcId=NPCIds.BASTIEN_CRAVEN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.1bastiensRequest': QuestDNA(obsolete=False, questInt=3811, tasks=(DefeatTaskDNA(location=LocationIds.RUMRUNNER_ALL, enemyType=AvatarTypes.KillerWasp, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BASTIEN_CRAVEN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.2bastiensRequest': QuestDNA(obsolete=False, questInt=3812, tasks=(DefeatTaskDNA(location=LocationIds.RUMRUNNER_ALL, enemyType=AvatarTypes.DreadScorpion, num=3, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BASTIEN_CRAVEN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4.3bastiensRequest': QuestDNA(obsolete=False, questInt=3813, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.RUMRUNNER_CELLAR, containerId=PropIds.RR_CELLAR_CRATE, item=QuestItems.TenYearRum, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BASTIEN_CRAVEN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.1visitGrog': QuestDNA(obsolete=False, questInt=3205, tasks=(VisitTaskDNA(location=LocationIds.DOCTOR_GROGS, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.3bribeCarver': QuestDNA(obsolete=False, questInt=3207, tasks=(BribeNPCTaskDNA(npcId=NPCIds.CARVER, gold=Bribes.SMALL, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.4deliverMedicine': QuestDNA(obsolete=False, questInt=3208, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=1, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.8deliverJar': QuestDNA(obsolete=False, questInt=3212, tasks=(DeliverItemTaskDNA(item=QuestItems.Jar, num=1, npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.10visitGrog': QuestDNA(obsolete=False, questInt=3214, tasks=(VisitTaskDNA(npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.11recoverCrabs': QuestDNA(obsolete=False, questInt=3215, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bile, num=15, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.18recoverBile': QuestDNA(obsolete=False, questInt=3222, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bile, num=10, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.21recoverChest': QuestDNA(obsolete=False, questInt=3225, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.22visitNill': QuestDNA(obsolete=False, questInt=3260, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.NILL_OFFRILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.1grogsRequest': QuestDNA(obsolete=False, questInt=3802, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, item=QuestItems.Bile, num=8, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.2grogsRequest': QuestDNA(obsolete=False, questInt=3803, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, item=QuestItems.Bile, num=12, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r1.3grogsRequest': QuestDNA(obsolete=False, questInt=3804, questLink='c3r2r4r6r1.22visitNill', tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_VANGUARD, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.1visitBowdash': QuestDNA(obsolete=False, questInt=3226, tasks=(VisitTaskDNA(location=LocationIds.KINGSARM_TAVERN, npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.2recoverFlags': QuestDNA(obsolete=False, questInt=3227, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Flag, num=8, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.3captureBillington': QuestDNA(obsolete=False, questInt=3228, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_BILLINGTON, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_CENTURION, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.4maroonBillington': QuestDNA(obsolete=False, questInt=3229, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_BILLINGTON),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.5deliverScepter': QuestDNA(obsolete=False, questInt=3230, tasks=(DeliverItemTaskDNA(location=LocationIds.KINGSARM_TAVERN, item=QuestItems.HookArm, num=1, npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.11recoverKey': QuestDNA(obsolete=False, questInt=3236, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.Key, num=1, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.14recoverDiamond': QuestDNA(obsolete=False, questInt=3239, questLink='c3r2r4.7visitNill', tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.Diamond, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.15stealCigars': QuestDNA(obsolete=False, questInt=3240, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.BOWDASH_CABINET, item=QuestItems.CigarBox, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r6r2.16recoverChest': QuestDNA(obsolete=False, questInt=3241, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.ISLA_CANGREJOS, item=QuestItems.Chest, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.1visitBenedek': QuestDNA(obsolete=False, questInt=3243, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.BENEDEK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.2captureWallace': QuestDNA(obsolete=False, questInt=3244, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.WALLACE, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BLOODHOUND, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.3maroonWallace': QuestDNA(obsolete=False, questInt=3245, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.WALLACE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.4deliverMoney': QuestDNA(obsolete=False, questInt=3246, tasks=(DeliverItemTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, item=QuestItems.CoinBag, num=1, npcId=NPCIds.BENEDEK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.5recoverRum': QuestDNA(obsolete=False, questInt=3247, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBottle, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.6visitMarsh': QuestDNA(obsolete=False, questInt=3248, tasks=(VisitTaskDNA(npcId=NPCIds.GRAHAM_MARSH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.7sinkNavyShips': QuestDNA(obsolete=False, questInt=3249, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, num=7, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GRAHAM_MARSH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.8visitFlatts': QuestDNA(obsolete=False, questInt=3250, tasks=(VisitTaskDNA(npcId=NPCIds.BEN_FLATTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.9poker': QuestDNA(obsolete=False, questInt=3251, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.10deliverMoney': QuestDNA(obsolete=False, questInt=3252, tasks=(DeliverItemTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, item=QuestItems.CoinBag, num=1, npcId=NPCIds.BENEDEK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.11captureOHenry': QuestDNA(obsolete=False, questInt=3253, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.OHENRY, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_PHANTOM, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.12recoverChain': QuestDNA(obsolete=False, questInt=3254, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.GoldChain, num=1, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.13visitNill': QuestDNA(obsolete=False, questInt=3255, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.NILL_OFFRILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.5recoverBottles': QuestDNA(obsolete=False, questInt=3805, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, item=QuestItems.RumBottle, num=3, enemyType=AvatarTypes.CorpseCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.6visitBenFlatts': QuestDNA(obsolete=False, questInt=3806, tasks=(VisitTaskDNA(location=LocationIds.FLATTS_WEAPONS, npcId=NPCIds.BEN_FLATTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.7sinkShips': QuestDNA(obsolete=False, questInt=3807, questLink='c3r2r4r8.10deliverMoney', tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, num=7, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r4r8.12recoverBling': QuestDNA(obsolete=False, questInt=3808, questLink='c3r2r4r8.13visitNill', tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.GoldChain, num=5, enemyType=AvatarTypes.RancidFlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.4recoverGuano': QuestDNA(obsolete=False, questInt=3308, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatGuano, num=10, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.5recoverSplinter': QuestDNA(obsolete=False, questInt=3309, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Splinter, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.6recoverDust': QuestDNA(obsolete=False, questInt=3310, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Dust, num=10, enemyType=AvatarTypes.Undead, level=7, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.7recoverEarth': QuestDNA(obsolete=False, questInt=3312, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Earth, num=2, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.8recoverLichens': QuestDNA(obsolete=False, questInt=3313, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Earth, num=1, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.9recoverWater': QuestDNA(obsolete=False, questInt=3314, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BattleSaltWater, num=4, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_CORVETTE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.10recoverEggs': QuestDNA(obsolete=False, questInt=3316, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScorpionEgg, num=20, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.11recoverMoney': QuestDNA(obsolete=False, questInt=3317, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BloodyTreasure, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.12recoverNightshade': QuestDNA(obsolete=False, questInt=3318, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Nightshade, num=4, enemyType=AvatarTypes.Corpse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.13recoverWhiskers': QuestDNA(obsolete=False, questInt=3319, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Whisker, num=10, enemyType=AvatarTypes.Sergeant, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.1visitGrog': QuestDNA(obsolete=False, questInt=3300, tasks=(VisitTaskDNA(location=LocationIds.DOCTOR_GROGS, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.3deliverJack': QuestDNA(obsolete=False, questInt=3321, tasks=(DeliverItemTaskDNA(item=QuestItems.List, num=1, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.4recoverEyes': QuestDNA(obsolete=False, questInt=3322, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Eye, num=4, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.5deliverJack': QuestDNA(obsolete=False, questInt=3323, tasks=(DeliverItemTaskDNA(item=QuestItems.Eye, num=4, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.6deliverEyes': QuestDNA(obsolete=False, questInt=3324, questLink='c3r2r5.10administerRemedy', tasks=(DeliverItemTaskDNA(location=LocationIds.DOCTOR_GROGS, item=QuestItems.Eye, num=4, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.7deliverMallet': QuestDNA(obsolete=False, questInt=3325, tasks=(DeliverItemTaskDNA(item=QuestItems.Remedy, num=1, npcId=NPCIds.MALLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MALLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.8bribeMallet': QuestDNA(obsolete=False, questInt=3326, tasks=(BribeNPCTaskDNA(npcId=NPCIds.MALLET, gold=Bribes.LARGE, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.9deliverRemedy': QuestDNA(obsolete=False, questInt=3327, tasks=(DeliverItemTaskDNA(item=QuestItems.Remedy, num=1, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.10administerRemedy': QuestDNA(obsolete=False, questInt=3328, tasks=(DeliverItemTaskDNA(location=LocationIds.DOCTOR_GROGS, item=QuestItems.Remedy, num=1, npcId=NPCIds.LE_CERDO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LE_CERDO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.11visitJoshamee': QuestDNA(obsolete=False, questInt=3329, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.2krakenEyes': QuestDNA(obsolete=False, questInt=3814, tasks=(RecoverShipItemTaskDNA(item=QuestItems.KrakenEye, num=8, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r3.1grogsMedicineA': QuestDNA(obsolete=False, questInt=3816, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_ALL, item=QuestItems.Hair, num=20, enemyType=AvatarTypes.Corpse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r3.2grogsMedicineA': QuestDNA(obsolete=False, questInt=3817, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_ALL, item=QuestItems.GatorSaliva, num=20, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r4.1grogsMedicineB': QuestDNA(obsolete=False, questInt=3819, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DRIFTWOOD_ISLAND, item=QuestItems.Stinger, num=14, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r4.2grogsMedicineB': QuestDNA(obsolete=False, questInt=3820, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DRIFTWOOD_ISLAND, item=QuestItems.Bile, num=14, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r5.1grogsMedicineC': QuestDNA(obsolete=False, questInt=3822, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.BoneDust, num=10, enemyType=AvatarTypes.CorpseCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r5.2grogsMedicineC': QuestDNA(obsolete=False, questInt=3823, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.CrocWater, num=8, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r5.3grogsMedicineC': QuestDNA(obsolete=False, questInt=3824, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_SWAMP, item=QuestItems.Venom, num=8, enemyType=AvatarTypes.RancidFlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.6recoverShips': QuestDNA(obsolete=False, questInt=3825, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_IRONWALL, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r7.1grogsMedicineD': QuestDNA(obsolete=False, questInt=3827, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.ISLA_CANGREJOS, item=QuestItems.Egg, num=20, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r7.2grogsMedicineD': QuestDNA(obsolete=False, questInt=3828, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.ISLA_CANGREJOS, item=QuestItems.Bile, num=1, enemyType=AvatarTypes.ClawChief, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r7.3grogsMedicineD': QuestDNA(obsolete=False, questInt=3829, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Splinter, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_PHANTOM, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5.8visitJack': QuestDNA(obsolete=False, questInt=3830, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r9.1undeadJob': QuestDNA(obsolete=False, questInt=3832, tasks=(DefeatTaskDNA(location=LocationIds.CUTTHROAT_ALL, enemyType=AvatarTypes.CorpseCutlass, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r9.2undeadJob': QuestDNA(obsolete=False, questInt=3833, tasks=(DefeatTaskDNA(location=LocationIds.CUTTHROAT_ALL, enemyType=AvatarTypes.SpanishUndeadA, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r9.3undeadJob': QuestDNA(obsolete=False, questInt=3834, tasks=(DefeatTaskDNA(location=LocationIds.CUTTHROAT_ALL, enemyType=AvatarTypes.SpanishUndeadB, num=6, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.2recoverCrocwater': QuestDNA(obsolete=False, questInt=3306, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrocWater, num=5, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2.3recoverEntrails': QuestDNA(obsolete=False, questInt=3307, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DRIFTWOOD_ALL, item=QuestItems.Entrails, num=2, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2r1.1recoverEyeShips': QuestDNA(obsolete=False, questInt=3301, tasks=(RecoverShipItemTaskDNA(item=QuestItems.KrakenEye, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r2r5r2r1.2defeatCrabs': QuestDNA(obsolete=False, questInt=3302, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.RockCrab, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.5recoverFleas': QuestDNA(obsolete=False, questInt=3483, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Flea, num=6, enemyType=AvatarTypes.Undead, level=7, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.6recoverTail': QuestDNA(obsolete=False, questInt=3484, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Stinger, num=1, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.7recoverTooth': QuestDNA(obsolete=False, questInt=3485, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tooth, num=1, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28r4.1visitTomas': QuestDNA(obsolete=False, questInt=3481, tasks=(VisitTaskDNA(npcId=NPCIds.JUNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28r4.2deliverHairballs': QuestDNA(obsolete=False, questInt=3482, tasks=(DeliverItemTaskDNA(item=QuestItems.Hairball, num=4, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.1visitOrinda': QuestDNA(obsolete=False, questInt=3400, tasks=(VisitTaskDNA(location=LocationIds.TORTUGA_ISLAND, npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.2deliverCargo': QuestDNA(obsolete=False, questInt=3401, tasks=(DeliverItemTaskDNA(item=QuestItems.Cargo, num=1, npcId=NPCIds.GRAHAM_MARSH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GRAHAM_MARSH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.3deliverCoins': QuestDNA(obsolete=False, questInt=3402, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.4recoverChest': QuestDNA(obsolete=False, questInt=3403, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=1, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.5visitDuchamps': QuestDNA(obsolete=False, questInt=3404, tasks=(VisitTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.6visitOlivier': QuestDNA(obsolete=False, questInt=3405, tasks=(VisitTaskDNA(npcId=NPCIds.OLIVIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.7recoverBarrel': QuestDNA(obsolete=False, questInt=3406, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.RumBarrel, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.8deliverBarrel': QuestDNA(obsolete=False, questInt=3407, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBarrel, num=1, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.9sinkShips': QuestDNA(obsolete=False, questInt=3408, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, num=5, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.10sinkShips': QuestDNA(obsolete=False, questInt=3409, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.TradingCo, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.11visitGunner': QuestDNA(obsolete=False, questInt=3410, tasks=(VisitTaskDNA(location=LocationIds.GUNNERS_SHACK, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.28visitRomany': QuestDNA(obsolete=False, questInt=3432, tasks=(VisitTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.30deliverGunner': QuestDNA(obsolete=False, questInt=3437, questLink='c3r3r1r31twentyFiveRum', tasks=(DeliverItemTaskDNA(location=LocationIds.GUNNERS_SHACK, item=QuestItems.VoodooRumBottle, num=1, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.14deliverRum': QuestDNA(obsolete=False, questInt=3443, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=67, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.15visitGunner': QuestDNA(obsolete=False, questInt=3444, tasks=(VisitTaskDNA(npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.16visitPedro': QuestDNA(obsolete=False, questInt=3445, tasks=(VisitTaskDNA(npcId=NPCIds.PAUPER_PEDRO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.17bribePedro': QuestDNA(obsolete=False, questInt=3446, tasks=(BribeNPCTaskDNA(npcId=NPCIds.PAUPER_PEDRO, gold=Bribes.MEDIUM, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.18visitFernando': QuestDNA(obsolete=False, questInt=3447, tasks=(VisitTaskDNA(npcId=NPCIds.FERNANDO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.19bribeFernando': QuestDNA(obsolete=False, questInt=3448, tasks=(BribeNPCTaskDNA(npcId=NPCIds.FERNANDO, gold=Bribes.MEDIUM, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.20deliverRum': QuestDNA(obsolete=False, questInt=3449, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=14, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.20.5visitGunner': QuestDNA(obsolete=False, questInt=3450, tasks=(VisitTaskDNA(npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.22deliverRum': QuestDNA(obsolete=False, questInt=3461, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=5, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.23visitGunner': QuestDNA(obsolete=False, questInt=3462, questLink='c3r3r1r25SingaporeanRum', tasks=(DeliverItemTaskDNA(location=LocationIds.GUNNERS_SHACK, item=QuestItems.SkeletonRum, num=1, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.24visitJoshamee': QuestDNA(obsolete=False, questInt=3463, tasks=(VisitTaskDNA(npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.26deliverRum': QuestDNA(obsolete=False, questInt=3475, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=5, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.27visitGunner': QuestDNA(obsolete=False, questInt=3476, tasks=(DeliverItemTaskDNA(location=LocationIds.GUNNERS_SHACK, item=QuestItems.SingaporeanRum, num=1, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.29deliverRum': QuestDNA(obsolete=False, questInt=3486, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=5, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.30visitGunner': QuestDNA(obsolete=False, questInt=3487, tasks=(VisitTaskDNA(npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.32deliverRum': QuestDNA(obsolete=False, questInt=3500, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=1, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.33visitGunner': QuestDNA(obsolete=False, questInt=3501, tasks=(VisitTaskDNA(location=LocationIds.GUNNERS_SHACK, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.34visitBarbossa': QuestDNA(obsolete=False, questInt=3502, tasks=(VisitTaskDNA(npcId=NPCIds.BARBOSSA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.BARBOSSA), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.35captureTrent': QuestDNA(obsolete=False, questInt=3503, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.TRENT, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.36maroonTrent': QuestDNA(obsolete=False, questInt=3504, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.TRENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.37deliverKey': QuestDNA(obsolete=False, questInt=3505, tasks=(DeliverItemTaskDNA(item=QuestItems.Key, num=1, npcId=NPCIds.BARBOSSA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BARBOSSA,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.BARBOSSA), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.38deliverRum': QuestDNA(obsolete=False, questInt=3506, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=1, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.39visitGunner': QuestDNA(obsolete=False, questInt=3507, tasks=(DeliverItemTaskDNA(location=LocationIds.GUNNERS_SHACK, item=QuestItems.TwentyFiveYearRum, num=1, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.40captureJones': QuestDNA(obsolete=False, questInt=3508, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_JONES, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BARRACUDA, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.41visitMorris': QuestDNA(obsolete=False, questInt=3509, tasks=(VisitTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, npcId=NPCIds.MORRIS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.42visitPedro': QuestDNA(obsolete=False, questInt=3510, tasks=(VisitTaskDNA(npcId=NPCIds.PAUPER_PEDRO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.43bribePedro': QuestDNA(obsolete=False, questInt=3511, tasks=(BribeNPCTaskDNA(npcId=NPCIds.PAUPER_PEDRO, gold=Bribes.SMALL, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.44deliverDrink': QuestDNA(obsolete=False, questInt=3512, tasks=(DeliverItemTaskDNA(item=QuestItems.Drink, num=1, npcId=NPCIds.MORRIS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.45recoverFlags': QuestDNA(obsolete=False, questInt=3513, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Flag, num=4, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.46visitPedro': QuestDNA(obsolete=False, questInt=3514, tasks=(VisitTaskDNA(npcId=NPCIds.PAUPER_PEDRO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.47bribePedro': QuestDNA(obsolete=False, questInt=3515, tasks=(BribeNPCTaskDNA(npcId=NPCIds.PAUPER_PEDRO, gold=Bribes.SMALL, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.48deliverDrink': QuestDNA(obsolete=False, questInt=3516, tasks=(DeliverItemTaskDNA(item=QuestItems.Drink, num=1, npcId=NPCIds.MORRIS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.49stealSchedule': QuestDNA(obsolete=False, questInt=3517, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_DESK, item=QuestItems.Schedule, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.50recoverRum': QuestDNA(obsolete=False, questInt=3518, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBottle, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_WARSHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.51deliverRum': QuestDNA(obsolete=False, questInt=3519, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=1, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.52visitGunner': QuestDNA(obsolete=False, questInt=3520, tasks=(DeliverItemTaskDNA(location=LocationIds.GUNNERS_SHACK, item=QuestItems.Cutler100, num=4, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.53visitJoshamee': QuestDNA(obsolete=False, questInt=3521, tasks=(VisitTaskDNA(npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.2recoverChests': QuestDNA(obsolete=False, questInt=3835, questLink='c3r3r1.5visitDuchamps', tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_KINGFISHER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r6.1duchampsCompetition': QuestDNA(obsolete=False, questInt=3837, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, num=8, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r6.2duchampsCompetition': QuestDNA(obsolete=False, questInt=3838, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_IRONWALL, num=2, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.1voodooRumIngredientsA': QuestDNA(obsolete=False, questInt=3881, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedDarkSugar, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_MONARCH, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.2voodooRumIngredientsA': QuestDNA(obsolete=False, questInt=3882, tasks=(RecoverShipItemTaskDNA(item=QuestItems.DreadBitters, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_MARAUDER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.3voodooRumIngredientsA': QuestDNA(obsolete=False, questInt=3883, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedBarnacles, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_REVENANT, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r29.1voodooRumIngredientsB': QuestDNA(obsolete=False, questInt=3885, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.Flea, num=8, enemyType=AvatarTypes.Carrion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r29.2voodooRumIngredientsB': QuestDNA(obsolete=False, questInt=3886, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.Stinger, num=12, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r29.3voodooRumIngredientsB': QuestDNA(obsolete=False, questInt=3887, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.Tooth, num=8, enemyType=AvatarTypes.SpanishUndeadC, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.42recoverFlags': QuestDNA(obsolete=False, questInt=3892, questLink='c3r3r1.49stealSchedule', tasks=(RecoverShipItemTaskDNA(item=QuestItems.Flag, num=12, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1.50plunderRum': QuestDNA(obsolete=False, questInt=3893, questLink='c3r3r1.52visitGunner', tasks=(RecoverShipItemTaskDNA(item=QuestItems.Cutler100, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_MARAUDER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12.1fishRum': QuestDNA(obsolete=False, questInt=3411, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.FishRumBottle, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12.2Grog': QuestDNA(obsolete=False, questInt=3412, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RumBottle, num=1, enemyType=AvatarTypes.Navy, level=5, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12.3lightRum': QuestDNA(obsolete=False, questInt=3413, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RumBottle, num=1, enemyType=AvatarTypes.Navy, level=9, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12.4darkRum': QuestDNA(obsolete=False, questInt=3414, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RumBottle, num=1, enemyType=AvatarTypes.Navy, level=9, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12.5fiveYearRum': QuestDNA(obsolete=False, questInt=3415, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBottle, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12.6tenYearRum': QuestDNA(obsolete=False, questInt=3416, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBottle, num=1, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12.7skeletonRum': QuestDNA(obsolete=False, questInt=3417, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RumBottle, num=1, enemyType=AvatarTypes.Undead, level=7, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12r2.1recoverRum': QuestDNA(obsolete=False, questInt=3840, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.GrogBottle, num=16, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12r2.2recoverRum': QuestDNA(obsolete=False, questInt=3841, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.LightRumBottle, num=16, enemyType=AvatarTypes.Stalker, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12r2.3recoverRum': QuestDNA(obsolete=False, questInt=3842, tasks=(RecoverNPCItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.DarkRumBottle, npcId=NPCIds.SAMUEL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12r3.1recoverRum': QuestDNA(obsolete=False, questInt=3844, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FiveYearRum, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12r3.2recoverRum': QuestDNA(obsolete=False, questInt=3845, tasks=(RecoverShipItemTaskDNA(item=QuestItems.TenYearRum, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r12r3.3recoverRum': QuestDNA(obsolete=False, questInt=3846, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BoneRumBottle, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_PHANTOM, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r2.1findRum': QuestDNA(obsolete=False, questInt=3848, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_BARRELS, item=QuestItems.NavyRum, num=8, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r2.2findRum': QuestDNA(obsolete=False, questInt=3849, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_CRATES, item=QuestItems.EITCRum, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r1.1visitRico': QuestDNA(obsolete=False, questInt=3418, tasks=(VisitTaskDNA(location=LocationIds.SKULLSTHUNDER_TAVERN, npcId=NPCIds.RICO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r1.2bribeRico': QuestDNA(obsolete=False, questInt=3419, tasks=(BribeNPCTaskDNA(npcId=NPCIds.RICO, gold=Bribes.AVERAGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r1.3visitGarrett': QuestDNA(obsolete=False, questInt=3420, tasks=(VisitTaskDNA(npcId=NPCIds.GARRETT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r1.4bribeGarrett': QuestDNA(obsolete=False, questInt=3421, tasks=(BribeNPCTaskDNA(npcId=NPCIds.GARRETT, gold=Bribes.HUGE, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r1.5deliverRum': QuestDNA(obsolete=False, questInt=3422, tasks=(DeliverItemTaskDNA(location=LocationIds.GUNNERS_SHACK, item=QuestItems.RumBottle, num=10, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r2.1recoverRum': QuestDNA(obsolete=False, questInt=3423, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBottle, num=10, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r2.2recoverRum': QuestDNA(obsolete=False, questInt=3424, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBottle, num=10, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r3.1poker': QuestDNA(obsolete=False, questInt=3425, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r3.2blackjack': QuestDNA(obsolete=False, questInt=3426, tasks=(BlackjackTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4.1recoverLadle': QuestDNA(obsolete=False, questInt=3427, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Ladle, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_WARSHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4.1getEmptyBottles': QuestDNA(obsolete=False, questInt=3850, questLink='c3r3r1r13r4r2.GrogIngredients', tasks=(RecoverShipItemTaskDNA(item=QuestItems.EmptyBottleBox, num=12, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r2.1grogIngredients': QuestDNA(obsolete=False, questInt=3852, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.Sugar, num=8, enemyType=AvatarTypes.SpanishUndeadB, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r2.2grogIngredients': QuestDNA(obsolete=False, questInt=3853, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.WaterCanteen, num=16, enemyType=AvatarTypes.CorpseCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r2.3grogIngredients': QuestDNA(obsolete=False, questInt=3854, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.Mud, num=5, enemyType=AvatarTypes.SpanishUndeadC, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r3.1lightRumIngredients': QuestDNA(obsolete=False, questInt=3856, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Molasses, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BLOODHOUND, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r3.2lightRumIngredients': QuestDNA(obsolete=False, questInt=3857, tasks=(RecoverShipItemTaskDNA(item=QuestItems.WaterBarrel, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_CENTURION, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r3.3lightRumIngredients': QuestDNA(obsolete=False, questInt=3858, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Vanilla, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_IRONWALL, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r4.1darkRumIngredients': QuestDNA(obsolete=False, questInt=3860, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.MolassesCup, num=5, enemyType=AvatarTypes.Hiredgun, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r4.2darkRumIngredients': QuestDNA(obsolete=False, questInt=3861, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.WaterCanteen, num=5, enemyType=AvatarTypes.Officer, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r4.3darkRumIngredients': QuestDNA(obsolete=False, questInt=3862, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, containerId=PropIds.DF_BQ_BARRELS, item=QuestItems.Vanilla, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r2.1recoverSugar': QuestDNA(obsolete=False, questInt=3428, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Sugar, num=8, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r2.2recoverWater': QuestDNA(obsolete=False, questInt=3429, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WaterCanteen, num=3, enemyType=AvatarTypes.TradingCo, level=8, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r2.3recoverMud': QuestDNA(obsolete=False, questInt=3430, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Mud, num=1, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r2.4recoverBottle': QuestDNA(obsolete=False, questInt=3431, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bottle, num=1, enemyType=AvatarTypes.Navy, level=5, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r3.1recoverMolasses': QuestDNA(obsolete=False, questInt=3433, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Molasses, num=12, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r3.2recoverWater': QuestDNA(obsolete=False, questInt=3434, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WaterCanteen, num=8, enemyType=AvatarTypes.TradingCo, level=8, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r3.3recoverVanilla': QuestDNA(obsolete=False, questInt=3435, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Vanilla, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r3.4recoverBottle': QuestDNA(obsolete=False, questInt=3436, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bottle, num=1, enemyType=AvatarTypes.Navy, level=9, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r4.1recoverMolasses': QuestDNA(obsolete=False, questInt=3438, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Molasses, num=4, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r4.2recoverWater': QuestDNA(obsolete=False, questInt=3439, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WaterCanteen, num=10, enemyType=AvatarTypes.TradingCo, level=8, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r4.3recoverVanilla': QuestDNA(obsolete=False, questInt=3440, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Vanilla, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r13r4r4.4recoverBottle': QuestDNA(obsolete=False, questInt=3441, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bottle, num=1, enemyType=AvatarTypes.Navy, level=5, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1.1visitRomany': QuestDNA(obsolete=False, questInt=3451, tasks=(VisitTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r3.1skelRumIngredientsB': QuestDNA(obsolete=False, questInt=3864, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.Hair, num=14, enemyType=AvatarTypes.CorpseCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r3.2skelRumIngredientsB': QuestDNA(obsolete=False, questInt=3865, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.BoneDust, num=6, enemyType=AvatarTypes.CarrionKnife, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r3.3skelRumIngredientsB': QuestDNA(obsolete=False, questInt=3866, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_C, item=QuestItems.Toenail, num=6, enemyType=AvatarTypes.Carrion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r4.1skelRumIngredientsC': QuestDNA(obsolete=False, questInt=3868, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.SwampGas, num=12, enemyType=AvatarTypes.RancidFlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r4.2skelRumIngredientsC': QuestDNA(obsolete=False, questInt=3869, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.Stinger, num=12, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r4.3skelRumIngredientsC': QuestDNA(obsolete=False, questInt=3870, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.Bladder, num=12, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1.2skelRumIngredientsA': QuestDNA(obsolete=False, questInt=3894, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Splinter, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_PHANTOM, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r2.1recoverMolasses': QuestDNA(obsolete=False, questInt=3453, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Molasses, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r2.2recoverWater': QuestDNA(obsolete=False, questInt=3454, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Water, num=3, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r2.3recoverDust': QuestDNA(obsolete=False, questInt=3455, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneDust, num=10, enemyType=AvatarTypes.Undead, level=7, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r2.4recoverGas': QuestDNA(obsolete=False, questInt=3456, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.SwampGas, num=1, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r2.5recoverStingers': QuestDNA(obsolete=False, questInt=3457, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Stinger, num=10, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r21r1r2.6recoverBladder': QuestDNA(obsolete=False, questInt=3458, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bladder, num=1, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25.1visitPauper': QuestDNA(obsolete=False, questInt=3871, tasks=(VisitTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, npcId=NPCIds.PAUPER_PEDRO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r2.1singapRumIngredientsA': QuestDNA(obsolete=False, questInt=3873, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CaneSugarBarrel, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_VANGUARD, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r2.2singapRumIngredientsA': QuestDNA(obsolete=False, questInt=3874, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Honey, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_KINGFISHER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r2.3singapRumIngredientsA': QuestDNA(obsolete=False, questInt=3875, tasks=(RecoverShipItemTaskDNA(item=QuestItems.NutmegCrate, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_MARAUDER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r3.1singapRumIngredientsB': QuestDNA(obsolete=False, questInt=3877, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, item=QuestItems.Cinnamon, num=20, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r3.2singapRumIngredientsB': QuestDNA(obsolete=False, questInt=3878, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_BARRELS, item=QuestItems.Coconut, num=8, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r3.3singapRumIngredientsB': QuestDNA(obsolete=False, questInt=3879, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_CRATES, item=QuestItems.Feather, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1.1visitCarver': QuestDNA(obsolete=False, questInt=3464, tasks=(VisitTaskDNA(npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1.2deliverPint': QuestDNA(obsolete=False, questInt=3465, tasks=(DeliverItemTaskDNA(item=QuestItems.Pint, num=1, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOSHAMEE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1r3.1recoverMolasses': QuestDNA(obsolete=False, questInt=3466, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Molasses, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1r3.2recoverHoney': QuestDNA(obsolete=False, questInt=3467, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Honey, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1r3.3recoverWater': QuestDNA(obsolete=False, questInt=3468, tasks=(RecoverShipItemTaskDNA(item=QuestItems.MoonlitWater, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1r3.4recoverCinnamon': QuestDNA(obsolete=False, questInt=3469, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Cinnamon, num=12, enemyType=AvatarTypes.Navy, level=9, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1r3.5recoverCoconut': QuestDNA(obsolete=False, questInt=3470, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Coconut, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r1r3.6recoverFeather': QuestDNA(obsolete=False, questInt=3471, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Feather, num=1, enemyType=AvatarTypes.Navy, level=15, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r2.1captureArcher': QuestDNA(obsolete=False, questInt=3473, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_ARCHER, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_WARSHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r25r2.2maroonArcher': QuestDNA(obsolete=False, questInt=3474, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_ARCHER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.1recoverMolasses': QuestDNA(obsolete=False, questInt=3477, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Molasses, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.2recoverWater': QuestDNA(obsolete=False, questInt=3478, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Water, num=2, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r28.3recoverBarnacles': QuestDNA(obsolete=False, questInt=3479, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Barnacles, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r1.1visitJoshamee': QuestDNA(obsolete=False, questInt=3488, tasks=(VisitTaskDNA(npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r1.2visitBenedek': QuestDNA(obsolete=False, questInt=3489, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.BENEDEK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r1.3recoverEffects': QuestDNA(obsolete=False, questInt=3490, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.PersonalEffects, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2r2.4smuggleRum': QuestDNA(obsolete=False, questInt=3496, tasks=(SmuggleItemTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, item=QuestItems.RumBarrel, num=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2r2.5smuggleHoney': QuestDNA(obsolete=False, questInt=3497, tasks=(SmuggleItemTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, item=QuestItems.Honey, num=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2r2.6smuggleCinnamon': QuestDNA(obsolete=False, questInt=3498, tasks=(SmuggleItemTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, item=QuestItems.Cinnamon, num=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2.1visitFernando': QuestDNA(obsolete=False, questInt=3491, tasks=(VisitTaskDNA(location=LocationIds.SKULLSTHUNDER_TAVERN, npcId=NPCIds.FERNANDO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2.1fernandoChores': QuestDNA(obsolete=False, questInt=3889, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_CENTURION, num=2, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2.2fernandoChores': QuestDNA(obsolete=False, questInt=3890, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_IRONWALL, num=2, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2.3fernandoChores': QuestDNA(obsolete=False, questInt=3891, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.SKEL_PHANTOM, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2r2.1sinkNavyShips': QuestDNA(obsolete=False, questInt=3492, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, num=5, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2r2.2sinkEITCShips': QuestDNA(obsolete=False, questInt=3493, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.TradingCo, num=5, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r1r31r2r2.3sinkSkeletonShips': QuestDNA(obsolete=False, questInt=3494, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Undead, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.1visitFabiola': QuestDNA(obsolete=False, questInt=3550, tasks=(VisitTaskDNA(npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.2visitOrinda': QuestDNA(obsolete=False, questInt=3551, tasks=(VisitTaskDNA(location=LocationIds.TORTUGA_ISLAND, npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.3captureReginald': QuestDNA(obsolete=False, questInt=3552, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_REGINALD, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_MAN_O_WAR, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.4maroonReginald': QuestDNA(obsolete=False, questInt=3553, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_REGINALD),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.5captureDennison': QuestDNA(obsolete=False, questInt=3554, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_DENNISON, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.6maroonDennison': QuestDNA(obsolete=False, questInt=3555, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_DENNISON),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.7captureHedley': QuestDNA(obsolete=False, questInt=3556, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_HEDLEY, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.8maroonHedley': QuestDNA(obsolete=False, questInt=3557, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_HEDLEY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.9captureBiggleton': QuestDNA(obsolete=False, questInt=3558, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_BIGGLETON, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_WARSHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.10maroonBiggleton': QuestDNA(obsolete=False, questInt=3559, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_BIGGLETON),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.11captureNorman': QuestDNA(obsolete=False, questInt=3560, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_NORMAN, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_WARSHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.12maroonNorman': QuestDNA(obsolete=False, questInt=3561, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_NORMAN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.13captureFitzpatrick': QuestDNA(obsolete=False, questInt=3562, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_FITZPATRICK, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.14maroonFitzpatrick': QuestDNA(obsolete=False, questInt=3563, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_FITZPATRICK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.15captureHamilton': QuestDNA(obsolete=False, questInt=3564, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_HAMILTON, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.16maroonHamilton': QuestDNA(obsolete=False, questInt=3565, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_HAMILTON),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.17visitJohn': QuestDNA(obsolete=False, questInt=3566, tasks=(VisitTaskDNA(npcId=NPCIds.BRONZE_JOHN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.18recoverRum': QuestDNA(obsolete=False, questInt=3567, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BRONZE_JOHN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.19visitMary': QuestDNA(obsolete=False, questInt=3568, tasks=(VisitTaskDNA(location=LocationIds.PERDIDA_JUNGLE_B, npcId=NPCIds.SCARY_MARY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.20.5recoverBelongings': QuestDNA(obsolete=False, questInt=3573, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.PERDIDA_JUNGLE_B, item=QuestItems.PersonalEffects, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.21visitJoshamee': QuestDNA(obsolete=False, questInt=3574, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.5visitWoodruff': QuestDNA(obsolete=False, questInt=3707, tasks=(VisitTaskDNA(location=LocationIds.ISLA_CANGREJOS, npcId=NPCIds.WOODRUFF),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r6.1woodruffsRequest': QuestDNA(obsolete=False, questInt=3709, tasks=(DefeatTaskDNA(location=LocationIds.ISLA_CANGREJOS, enemyType=AvatarTypes.CrusherCrab, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r6.2woodruffsRequest': QuestDNA(obsolete=False, questInt=3710, tasks=(DefeatNPCTaskDNA(location=LocationIds.ISLA_CANGREJOS, npcId=NPCIds.CROQUETTES_DE_CRABE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.7woodruffsRequest': QuestDNA(obsolete=False, questInt=3711, questLink='c3r3r2.19visitMary', tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r20.1waspIssues': QuestDNA(obsolete=False, questInt=3712, tasks=(DefeatTaskDNA(location=LocationIds.PERDIDA_ALL, enemyType=AvatarTypes.AngryWasp, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r20.2waspIssues': QuestDNA(obsolete=False, questInt=3713, tasks=(DefeatTaskDNA(location=LocationIds.PERDIDA_ALL, enemyType=AvatarTypes.SoldierWasp, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.22captureDennison': QuestDNA(obsolete=False, questInt=3721, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_DENNISON, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BARRACUDA, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2.23maroonDennison': QuestDNA(obsolete=False, questInt=3722, questLink='c3r3r2.20.5recoverBelongings', tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_DENNISON),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r21.1maryRevenge': QuestDNA(obsolete=False, questInt=3732, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_KINGFISHER, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r21.2maryRevenge': QuestDNA(obsolete=False, questInt=3733, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_MARAUDER, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r21.3maryRevenge': QuestDNA(obsolete=False, questInt=3734, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.SKEL_REVENANT, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r24.1missingTreasure': QuestDNA(obsolete=False, questInt=3740, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PERDIDA_JUNGLE_B, item=QuestItems.Charm, num=14, enemyType=AvatarTypes.SoldierWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r24.2missingTreasure': QuestDNA(obsolete=False, questInt=3741, tasks=(RecoverNPCItemTaskDNA(location=LocationIds.PERDIDA_JUNGLE_B, item=QuestItems.GoldChain, npcId=NPCIds.HIVE_QUEEN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARY_MARY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r20.1sinkNavy': QuestDNA(obsolete=False, questInt=3569, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_WARSHIP, faction=AvatarTypes.Navy, num=10, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r20.2sinkEITC': QuestDNA(obsolete=False, questInt=3570, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.TradingCo, num=10, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r2r20.3sinkSkeleton': QuestDNA(obsolete=False, questInt=3571, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Undead, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7.4recoverWater': QuestDNA(obsolete=False, questInt=3615, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Water, num=6, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r5.1visitMallet': QuestDNA(obsolete=False, questInt=3616, tasks=(VisitTaskDNA(npcId=NPCIds.MALLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r5.2bribeMallet': QuestDNA(obsolete=False, questInt=3617, tasks=(BribeNPCTaskDNA(npcId=NPCIds.MALLET, gold=Bribes.MEDIUM, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r5.3deliverWater': QuestDNA(obsolete=False, questInt=3618, tasks=(DeliverItemTaskDNA(item=QuestItems.Water, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r6.1visitScarlet': QuestDNA(obsolete=False, questInt=3619, tasks=(VisitTaskDNA(npcId=NPCIds.SCARLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r6.2recoverHoneysuckle': QuestDNA(obsolete=False, questInt=3620, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Honeysuckle, num=18, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r6.3deliverHoneysuckle': QuestDNA(obsolete=False, questInt=3621, tasks=(DeliverItemTaskDNA(item=QuestItems.Honeysuckle, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r7.1visitBowdash': QuestDNA(obsolete=False, questInt=3622, tasks=(VisitTaskDNA(npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r7.2poker': QuestDNA(obsolete=False, questInt=3623, tasks=(PokerTaskDNA(gold=PokerPots.MEDIUM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r7.3recoverSap': QuestDNA(obsolete=False, questInt=3624, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Sap, num=5, enemyType=AvatarTypes.Undead, level=12, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r7.4deliverSap': QuestDNA(obsolete=False, questInt=3625, tasks=(DeliverItemTaskDNA(item=QuestItems.Sap, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.11deliverChest': QuestDNA(obsolete=False, questInt=3340, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Chest, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r12.1lastKey': QuestDNA(obsolete=False, questInt=3342, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.Cadaver, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r12.2lastKey': QuestDNA(obsolete=False, questInt=3343, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.CadaverCutlass, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r12.3lastKey': QuestDNA(obsolete=False, questInt=3344, tasks=(RecoverNPCItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, item=QuestItems.Key, npcId=NPCIds.BONERATTLER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.1visitCarver': QuestDNA(obsolete=False, questInt=3600, questLink='c3r3r3.3visitGiladoga', tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.2visitMcVane': QuestDNA(obsolete=False, questInt=3601, tasks=(VisitTaskDNA(npcId=NPCIds.JOHNNY_MCVANE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.3visitGiladoga': QuestDNA(obsolete=False, questInt=3602, questLink='c3r3r3.4keyDelivery', tasks=(VisitTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.4deliverKey': QuestDNA(obsolete=False, questInt=3603, tasks=(DeliverItemTaskDNA(item=QuestItems.Key, num=1, npcId=NPCIds.BLACKSMITH_FLINTY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BLACKSMITH_FLINTY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.5bribeFlinty': QuestDNA(obsolete=False, questInt=3604, tasks=(BribeNPCTaskDNA(npcId=NPCIds.BLACKSMITH_FLINTY, gold=Bribes.SMALL, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.6deliverKey': QuestDNA(obsolete=False, questInt=3605, tasks=(DeliverItemTaskDNA(item=QuestItems.Key, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.8deliverKey': QuestDNA(obsolete=False, questInt=3626, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.10recoverChest': QuestDNA(obsolete=False, questInt=3694, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_STORM_REAPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.11visitJack': QuestDNA(obsolete=False, questInt=3695, tasks=(VisitTaskDNA(npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.12recoverKey': QuestDNA(obsolete=False, questInt=3696, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Key, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.13deliverKey': QuestDNA(obsolete=False, questInt=3697, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.14visitJoshamee': QuestDNA(obsolete=False, questInt=3698, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.4keyDelivery': QuestDNA(obsolete=False, questInt=3757, tasks=(DeliverItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.Key, num=1, npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.5romanysRequestA': QuestDNA(obsolete=False, questInt=3759, tasks=(RecoverShipItemTaskDNA(item=QuestItems.WaterBarrel, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_REVENANT, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.7romanysRequestC': QuestDNA(obsolete=False, questInt=3760, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BrassInstrument, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_MONARCH, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r6.1romanysRequestB': QuestDNA(obsolete=False, questInt=3762, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.WaterFlask, num=6, enemyType=AvatarTypes.Officer, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r6.2romanysRequestB': QuestDNA(obsolete=False, questInt=3763, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.GatorStomach, num=15, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r6.3romanysRequestB': QuestDNA(obsolete=False, questInt=3764, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.BileSack, num=15, enemyType=AvatarTypes.RancidFlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.8visitFernando': QuestDNA(obsolete=False, questInt=3765, tasks=(VisitTaskDNA(location=LocationIds.SKULLSTHUNDER_TAVERN, npcId=NPCIds.FERNANDO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.9winAtPoker': QuestDNA(obsolete=False, questInt=3766, tasks=(PokerTaskDNA(gold=PokerPots.MEDIUM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FERNANDO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r10.1fernandosRequest': QuestDNA(obsolete=False, questInt=3768, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.Carrion, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FERNANDO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r10.2fernandosRequest': QuestDNA(obsolete=False, questInt=3769, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.Cadaver, num=3, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FERNANDO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r10.3fernandosRequest': QuestDNA(obsolete=False, questInt=3770, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.CarrionKnife, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FERNANDO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3.11deliverToRomany': QuestDNA(obsolete=False, questInt=3771, questLink='c3r3r3.8deliverKey', tasks=(DeliverItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.ForgivenessLetter, num=1, npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r1.1visitOrinda': QuestDNA(obsolete=False, questInt=3606, tasks=(VisitTaskDNA(npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r1.2recoverWater': QuestDNA(obsolete=False, questInt=3607, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Water, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r1.3deliverWater': QuestDNA(obsolete=False, questInt=3608, tasks=(DeliverItemTaskDNA(item=QuestItems.Water, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r2.1visitCarver': QuestDNA(obsolete=False, questInt=3609, tasks=(VisitTaskDNA(npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r2.2recoverWater': QuestDNA(obsolete=False, questInt=3610, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.LatrineWater, num=15, enemyType=AvatarTypes.Cadet, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r2.3deliverWater': QuestDNA(obsolete=False, questInt=3611, tasks=(DeliverItemTaskDNA(item=QuestItems.Water, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r3.1visitBenedek': QuestDNA(obsolete=False, questInt=3612, tasks=(VisitTaskDNA(npcId=NPCIds.BENEDEK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r3.2recoverWater': QuestDNA(obsolete=False, questInt=3613, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Water, num=1, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r7r3.3deliverWater': QuestDNA(obsolete=False, questInt=3614, tasks=(DeliverItemTaskDNA(item=QuestItems.Water, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1.1visitCraven': QuestDNA(obsolete=False, questInt=3627, tasks=(VisitTaskDNA(npcId=NPCIds.BASTIEN_CRAVEN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1.2visitFlatts': QuestDNA(obsolete=False, questInt=3628, tasks=(VisitTaskDNA(npcId=NPCIds.BEN_FLATTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1.3sinkNavyShips': QuestDNA(obsolete=False, questInt=3629, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, num=12, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1.4deliverRum': QuestDNA(obsolete=False, questInt=3630, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBarrel, num=1, npcId=NPCIds.GRAHAM_MARSH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GRAHAM_MARSH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1.5deliverMoney': QuestDNA(obsolete=False, questInt=3631, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.BEN_FLATTS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BEN_FLATTS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1.6deliverKey': QuestDNA(obsolete=False, questInt=3632, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1.1visitGarrett': QuestDNA(obsolete=False, questInt=3772, tasks=(VisitTaskDNA(location=LocationIds.GARRETTS_HOUSE, npcId=NPCIds.GARRETT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1r2.1garrettsRequest': QuestDNA(obsolete=False, questInt=3774, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_MARAUDER, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARRETT,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1r2.2garrettsRequest': QuestDNA(obsolete=False, questInt=3775, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_BARRACUDA, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARRETT,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r1r2.3garrettsRequest': QuestDNA(obsolete=False, questInt=3776, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_MAN_O_WAR, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARRETT,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.1visitMallet': QuestDNA(obsolete=False, questInt=3633, tasks=(VisitTaskDNA(npcId=NPCIds.MALLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.2visitBenedek': QuestDNA(obsolete=False, questInt=3634, tasks=(VisitTaskDNA(npcId=NPCIds.BENEDEK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.3recoverChest': QuestDNA(obsolete=False, questInt=3635, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.4deliverFabiola': QuestDNA(obsolete=False, questInt=3636, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.6deliverGold': QuestDNA(obsolete=False, questInt=3642, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.BENEDEK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.7recoverCoins': QuestDNA(obsolete=False, questInt=3643, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.CoinBag, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.8blackjack': QuestDNA(obsolete=False, questInt=3644, tasks=(BlackjackTaskDNA(gold=PokerPots.MEDIUM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BENEDEK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.9deliverKey': QuestDNA(obsolete=False, questInt=3645, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.1visitRico': QuestDNA(obsolete=False, questInt=3777, tasks=(VisitTaskDNA(location=LocationIds.SKULLSTHUNDER_TAVERN, npcId=NPCIds.RICO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.2ricosRequest': QuestDNA(obsolete=False, questInt=3778, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_OGRE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.RICO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.3visitPelagia': QuestDNA(obsolete=False, questInt=3779, tasks=(VisitTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, npcId=NPCIds.PELAGIA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2r4.1pelagiasRequest': QuestDNA(obsolete=False, questInt=3781, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, item=QuestItems.Kneecap, num=10, enemyType=AvatarTypes.CarrionKnife, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2r4.2pelagiasRequest': QuestDNA(obsolete=False, questInt=3782, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, item=QuestItems.SkeletonRib, num=5, enemyType=AvatarTypes.Cadaver, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2r4.3pelagiasRequest': QuestDNA(obsolete=False, questInt=3783, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, item=QuestItems.PinkyRing, num=5, enemyType=AvatarTypes.CadaverCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.5deliverItem': QuestDNA(obsolete=False, questInt=3784, tasks=(DeliverItemTaskDNA(location=LocationIds.SKULLSTHUNDER_TAVERN, item=QuestItems.PinkyRing, num=5, npcId=NPCIds.RICO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.RICO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.6recoverSome': QuestDNA(obsolete=False, questInt=3785, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.Gems, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.RICO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2.7winAtBlackjack': QuestDNA(obsolete=False, questInt=3786, questLink='c3r3r3r9r2.9deliverKey', tasks=(BlackjackTaskDNA(gold=PokerPots.SMALL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.RICO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2r5.1recoverHair': QuestDNA(obsolete=False, questInt=3637, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hair, num=5, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2r5.2recoverTears': QuestDNA(obsolete=False, questInt=3638, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tear, num=3, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2r5.3recoverBlood': QuestDNA(obsolete=False, questInt=3639, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=2, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r2r5.4recoverGuano': QuestDNA(obsolete=False, questInt=3640, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatGuano, num=10, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.1visitBowdash': QuestDNA(obsolete=False, questInt=3646, tasks=(VisitTaskDNA(npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.2capturePenrod': QuestDNA(obsolete=False, questInt=3647, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.PENROD, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_WARSHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.3maroonPenrod': QuestDNA(obsolete=False, questInt=3648, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.PENROD),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.4deliverGold': QuestDNA(obsolete=False, questInt=3649, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.5sinkNavyShips': QuestDNA(obsolete=False, questInt=3650, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, num=6, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.6poker': QuestDNA(obsolete=False, questInt=3651, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.7deliverKey': QuestDNA(obsolete=False, questInt=3652, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.1visitDuchamps': QuestDNA(obsolete=False, questInt=3787, tasks=(VisitTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.2capturePenrodNew': QuestDNA(obsolete=False, questInt=3788, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.PENROD, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_MAN_O_WAR, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.3maroonPenrodNew': QuestDNA(obsolete=False, questInt=3789, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.PENROD),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.4deliverMoney': QuestDNA(obsolete=False, questInt=3790, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Money, num=1, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3r5.1duchampsRequest': QuestDNA(obsolete=False, questInt=3792, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_MONARCH, num=4, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3r5.2duchampsRequest': QuestDNA(obsolete=False, questInt=3793, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_MAN_O_WAR, num=2, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3r5.3duchampsRequest': QuestDNA(obsolete=False, questInt=3794, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_PREDATOR, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r3.6winAtPoker': QuestDNA(obsolete=False, questInt=3795, questLink='c3r3r3r9r3.7deliverKey', tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DUCHAMPS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.1recoverChest': QuestDNA(obsolete=False, questInt=3653, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Chest, num=1, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.2visitFabiola': QuestDNA(obsolete=False, questInt=3654, tasks=(VisitTaskDNA(npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.4deliverList': QuestDNA(obsolete=False, questInt=3659, tasks=(DeliverItemTaskDNA(item=QuestItems.List, num=1, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.5visitCarver': QuestDNA(obsolete=False, questInt=3660, tasks=(VisitTaskDNA(npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.6bribeCarver': QuestDNA(obsolete=False, questInt=3661, tasks=(BribeNPCTaskDNA(npcId=NPCIds.CARVER, gold=Bribes.SMALL, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.7deliverRum': QuestDNA(obsolete=False, questInt=3662, tasks=(DeliverItemTaskDNA(item=QuestItems.Rum, num=1, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.8visitCarver': QuestDNA(obsolete=False, questInt=3663, tasks=(VisitTaskDNA(npcId=NPCIds.CARVER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.9bribeCarver': QuestDNA(obsolete=False, questInt=3664, tasks=(BribeNPCTaskDNA(npcId=NPCIds.CARVER, gold=Bribes.LARGE, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.10deliverRum': QuestDNA(obsolete=False, questInt=3665, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBottle, num=1, npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOC_GROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.11deliverOil': QuestDNA(obsolete=False, questInt=3666, tasks=(DeliverItemTaskDNA(item=QuestItems.Oil, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.12deliverKey': QuestDNA(obsolete=False, questInt=3667, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4r3.1openChest': QuestDNA(obsolete=False, questInt=3724, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.Dagger, num=12, enemyType=AvatarTypes.Hiredgun, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4r3.2openChest': QuestDNA(obsolete=False, questInt=3725, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.Sword, num=12, enemyType=AvatarTypes.Officer, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4r3.3openChest': QuestDNA(obsolete=False, questInt=3726, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.BrassButton, num=6, enemyType=AvatarTypes.Mercenary, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.1recoverChestNew': QuestDNA(obsolete=False, questInt=3758, tasks=(RecoverNPCItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.Chest, npcId=NPCIds.DREADTOOTH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4.2deliverChest': QuestDNA(obsolete=False, questInt=3796, tasks=(DeliverItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.Chest, num=1, npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4r3.1recoverCologne': QuestDNA(obsolete=False, questInt=3655, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Perfume, num=5, enemyType=AvatarTypes.Navy, level=15, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4r3.2recoverOil': QuestDNA(obsolete=False, questInt=3656, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Oil, num=10, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r4r3.3recoverBile': QuestDNA(obsolete=False, questInt=3657, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bile, num=12, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5.1visitPelagia': QuestDNA(obsolete=False, questInt=3641, tasks=(VisitTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, npcId=NPCIds.PELAGIA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5.1visitGrog': QuestDNA(obsolete=False, questInt=3668, tasks=(VisitTaskDNA(npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5.3deliverMemoryCure': QuestDNA(obsolete=False, questInt=3672, questLink='c3r3r3r9r5.4recoverKey', tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.MemoryCure, num=1, npcId=NPCIds.MORRIS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5.3deliverRemedy': QuestDNA(obsolete=False, questInt=3673, tasks=(DeliverItemTaskDNA(item=QuestItems.Remedy, num=1, npcId=NPCIds.RETAVICK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.RETAVICK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5.4recoverKey': QuestDNA(obsolete=False, questInt=3674, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Key, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_STORM_REAPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5.5deliverKey': QuestDNA(obsolete=False, questInt=3675, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5r2.1cureMemory': QuestDNA(obsolete=False, questInt=3797, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, containerId=PropIds.KH_HAYSTACKS, item=QuestItems.Hay, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5r2.2cureMemory': QuestDNA(obsolete=False, questInt=3798, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.KINGSHEAD_ALL, item=QuestItems.MedicineKit, num=16, enemyType=AvatarTypes.Officer, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5r2.3cureMemory': QuestDNA(obsolete=False, questInt=3799, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.KINGSHEAD_ALL, item=QuestItems.HerbSack, num=10, enemyType=AvatarTypes.Mercenary, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5r2.1recoverTeeth': QuestDNA(obsolete=False, questInt=3669, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tooth, num=12, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5r2.2recoverVenom': QuestDNA(obsolete=False, questInt=3670, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Venom, num=3, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r5r2.3recoverSap': QuestDNA(obsolete=False, questInt=3671, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Sap, num=6, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r6.2adoriasRequest': QuestDNA(obsolete=False, questInt=3315, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, enemyType=AvatarTypes.Cadaver, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r6.1adoriasRequest': QuestDNA(obsolete=False, questInt=3331, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, enemyType=AvatarTypes.CadaverCutlass, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r6.1visitAdoria': QuestDNA(obsolete=False, questInt=3330, tasks=(VisitTaskDNA(location=LocationIds.DOLORES_TAILOR, npcId=NPCIds.ADORIA_DOLORES),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r6.1visitAnne': QuestDNA(obsolete=False, questInt=3676, tasks=(VisitTaskDNA(npcId=NPCIds.SEAMSTRESS_ANNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r6.2defeatSkeletons': QuestDNA(obsolete=False, questInt=3677, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_JUNGLE_A_GRAVEYARD, enemyType=AvatarTypes.Undead, num=20, level=7),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SEAMSTRESS_ANNE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r6.3deliverKey': QuestDNA(obsolete=False, questInt=3678, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.1visitMercedes': QuestDNA(obsolete=False, questInt=3332, tasks=(VisitTaskDNA(location=LocationIds.CORAZON_TATTOOS, npcId=NPCIds.MERCEDES_CORAZON),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.2captureCollierNew': QuestDNA(obsolete=False, questInt=3333, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.COLLIER, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_OGRE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.3maroonCollierNew': QuestDNA(obsolete=False, questInt=3334, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.COLLIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.4deliverNecklaceNew': QuestDNA(obsolete=False, questInt=3335, questLink='c3r3r3r9r7.6deliverKey', tasks=(DeliverItemTaskDNA(location=LocationIds.CORAZON_TATTOOS, item=QuestItems.Necklace, num=1, npcId=NPCIds.MERCEDES_CORAZON),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MERCEDES_CORAZON,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.1visitScarlet': QuestDNA(obsolete=False, questInt=3679, tasks=(VisitTaskDNA(npcId=NPCIds.SCARLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.2captureCollier': QuestDNA(obsolete=False, questInt=3680, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.COLLIER, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.3maroonCollier': QuestDNA(obsolete=False, questInt=3681, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.COLLIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.4deliverNecklace': QuestDNA(obsolete=False, questInt=3682, tasks=(DeliverItemTaskDNA(item=QuestItems.Necklace, num=1, npcId=NPCIds.SCARLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.5bribeScarlet': QuestDNA(obsolete=False, questInt=3683, tasks=(BribeNPCTaskDNA(npcId=NPCIds.SCARLET, gold=Bribes.LARGE, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r7.6deliverKey': QuestDNA(obsolete=False, questInt=3684, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.1recoverOrdersNew': QuestDNA(obsolete=False, questInt=3336, questLink='c3r3r3r9r8.2visitPauper', tasks=(RecoverShipItemTaskDNA(item=QuestItems.EnlistmentOrder, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_MAN_O_WAR, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.2visitPauper': QuestDNA(obsolete=False, questInt=3337, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.EnlistmentOrder, num=3, npcId=NPCIds.PAUPER_PEDRO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.3paupersRequest': QuestDNA(obsolete=False, questInt=3338, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.Salve, num=12, enemyType=AvatarTypes.Mercenary, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PAUPER_PEDRO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.4recoverKey': QuestDNA(obsolete=False, questInt=3339, questLink='c3r3r3r9r8.9deliverKey', tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.Key, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.1recoverOrders': QuestDNA(obsolete=False, questInt=3685, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Orders, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_WARSHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.2visitBlakeley': QuestDNA(obsolete=False, questInt=3686, tasks=(VisitTaskDNA(npcId=NPCIds.BLAKELEY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.3visitWoodruff': QuestDNA(obsolete=False, questInt=3687, tasks=(VisitTaskDNA(npcId=NPCIds.WOODRUFF),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.4recoverSalve': QuestDNA(obsolete=False, questInt=3688, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Salve, num=12, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.5deliverWax': QuestDNA(obsolete=False, questInt=3689, tasks=(DeliverItemTaskDNA(item=QuestItems.Wax, num=1, npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FABIOLA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.6bribeFabiola': QuestDNA(obsolete=False, questInt=3690, tasks=(BribeNPCTaskDNA(npcId=NPCIds.FABIOLA, gold=Bribes.MEDIUM, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.7deliverKey': QuestDNA(obsolete=False, questInt=3691, tasks=(DeliverItemTaskDNA(item=QuestItems.Key, num=1, npcId=NPCIds.WOODRUFF),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.8recoverKey': QuestDNA(obsolete=False, questInt=3692, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Key, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r3r9r8.9deliverKey': QuestDNA(obsolete=False, questInt=3693, tasks=(DeliverItemTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, item=QuestItems.Key, num=1, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GILADOGA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r6r1r2.1recoverBeams': QuestDNA(obsolete=False, questInt=3737, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Beam, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_WARSHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r6r1r2.2recoverBolts': QuestDNA(obsolete=False, questInt=3738, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Bolt, num=8, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r6r1.1needMoreFood': QuestDNA(obsolete=False, questInt=3362, questLink='c3r3r4r6r1r2.MastMaterials', tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DRIFTWOOD_ISLAND, item=QuestItems.Meat, num=20, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r6r1r2.1mastMaterials': QuestDNA(obsolete=False, questInt=3364, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Bowsprit, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_STORM_REAPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r6r1r2.2mastMaterials': QuestDNA(obsolete=False, questInt=3365, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Steelband, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_REVENANT, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r6r1.1recoverMeat': QuestDNA(obsolete=False, questInt=3736, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=20, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r8.1sailMaterials': QuestDNA(obsolete=False, questInt=3367, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.KINGSHEAD_ALL, item=QuestItems.Rope, num=12, enemyType=AvatarTypes.Mercenary, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r8.2sailMaterials': QuestDNA(obsolete=False, questInt=3368, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.KINGSHEAD_ALL, item=QuestItems.ClothPiece, num=14, enemyType=AvatarTypes.Dragoon, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r9.1shipArmor': QuestDNA(obsolete=False, questInt=3370, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Cannon, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_WARLORD, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r9.2shipFigure': QuestDNA(obsolete=False, questInt=3371, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Figure, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_BLACK_HARBINGER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.10recoverRum': QuestDNA(obsolete=False, questInt=3372, questLink='c3r3r4r11.DavyJonesArmy', tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_PREDATOR, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r11.1davyJonesArmy': QuestDNA(obsolete=False, questInt=3374, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_ALL, enemyType=AvatarTypes.Drip, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r11.2davyJonesArmy': QuestDNA(obsolete=False, questInt=3375, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_CAVE_B, enemyType=AvatarTypes.Drizzle, num=3, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r11.3davyJonesArmy': QuestDNA(obsolete=False, questInt=3376, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.TORMENTA_CAVE_B, item=QuestItems.Rudder, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.1visitBowdash': QuestDNA(obsolete=False, questInt=3700, tasks=(VisitTaskDNA(npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.2visitSmith': QuestDNA(obsolete=False, questInt=3701, tasks=(VisitTaskDNA(location=LocationIds.DRIFTWOOD_ISLAND, npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.3.5visitSmith': QuestDNA(obsolete=False, questInt=3714, tasks=(VisitTaskDNA(npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.4.5visitSmith': QuestDNA(obsolete=False, questInt=3727, tasks=(VisitTaskDNA(npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.5.5visitSmith': QuestDNA(obsolete=False, questInt=3735, tasks=(VisitTaskDNA(npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.7visitSmith': QuestDNA(obsolete=False, questInt=3742, tasks=(VisitTaskDNA(npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.8recoverSails': QuestDNA(obsolete=False, questInt=3743, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Sailcloth, num=10, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.9recoverRopes': QuestDNA(obsolete=False, questInt=3744, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Rope, num=8, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.10recoverCannons': QuestDNA(obsolete=False, questInt=3745, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Cannon, num=2, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_WARSHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.11recoverFigure': QuestDNA(obsolete=False, questInt=3746, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Figure, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.12recoverRum': QuestDNA(obsolete=False, questInt=3747, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=10, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.12.5visitBowdash': QuestDNA(obsolete=False, questInt=3748, tasks=(VisitTaskDNA(npcId=NPCIds.BOWDASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.12.51recoverKey': QuestDNA(obsolete=False, questInt=3749, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Key, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.BOWDASH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.12.52visitSmith': QuestDNA(obsolete=False, questInt=3750, tasks=(VisitTaskDNA(npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4.13visitJoshamee': QuestDNA(obsolete=False, questInt=3751, tasks=(VisitTaskDNA(npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1.1shipMaterials': QuestDNA(obsolete=False, questInt=3345, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_MARAUDER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1.2needFood': QuestDNA(obsolete=False, questInt=3346, questLink='c3r3r4r3r1r3.StarboardMaterials', tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DRIFTWOOD_ISLAND, item=QuestItems.Meat, num=10, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1r3.1starboardMaterials': QuestDNA(obsolete=False, questInt=3348, tasks=(RecoverShipItemTaskDNA(item=QuestItems.NailBox, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_MONARCH, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1r3.2starboardMaterials': QuestDNA(obsolete=False, questInt=3349, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BoltPack, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_MAN_O_WAR, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1.1recoverMeat': QuestDNA(obsolete=False, questInt=3702, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=15, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1r2.1recoverWood': QuestDNA(obsolete=False, questInt=3703, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=20, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1r2.2recoverNails': QuestDNA(obsolete=False, questInt=3704, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Nail, num=12, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1r2.3recoverNails': QuestDNA(obsolete=False, questInt=3705, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Nail, num=8, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r3r1r2.4recoverPitch': QuestDNA(obsolete=False, questInt=3706, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.NAVY_BARRELS, item=QuestItems.Pitch, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1r2.1portHullMaterials': QuestDNA(obsolete=False, questInt=3355, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BARRACUDA, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1r2.2portHullMaterials': QuestDNA(obsolete=False, questInt=3356, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.KINGSHEAD_ALL, containerId=PropIds.KH_BARRELS, item=QuestItems.Pitch, num=16, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1r2.3portHullMaterials': QuestDNA(obsolete=False, questInt=3357, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.KINGSHEAD_ALL, containerId=PropIds.KH_CRATES, item=QuestItems.Wire, num=16, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1.1recoverMeat': QuestDNA(obsolete=False, questInt=3715, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=15, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1r2.1recoverWood': QuestDNA(obsolete=False, questInt=3716, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=30, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1r2.2recoverNails': QuestDNA(obsolete=False, questInt=3717, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Nail, num=16, enemyType=AvatarTypes.Undead, level=7, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1r2.3recoverBeams': QuestDNA(obsolete=False, questInt=3718, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Beam, num=8, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r4r1r2.4recoverBolts': QuestDNA(obsolete=False, questInt=3719, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Bolt, num=6, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r5r1r2.1recoverWood': QuestDNA(obsolete=False, questInt=3729, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=20, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r5r1r2.2recoverNails': QuestDNA(obsolete=False, questInt=3730, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Nail, num=10, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r5r1.1needMoreFood': QuestDNA(obsolete=False, questInt=3358, questLink='c3r3r4r5r1r2.CabinMaterials', tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DRIFTWOOD_ISLAND, item=QuestItems.Meat, num=15, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r5r1r2.1cabinMaterials': QuestDNA(obsolete=False, questInt=3360, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_OGRE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r5r1r2.2cabinMaterials': QuestDNA(obsolete=False, questInt=3361, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Beam, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_PREDATOR, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'c3r3r4r5r1.1recoverMeat': QuestDNA(obsolete=False, questInt=3728, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=15, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5r1.1acquireCopper': QuestDNA(obsolete=False, questInt=2309, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CopperRod, num=4, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ERASMUS_GRIMSDITCH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5r1.2acquireGunPowder': QuestDNA(obsolete=False, questInt=2310, tasks=(RecoverShipItemTaskDNA(item=QuestItems.GunPowder, num=4, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ERASMUS_GRIMSDITCH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5r1.3defeatAlligatorBoss': QuestDNA(obsolete=False, questInt=2311, tasks=(DefeatNPCTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, npcId=NPCIds.DREADTOOTH),), rewards=(ReputationReward(amount=ExpRewards.SMALL), PistolUpgradeReward(amount=ItemId.PISTOL_L5)), returnGiverIds=(NPCIds.ERASMUS_GRIMSDITCH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5.1visitErasmus': QuestDNA(obsolete=False, questInt=2302, tasks=(VisitTaskDNA(npcId=NPCIds.ERASMUS_GRIMSDITCH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(DidQuest(questIds=('at1.0visitThayer',)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5.2acquirePistolParts': QuestDNA(obsolete=False, questInt=2303, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUTTHROAT_ISLAND, item=QuestItems.SpanishPistolComponent, num=6, enemyType=AvatarTypes.Spanish, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ERASMUS_GRIMSDITCH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5.3visitDelilah': QuestDNA(obsolete=False, questInt=2304, tasks=(VisitTaskDNA(npcId=NPCIds.DELILAH_DUNSMORE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5.4defeatFormerLove': QuestDNA(obsolete=False, questInt=2305, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.SAMUEL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5.5findGems': QuestDNA(obsolete=False, questInt=2306, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Gems, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DELILAH_DUNSMORE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5.6acquireWoodStocks': QuestDNA(obsolete=False, questInt=2307, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, item=QuestItems.GunStock, num=8, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pul5.7deliverToErasmus': QuestDNA(obsolete=False, questInt=2308, tasks=(VisitTaskDNA(npcId=NPCIds.ERASMUS_GRIMSDITCH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r1.1acquireArmor': QuestDNA(obsolete=False, questInt=2358, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUTTHROAT_ISLAND, item=QuestItems.SpanishArmor, num=1, enemyType=AvatarTypes.Spanish, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r1.2acquireHair': QuestDNA(obsolete=False, questInt=2359, tasks=(RecoverShipItemTaskDNA(item=QuestItems.LockOfHair, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r1.3findEarring': QuestDNA(obsolete=False, questInt=2360, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Earring, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r2.1defeatUndead': QuestDNA(obsolete=False, questInt=2361, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Muck, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r2.2defeatGeneralBloodless': QuestDNA(obsolete=False, questInt=2362, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.GENERAL_BLOODLESS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r3.1defeatUndead': QuestDNA(obsolete=False, questInt=2363, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Corpse, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r3.2defeatGeneralHex': QuestDNA(obsolete=False, questInt=2364, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.GENERAL_HEX),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r4.1defeatUndead': QuestDNA(obsolete=False, questInt=2365, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, enemyType=AvatarTypes.Corpse, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r4.2defeatGeneralSandspine': QuestDNA(obsolete=False, questInt=2366, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.GENERAL_SANDSPINE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r5.1defeatUndead': QuestDNA(obsolete=False, questInt=2367, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Carrion, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5r5.2defeatGeneralDarkhart': QuestDNA(obsolete=False, questInt=2368, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.GENERAL_DARKHART),), rewards=(ReputationReward(amount=ExpRewards.SMALL), DollUpgradeReward(amount=ItemId.DOLL_L5)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdul5.1visitTia': QuestDNA(obsolete=False, questInt=2357, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(DidQuest(questIds=('vdu4.0visitTiaDalma',)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5r1.1acquireSailcloth': QuestDNA(obsolete=False, questInt=2404, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Sailcloth, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5r1.2acquireWoodPlanks': QuestDNA(obsolete=False, questInt=2405, tasks=(RecoverShipItemTaskDNA(item=QuestItems.WoodenPlates, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5r1.3acquireRopes': QuestDNA(obsolete=False, questInt=2406, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Rope, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5r1.4acquireRigging': QuestDNA(obsolete=False, questInt=2407, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Spar, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5r2.1findNavySteel': QuestDNA(obsolete=False, questInt=2411, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, containerId=PropIds.KH_CRATES, item=QuestItems.NavySteel, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PHILLIP_FULLER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5r2.2acquireBoneHandle': QuestDNA(obsolete=False, questInt=2412, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneHandle, num=1, enemyType=AvatarTypes.Corpse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PHILLIP_FULLER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5.1visitBalthasar': QuestDNA(obsolete=False, questInt=2403, tasks=(VisitTaskDNA(npcId=NPCIds.BALTHASAR),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(DidQuest(questIds=('wt1.visitWillTurner',)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5.2visitMiguel': QuestDNA(obsolete=False, questInt=2408, tasks=(VisitTaskDNA(npcId=NPCIds.MIGUEL_MONTOYA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5.3defeatUndeadFrench': QuestDNA(obsolete=False, questInt=2409, tasks=(DefeatTaskDNA(location=LocationIds.ISLA_CANGREJOS, enemyType=AvatarTypes.French, num=6, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MIGUEL_MONTOYA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5.4visitPhillip': QuestDNA(obsolete=False, questInt=2410, tasks=(VisitTaskDNA(npcId=NPCIds.PHILLIP_FULLER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5.5defeatBossScorpion': QuestDNA(obsolete=False, questInt=2413, tasks=(DefeatNPCTaskDNA(location=LocationIds.RUMRUNNER_ISLE, npcId=NPCIds.VENOM_LASH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5.6visitGrog': QuestDNA(obsolete=False, questInt=2414, tasks=(VisitTaskDNA(npcId=NPCIds.DOC_GROG),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cul5.7visitFuller': QuestDNA(obsolete=False, questInt=2415, tasks=(VisitTaskDNA(npcId=NPCIds.PHILLIP_FULLER),), rewards=(CutlassUpgradeReward(amount=ItemId.CUTLASS_L5), ReputationReward(amount=ExpRewards.SMALL)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.1visitFerrar': QuestDNA(obsolete=False, questInt=2451, tasks=(VisitTaskDNA(npcId=NPCIds.FERRERA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(DidQuest(questIds=('jw1.visitJohnWallace',)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.2findNecklace': QuestDNA(obsolete=False, questInt=2452, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Necklace, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.3visitOrinda': QuestDNA(obsolete=False, questInt=2453, tasks=(VisitTaskDNA(npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.4defeatExHusband': QuestDNA(obsolete=False, questInt=2454, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.UNDEAD_TIMOTHY_DARTAN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.5visitMcKidd': QuestDNA(obsolete=False, questInt=2455, tasks=(VisitTaskDNA(npcId=NPCIds.BILLY_MCKIDD),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.6captureSwain': QuestDNA(obsolete=False, questInt=2456, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_SWAIN, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.7maroonSwain': QuestDNA(obsolete=False, questInt=2457, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.CAPTAIN_SWAIN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.8visitTia': QuestDNA(obsolete=False, questInt=2458, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.9defeatWitchdoctorBoss': QuestDNA(obsolete=False, questInt=2459, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.BONERATTLER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.10visitGrimm': QuestDNA(obsolete=False, questInt=2460, tasks=(VisitTaskDNA(npcId=NPCIds.ENSIGN_GRIMM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.10.5bribeGrimm': QuestDNA(obsolete=False, questInt=2461, tasks=(BribeNPCTaskDNA(npcId=NPCIds.ENSIGN_GRIMM, gold=Bribes.LARGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.11findDaggers': QuestDNA(obsolete=False, questInt=2462, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.StolenDaggers, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dul5.12visitFerrar': QuestDNA(obsolete=False, questInt=2463, tasks=(VisitTaskDNA(npcId=NPCIds.FERRERA),), rewards=(DaggerUpgradeReward(amount=ItemId.DAGGER_L5), ReputationReward(amount=ExpRewards.SMALL)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5r1.1acquireEITCBadge': QuestDNA(obsolete=False, questInt=2509, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.NEBAN_THE_HIRED_GUN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROLAND_RAGGART,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5r1.2acquireGoldHandleRapier': QuestDNA(obsolete=False, questInt=2510, tasks=(DefeatNPCTaskDNA(npcId=NPCIds.REMINGTON_THE_ASSASSIN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROLAND_RAGGART,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5r2.1defeatThugs': QuestDNA(obsolete=False, questInt=2511, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Thug, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5r2.2defeatGrunts': QuestDNA(obsolete=False, questInt=2512, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Stalker, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5r2.3defeatHiredGuns': QuestDNA(obsolete=False, questInt=2513, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Hiredgun, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5r2.4defeatMercenaries': QuestDNA(obsolete=False, questInt=2514, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Mercenary, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5r2.5defeatAssassins': QuestDNA(obsolete=False, questInt=2515, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Professional, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL), WandUpgradeReward(amount=ItemId.WAND_L5)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5.1visitRoland': QuestDNA(obsolete=False, questInt=2503, tasks=(VisitTaskDNA(npcId=NPCIds.ROLAND_RAGGART),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(DidQuest(questIds=('vsu4.0visitTiaDalma',)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5.2captureEITCCaptain': QuestDNA(obsolete=False, questInt=2504, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.CAPTAIN_ACKERS, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5.3visitRoland': QuestDNA(obsolete=False, questInt=2505, tasks=(VisitTaskDNA(npcId=NPCIds.ROLAND_RAGGART),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5.4maroonEITCCaptain': QuestDNA(obsolete=False, questInt=2506, tasks=(MaroonNPCTaskDNA(location=LocationIds.RUMRUNNER_ISLE, npcId=NPCIds.CAPTAIN_ACKERS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5.5retrieveStatuettes': QuestDNA(obsolete=False, questInt=2507, tasks=(RecoverShipItemTaskDNA(item=QuestItems.WoodenStatuette, num=6, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROLAND_RAGGART,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsul5.6acquireHighLevelUndeadBones': QuestDNA(obsolete=False, questInt=2508, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.SkeletonBone, num=7, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROLAND_RAGGART,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6.1duchamps': QuestDNA(obsolete=False, questInt=10132, tasks=(VisitTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, npcId=NPCIds.DUCHAMPS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.CAPT_EZEKIEL_ROTT,)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=15, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6.2ezekielRott': QuestDNA(obsolete=False, questInt=10133, tasks=(VisitTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, npcId=NPCIds.CAPT_EZEKIEL_ROTT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r3.1getInfo': QuestDNA(obsolete=False, questInt=10135, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CodedOrder, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_VANGUARD, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CAPT_EZEKIEL_ROTT,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r3.2getInfo': QuestDNA(obsolete=False, questInt=10136, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CodedOrder, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BLOODHOUND, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.CAPT_EZEKIEL_ROTT,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6.4visitNathan': QuestDNA(obsolete=False, questInt=10137, tasks=(VisitTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, npcId=NPCIds.NATHAN_GOULD),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r5.1gatherInfo': QuestDNA(obsolete=False, questInt=10139, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, item=QuestItems.SecretRecord, num=10, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r5.2gatherInfo': QuestDNA(obsolete=False, questInt=10140, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_SHELF, item=QuestItems.Intelligence, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r6.1interceptMessages': QuestDNA(obsolete=False, questInt=10142, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Message, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_CENTURION, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r6.2interceptMessages': QuestDNA(obsolete=False, questInt=10143, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Message, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_IRONWALL, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6.7visitSamuel': QuestDNA(obsolete=False, questInt=10144, tasks=(VisitTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, npcId=NPCIds.SAMUEL_SHAW),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r8.1defeatResistance': QuestDNA(obsolete=False, questInt=10146, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, enemyType=AvatarTypes.Officer, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r8.2defeatResistance': QuestDNA(obsolete=False, questInt=10147, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, enemyType=AvatarTypes.Hiredgun, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r8.3defeatResistance': QuestDNA(obsolete=False, questInt=10148, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, containerId=PropIds.DF_BQ_CRATES, item=QuestItems.ExcavationRecord, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r9.1disruptDefenses': QuestDNA(obsolete=False, questInt=10150, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, enemyType=AvatarTypes.Mercenary, num=3, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r9.2disruptDefenses': QuestDNA(obsolete=False, questInt=10151, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, enemyType=AvatarTypes.Dragoon, num=2, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r9.3disruptDefenses': QuestDNA(obsolete=False, questInt=10152, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_D, item=QuestItems.LostMap, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6.10visitJeremiah': QuestDNA(obsolete=False, questInt=10153, tasks=(DeliverItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.LostMap, num=1, npcId=NPCIds.JEREMIAH_DEDMAN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JEREMIAH_DEDMAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r11.1sinkExpedition': QuestDNA(obsolete=False, questInt=10155, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_KINGFISHER, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JEREMIAH_DEDMAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6r11.2sinkExpedition': QuestDNA(obsolete=False, questInt=10156, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_MARAUDER, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JEREMIAH_DEDMAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc6.12sinkPrizedShip': QuestDNA(obsolete=False, questInt=10157, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_OGRE, num=1, level=0, isFlagship=False),), rewards=(GoldAmountReward(amount=3000), ReputationReward(amount=ExpRewards.LARGE)), returnGiverIds=(NPCIds.JEREMIAH_DEDMAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wg.1visitJack': QuestDNA(obsolete=False, questInt=19070, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wg.2visitEwan': QuestDNA(obsolete=False, questInt=19071, tasks=(VisitTaskDNA(location=LocationIds.MCCRAKENS_WEAPONS, npcId=NPCIds.EWAN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wg.5recoverTar': QuestDNA(obsolete=False, questInt=19078, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.NAVY_BARRELS, item=QuestItems.Tar, num=10, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wg.6sinkShips': QuestDNA(obsolete=False, questInt=19079, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.TradingCo, num=4, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EWAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wg.8deliverBombs': QuestDNA(obsolete=False, questInt=19082, tasks=(DeliverItemTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, item=QuestItems.Grenade, num=24, npcId=NPCIds.JACK),), rewards=(GrenadeReward(), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr3.1recoverSaltpeter': QuestDNA(obsolete=False, questInt=19072, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, containerId=PropIds.KH_CRATES, item=QuestItems.Saltpeter, num=10, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr3.2recoverCharcoal': QuestDNA(obsolete=False, questInt=19073, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Charcoal, num=1, maxAttempts=Attempts.RARE, probability=Probability.VERY_RARE, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr3.3recoverSulfur': QuestDNA(obsolete=False, questInt=19074, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.KH_BARRELS, item=QuestItems.Sulfur, num=10, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr4.1recoverFuses': QuestDNA(obsolete=False, questInt=19075, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.KH_CRATES, item=QuestItems.Fuse, num=10, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr4.2recoverFlints': QuestDNA(obsolete=False, questInt=19076, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.FD_BARRELS, item=QuestItems.Flint, num=10, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr4.3recoverCasings': QuestDNA(obsolete=False, questInt=19077, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.KH_BARRELS, item=QuestItems.Casing, num=20, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr3.1grenadeMaterialsA': QuestDNA(obsolete=False, questInt=19704, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.FORT_CHARLES, item=QuestItems.Fuse, num=16, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr3.2grenadeMaterialsA': QuestDNA(obsolete=False, questInt=19705, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.FORT_CHARLES, containerId=PropIds.FC_CRATES, item=QuestItems.Flint, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr3.3grenadeMaterialsA': QuestDNA(obsolete=False, questInt=19706, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.FORT_CHARLES, containerId=PropIds.FC_BARRELS, item=QuestItems.Casing, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr4.1grenadeMaterialsB': QuestDNA(obsolete=False, questInt=19708, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, item=QuestItems.Saltpeter, num=14, enemyType=AvatarTypes.Officer, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr4.2grenadeMaterialsB': QuestDNA(obsolete=False, questInt=19709, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, containerId=PropIds.KH_CRATES, item=QuestItems.Charcoal, num=8, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr4.3grenadeMaterialsB': QuestDNA(obsolete=False, questInt=19710, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, containerId=PropIds.KH_BARRELS, item=QuestItems.Sulfur, num=8, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr5.1grenadeMaterialsC': QuestDNA(obsolete=False, questInt=19712, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, item=QuestItems.Powder, num=20, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr5.2grenadeMaterialsC': QuestDNA(obsolete=False, questInt=19713, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_CRATES, item=QuestItems.Wire, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr5.3grenadeMaterialsC': QuestDNA(obsolete=False, questInt=19714, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_BARRELS, item=QuestItems.Tar, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr6.SinkShips': QuestDNA(obsolete=False, questInt=19715, questLink='wg.8deliverBombs', tasks=(DefeatShipTaskDNA(hull=ShipGlobals.EITC_IRONWALL, num=5, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EWAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr7.1smuggleBombs': QuestDNA(obsolete=False, questInt=19080, tasks=(SmuggleItemTaskDNA(location=LocationIds.DEL_FUEGO_ISLAND, item=QuestItems.Grenade, num=16),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EWAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wgr7.2deliverBombs': QuestDNA(obsolete=False, questInt=19081, tasks=(DeliverItemTaskDNA(item=QuestItems.Grenade, num=12, npcId=NPCIds.BRONZE_JOHN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EWAN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr2.1recoverStraw': QuestDNA(obsolete=False, questInt=23101, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Straw, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr2.2recoverPitch': QuestDNA(obsolete=False, questInt=23102, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.FORT_CHARLES, containerId=PropIds.FC_BARRELS, item=QuestItems.Pitch, num=2, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr2.3recoverSilk': QuestDNA(obsolete=False, questInt=23103, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Silk, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr2.4recoverWire': QuestDNA(obsolete=False, questInt=23104, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.FORT_CHARLES, containerId=PropIds.FC_CRATES, item=QuestItems.Wire, num=2, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr4.1bloodOfRockCrab': QuestDNA(obsolete=False, questInt=23106, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=2, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr4.2bloodOfScorpion': QuestDNA(obsolete=False, questInt=23107, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=3, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr4.3bloodOfAlligator': QuestDNA(obsolete=False, questInt=23108, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=4, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr4.4bloodOfBat': QuestDNA(obsolete=False, questInt=23109, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=3, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr4.5bloodOfWasp': QuestDNA(obsolete=False, questInt=23110, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=2, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr6.1boneDustOfClod': QuestDNA(obsolete=False, questInt=23112, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Dust, num=3, enemyType=AvatarTypes.WillBurybones, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr6.2boneDustOfSludge': QuestDNA(obsolete=False, questInt=23113, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Dust, num=2, enemyType=AvatarTypes.Sludge, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr6.3boneDustOfMire': QuestDNA(obsolete=False, questInt=23114, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Dust, num=2, enemyType=AvatarTypes.Mire, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr6.4boneDustOfMuck': QuestDNA(obsolete=False, questInt=23115, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Dust, num=1, enemyType=AvatarTypes.Muck, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(DollReward(), ReputationReward(amount=ExpRewards.MEDIUM)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr2.1needMaterials': QuestDNA(obsolete=False, questInt=23116, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Straw, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_BULWARK, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr2.2needMaterials': QuestDNA(obsolete=False, questInt=23117, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Pitch, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_SEA_VIPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr3.1needBlood': QuestDNA(obsolete=False, questInt=23118, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.ANVIL_ISLAND, item=QuestItems.Blood, num=10, enemyType=AvatarTypes.StoneCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr3.2needBlood': QuestDNA(obsolete=False, questInt=23119, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.ANVIL_ISLAND, item=QuestItems.Blood, num=6, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr3.3needBlood': QuestDNA(obsolete=False, questInt=23120, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUBA_ALL, item=QuestItems.Blood, num=10, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr4.1needBoneDust': QuestDNA(obsolete=False, questInt=23121, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_A, item=QuestItems.Dust, num=10, enemyType=AvatarTypes.Sludge, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wdr4.2needBoneDust': QuestDNA(obsolete=False, questInt=23122, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_A, item=QuestItems.Dust, num=6, enemyType=AvatarTypes.Mire, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(DollReward(), ReputationReward(amount=ExpRewards.MEDIUM)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wd.1visitTia': QuestDNA(obsolete=False, questInt=23100, tasks=(VisitTaskDNA(location=LocationIds.CUBA_SWAMP, npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), finalizeInfo={'type': 'cutscene','sceneId': '6.1: Tia Showing Voodoo Doll','giverId': NPCIds.TIA_DALMA}, combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wk.1visitElizabeth': QuestDNA(obsolete=False, questInt=19050, tasks=(VisitTaskDNA(location=LocationIds.GOVERNORS_MANSION, npcId=NPCIds.ELIZABETH),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.ELIZABETH,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wk.2visitWill': QuestDNA(obsolete=False, questInt=19051, tasks=(VisitTaskDNA(location=LocationIds.RAMBLESHACK_INSIDE, npcId=NPCIds.WILL_TURNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wk.4visitElizabeth': QuestDNA(obsolete=False, questInt=19058, tasks=(VisitTaskDNA(location=LocationIds.GOVERNORS_MANSION, npcId=NPCIds.ELIZABETH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wk.5recoverMessage': QuestDNA(obsolete=False, questInt=19059, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Message, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_CORVETTE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ELIZABETH,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wk.6visitWill': QuestDNA(obsolete=False, questInt=19060, tasks=(VisitTaskDNA(location=LocationIds.RAMBLESHACK_INSIDE, npcId=NPCIds.WILL_TURNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wk.7deliverKnives': QuestDNA(obsolete=False, questInt=19061, tasks=(DeliverItemTaskDNA(location=LocationIds.GOVERNORS_MANSION, item=QuestItems.Knife, num=1, npcId=NPCIds.ELIZABETH),), rewards=(DaggerReward(), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.ELIZABETH,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr3.1daggerMaterialsA': QuestDNA(obsolete=False, questInt=19062, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Steel, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_PANTHER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr3.2daggerMaterialsA': QuestDNA(obsolete=False, questInt=19063, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Silver, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_SENTINEL, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr3.1recoverSteel': QuestDNA(obsolete=False, questInt=19052, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Steel, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr3.2recoverSilver': QuestDNA(obsolete=False, questInt=19053, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Silver, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr3.3recoverBone': QuestDNA(obsolete=False, questInt=19054, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bone, num=4, enemyType=AvatarTypes.Mire, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr3.4recoverTongs': QuestDNA(obsolete=False, questInt=19055, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tongs, num=1, enemyType=AvatarTypes.Guard, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr3.5recoverCoal': QuestDNA(obsolete=False, questInt=19056, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.NAVY_BARRELS, item=QuestItems.Coal, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr4.1daggerMaterialsB': QuestDNA(obsolete=False, questInt=19064, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_A_GRAVEYARD, item=QuestItems.Bone, num=14, enemyType=AvatarTypes.MuckCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr4.2daggerMaterialsB': QuestDNA(obsolete=False, questInt=19065, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_A_GRAVEYARD, item=QuestItems.Tongs, num=14, enemyType=AvatarTypes.Muck, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wkr4.3daggerMaterialsB': QuestDNA(obsolete=False, questInt=19066, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.TORTUGA_JUNGLE_A_GRAVEYARD, containerId=PropIds.T_G_BARRELS, item=QuestItems.Coal, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr2.1defeatCorpse': QuestDNA(obsolete=False, questInt=23051, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Carrion, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr2.2defeatCarrion': QuestDNA(obsolete=False, questInt=23052, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Cadaver, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr2.3defeatZombie': QuestDNA(obsolete=False, questInt=23053, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Zombie, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr3.1defeatWasp': QuestDNA(obsolete=False, questInt=23056, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.AngryWasp, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr3.2defeatGator': QuestDNA(obsolete=False, questInt=23057, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.HugeGator, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr3.3defeatScorpion': QuestDNA(obsolete=False, questInt=23058, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.DreadScorpion, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr3.4defeatCrab': QuestDNA(obsolete=False, questInt=23059, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.GiantCrab, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr3.5defeatFlyTrap': QuestDNA(obsolete=False, questInt=23060, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.FlyTrap, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr3.6defeatBat': QuestDNA(obsolete=False, questInt=23061, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.VampireBat, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.1defeatPortRoyal': QuestDNA(obsolete=False, questInt=23062, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.2defeatTortuga': QuestDNA(obsolete=False, questInt=23063, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.3defeatPadresDelFuego': QuestDNA(obsolete=False, questInt=23064, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.4defeatKingshead': QuestDNA(obsolete=False, questInt=23065, tasks=(DefeatTaskDNA(location=LocationIds.KINGSHEAD_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.5defeatCuba': QuestDNA(obsolete=False, questInt=23066, tasks=(DefeatTaskDNA(location=LocationIds.CUBA_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.6defeatRumrunners': QuestDNA(obsolete=False, questInt=23067, tasks=(DefeatTaskDNA(location=LocationIds.RUMRUNNER_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.4defeatDriftwood': QuestDNA(obsolete=False, questInt=23068, tasks=(DefeatTaskDNA(location=LocationIds.DRIFTWOOD_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.5defeatCangrejos': QuestDNA(obsolete=False, questInt=23069, tasks=(DefeatTaskDNA(location=LocationIds.CANGREJOS_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.6defeatPerdida': QuestDNA(obsolete=False, questInt=23070, tasks=(DefeatTaskDNA(location=LocationIds.PERDIDA_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.4defeatCutthroat': QuestDNA(obsolete=False, questInt=23071, tasks=(DefeatTaskDNA(location=LocationIds.CUTTHROAT_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.5defeatTormenta': QuestDNA(obsolete=False, questInt=23072, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.6defeatOutkast': QuestDNA(obsolete=False, questInt=23073, tasks=(DefeatTaskDNA(location=LocationIds.OUTCAST_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr4.6defeatAnvil': QuestDNA(obsolete=False, questInt=23074, tasks=(DefeatTaskDNA(location=LocationIds.ANVIL_ALL, enemyType=AvatarTypes.WillTurner, num=1, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr2.1proveHeart': QuestDNA(obsolete=False, questInt=23076, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.CadaverCutlass, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr2.2proveHeart': QuestDNA(obsolete=False, questInt=23077, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.Cadaver, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr2.3proveHeart': QuestDNA(obsolete=False, questInt=23078, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_CAVE_E, enemyType=AvatarTypes.Zombie, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr5.1powerUpA': QuestDNA(obsolete=False, questInt=23081, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Professional, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr5.2powerUpA': QuestDNA(obsolete=False, questInt=23082, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Dragoon, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr5.3powerUpA': QuestDNA(obsolete=False, questInt=23083, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Zombie, num=16, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr6.1powerUpB': QuestDNA(obsolete=False, questInt=23084, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_ALL, enemyType=AvatarTypes.Drip, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr6.2powerUpB': QuestDNA(obsolete=False, questInt=23085, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_ALL, enemyType=AvatarTypes.Damp, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wsr6.3powerUpB': QuestDNA(obsolete=False, questInt=23086, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_ALL, enemyType=AvatarTypes.Drizzle, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ws.1visitTia': QuestDNA(obsolete=False, questInt=23050, tasks=(VisitTaskDNA(location=LocationIds.CUBA_SWAMP, npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ws.3recoverStump': QuestDNA(obsolete=False, questInt=23054, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Branch, num=1, enemyType=AvatarTypes.Stump, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ws.4recoverHead': QuestDNA(obsolete=False, questInt=23055, tasks=(RecoverShipItemTaskDNA(item=QuestItems.ShrunkenHead, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ws.5deliverDoll': QuestDNA(obsolete=False, questInt=23075, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(StaffReward(bonus=False), ReputationReward(amount=ExpRewards.MEDIUM)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ws.3recoverBranch': QuestDNA(obsolete=False, questInt=23079, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_JUNGLE_B, item=QuestItems.Branch, num=6, enemyType=AvatarTypes.Stump, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ws.4recoverShrunkenHead': QuestDNA(obsolete=False, questInt=23080, questLink='wsr5.PowerUpA', tasks=(RecoverShipItemTaskDNA(item=QuestItems.ShrunkenHead, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_STORM_REAPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ws.7sinkHarbingers': QuestDNA(obsolete=False, questInt=23087, questLink='ws.5deliverDoll', tasks=(DefeatShipTaskDNA(hull=ShipGlobals.SKEL_BLACK_HARBINGER, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.1visitJack': QuestDNA(obsolete=False, questInt=19958, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=False, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=30, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.2sailToRavensCove': QuestDNA(obsolete=False, questInt=19959, tasks=(SailToTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.3searchForSurvivors': QuestDNA(obsolete=False, questInt=19963, tasks=(VisitTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, npcId=NPCIds.EDWARD_BRITTLE),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.helpAllGhosts': QuestDNA(obsolete=False, questInt=19965, tasks=(CompleteQuestContainerTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, containerIds=('rc.ghosts.ThomasFishmeister', 'rc.ghosts.MadamZigana', 'rc.ghosts.SenorFantifico', 'rc.ghosts.WidowThreadbarren', 'rc.ghosts.TheClubhearts')),), returnGiverIds=(NPCIds.EDWARD_BRITTLE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.zigana.brewPotions': QuestDNA(obsolete=False, questInt=19967, tasks=(PotionsTaskDNA(location=LocationIds.POTION_ISLANDS, potionType=ItemGlobals.STAFF_ENCHANT_1, num=3, potionTypeBonus=ItemGlobals.STAFF_ENCHANT_2, numBonus=1),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM), StaffReward(bonus=True)), returnGiverIds=(NPCIds.MADAM_ZIGANA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.fishmeister.catchFish': QuestDNA(obsolete=False, questInt=19969, tasks=(FishingTaskDNA(location=LocationIds.FISHING_ISLANDS, fishType=InventoryType.Collection_Set10_Part5, num=12, fishTypeBonus=InventoryType.Collection_Set11, numBonus=1),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM), CharmReward(bonus=True)), returnGiverIds=(NPCIds.THOMAS_FISHMEISTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.fantifico.visitTiaDalma': QuestDNA(obsolete=False, questInt=19981, tasks=(VisitTaskDNA(location=LocationIds.CUBA_SWAMP, npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.fantifico.1potionIngredients': QuestDNA(obsolete=False, questInt=19983, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.TwistedRoot, num=6, enemyType=AvatarTypes.TwistedStump, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.fantifico.2potionIngredients': QuestDNA(obsolete=False, questInt=19984, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GiantBladder, num=10, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.fantifico.3potionIngredients': QuestDNA(obsolete=False, questInt=19985, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FatChicken, num=8, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_DREADNOUGHT, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.fantifico.deliverPotion': QuestDNA(obsolete=False, questInt=19986, tasks=(DeliverItemTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, item=QuestItems.RevivingPotion, num=1, npcId=NPCIds.SENOR_FANTIFICO),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.SENOR_FANTIFICO,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, questMod=[NPCIds.SENOR_FANTIFICO, ['switchVisualMode', '"notChickenFantifico"'], ['switchVisualMode', '"notChickenFantifico"'], ['switchVisualMode', '"chickenFantifico"']], timeLimit=0),'rc.ghosts.threadbarren.1retrieveSails': QuestDNA(obsolete=False, questInt=19989, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedSail, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_PHANTOM, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WIDOW_THREADBARREN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.threadbarren.2retrieveSails': QuestDNA(obsolete=False, questInt=19990, tasks=(RecoverShipItemTaskDNA(item=QuestItems.TornSail, num=7, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_REVENANT, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WIDOW_THREADBARREN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.threadbarren.3retrieveSails': QuestDNA(obsolete=False, questInt=19991, tasks=(RecoverShipItemTaskDNA(item=QuestItems.UndeadSail, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.SKEL_STORM_REAPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WIDOW_THREADBARREN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.clubhearts.undeadPoker': QuestDNA(obsolete=False, questInt=19993, tasks=(SkeletonPokerTaskDNA(gold=PokerPots.BIG, goldBonus=PokerPots.GIANT, containerId=PropIds.UNDEAD_POKER_TABLE),), rewards=(ClothingQuestReward(amount=ClothingGlobals.POKER_BONUS_HAT, bonus=True), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.BEN_CLUBHEART,), instanceInfo=(INSTANCE_REF_TYPE_AREA, LocationIds.UNDEAD_POKER_SHACK_INTERIOR), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.ghosts.clubhearts.disguise': QuestDNA(obsolete=False, questInt=19996, tasks=(GoToTaskDNA(location=LocationIds.TORTUGA_JUNGLE_B_SWAMPY, npcId=NPCIds.SKELETON_POKER_BOUNCER),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.1findJournals': QuestDNA(obsolete=False, questInt=19972, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.RAVENS_COVE_MINE, treasureId=TreasureIds.RC_CHESTS, item=QuestItems.Journal, num=4, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.3defendTraitor': QuestDNA(obsolete=False, questInt=19974, tasks=(DefendNPCTaskDNA(location=LocationIds.RAVENS_COVE_MINE, enemyType=AvatarTypes.TraitorGhost, containerId=PropIds.RC_GRAVE_2),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.5useDowsingRod': QuestDNA(obsolete=False, questInt=19976, tasks=(DowsingRodTaskDNA(location=LocationIds.RAVENS_COVE_MINE, treasureId=TreasureIds.RC_CHESTS_2, num=4, item=QuestItems.Idol),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.6getLastIdol': QuestDNA(obsolete=False, questInt=19977, tasks=(DefeatAroundPropTaskDNA(location=LocationIds.RAVENS_COVE_MINE, enemyType=AvatarTypes.Ghost, containerId=PropIds.RC_GRAVE_3, itemId=QuestItems.Idol),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.7defeatKudgel': QuestDNA(obsolete=False, questInt=19978, tasks=(DefeatNPCTaskDNA(location=LocationIds.RAVENS_COVE_MINE, npcId=NPCIds.KUDGEL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, questMod=[NPCIds.KUDGEL, None, ['turnAggro', ''], ['turnFriendlyAndHide', '']], timeLimit=0),'rc.le.9defeatElPatron': QuestDNA(obsolete=False, questInt=19994, tasks=(DefeatNPCTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, goalLocation=LocationIds.RAVENS_COVE_SHIP, npcId=NPCIds.EL_PATRON),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.10lootTreasure': QuestDNA(obsolete=False, questInt=19995, tasks=(LootPropTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, containerId=PropIds.RC_CHEST_1),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.2lureGhosts': QuestDNA(obsolete=False, questInt=19973, tasks=(DefeatNearPropTaskDNA(location=LocationIds.RAVENS_COVE_MINE, enemyType=AvatarTypes.MutineerGhost, num=5, level=0, containerId=PropIds.RC_GRAVE_1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.2AlureGhosts': QuestDNA(obsolete=False, questInt=20002, tasks=(DefeatNearPropTaskDNA(location=LocationIds.RAVENS_COVE_MINE, enemyType=AvatarTypes.DeviousGhost, num=5, level=0, containerId=PropIds.RC_GRAVE_1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.8exploreElPatronsShip': QuestDNA(obsolete=False, questInt=20003, tasks=(GoToTaskDNA(containerId=PropIds.RC_CHEST_1),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.le.4FindPartsBats': QuestDNA(obsolete=False, questInt=20004, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tooth, num=13, enemyType=AvatarTypes.FireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DR_BELLROG,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.3bTalkToEdward': QuestDNA(obsolete=False, questInt=19979, tasks=(GoToTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, npcId=NPCIds.EDWARD_BRITTLE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.talkToBellrog': QuestDNA(obsolete=False, questInt=19997, tasks=(VisitTaskDNA(location=LocationIds.RAVENS_COVE_MINE, npcId=NPCIds.DR_BELLROG),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rc.useMineShaft': QuestDNA(obsolete=False, questInt=19998, tasks=(GoToTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, containerId=PropIds.RC_MINE_SHAFT_1),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=False, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rct.findHiddenPieces': QuestDNA(obsolete=False, questInt=20000, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.RAVENS_COVE_ISLAND, containerId=PropIds.RC_CRATES, item=QuestItems.TotemPiece, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(RavensCoveTeleportReward(),), returnGiverIds=(NPCIds.EDWARD_BRITTLE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pvr1.1acquireCrossbones': QuestDNA(obsolete=False, questInt=2529, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bone, num=2, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.SID_TACKEM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pvr1.2acquireNavyCoat': QuestDNA(obsolete=False, questInt=2530, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.NavyCoat, num=1, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.SID_TACKEM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pvr1.3acquireNavyButtons': QuestDNA(obsolete=False, questInt=2531, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BrassButton, num=5, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.SID_TACKEM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pvr1.4acquireGatorSkin': QuestDNA(obsolete=False, questInt=2532, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorSkin, num=3, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.INFREQUENT, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.SID_TACKEM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pvr1.5acquireScorpionBlood': QuestDNA(obsolete=False, questInt=2533, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScorpionBlood, num=3, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.SID_TACKEM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.1visitPirate': QuestDNA(obsolete=False, questInt=2528, tasks=(VisitTaskDNA(npcId=NPCIds.SID_TACKEM),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), prereqs=(GetFrom(questGivers=(NPCIds.ERIN_AMOROUS,)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, holiday=HolidayGlobals.VALENTINESDAY, timeLimit=0),'pv.2deliverValentine': QuestDNA(obsolete=False, questInt=2534, tasks=(VisitTaskDNA(npcId=NPCIds.DEDRIE_DUNNAM),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.3visitPirate': QuestDNA(obsolete=False, questInt=2535, tasks=(VisitTaskDNA(npcId=NPCIds.SID_TACKEM),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.4visitErin': QuestDNA(obsolete=False, questInt=2536, tasks=(VisitTaskDNA(npcId=NPCIds.ERIN_AMOROUS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.5visitScarlet': QuestDNA(obsolete=False, questInt=2537, tasks=(VisitTaskDNA(npcId=NPCIds.SCARLET),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.6bribeGiladoga': QuestDNA(obsolete=False, questInt=2538, tasks=(BribeNPCTaskDNA(npcId=NPCIds.GILADOGA, gold=Bribes.MEDIUM, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.7visitScarlet': QuestDNA(obsolete=False, questInt=2539, tasks=(VisitTaskDNA(npcId=NPCIds.SCARLET),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.8deliverFlower': QuestDNA(obsolete=False, questInt=2540, tasks=(VisitTaskDNA(npcId=NPCIds.DEDRIE_DUNNAM),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pv.9collectReward': QuestDNA(obsolete=False, questInt=2541, tasks=(VisitTaskDNA(npcId=NPCIds.SID_TACKEM),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL), ClothingQuestReward(amount=ClothingGlobals.VALENTINES_SHIRT, bonus=False)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.1acquireMastsOfSunkenShips': QuestDNA(obsolete=False, questInt=4105, tasks=(RecoverShipItemTaskDNA(item=QuestItems.SunkenShipMast, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.2acquireSkeletonBones': QuestDNA(obsolete=False, questInt=4106, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.SkeletonBone, num=8, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.3acquirePortRoyalBattleEarth': QuestDNA(obsolete=False, questInt=4107, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.4acquireTortugaBattleEarth': QuestDNA(obsolete=False, questInt=4108, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.5acquirePadresDelFuegoBattleEarth': QuestDNA(obsolete=False, questInt=4109, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.6acquireKingsheadBattleEarth': QuestDNA(obsolete=False, questInt=4110, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.KINGSHEAD_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.7acquireCubaBattleEarth': QuestDNA(obsolete=False, questInt=4111, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUBA_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.8acquireRumrunnersBattleEarth': QuestDNA(obsolete=False, questInt=4112, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.RUMRUNNER_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.9acquireDriftwoodBattleEarth': QuestDNA(obsolete=False, questInt=4113, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DRIFTWOOD_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.10acquireCangrejosBattleEarth': QuestDNA(obsolete=False, questInt=4114, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CANGREJOS_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.11acquirePerdidaBattleEarth': QuestDNA(obsolete=False, questInt=4115, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PERDIDA_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.12acquireCutthroatBattleEarth': QuestDNA(obsolete=False, questInt=4116, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUTTHROAT_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.13acquireTormentaBattleEarth': QuestDNA(obsolete=False, questInt=4117, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORMENTA_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.14acquireOutkastBattleEarth': QuestDNA(obsolete=False, questInt=4118, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.OUTCAST_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r1.15acquireAnvilBattleEarth': QuestDNA(obsolete=False, questInt=4119, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.ANVIL_ALL, item=QuestItems.BattleEarth, num=1, enemyType=AvatarTypes.WillTurner, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r2.1retrieveScorpionVenom': QuestDNA(obsolete=False, questInt=4123, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScorpionVenom, num=6, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r2.2retrieveAlligatorTeeth': QuestDNA(obsolete=False, questInt=4124, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorTooth, num=6, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r2.3retrieveWaspStinger': QuestDNA(obsolete=False, questInt=4125, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Stinger, num=6, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r2.4retrieveCrabClaw': QuestDNA(obsolete=False, questInt=4126, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrabClaw, num=6, enemyType=AvatarTypes.Crab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r2.5retrieveBatClaw': QuestDNA(obsolete=False, questInt=4127, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatClaw, num=6, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4r2.6retrieveBattleSaltWater': QuestDNA(obsolete=False, questInt=4128, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BattleSaltWater, num=6, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4.1visitRomanyBev': QuestDNA(obsolete=False, questInt=4103, tasks=(VisitTaskDNA(npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4.2returnToTia': QuestDNA(obsolete=False, questInt=4104, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4.4retrieveFirstPieceOfRelic': QuestDNA(obsolete=False, questInt=4121, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RelicPiece, num=1, enemyType=AvatarTypes.Cadaver, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4.5retrieveRestOfPiecesOfRelic': QuestDNA(obsolete=False, questInt=4122, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RelicPiece, num=5, enemyType=AvatarTypes.Carrion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4.6returnToTia': QuestDNA(obsolete=False, questInt=4129, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(DollUpgradeReward(amount=ItemId.DOLL_L4), ReputationReward(amount=ExpRewards.SMALL)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vdu4.0visitTiaDalma': QuestDNA(obsolete=False, questInt=4130, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r1.1acquireGatorEyes': QuestDNA(obsolete=False, questInt=4152, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorEye, num=4, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r1.2acquireWasps': QuestDNA(obsolete=False, questInt=4153, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Wasp, num=6, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r1.3acquireScorpionEyes': QuestDNA(obsolete=False, questInt=4154, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScorpionEye, num=6, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r1.4acquireBatEyes': QuestDNA(obsolete=False, questInt=4155, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatEye, num=6, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r2.1acquireSkeletonRibs': QuestDNA(obsolete=False, questInt=4158, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.SkeletonRib, num=15, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r2.2acquireNavyBadges': QuestDNA(obsolete=False, questInt=4159, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Badge, num=5, enemyType=AvatarTypes.Officer, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r2.3acquireScorpionStingers': QuestDNA(obsolete=False, questInt=4160, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Stinger, num=5, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r2.4acquireCrabShells': QuestDNA(obsolete=False, questInt=4161, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrabShell, num=5, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r3.1acquireStumpBranch': QuestDNA(obsolete=False, questInt=4163, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Branch, num=5, enemyType=AvatarTypes.Stump, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r3.2acquireFlyTrapRoot': QuestDNA(obsolete=False, questInt=4164, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FlyTrapRoot, num=5, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r3.3acquireWritsOfAuthority': QuestDNA(obsolete=False, questInt=4165, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WritOfAuthority, num=3, enemyType=AvatarTypes.Mercenary, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4r3.4acquireStrongerRibs': QuestDNA(obsolete=False, questInt=4166, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.SkeletonRib, num=15, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4.1visitRoland': QuestDNA(obsolete=False, questInt=4151, tasks=(VisitTaskDNA(npcId=NPCIds.ROLAND_RAGGART),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4.3acquireOrb': QuestDNA(obsolete=False, questInt=4157, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CloudyBlueOrb, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.EXTREMELY_RARE, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_WARSHIP, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4.5returnToRoland': QuestDNA(obsolete=False, questInt=4167, tasks=(VisitTaskDNA(npcId=NPCIds.ROLAND_RAGGART),), rewards=(WandUpgradeReward(amount=ItemId.WAND_L4), ReputationReward(amount=ExpRewards.SMALL)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'vsu4.0visitTiaDalma': QuestDNA(obsolete=False, questInt=4168, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc1r1.1governorsMessage': QuestDNA(obsolete=False, questInt=10102, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, enemyType=AvatarTypes.Cadet, num=12, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CAPT_EZEKIEL_ROTT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=1, minWeapLevel=0, hideButton=False, timeLimit=0),'dc1r1.2governorsMessage': QuestDNA(obsolete=False, questInt=10103, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, goalLocation=LocationIds.GOVERNORS_MANSION_COURTYARD, containerId=PropIds.PR_BARREL_1, item=QuestItems.Message, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CAPT_EZEKIEL_ROTT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc1r2.1defensePlans': QuestDNA(obsolete=False, questInt=10105, tasks=(DefeatTaskDNA(location=LocationIds.FORT_CHARLES, enemyType=AvatarTypes.Navy, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.CAPT_EZEKIEL_ROTT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc1r2.2defensePlans': QuestDNA(obsolete=False, questInt=10106, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.FORT_CHARLES, containerId=PropIds.FC_SHELF, item=QuestItems.DefensePlans, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(GoldAmountReward(amount=500), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.CAPT_EZEKIEL_ROTT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc2r1.1voodooRelics': QuestDNA(obsolete=False, questInt=10109, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, enemyType=AvatarTypes.Marine, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=8, minWeapLevel=0, hideButton=False, timeLimit=0),'dc2r1.2voodooRelics': QuestDNA(obsolete=False, questInt=10110, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, item=QuestItems.VoodooRelic, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc2r2.2voodooRelics': QuestDNA(obsolete=False, questInt=10111, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_A, item=QuestItems.VoodooRelic, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(GoldAmountReward(amount=1000), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc2r2.1voodooRelics': QuestDNA(obsolete=False, questInt=10159, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_A, enemyType=AvatarTypes.Navy, num=4, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SAMUEL_SHAW,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc3r1.1voodooRelics': QuestDNA(obsolete=False, questInt=10114, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_C, item=QuestItems.Meat, num=4, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILL_BARRETT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=12, minWeapLevel=0, hideButton=False, timeLimit=0),'dc3r1.2voodooRelics': QuestDNA(obsolete=False, questInt=10115, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_C, item=QuestItems.Meat, num=14, enemyType=AvatarTypes.DireScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILL_BARRETT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc3r1.3voodooRelics': QuestDNA(obsolete=False, questInt=10116, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.PORT_ROYAL_JUNGLE_C, item=QuestItems.VoodooRelic, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILL_BARRETT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc3.2voodooRelics': QuestDNA(obsolete=False, questInt=10117, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_B, item=QuestItems.VoodooRelic, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(GoldAmountReward(amount=2000), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.BILL_BARRETT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc4r1.1poisonNavy': QuestDNA(obsolete=False, questInt=10120, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, enemyType=AvatarTypes.Sergeant, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=16, minWeapLevel=0, hideButton=False, timeLimit=0),'dc4r1.2poisonNavy': QuestDNA(obsolete=False, questInt=10121, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, enemyType=AvatarTypes.Thug, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc4r1.3poisonNavy': QuestDNA(obsolete=False, questInt=10122, tasks=(PoisonContainerTaskDNA(location=LocationIds.PORT_ROYAL_CAVE_A, containerId=PropIds.RC_BARRELS, item=QuestItems.TBD, num=3, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc4r2.1poisonFortCharles': QuestDNA(obsolete=False, questInt=10124, tasks=(DefeatTaskDNA(location=LocationIds.FORT_CHARLES, enemyType=AvatarTypes.Veteran, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc4r2.2poisonFortCharles': QuestDNA(obsolete=False, questInt=10125, tasks=(PoisonContainerTaskDNA(location=LocationIds.FORT_CHARLES, containerId=PropIds.FC_BARRELS, item=QuestItems.TBD, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(GoldAmountReward(amount=2500), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.NATHAN_GOULD,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc5r1.1defeatNavy': QuestDNA(obsolete=False, questInt=10128, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_VANGUARD, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JEREMIAH_DEDMAN,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=20, minWeapLevel=0, hideButton=False, timeLimit=0),'dc5r1.2defeatNavy': QuestDNA(obsolete=False, questInt=10129, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_CENTURION, num=3, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JEREMIAH_DEDMAN,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dc5r1.3defeatNavy': QuestDNA(obsolete=False, questInt=10130, tasks=(DefeatShipTaskDNA(hull=ShipGlobals.NAVY_KINGFISHER, num=1, level=0, isFlagship=False),), rewards=(GoldAmountReward(amount=3000), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.JEREMIAH_DEDMAN,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpr.2LucindasTrust': QuestDNA(obsolete=False, questInt=21007, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ALL, enemyType=AvatarTypes.Corpse, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpr.3LucindasTrust': QuestDNA(obsolete=False, questInt=21008, questLink='tptpr.4recoverFirstMedal', tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ALL, enemyType=AvatarTypes.Sergeant, num=8, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpr.1visitLucinda': QuestDNA(obsolete=False, questInt=21013, tasks=(VisitTaskDNA(location=LocationIds.PORT_ROYAL_ISLAND, npcId=NPCIds.LUCINDA),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpr.2gainLucindaTrust': QuestDNA(obsolete=False, questInt=21014, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Corpse, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpr.3gainLucindaTrustAgain': QuestDNA(obsolete=False, questInt=21015, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Veteran, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpr.4recoverFirstMedal': QuestDNA(obsolete=False, questInt=21016, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.FirstMedal, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.FREQUENT),), rewards=(PortRoyalTeleportReward(), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptcr1.1NavyCoats': QuestDNA(obsolete=False, questInt=21021, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.NavyCoat, num=1, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptcr1.2FlyTrapRoots': QuestDNA(obsolete=False, questInt=21022, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FlyTrapRoot, num=1, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(CubaTeleportReward(), ReputationReward(amount=ExpRewards.MEDIUM)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptcr2.1payment': QuestDNA(obsolete=False, questInt=21023, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_ALL, item=QuestItems.GatorScales, num=20, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptcr2.2payment': QuestDNA(obsolete=False, questInt=21024, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_ALL, item=QuestItems.FlyTrapRoot, num=3, enemyType=AvatarTypes.RancidFlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(CubaTeleportReward(), ReputationReward(amount=ExpRewards.MEDIUM)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptc.1visitTiaDalma': QuestDNA(obsolete=False, questInt=21020, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdfr1.1FaceWeakUndead': QuestDNA(obsolete=False, questInt=21026, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Corpse, num=6, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdfr1.2FaceStrongerUndead': QuestDNA(obsolete=False, questInt=21027, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Carrion, num=6, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdfr1.3FaceStrongUndead': QuestDNA(obsolete=False, questInt=21028, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Cadaver, num=6, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdfr2.1payment': QuestDNA(obsolete=False, questInt=21030, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.CarrionKnife, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdfr2.2payment': QuestDNA(obsolete=False, questInt=21031, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Carrion, num=14, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdfr2.3payment': QuestDNA(obsolete=False, questInt=21032, tasks=(DefeatTaskDNA(location=LocationIds.DEL_FUEGO_ALL, enemyType=AvatarTypes.Cadaver, num=4, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdf.1visitRomany': QuestDNA(obsolete=False, questInt=21025, tasks=(VisitTaskDNA(npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptpdf.2FindArtifact': QuestDNA(obsolete=False, questInt=21029, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.EyeOfNabai, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(PadresDelFuegoTeleportReward(), ReputationReward(amount=ExpRewards.MEDIUM)), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt2.recoverNavyCoats': QuestDNA(obsolete=False, questInt=23005, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.NavyCoat, num=5, enemyType=AvatarTypes.Guard, level=0, probability=Probability.INFREQUENT, maxAttempts=Attempts.RARE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt2.recoverNavyPants': QuestDNA(obsolete=False, questInt=23006, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.NavyPants, num=5, enemyType=AvatarTypes.Guard, level=0, probability=Probability.INFREQUENT, maxAttempts=Attempts.RARE),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt2.recoverABadge': QuestDNA(obsolete=False, questInt=23007, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.SargeantsBadge, num=1, enemyType=AvatarTypes.Sergeant, level=0, probability=Probability.INFREQUENT, maxAttempts=Attempts.FREQUENT),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt2.recoverNavyMuskets': QuestDNA(obsolete=False, questInt=23003, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.NavyMuskets, num=5, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), prereqs=(GetFrom(questGivers=(NPCIds.SHANE_MCGREENY,)),), returnGiverIds=(NPCIds.SHANE_MCGREENY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=10, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt2.recoverLocationDocument': QuestDNA(obsolete=False, questInt=23008, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.FortTreasureDocument, num=1, enemyType=AvatarTypes.Veteran, level=0, probability=Probability.INFREQUENT, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(PlayingCardTier2Reward(),), returnGiverIds=(NPCIds.SHANE_MCGREENY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tr.1visitElizabeth': QuestDNA(obsolete=False, questInt=19800, tasks=(VisitTaskDNA(npcId=NPCIds.ELIZABETH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tr.2captureLuther': QuestDNA(obsolete=False, questInt=19801, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.LUTHER, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_CENTURION, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tr.3visitElizabeth': QuestDNA(obsolete=False, questInt=19802, tasks=(VisitTaskDNA(npcId=NPCIds.ELIZABETH),), rewards=(CollectReward(amount=InventoryType.Collection_Set3),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tr2.1deliverPaintings': QuestDNA(obsolete=False, questInt=19803, tasks=(DeliverItemTaskDNA(item=QuestItems.Painting, num=9, npcId=NPCIds.ELIZABETH),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.ELIZABETH,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.ELIZABETH), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tt.2recoverTeeth': QuestDNA(obsolete=False, questInt=19809, questLink='TreasureTeeth2', tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_ALL, item=QuestItems.Tooth, num=25, enemyType=AvatarTypes.CorpseCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(CollectReward(amount=InventoryType.Collection_Set5),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tt.1visitJack': QuestDNA(obsolete=False, questInt=19810, tasks=(VisitTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tt.2recoverTooth': QuestDNA(obsolete=False, questInt=19811, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Tooth, num=1, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(CollectReward(amount=InventoryType.Collection_Set5),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tt2.1deliverTeeth': QuestDNA(obsolete=False, questInt=19812, tasks=(DeliverItemTaskDNA(location=LocationIds.FAITHFULBRIDE_TAVERN, item=QuestItems.Tooth, num=28, npcId=NPCIds.JACK),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tt2.2recoverGold': QuestDNA(obsolete=False, questInt=19813, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Treasure, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(GoldReward(amount=18), ReputationReward(amount=ExpRewards.LARGE)), returnGiverIds=(NPCIds.JACK,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.JACK), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tm.1visitWill': QuestDNA(obsolete=False, questInt=19820, tasks=(VisitTaskDNA(npcId=NPCIds.WILL_TURNER),), rewards=(CollectReward(amount=InventoryType.Collection_Set4),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tm2.1deliverMedals': QuestDNA(obsolete=False, questInt=19821, tasks=(DeliverItemTaskDNA(item=QuestItems.Medal, num=14, npcId=NPCIds.WILL_TURNER),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.WILL_TURNER,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tm2.2recoverReagent': QuestDNA(obsolete=False, questInt=19822, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Reagent, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.VERY_RARE, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(GoldReward(amount=21), ReputationReward(amount=ExpRewards.SMALL)), returnGiverIds=(NPCIds.WILL_TURNER,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tm2.2recoverReagents': QuestDNA(obsolete=False, questInt=19823, questLink='TreasureRings', tasks=(RecoverShipItemTaskDNA(item=QuestItems.Reagent, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_MARAUDER, level=0, isFlagship=False),), rewards=(GoldReward(amount=21), ReputationReward(amount=ExpRewards.SMALL)), returnGiverIds=(NPCIds.WILL_TURNER,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.WILL_TURNER), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'trr.1visitBarbossa': QuestDNA(obsolete=False, questInt=19830, tasks=(VisitTaskDNA(npcId=NPCIds.BARBOSSA),), rewards=(CollectReward(amount=InventoryType.Collection_Set6),), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.BARBOSSA), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'trr2.1deliverRings': QuestDNA(obsolete=False, questInt=19831, tasks=(DeliverItemTaskDNA(item=QuestItems.Ring, num=10, npcId=NPCIds.BARBOSSA),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.BARBOSSA,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.BARBOSSA), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'trr2.2recoverRing': QuestDNA(obsolete=False, questInt=19832, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Ring, num=1, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.BARBOSSA,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.BARBOSSA), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'trr2.2recoverRings': QuestDNA(obsolete=False, questInt=19927, questLink='TreasureChess', tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Ring, num=25, enemyType=AvatarTypes.CadaverCutlass, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.BARBOSSA,), instanceInfo=(INSTANCE_REF_TYPE_OBJECT, NPCIds.BARBOSSA), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tc.1visitJoshamee': QuestDNA(obsolete=False, questInt=19835, tasks=(VisitTaskDNA(npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tc.2poker': QuestDNA(obsolete=False, questInt=19836, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(CollectReward(amount=InventoryType.Collection_Set7),), returnGiverIds=(NPCIds.JOSHAMEE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tc2.1deliverChess': QuestDNA(obsolete=False, questInt=19837, tasks=(DeliverItemTaskDNA(item=QuestItems.ChessPiece, num=32, npcId=NPCIds.JOSHAMEE),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.JOSHAMEE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tf.1visitTia': QuestDNA(obsolete=False, questInt=19840, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(CollectReward(amount=InventoryType.Collection_Set8),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tf2.1deliverFigurines': QuestDNA(obsolete=False, questInt=19841, tasks=(DeliverItemTaskDNA(item=QuestItems.Figurine, num=15, npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), returnGiverIds=(NPCIds.TIA_DALMA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ccbm.1poker': QuestDNA(obsolete=False, questInt=19945, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.BLACK_MACK,)),), returnGiverIds=(NPCIds.BLACK_MACK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ccbm.2defeatSkeleton': QuestDNA(obsolete=False, questInt=19946, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=1, level=0),), rewards=(PlayingCardReward(amount=1),), returnGiverIds=(NPCIds.BLACK_MACK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ccbm.1winAtPoker': QuestDNA(obsolete=False, questInt=19947, tasks=(PokerTaskDNA(gold=PokerPots.SMALL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.BLACK_MACK,)),), returnGiverIds=(NPCIds.BLACK_MACK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ccbm.2defeatUndead': QuestDNA(obsolete=False, questInt=19948, questLink='TeleportTotem', tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ALL, enemyType=AvatarTypes.MireKnife, num=16, level=0),), rewards=(PlayingCardReward(amount=1),), returnGiverIds=(NPCIds.BLACK_MACK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptr1.1recoverBat': QuestDNA(obsolete=False, questInt=21002, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatWings, num=3, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptr1.2recoverWasp': QuestDNA(obsolete=False, questInt=21003, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EssenceOfWasp, num=3, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptr1.3recoverLeaf': QuestDNA(obsolete=False, questInt=21005, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FlyTrapLeaf, num=1, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptr1.1tortugaPayment': QuestDNA(obsolete=False, questInt=21017, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUBA_ALL, item=QuestItems.Tooth, num=20, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptr1.2tortugaPayment': QuestDNA(obsolete=False, questInt=21018, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUBA_ALL, item=QuestItems.AlligatorTail, num=16, enemyType=AvatarTypes.BayouGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tptr1.3tortugaPayment': QuestDNA(obsolete=False, questInt=21019, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.CUBA_ALL, item=QuestItems.FlyTrapLeaf, num=3, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tpt.1visitTia': QuestDNA(obsolete=False, questInt=21001, tasks=(VisitTaskDNA(npcId=NPCIds.TIA_DALMA),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'tpt.2recoverArtifact': QuestDNA(obsolete=False, questInt=21006, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.TortuganArtifact, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(TeleportTotemReward(), ReputationReward(amount=ExpRewards.MEDIUM)), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'bw1.1recoverpowder': QuestDNA(obsolete=False, questInt=22000, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Powder, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_GREYHOUND, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), prereqs=(GetFrom(questGivers=(NPCIds.BARTHOLOMEW_WATKINS,)),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'bw1.1recovercotton': QuestDNA(obsolete=False, questInt=22002, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CottonYard, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.EITC_BLOODHOUND, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), prereqs=(GetFrom(questGivers=(NPCIds.BARTHOLOMEW_WATKINS,)),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'bw1.1recoveriron': QuestDNA(obsolete=False, questInt=22004, tasks=(RecoverShipItemTaskDNA(item=QuestItems.IronBar, num=1, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, hull=ShipGlobals.NAVY_FERRET, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), prereqs=(GetFrom(questGivers=(NPCIds.BARTHOLOMEW_WATKINS,)),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'lu1.recovercrabshells': QuestDNA(obsolete=False, questInt=22300, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrabShell, num=2, enemyType=AvatarTypes.Crab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(GoldReward(amount=5),), prereqs=(GetFrom(questGivers=(NPCIds.LUCINDA,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'lu1.recoveralligatortails': QuestDNA(obsolete=False, questInt=22302, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.AlligatorTail, num=2, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'lu1.recoverscorpionblood': QuestDNA(obsolete=False, questInt=22306, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScorpionBlood, num=2, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_FREQUENT),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dd1.recoverwood': QuestDNA(obsolete=False, questInt=22400, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), prereqs=(GetFrom(questGivers=(NPCIds.DARBY_DRYDOCK,)),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dd1.recoveriron': QuestDNA(obsolete=False, questInt=22402, tasks=(RecoverShipItemTaskDNA(item=QuestItems.IronBar, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dd1.recovercopper': QuestDNA(obsolete=False, questInt=22404, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CopperRod, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dd1.recovercloth': QuestDNA(obsolete=False, questInt=22406, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Sailcloth, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jm1.1recoverrumbarrels': QuestDNA(obsolete=False, questInt=22500, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), prereqs=(GetFrom(questGivers=(NPCIds.JOSIE_MCREEDY,)),), returnGiverIds=(NPCIds.JOSIE_MCREEDY,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jm1.3recoverwhiskeybarrels': QuestDNA(obsolete=False, questInt=22502, tasks=(RecoverShipItemTaskDNA(item=QuestItems.WhiskeyBarrel, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.JOSIE_MCREEDY,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jm1.5recoverglasses': QuestDNA(obsolete=False, questInt=22504, tasks=(RecoverShipItemTaskDNA(item=QuestItems.SetOfBarGlasses, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.JOSIE_MCREEDY,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jm1.7recoverhoney': QuestDNA(obsolete=False, questInt=22506, tasks=(RecoverShipItemTaskDNA(item=QuestItems.HoneyBarrel, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.JOSIE_MCREEDY,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rs1.1recovertools': QuestDNA(obsolete=False, questInt=22600, tasks=(RecoverShipItemTaskDNA(item=QuestItems.SmithingTools, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), prereqs=(GetFrom(questGivers=(NPCIds.R_SMITH_PEWTERER,)),), returnGiverIds=(NPCIds.R_SMITH_PEWTERER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rs1.3recoveriron': QuestDNA(obsolete=False, questInt=22602, tasks=(RecoverShipItemTaskDNA(item=QuestItems.IronBar, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.R_SMITH_PEWTERER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'rs1.5recovercoal': QuestDNA(obsolete=False, questInt=22604, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CoalBag, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(GoldReward(amount=5),), returnGiverIds=(NPCIds.R_SMITH_PEWTERER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pc.1visitSam': QuestDNA(obsolete=False, questInt=22900, tasks=(VisitTaskDNA(npcId=NPCIds.SAM_SEABONES),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), prereqs=(GetFrom(questGivers=(NPCIds.PETER_CHIPPARR,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pc.2visitPeter': QuestDNA(obsolete=False, questInt=22901, tasks=(VisitTaskDNA(npcId=NPCIds.PETER_CHIPPARR),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pc.3QuestionNavyOfficers': QuestDNA(obsolete=False, questInt=22902, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.PeterAttackerName, num=1, enemyType=AvatarTypes.Navy, level=0, probability=Probability.RARE, maxAttempts=Attempts.FREQUENT),), rewards=(GoldReward(amount=5), ReputationReward(amount=ExpRewards.TRIVIAL)), returnGiverIds=(NPCIds.PETER_CHIPPARR,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pc.5FindNavySwine': QuestDNA(obsolete=False, questInt=22904, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.OFFICER_MILLER, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.INFREQUENT, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pc.6MaroonNavySwine': QuestDNA(obsolete=False, questInt=22905, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.OFFICER_MILLER),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pc.7visitPeter3': QuestDNA(obsolete=False, questInt=22906, tasks=(VisitTaskDNA(npcId=NPCIds.PETER_CHIPPARR),), rewards=(GoldReward(amount=5), ReputationReward(amount=ExpRewards.SMALL)), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mercenary_job': QuestDNA(obsolete=False, questInt=20027, tasks=(RandomizedDefeatTaskDNA(),), prereqs=(GetFrom(questGivers=(NPCIds.JOSIE_MCREEDY,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'naval_mercenary_job': QuestDNA(obsolete=False, questInt=20028, tasks=(RandomizedDefeatShipTaskDNA(),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mercenary_job_tortuga': QuestDNA(obsolete=False, questInt=20029, tasks=(RandomizedDefeatTaskDNA(),), prereqs=(GetFrom(questGivers=(NPCIds.JOHNNY_MCVANE,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'naval_mercenary_job_tortuga': QuestDNA(obsolete=False, questInt=20030, tasks=(RandomizedDefeatShipTaskDNA(),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt1.defeatCadets': QuestDNA(obsolete=False, questInt=23000, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ALL, enemyType=AvatarTypes.Cadet, num=8, level=0),), prereqs=(GetFrom(questGivers=(NPCIds.SHANE_MCGREENY,)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt1.retrievekey': QuestDNA(obsolete=False, questInt=23001, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.PrisonKey, num=1, enemyType=AvatarTypes.Guard, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(PlayingCardTier1Reward(),), returnGiverIds=(NPCIds.SHANE_MCGREENY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'0': QuestDNA(obsolete=False, questInt=20011, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=2, level=0),), rewards=(GoldReward(amount=3),), prereqs=(GetFrom(questGivers=(NPCIds.SAM_SEABONES,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'1141416661.17sdnaik': QuestDNA(obsolete=False, questInt=20015, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Earring, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.FREQUENT),), prereqs=(GetFrom(questGivers=(NPCIds.SAM_SEABONES,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'1141781456.75sdnaik': QuestDNA(obsolete=False, questInt=20017, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.Earring, num=1, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(GoldReward(amount=3),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'2': QuestDNA(obsolete=False, questInt=20018, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Key, num=1, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(GoldReward(amount=3),), prereqs=(GetFrom(questGivers=(NPCIds.SAM_SEABONES,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt3.stealGuardSchedule': QuestDNA(obsolete=False, questInt=23020, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.PORT_ROYAL_ALL, item=QuestItems.GuardSchedule, num=1, enemyType=AvatarTypes.Sergeant, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), prereqs=(GetFrom(questGivers=(NPCIds.SHANE_MCGREENY,)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=20, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt3.defeatVeterans': QuestDNA(obsolete=False, questInt=23021, tasks=(DefeatTaskDNA(location=LocationIds.PORT_ROYAL_ALL, enemyType=AvatarTypes.Veteran, num=2, level=0),), returnGiverIds=(NPCIds.SHANE_MCGREENY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt3.stealShipSchedule': QuestDNA(obsolete=False, questInt=23023, tasks=(RecoverShipItemTaskDNA(item=QuestItems.NavySchedule, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt3.maroonCaptain': QuestDNA(obsolete=False, questInt=23024, tasks=(MaroonNPCTaskDNA(location=LocationIds.ANY_WILD_ISLAND, npcId=NPCIds.COMMANDER_GENTRY),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt3.startCrimeWave': QuestDNA(obsolete=False, questInt=23025, tasks=(VisitTaskDNA(npcId=NPCIds.SIMON_HORNBOW),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt3.getReward': QuestDNA(obsolete=False, questInt=23026, tasks=(VisitTaskDNA(npcId=NPCIds.SHANE_MCGREENY),), rewards=(PlayingCardTier3Reward(),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'cards.prt3.captureCaptain': QuestDNA(obsolete=False, questInt=23027, tasks=(CaptureShipNPCTaskDNA(npcId=NPCIds.COMMANDER_GENTRY, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.INFREQUENT, hull=ShipIds.ANY_WARSHIP, faction=AvatarTypes.Navy, level=0, isFlagship=False),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'FathersDay2008.1visitGiladoga': QuestDNA(obsolete=False, questInt=10002, tasks=(VisitTaskDNA(location=LocationIds.RATSKELLAR_TAVERN, npcId=NPCIds.GILADOGA),), rewards=(ReputationReward(amount=ExpRewards.MEDIUM),), prereqs=(GetFrom(questGivers=(NPCIds.JACK_ROWDY_ROOSTER,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'FathersDay2008.3visitBronzeJohn': QuestDNA(obsolete=False, questInt=10005, tasks=(VisitTaskDNA(npcId=NPCIds.BRONZE_JOHN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'FathersDay2008t2.1bribeBronzeJohn': QuestDNA(obsolete=False, questInt=10006, tasks=(BribeNPCTaskDNA(npcId=NPCIds.BRONZE_JOHN, gold=Bribes.LARGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BRONZE_JOHN,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'FathersDay2008t4.1sinkShips': QuestDNA(obsolete=False, questInt=10007, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CaptTeague, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, hull=ShipIds.ANY_LARGE_SHIP, level=0, isFlagship=False),), rewards=(TempDoubleRepReward(amount=DoubleRepTime.THREEHOUR), GoldAmountReward(amount=500)), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'FathersDay2008t1.1RockCrabs': QuestDNA(obsolete=False, questInt=10003, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=3, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'FathersDay2008t1.2WitchDoctor': QuestDNA(obsolete=False, questInt=10004, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Paper, num=1, enemyType=AvatarTypes.Muck, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mercenary_job_em': QuestDNA(obsolete=False, questInt=20031, tasks=(RandomizedDefeatTaskDNA(),), prereqs=(GetFrom(questGivers=(NPCIds.CAPTAIN_JOB,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa1.trackDownJewels': QuestDNA(obsolete=False, questInt=24002, tasks=(VisitTaskDNA(npcId=NPCIds.OLIVIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.PERLA_ALODIA,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa1.bribeOlivier': QuestDNA(obsolete=False, questInt=24003, tasks=(BribeNPCTaskDNA(npcId=NPCIds.OLIVIER, gold=Bribes.LARGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa1.gatherRubyStones': QuestDNA(obsolete=False, questInt=24004, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Rubies, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PERLA_ALODIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa1.gatherAmethystStones': QuestDNA(obsolete=False, questInt=24005, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Amethyst, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PERLA_ALODIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa1.gatherSapphireStones': QuestDNA(obsolete=False, questInt=24006, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Sapphire, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PERLA_ALODIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa1.defeatPerlasEnemy': QuestDNA(obsolete=False, questInt=24007, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=10, level=15),), rewards=(JewelryQuestReward(amount=JewelryGlobals.PERLA_ALODIA_QUEST_A),), returnGiverIds=(NPCIds.PERLA_ALODIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.sinkEITCShipA': QuestDNA(obsolete=False, questInt=24105, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_EITC_CORVETTE, faction=AvatarTypes.TradingCo, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.sinkEITCShipB': QuestDNA(obsolete=False, questInt=24106, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_EITC_SEA_VIPER, faction=AvatarTypes.TradingCo, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.sinkEITCShipC': QuestDNA(obsolete=False, questInt=24107, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_EITC_MARAUDER, faction=AvatarTypes.TradingCo, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.sinkEITCShipD': QuestDNA(obsolete=False, questInt=24108, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_EITC_BARRACUDA, faction=AvatarTypes.TradingCo, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.visitJohnnyMcvane': QuestDNA(obsolete=False, questInt=24102, tasks=(VisitTaskDNA(npcId=NPCIds.JOHNNY_MCVANE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.DAJIN_MING,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.visitOrindaLeJeune': QuestDNA(obsolete=False, questInt=24103, tasks=(VisitTaskDNA(npcId=NPCIds.ORINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.sinkFirstEITCShip': QuestDNA(obsolete=False, questInt=24104, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.TradingCo, num=1, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.visitDajinMing': QuestDNA(obsolete=False, questInt=24109, tasks=(VisitTaskDNA(npcId=NPCIds.DAJIN_MING),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.defeatNavyShips': QuestDNA(obsolete=False, questInt=24111, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=10, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DAJIN_MING,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm1.visitOrindaLeJeune2': QuestDNA(obsolete=False, questInt=24114, tasks=(VisitTaskDNA(npcId=NPCIds.ORINDA),), rewards=(JewelryQuestReward(amount=JewelryGlobals.DAJIN_MING_QUEST_A),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.visitBingham': QuestDNA(obsolete=False, questInt=24201, tasks=(VisitTaskDNA(npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.JEWELER_SMITTY,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatBinghamListA': QuestDNA(obsolete=False, questInt=24202, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatBinghamListB': QuestDNA(obsolete=False, questInt=24203, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Scorpion, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatBinghamListC': QuestDNA(obsolete=False, questInt=24204, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Bat, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatBinghamListD': QuestDNA(obsolete=False, questInt=24205, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Wasp, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatBinghamListE': QuestDNA(obsolete=False, questInt=24206, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Alligator, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.visitJimWavemonger': QuestDNA(obsolete=False, questInt=24208, tasks=(VisitTaskDNA(npcId=NPCIds.JIM_WAVEMONGER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatWarmongerListA': QuestDNA(obsolete=False, questInt=24209, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CopperRod, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JIM_WAVEMONGER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatWarmongerListB': QuestDNA(obsolete=False, questInt=24210, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Oil, num=3, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JIM_WAVEMONGER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatWarmongerListC': QuestDNA(obsolete=False, questInt=24211, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Steel, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JIM_WAVEMONGER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.defeatWarmongerListD': QuestDNA(obsolete=False, questInt=24212, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Coal, num=10, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JIM_WAVEMONGER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.visitBingham2': QuestDNA(obsolete=False, questInt=24214, tasks=(VisitTaskDNA(npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js1.visitJewelerSmitty': QuestDNA(obsolete=False, questInt=24215, tasks=(VisitTaskDNA(npcId=NPCIds.JEWELER_SMITTY),), rewards=(JewelryQuestReward(amount=JewelryGlobals.JEWELER_SMITTY_QUEST_A),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.visitLucinda': QuestDNA(obsolete=False, questInt=24301, tasks=(VisitTaskDNA(npcId=NPCIds.LUCINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.SOLOMON_ODOUGAL,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.visitJimWavemonger': QuestDNA(obsolete=False, questInt=24307, tasks=(VisitTaskDNA(npcId=NPCIds.JIM_WAVEMONGER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.recoverCursedWood': QuestDNA(obsolete=False, questInt=24308, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.CursedWood, num=2, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.deliverFineInk': QuestDNA(obsolete=False, questInt=24309, tasks=(DeliverItemTaskDNA(item=QuestItems.FineInk, num=1, npcId=NPCIds.SOLOMON_ODOUGAL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.visitWilliamTurk': QuestDNA(obsolete=False, questInt=24310, tasks=(VisitTaskDNA(npcId=NPCIds.WILLIAM_TURK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.playPoker': QuestDNA(obsolete=False, questInt=24311, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.playBlackjack': QuestDNA(obsolete=False, questInt=24312, tasks=(BlackjackTaskDNA(gold=PokerPots.MEDIUM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.deliverTattooPattern': QuestDNA(obsolete=False, questInt=24314, tasks=(DeliverItemTaskDNA(item=QuestItems.TattooPattern, num=1, npcId=NPCIds.SOLOMON_ODOUGAL),), rewards=(TattooQuestReward(amount=TattooGlobals.SOLOMON_ODOUGAL_QUEST_A),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.recoverBlood': QuestDNA(obsolete=False, questInt=24302, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Blood, num=10, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.recoverGatorSaliva': QuestDNA(obsolete=False, questInt=24303, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorSaliva, num=5, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.recoverNeedle': QuestDNA(obsolete=False, questInt=24304, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Needle, num=5, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.recoverBoneDust': QuestDNA(obsolete=False, questInt=24305, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneDust, num=10, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd1.recoverSulfur': QuestDNA(obsolete=False, questInt=24306, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Sulfur, num=5, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.visitButcherBrown': QuestDNA(obsolete=False, questInt=24401, tasks=(VisitTaskDNA(npcId=NPCIds.BUTCHER_BROWN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.LALA_LOVEL,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverAlligatorMeat': QuestDNA(obsolete=False, questInt=24403, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=5, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverFlyTrapMeat': QuestDNA(obsolete=False, questInt=24404, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=5, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverSkeletonMeat': QuestDNA(obsolete=False, questInt=24405, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=5, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverRockCrabMeat': QuestDNA(obsolete=False, questInt=24406, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=5, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverBatMeat': QuestDNA(obsolete=False, questInt=24407, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Meat, num=5, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.visitLala': QuestDNA(obsolete=False, questInt=24408, tasks=(VisitTaskDNA(npcId=NPCIds.LALA_LOVEL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.visitFabiola': QuestDNA(obsolete=False, questInt=24409, tasks=(VisitTaskDNA(npcId=NPCIds.FABIOLA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverBoneDust': QuestDNA(obsolete=False, questInt=24410, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BoneDust, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverWax': QuestDNA(obsolete=False, questInt=24411, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Wax, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverTar': QuestDNA(obsolete=False, questInt=24412, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Tar, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverBattleSaltWater': QuestDNA(obsolete=False, questInt=24413, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BattleSaltWater, num=5, maxAttempts=Attempts.VERY_FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.visitLala2': QuestDNA(obsolete=False, questInt=24415, tasks=(VisitTaskDNA(npcId=NPCIds.LALA_LOVEL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.visitBlacksmithFlinty': QuestDNA(obsolete=False, questInt=24416, tasks=(VisitTaskDNA(npcId=NPCIds.BLACKSMITH_FLINTY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.recoverIronBars': QuestDNA(obsolete=False, questInt=24417, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.IronBar, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BLACKSMITH_FLINTY,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll1.visitLala3': QuestDNA(obsolete=False, questInt=24418, tasks=(VisitTaskDNA(npcId=NPCIds.LALA_LOVEL),), rewards=(TattooQuestReward(amount=TattooGlobals.LALA_LOVEL_QUEST_A),), returnGiverIds=(NPCIds.LALA_LOVEL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.visitShochettPrymme': QuestDNA(obsolete=False, questInt=24501, tasks=(VisitTaskDNA(npcId=NPCIds.SHOCHETT_PRYMME),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.MERCEDES_CORAZON,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.recoverEITCList': QuestDNA(obsolete=False, questInt=24508, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_CABINET, item=QuestItems.Document, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.deliverDocument': QuestDNA(obsolete=False, questInt=24509, tasks=(DeliverItemTaskDNA(item=QuestItems.Document, num=1, npcId=NPCIds.RICO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.RICO,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.recoverInformation': QuestDNA(obsolete=False, questInt=24510, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Message, num=1, enemyType=AvatarTypes.TradingCo, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.bribeRico': QuestDNA(obsolete=False, questInt=24511, tasks=(BribeNPCTaskDNA(npcId=NPCIds.RICO, gold=Bribes.LARGE, bribeType=1),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.RICO,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.recoverDeskKey': QuestDNA(obsolete=False, questInt=24512, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_BARRELS, item=QuestItems.Key, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.recoverDeed': QuestDNA(obsolete=False, questInt=24513, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_DESK, item=QuestItems.Deed, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.deliverDeed': QuestDNA(obsolete=False, questInt=24514, tasks=(DeliverItemTaskDNA(item=QuestItems.Deed, num=1, npcId=NPCIds.MERCEDES_CORAZON),), rewards=(TattooQuestReward(amount=TattooGlobals.MERCEDES_CORAZON_QUEST_A),), returnGiverIds=(NPCIds.MERCEDES_CORAZON,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.defeatSkeletons': QuestDNA(obsolete=False, questInt=24502, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneShavings, num=10, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.defeatVampireBat': QuestDNA(obsolete=False, questInt=24503, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatWings, num=2, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.defeatFlyTrapsA': QuestDNA(obsolete=False, questInt=24504, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FlyTrapRoot, num=5, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.defeatFlyTrapsB': QuestDNA(obsolete=False, questInt=24505, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FlyTrapLeaf, num=5, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.defeatDreadScorpions': QuestDNA(obsolete=False, questInt=24506, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScorpionVenom, num=5, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc1.defeatAlligators': QuestDNA(obsolete=False, questInt=24507, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.AlligatorTail, num=10, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.visitOlivier': QuestDNA(obsolete=False, questInt=24601, tasks=(VisitTaskDNA(npcId=NPCIds.OLIVIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.PERLA_ALODIA,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverNavyFlags': QuestDNA(obsolete=False, questInt=24602, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Flag, num=6, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverEITCFlags': QuestDNA(obsolete=False, questInt=24603, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Flag, num=6, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverNavyPants': QuestDNA(obsolete=False, questInt=24605, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.NavyPants, num=10, enemyType=AvatarTypes.Navy, level=10, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverNavyCoats': QuestDNA(obsolete=False, questInt=24606, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.NavyCoat, num=10, enemyType=AvatarTypes.Navy, level=10, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverEITCCoats': QuestDNA(obsolete=False, questInt=24607, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EITCCoat, num=10, enemyType=AvatarTypes.TradingCo, level=10, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverEITCPants': QuestDNA(obsolete=False, questInt=24608, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EITCPants, num=10, enemyType=AvatarTypes.TradingCo, level=10, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.visitPerla': QuestDNA(obsolete=False, questInt=24610, tasks=(VisitTaskDNA(npcId=NPCIds.PERLA_ALODIA),), rewards=(JewelryQuestReward(amount=JewelryGlobals.PERLA_ALODIA_QUEST_B),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverWarrants': QuestDNA(obsolete=False, questInt=24611, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_ALL, item=QuestItems.ArrestWarrant, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverPrisonKeys': QuestDNA(obsolete=False, questInt=24612, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, item=QuestItems.PrisonKey, num=5, enemyType=AvatarTypes.Navy, level=10, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'pa2.recoverSchedule': QuestDNA(obsolete=False, questInt=24613, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_DESK, item=QuestItems.NavySchedule, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.recoverShopApplication': QuestDNA(obsolete=False, questInt=24701, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.EITC_OUTPOST, containerId=PropIds.T_OUTPOST_DESK, item=QuestItems.ShopApplication, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.DAJIN_MING,)),), returnGiverIds=(NPCIds.DAJIN_MING,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.deliverShopApplication': QuestDNA(obsolete=False, questInt=24702, tasks=(DeliverItemTaskDNA(item=QuestItems.ShopApplication, num=1, npcId=NPCIds.DAJIN_MING),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.visitBoatswainBill': QuestDNA(obsolete=False, questInt=24703, tasks=(VisitTaskDNA(npcId=NPCIds.BOATSWAIN_BILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.recoverCoinBag': QuestDNA(obsolete=False, questInt=24704, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.BOATSWAINS_HOUSE, containerId=PropIds.T_BOATSWAIN_DESK, item=QuestItems.CoinBag, num=1, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOATSWAIN_BILL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.deliverCoinBag': QuestDNA(obsolete=False, questInt=24705, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.BIG_PHIL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BIG_PHIL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.recoverChickens': QuestDNA(obsolete=False, questInt=24706, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chicken, num=6, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BIG_PHIL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.recoverPigs': QuestDNA(obsolete=False, questInt=24707, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Pig, num=6, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BIG_PHIL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.visitSeamstressAnne': QuestDNA(obsolete=False, questInt=24710, tasks=(VisitTaskDNA(npcId=NPCIds.SEAMSTRESS_ANNE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.recoverAlligatorHides': QuestDNA(obsolete=False, questInt=24711, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.recoverFlyTrapHides': QuestDNA(obsolete=False, questInt=24712, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.recoverBatHides': QuestDNA(obsolete=False, questInt=24713, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.visitBoatswainBill2': QuestDNA(obsolete=False, questInt=24715, tasks=(VisitTaskDNA(npcId=NPCIds.BOATSWAIN_BILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BOATSWAIN_BILL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.deliverContract': QuestDNA(obsolete=False, questInt=24716, tasks=(DeliverItemTaskDNA(item=QuestItems.Contract, num=1, npcId=NPCIds.DAJIN_MING),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DAJIN_MING,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.defeatEITC': QuestDNA(obsolete=False, questInt=24717, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.TradingCo, num=5, level=0),), rewards=(JewelryQuestReward(amount=JewelryGlobals.DAJIN_MING_QUEST_B),), returnGiverIds=(NPCIds.DAJIN_MING,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'dm2.visitBoatswainBill3': QuestDNA(obsolete=False, questInt=24718, tasks=(VisitTaskDNA(npcId=NPCIds.BOATSWAIN_BILL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.visitSmitty': QuestDNA(obsolete=False, questInt=24801, tasks=(VisitTaskDNA(npcId=NPCIds.JEWELER_SMITTY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.SARAH,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.deliverBloodSample': QuestDNA(obsolete=False, questInt=24802, tasks=(DeliverItemTaskDNA(item=QuestItems.BloodSample, num=1, npcId=NPCIds.LUCINDA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.LUCINDA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.deliverList': QuestDNA(obsolete=False, questInt=24803, tasks=(DeliverItemTaskDNA(item=QuestItems.List, num=1, npcId=NPCIds.EDWARD_SHACKLEBY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_SHACKLEBY,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.bribeEdward': QuestDNA(obsolete=False, questInt=24804, tasks=(BribeNPCTaskDNA(npcId=NPCIds.EDWARD_SHACKLEBY, gold=Bribes.LARGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_SHACKLEBY,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.recoverMedicine': QuestDNA(obsolete=False, questInt=24805, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Remedy, num=6, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_CORVETTE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SARAH,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.recoverBandages': QuestDNA(obsolete=False, questInt=24806, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Bandages, num=4, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_SEA_VIPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SARAH,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.recoverMedicalTools': QuestDNA(obsolete=False, questInt=24807, tasks=(RecoverShipItemTaskDNA(item=QuestItems.MedicalTools, num=2, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_BARRACUDA, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SARAH,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.findSmittysStuff': QuestDNA(obsolete=False, questInt=24809, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.PersonalEffects, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SARAH,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.deliverMessage': QuestDNA(obsolete=False, questInt=24810, tasks=(DeliverItemTaskDNA(item=QuestItems.Message, num=1, npcId=NPCIds.EDWARD_STORMHAWK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_STORMHAWK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'js2.defeatNavyGuards': QuestDNA(obsolete=False, questInt=24811, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Navy, num=10, level=0),), rewards=(JewelryQuestReward(amount=JewelryGlobals.JEWELER_SMITTY_QUEST_B),), returnGiverIds=(NPCIds.SARAH,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.visitFernando': QuestDNA(obsolete=False, questInt=24901, tasks=(VisitTaskDNA(npcId=NPCIds.FERNANDO),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.MERCEDES_CORAZON,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.recoverVenom': QuestDNA(obsolete=False, questInt=24902, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Venom, num=5, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.recoverClaw': QuestDNA(obsolete=False, questInt=24903, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrabClaw, num=5, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.recoverBoneDust': QuestDNA(obsolete=False, questInt=24904, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneDust, num=5, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.recoverBarnacles': QuestDNA(obsolete=False, questInt=24906, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Barnacles, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.recoverSaltWater': QuestDNA(obsolete=False, questInt=24907, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BattleSaltWater, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.recoverCursedWood': QuestDNA(obsolete=False, questInt=24908, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedWood, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.deliverSalve': QuestDNA(obsolete=False, questInt=24910, tasks=(DeliverItemTaskDNA(item=QuestItems.Salve, num=1, npcId=NPCIds.OLIVIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.playBlackjack': QuestDNA(obsolete=False, questInt=24911, tasks=(BlackjackTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.FERNANDO,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'mc2.visitMercedes': QuestDNA(obsolete=False, questInt=24912, tasks=(VisitTaskDNA(npcId=NPCIds.MERCEDES_CORAZON),), rewards=(TattooQuestReward(amount=TattooGlobals.MERCEDES_CORAZON_QUEST_B),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.visitSlim': QuestDNA(obsolete=False, questInt=25001, tasks=(VisitTaskDNA(npcId=NPCIds.SLIM),), prereqs=(GetFrom(questGivers=(NPCIds.LALA_LOVEL,)),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.deliverCoinBag': QuestDNA(obsolete=False, questInt=25002, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.JACK_REDRAT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JACK_REDRAT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.recoverDiary': QuestDNA(obsolete=False, questInt=25003, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.Diary, num=1, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JACK_REDRAT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.defeatWildWoodA': QuestDNA(obsolete=False, questInt=25004, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_JUNGLE_C, enemyType=AvatarTypes.Scorpion, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.defeatWildWoodB': QuestDNA(obsolete=False, questInt=25005, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_JUNGLE_C, enemyType=AvatarTypes.Undead, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.defeatWildWoodC': QuestDNA(obsolete=False, questInt=25006, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Alligator, num=2, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.defeatWildWoodD': QuestDNA(obsolete=False, questInt=25007, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Bat, num=2, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.recoverPlanks': QuestDNA(obsolete=False, questInt=25009, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.recoverNails': QuestDNA(obsolete=False, questInt=25010, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Nail, num=15, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.recoverSaw': QuestDNA(obsolete=False, questInt=25011, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Saw, num=5, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.recoverBeams': QuestDNA(obsolete=False, questInt=25012, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Beam, num=5, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.recoverTin': QuestDNA(obsolete=False, questInt=25013, tasks=(RecoverShipItemTaskDNA(item=QuestItems.TinShipment, num=5, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.visitLala': QuestDNA(obsolete=False, questInt=25015, tasks=(VisitTaskDNA(npcId=NPCIds.LALA_LOVEL),), rewards=(TattooQuestReward(amount=TattooGlobals.LALA_LOVEL_QUEST_B),), returnGiverIds=(NPCIds.LALA_LOVEL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.1cleanupWildwoods': QuestDNA(obsolete=False, questInt=25017, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_JUNGLE_C, enemyType=AvatarTypes.Scorpion, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'ll2.2cleanupWildwoods': QuestDNA(obsolete=False, questInt=25018, tasks=(DefeatTaskDNA(location=LocationIds.TORTUGA_JUNGLE_C, enemyType=AvatarTypes.Undead, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.deliverTattooPattern': QuestDNA(obsolete=False, questInt=25101, tasks=(DeliverItemTaskDNA(item=QuestItems.TattooPattern, num=1, npcId=NPCIds.DARBY_DRYDOCK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.SOLOMON_ODOUGAL,)),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.findShipLog': QuestDNA(obsolete=False, questInt=25102, tasks=(RecoverContainerItemTaskDNA(containerId=PropIds.PR_CRATES, item=QuestItems.ShipLog, num=1, maxAttempts=Attempts.VERY_RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.visitSolomon': QuestDNA(obsolete=False, questInt=25103, tasks=(VisitTaskDNA(npcId=NPCIds.SOLOMON_ODOUGAL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.recoverFamilyHeirlooms': QuestDNA(obsolete=False, questInt=25104, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FamilyHeirlooms, num=1, maxAttempts=Attempts.VERY_RARE, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_MARAUDER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.visitBingham': QuestDNA(obsolete=False, questInt=25105, tasks=(VisitTaskDNA(npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.bribeBingham': QuestDNA(obsolete=False, questInt=25106, tasks=(BribeNPCTaskDNA(npcId=NPCIds.BINGHAM, gold=Bribes.LARGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.defeatEITC': QuestDNA(obsolete=False, questInt=25107, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.TradingCo, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.findPaintingsA': QuestDNA(obsolete=False, questInt=25108, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.ISLA_CANGREJOS, item=QuestItems.Painting, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.findPaintingsB': QuestDNA(obsolete=False, questInt=25109, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.RUMRUNNER_ISLE, item=QuestItems.Painting, num=2, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.findPaintingsC': QuestDNA(obsolete=False, questInt=25110, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.TORTUGA_ALL, item=QuestItems.Painting, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.deliverList': QuestDNA(obsolete=False, questInt=25112, tasks=(DeliverItemTaskDNA(item=QuestItems.List, num=1, npcId=NPCIds.SOLOMON_ODOUGAL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SOLOMON_ODOUGAL,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'sd2.deliverPainting': QuestDNA(obsolete=False, questInt=25113, tasks=(DeliverItemTaskDNA(item=QuestItems.Painting, num=1, npcId=NPCIds.JIM_WAVEMONGER),), rewards=(TattooQuestReward(amount=TattooGlobals.SOLOMON_ODOUGAL_QUEST_B),), returnGiverIds=(NPCIds.JIM_WAVEMONGER,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.visitBingham': QuestDNA(obsolete=False, questInt=25201, tasks=(VisitTaskDNA(npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.deliverOrderA': QuestDNA(obsolete=False, questInt=25202, tasks=(DeliverItemTaskDNA(item=QuestItems.Gun, num=1, npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.deliverOrderB': QuestDNA(obsolete=False, questInt=25203, tasks=(DeliverItemTaskDNA(item=QuestItems.Gun, num=1, npcId=NPCIds.JACK_REDRAT),), rewards=(GoldReward(amount=7), ReputationReward(amount=ExpRewards.SMALL)), returnGiverIds=(NPCIds.JACK_REDRAT,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.deliverOrderC': QuestDNA(obsolete=False, questInt=25204, tasks=(DeliverItemTaskDNA(item=QuestItems.Gun, num=1, npcId=NPCIds.OLIVIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.deliverOrderD': QuestDNA(obsolete=False, questInt=25205, tasks=(DeliverItemTaskDNA(item=QuestItems.Gun, num=1, npcId=NPCIds.BILLY_MCKIDD),), rewards=(GoldReward(amount=4), ReputationReward(amount=ExpRewards.SMALL)), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.deliverOrderE': QuestDNA(obsolete=False, questInt=25206, tasks=(DeliverItemTaskDNA(item=QuestItems.Gun, num=1, npcId=NPCIds.BASTIEN_CRAVEN),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BASTIEN_CRAVEN,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.deliverOrderF': QuestDNA(obsolete=False, questInt=25207, tasks=(DeliverItemTaskDNA(item=QuestItems.Gun, num=1, npcId=NPCIds.ORINDA),), rewards=(GoldReward(amount=6), ReputationReward(amount=ExpRewards.SMALL)), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.playPoker': QuestDNA(obsolete=False, questInt=25209, tasks=(PokerTaskDNA(gold=PokerPots.HUGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.playBlackjack': QuestDNA(obsolete=False, questInt=25210, tasks=(BlackjackTaskDNA(gold=PokerPots.HUGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.defeatBigAlligators': QuestDNA(obsolete=False, questInt=25212, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.BigGator, num=20, level=0, weaponType=InventoryType.PistolRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.defeatSkeletons': QuestDNA(obsolete=False, questInt=25213, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=15, level=0, weaponType=InventoryType.PistolRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.defeatFlyTrap': QuestDNA(obsolete=False, questInt=25214, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.FlyTrap, num=10, level=0, weaponType=InventoryType.PistolRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.defeatVampireBat': QuestDNA(obsolete=False, questInt=25215, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.VampireBat, num=10, level=0, weaponType=InventoryType.PistolRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.defeatScorpion': QuestDNA(obsolete=False, questInt=25216, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Scorpion, num=10, level=0, weaponType=InventoryType.PistolRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.defeatNavy': QuestDNA(obsolete=False, questInt=25218, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Navy, num=15, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.defeatEITC': QuestDNA(obsolete=False, questInt=25219, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.TradingCo, num=15, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.returnOrder': QuestDNA(obsolete=False, questInt=25221, tasks=(DeliverItemTaskDNA(item=QuestItems.GunOrder, num=1, npcId=NPCIds.ALEXANDER_THAYER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.visitThayer': QuestDNA(obsolete=False, questInt=25222, tasks=(VisitTaskDNA(npcId=NPCIds.ALEXANDER_THAYER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.recoverAntiquePistols': QuestDNA(obsolete=False, questInt=25223, tasks=(RecoverShipItemTaskDNA(item=QuestItems.AntiquePistol, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(PistolUpgradeReward(amount=ItemId.PISTOL_L4),), returnGiverIds=(NPCIds.ALEXANDER_THAYER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'at1.0visitThayer': QuestDNA(obsolete=False, questInt=25224, tasks=(VisitTaskDNA(npcId=NPCIds.ALEXANDER_THAYER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.defeatWasps': QuestDNA(obsolete=False, questInt=25301, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Wasp, num=10, level=0, weaponType=InventoryType.DaggerRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.defeatScorpions': QuestDNA(obsolete=False, questInt=25302, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.DreadScorpion, num=10, level=0, weaponType=InventoryType.DaggerRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.defeatSkeletons': QuestDNA(obsolete=False, questInt=25303, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=10, level=0, weaponType=InventoryType.DaggerRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.defeatCrabs': QuestDNA(obsolete=False, questInt=25304, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.GiantCrab, num=5, level=0, weaponType=InventoryType.DaggerRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.defeatAlligators': QuestDNA(obsolete=False, questInt=25305, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.HugeGator, num=5, level=0, weaponType=InventoryType.DaggerRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.visitBingham': QuestDNA(obsolete=False, questInt=25307, tasks=(VisitTaskDNA(npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.deliverShipPlans': QuestDNA(obsolete=False, questInt=25308, tasks=(DeliverItemTaskDNA(item=QuestItems.ShipPlans, num=1, npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.deliverBackgroundCheck': QuestDNA(obsolete=False, questInt=25309, tasks=(DeliverItemTaskDNA(item=QuestItems.BackgroundCheck, num=1, npcId=NPCIds.JOHN_WALLACE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_WALLACE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.visitBingham2': QuestDNA(obsolete=False, questInt=25310, tasks=(VisitTaskDNA(npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.visitShochett': QuestDNA(obsolete=False, questInt=25311, tasks=(VisitTaskDNA(npcId=NPCIds.SHOCHETT_PRYMME),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SHOCHETT_PRYMME,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverHidesA': QuestDNA(obsolete=False, questInt=25312, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=5, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverHidesB': QuestDNA(obsolete=False, questInt=25313, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverHidesC': QuestDNA(obsolete=False, questInt=25314, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.HugeGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverBoneDust': QuestDNA(obsolete=False, questInt=25323, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneDust, num=5, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.deliverFineSteelBars': QuestDNA(obsolete=False, questInt=25316, tasks=(DeliverItemTaskDNA(item=QuestItems.FineSteelBar, num=5, npcId=NPCIds.JOHN_WALLACE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_WALLACE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverCursedWood': QuestDNA(obsolete=False, questInt=25317, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedWood, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverLeatherStraps': QuestDNA(obsolete=False, questInt=25318, tasks=(RecoverShipItemTaskDNA(item=QuestItems.LeatherStraps, num=10, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverBladeSharpener': QuestDNA(obsolete=False, questInt=25319, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BladeSharpener, num=5, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.recoverArrestWarrant': QuestDNA(obsolete=False, questInt=25321, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ArrestWarrant, num=3, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.VERY_RARE),), rewards=(DaggerUpgradeReward(amount=ItemId.DAGGER_L4),), returnGiverIds=(NPCIds.JOHN_WALLACE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'jw1.visitJohnWallace': QuestDNA(obsolete=False, questInt=25322, tasks=(VisitTaskDNA(npcId=NPCIds.JOHN_WALLACE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.deliverPirateLorePage': QuestDNA(obsolete=False, questInt=25401, tasks=(DeliverItemTaskDNA(item=QuestItems.PirateLorePage, num=1, npcId=NPCIds.JIM_WAVEMONGER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JIM_WAVEMONGER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverChestOfPirateLore': QuestDNA(obsolete=False, questInt=25402, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.PirateLoreChest, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JIM_WAVEMONGER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.deliverMedal': QuestDNA(obsolete=False, questInt=25403, tasks=(DeliverItemTaskDNA(item=QuestItems.Medal, num=1, npcId=NPCIds.WILL_TURNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverEITCManual': QuestDNA(obsolete=False, questInt=25404, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EITCManual, num=1, enemyType=AvatarTypes.TradingCo, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverLorePagesA': QuestDNA(obsolete=False, questInt=25405, tasks=(RecoverShipItemTaskDNA(item=QuestItems.PirateLorePage, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_MARAUDER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverLorePagesB': QuestDNA(obsolete=False, questInt=25406, tasks=(RecoverShipItemTaskDNA(item=QuestItems.PirateLorePage, num=5, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_BARRACUDA, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverLorePagesC': QuestDNA(obsolete=False, questInt=25407, tasks=(RecoverShipItemTaskDNA(item=QuestItems.PirateLorePage, num=15, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_CORVETTE, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverLorePagesD': QuestDNA(obsolete=False, questInt=25408, tasks=(RecoverShipItemTaskDNA(item=QuestItems.PirateLorePage, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, hull=ShipIds.ANY_EITC_SEA_VIPER, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.deliverUnfinishedBookOfPirateLore': QuestDNA(obsolete=False, questInt=25410, tasks=(DeliverItemTaskDNA(item=QuestItems.UnfinishedPirateLoreBook, num=1, npcId=NPCIds.BILLY_MCKIDD),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.playPoker': QuestDNA(obsolete=False, questInt=25411, tasks=(PokerTaskDNA(gold=PokerPots.HUGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.playBlackjack': QuestDNA(obsolete=False, questInt=25412, tasks=(BlackjackTaskDNA(gold=PokerPots.HUGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.defeatSkeletons': QuestDNA(obsolete=False, questInt=25414, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=10, level=0, weaponType=InventoryType.CutlassRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.defeatFlyTraps': QuestDNA(obsolete=False, questInt=25415, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.RancidFlyTrap, num=10, level=0, weaponType=InventoryType.CutlassRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.defeatBigGators': QuestDNA(obsolete=False, questInt=25416, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.BigGator, num=10, level=0, weaponType=InventoryType.CutlassRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.defeatGiantCrabs': QuestDNA(obsolete=False, questInt=25417, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.GiantCrab, num=5, level=0, weaponType=InventoryType.CutlassRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.defeatWasps': QuestDNA(obsolete=False, questInt=25418, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Wasp, num=10, level=0, weaponType=InventoryType.CutlassRep),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverRestOfBookA': QuestDNA(obsolete=False, questInt=25420, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.KINGSHEAD_ISLAND, item=QuestItems.PirateLorePage, num=4, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverRestOfBookB': QuestDNA(obsolete=False, questInt=25421, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.RUMRUNNER_ISLE, item=QuestItems.PirateLorePage, num=4, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.recoverRestOfBookC': QuestDNA(obsolete=False, questInt=25422, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.ISLA_CANGREJOS, item=QuestItems.PirateLorePage, num=8, maxAttempts=Attempts.ALWAYS, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BILLY_MCKIDD,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.deliverBookOfLore': QuestDNA(obsolete=False, questInt=25424, tasks=(DeliverItemTaskDNA(item=QuestItems.PirateLoreBook, num=1, npcId=NPCIds.WILL_TURNER),), rewards=(CutlassUpgradeReward(amount=ItemId.CUTLASS_L4),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'wt1.visitWillTurner': QuestDNA(obsolete=False, questInt=25425, tasks=(VisitTaskDNA(npcId=NPCIds.WILL_TURNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPBreadCrumb': QuestDNA(obsolete=False, questInt=27001, tasks=(VisitTaskDNA(npcId=NPCIds.SPANISH_SHIPWRIGHT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.O_MALLEY, NPCIds.CARLOS_CIENFUEGOS, NPCIds.DARBY_DRYDOCK, NPCIds.BALTHASAR)),), returnGiverIds=(NPCIds.SPANISH_SHIPWRIGHT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPVisitLordA': QuestDNA(obsolete=False, questInt=27002, tasks=(VisitTaskDNA(npcId=NPCIds.GARCIA_DE_AVARCIA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SPANISH_SHIPWRIGHT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPFirstTrial': QuestDNA(obsolete=False, questInt=27003, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, num=1, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SPANISH_SHIPWRIGHT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPVisitLordB': QuestDNA(obsolete=False, questInt=27004, tasks=(VisitTaskDNA(npcId=NPCIds.PIERRE_LE_PORC),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SPANISH_SHIPWRIGHT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPSecondTrial': QuestDNA(obsolete=False, questInt=27005, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, num=1, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SPANISH_SHIPWRIGHT,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskB': QuestDNA(obsolete=False, questInt=28006, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskC': QuestDNA(obsolete=False, questInt=28007, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskJ': QuestDNA(obsolete=False, questInt=28014, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, damage=50000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskK': QuestDNA(obsolete=False, questInt=28015, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, damage=50000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskA': QuestDNA(obsolete=False, questInt=28005, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, damage=10000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.GARCIA_DE_AVARCIA,)),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskF': QuestDNA(obsolete=False, questInt=28010, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskG': QuestDNA(obsolete=False, questInt=28011, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskL': QuestDNA(obsolete=False, questInt=28016, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, damage=25000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskM': QuestDNA(obsolete=False, questInt=28017, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, damage=25000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskN': QuestDNA(obsolete=False, questInt=28018, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, num=25, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'spanish.ShipPVPTaskP': QuestDNA(obsolete=False, questInt=28020, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPFrench, damage=50000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=True),), rewards=(TattooQuestReward(amount=TattooGlobals.SHIP_PVP_SPANISH_QUEST_A),), returnGiverIds=(NPCIds.GARCIA_DE_AVARCIA,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskB': QuestDNA(obsolete=False, questInt=29006, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskC': QuestDNA(obsolete=False, questInt=29007, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskJ': QuestDNA(obsolete=False, questInt=29014, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, damage=50000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskK': QuestDNA(obsolete=False, questInt=29015, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, damage=50000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskA': QuestDNA(obsolete=False, questInt=29005, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, damage=10000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.PIERRE_LE_PORC,)),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskF': QuestDNA(obsolete=False, questInt=29010, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskG': QuestDNA(obsolete=False, questInt=29011, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, num=5, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskL': QuestDNA(obsolete=False, questInt=29016, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, damage=25000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillShip, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskM': QuestDNA(obsolete=False, questInt=29017, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, damage=25000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, killWeapon=PiratesGlobals.ShipPVPKillCannon, withoutSink=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskN': QuestDNA(obsolete=False, questInt=29018, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, num=25, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'french.ShipPVPTaskP': QuestDNA(obsolete=False, questInt=29020, tasks=(ShipPVPDefeatTaskDNA(enemyClass=PiratesGlobals.ShipPVPSpanish, damage=50000, gameType=PiratesGlobals.ShipPVPSiege, killType=PiratesGlobals.ShipPVPShip, withoutSink=True),), rewards=(TattooQuestReward(amount=TattooGlobals.SHIP_PVP_FRENCH_QUEST_A),), returnGiverIds=(NPCIds.PIERRE_LE_PORC,), combineOp=QuestDNA.OR, droppable=True, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.visitWoodruff': QuestDNA(obsolete=False, questInt=30001, tasks=(VisitTaskDNA(npcId=NPCIds.WOODRUFF),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.ORINDA,)),), returnGiverIds=(NPCIds.ORINDA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=True, minLevel=15, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatFrenchUndeadA': QuestDNA(obsolete=False, questInt=30002, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.FrenchUndeadA, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatFrenchUndeadB': QuestDNA(obsolete=False, questInt=30003, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.FrenchUndeadB, num=15, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatFrenchUndeadC': QuestDNA(obsolete=False, questInt=30004, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.FrenchUndeadC, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatFrenchUndeadD': QuestDNA(obsolete=False, questInt=30005, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.FrenchUndeadD, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatSpanishUndeadA': QuestDNA(obsolete=False, questInt=30006, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.SpanishUndeadA, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatSpanishUndeadB': QuestDNA(obsolete=False, questInt=30007, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.SpanishUndeadB, num=15, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatSpanishUndeadC': QuestDNA(obsolete=False, questInt=30008, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.SpanishUndeadC, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatSpanishUndeadD': QuestDNA(obsolete=False, questInt=30009, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.SpanishUndeadD, num=5, level=0),), rewards=(ReputationReward(amount=ExpRewards.TRIVIAL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatFrenchShipA': QuestDNA(obsolete=False, questInt=30011, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_FRENCH_SHADOW_CROW, num=1, level=0, isFlagship=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatFrenchShipB': QuestDNA(obsolete=False, questInt=30012, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_FRENCH_HELLHOUND, num=1, level=0, isFlagship=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatFrenchShipC': QuestDNA(obsolete=False, questInt=30013, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_FRENCH_BLOOD_SCOURGE, num=1, level=0, isFlagship=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatSpanishShipA': QuestDNA(obsolete=False, questInt=30015, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_SPANISH_SHADOW_CROW, num=1, level=0, isFlagship=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatSpanishShipB': QuestDNA(obsolete=False, questInt=30016, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_SPANISH_HELLHOUND, num=1, level=0, isFlagship=True),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'om1.defeatSpanishShipC': QuestDNA(obsolete=False, questInt=30017, tasks=(DefeatShipTaskDNA(hull=ShipIds.ANY_SPANISH_BLOOD_SCOURGE, num=1, level=0, isFlagship=True),), rewards=(ReputationReward(amount=ExpRewards.LARGE),), returnGiverIds=(NPCIds.WOODRUFF,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=True, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitIsaiah': QuestDNA(obsolete=False, questInt=30101, tasks=(VisitTaskDNA(npcId=NPCIds.ISAIAH_CALLECUTTER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.AMELIA_SUNFELLOW,)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=15, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverHides': QuestDNA(obsolete=False, questInt=30102, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverFlyTrapThread': QuestDNA(obsolete=False, questInt=30103, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FlyTrapThread, num=5, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=False, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitJohnnyMcVane': QuestDNA(obsolete=False, questInt=30105, tasks=(VisitTaskDNA(npcId=NPCIds.JOHNNY_MCVANE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.playPoker': QuestDNA(obsolete=False, questInt=30106, tasks=(PokerTaskDNA(gold=PokerPots.HUGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHNNY_MCVANE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.playBlackjack': QuestDNA(obsolete=False, questInt=30107, tasks=(BlackjackTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHNNY_MCVANE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverRareFeathers': QuestDNA(obsolete=False, questInt=30109, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RareFeather, num=10, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitAmeliaSunfellow': QuestDNA(obsolete=False, questInt=30110, tasks=(VisitTaskDNA(npcId=NPCIds.AMELIA_SUNFELLOW),), rewards=(ClothingQuestReward(amount=ClothingGlobals.INTERMEDIATE_OUTFIT_PART_A, bonus=False),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitBingham': QuestDNA(obsolete=False, questInt=30111, tasks=(VisitTaskDNA(npcId=NPCIds.BINGHAM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.bribeBingham': QuestDNA(obsolete=False, questInt=30112, tasks=(BribeNPCTaskDNA(npcId=NPCIds.BINGHAM, gold=Bribes.HUGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverManifests': QuestDNA(obsolete=False, questInt=30113, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EITCManifest, num=5, enemyType=AvatarTypes.TradingCo, level=5, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverBinghamsTip': QuestDNA(obsolete=False, questInt=30114, tasks=(RecoverTreasureItemTaskDNA(item=QuestItems.BinghamsDiary, num=1, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BINGHAM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.deliverManifests': QuestDNA(obsolete=False, questInt=30116, tasks=(DeliverItemTaskDNA(item=QuestItems.EITCManifest, num=5, npcId=NPCIds.AMELIA_SUNFELLOW),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.AMELIA_SUNFELLOW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverBoltsOfCloth': QuestDNA(obsolete=False, questInt=30118, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BoltOfCloth, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.AMELIA_SUNFELLOW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverFineScissors': QuestDNA(obsolete=False, questInt=30119, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FineScissors, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.AMELIA_SUNFELLOW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverSilkThread': QuestDNA(obsolete=False, questInt=30120, tasks=(RecoverShipItemTaskDNA(item=QuestItems.SilkThread, num=15, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.AMELIA_SUNFELLOW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.returnIsaiah': QuestDNA(obsolete=False, questInt=30121, tasks=(VisitTaskDNA(npcId=NPCIds.ISAIAH_CALLECUTTER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverNeedles': QuestDNA(obsolete=False, questInt=30122, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Needle, num=20, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ClothingQuestReward(amount=ClothingGlobals.INTERMEDIATE_OUTFIT_PART_B, bonus=False),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitScarlet': QuestDNA(obsolete=False, questInt=30123, tasks=(VisitTaskDNA(npcId=NPCIds.SCARLET),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.bribeScarlet': QuestDNA(obsolete=False, questInt=30124, tasks=(BribeNPCTaskDNA(npcId=NPCIds.SCARLET, gold=Bribes.LARGE, bribeType=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverScarletsPearlA': QuestDNA(obsolete=False, questInt=30127, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScarletsPearl, num=5, enemyType=AvatarTypes.Undead, level=10, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverScarletsPearlB': QuestDNA(obsolete=False, questInt=30128, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScarletsPearl, num=4, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverScarletsPearlC': QuestDNA(obsolete=False, questInt=30129, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScarletsPearl, num=2, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverScarletsPearlD': QuestDNA(obsolete=False, questInt=30130, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScarletsPearl, num=2, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverScarletsPearlE': QuestDNA(obsolete=False, questInt=30131, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScarletsPearl, num=1, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.returnIsaiahB': QuestDNA(obsolete=False, questInt=30133, tasks=(VisitTaskDNA(npcId=NPCIds.ISAIAH_CALLECUTTER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitBigPhil': QuestDNA(obsolete=False, questInt=30134, tasks=(VisitTaskDNA(npcId=NPCIds.BIG_PHIL),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BIG_PHIL,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverChickensForPhil': QuestDNA(obsolete=False, questInt=30135, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chicken, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BIG_PHIL,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverPigsForPhil': QuestDNA(obsolete=False, questInt=30136, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Pig, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BIG_PHIL,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.scarletsLettersA': QuestDNA(obsolete=False, questInt=30125, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_CAVE, item=QuestItems.LetterFromScarlet, num=2, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.scarletsLettersB': QuestDNA(obsolete=False, questInt=30126, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORTUGA_CAVE, item=QuestItems.LetterFromScarlet, num=2, enemyType=AvatarTypes.TradingCo, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.FREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SCARLET,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.returnIsaiahC': QuestDNA(obsolete=False, questInt=30139, tasks=(VisitTaskDNA(npcId=NPCIds.ISAIAH_CALLECUTTER),), rewards=(ClothingQuestReward(amount=ClothingGlobals.INTERMEDIATE_OUTFIT_PART_C, bonus=False), ClothingQuestReward(amount=ClothingGlobals.INTERMEDIATE_OUTFIT_PART_D, bonus=False)), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitAmeliaSunfellowB': QuestDNA(obsolete=False, questInt=30140, tasks=(VisitTaskDNA(npcId=NPCIds.AMELIA_SUNFELLOW),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.deliverCoinBag': QuestDNA(obsolete=False, questInt=30141, tasks=(DeliverItemTaskDNA(item=QuestItems.CoinBag, num=1, npcId=NPCIds.JOHN_SMITH),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.findJohnsStuff': QuestDNA(obsolete=False, questInt=30142, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.DRIFTWOOD_ISLAND, item=QuestItems.PersonalEffects, num=1, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverWaspWings': QuestDNA(obsolete=False, questInt=30143, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WaspWings, num=15, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverWaspEggs': QuestDNA(obsolete=False, questInt=30144, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.WaspEggs, num=15, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverWaspEssence': QuestDNA(obsolete=False, questInt=30145, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EssenceOfWasp, num=15, enemyType=AvatarTypes.AngryWasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverCrabClaws': QuestDNA(obsolete=False, questInt=30146, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrabClaw, num=10, enemyType=AvatarTypes.GiantCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverCrabShells': QuestDNA(obsolete=False, questInt=30147, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CrabShell, num=10, enemyType=AvatarTypes.RockCrab, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.JOHN_SMITH,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.visitAmeliaSunfellowC': QuestDNA(obsolete=False, questInt=30150, tasks=(VisitTaskDNA(npcId=NPCIds.AMELIA_SUNFELLOW),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverBeltBuckles': QuestDNA(obsolete=False, questInt=30151, tasks=(RecoverTreasureItemTaskDNA(location=LocationIds.ISLA_CANGREJOS, item=QuestItems.BeltBuckle, num=5, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ClothingQuestReward(amount=ClothingGlobals.INTERMEDIATE_OUTFIT_PART_E, bonus=False),), returnGiverIds=(NPCIds.AMELIA_SUNFELLOW,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.returnIsaiahD': QuestDNA(obsolete=False, questInt=30152, tasks=(VisitTaskDNA(npcId=NPCIds.ISAIAH_CALLECUTTER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverShoeDesigns': QuestDNA(obsolete=False, questInt=30153, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FineShoeDesign, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverScorpionShells': QuestDNA(obsolete=False, questInt=30155, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.ScorpionShell, num=20, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverBoneShavings': QuestDNA(obsolete=False, questInt=30156, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneShavings, num=10, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverAlligatorHides': QuestDNA(obsolete=False, questInt=30157, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.recoverVampireBatGuano': QuestDNA(obsolete=False, questInt=30158, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatGuano, num=5, enemyType=AvatarTypes.VampireBat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQI.sinkEITCShips': QuestDNA(obsolete=False, questInt=30159, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.TradingCo, num=20, level=0, isFlagship=False),), rewards=(ClothingQuestReward(amount=ClothingGlobals.INTERMEDIATE_OUTFIT_PART_F, bonus=False),), returnGiverIds=(NPCIds.ISAIAH_CALLECUTTER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitRomanyBev': QuestDNA(obsolete=False, questInt=30201, tasks=(VisitTaskDNA(npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.ADORIA_DOLORES,)),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=20, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverShopApplication': QuestDNA(obsolete=False, questInt=30202, tasks=(RecoverContainerItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, containerId=PropIds.FD_ALL, item=QuestItems.ShopApplication, num=1, maxAttempts=Attempts.FREQUENT, probability=Probability.ALWAYS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitValentina': QuestDNA(obsolete=False, questInt=30203, tasks=(VisitTaskDNA(npcId=NPCIds.VALENTINA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.VALENTINA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.defeatNavyGuards': QuestDNA(obsolete=False, questInt=30204, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Veteran, num=20, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.VALENTINA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverCursedWood': QuestDNA(obsolete=False, questInt=30205, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedWood, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.VALENTINA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.deliverChest': QuestDNA(obsolete=False, questInt=30206, tasks=(DeliverItemTaskDNA(item=QuestItems.CursedChest, num=1, npcId=NPCIds.BARBOSSA),), rewards=(ClothingQuestReward(amount=ClothingGlobals.ADVANCED_OUTFIT_PART_A, bonus=False),), returnGiverIds=(NPCIds.BARBOSSA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitRomanyBevB': QuestDNA(obsolete=False, questInt=30207, tasks=(VisitTaskDNA(npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverButtons': QuestDNA(obsolete=False, questInt=30210, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CursedButtons, num=10, enemyType=AvatarTypes.Undead, level=15, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverBoneDust': QuestDNA(obsolete=False, questInt=30211, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneDust, num=5, enemyType=AvatarTypes.Undead, level=20, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverHides': QuestDNA(obsolete=False, questInt=30212, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Hide, num=10, enemyType=AvatarTypes.DreadScorpion, level=10, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverCursedBark': QuestDNA(obsolete=False, questInt=30214, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CursedBark, num=5, enemyType=AvatarTypes.Stump, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.deliverKrakenCloth': QuestDNA(obsolete=False, questInt=30209, tasks=(DeliverItemTaskDNA(item=QuestItems.KrakenCloth, num=1, npcId=NPCIds.ADORIA_DOLORES),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverCursedCloth': QuestDNA(obsolete=False, questInt=30215, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedCloth, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverCursedThreads': QuestDNA(obsolete=False, questInt=30216, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedThread, num=5, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverCursedNeedles': QuestDNA(obsolete=False, questInt=30217, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CursedNeedle, num=20, enemyType=AvatarTypes.Undead, level=15, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ClothingQuestReward(amount=ClothingGlobals.ADVANCED_OUTFIT_PART_B, bonus=False), ClothingQuestReward(amount=ClothingGlobals.ADVANCED_OUTFIT_PART_C, bonus=False)), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitValentinaB': QuestDNA(obsolete=False, questInt=30218, tasks=(VisitTaskDNA(npcId=NPCIds.VALENTINA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.VALENTINA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.deliverVoodooArtifact': QuestDNA(obsolete=False, questInt=30219, tasks=(DeliverItemTaskDNA(item=QuestItems.VoodooArtifact, num=1, npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=False, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverVoodooArtifactsA': QuestDNA(obsolete=False, questInt=30220, tasks=(RecoverShipItemTaskDNA(item=QuestItems.VoodooArtifact, num=10, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverVoodooArtifactsB': QuestDNA(obsolete=False, questInt=30222, tasks=(RecoverShipItemTaskDNA(item=QuestItems.VoodooArtifact, num=10, maxAttempts=Attempts.RARE, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitMaggieRigrage': QuestDNA(obsolete=False, questInt=30223, tasks=(VisitTaskDNA(npcId=NPCIds.MAGGIE_RIGRAGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverFamilyHeirloomsA': QuestDNA(obsolete=False, questInt=30224, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FamilyHeirlooms, num=15, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MAGGIE_RIGRAGE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverFamilyHeirloomsB': QuestDNA(obsolete=False, questInt=30225, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FamilyHeirlooms, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MAGGIE_RIGRAGE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverFamilyHeirloomsC': QuestDNA(obsolete=False, questInt=30227, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FamilyHeirlooms, num=5, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MAGGIE_RIGRAGE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverFamilyHeirloomsD': QuestDNA(obsolete=False, questInt=30228, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FamilyHeirlooms, num=5, enemyType=AvatarTypes.Stump, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MAGGIE_RIGRAGE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverFamilyHeirloomsE': QuestDNA(obsolete=False, questInt=30230, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FamilyHeirlooms, num=5, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MAGGIE_RIGRAGE,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitRomanyBevC': QuestDNA(obsolete=False, questInt=30231, tasks=(VisitTaskDNA(npcId=NPCIds.ROMANY_BEV),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ROMANY_BEV,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitAdoriaDolores': QuestDNA(obsolete=False, questInt=30232, tasks=(VisitTaskDNA(npcId=NPCIds.ADORIA_DOLORES),), rewards=(ClothingQuestReward(amount=ClothingGlobals.ADVANCED_OUTFIT_PART_D, bonus=False),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitMorris': QuestDNA(obsolete=False, questInt=30233, tasks=(VisitTaskDNA(npcId=NPCIds.MORRIS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.playPoker': QuestDNA(obsolete=False, questInt=30234, tasks=(PokerTaskDNA(gold=PokerPots.HUGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.playBlackjack': QuestDNA(obsolete=False, questInt=30236, tasks=(BlackjackTaskDNA(gold=PokerPots.HUGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.MORRIS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitAdoriaDoloresB': QuestDNA(obsolete=False, questInt=30237, tasks=(VisitTaskDNA(npcId=NPCIds.ADORIA_DOLORES),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.deliverRumBarrel': QuestDNA(obsolete=False, questInt=30238, tasks=(DeliverItemTaskDNA(item=QuestItems.RumBarrel, num=1, npcId=NPCIds.GUNNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverRumBottles': QuestDNA(obsolete=False, questInt=30239, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RumBottle, num=10, enemyType=AvatarTypes.Navy, level=15, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverRumBarrels': QuestDNA(obsolete=False, questInt=30241, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RumBarrel, num=20, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.GUNNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitAdoriaDoloresC': QuestDNA(obsolete=False, questInt=30242, tasks=(VisitTaskDNA(npcId=NPCIds.ADORIA_DOLORES),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitOlivier': QuestDNA(obsolete=False, questInt=30243, tasks=(VisitTaskDNA(npcId=NPCIds.OLIVIER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverRottenMeat': QuestDNA(obsolete=False, questInt=30244, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.RottenMeat, num=10, enemyType=AvatarTypes.Undead, level=20, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverFlyTrapRoots': QuestDNA(obsolete=False, questInt=30246, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.FlyTrapRoot, num=10, enemyType=AvatarTypes.FlyTrap, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverGatorSaliva': QuestDNA(obsolete=False, questInt=30247, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorSaliva, num=5, enemyType=AvatarTypes.BigGator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.OLIVIER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitAdoriaDoloresD': QuestDNA(obsolete=False, questInt=30248, tasks=(VisitTaskDNA(npcId=NPCIds.ADORIA_DOLORES),), rewards=(ClothingQuestReward(amount=ClothingGlobals.ADVANCED_OUTFIT_PART_E, bonus=False),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.deliverCompass': QuestDNA(obsolete=False, questInt=30249, tasks=(DeliverItemTaskDNA(item=QuestItems.Compass, num=1, npcId=NPCIds.DOG_LOCKGRIM),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOG_LOCKGRIM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverLockgrimsLetter': QuestDNA(obsolete=False, questInt=30250, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.LockgrimsLetter, num=1, enemyType=AvatarTypes.DreadScorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.RARE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOG_LOCKGRIM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.defeatFlotsam': QuestDNA(obsolete=False, questInt=30251, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_CAVE_B, enemyType=AvatarTypes.Damp, num=2, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOG_LOCKGRIM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.defeatSpikeskull': QuestDNA(obsolete=False, questInt=30252, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_CAVE_B, enemyType=AvatarTypes.Drizzle, num=2, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOG_LOCKGRIM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.defeatKelpbrain': QuestDNA(obsolete=False, questInt=30253, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_CAVE_B, enemyType=AvatarTypes.Spray, num=2, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOG_LOCKGRIM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.defeatBrinescum': QuestDNA(obsolete=False, questInt=30254, tasks=(DefeatTaskDNA(location=LocationIds.TORMENTA_CAVE_B, enemyType=AvatarTypes.Splatter, num=2, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DOG_LOCKGRIM,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitAdoriaDoloresE': QuestDNA(obsolete=False, questInt=30256, tasks=(VisitTaskDNA(npcId=NPCIds.ADORIA_DOLORES),), rewards=(ClothingQuestReward(amount=ClothingGlobals.ADVANCED_OUTFIT_PART_F, bonus=False),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverNavyChests': QuestDNA(obsolete=False, questInt=30257, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Chest, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverNavyChestKeys': QuestDNA(obsolete=False, questInt=30258, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.DEL_FUEGO_FORT_DUNDEE, item=QuestItems.Key, num=10, enemyType=AvatarTypes.Navy, level=15, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitShochett': QuestDNA(obsolete=False, questInt=30259, tasks=(VisitTaskDNA(npcId=NPCIds.SHOCHETT_PRYMME),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SHOCHETT_PRYMME,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverTentaclesA': QuestDNA(obsolete=False, questInt=30260, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORMENTA_CAVE_B, item=QuestItems.Tentacle, num=3, enemyType=AvatarTypes.Drool, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SHOCHETT_PRYMME,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverTentaclesB': QuestDNA(obsolete=False, questInt=30261, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORMENTA_CAVE_B, item=QuestItems.Tentacle, num=2, enemyType=AvatarTypes.Drench, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SHOCHETT_PRYMME,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverTentaclesC': QuestDNA(obsolete=False, questInt=30262, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORMENTA_CAVE_B, item=QuestItems.Tentacle, num=2, enemyType=AvatarTypes.Douse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SHOCHETT_PRYMME,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.recoverUrchinfistEye': QuestDNA(obsolete=False, questInt=30263, tasks=(RecoverAvatarItemTaskDNA(location=LocationIds.TORMENTA_CAVE_B, item=QuestItems.UrchinfistEye, num=1, enemyType=AvatarTypes.Douse, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.SHOCHETT_PRYMME,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.deliverTentacles': QuestDNA(obsolete=False, questInt=30265, tasks=(DeliverItemTaskDNA(item=QuestItems.Tentacle, num=7, npcId=NPCIds.ADORIA_DOLORES),), rewards=(ClothingQuestReward(amount=ClothingGlobals.ADVANCED_OUTFIT_PART_G, bonus=False),), returnGiverIds=(NPCIds.ADORIA_DOLORES,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQA.visitValentinaC': QuestDNA(obsolete=False, questInt=30266, tasks=(VisitTaskDNA(npcId=NPCIds.VALENTINA),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.VALENTINA,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.makeBlackjackMoney': QuestDNA(obsolete=False, questInt=30313, tasks=(PokerTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.makePokerMoney': QuestDNA(obsolete=False, questInt=30314, tasks=(BlackjackTaskDNA(gold=PokerPots.LARGE),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.challengingNavy': QuestDNA(obsolete=False, questInt=30315, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Navy, num=10, level=5),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.challengingEITC': QuestDNA(obsolete=False, questInt=30316, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.TradingCo, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.challengingNavyShips': QuestDNA(obsolete=False, questInt=30317, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=10, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.challengingEITCShips': QuestDNA(obsolete=False, questInt=30318, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.TradingCo, num=10, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.recoverFineRum': QuestDNA(obsolete=False, questInt=30321, tasks=(RecoverShipItemTaskDNA(item=QuestItems.FineRum, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.recoverBoneShavings': QuestDNA(obsolete=False, questInt=30322, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BoneShavings, num=10, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.recoverPrisonKey': QuestDNA(obsolete=False, questInt=30323, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.PrisonKey, num=10, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatNavy': QuestDNA(obsolete=False, questInt=30327, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Navy, num=15, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatSkeleton': QuestDNA(obsolete=False, questInt=30328, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Undead, num=15, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatEITC': QuestDNA(obsolete=False, questInt=30329, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.TradingCo, num=15, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatAlligators': QuestDNA(obsolete=False, questInt=30330, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Alligator, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatBats': QuestDNA(obsolete=False, questInt=30331, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Bat, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatScorpions': QuestDNA(obsolete=False, questInt=30332, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Scorpion, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatCrabs': QuestDNA(obsolete=False, questInt=30333, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Crab, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatWasps': QuestDNA(obsolete=False, questInt=30334, tasks=(DefeatTaskDNA(enemyType=AvatarTypes.Wasp, num=10, level=0),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveAntiquePistol': QuestDNA(obsolete=False, questInt=30337, tasks=(RecoverShipItemTaskDNA(item=QuestItems.AntiquePistol, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_SHACKLEBY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveEITCManual': QuestDNA(obsolete=False, questInt=30338, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EITCManual, num=15, enemyType=AvatarTypes.TradingCo, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_SHACKLEBY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveRareFeather': QuestDNA(obsolete=False, questInt=30339, tasks=(RecoverShipItemTaskDNA(item=QuestItems.RareFeather, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_SHACKLEBY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveCompass': QuestDNA(obsolete=False, questInt=30340, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Compass, num=15, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_SHACKLEBY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveNavyShoeStrings': QuestDNA(obsolete=False, questInt=30343, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.NavyShoeString, num=20, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_STORMHAWK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveNavyAnchors': QuestDNA(obsolete=False, questInt=30344, tasks=(RecoverShipItemTaskDNA(item=QuestItems.NavyAnchor, num=15, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_STORMHAWK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveEITCParchment': QuestDNA(obsolete=False, questInt=30345, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.EITCParchment, num=10, enemyType=AvatarTypes.TradingCo, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_STORMHAWK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveEITCEmptyFlasks': QuestDNA(obsolete=False, questInt=30346, tasks=(RecoverShipItemTaskDNA(item=QuestItems.EmptyFlask, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_STORMHAWK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrievePlanksFromNavyShips': QuestDNA(obsolete=False, questInt=30349, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Plank, num=20, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveSailsFromEITCShips': QuestDNA(obsolete=False, questInt=30350, tasks=(RecoverShipItemTaskDNA(item=QuestItems.Sail, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveWheelFromUndeadShips': QuestDNA(obsolete=False, questInt=30351, tasks=(RecoverShipItemTaskDNA(item=QuestItems.ShipWheel, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatEITCShipsB': QuestDNA(obsolete=False, questInt=30352, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.TradingCo, num=20, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatNavyShipsB': QuestDNA(obsolete=False, questInt=30353, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=20, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveClothFromNavyShip': QuestDNA(obsolete=False, questInt=30355, tasks=(RecoverShipItemTaskDNA(item=QuestItems.BoltOfCloth, num=15, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Navy, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveCottonFromEITCShip': QuestDNA(obsolete=False, questInt=30356, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CottonYard, num=15, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.TradingCo, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveFabricFromNavyGuards': QuestDNA(obsolete=False, questInt=30357, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.NavyFabric, num=15, enemyType=AvatarTypes.Navy, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveThreadFromUndead': QuestDNA(obsolete=False, questInt=30358, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CursedThread, num=15, enemyType=AvatarTypes.Undead, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveCoinBagsFromEITCGuards': QuestDNA(obsolete=False, questInt=30359, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.CoinBag, num=15, enemyType=AvatarTypes.TradingCo, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveCursedSailClothFromUndead': QuestDNA(obsolete=False, questInt=30361, tasks=(RecoverShipItemTaskDNA(item=QuestItems.CursedSailCloth, num=10, maxAttempts=Attempts.INFREQUENT, probability=Probability.ALWAYS, faction=AvatarTypes.Undead, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveBileFromScorpions': QuestDNA(obsolete=False, questInt=30362, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Bile, num=10, enemyType=AvatarTypes.Scorpion, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveVenomFromWasps': QuestDNA(obsolete=False, questInt=30363, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.Venom, num=10, enemyType=AvatarTypes.Wasp, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveBatGuanoFromBats': QuestDNA(obsolete=False, questInt=30364, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.BatGuano, num=10, enemyType=AvatarTypes.Bat, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.retrieveGatorSalivaFromGators': QuestDNA(obsolete=False, questInt=30365, tasks=(RecoverAvatarItemTaskDNA(item=QuestItems.GatorSaliva, num=10, enemyType=AvatarTypes.Alligator, level=0, probability=Probability.ALWAYS, maxAttempts=Attempts.INFREQUENT),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitWilliamTurkA': QuestDNA(obsolete=False, questInt=30312, tasks=(VisitTaskDNA(npcId=NPCIds.WILLIAM_TURK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), prereqs=(GetFrom(questGivers=(NPCIds.NATHANIEL_TRUEHOUND,)),), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=10, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitNathanielA': QuestDNA(obsolete=False, questInt=30319, tasks=(VisitTaskDNA(npcId=NPCIds.NATHANIEL_TRUEHOUND),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitWilliamTurkB': QuestDNA(obsolete=False, questInt=30320, tasks=(VisitTaskDNA(npcId=NPCIds.WILLIAM_TURK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILLIAM_TURK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.deliverLuckyDeckToNathaniel': QuestDNA(obsolete=False, questInt=30324, tasks=(DeliverItemTaskDNA(item=QuestItems.LuckyDeck, num=1, npcId=NPCIds.NATHANIEL_TRUEHOUND),), rewards=(ClothingQuestReward(amount=ClothingGlobals.BASIC_OUTFIT_PART_A, bonus=False),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitWillTurnerA': QuestDNA(obsolete=False, questInt=30325, tasks=(VisitTaskDNA(npcId=NPCIds.WILL_TURNER),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.defeatNavyShips': QuestDNA(obsolete=False, questInt=30326, tasks=(DefeatShipTaskDNA(faction=AvatarTypes.Navy, num=20, level=0, isFlagship=False),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=True, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitNathanielB': QuestDNA(obsolete=False, questInt=30335, tasks=(VisitTaskDNA(npcId=NPCIds.NATHANIEL_TRUEHOUND),), rewards=(ClothingQuestReward(amount=ClothingGlobals.BASIC_OUTFIT_PART_B, bonus=False),), returnGiverIds=(NPCIds.WILL_TURNER,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitEdwardShackleby': QuestDNA(obsolete=False, questInt=30336, tasks=(VisitTaskDNA(npcId=NPCIds.EDWARD_SHACKLEBY),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_SHACKLEBY,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitNathanielC': QuestDNA(obsolete=False, questInt=30341, tasks=(VisitTaskDNA(npcId=NPCIds.NATHANIEL_TRUEHOUND),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitEdwardStormhawk': QuestDNA(obsolete=False, questInt=30342, tasks=(VisitTaskDNA(npcId=NPCIds.EDWARD_STORMHAWK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.EDWARD_STORMHAWK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitNathanielD': QuestDNA(obsolete=False, questInt=30347, tasks=(VisitTaskDNA(npcId=NPCIds.NATHANIEL_TRUEHOUND),), rewards=(ClothingQuestReward(amount=ClothingGlobals.BASIC_OUTFIT_PART_C, bonus=False),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitDarbyDryDock': QuestDNA(obsolete=False, questInt=30348, tasks=(VisitTaskDNA(npcId=NPCIds.DARBY_DRYDOCK),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.DARBY_DRYDOCK,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitNathanielE': QuestDNA(obsolete=False, questInt=30354, tasks=(VisitTaskDNA(npcId=NPCIds.NATHANIEL_TRUEHOUND),), rewards=(ClothingQuestReward(amount=ClothingGlobals.BASIC_OUTFIT_PART_D, bonus=False),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitBartholomewWatkins': QuestDNA(obsolete=False, questInt=30360, tasks=(VisitTaskDNA(npcId=NPCIds.BARTHOLOMEW_WATKINS),), rewards=(ReputationReward(amount=ExpRewards.SMALL),), returnGiverIds=(NPCIds.BARTHOLOMEW_WATKINS,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0),'OQB.visitNathanielF': QuestDNA(obsolete=False, questInt=30366, tasks=(VisitTaskDNA(npcId=NPCIds.NATHANIEL_TRUEHOUND),), rewards=(ClothingQuestReward(amount=ClothingGlobals.BASIC_OUTFIT_PART_E, bonus=False),), returnGiverIds=(NPCIds.NATHANIEL_TRUEHOUND,), combineOp=QuestDNA.OR, droppable=False, playStinger=True, displayGoal=True, progressBlock=False, finalQuest=False, acquireOnce=True, requiresVoyage=False, completeRequiresVisit=True, velvetRoped=False, minLevel=0, minWeapLevel=0, hideButton=False, timeLimit=0)}
for questId, questDNA in QuestDict.items():
questDNA.setQuestId(questId)
if __dev__:
for questDNA in QuestDict.values():
questDNA.check()
questIntDict = {}
for questId, questDNA in QuestDict.items():
questIntDict[questDNA.questInt] = questId
def getQuestIdFromQuestInt(questInt):
return questIntDict.get(questInt)
questSpawns = {LocationIds.RAVENS_COVE_ISLAND: ['rc.3searchForSurvivors', 6]}
| 20,421.4
| 815,383
| 0.829582
| 88,460
| 816,856
| 7.631325
| 0.047637
| 0.035789
| 0.046973
| 0.064868
| 0.876869
| 0.852746
| 0.832311
| 0.824252
| 0.811359
| 0.793856
| 0
| 0.024292
| 0.041126
| 816,856
| 40
| 815,384
| 20,421.4
| 0.837574
| 0
| 0
| 0.057143
| 0
| 0
| 0.04368
| 0.028555
| 0
| 0
| 0
| 0
| 0
| 1
| 0.028571
| false
| 0.028571
| 0.571429
| 0.028571
| 0.628571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 10
|
19c539c6ae7e337b2bc397ed314149dac622f3a4
| 36,042
|
py
|
Python
|
topboard_sdk/api/topboard/topboard_client.py
|
easyopsapis/easyops-api-python
|
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
|
[
"Apache-2.0"
] | 5
|
2019-07-31T04:11:05.000Z
|
2021-01-07T03:23:20.000Z
|
topboard_sdk/api/topboard/topboard_client.py
|
easyopsapis/easyops-api-python
|
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
|
[
"Apache-2.0"
] | null | null | null |
topboard_sdk/api/topboard/topboard_client.py
|
easyopsapis/easyops-api-python
|
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import sys
import topboard_sdk.model.topboard.comment_pb2
import topboard_sdk.model.topboard.issue_pb2
import topboard_sdk.model.topboard.product_pb2
import topboard_sdk.model.topboard.sprint_pb2
import topboard_sdk.api.topboard.delete_comment_pb2
import google.protobuf.empty_pb2
import topboard_sdk.api.topboard.delete_issue_pb2
import topboard_sdk.api.topboard.delete_product_pb2
import topboard_sdk.api.topboard.delete_sprint_pb2
import topboard_sdk.api.topboard.get_issue_pb2
import topboard_sdk.api.topboard.get_product_pb2
import topboard_sdk.api.topboard.get_sprint_pb2
import topboard_sdk.api.topboard.search_comment_pb2
import topboard_sdk.api.topboard.search_issue_pb2
import topboard_sdk.api.topboard.search_product_pb2
import topboard_sdk.api.topboard.search_sprint_pb2
import topboard_sdk.api.topboard.update_comment_pb2
import topboard_sdk.api.topboard.update_issue_pb2
import topboard_sdk.api.topboard.update_issue_step_pb2
import topboard_sdk.api.topboard.update_product_pb2
import topboard_sdk.api.topboard.update_sprint_pb2
import topboard_sdk.api.topboard.update_sprint_issue_pb2
import topboard_sdk.api.topboard.upload_temp_file_pb2
import topboard_sdk.utils.http_util
import google.protobuf.json_format
class TopboardClient(object):
def __init__(self, server_ip="", server_port=0, service_name="", host=""):
"""
初始化client
:param server_ip: 指定sdk请求的server_ip,为空时走名字服务路由
:param server_port: 指定sdk请求的server_port,与server_ip一起使用, 为空时走名字服务路由
:param service_name: 指定sdk请求的service_name, 为空时按契约名称路由。如果server_ip和service_name同时设置,server_ip优先级更高
:param host: 指定sdk请求服务的host名称, 如cmdb.easyops-only.com
"""
if server_ip == "" and server_port != 0 or server_ip != "" and server_port == 0:
raise Exception("server_ip和server_port必须同时指定")
self._server_ip = server_ip
self._server_port = server_port
self._service_name = service_name
self._host = host
def create_comment(self, request, org, user, timeout=10):
# type: (topboard_sdk.model.topboard.comment_pb2.Comment, int, str, int) -> topboard_sdk.model.topboard.comment_pb2.Comment
"""
创建评论
:param request: create_comment请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.comment_pb2.Comment
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.CreateComment"
uri = "/api/v1/comments"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.comment_pb2.Comment()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def create_issue(self, request, org, user, timeout=10):
# type: (topboard_sdk.model.topboard.issue_pb2.Issue, int, str, int) -> topboard_sdk.model.topboard.issue_pb2.Issue
"""
创建问题
:param request: create_issue请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.issue_pb2.Issue
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.CreateIssue"
uri = "/api/v1/issues"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.issue_pb2.Issue()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def create_product(self, request, org, user, timeout=10):
# type: (topboard_sdk.model.topboard.product_pb2.Product, int, str, int) -> topboard_sdk.model.topboard.product_pb2.Product
"""
创建产品
:param request: create_product请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.product_pb2.Product
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.CreateProduct"
uri = "/api/v1/products"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.product_pb2.Product()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def create_sprint(self, request, org, user, timeout=10):
# type: (topboard_sdk.model.topboard.sprint_pb2.Sprint, int, str, int) -> topboard_sdk.model.topboard.sprint_pb2.Sprint
"""
创建迭代
:param request: create_sprint请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.sprint_pb2.Sprint
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.CreateSprint"
uri = "/api/v1/sprints"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.sprint_pb2.Sprint()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def delete_comment(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.delete_comment_pb2.DeleteCommentRequest, int, str, int) -> google.protobuf.empty_pb2.Empty
"""
删除评论
:param request: delete_comment请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: google.protobuf.empty_pb2.Empty
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.DeleteComment"
uri = "/api/v1/comments/{commentID}".format(
commentID=request.commentID,
)
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="DELETE",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = google.protobuf.empty_pb2.Empty()
google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True)
return rsp
def delete_issue(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.delete_issue_pb2.DeleteIssueRequest, int, str, int) -> google.protobuf.empty_pb2.Empty
"""
删除问题
:param request: delete_issue请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: google.protobuf.empty_pb2.Empty
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.DeleteIssue"
uri = "/api/v1/issues/{issueID}".format(
issueID=request.issueID,
)
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="DELETE",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = google.protobuf.empty_pb2.Empty()
google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True)
return rsp
def delete_product(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.delete_product_pb2.DeleteProductRequest, int, str, int) -> google.protobuf.empty_pb2.Empty
"""
删除产品
:param request: delete_product请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: google.protobuf.empty_pb2.Empty
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.DeleteProduct"
uri = "/api/v1/products/{productID}".format(
productID=request.productID,
)
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="DELETE",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = google.protobuf.empty_pb2.Empty()
google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True)
return rsp
def delete_sprint(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.delete_sprint_pb2.DeleteSprintRequest, int, str, int) -> google.protobuf.empty_pb2.Empty
"""
删除迭代
:param request: delete_sprint请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: google.protobuf.empty_pb2.Empty
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.DeleteSprint"
uri = "/api/v1/sprints/{sprintID}".format(
sprintID=request.sprintID,
)
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="DELETE",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = google.protobuf.empty_pb2.Empty()
google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True)
return rsp
def get_issue(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.get_issue_pb2.GetIssueRequest, int, str, int) -> topboard_sdk.model.topboard.issue_pb2.Issue
"""
获取问题详情
:param request: get_issue请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.issue_pb2.Issue
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.GetIssue"
uri = "/api/v1/issues/{issueID}".format(
issueID=request.issueID,
)
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="GET",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.issue_pb2.Issue()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def get_product(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.get_product_pb2.GetProductRequest, int, str, int) -> topboard_sdk.model.topboard.product_pb2.Product
"""
获取产品详情
:param request: get_product请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.product_pb2.Product
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.GetProduct"
uri = "/api/v1/products/{productID}".format(
productID=request.productID,
)
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="GET",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.product_pb2.Product()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def get_sprint(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.get_sprint_pb2.GetSprintRequest, int, str, int) -> topboard_sdk.model.topboard.sprint_pb2.Sprint
"""
获取迭代详情
:param request: get_sprint请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.sprint_pb2.Sprint
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.GetSprint"
uri = "/api/v1/sprints/{sprintID}".format(
sprintID=request.sprintID,
)
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="GET",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.sprint_pb2.Sprint()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def search_comment(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.search_comment_pb2.SearchCommentRequest, int, str, int) -> topboard_sdk.api.topboard.search_comment_pb2.SearchCommentResponse
"""
搜索评论
:param request: search_comment请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.api.topboard.search_comment_pb2.SearchCommentResponse
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.SearchComment"
uri = "/api/v1/comments/search"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.api.topboard.search_comment_pb2.SearchCommentResponse()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def search_issue(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.search_issue_pb2.SearchIssueRequest, int, str, int) -> topboard_sdk.api.topboard.search_issue_pb2.SearchIssueResponse
"""
搜索问题
:param request: search_issue请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.api.topboard.search_issue_pb2.SearchIssueResponse
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.SearchIssue"
uri = "/api/v1/issues/search"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.api.topboard.search_issue_pb2.SearchIssueResponse()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def search_product(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.search_product_pb2.SearchProductRequest, int, str, int) -> topboard_sdk.api.topboard.search_product_pb2.SearchProductResponse
"""
搜索产品
:param request: search_product请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.api.topboard.search_product_pb2.SearchProductResponse
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.SearchProduct"
uri = "/api/v1/products/search"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.api.topboard.search_product_pb2.SearchProductResponse()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def search_sprint(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.search_sprint_pb2.SearchSprintRequest, int, str, int) -> topboard_sdk.api.topboard.search_sprint_pb2.SearchSprintResponse
"""
搜索迭代
:param request: search_sprint请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.api.topboard.search_sprint_pb2.SearchSprintResponse
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.SearchSprint"
uri = "/api/v1/sprints/search"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.api.topboard.search_sprint_pb2.SearchSprintResponse()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def update_comment(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.update_comment_pb2.UpdateCommentRequest, int, str, int) -> topboard_sdk.model.topboard.comment_pb2.Comment
"""
更新评论
:param request: update_comment请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.comment_pb2.Comment
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.UpdateComment"
uri = "/api/v1/comments/{commentID}".format(
commentID=request.commentID,
)
requestParam = request.comment
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="PUT",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.comment_pb2.Comment()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def update_issue(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.update_issue_pb2.UpdateIssueRequest, int, str, int) -> topboard_sdk.model.topboard.issue_pb2.Issue
"""
更新问题
:param request: update_issue请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.issue_pb2.Issue
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.UpdateIssue"
uri = "/api/v1/issues/{issueID}".format(
issueID=request.issueID,
)
requestParam = request.issue
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="PUT",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.issue_pb2.Issue()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def update_issue_step(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.update_issue_step_pb2.UpdateIssueStepRequest, int, str, int) -> topboard_sdk.model.topboard.issue_pb2.Issue
"""
更新问题步骤
:param request: update_issue_step请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.issue_pb2.Issue
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.UpdateIssueStep"
uri = "/api/v1/issues/{issueID}/step".format(
issueID=request.issueID,
)
requestParam = request.step
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="PUT",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.issue_pb2.Issue()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def update_product(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.update_product_pb2.UpdateProductRequest, int, str, int) -> topboard_sdk.model.topboard.product_pb2.Product
"""
更新产品
:param request: update_product请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.product_pb2.Product
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.UpdateProduct"
uri = "/api/v1/products/{productID}".format(
productID=request.productID,
)
requestParam = request.product
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="PUT",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.product_pb2.Product()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def update_sprint(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.update_sprint_pb2.UpdateSprintRequest, int, str, int) -> topboard_sdk.model.topboard.sprint_pb2.Sprint
"""
更新迭代
:param request: update_sprint请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.model.topboard.sprint_pb2.Sprint
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.UpdateSprint"
uri = "/api/v1/sprints/{sprintID}".format(
sprintID=request.sprintID,
)
requestParam = request.sprint
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="PUT",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.model.topboard.sprint_pb2.Sprint()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
def update_sprint_issue(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.update_sprint_issue_pb2.UpdateSprintIssueRequest, int, str, int) -> google.protobuf.empty_pb2.Empty
"""
更新问题所属迭代
:param request: update_sprint_issue请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: google.protobuf.empty_pb2.Empty
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.UpdateSprintIssue"
uri = "/api/v1/sprints/issues"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = google.protobuf.empty_pb2.Empty()
google.protobuf.json_format.ParseDict(rsp_obj, rsp, ignore_unknown_fields=True)
return rsp
def upload_temp_file(self, request, org, user, timeout=10):
# type: (topboard_sdk.api.topboard.upload_temp_file_pb2.UploadTempFileRequest, int, str, int) -> topboard_sdk.api.topboard.upload_temp_file_pb2.UploadTempFileResponse
"""
上传临时文件
:param request: upload_temp_file请求
:param org: 客户的org编号,为数字
:param user: 调用api使用的用户名
:param timeout: 调用超时时间,单位秒
:return: topboard_sdk.api.topboard.upload_temp_file_pb2.UploadTempFileResponse
"""
headers = {"org": org, "user": user}
route_name = ""
server_ip = self._server_ip
if self._service_name != "":
route_name = self._service_name
elif self._server_ip != "":
route_name = "easyops.api.topboard.topboard.UploadTempFile"
uri = "/api/v1/uploadtempfile"
requestParam = request
rsp_obj = topboard_sdk.utils.http_util.do_api_request(
method="POST",
src_name="logic.topboard_sdk",
dst_name=route_name,
server_ip=server_ip,
server_port=self._server_port,
host=self._host,
uri=uri,
params=google.protobuf.json_format.MessageToDict(
requestParam, preserving_proto_field_name=True),
headers=headers,
timeout=timeout,
)
rsp = topboard_sdk.api.topboard.upload_temp_file_pb2.UploadTempFileResponse()
google.protobuf.json_format.ParseDict(rsp_obj["data"], rsp, ignore_unknown_fields=True)
return rsp
| 37.349223
| 174
| 0.610233
| 3,949
| 36,042
| 5.285389
| 0.048113
| 0.073783
| 0.034209
| 0.053756
| 0.910933
| 0.90849
| 0.897374
| 0.862831
| 0.81583
| 0.808739
| 0
| 0.007096
| 0.292326
| 36,042
| 964
| 175
| 37.387967
| 0.811221
| 0.1953
| 0
| 0.787639
| 0
| 0
| 0.078979
| 0.051127
| 0
| 0
| 0
| 0
| 0
| 1
| 0.03645
| false
| 0
| 0.042789
| 0
| 0.115689
| 0.050713
| 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
|
5f0014f86c7adb5f357e6f71446fbbdc4cfa169b
| 4,674
|
py
|
Python
|
nnsvs/experimental/tacotron.py
|
r9y9/dnnsvs
|
b028f76fd4f081859ec99a2034e0e0dc8ce1a409
|
[
"MIT"
] | 72
|
2020-04-19T16:14:09.000Z
|
2020-05-02T04:02:05.000Z
|
nnsvs/experimental/tacotron.py
|
r9y9/dnnsvs
|
b028f76fd4f081859ec99a2034e0e0dc8ce1a409
|
[
"MIT"
] | 1
|
2020-04-19T16:28:03.000Z
|
2020-05-02T13:49:13.000Z
|
nnsvs/experimental/tacotron.py
|
r9y9/dnnsvs
|
b028f76fd4f081859ec99a2034e0e0dc8ce1a409
|
[
"MIT"
] | 3
|
2020-04-20T02:34:31.000Z
|
2020-04-26T01:04:35.000Z
|
from nnsvs.base import BaseModel
from nnsvs.tacotron.decoder import Decoder
from nnsvs.tacotron.decoder import NoAttDecoder as NoAttTacotron2Decoder
from nnsvs.tacotron.encoder import Encoder as Tacotron2Encoder
from nnsvs.tacotron.postnet import Postnet as Tacotron2Postnet
class Tacotron2(BaseModel):
def __init__(
self,
in_dim=512,
out_dim=80,
encoder_hidden_dim=512,
encoder_conv_layers=3,
encoder_conv_channels=512,
encoder_conv_kernel_size=5,
encoder_dropout=0.5,
decoder_layers=2,
decoder_hidden_dim=1024,
decoder_prenet_layers=2,
decoder_prenet_hidden_dim=256,
decoder_prenet_dropout=0.5,
decoder_zoneout=0.1,
decoder_attention_hidden_dim=129,
decoder_attention_conv_channels=32,
decoder_attention_conv_kernel_size=31,
postnet_layers=5,
postnet_channels=512,
postnet_kernel_size=5,
postnet_dropout=0.5,
reduction_factor=1,
):
super().__init__()
self.encoder = Tacotron2Encoder(
in_dim,
encoder_hidden_dim,
encoder_conv_layers,
encoder_conv_channels,
encoder_conv_kernel_size,
encoder_dropout,
)
self.decoder = Decoder(
encoder_hidden_dim,
out_dim,
decoder_layers,
decoder_hidden_dim,
decoder_prenet_layers,
decoder_prenet_hidden_dim,
decoder_prenet_dropout,
decoder_zoneout,
reduction_factor,
decoder_attention_hidden_dim,
decoder_attention_conv_channels,
decoder_attention_conv_kernel_size,
)
self.postnet = Tacotron2Postnet(
out_dim,
postnet_layers,
postnet_channels,
postnet_kernel_size,
postnet_dropout,
)
def is_autoregressive(self):
return True
def forward(self, inputs, in_lens, decoder_targets):
encoder_outs = self.encoder(inputs, in_lens)
outs = self.decoder(encoder_outs, in_lens, decoder_targets)
outs_fine = outs + self.postnet(outs)
# (B, C, T) -> (B, T, C)
outs = outs.transpose(2, 1)
outs_fine = outs_fine.transpose(2, 1)
return outs_fine
def inference(self, seq, lengths=None):
"""Inference step
Args:
seq (torch.Tensor): input sequence
Returns:
torch.Tensor: the output
"""
return self(seq, lengths, None)
class NoAttTacotron2(BaseModel):
def __init__(
self,
in_dim=512,
out_dim=80,
encoder_hidden_dim=512,
encoder_conv_layers=3,
encoder_conv_channels=512,
encoder_conv_kernel_size=5,
encoder_dropout=0.5,
decoder_layers=2,
decoder_hidden_dim=1024,
decoder_prenet_layers=2,
decoder_prenet_hidden_dim=256,
decoder_prenet_dropout=0.5,
decoder_zoneout=0.1,
postnet_layers=5,
postnet_channels=512,
postnet_kernel_size=5,
postnet_dropout=0.5,
reduction_factor=1,
):
super().__init__()
self.encoder = Tacotron2Encoder(
in_dim,
encoder_hidden_dim,
encoder_conv_layers,
encoder_conv_channels,
encoder_conv_kernel_size,
encoder_dropout,
)
self.decoder = NoAttTacotron2Decoder(
encoder_hidden_dim,
out_dim,
decoder_layers,
decoder_hidden_dim,
decoder_prenet_layers,
decoder_prenet_hidden_dim,
decoder_prenet_dropout,
decoder_zoneout,
reduction_factor,
)
self.postnet = Tacotron2Postnet(
out_dim,
postnet_layers,
postnet_channels,
postnet_kernel_size,
postnet_dropout,
)
def is_autoregressive(self):
return True
def forward(self, inputs, in_lens, decoder_targets):
encoder_outs = self.encoder(inputs, in_lens)
outs = self.decoder(encoder_outs, in_lens, decoder_targets)
outs_fine = outs + self.postnet(outs)
# (B, C, T) -> (B, T, C)
outs = outs.transpose(2, 1)
outs_fine = outs_fine.transpose(2, 1)
return outs_fine
def inference(self, seq, lengths=None):
"""Inference step
Args:
seq (torch.Tensor): input sequence
Returns:
torch.Tensor: the output
"""
return self(seq, lengths, None)
| 27.821429
| 72
| 0.600342
| 502
| 4,674
| 5.227092
| 0.149402
| 0.054878
| 0.036585
| 0.032012
| 0.865091
| 0.81936
| 0.81936
| 0.81936
| 0.81936
| 0.81936
| 0
| 0.030971
| 0.32991
| 4,674
| 167
| 73
| 27.988024
| 0.806833
| 0.052632
| 0
| 0.839695
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.061069
| false
| 0
| 0.038168
| 0.015267
| 0.160305
| 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
|
a0b00b7acb314b294ebb8f1e70838068290d73b9
| 2,092
|
py
|
Python
|
tests/flow/test_filters.py
|
vishalbelsare/RedisGraph
|
40b52477f8f7dbc5221d01f1648817f6772cd8c2
|
[
"Ruby",
"ISC",
"BSD-3-Clause",
"MIT"
] | 988
|
2019-05-13T13:46:45.000Z
|
2022-03-31T19:36:19.000Z
|
tests/flow/test_filters.py
|
vishalbelsare/RedisGraph
|
40b52477f8f7dbc5221d01f1648817f6772cd8c2
|
[
"Ruby",
"ISC",
"BSD-3-Clause",
"MIT"
] | 1,033
|
2019-05-14T07:54:38.000Z
|
2022-03-31T14:28:38.000Z
|
tests/flow/test_filters.py
|
vishalbelsare/RedisGraph
|
40b52477f8f7dbc5221d01f1648817f6772cd8c2
|
[
"Ruby",
"ISC",
"BSD-3-Clause",
"MIT"
] | 165
|
2019-05-14T07:31:30.000Z
|
2022-03-30T19:04:17.000Z
|
from RLTest import Env
from redisgraph import Graph
class testFilters():
def __init__(self):
self.env = Env(decodeResponses=True)
def test01_filter_with_different_predicates(self):
g = Graph("g", self.env.getConnection())
g.query("UNWIND range(1, 5) AS x CREATE (:N { v: x, b: x % 2 = 0 })")
# test and operation
expected = [[i, j] for i in range(1, 6) for j in range(1, 6) if i % 2 == 0 and j % 2 == 0]
result = g.query("MATCH (n:N), (m:N) WHERE n.b AND m.b RETURN n.v, m.v ORDER BY n.v, m.v")
self.env.assertEqual(result.result_set, expected)
# test or operation
expected = [[i, j] for i in range(1, 6) for j in range(1, 6) if i % 2 == 0 or j % 2 == 0]
result = g.query("MATCH (n:N), (m:N) WHERE n.b OR m.b RETURN n.v, m.v ORDER BY n.v, m.v")
self.env.assertEqual(result.result_set, expected)
# test xor operation
expected = [[i, j] for i in range(1, 6) for j in range(1, 6) if i % 2 != j % 2]
result = g.query("MATCH (n:N), (m:N) WHERE n.b XOR m.b RETURN n.v, m.v ORDER BY n.v, m.v")
self.env.assertEqual(result.result_set, expected)
# test negation of and operation
expected = [[i, j] for i in range(1, 6) for j in range(1, 6) if not (i % 2 == 0 and j % 2 == 0)]
result = g.query("MATCH (n:N), (m:N) WHERE NOT (n.b AND m.b) RETURN n.v, m.v ORDER BY n.v, m.v")
self.env.assertEqual(result.result_set, expected)
# test negation of or operation
expected = [[i, j] for i in range(1, 6) for j in range(1, 6) if not (i % 2 == 0 or j % 2 == 0)]
result = g.query("MATCH (n:N), (m:N) WHERE NOT (n.b OR m.b) RETURN n.v, m.v ORDER BY n.v, m.v")
self.env.assertEqual(result.result_set, expected)
# test negation of xor operation
expected = [[i, j] for i in range(1, 6) for j in range(1, 6) if not (i % 2 != j % 2)]
result = g.query("MATCH (n:N), (m:N) WHERE NOT (n.b XOR m.b) RETURN n.v, m.v ORDER BY n.v, m.v")
self.env.assertEqual(result.result_set, expected)
| 51.02439
| 104
| 0.572658
| 401
| 2,092
| 2.952618
| 0.142145
| 0.065878
| 0.081081
| 0.091216
| 0.824324
| 0.824324
| 0.824324
| 0.824324
| 0.824324
| 0.824324
| 0
| 0.032808
| 0.271511
| 2,092
| 40
| 105
| 52.3
| 0.744094
| 0.070268
| 0
| 0.230769
| 0
| 0.269231
| 0.255418
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 1
| 0.076923
| false
| 0
| 0.076923
| 0
| 0.192308
| 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
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
268ead5e7eb1f6a8504482171ffd4ee8e74ad527
| 6,867
|
py
|
Python
|
saliency/tf1/xrai.py
|
craymichael/saliency
|
d796ad4a4bcc53dff03187a4ff27bff38a4bb404
|
[
"Apache-2.0"
] | null | null | null |
saliency/tf1/xrai.py
|
craymichael/saliency
|
d796ad4a4bcc53dff03187a4ff27bff38a4bb404
|
[
"Apache-2.0"
] | null | null | null |
saliency/tf1/xrai.py
|
craymichael/saliency
|
d796ad4a4bcc53dff03187a4ff27bff38a4bb404
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Utilities to compute saliency for a TF1 model using the XRAI method."""
from .base import TF1CoreSaliency
from ..core import xrai as core_xrai
XRAIParameters = core_xrai.XRAIParameters
class XRAI(TF1CoreSaliency):
r"""A TF1CoreSaliency class that computes XRAI."""
def __init__(self, graph, session, y, x):
super(XRAI, self).__init__(graph, session, y, x)
self.core_instance = core_xrai.XRAI()
def GetMask(self,
x_value,
feed_dict={},
baselines=None,
segments=None,
base_attribution=None,
batch_size=1,
extra_parameters=None):
"""Applies XRAI method on an input image and returns the result saliency heatmap.
Args:
x_value: Input ndarray, not batched.
feed_dict: feed dictionary to pass to the TF session.run() call.
Defaults to {}.
baselines: a list of baselines to use for calculating
Integrated Gradients attribution. Every baseline in
the list should have the same dimensions as the
input. If the value is not set then the algorithm
will make the best effort to select default
baselines. Defaults to None.
segments: the list of precalculated image segments that should
be passed to XRAI. Each element of the list is an
[N,M] boolean array, where NxM are the image
dimensions. Each elemeent on the list contains exactly the
mask that corresponds to one segment. If the value is None,
Felzenszwalb's segmentation algorithm will be applied.
Defaults to None.
base_attribution: an optional pre-calculated base attribution that XRAI
should use. The shape of the parameter should match
the shape of `x_value`. If the value is None, the
method calculates Integrated Gradients attribution and
uses it.
batch_size: Maximum number of x inputs (steps along the integration
path) that are passed to sess.run as a batch.
extra_parameters: an XRAIParameters object that specifies
additional parameters for the XRAI saliency
method. If it is None, an XRAIParameters object
will be created with default parameters. See
XRAIParameters for more details.
Raises:
ValueError: If algorithm type is unknown (not full or fast).
If the shape of `base_attribution` dosn't match the shape of
`x_value`.
If call_model_function cannot return INPUT_OUTPUT_GRADIENTS.
Returns:
np.ndarray: A numpy array that contains the saliency heatmap.
TODO(tolgab) Add output_selector functionality from XRAI API doc
"""
if extra_parameters is None:
x_steps = XRAIParameters().steps
else:
x_steps = extra_parameters.steps
self.validate_xy_tensor_shape(x_steps, batch_size)
return self.core_instance.GetMask(
x_value,
call_model_function=self.call_model_function,
call_model_args=feed_dict,
baselines=baselines,
segments=segments,
base_attribution=base_attribution,
batch_size=batch_size,
extra_parameters=extra_parameters)
def GetMaskWithDetails(self,
x_value,
feed_dict={},
baselines=None,
segments=None,
base_attribution=None,
batch_size=1,
extra_parameters=None):
"""Applies XRAI method on an input image and returns the result saliency heatmap along with other detailed information.
Args:
x_value: Input ndarray, not batched.
feed_dict: feed dictionary to pass to the TF session.run() call.
Defaults to {}.
baselines: a list of baselines to use for calculating
Integrated Gradients attribution. Every baseline in
the list should have the same dimensions as the
input. If the value is not set then the algorithm
will make the best effort to select default
baselines. Defaults to None.
segments: the list of precalculated image segments that should
be passed to XRAI. Each element of the list is an
[N,M] boolean array, where NxM are the image
dimensions. Each elemeent on the list contains exactly the
mask that corresponds to one segment. If the value is None,
Felzenszwalb's segmentation algorithm will be applied.
Defaults to None.
base_attribution: an optional pre-calculated base attribution that XRAI
should use. The shape of the parameter should match
the shape of `x_value`. If the value is None, the
method calculates Integrated Gradients attribution and
uses it.
batch_size: Maximum number of x inputs (steps along the integration
path) that are passed to sess.run as a batch.
extra_parameters: an XRAIParameters object that specifies
additional parameters for the XRAI saliency
method. If it is None, an XRAIParameters object
will be created with default parameters. See
XRAIParameters for more details.
Raises:
ValueError: If algorithm type is unknown (not full or fast).
If the shape of `base_attribution` dosn't match the shape of
`x_value`.
If call_model_function cannot return INPUT_OUTPUT_GRADIENTS.
Returns:
XRAIOutput: an object that contains the output of the XRAI algorithm.
TODO(tolgab) Add output_selector functionality from XRAI API doc
"""
if extra_parameters is None:
x_steps = XRAIParameters().steps
else:
x_steps = extra_parameters.steps
self.validate_xy_tensor_shape(x_steps, batch_size)
return self.core_instance.GetMaskWithDetails(
x_value,
call_model_function=self.call_model_function,
call_model_args=feed_dict,
baselines=baselines,
segments=segments,
base_attribution=base_attribution,
batch_size=batch_size,
extra_parameters=extra_parameters)
| 42.388889
| 123
| 0.664919
| 885
| 6,867
| 5.050847
| 0.245198
| 0.040268
| 0.017897
| 0.016107
| 0.788367
| 0.788367
| 0.788367
| 0.788367
| 0.788367
| 0.788367
| 0
| 0.002864
| 0.288044
| 6,867
| 161
| 124
| 42.652174
| 0.911434
| 0.678171
| 0
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012422
| 0
| 1
| 0.057692
| false
| 0
| 0.038462
| 0
| 0.153846
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
269037f668441aea11879d3eece4b2b5adfc6867
| 2,506
|
py
|
Python
|
tests/test_parser.py
|
justinyiwang/lux
|
22f886d2c2591cb665eb63f976ea425afd0ac3e1
|
[
"Apache-2.0"
] | null | null | null |
tests/test_parser.py
|
justinyiwang/lux
|
22f886d2c2591cb665eb63f976ea425afd0ac3e1
|
[
"Apache-2.0"
] | null | null | null |
tests/test_parser.py
|
justinyiwang/lux
|
22f886d2c2591cb665eb63f976ea425afd0ac3e1
|
[
"Apache-2.0"
] | null | null | null |
import pandas as pd
import lux
def test_case1():
ldf = pd.read_csv("lux/data/car.csv")
ldf.set_intent(["Horsepower"])
assert(type(ldf._intent[0]) is lux.Clause)
assert(ldf._intent[0].attribute == "Horsepower")
def test_case2():
ldf = pd.read_csv("lux/data/car.csv")
ldf.set_intent(["Horsepower", lux.Clause("MilesPerGal", channel="x")])
assert(type(ldf._intent[0]) is lux.Clause)
assert(ldf._intent[0].attribute == "Horsepower")
assert(type(ldf._intent[1]) is lux.Clause)
assert(ldf._intent[1].attribute == "MilesPerGal")
def test_case3():
ldf = pd.read_csv("lux/data/car.csv")
ldf.set_intent(["Horsepower", "Origin=USA"])
assert(type(ldf._intent[0]) is lux.Clause)
assert(ldf._intent[0].attribute == "Horsepower")
assert(type(ldf._intent[1]) is lux.Clause)
assert(ldf._intent[1].attribute == "Origin")
assert(ldf._intent[1].value == "USA")
def test_case4():
ldf = pd.read_csv("lux/data/car.csv")
ldf.set_intent(["Horsepower", "Origin=USA|Japan"])
assert(type(ldf._intent[0]) is lux.Clause)
assert(ldf._intent[0].attribute == "Horsepower")
assert(type(ldf._intent[1]) is lux.Clause)
assert(ldf._intent[1].attribute == "Origin")
assert(ldf._intent[1].value == ["USA","Japan"])
def test_case5():
ldf = pd.read_csv("lux/data/car.csv")
ldf.set_intent([["Horsepower", "MilesPerGal", "Weight"], "Origin=USA"])
assert(type(ldf._intent[0]) is lux.Clause)
assert(ldf._intent[0].attribute == ["Horsepower", "MilesPerGal", "Weight"])
assert(type(ldf._intent[1]) is lux.Clause)
assert(ldf._intent[1].attribute == "Origin")
assert(ldf._intent[1].value == "USA")
ldf.set_intent(["Horsepower|MilesPerGal|Weight", "Origin=USA"])
assert(type(ldf._intent[0]) is lux.Clause)
assert(ldf._intent[0].attribute == ["Horsepower", "MilesPerGal", "Weight"])
assert(type(ldf._intent[1]) is lux.Clause)
assert(ldf._intent[1].attribute == "Origin")
assert(ldf._intent[1].value == "USA")
def test_case6():
ldf = pd.read_csv("lux/data/car.csv")
ldf.set_intent(["Horsepower", "Origin=?"])
ldf._repr_html_()
assert(type(ldf._intent[0]) is lux.Clause)
assert(ldf._intent[0].attribute == "Horsepower")
assert(type(ldf._intent[1]) is lux.Clause)
assert(ldf._intent[1].attribute == "Origin")
assert(ldf._intent[1].value == ["USA","Japan","Europe"])
# TODO: Need to support this case
'''
lux.set_intent(["Horsepower","MPG","Acceleration"],"Origin")
lux.set_intent("Horsepower/MPG/Acceleration", "Origin")
--> [Clause(attr= ["Horsepower","MPG","Acceleration"], type= "attributeGroup")]
'''
| 37.402985
| 81
| 0.697925
| 368
| 2,506
| 4.603261
| 0.133152
| 0.164699
| 0.159386
| 0.145809
| 0.868949
| 0.868949
| 0.868949
| 0.818182
| 0.818182
| 0.818182
| 0
| 0.0162
| 0.088587
| 2,506
| 67
| 82
| 37.402985
| 0.725482
| 0.01237
| 0
| 0.641509
| 0
| 0
| 0.195854
| 0.012792
| 0
| 0
| 0
| 0.014925
| 0.584906
| 1
| 0.113208
| false
| 0
| 0.037736
| 0
| 0.150943
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
cd91505a4122625d687b99dfd0056f5b92b8f55e
| 16,539
|
py
|
Python
|
titus/test/testDumpstate.py
|
jmilleralpine/hadrian
|
6a438e0370487bbbac5e64a4d6d7a2728902d153
|
[
"Apache-2.0"
] | 127
|
2015-08-05T17:08:35.000Z
|
2019-10-17T07:07:08.000Z
|
titus/test/testDumpstate.py
|
jmilleralpine/hadrian
|
6a438e0370487bbbac5e64a4d6d7a2728902d153
|
[
"Apache-2.0"
] | 54
|
2015-11-20T02:21:29.000Z
|
2019-11-23T20:17:23.000Z
|
titus/test/testDumpstate.py
|
jmilleralpine/hadrian
|
6a438e0370487bbbac5e64a4d6d7a2728902d153
|
[
"Apache-2.0"
] | 58
|
2015-05-27T18:19:29.000Z
|
2019-05-23T12:37:17.000Z
|
#!/usr/bin/env python
# Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import json
import unittest
from titus.genpy import PFAEngine
class TestDumpstate(unittest.TestCase):
def testPrivateCellsInt(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: int
init: 0
action:
- cell: test
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, "0")
engine.action(3)
self.assertEqual(engine.snapshot().cells["test"].init, "3")
engine.action(2)
self.assertEqual(engine.snapshot().cells["test"].init, "5")
def testPrivateCellsString(self):
engine, = PFAEngine.fromYaml('''
input: string
output: "null"
cells:
test:
type: string
init: ""
action:
- cell: test
to:
params: [{x: string}]
ret: string
do: {s.concat: [x, input]}
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, '""')
engine.action("hey")
self.assertEqual(engine.snapshot().cells["test"].init, '"hey"')
engine.action("there")
self.assertEqual(engine.snapshot().cells["test"].init, '"heythere"')
def testPrivateCellsArray(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: {type: array, items: int}
init: []
action:
- cell: test
to:
params: [{x: {type: array, items: int}}]
ret: {type: array, items: int}
do: {a.append: [x, input]}
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, "[]")
engine.action(3)
self.assertEqual(engine.snapshot().cells["test"].init, "[3]")
engine.action(2)
self.assertEqual(engine.snapshot().cells["test"].init, "[3, 2]")
def testPrivateCellsMap(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: {type: map, values: int}
init: {"a": 0, "b": 0}
action:
- cell: test
path: [{string: b}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
- null
''')
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["b"], 0)
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["b"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["b"], 5)
def testPrivateCellsRecord(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type:
type: record
name: MyRecord
fields:
- {name: a, type: int}
- {name: b, type: string}
init: {a: 0, b: hey}
action:
- cell: test
path: [{string: a}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
- null
''')
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["a"], 0)
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["a"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["a"], 5)
def testPrivateCellsUnion(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: [int, string]
init: {int: 0}
action:
- cell: test
to:
params: [{x: [int, string]}]
ret: [int, string]
do:
cast: x
cases:
- as: int
named: y
do: {+: [y, input]}
- as: string
named: y
do: y
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, '{"int": 0}')
engine.action(3)
self.assertEqual(engine.snapshot().cells["test"].init, '3')
engine.action(2)
self.assertEqual(engine.snapshot().cells["test"].init, '5')
def testPublicCellsInt(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: int
init: 0
shared: true
action:
- cell: test
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, "0")
engine.action(3)
self.assertEqual(engine.snapshot().cells["test"].init, "3")
engine.action(2)
self.assertEqual(engine.snapshot().cells["test"].init, "5")
def testPublicCellsString(self):
engine, = PFAEngine.fromYaml('''
input: string
output: "null"
cells:
test:
type: string
init: ""
shared: true
action:
- cell: test
to:
params: [{x: string}]
ret: string
do: {s.concat: [x, input]}
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, '""')
engine.action("hey")
self.assertEqual(engine.snapshot().cells["test"].init, '"hey"')
engine.action("there")
self.assertEqual(engine.snapshot().cells["test"].init, '"heythere"')
def testPublicCellsArray(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: {type: array, items: int}
init: []
shared: true
action:
- cell: test
to:
params: [{x: {type: array, items: int}}]
ret: {type: array, items: int}
do: {a.append: [x, input]}
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, "[]")
engine.action(3)
self.assertEqual(engine.snapshot().cells["test"].init, "[3]")
engine.action(2)
self.assertEqual(engine.snapshot().cells["test"].init, "[3, 2]")
def testPublicCellsMap(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: {type: map, values: int}
init: {"a": 0, "b": 0}
shared: true
action:
- cell: test
path: [{string: b}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
- null
''')
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["b"], 0)
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["b"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["b"], 5)
def testPublicCellsRecord(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type:
type: record
name: MyRecord
fields:
- {name: a, type: int}
- {name: b, type: string}
init: {a: 0, b: hey}
shared: true
action:
- cell: test
path: [{string: a}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
- null
''')
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["a"], 0)
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["a"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().cells["test"].init)["a"], 5)
def testPublicCellsUnion(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
cells:
test:
type: [int, string]
init: {int: 0}
shared: true
action:
- cell: test
to:
params: [{x: [int, string]}]
ret: [int, string]
do:
cast: x
cases:
- as: int
named: y
do: {+: [y, input]}
- as: string
named: y
do: y
- null
''')
self.assertEqual(engine.snapshot().cells["test"].init, '{"int": 0}')
engine.action(3)
self.assertEqual(engine.snapshot().cells["test"].init, '3')
engine.action(2)
self.assertEqual(engine.snapshot().cells["test"].init, '5')
def testPrivatePoolsInt(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: int
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
init: 0
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "3")
engine.action(2)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "5")
def testPrivatePoolsString(self):
engine, = PFAEngine.fromYaml('''
input: string
output: "null"
pools:
test:
type: string
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: string}]
ret: string
do: {s.concat: [x, input]}
init: {string: ""}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action("hey")
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], '"hey"')
engine.action("there")
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], '"heythere"')
def testPrivatePoolsArray(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: {type: array, items: int}
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: {type: array, items: int}}]
ret: {type: array, items: int}
do: {a.append: [x, input]}
init: {value: [], type: {type: array, items: int}}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "[3]")
engine.action(2)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "[3, 2]")
def testPrivatePoolsMap(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: {type: map, values: int}
init: {"zzz": {"a": 0, "b": 0}}
action:
- pool: test
path: [{string: zzz}, {string: b}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
init: {value: {}, type: {type: map, values: int}}
- null
''')
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["b"], 0)
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["b"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["b"], 5)
def testPrivatePoolsRecord(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type:
type: record
name: MyRecord
fields:
- {name: a, type: int}
- {name: b, type: string}
action:
- pool: test
path: [{string: zzz}, {string: a}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
init: {value: {a: 0, b: hey}, type: MyRecord}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["a"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["a"], 5)
def testPrivatePoolsUnion(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: [int, string]
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: [int, string]}]
ret: [int, string]
do:
cast: x
cases:
- as: int
named: y
do: {+: [y, input]}
- as: string
named: y
do: y
init: {int: 0}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "3")
engine.action(2)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "5")
def testPublicPoolsInt(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: int
shared: true
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
init: 0
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "3")
engine.action(2)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "5")
def testPublicPoolsString(self):
engine, = PFAEngine.fromYaml('''
input: string
output: "null"
pools:
test:
type: string
shared: true
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: string}]
ret: string
do: {s.concat: [x, input]}
init: {string: ""}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action("hey")
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], '"hey"')
engine.action("there")
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], '"heythere"')
def testPublicPoolsArray(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: {type: array, items: int}
shared: true
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: {type: array, items: int}}]
ret: {type: array, items: int}
do: {a.append: [x, input]}
init: {value: [], type: {type: array, items: int}}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "[3]")
engine.action(2)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "[3, 2]")
def testPublicPoolsMap(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: {type: map, values: int}
init: {"zzz": {"a": 0, "b": 0}}
shared: true
action:
- pool: test
path: [{string: zzz}, {string: b}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
init: {value: {}, type: {type: map, values: int}}
- null
''')
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["b"], 0)
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["b"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["b"], 5)
def testPublicPoolsRecord(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type:
type: record
name: MyRecord
fields:
- {name: a, type: int}
- {name: b, type: string}
shared: true
action:
- pool: test
path: [{string: zzz}, {string: a}]
to:
params: [{x: int}]
ret: int
do: {+: [x, input]}
init: {value: {a: 0, b: hey}, type: MyRecord}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["a"], 3)
engine.action(2)
self.assertEqual(json.loads(engine.snapshot().pools["test"].init["zzz"])["a"], 5)
def testPublicPoolsUnion(self):
engine, = PFAEngine.fromYaml('''
input: int
output: "null"
pools:
test:
type: [int, string]
shared: true
action:
- pool: test
path: [{string: zzz}]
to:
params: [{x: [int, string]}]
ret: [int, string]
do:
cast: x
cases:
- as: int
named: y
do: {+: [y, input]}
- as: string
named: y
do: y
init: {int: 0}
- null
''')
self.assertEqual(engine.snapshot().pools["test"].init, {})
engine.action(3)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "3")
engine.action(2)
self.assertEqual(engine.snapshot().pools["test"].init["zzz"], "5")
if __name__ == "__main__":
unittest.main()
| 25.923197
| 89
| 0.561038
| 1,959
| 16,539
| 4.732517
| 0.084227
| 0.116492
| 0.113256
| 0.156402
| 0.872937
| 0.872937
| 0.872937
| 0.87078
| 0.87078
| 0.867544
| 0
| 0.009871
| 0.252675
| 16,539
| 637
| 90
| 25.963893
| 0.74021
| 0.044743
| 0
| 0.949324
| 0
| 0
| 0.473324
| 0
| 0
| 0
| 0
| 0
| 0.121622
| 1
| 0.040541
| false
| 0
| 0.005068
| 0
| 0.047297
| 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
|
269a4f0cf431e50e27c25300c306da35cf7ef0e4
| 22,149
|
py
|
Python
|
python/climate_ae/models/ae/module.py
|
kueddelmaier/latent-linear-adjustment-autoencoders
|
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
|
[
"MIT"
] | 3
|
2020-10-29T19:08:27.000Z
|
2021-08-14T09:19:48.000Z
|
python/climate_ae/models/ae/module.py
|
kueddelmaier/latent-linear-adjustment-autoencoders
|
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
|
[
"MIT"
] | 6
|
2020-11-13T19:01:07.000Z
|
2022-01-04T09:34:05.000Z
|
python/climate_ae/models/ae/module.py
|
kueddelmaier/latent-linear-adjustment-autoencoders
|
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
|
[
"MIT"
] | 1
|
2021-03-01T15:28:56.000Z
|
2021-03-01T15:28:56.000Z
|
import tensorflow as tf
class _ResidualInnerBlock(tf.keras.Model):
def __init__(self, num_filters_resnet_conv1, num_filters_resnet_conv2,
kernel_size, *args, **kwargs):
super().__init__(*args, **kwargs)
self.conv1 = tf.keras.layers.Conv2D(
filters=num_filters_resnet_conv1, kernel_size=[kernel_size, kernel_size],
strides=[1, 1], name="res3x3", padding="SAME", activation=None)
self.conv2 = tf.keras.layers.Conv2D(
filters=num_filters_resnet_conv2, kernel_size=[1, 1],
strides=[1, 1], name="res1x1", padding="SAME", activation=None)
def call(self, inputs, *args, **kwargs):
h_i = tf.nn.relu(inputs)
h_i = self.conv1(h_i)
h_i = tf.nn.relu(h_i)
h_i = self.conv2(h_i)
return h_i
class ResidualBlock(tf.keras.Model):
def __init__(self, num_residual_layers, num_filters_resnet_conv1,
num_filters_resnet_conv2, kernel_size, *args, **kwargs):
super().__init__(*args, **kwargs)
self.blocks = []
for _ in range(0, num_residual_layers):
self.blocks.append(_ResidualInnerBlock(
num_filters_resnet_conv1=num_filters_resnet_conv1,
num_filters_resnet_conv2=num_filters_resnet_conv2,
kernel_size=kernel_size))
def call(self, inputs, *args, **kwargs):
h = inputs
for block in self.blocks:
h = tf.keras.layers.add([h, block(h)])
return h
class ConvEncoderLayer(tf.keras.Model):
def __init__(self, config, **kwargs):
super().__init__(**kwargs)
self.config = config
self.residual_block = ResidualBlock(
num_residual_layers=config.num_residual_layers,
num_filters_resnet_conv1=config.num_filters_resnet_conv1,
num_filters_resnet_conv2=config.num_filters_resnet_conv2,
kernel_size=self.config.kernel_size)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
self.bn_resnet_block = tf.keras.layers.BatchNormalization(
momentum=config.bn_momentum, renorm=config.bn_renorm)
self.blocks = []
self.bn_blocks = []
for i in range(0, config.num_conv_layers):
self.blocks.append(tf.keras.layers.Conv2D(
filters=config.filter_sizes[i],
kernel_size=[self.config.kernel_size, self.config.kernel_size],
strides=[2, 2], padding="SAME",
activation=tf.nn.relu if self.config.activation == "relu"
else tf.nn.leaky_relu))
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
self.bn_blocks.append(tf.keras.layers.BatchNormalization(
momentum=config.bn_momentum, renorm=config.bn_renorm))
def call(self, inputs, *args, **kwargs):
x = inputs
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
for block, bn_block in zip(self.blocks, self.bn_blocks):
x = block(x)
x = bn_block(x, *args, **kwargs)
x = self.residual_block(x)
x = self.bn_resnet_block(x, *args, **kwargs)
else:
for block in self.blocks:
x = block(x)
x = self.residual_block(x)
else:
for block in self.blocks:
x = block(x)
x = self.residual_block(x)
return x
class FcEncoderLayer(tf.keras.Model):
def __init__(self, config, **kwargs):
super().__init__(**kwargs)
self.config = config
self.blocks = tf.keras.Sequential()
if self.config.use_dropout:
self.do_blocks = tf.keras.Sequential()
for i in range(0, config.num_fc_layers):
self.blocks.add(tf.keras.layers.Dense(
units=config.num_hiddens[i],
activation=None if self.config.architecture == "linear"
else (tf.nn.relu if self.config.activation=="relu"
else tf.nn.leaky_relu)))
if self.config.use_dropout:
self.do_blocks.add(
tf.keras.layers.Dropout(self.config.dropout_rate))
def call(self, inputs, *args, **kwargs):
x = inputs
if self.config.use_dropout:
raise NotImplementedError
else:
x = self.blocks(x)
return x
class ConvDecoderLayer(tf.keras.Model):
def __init__(self, config, **kwargs):
super().__init__(**kwargs)
self.config = config
self.residual_block = ResidualBlock(
num_residual_layers=config.num_residual_layers,
num_filters_resnet_conv1=config.num_filters_resnet_conv1,
num_filters_resnet_conv2=config.num_filters_resnet_conv2,
kernel_size=self.config.kernel_size)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
self.bn_resnet_block = tf.keras.layers.BatchNormalization(
momentum=config.bn_momentum, renorm=config.bn_renorm)
self.blocks = []
self.bn_blocks = []
for i in range(0, config.num_conv_layers-1):
self.blocks.append(
tf.keras.layers.Convolution2DTranspose(
filters=config.filter_sizes[config.num_conv_layers-2-i],
kernel_size=[self.config.kernel_size, self.config.kernel_size],
strides=[2, 2], padding="SAME",
activation=tf.nn.relu if self.config.activation == "relu"
else tf.nn.leaky_relu))
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
self.bn_blocks.append(tf.keras.layers.BatchNormalization(
momentum=config.bn_momentum, renorm=config.bn_renorm))
self.output_layer = \
tf.keras.layers.Convolution2DTranspose(
filters=config.num_filters_out,
kernel_size=[self.config.kernel_size, self.config.kernel_size],
strides=[2, 2], padding="SAME",
activation=tf.nn.sigmoid if config.sigmoid_activation else None)
def call(self, inputs, *args, **kwargs):
x = inputs
x = self.residual_block(x)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
x = self.bn_resnet_block(x, *args, **kwargs)
for block, bn_block in zip(self.blocks, self.bn_blocks):
x = block(x)
x = bn_block(x, *args, **kwargs)
else:
for block in self.blocks:
x = block(x)
else:
for block in self.blocks:
x = block(x)
x = self.output_layer(x)
return x
class FcDecoderLayer(tf.keras.Model):
def __init__(self, config, units_out, **kwargs):
super().__init__(**kwargs)
self.config = config
self.units_out = units_out
def build(self, input_shape):
self.blocks = tf.keras.Sequential()
if self.config.use_dropout:
self.do_blocks = tf.keras.Sequential()
for i in range(0, self.config.num_fc_layers-1):
self.blocks.add(
tf.keras.layers.Dense(
units=self.config.num_hiddens[self.config.num_fc_layers-2-i],
activation=None if self.config.architecture == "linear"
else (tf.nn.relu if self.config.activation=="relu"
else tf.nn.leaky_relu)))
if self.config.use_dropout:
self.do_blocks.add(
tf.keras.layers.Dropout(self.config.dropout_rate))
self.last_block = tf.keras.layers.Dense(units=self.units_out,
activation=tf.nn.sigmoid if self.config.sigmoid_activation else None)
self.built = True
def call(self, inputs, *args, **kwargs):
x = inputs
if self.config.use_dropout:
raise NotImplementedError
else:
x = self.blocks(x)
x = self.last_block(x)
return x
class StochasticLayer(tf.keras.Model):
def __init__(self, config, dim_latent, **kwargs):
super().__init__(**kwargs)
self.config = config
self.flatten = tf.keras.layers.Flatten()
self.dim_latent = dim_latent
self._input_shape = None
def build(self, input_shape):
units = 1
for i in range(1, len(input_shape)):
units *= input_shape[i]
self._input_shape = input_shape
self.dense_in = tf.keras.layers.Dense(units=self.dim_latent*2,
activation=None)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
self.bn1 = tf.keras.layers.BatchNormalization(
momentum=self.config.bn_momentum, renorm=self.config.bn_renorm)
if self.config.use_dropout:
self.drop1 = tf.keras.layers.Dropout(self.config.dropout_rate)
self.dense_out = tf.keras.layers.Dense(units=units, activation=None)
if self.config.use_dropout:
self.drop2 = tf.keras.layers.Dropout(self.config.dropout_rate)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
self.bn2 = tf.keras.layers.BatchNormalization(
momentum=self.config.bn_momentum, renorm=self.config.bn_renorm)
self.built = True
def call(self, inputs, *args, **kwargs):
x_shape = tf.shape(inputs)
x = self.flatten(inputs)
mu_log_sigma2 = self.dense_in(x)
if self.config.use_dropout:
mu_log_sigma2 = self.drop1(mu_log_sigma2, *args, **kwargs)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
mu_log_sigma2 = self.bn1(mu_log_sigma2, *args, **kwargs)
mu, log_sigma2 = tf.split(mu_log_sigma2, num_or_size_splits=2,
axis=-1)
eps = tf.random.normal(tf.shape(mu), 0, 1)
z_std = tf.exp(log_sigma2 / 2)
z = eps*z_std + mu
inter_z = self.dense_out(z)
if self.config.use_dropout:
inter_z = self.drop2(inter_z, *args, **kwargs)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
inter_z = self.bn2(inter_z, *args, **kwargs)
output = tf.reshape(inter_z, x_shape)
kld_z = 0.5 * tf.reduce_sum(
tf.square(mu) + tf.exp(log_sigma2) - log_sigma2 - 1, axis=1)
out_dict = {"z": z, "log_sigma_2": log_sigma2, "mu": mu,
"kld_z": kld_z}
return output, out_dict
def set_encodings(self, z, *args, **kwargs):
inter_z = self.dense_out(z)
if self.config.use_dropout:
inter_z = self.drop2(inter_z, *args, **kwargs)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
inter_z = self.bn2(inter_z, *args, **kwargs)
output_shape = [-1]
for i in range(1, len(self._input_shape)):
output_shape.append(self._input_shape[i])
output = tf.reshape(inter_z, output_shape)
return output
def generate(self, num_samples, *args, **kwargs):
z = tf.random_normal([num_samples, self.dim_latent], 0, 1)
inter_z = self.dense_out(z)
if self.config.use_dropout:
inter_z = self.drop2(inter_z, *args, **kwargs)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
inter_z = self.bn2(inter_z, *args, **kwargs)
output_shape = [-1]
for i in range(1, len(self._input_shape)):
output_shape.append(self._input_shape[i])
output = tf.reshape(inter_z, output_shape)
return output, {"z": z}
def mean_encode(self, inputs, *args, **kwargs):
x = self.flatten(inputs)
mu_log_sigma2 = self.dense_in(x)
if self.config.use_dropout:
mu_log_sigma2 = self.drop1(mu_log_sigma2, *args, **kwargs)
if 'batch_norm' in self.config._fields:
if self.config.batch_norm:
mu_log_sigma2 = self.bn1(mu_log_sigma2, *args, **kwargs)
mu, _ = tf.split(mu_log_sigma2, num_or_size_splits=2, axis=-1)
return {"z": mu}
class DeterministicLayer(tf.keras.Model):
def __init__(self, config, dim_latent, **kwargs):
super().__init__(**kwargs)
self.flatten = tf.keras.layers.Flatten()
self.dim_latent = dim_latent
self._input_shape = None
self.config = config
def build(self, input_shape):
units = 1
for i in range(1, len(input_shape)):
units *= input_shape[i]
self._input_shape = input_shape
self.dense_in = tf.keras.layers.Dense(units=self.dim_latent,
activation=None)
if self.config.use_dropout:
self.drop1 = tf.keras.layers.Dropout(self.config.dropout_rate)
self.dense_out = tf.keras.layers.Dense(units=units, activation=None)
if self.config.use_dropout:
self.drop2 = tf.keras.layers.Dropout(self.config.dropout_rate)
self.built = True
def call(self, inputs, generate=False, *args, **kwargs):
x_shape = tf.shape(inputs)
x = self.flatten(inputs)
z = self.dense_in(x)
if self.config.use_dropout:
z = self.drop1(z, *args, **kwargs)
inter_z = self.dense_out(z)
if self.config.use_dropout:
inter_z = self.drop2(inter_z, *args, **kwargs)
output = tf.reshape(inter_z, x_shape)
return output, {"z": z}
def set_encodings(self, z, *args, **kwargs):
inter_z = self.dense_out(z)
if self.config.use_dropout:
inter_z = self.drop2(inter_z, *args, **kwargs)
output_shape = [-1]
for i in range(1, len(self._input_shape)):
output_shape.append(self._input_shape[i])
output = tf.reshape(inter_z, output_shape)
return output
class FcDetAutoencoderModel(tf.keras.Model):
def __init__(self, config, dim_latent, *args, **kwargs):
super().__init__(*args, **kwargs)
self.config = config
self.dim_latent = dim_latent
self.ae_type = "deterministic"
self._input_shape = None
self.flatten = tf.keras.layers.Flatten()
def build(self, input_shape):
self._input_shape = input_shape
units = input_shape[1]*input_shape[2]*input_shape[3]
self.encoder = FcEncoderLayer(config=self.config)
self.decoder = FcDecoderLayer(config=self.config, units_out=units)
self.deterministic_layer = DeterministicLayer(config=self.config,
dim_latent=self.dim_latent)
self.built = True
def call(self, inputs, *args, **kwargs):
x = self.flatten(inputs)
x = self.encoder(inputs=x, *args, **kwargs)
x, output_dict = self.deterministic_layer(inputs=x, *args, **kwargs)
x = self.decoder(inputs=x, *args, **kwargs)
output_shape = [-1, self._input_shape[1], self._input_shape[2],
self._input_shape[3]]
x = tf.reshape(x, output_shape)
output_dict.update({"output": x, "inputs": inputs})
return output_dict
def encode(self, inputs, *args, **kwargs):
x = self.flatten(inputs)
x = self.encoder(inputs=x, *args, **kwargs)
_, output_dict = self.deterministic_layer(inputs=x, *args, **kwargs)
return output_dict
def mean_encode(self, inputs, *args, **kwargs):
return self.encode(inputs, *args, **kwargs)
def decode(self, x, *args, **kwargs):
x = self.deterministic_layer.set_encodings(x, *args, **kwargs)
x = self.decoder(inputs=x, *args, **kwargs)
output_shape = [-1, self._input_shape[1], self._input_shape[2],
self._input_shape[3]]
x = tf.reshape(x, output_shape)
return {"output": x}
def autoencode(self, inputs, *args, **kwargs):
return self.call(inputs, *args, **kwargs)
class FcVarAutoencoderModel(tf.keras.Model):
def __init__(self, config, dim_latent, *args, **kwargs):
super().__init__(*args, **kwargs)
self.config = config
self.dim_latent = dim_latent
self.ae_type = "variational"
self._input_shape = None
self.flatten = tf.keras.layers.Flatten()
def build(self, input_shape):
self._input_shape = input_shape
units = input_shape[1]*input_shape[2]*input_shape[3]
self.encoder = FcEncoderLayer(config=self.config)
self.decoder = FcDecoderLayer(config=self.config, units_out=units)
self.stochastic_layer = StochasticLayer(config=self.config,
dim_latent=self.dim_latent)
self.built = True
def call(self, inputs, *args, **kwargs):
x = self.flatten(inputs)
x = self.encoder(inputs=x, *args, **kwargs)
x, output_dict = self.stochastic_layer(inputs=x, *args, **kwargs)
x = self.decoder(inputs=x, *args, **kwargs)
output_shape = [-1, self._input_shape[1], self._input_shape[2],
self._input_shape[3]]
x = tf.reshape(x, output_shape)
output_dict.update({"output": x, "inputs": inputs})
return output_dict
def encode(self, inputs, *args, **kwargs):
x = self.flatten(inputs)
x = self.encoder(inputs=x, *args, **kwargs)
_, output_dict = self.stochastic_layer(inputs=x, *args, **kwargs)
return output_dict
def mean_encode(self, inputs, *args, **kwargs):
x = self.flatten(inputs)
x = self.encoder(inputs=x, *args, **kwargs)
output_dict = self.stochastic_layer.mean_encode(inputs=x, *args, **kwargs)
return output_dict
def decode(self, x, *args, **kwargs):
x = self.stochastic_layer.set_encodings(x, *args, **kwargs)
x = self.decoder(inputs=x, *args, **kwargs)
output_shape = [-1, self._input_shape[1], self._input_shape[2],
self._input_shape[3]]
x = tf.reshape(x, output_shape)
return {"output": x}
def generate(self, num_samples, *args, **kwargs):
x, output_dict = self.stochastic_layer.generate(num_samples, *args, **kwargs)
x = self.decoder(inputs=x, *args, **kwargs)
output_dict.update({"output": x})
return output_dict
def autoencode(self, inputs, *args, **kwargs):
output_dict = self.mean_encode(inputs, *args, **kwargs)
return self.decode(output_dict["z"], *args, **kwargs)
class ConvVarAutoencoderModel(tf.keras.Model):
def __init__(self, config, dim_latent, *args, **kwargs):
super().__init__(*args, **kwargs)
self.config = config
self.dim_latent = dim_latent
self.ae_type = "variational"
self.encoder = ConvEncoderLayer(config=config)
self.decoder = ConvDecoderLayer(config=config)
self.stochastic_layer = StochasticLayer(config=config,
dim_latent=self.dim_latent)
def call(self, inputs, *args, **kwargs):
x = inputs
x = self.encoder(inputs=x)
x, output_dict = self.stochastic_layer(inputs=x, *args, **kwargs)
x = self.decoder(inputs=x)
output_dict.update({"output": x, "inputs": inputs})
return output_dict
def encode(self, inputs, *args, **kwargs):
x = inputs
x = self.encoder(inputs=x)
_, output_dict = self.stochastic_layer(inputs=x, *args, **kwargs)
return output_dict
def mean_encode(self, inputs, *args, **kwargs):
x = inputs
x = self.encoder(inputs=x)
output_dict = self.stochastic_layer.mean_encode(inputs=x, *args, **kwargs)
return output_dict
def decode(self, x, *args, **kwargs):
x = self.stochastic_layer.set_encodings(x, *args, **kwargs)
x = self.decoder(inputs=x)
return {"output": x}
def generate(self, num_samples, *args, **kwargs):
x, output_dict = self.stochastic_layer.generate(num_samples, *args, **kwargs)
x = self.decoder(inputs=x)
output_dict.update({"output": x})
return output_dict
def autoencode(self, inputs, *args, **kwargs):
output_dict = self.mean_encode(inputs)
return self.decode(output_dict["z"])
class ConvDetAutoencoderModel(tf.keras.Model):
def __init__(self, config, dim_latent, *args, **kwargs):
super().__init__(*args, **kwargs)
self.config = config
self.ae_type = "deterministic"
self.dim_latent = dim_latent
self.encoder = ConvEncoderLayer(config=config)
self.decoder = ConvDecoderLayer(config=config)
self.deterministic_layer = DeterministicLayer(config=config,
dim_latent=self.dim_latent)
def call(self, inputs, *args, **kwargs):
x = inputs
x = self.encoder(inputs=x)
x, output_dict = self.deterministic_layer(inputs=x)
x = self.decoder(inputs=x)
output_dict.update({"output": x, "inputs": inputs})
return output_dict
def encode(self, inputs, *args, **kwargs):
x = inputs
x = self.encoder(inputs=x)
_, output_dict = self.deterministic_layer(inputs=x)
return output_dict
def mean_encode(self, inputs, *args, **kwargs):
return self.encode(inputs)
def decode(self, x, *args, **kwargs):
x = self.deterministic_layer.set_encodings(x)
x = self.decoder(inputs=x)
return {"output": x}
def autoencode(self, inputs, *args, **kwargs):
return self.call(inputs)
class LinearModelPredictLatents(tf.keras.Model):
def __init__(self, config, **kwargs):
super().__init__(**kwargs)
self.dim_latent = config.dim_latent
def build(self, input_shape):
self.dense = tf.keras.layers.Dense(units=self.dim_latent,
activation=None)
self.built = True
def call(self, inputs):
return self.dense(inputs)
| 40.052441
| 86
| 0.604361
| 2,794
| 22,149
| 4.564782
| 0.053329
| 0.077623
| 0.035753
| 0.037635
| 0.908656
| 0.875647
| 0.847577
| 0.828211
| 0.798651
| 0.789164
| 0
| 0.00843
| 0.276943
| 22,149
| 552
| 87
| 40.125
| 0.787949
| 0
| 0
| 0.789583
| 0
| 0
| 0.015621
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.1125
| false
| 0
| 0.002083
| 0.010417
| 0.214583
| 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
|
26a8bd9ba1952ab7a732acef1c57d1e97e552276
| 84
|
py
|
Python
|
spira/yevon/io/__init__.py
|
qedalab/spira
|
32e4d2096e298b9fcc5952abd654312dc232a259
|
[
"MIT"
] | 10
|
2018-07-13T09:46:21.000Z
|
2021-06-22T13:34:50.000Z
|
spira/yevon/io/__init__.py
|
qedalab/spira
|
32e4d2096e298b9fcc5952abd654312dc232a259
|
[
"MIT"
] | 8
|
2018-09-09T11:32:40.000Z
|
2019-10-08T07:47:31.000Z
|
spira/yevon/io/__init__.py
|
qedalab/spira
|
32e4d2096e298b9fcc5952abd654312dc232a259
|
[
"MIT"
] | 7
|
2019-01-17T18:50:17.000Z
|
2022-01-13T20:27:52.000Z
|
from spira.yevon.io.input_gdsii import *
from spira.yevon.io.output_gdsii import *
| 21
| 41
| 0.797619
| 14
| 84
| 4.642857
| 0.571429
| 0.276923
| 0.430769
| 0.492308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 84
| 3
| 42
| 28
| 0.866667
| 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
|
26e015c22f1350be494888a3b0cd02812e6bef08
| 17,790
|
py
|
Python
|
tests/pipeline/test_fall_detect_posenet.py
|
bhavikamkanani/fall-detection
|
41ee60de73ecb6b3dc1d05753f806c14a0af4a41
|
[
"Apache-2.0"
] | 30
|
2020-12-31T23:10:05.000Z
|
2022-03-25T17:11:04.000Z
|
tests/pipeline/test_fall_detect_posenet.py
|
bhavikamkanani/fall-detection
|
41ee60de73ecb6b3dc1d05753f806c14a0af4a41
|
[
"Apache-2.0"
] | 34
|
2020-12-31T19:27:28.000Z
|
2021-11-07T11:48:48.000Z
|
tests/pipeline/test_fall_detect_posenet.py
|
ivelin/fall-detection
|
d52c40fc20f815357f3a959c46d4f6686eff4aec
|
[
"Apache-2.0"
] | 12
|
2021-01-13T06:08:10.000Z
|
2022-03-01T08:28:14.000Z
|
"""Test fall detection pipe element."""
import sys
import os
sys.path.append(os.path.abspath('.'))
from src.pipeline.fall_detect import FallDetector
import os
import time
from PIL import Image
def _fall_detect_config():
_dir = os.path.dirname(os.path.abspath(__file__))
_good_tflite_model = os.path.join(
_dir,
'posenet_mobilenet_v1_100_257x257_multi_kpt_stripped.tflite'
)
_good_edgetpu_model = os.path.join(
_dir,
'posenet_mobilenet_v1_075_721_1281_quant_decoder_edgetpu.tflite'
)
_good_labels = os.path.join(_dir, 'pose_labels.txt')
config = {
'model': {
'tflite': _good_tflite_model,
'edgetpu': _good_edgetpu_model,
},
'labels': _good_labels,
'top_k': 3,
'confidence_threshold': 0.6,
'model_name':'mobilenet'
}
return config
def _get_image(file_name=None):
assert file_name
_dir = os.path.dirname(os.path.abspath(__file__))
image_file = os.path.join(_dir, file_name)
img = Image.open(image_file)
return img
def test_model_inputs():
"""Verify against known model inputs."""
config = _fall_detect_config()
fall_detector = FallDetector(**config)
tfe = fall_detector._tfengine
samples = tfe.input_details[0]['shape'][0]
assert samples == 1
height = tfe.input_details[0]['shape'][1]
assert height == 257
width = tfe.input_details[0]['shape'][2]
assert width == 257
colors = tfe.input_details[0]['shape'][3]
assert colors == 3
def test_fall_detection_thumbnail_present():
"""Expected to receive thumnail in result if image is provided \
and poses are detected."""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['image'] is not None and res['thumbnail'] is not None and \
res['inference_result'] is not None
fall_detector = FallDetector(**config)
img_1 = _get_image(file_name='fall_img_1.png')
process_response(fall_detector.process_sample(image=img_1))
assert result is True
def test_fall_detection_case_1():
"""Expected to not detect a fall as key-points are not detected."""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_1.png')
# The frame represents a person completely falls.
img_2 = _get_image(file_name='fall_img_3.png')
process_response(fall_detector.process_sample(image=img_1))
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert not result
def test_fall_detection_case_2_1():
"""Expected to not detect a fall even though key-points are detected
and the angle criteria is met. However the time distance between
frames is too short."""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_1.png')
# The frame represents a person falls.
img_2 = _get_image(file_name='fall_img_2.png')
start_time = time.monotonic()
process_response(fall_detector.process_sample(image=img_1))
end_time = time.monotonic()
safe_min = end_time-start_time+1
# set min time to a sufficiently big number to ensure test passes
# on slow environments
# the goal is to simulate two frames that are too close in time
# to be considered for a fall detection sequence
fall_detector.min_time_between_frames = safe_min
process_response(fall_detector.process_sample(image=img_2))
assert not result
def test_fall_detection_case_2_2():
"""Expected to detect a fall because key-points are detected,
the angle criteria is met and the time distance between
frames is not too short."""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_1.png')
# The frame represents a person falls.
img_2 = _get_image(file_name='fall_img_2.png')
process_response(fall_detector.process_sample(image=img_1))
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert result
assert len(result) == 1
category = result[0]['label']
confidence = result[0]['confidence']
angle = result[0]['leaning_angle']
keypoint_corr = result[0]['keypoint_corr']
assert keypoint_corr
assert category == 'FALL'
assert confidence > 0.7
assert angle > 60
def test_fall_detection_case_3_1():
"""Expect to detect a fall as key-points are detected by
rotating the image clockwise."""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_11.png')
# The frame represents a person completely falls.
img_2 = _get_image(file_name='fall_img_12.png')
process_response(fall_detector.process_sample(image=img_1))
# set min time to a small number to speed up testing
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert result
assert len(result) == 1
category = result[0]['label']
confidence = result[0]['confidence']
angle = result[0]['leaning_angle']
keypoint_corr = result[0]['keypoint_corr']
assert keypoint_corr
assert category == 'FALL'
assert confidence > 0.3
assert angle > 60
def test_fall_detection_case_3_2():
"""Expect to detect a fall as key-points are detected
by rotating the image counter clockwise."""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_11_flip.png')
# The frame represents a person completely falls.
img_2 = _get_image(file_name='fall_img_12_flip.png')
process_response(fall_detector.process_sample(image=img_1))
# set min time to a small number to speed up testing
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert result
assert len(result) == 1
category = result[0]['label']
confidence = result[0]['confidence']
angle = result[0]['leaning_angle']
keypoint_corr = result[0]['keypoint_corr']
assert keypoint_corr
assert category == 'FALL'
assert confidence > 0.3
assert angle > 60
def test_fall_detection_case_4():
"""No Fall"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_1.png')
# The frame represents a person who is in a standing position.
img_2 = _get_image(file_name='fall_img_4.png')
process_response(fall_detector.process_sample(image=img_1))
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert not result
def test_fall_detection_case_5():
"""Expected to not detect a fall even the angle criteria is met
because image 2 is standing up rather than fall"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person falls.
img_1 = _get_image(file_name='fall_img_2.png')
# The frame represents a person who is in a standing position.
img_2 = _get_image(file_name='fall_img_1.png')
process_response(fall_detector.process_sample(image=img_1))
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert not result
def test_fall_detection_case_6():
"""Expect to not detect a fall as in 1st image key-points are detected
but not in 2nd"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_5.png')
# No person in a frame
img_2 = _get_image(file_name='fall_img_6.png')
process_response(fall_detector.process_sample(image=img_1))
# set min time to a small number to speed up testing
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert not result
def test_fall_detection_case_7():
"""Expect to not detect a fall"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# The frame represents a person who is in a standing position.
img_1 = _get_image(file_name='fall_img_5.png')
# The frame represents a person who is in a standing position.
img_2 = _get_image(file_name='fall_img_7.png')
process_response(fall_detector.process_sample(image=img_1))
# set min time to a small number to speed up testing
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert not result
def test_fall_detection_case_8():
"""Expect to not detect a fall"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# No person in a frame
img_1 = _get_image(file_name='fall_img_6.png')
# The frame represents a person who is in a standing position.
img_2 = _get_image(file_name='fall_img_7.png')
process_response(fall_detector.process_sample(image=img_1))
# set min time to a small number to speed up testing
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
assert not result
def test_background_image():
"""Expect to not detect anything interesting in a background image."""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
print(res)
result = res['image'] is not None and res['thumbnail'] is not None and \
not res['inference_result']
fall_detector = FallDetector(**config)
img = _get_image(file_name='background.jpg')
process_response(fall_detector.process_sample(image=img))
fall_detector.min_time_between_frames = 0.01
time.sleep(fall_detector.min_time_between_frames)
img = _get_image(file_name='background.jpg')
process_response(fall_detector.process_sample(image=img))
assert result is True
def test_no_sample():
"""Expect element to pass empty sample to next element."""
config = _fall_detect_config()
result = False
def process_response(response):
nonlocal result
for res in response:
result = res is None
fall_detector = FallDetector(**config)
# fall_detector.receive_next_sample()
process_response(fall_detector.process_sample())
assert result is True
def test_fall_detection_2_frame_back_case_1():
"""
Expected to detect a fall using frame[t] and frame[t-1].
frame[t-2] : A person is in standing position.
frame[t-1] : A person is almost in standing position as he is walking.
frame[t] : A person is fall down.
"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# A frame at t-2 timestamp when person is in standing position.
img_1 = _get_image(file_name='fall_img_1.png')
# A frame at t-1 timestamp when person is almost in standing position \
# as he is walking.
img_2 = _get_image(file_name='fall_img_1_1.png')
# A frame at t timestamp when person falls down.
img_3 = _get_image(file_name='fall_img_2.png')
fall_detector.min_time_between_frames = 0.01
process_response(fall_detector.process_sample(image=img_1))
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
time.sleep(fall_detector.min_time_between_frames)
assert not result
process_response(fall_detector.process_sample(image=img_3))
assert result
assert len(result) == 1
category = result[0]['label']
confidence = result[0]['confidence']
angle = result[0]['leaning_angle']
keypoint_corr = result[0]['keypoint_corr']
assert keypoint_corr
assert category == 'FALL'
assert confidence > 0.7
assert angle > 60
def test_fall_detection_2_frame_back_case_2():
"""
Expected to detect a fall using frame[t] and frame[t-2].
frame[t-2] : A person is in standing position.
frame[t-1] : A person is mid-way of fall.
frame[t] : A person is fall down.
"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# A frame at t-2 timestamp when person is in standing position.
img_1 = _get_image(file_name='fall_img_1.png')
# A frame at t-1 timestamp when person is mid-way of fall.
img_2 = _get_image(file_name='fall_img_2_2.png')
# A frame at t timestamp when person falls down.
img_3 = _get_image(file_name='fall_img_2.png')
fall_detector.min_time_between_frames = 0.01
fall_detector.max_time_between_frames = 15
process_response(fall_detector.process_sample(image=img_1))
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
time.sleep(fall_detector.min_time_between_frames)
assert not result
process_response(fall_detector.process_sample(image=img_3))
assert result
assert len(result) == 1
category = result[0]['label']
confidence = result[0]['confidence']
angle = result[0]['leaning_angle']
keypoint_corr = result[0]['keypoint_corr']
assert keypoint_corr
assert category == 'FALL'
assert confidence > 0.7
assert angle > 60
def test_fall_detection_2_frame_back_case_3():
"""
Expected to not detect a fall using frame[t],frame[t-1] and frame[t-2].
frame[t-2] : A person is in walking postion.
frame[t-1] : A person is in walking postion.
frame[t] : A person is slight in lean postion but no fall.
"""
config = _fall_detect_config()
result = None
def process_response(response):
nonlocal result
for res in response:
result = res['inference_result']
fall_detector = FallDetector(**config)
# A frame at t-2 timestamp when person is in walking postion.
img_1 = _get_image(file_name='fall_img_15.png')
# A frame at t-1 timestamp when person is in walking postion.
img_2 = _get_image(file_name='fall_img_16.png')
# A frame at t timestamp when person is slight in lean postion but no fall.
img_3 = _get_image(file_name='fall_img_17.png')
fall_detector.min_time_between_frames = 0.01
process_response(fall_detector.process_sample(image=img_1))
time.sleep(fall_detector.min_time_between_frames)
process_response(fall_detector.process_sample(image=img_2))
time.sleep(fall_detector.min_time_between_frames)
assert not result
process_response(fall_detector.process_sample(image=img_3))
assert not result
| 30.152542
| 84
| 0.698089
| 2,523
| 17,790
| 4.640111
| 0.082838
| 0.085077
| 0.033826
| 0.045101
| 0.87563
| 0.85419
| 0.827625
| 0.814897
| 0.772273
| 0.757154
| 0
| 0.019002
| 0.216076
| 17,790
| 590
| 85
| 30.152542
| 0.82045
| 0.210905
| 0
| 0.762463
| 0
| 0
| 0.086361
| 0.008738
| 0
| 0
| 0
| 0
| 0.143695
| 1
| 0.102639
| false
| 0
| 0.017595
| 0
| 0.1261
| 0.002933
| 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
|
f8353bf82c8fce92bdd332c5973ee4ebf3997713
| 319,936
|
py
|
Python
|
datacore/datacore-overview.py
|
Davidffry/grafana-integration
|
a0855d079ac703fad9e3c3e7e892b38fd7b01096
|
[
"MIT"
] | 6
|
2020-01-30T10:12:28.000Z
|
2021-12-22T09:35:11.000Z
|
datacore/datacore-overview.py
|
Davidffry/grafana-integration
|
a0855d079ac703fad9e3c3e7e892b38fd7b01096
|
[
"MIT"
] | 1
|
2020-07-06T07:51:28.000Z
|
2020-07-08T09:42:49.000Z
|
datacore/datacore-overview.py
|
Davidffry/grafana-integration
|
a0855d079ac703fad9e3c3e7e892b38fd7b01096
|
[
"MIT"
] | 2
|
2019-03-24T21:45:33.000Z
|
2021-04-29T15:27:59.000Z
|
#coding:utf-8
import requests
url = "http://127.0.0.1:3000/api/dashboards/db"
payload = "{\n \"dashboard\": {\n \"annotations\": {\n \"list\": [\n {\n \"builtIn\": 1,\n \"datasource\": \"-- Grafana --\",\n \"enable\": true,\n \"hide\": true,\n \"iconColor\": \"rgba(0, 211, 255, 1)\",\n \"name\": \"Annotations & Alerts\",\n \"type\": \"dashboard\"\n }\n ]\n },\n \"description\": \"You can find all details to run it on GitHub https://github.com/lblanc/grafana-integration\",\n \"editable\": true,\n \"gnetId\": null,\n \"graphTooltip\": 1,\n \"id\": null,\n \"iteration\": 1584031831349,\n \"links\": [\n {\n \"asDropdown\": true,\n \"icon\": \"external link\",\n \"tags\": [\n \"All Dashboards\"\n ],\n \"title\": \"All Dashboards\",\n \"type\": \"dashboards\"\n }\n ],\n \"panels\": [\n {\n \"collapsed\": false,\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 0\n },\n \"id\": 2,\n \"panels\": [],\n \"repeat\": \"DataCore_Servers\",\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"title\": \"DataCore Server: $DataCore_Servers\",\n \"type\": \"row\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#d44a3a\",\n \"#890f02\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 22,\n \"x\": 0,\n \"y\": 1\n },\n \"hideTimeOverride\": false,\n \"id\": 5,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"h\",\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"State\\\") FROM \\\"DataCore_Servers\\\" WHERE (\\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/)\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"1,2\",\n \"title\": \"Etat $DataCore_Servers\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"1\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 5,\n \"x\": 2,\n \"y\": 3\n },\n \"id\": 31,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"ProductName\\\" WHERE \\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#FF9830\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 6,\n \"x\": 8,\n \"y\": 3\n },\n \"id\": 18,\n \"interval\": \"1s\",\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Servers\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"CacheState\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"host\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Servers$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Write cache Disable\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Write cache Enable\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#FF9830\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 4,\n \"x\": 14,\n \"y\": 3\n },\n \"id\": 24,\n \"interval\": \"1s\",\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Servers\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"CacheSize\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \" / 1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"host\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Servers$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Cache Size\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"70%\",\n \"valueMaps\": [],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 4,\n \"x\": 18,\n \"y\": 3\n },\n \"id\": 14,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"OsVersion\\\" WHERE \\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 2,\n \"x\": 3,\n \"y\": 4\n },\n \"id\": 23,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"hide\": false,\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"ProductVersion\\\" WHERE \\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#F2495C\",\n \"#299c46\",\n \"#FF9830\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 6,\n \"x\": 8,\n \"y\": 4\n },\n \"id\": 39,\n \"interval\": \"1s\",\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS1\",\n \"value\": \"SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Servers\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PowerState\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"host\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Servers$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,3\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Loss of AC power\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"AC Power Ok\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Low battery\",\n \"value\": \"3\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"collapsed\": false,\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 5\n },\n \"id\": 606,\n \"panels\": [],\n \"repeat\": null,\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 2,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"title\": \"DataCore Server: $DataCore_Servers\",\n \"type\": \"row\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#d44a3a\",\n \"#890f02\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 22,\n \"x\": 0,\n \"y\": 6\n },\n \"hideTimeOverride\": false,\n \"id\": 607,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"h\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 5,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"State\\\") FROM \\\"DataCore_Servers\\\" WHERE (\\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/)\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"1,2\",\n \"title\": \"Etat $DataCore_Servers\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"1\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 5,\n \"x\": 2,\n \"y\": 8\n },\n \"id\": 608,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 31,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"ProductName\\\" WHERE \\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#FF9830\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 6,\n \"x\": 8,\n \"y\": 8\n },\n \"id\": 609,\n \"interval\": \"1s\",\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 18,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Servers\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"CacheState\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"host\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Servers$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Write cache Disable\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Write cache Enable\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#FF9830\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 4,\n \"x\": 14,\n \"y\": 8\n },\n \"id\": 610,\n \"interval\": \"1s\",\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 24,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Servers\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"CacheSize\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \" / 1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"host\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Servers$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Cache Size\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"70%\",\n \"valueMaps\": [],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 4,\n \"x\": 18,\n \"y\": 8\n },\n \"id\": 611,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 14,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"OsVersion\\\" WHERE \\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 2,\n \"x\": 3,\n \"y\": 9\n },\n \"id\": 612,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 23,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"hide\": false,\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"ProductVersion\\\" WHERE \\\"objectname\\\" = 'DataCore Servers' AND \\\"host\\\" =~ /^$DataCore_Servers$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#F2495C\",\n \"#299c46\",\n \"#FF9830\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 1,\n \"w\": 6,\n \"x\": 8,\n \"y\": 9\n },\n \"id\": 613,\n \"interval\": \"1s\",\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 39,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Servers\": {\n \"selected\": false,\n \"text\": \"SDS2\",\n \"value\": \"SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Servers\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PowerState\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"host\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Servers$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,3\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Loss of AC power\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"AC Power Ok\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Low battery\",\n \"value\": \"3\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"collapsed\": false,\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 10\n },\n \"id\": 288,\n \"panels\": [],\n \"repeat\": null,\n \"title\": \"DataCore Virtual Disks\",\n \"type\": \"row\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#890f02\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 4,\n \"x\": 0,\n \"y\": 11\n },\n \"hideTimeOverride\": false,\n \"id\": 318,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": \"DataCore_Virtual_Disks\",\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VMFS_DataCore from Lab - Luc\",\n \"value\": \"VMFS_DataCore from Lab - Luc\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"DiskStatus\\\") FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter GROUP BY time($__interval)\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1\",\n \"title\": \"Etat: $DataCore_Virtual_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed Redundancy\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"3\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"4\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#890f02\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 3,\n \"x\": 4,\n \"y\": 11\n },\n \"hideTimeOverride\": false,\n \"id\": 349,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": \"DataCore_Virtual_Disks\",\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VMFS_DataCore from Lab - Luc\",\n \"value\": \"VMFS_DataCore from Lab - Luc\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT \\\"value\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"Size\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Size: $DataCore_Virtual_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Allocated\": \"#5794F2\",\n \"Available\": \"#73BF69\",\n \"In Reclamation\": \"#FADE2A\",\n \"Reserved\": \"#F2495C\"\n },\n \"breakPoint\": \"50%\",\n \"cacheTimeout\": null,\n \"combine\": {\n \"label\": \"Others\",\n \"threshold\": 0\n },\n \"datasource\": null,\n \"fontSize\": \"80%\",\n \"format\": \"percent\",\n \"gridPos\": {\n \"h\": 4,\n \"w\": 5,\n \"x\": 7,\n \"y\": 11\n },\n \"id\": 385,\n \"interval\": null,\n \"legend\": {\n \"percentage\": false,\n \"show\": true,\n \"sort\": null,\n \"sortDesc\": null,\n \"values\": true\n },\n \"legendType\": \"Right side\",\n \"links\": [],\n \"maxDataPoints\": 3,\n \"nullPointMode\": \"connected\",\n \"options\": {},\n \"pieType\": \"pie\",\n \"repeat\": \"DataCore_Virtual_Disks\",\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VMFS_DataCore from Lab - Luc\",\n \"value\": \"VMFS_DataCore from Lab - Luc\"\n }\n },\n \"strokeWidth\": 1,\n \"targets\": [\n {\n \"alias\": \"Allocated\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT \\\"PercentAllocated\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PercentAllocated\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Available\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT 100 - \\\"PercentAllocated\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": true,\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PercentAllocated\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \" / 100\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"$DataCore_Virtual_Disks\",\n \"transparent\": true,\n \"type\": \"grafana-piechart-panel\",\n \"valueName\": \"current\"\n },\n {\n \"aliasColors\": {\n \"Reads\": \"green\",\n \"Total\": \"blue\",\n \"Writes\": \"red\"\n },\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 4,\n \"w\": 10,\n \"x\": 12,\n \"y\": 11\n },\n \"hiddenSeries\": false,\n \"id\": 425,\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": true,\n \"current\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 1,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": \"DataCore_Virtual_Disks\",\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VMFS_DataCore from Lab - Luc\",\n \"value\": \"VMFS_DataCore from Lab - Luc\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Total/\",\n \"color\": \"#3274D9\"\n },\n {\n \"alias\": \"/Reads/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Writes/\",\n \"color\": \"#E02F44\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Total\",\n \"groupBy\": [\n {\n \"params\": [\n \"Caption\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalOperations\\\", 1s) FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter GROUP BY \\\"Caption\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Reads\",\n \"groupBy\": [],\n \"hide\": false,\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Writes\",\n \"groupBy\": [],\n \"hide\": false,\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"IOPS: $DataCore_Virtual_Disks\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"iops\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#890f02\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 4,\n \"x\": 0,\n \"y\": 15\n },\n \"hideTimeOverride\": false,\n \"id\": 614,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 318,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 1 from Lab - Luc\",\n \"value\": \"VD Test 1 from Lab - Luc\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"DiskStatus\\\") FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter GROUP BY time($__interval)\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1\",\n \"title\": \"Etat: $DataCore_Virtual_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed Redundancy\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"3\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"4\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#890f02\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 3,\n \"x\": 4,\n \"y\": 15\n },\n \"hideTimeOverride\": false,\n \"id\": 616,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 349,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 1 from Lab - Luc\",\n \"value\": \"VD Test 1 from Lab - Luc\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT \\\"value\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"Size\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Size: $DataCore_Virtual_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Allocated\": \"#5794F2\",\n \"Available\": \"#73BF69\",\n \"In Reclamation\": \"#FADE2A\",\n \"Reserved\": \"#F2495C\"\n },\n \"breakPoint\": \"50%\",\n \"cacheTimeout\": null,\n \"combine\": {\n \"label\": \"Others\",\n \"threshold\": 0\n },\n \"datasource\": null,\n \"fontSize\": \"80%\",\n \"format\": \"percent\",\n \"gridPos\": {\n \"h\": 4,\n \"w\": 5,\n \"x\": 7,\n \"y\": 15\n },\n \"id\": 618,\n \"interval\": null,\n \"legend\": {\n \"percentage\": false,\n \"show\": true,\n \"sort\": null,\n \"sortDesc\": null,\n \"values\": true\n },\n \"legendType\": \"Right side\",\n \"links\": [],\n \"maxDataPoints\": 3,\n \"nullPointMode\": \"connected\",\n \"options\": {},\n \"pieType\": \"pie\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 385,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 1 from Lab - Luc\",\n \"value\": \"VD Test 1 from Lab - Luc\"\n }\n },\n \"strokeWidth\": 1,\n \"targets\": [\n {\n \"alias\": \"Allocated\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT \\\"PercentAllocated\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PercentAllocated\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Available\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT 100 - \\\"PercentAllocated\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": true,\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PercentAllocated\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \" / 100\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"$DataCore_Virtual_Disks\",\n \"transparent\": true,\n \"type\": \"grafana-piechart-panel\",\n \"valueName\": \"current\"\n },\n {\n \"aliasColors\": {\n \"Reads\": \"green\",\n \"Total\": \"blue\",\n \"Writes\": \"red\"\n },\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 4,\n \"w\": 10,\n \"x\": 12,\n \"y\": 15\n },\n \"hiddenSeries\": false,\n \"id\": 620,\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": true,\n \"current\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 1,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 425,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 1 from Lab - Luc\",\n \"value\": \"VD Test 1 from Lab - Luc\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Total/\",\n \"color\": \"#3274D9\"\n },\n {\n \"alias\": \"/Reads/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Writes/\",\n \"color\": \"#E02F44\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Total\",\n \"groupBy\": [\n {\n \"params\": [\n \"Caption\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalOperations\\\", 1s) FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter GROUP BY \\\"Caption\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Reads\",\n \"groupBy\": [],\n \"hide\": false,\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Writes\",\n \"groupBy\": [],\n \"hide\": false,\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"IOPS: $DataCore_Virtual_Disks\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"iops\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#890f02\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 4,\n \"x\": 0,\n \"y\": 19\n },\n \"hideTimeOverride\": false,\n \"id\": 615,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 318,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 2 from Lab - Luc\",\n \"value\": \"VD Test 2 from Lab - Luc\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"DiskStatus\\\") FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter GROUP BY time($__interval)\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1\",\n \"title\": \"Etat: $DataCore_Virtual_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed Redundancy\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"3\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"4\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#890f02\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 3,\n \"x\": 4,\n \"y\": 19\n },\n \"hideTimeOverride\": false,\n \"id\": 617,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 349,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 2 from Lab - Luc\",\n \"value\": \"VD Test 2 from Lab - Luc\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT \\\"value\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"Size\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Size: $DataCore_Virtual_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Allocated\": \"#5794F2\",\n \"Available\": \"#73BF69\",\n \"In Reclamation\": \"#FADE2A\",\n \"Reserved\": \"#F2495C\"\n },\n \"breakPoint\": \"50%\",\n \"cacheTimeout\": null,\n \"combine\": {\n \"label\": \"Others\",\n \"threshold\": 0\n },\n \"datasource\": null,\n \"fontSize\": \"80%\",\n \"format\": \"percent\",\n \"gridPos\": {\n \"h\": 4,\n \"w\": 5,\n \"x\": 7,\n \"y\": 19\n },\n \"id\": 619,\n \"interval\": null,\n \"legend\": {\n \"percentage\": false,\n \"show\": true,\n \"sort\": null,\n \"sortDesc\": null,\n \"values\": true\n },\n \"legendType\": \"Right side\",\n \"links\": [],\n \"maxDataPoints\": 3,\n \"nullPointMode\": \"connected\",\n \"options\": {},\n \"pieType\": \"pie\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 385,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 2 from Lab - Luc\",\n \"value\": \"VD Test 2 from Lab - Luc\"\n }\n },\n \"strokeWidth\": 1,\n \"targets\": [\n {\n \"alias\": \"Allocated\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT \\\"PercentAllocated\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PercentAllocated\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Available\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT 100 - \\\"PercentAllocated\\\" FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": true,\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PercentAllocated\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \" / 100\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"$DataCore_Virtual_Disks\",\n \"transparent\": true,\n \"type\": \"grafana-piechart-panel\",\n \"valueName\": \"current\"\n },\n {\n \"aliasColors\": {\n \"Reads\": \"green\",\n \"Total\": \"blue\",\n \"Writes\": \"red\"\n },\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 4,\n \"w\": 10,\n \"x\": 12,\n \"y\": 19\n },\n \"hiddenSeries\": false,\n \"id\": 621,\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": true,\n \"current\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 1,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 425,\n \"scopedVars\": {\n \"DataCore_Virtual_Disks\": {\n \"selected\": false,\n \"text\": \"VD Test 2 from Lab - Luc\",\n \"value\": \"VD Test 2 from Lab - Luc\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Total/\",\n \"color\": \"#3274D9\"\n },\n {\n \"alias\": \"/Reads/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Writes/\",\n \"color\": \"#E02F44\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Total\",\n \"groupBy\": [\n {\n \"params\": [\n \"Caption\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalOperations\\\", 1s) FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter GROUP BY \\\"Caption\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Reads\",\n \"groupBy\": [],\n \"hide\": false,\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Writes\",\n \"groupBy\": [],\n \"hide\": false,\n \"measurement\": \"DataCore_Virtual_Disks\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Virtual_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"IOPS: $DataCore_Virtual_Disks\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"iops\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"collapsed\": true,\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 23\n },\n \"id\": 51,\n \"panels\": [\n {\n \"cacheTimeout\": null,\n \"content\": \"\",\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 4\n },\n \"id\": 258,\n \"links\": [],\n \"mode\": \"markdown\",\n \"options\": {},\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"$DataCore_Disk_pools\",\n \"transparent\": true,\n \"type\": \"text\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#e0752d\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 4,\n \"x\": 0,\n \"y\": 5\n },\n \"id\": 49,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"PoolStatus\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/)\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PoolStatus\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,4\",\n \"title\": \"Etat\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Running\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Initializing\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"MissingDisks\",\n \"value\": \"4\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Foreign\",\n \"value\": \"5\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Removing\",\n \"value\": \"6\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"7\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"8\"\n },\n {\n \"op\": \"=\",\n \"text\": \"FailedRedundancy\",\n \"value\": \"9\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Suspended\",\n \"value\": \"10\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#d44a3a\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"decimals\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 5,\n \"x\": 4,\n \"y\": 5\n },\n \"id\": 87,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 2,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \" Days\",\n \"postfixFontSize\": \"80%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n },\n {\n \"from\": \"30\",\n \"text\": \"More than 30\",\n \"to\": \"1000000000000000000000000000000000000000000000000\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"EstimatedDepletionTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/60/60/24/1000\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"20,30\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Pool full estimation\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n },\n {\n \"op\": \"=\",\n \"text\": \"More than 30\",\n \"value\": \"30\"\n },\n {\n \"op\": \"=\",\n \"text\": \"More than 30\",\n \"value\": \">30\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#d44a3a\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 9,\n \"y\": 5\n },\n \"id\": 105,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesOverSubscribed\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Oversubscription\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"content\": \"\",\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 4,\n \"w\": 12,\n \"x\": 12,\n \"y\": 5\n },\n \"id\": 229,\n \"links\": [],\n \"mode\": \"markdown\",\n \"options\": {},\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"text\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"decmbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 0,\n \"y\": 7\n },\n \"id\": 72,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"alias\": \"\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"ChunkSize\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"SAU Size\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 2,\n \"x\": 3,\n \"y\": 7\n },\n \"id\": 74,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"MaxTierNumber\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Max Tiers\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": true,\n \"colors\": [\n \"#d44a3a\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"format\": \"percent\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 5,\n \"y\": 7\n },\n \"id\": 84,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TierReservedPct\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,3\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Tier Preservation\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 2,\n \"x\": 8,\n \"y\": 7\n },\n \"id\": 86,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"20%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"hide\": false,\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"InSharedMode\\\" WHERE \\\"instance\\\" =~ /^$DataCore_Disk_pools$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n },\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"hide\": true,\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"value\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": true,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Shared Pool\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Allocated\": \"#5794F2\",\n \"Available\": \"#73BF69\",\n \"In Reclamation\": \"#FADE2A\",\n \"Reserved\": \"#F2495C\"\n },\n \"breakPoint\": \"50%\",\n \"cacheTimeout\": null,\n \"combine\": {\n \"label\": \"Others\",\n \"threshold\": 0\n },\n \"datasource\": null,\n \"fontSize\": \"80%\",\n \"format\": \"percent\",\n \"gridPos\": {\n \"h\": 8,\n \"w\": 10,\n \"x\": 0,\n \"y\": 9\n },\n \"id\": 124,\n \"interval\": null,\n \"legend\": {\n \"percentage\": false,\n \"show\": true,\n \"sort\": null,\n \"sortDesc\": null,\n \"values\": true\n },\n \"legendType\": \"Right side\",\n \"links\": [],\n \"maxDataPoints\": 3,\n \"nullPointMode\": \"connected\",\n \"options\": {},\n \"pieType\": \"pie\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"strokeWidth\": 1,\n \"targets\": [\n {\n \"alias\": \"Allocated\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAllocatedPercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"Available\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAvailablePercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"Reserved\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"D\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesReservedPercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"In Reclamation\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesInReclamationPercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"grafana-piechart-panel\",\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 10,\n \"y\": 9\n },\n \"id\": 62,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesTotal\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Total Capacity\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 0,\n \"format\": \"iops\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 15,\n \"y\": 9\n },\n \"id\": 163,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Total IOPS\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 0,\n \"format\": \"iops\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 18,\n \"y\": 9\n },\n \"id\": 164,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Reads IOPS\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 0,\n \"format\": \"iops\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 21,\n \"y\": 9\n },\n \"id\": 165,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Writes IOPS\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#5794F2\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 10,\n \"y\": 11\n },\n \"id\": 162,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAllocated\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Used Capacity\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {},\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 5,\n \"w\": 9,\n \"x\": 15,\n \"y\": 11\n },\n \"hiddenSeries\": false,\n \"id\": 285,\n \"legend\": {\n \"avg\": true,\n \"current\": true,\n \"max\": true,\n \"min\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 2,\n \"points\": false,\n \"renderer\": \"flot\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Read/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Write/\",\n \"color\": \"#FF780A\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Read Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalReadTime\\\", 1s) / derivative(\\\"TotalReads\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" = 'SDS2-Pool1 on SDS2') AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReadTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalReads\\\", 1s) \"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"Write Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalWriteTime\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWriteTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalWrites\\\", 1s)\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": [\n {\n \"colorMode\": \"ok\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"lt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"warning\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"critical\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 8,\n \"yaxis\": \"left\"\n }\n ],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"Latencies\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"ms\",\n \"label\": \"Latencies (ms)\",\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": false\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#73BF69\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 10,\n \"y\": 13\n },\n \"id\": 142,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAvailable\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Free Capacity\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n }\n ],\n \"repeat\": \"DataCore_Disk_pools\",\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS1_Pool1 on SDS1\",\n \"value\": \"SDS1_Pool1 on SDS1\"\n }\n },\n \"title\": \"DataCore Pool: $DataCore_Disk_pools\",\n \"type\": \"row\"\n },\n {\n \"collapsed\": true,\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 24\n },\n \"id\": 622,\n \"panels\": [\n {\n \"cacheTimeout\": null,\n \"content\": \"\",\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 4\n },\n \"id\": 623,\n \"links\": [],\n \"mode\": \"markdown\",\n \"options\": {},\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 258,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n }\n ],\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"$DataCore_Disk_pools\",\n \"transparent\": true,\n \"type\": \"text\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#e0752d\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 4,\n \"x\": 0,\n \"y\": 5\n },\n \"id\": 624,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 49,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"PoolStatus\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/)\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"PoolStatus\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,4\",\n \"title\": \"Etat\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Running\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Initializing\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"MissingDisks\",\n \"value\": \"4\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Foreign\",\n \"value\": \"5\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Removing\",\n \"value\": \"6\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"7\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"8\"\n },\n {\n \"op\": \"=\",\n \"text\": \"FailedRedundancy\",\n \"value\": \"9\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Suspended\",\n \"value\": \"10\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#d44a3a\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"decimals\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 5,\n \"x\": 4,\n \"y\": 5\n },\n \"id\": 625,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 2,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \" Days\",\n \"postfixFontSize\": \"80%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n },\n {\n \"from\": \"30\",\n \"text\": \"More than 30\",\n \"to\": \"1000000000000000000000000000000000000000000000000\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 87,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"EstimatedDepletionTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/60/60/24/1000\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"20,30\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Pool full estimation\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n },\n {\n \"op\": \"=\",\n \"text\": \"More than 30\",\n \"value\": \"30\"\n },\n {\n \"op\": \"=\",\n \"text\": \"More than 30\",\n \"value\": \">30\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#d44a3a\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 9,\n \"y\": 5\n },\n \"id\": 626,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 105,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesOverSubscribed\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Oversubscription\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"content\": \"\",\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 4,\n \"w\": 12,\n \"x\": 12,\n \"y\": 5\n },\n \"id\": 627,\n \"links\": [],\n \"mode\": \"markdown\",\n \"options\": {},\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 229,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"text\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"decmbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 0,\n \"y\": 7\n },\n \"id\": 628,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 72,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"alias\": \"\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"ChunkSize\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"SAU Size\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 2,\n \"x\": 3,\n \"y\": 7\n },\n \"id\": 629,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 74,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"MaxTierNumber\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Max Tiers\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": true,\n \"colors\": [\n \"#d44a3a\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#299c46\"\n ],\n \"datasource\": null,\n \"format\": \"percent\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 5,\n \"y\": 7\n },\n \"id\": 630,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 84,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TierReservedPct\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,3\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Tier Preservation\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 2,\n \"x\": 8,\n \"y\": 7\n },\n \"id\": 631,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"20%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 86,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"hide\": false,\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"InSharedMode\\\" WHERE \\\"instance\\\" =~ /^$DataCore_Disk_pools$/\",\n \"rawQuery\": true,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": []\n },\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"hide\": true,\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"value\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": true,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"value\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"Shared Pool\",\n \"transparent\": true,\n \"type\": \"singlestat\",\n \"valueFontSize\": \"50%\",\n \"valueMaps\": [],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Allocated\": \"#5794F2\",\n \"Available\": \"#73BF69\",\n \"In Reclamation\": \"#FADE2A\",\n \"Reserved\": \"#F2495C\"\n },\n \"breakPoint\": \"50%\",\n \"cacheTimeout\": null,\n \"combine\": {\n \"label\": \"Others\",\n \"threshold\": 0\n },\n \"datasource\": null,\n \"fontSize\": \"80%\",\n \"format\": \"percent\",\n \"gridPos\": {\n \"h\": 8,\n \"w\": 10,\n \"x\": 0,\n \"y\": 9\n },\n \"id\": 632,\n \"interval\": null,\n \"legend\": {\n \"percentage\": false,\n \"show\": true,\n \"sort\": null,\n \"sortDesc\": null,\n \"values\": true\n },\n \"legendType\": \"Right side\",\n \"links\": [],\n \"maxDataPoints\": 3,\n \"nullPointMode\": \"connected\",\n \"options\": {},\n \"pieType\": \"pie\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 124,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"strokeWidth\": 1,\n \"targets\": [\n {\n \"alias\": \"Allocated\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAllocatedPercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"Available\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAvailablePercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"Reserved\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"D\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesReservedPercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"In Reclamation\",\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT mean(\\\"BytesInReclamationPercentage\\\") FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY time($__interval) fill(null)\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesInReclamationPercentage\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"timeFrom\": null,\n \"timeShift\": null,\n \"title\": \"\",\n \"transparent\": true,\n \"type\": \"grafana-piechart-panel\",\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 10,\n \"y\": 9\n },\n \"id\": 633,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 62,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesTotal\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Total Capacity\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 0,\n \"format\": \"iops\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 15,\n \"y\": 9\n },\n \"id\": 634,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 163,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Total IOPS\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 0,\n \"format\": \"iops\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 18,\n \"y\": 9\n },\n \"id\": 635,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 164,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Reads IOPS\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"rgba(237, 129, 40, 0.89)\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 0,\n \"format\": \"iops\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 21,\n \"y\": 9\n },\n \"id\": 636,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 165,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"mean\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Writes IOPS\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"current\"\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#5794F2\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 10,\n \"y\": 11\n },\n \"id\": 637,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 162,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAllocated\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Used Capacity\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {},\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 5,\n \"w\": 9,\n \"x\": 15,\n \"y\": 11\n },\n \"hiddenSeries\": false,\n \"id\": 638,\n \"legend\": {\n \"avg\": true,\n \"current\": true,\n \"max\": true,\n \"min\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 2,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 285,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Read/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Write/\",\n \"color\": \"#FF780A\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Read Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalReadTime\\\", 1s) / derivative(\\\"TotalReads\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" = 'SDS2-Pool1 on SDS2') AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReadTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalReads\\\", 1s) \"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n },\n {\n \"alias\": \"Write Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalWriteTime\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWriteTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalWrites\\\", 1s)\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": [\n {\n \"colorMode\": \"ok\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"lt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"warning\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"critical\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 8,\n \"yaxis\": \"left\"\n }\n ],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"Latencies\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"ms\",\n \"label\": \"Latencies (ms)\",\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": false\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorValue\": false,\n \"colors\": [\n \"#299c46\",\n \"#73BF69\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"decimals\": 2,\n \"format\": \"decgbytes\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 2,\n \"w\": 3,\n \"x\": 10,\n \"y\": 13\n },\n \"id\": 639,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 142,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [\n {\n \"params\": [\n \"$__interval\"\n ],\n \"type\": \"time\"\n },\n {\n \"params\": [\n \"null\"\n ],\n \"type\": \"fill\"\n }\n ],\n \"measurement\": \"DataCore_Disk_pools\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"BytesAvailable\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [],\n \"type\": \"last\"\n },\n {\n \"params\": [\n \"/1024/1024/1024\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Disk_pools$/\"\n }\n ]\n }\n ],\n \"thresholds\": \"\",\n \"title\": \"Free Capacity\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"N/A\",\n \"value\": \"null\"\n }\n ],\n \"valueName\": \"avg\"\n }\n ],\n \"repeat\": null,\n \"repeatIteration\": 1584031831349,\n \"repeatPanelId\": 51,\n \"scopedVars\": {\n \"DataCore_Disk_pools\": {\n \"selected\": false,\n \"text\": \"SDS2_Pool1 on SDS2\",\n \"value\": \"SDS2_Pool1 on SDS2\"\n }\n },\n \"title\": \"DataCore Pool: $DataCore_Disk_pools\",\n \"type\": \"row\"\n },\n {\n \"collapsed\": true,\n \"datasource\": null,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 25\n },\n \"id\": 465,\n \"panels\": [\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#5794f2\",\n \"#299c46\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 6,\n \"w\": 4,\n \"x\": 0,\n \"y\": 14\n },\n \"hideTimeOverride\": false,\n \"id\": 504,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": \"DataCore_Physical_Disks\",\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS2_NVMe1 on SDS2\",\n \"value\": \"SDS2_NVMe1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"DiskStatus\\\") FROM \\\"DataCore_Pysical_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Pysical_Disks$/) AND $timeFilter GROUP BY time($__interval)\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"DiskStatus\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n },\n {\n \"condition\": \"AND\",\n \"key\": \"Type\",\n \"operator\": \"=\",\n \"value\": \"4\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"title\": \"Etat: $DataCore_Physical_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Not Ready\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"No Media\",\n \"value\": \"3\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"4\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"5\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"6\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Reads\": \"green\",\n \"Total\": \"blue\",\n \"Writes\": \"red\"\n },\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 12,\n \"x\": 4,\n \"y\": 14\n },\n \"hiddenSeries\": false,\n \"id\": 507,\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": true,\n \"current\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 1,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": \"DataCore_Physical_Disks\",\n \"repeatDirection\": \"v\",\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS2_NVMe1 on SDS2\",\n \"value\": \"SDS2_NVMe1 on SDS2\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Total/\",\n \"color\": \"#3274D9\"\n },\n {\n \"alias\": \"/Reads/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Writes/\",\n \"color\": \"#E02F44\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Total\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalOperations\\\", 1s) FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Reads\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Writes\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"IOPS: $DataCore_Physical_Disks\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"iops\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"aliasColors\": {},\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 8,\n \"x\": 16,\n \"y\": 14\n },\n \"hiddenSeries\": false,\n \"id\": 514,\n \"legend\": {\n \"avg\": true,\n \"current\": true,\n \"max\": true,\n \"min\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 2,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": \"DataCore_Physical_Disks\",\n \"repeatDirection\": \"v\",\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS2_NVMe1 on SDS2\",\n \"value\": \"SDS2_NVMe1 on SDS2\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Read/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Write/\",\n \"color\": \"#FF780A\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Read Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalReadTime\\\", 1s) / derivative(\\\"TotalReads\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" = 'SDS2-Pool1 on SDS2') AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReadsTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalReads\\\", 1s) \"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Write Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalWriteTime\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWritesTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalWrites\\\", 1s)\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [\n {\n \"colorMode\": \"ok\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"lt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"warning\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"critical\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 8,\n \"yaxis\": \"left\"\n }\n ],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"Latencies\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"ms\",\n \"label\": \"Latencies (ms)\",\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": false\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#5794f2\",\n \"#299c46\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 6,\n \"w\": 4,\n \"x\": 0,\n \"y\": 20\n },\n \"hideTimeOverride\": false,\n \"id\": 597,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 504,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS1_NVMe1 on SDS1\",\n \"value\": \"SDS1_NVMe1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"DiskStatus\\\") FROM \\\"DataCore_Pysical_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Pysical_Disks$/) AND $timeFilter GROUP BY time($__interval)\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"DiskStatus\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n },\n {\n \"condition\": \"AND\",\n \"key\": \"Type\",\n \"operator\": \"=\",\n \"value\": \"4\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"title\": \"Etat: $DataCore_Physical_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Not Ready\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"No Media\",\n \"value\": \"3\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"4\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"5\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"6\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Reads\": \"green\",\n \"Total\": \"blue\",\n \"Writes\": \"red\"\n },\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 12,\n \"x\": 4,\n \"y\": 20\n },\n \"hiddenSeries\": false,\n \"id\": 600,\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": true,\n \"current\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 1,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 507,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS1_NVMe1 on SDS1\",\n \"value\": \"SDS1_NVMe1 on SDS1\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Total/\",\n \"color\": \"#3274D9\"\n },\n {\n \"alias\": \"/Reads/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Writes/\",\n \"color\": \"#E02F44\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Total\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalOperations\\\", 1s) FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Reads\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Writes\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"IOPS: $DataCore_Physical_Disks\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"iops\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"aliasColors\": {},\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 8,\n \"x\": 16,\n \"y\": 20\n },\n \"hiddenSeries\": false,\n \"id\": 603,\n \"legend\": {\n \"avg\": true,\n \"current\": true,\n \"max\": true,\n \"min\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 2,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 514,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS1_NVMe1 on SDS1\",\n \"value\": \"SDS1_NVMe1 on SDS1\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Read/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Write/\",\n \"color\": \"#FF780A\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Read Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalReadTime\\\", 1s) / derivative(\\\"TotalReads\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" = 'SDS2-Pool1 on SDS2') AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReadsTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalReads\\\", 1s) \"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Write Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalWriteTime\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWritesTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalWrites\\\", 1s)\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [\n {\n \"colorMode\": \"ok\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"lt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"warning\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"critical\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 8,\n \"yaxis\": \"left\"\n }\n ],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"Latencies\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"ms\",\n \"label\": \"Latencies (ms)\",\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": false\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#5794f2\",\n \"#299c46\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 6,\n \"w\": 4,\n \"x\": 0,\n \"y\": 26\n },\n \"hideTimeOverride\": false,\n \"id\": 598,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 504,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS2_SSD1 on SDS2\",\n \"value\": \"SDS2_SSD1 on SDS2\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"DiskStatus\\\") FROM \\\"DataCore_Pysical_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Pysical_Disks$/) AND $timeFilter GROUP BY time($__interval)\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"DiskStatus\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n },\n {\n \"condition\": \"AND\",\n \"key\": \"Type\",\n \"operator\": \"=\",\n \"value\": \"4\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"title\": \"Etat: $DataCore_Physical_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Not Ready\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"No Media\",\n \"value\": \"3\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"4\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"5\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"6\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Reads\": \"green\",\n \"Total\": \"blue\",\n \"Writes\": \"red\"\n },\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 12,\n \"x\": 4,\n \"y\": 26\n },\n \"hiddenSeries\": false,\n \"id\": 601,\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": true,\n \"current\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 1,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 507,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS2_SSD1 on SDS2\",\n \"value\": \"SDS2_SSD1 on SDS2\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Total/\",\n \"color\": \"#3274D9\"\n },\n {\n \"alias\": \"/Reads/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Writes/\",\n \"color\": \"#E02F44\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Total\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalOperations\\\", 1s) FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Reads\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Writes\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"IOPS: $DataCore_Physical_Disks\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"iops\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"aliasColors\": {},\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 8,\n \"x\": 16,\n \"y\": 26\n },\n \"hiddenSeries\": false,\n \"id\": 604,\n \"legend\": {\n \"avg\": true,\n \"current\": true,\n \"max\": true,\n \"min\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 2,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 514,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS2_SSD1 on SDS2\",\n \"value\": \"SDS2_SSD1 on SDS2\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Read/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Write/\",\n \"color\": \"#FF780A\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Read Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalReadTime\\\", 1s) / derivative(\\\"TotalReads\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" = 'SDS2-Pool1 on SDS2') AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReadsTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalReads\\\", 1s) \"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Write Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalWriteTime\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWritesTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalWrites\\\", 1s)\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [\n {\n \"colorMode\": \"ok\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"lt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"warning\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"critical\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 8,\n \"yaxis\": \"left\"\n }\n ],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"Latencies\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"ms\",\n \"label\": \"Latencies (ms)\",\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": false\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"cacheTimeout\": null,\n \"colorBackground\": true,\n \"colorPostfix\": false,\n \"colorPrefix\": false,\n \"colorValue\": false,\n \"colors\": [\n \"#5794f2\",\n \"#299c46\",\n \"#d44a3a\"\n ],\n \"datasource\": null,\n \"format\": \"none\",\n \"gauge\": {\n \"maxValue\": 100,\n \"minValue\": 0,\n \"show\": false,\n \"thresholdLabels\": false,\n \"thresholdMarkers\": true\n },\n \"gridPos\": {\n \"h\": 6,\n \"w\": 4,\n \"x\": 0,\n \"y\": 32\n },\n \"hideTimeOverride\": false,\n \"id\": 599,\n \"interval\": null,\n \"links\": [],\n \"mappingType\": 1,\n \"mappingTypes\": [\n {\n \"name\": \"value to text\",\n \"value\": 1\n },\n {\n \"name\": \"range to text\",\n \"value\": 2\n }\n ],\n \"maxDataPoints\": 100,\n \"maxPerRow\": 2,\n \"nullPointMode\": \"connected\",\n \"nullText\": null,\n \"options\": {},\n \"postfix\": \"\",\n \"postfixFontSize\": \"50%\",\n \"prefix\": \"\",\n \"prefixFontSize\": \"50%\",\n \"rangeMaps\": [\n {\n \"from\": \"null\",\n \"text\": \"N/A\",\n \"to\": \"null\"\n }\n ],\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 504,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS1_SSD1 on SDS1\",\n \"value\": \"SDS1_SSD1 on SDS1\"\n }\n },\n \"sparkline\": {\n \"fillColor\": \"rgba(31, 118, 189, 0.18)\",\n \"full\": false,\n \"lineColor\": \"rgb(31, 120, 193)\",\n \"show\": false\n },\n \"tableColumn\": \"\",\n \"targets\": [\n {\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT last(\\\"DiskStatus\\\") FROM \\\"DataCore_Pysical_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Pysical_Disks$/) AND $timeFilter GROUP BY time($__interval)\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"DiskStatus\"\n ],\n \"type\": \"field\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n },\n {\n \"condition\": \"AND\",\n \"key\": \"Type\",\n \"operator\": \"=\",\n \"value\": \"4\"\n }\n ]\n }\n ],\n \"thresholds\": \"1,2\",\n \"title\": \"Etat: $DataCore_Physical_Disks\",\n \"type\": \"singlestat\",\n \"valueFontSize\": \"80%\",\n \"valueMaps\": [\n {\n \"op\": \"=\",\n \"text\": \"Unknown\",\n \"value\": \"0\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Online\",\n \"value\": \"1\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Not Ready\",\n \"value\": \"2\"\n },\n {\n \"op\": \"=\",\n \"text\": \"No Media\",\n \"value\": \"3\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Offline\",\n \"value\": \"4\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"5\"\n },\n {\n \"op\": \"=\",\n \"text\": \"Failed\",\n \"value\": \"6\"\n }\n ],\n \"valueName\": \"avg\"\n },\n {\n \"aliasColors\": {\n \"Reads\": \"green\",\n \"Total\": \"blue\",\n \"Writes\": \"red\"\n },\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 12,\n \"x\": 4,\n \"y\": 32\n },\n \"hiddenSeries\": false,\n \"id\": 602,\n \"legend\": {\n \"alignAsTable\": true,\n \"avg\": true,\n \"current\": true,\n \"max\": false,\n \"min\": false,\n \"rightSide\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 1,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 507,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS1_SSD1 on SDS1\",\n \"value\": \"SDS1_SSD1 on SDS1\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Total/\",\n \"color\": \"#3274D9\"\n },\n {\n \"alias\": \"/Reads/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Writes/\",\n \"color\": \"#E02F44\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Total\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalOperations\\\", 1s) FROM \\\"DataCore_Virtual_Disks\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Virtual_Disks$/) AND $timeFilter\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalOperations\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Reads\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReads\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Writes\",\n \"groupBy\": [],\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"refId\": \"C\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWrites\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"IOPS: $DataCore_Physical_Disks\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"iops\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": true\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n },\n {\n \"aliasColors\": {},\n \"bars\": false,\n \"dashLength\": 10,\n \"dashes\": false,\n \"datasource\": null,\n \"fill\": 1,\n \"fillGradient\": 3,\n \"gridPos\": {\n \"h\": 6,\n \"w\": 8,\n \"x\": 16,\n \"y\": 32\n },\n \"hiddenSeries\": false,\n \"id\": 605,\n \"legend\": {\n \"avg\": true,\n \"current\": true,\n \"max\": true,\n \"min\": true,\n \"show\": true,\n \"total\": false,\n \"values\": true\n },\n \"lines\": true,\n \"linewidth\": 2,\n \"links\": [],\n \"nullPointMode\": \"null\",\n \"options\": {\n \"dataLinks\": []\n },\n \"paceLength\": 10,\n \"percentage\": false,\n \"pointradius\": 2,\n \"points\": false,\n \"renderer\": \"flot\",\n \"repeat\": null,\n \"repeatDirection\": \"v\",\n \"repeatIteration\": 1584028216361,\n \"repeatPanelId\": 514,\n \"repeatedByRow\": true,\n \"scopedVars\": {\n \"DataCore_Physical_Disks\": {\n \"selected\": false,\n \"text\": \"SDS1_SSD1 on SDS1\",\n \"value\": \"SDS1_SSD1 on SDS1\"\n }\n },\n \"seriesOverrides\": [\n {\n \"alias\": \"/Read/\",\n \"color\": \"#56A64B\"\n },\n {\n \"alias\": \"/Write/\",\n \"color\": \"#FF780A\"\n }\n ],\n \"spaceLength\": 10,\n \"stack\": false,\n \"steppedLine\": false,\n \"targets\": [\n {\n \"alias\": \"Read Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalReadTime\\\", 1s) / derivative(\\\"TotalReads\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" = 'SDS2-Pool1 on SDS2') AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"A\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalReadsTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalReads\\\", 1s) \"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n },\n {\n \"alias\": \"Write Latency for $tag_instance\",\n \"groupBy\": [\n {\n \"params\": [\n \"instance\"\n ],\n \"type\": \"tag\"\n }\n ],\n \"hide\": false,\n \"measurement\": \"DataCore_Physical_disk\",\n \"orderByTime\": \"ASC\",\n \"policy\": \"default\",\n \"query\": \"SELECT derivative(\\\"TotalWriteTime\\\", 1s) FROM \\\"DataCore_Disk_pools\\\" WHERE (\\\"instance\\\" =~ /^$DataCore_Disk_pools$/) AND $timeFilter GROUP BY \\\"instance\\\"\",\n \"rawQuery\": false,\n \"refId\": \"B\",\n \"resultFormat\": \"time_series\",\n \"select\": [\n [\n {\n \"params\": [\n \"TotalWritesTime\"\n ],\n \"type\": \"field\"\n },\n {\n \"params\": [\n \"1s\"\n ],\n \"type\": \"derivative\"\n },\n {\n \"params\": [\n \" / derivative(\\\"TotalWrites\\\", 1s)\"\n ],\n \"type\": \"math\"\n }\n ]\n ],\n \"tags\": [\n {\n \"key\": \"instance\",\n \"operator\": \"=~\",\n \"value\": \"/^$DataCore_Physical_Disks$/\"\n }\n ]\n }\n ],\n \"thresholds\": [\n {\n \"colorMode\": \"ok\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"lt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"warning\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 5,\n \"yaxis\": \"left\"\n },\n {\n \"colorMode\": \"critical\",\n \"fill\": true,\n \"line\": false,\n \"op\": \"gt\",\n \"value\": 8,\n \"yaxis\": \"left\"\n }\n ],\n \"timeFrom\": null,\n \"timeRegions\": [],\n \"timeShift\": null,\n \"title\": \"Latencies\",\n \"tooltip\": {\n \"shared\": true,\n \"sort\": 0,\n \"value_type\": \"individual\"\n },\n \"transparent\": true,\n \"type\": \"graph\",\n \"xaxis\": {\n \"buckets\": null,\n \"mode\": \"time\",\n \"name\": null,\n \"show\": true,\n \"values\": []\n },\n \"yaxes\": [\n {\n \"format\": \"ms\",\n \"label\": \"Latencies (ms)\",\n \"logBase\": 1,\n \"max\": null,\n \"min\": \"0\",\n \"show\": true\n },\n {\n \"format\": \"short\",\n \"label\": null,\n \"logBase\": 1,\n \"max\": null,\n \"min\": null,\n \"show\": false\n }\n ],\n \"yaxis\": {\n \"align\": false,\n \"alignLevel\": null\n }\n }\n ],\n \"repeat\": null,\n \"title\": \"DataCore Physical Disks\",\n \"type\": \"row\"\n }\n ],\n \"refresh\": \"5m\",\n \"schemaVersion\": 22,\n \"style\": \"dark\",\n \"tags\": [\n \"All Dashboards\",\n \"DataCore_REST\"\n ],\n \"templating\": {\n \"list\": [\n {\n \"allValue\": null,\n \"current\": {\n \"text\": \"All\",\n \"value\": [\n \"$__all\"\n ]\n },\n \"datasource\": \"DataCoreRestDB\",\n \"definition\": \"SHOW TAG VALUES WITH KEY = \\\"host\\\" WHERE \\\"objectname\\\" = 'DataCore Servers'\",\n \"hide\": 0,\n \"includeAll\": true,\n \"label\": \"DataCore Servers\",\n \"multi\": true,\n \"name\": \"DataCore_Servers\",\n \"options\": [],\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"host\\\" WHERE \\\"objectname\\\" = 'DataCore Servers'\",\n \"refresh\": 1,\n \"regex\": \"\",\n \"skipUrlSync\": false,\n \"sort\": 1,\n \"tagValuesQuery\": \"\",\n \"tags\": [],\n \"tagsQuery\": \"\",\n \"type\": \"query\",\n \"useTags\": false\n },\n {\n \"allValue\": null,\n \"current\": {\n \"text\": \"All\",\n \"value\": [\n \"$__all\"\n ]\n },\n \"datasource\": \"DataCoreRestDB\",\n \"definition\": \"select instance from (select top(\\\"iops\\\",\\\"instance\\\",$Top) from (select sum(iops) as iops from (SELECT derivative(\\\"TotalOperations\\\", 1s) as iops FROM \\\"DataCore_Virtual_Disks\\\" WHERE $timeFilter ) GROUP BY \\\"instance\\\")) where \\\"instance\\\" !~ /Logstore/ and \\\"instance\\\" !~ /Mirror Trunk/\",\n \"hide\": 0,\n \"includeAll\": true,\n \"label\": \"DataCore Virtual Disks\",\n \"multi\": true,\n \"name\": \"DataCore_Virtual_Disks\",\n \"options\": [],\n \"query\": \"select instance from (select top(\\\"iops\\\",\\\"instance\\\",$Top) from (select sum(iops) as iops from (SELECT derivative(\\\"TotalOperations\\\", 1s) as iops FROM \\\"DataCore_Virtual_Disks\\\" WHERE $timeFilter ) GROUP BY \\\"instance\\\")) where \\\"instance\\\" !~ /Logstore/ and \\\"instance\\\" !~ /Mirror Trunk/\",\n \"refresh\": 2,\n \"regex\": \"\",\n \"skipUrlSync\": false,\n \"sort\": 0,\n \"tagValuesQuery\": \"\",\n \"tags\": [],\n \"tagsQuery\": \"\",\n \"type\": \"query\",\n \"useTags\": false\n },\n {\n \"allValue\": null,\n \"current\": {\n \"text\": \"All\",\n \"value\": [\n \"$__all\"\n ]\n },\n \"datasource\": \"DataCoreRestDB\",\n \"definition\": \"\",\n \"hide\": 0,\n \"includeAll\": true,\n \"label\": \"DataCore Disk Pools\",\n \"multi\": true,\n \"name\": \"DataCore_Disk_pools\",\n \"options\": [],\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"instance\\\" WHERE \\\"objectname\\\" = 'DataCore Disk pools'\",\n \"refresh\": 1,\n \"regex\": \"\",\n \"skipUrlSync\": false,\n \"sort\": 0,\n \"tagValuesQuery\": \"\",\n \"tags\": [],\n \"tagsQuery\": \"\",\n \"type\": \"query\",\n \"useTags\": false\n },\n {\n \"allValue\": null,\n \"current\": {\n \"text\": \"All\",\n \"value\": [\n \"$__all\"\n ]\n },\n \"datasource\": \"DataCoreRestDB\",\n \"definition\": \"select instance from (select top(\\\"iops\\\",\\\"instance\\\",$Top) from (select sum(iops) as iops from (SELECT derivative(\\\"TotalOperations\\\", 1s) as iops FROM \\\"DataCore_Physical_disk\\\" where $timeFilter and \\\"Type\\\" = '4' ) GROUP BY \\\"instance\\\"))\",\n \"hide\": 0,\n \"includeAll\": true,\n \"label\": \"DataCore Physical Disk\",\n \"multi\": true,\n \"name\": \"DataCore_Physical_Disks\",\n \"options\": [],\n \"query\": \"select instance from (select top(\\\"iops\\\",\\\"instance\\\",$Top) from (select sum(iops) as iops from (SELECT derivative(\\\"TotalOperations\\\", 1s) as iops FROM \\\"DataCore_Physical_disk\\\" where $timeFilter and \\\"Type\\\" = '4' ) GROUP BY \\\"instance\\\"))\",\n \"refresh\": 2,\n \"regex\": \"\",\n \"skipUrlSync\": false,\n \"sort\": 0,\n \"tagValuesQuery\": \"\",\n \"tags\": [],\n \"tagsQuery\": \"\",\n \"type\": \"query\",\n \"useTags\": false\n },\n {\n \"allValue\": null,\n \"current\": {\n \"text\": \"All\",\n \"value\": [\n \"$__all\"\n ]\n },\n \"datasource\": \"DataCoreRestDB\",\n \"definition\": \"SHOW TAG VALUES WITH KEY = \\\"instance\\\" WHERE \\\"objectname\\\" = 'DataCore SCSI ports' and (\\\"PortRole\\\" = '1' or \\\"PortRole\\\" = '2' or \\\"PortRole\\\" = '4' )\",\n \"hide\": 0,\n \"includeAll\": true,\n \"label\": \"DataCore SCSI Ports\",\n \"multi\": true,\n \"name\": \"DataCore_SCSI_Ports\",\n \"options\": [],\n \"query\": \"SHOW TAG VALUES WITH KEY = \\\"instance\\\" WHERE \\\"objectname\\\" = 'DataCore SCSI ports' and (\\\"PortRole\\\" = '1' or \\\"PortRole\\\" = '2' or \\\"PortRole\\\" = '4' )\",\n \"refresh\": 1,\n \"regex\": \"\",\n \"skipUrlSync\": false,\n \"sort\": 0,\n \"tagValuesQuery\": \"\",\n \"tags\": [],\n \"tagsQuery\": \"\",\n \"type\": \"query\",\n \"useTags\": false\n },\n {\n \"allValue\": null,\n \"current\": {\n \"selected\": true,\n \"text\": \"3\",\n \"value\": \"3\"\n },\n \"hide\": 0,\n \"includeAll\": false,\n \"label\": null,\n \"multi\": false,\n \"name\": \"Top\",\n \"options\": [\n {\n \"selected\": false,\n \"text\": \"1\",\n \"value\": \"1\"\n },\n {\n \"selected\": false,\n \"text\": \"2\",\n \"value\": \"2\"\n },\n {\n \"selected\": true,\n \"text\": \"3\",\n \"value\": \"3\"\n },\n {\n \"selected\": false,\n \"text\": \"4\",\n \"value\": \"4\"\n },\n {\n \"selected\": false,\n \"text\": \"5\",\n \"value\": \"5\"\n },\n {\n \"selected\": false,\n \"text\": \"10\",\n \"value\": \"10\"\n },\n {\n \"selected\": false,\n \"text\": \"20\",\n \"value\": \"20\"\n }\n ],\n \"query\": \"1,2,3,4,5,10,20\",\n \"skipUrlSync\": false,\n \"type\": \"custom\"\n }\n ]\n },\n \"time\": {\n \"from\": \"now-1h\",\n \"to\": \"now\"\n },\n \"timepicker\": {\n \"hidden\": false,\n \"refresh_intervals\": [\n \"30s\",\n \"1m\",\n \"5m\",\n \"15m\",\n \"30m\",\n \"1h\",\n \"2h\",\n \"1d\"\n ],\n \"time_options\": [\n \"5m\",\n \"15m\",\n \"1h\",\n \"6h\",\n \"12h\",\n \"24h\",\n \"2d\",\n \"7d\",\n \"30d\"\n ]\n },\n \"timezone\": \"\",\n \"title\": \"DataCore Overview V2.2\",\n \"uid\": null,\n \"version\": 6\n},\n \"folderId\": 0,\n \"overwrite\": true\n}"
headers = {
'Accept': "application/json",
'Content-Type': "application/json",
'Authorization': "Basic Z3JhZmFuYTpncmFmYW5h",
'cache-control': "no-cache",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
| 17,774.222222
| 319,583
| 0.318476
| 27,242
| 319,936
| 3.698957
| 0.019749
| 0.067205
| 0.040073
| 0.029385
| 0.985799
| 0.983874
| 0.978674
| 0.976709
| 0.975706
| 0.97001
| 0
| 0.029459
| 0.436919
| 319,936
| 17
| 319,584
| 18,819.764706
| 0.529892
| 0.000038
| 0
| 0
| 0
| 0
| 0.632377
| 0.004535
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 0.090909
| 0.090909
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
f886310679819110eec544c738ab689592506b97
| 105
|
py
|
Python
|
src/azul/decorators.py
|
VIIgit/azul
|
bb61965f625c667979a2f255f6bc39dcafaaf40b
|
[
"Apache-2.0"
] | null | null | null |
src/azul/decorators.py
|
VIIgit/azul
|
bb61965f625c667979a2f255f6bc39dcafaaf40b
|
[
"Apache-2.0"
] | null | null | null |
src/azul/decorators.py
|
VIIgit/azul
|
bb61965f625c667979a2f255f6bc39dcafaaf40b
|
[
"Apache-2.0"
] | null | null | null |
from functools import lru_cache
def memoized_property(f):
return property(lru_cache(maxsize=1)(f))
| 17.5
| 44
| 0.771429
| 16
| 105
| 4.875
| 0.75
| 0.205128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010989
| 0.133333
| 105
| 5
| 45
| 21
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 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
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
f898f935234c5ad1721a048f11eac53c48a54627
| 3,243
|
py
|
Python
|
tests/rules/test_comment_indentation.py
|
xavierhardy/yamlfix
|
21a2585b79ff2d708bb32baeb06984991fa62c75
|
[
"Apache-2.0"
] | 2
|
2020-07-05T09:33:35.000Z
|
2021-05-09T04:11:58.000Z
|
tests/rules/test_comment_indentation.py
|
xavierhardy/yamlfix
|
21a2585b79ff2d708bb32baeb06984991fa62c75
|
[
"Apache-2.0"
] | 3
|
2020-07-04T13:57:36.000Z
|
2021-02-08T21:06:57.000Z
|
tests/rules/test_comment_indentation.py
|
xavierhardy/yamlfix
|
21a2585b79ff2d708bb32baeb06984991fa62c75
|
[
"Apache-2.0"
] | null | null | null |
import unittest
from yamllint.config import YamlLintConfig
from tests.utils import LoggingTester
from yamlfix.formatting import read_and_format_text
class CommentsIndentationRuleTest(LoggingTester):
"""comments-indentation"""
def test_no_config(self):
expected = """---
##############################
## This is some documentation
# This sentence
# is a block comment
test: 42 # somecomment
"""
content = """---
##############################
## This is some documentation
#This sentence
#is a block comment
test: 42 #somecomment
"""
output = read_and_format_text(content)
self.assertEqual(expected, output)
def test_default_enabled_missing(self):
config_content = (
'{"extends": "default", "rules": {"comments-indentation": "enable"}}'
)
expected = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
# here too
"""
content = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
# here too
"""
output = read_and_format_text(content, YamlLintConfig(content=config_content))
self.assertEqual(expected, output)
def test_default_no_seq_indent(self):
config_content = (
'{"extends": "default", "rules": {'
'"comments-indentation": "enable",'
'"indentation": {"indent-sequences": false}'
"}}"
)
expected = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
# here too
"""
content = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
# here too
"""
output = read_and_format_text(content, YamlLintConfig(content=config_content))
self.assertEqual(expected, output)
def test_default_enabled_present(self):
config_content = (
'{"extends": "default", "rules": {"comments-indentation": "enable"}}'
)
expected = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
"""
content = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
"""
output = read_and_format_text(content, YamlLintConfig(content=config_content))
self.assertEqual(expected, output)
def test_default_disabled(self):
config_content = (
'{"extends": "default", "rules": {"comments-indentation": "disable"}}'
)
expected = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
# valid
"""
content = """---
##############################
## Some text
# Fix me
test: # First key
# thing
key: value
# valid
lst:
- item1
# valid
"""
output = read_and_format_text(content, YamlLintConfig(content=config_content))
self.assertEqual(expected, output)
if __name__ == "__main__":
unittest.main()
| 19.419162
| 86
| 0.538699
| 311
| 3,243
| 5.463023
| 0.205788
| 0.061212
| 0.051795
| 0.061212
| 0.811654
| 0.811654
| 0.798117
| 0.798117
| 0.765745
| 0.692172
| 0
| 0.00491
| 0.246377
| 3,243
| 166
| 87
| 19.536145
| 0.690262
| 0.006167
| 0
| 0.848276
| 0
| 0
| 0.509481
| 0.122785
| 0
| 0
| 0
| 0
| 0.034483
| 1
| 0.034483
| false
| 0
| 0.027586
| 0
| 0.068966
| 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
|
6efc2dcb92d2ce9251b6e94c6d9b9b2a17a110e7
| 2,118
|
py
|
Python
|
epytope/Data/pssms/smm/mat/A_32_15_9.py
|
christopher-mohr/epytope
|
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
|
[
"BSD-3-Clause"
] | 7
|
2021-02-01T18:11:28.000Z
|
2022-01-31T19:14:07.000Z
|
epytope/Data/pssms/smm/mat/A_32_15_9.py
|
christopher-mohr/epytope
|
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
|
[
"BSD-3-Clause"
] | 22
|
2021-01-02T15:25:23.000Z
|
2022-03-14T11:32:53.000Z
|
epytope/Data/pssms/smm/mat/A_32_15_9.py
|
christopher-mohr/epytope
|
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
|
[
"BSD-3-Clause"
] | 4
|
2021-05-28T08:50:38.000Z
|
2022-03-14T11:45:32.000Z
|
A_32_15_9 = {0: {'A': 0.002, 'C': 0.0, 'E': 0.013, 'D': 0.0, 'G': 0.27, 'F': -0.116, 'I': 0.074, 'H': 0.083, 'K': 0.028, 'M': -0.143, 'L': 0.075, 'N': 0.0, 'Q': 0.0, 'P': 0.0, 'S': -0.167, 'R': 0.028, 'T': 0.003, 'W': -0.077, 'V': 0.0, 'Y': -0.073}, 1: {'A': -0.0, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': 0.0, 'F': 0.0, 'I': -0.0, 'H': 0.0, 'K': 0.0, 'M': 0.0, 'L': -0.0, 'N': 0.0, 'Q': 0.0, 'P': 0.0, 'S': -0.0, 'R': 0.0, 'T': -0.0, 'W': 0.0, 'V': -0.0, 'Y': 0.0}, 2: {'A': 0.008, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': 0.0, 'F': -0.233, 'I': -0.034, 'H': -0.012, 'K': 0.002, 'M': 0.052, 'L': 0.129, 'N': -0.034, 'Q': 0.0, 'P': 0.052, 'S': -0.04, 'R': -0.03, 'T': -0.001, 'W': 0.064, 'V': 0.065, 'Y': 0.012}, 3: {'A': -0.074, 'C': 0.0, 'E': 0.261, 'D': 0.096, 'G': -0.344, 'F': -0.238, 'I': -0.244, 'H': 0.099, 'K': 0.39, 'M': -0.026, 'L': -0.108, 'N': -0.156, 'Q': 0.09, 'P': -0.099, 'S': 0.203, 'R': 0.263, 'T': -0.043, 'W': 0.0, 'V': 0.048, 'Y': -0.12}, 4: {'A': 0.056, 'C': 0.0, 'E': -0.028, 'D': 0.0, 'G': 0.092, 'F': 0.424, 'I': -0.074, 'H': 0.116, 'K': 0.0, 'M': 0.097, 'L': -0.143, 'N': 0.008, 'Q': -0.179, 'P': 0.267, 'S': -0.172, 'R': -0.302, 'T': 0.292, 'W': -0.495, 'V': -0.007, 'Y': 0.048}, 5: {'A': -0.0, 'C': 0.0, 'E': 0.0, 'D': -0.0, 'G': -0.0, 'F': -0.0, 'I': -0.0, 'H': 0.0, 'K': 0.0, 'M': 0.0, 'L': 0.0, 'N': -0.0, 'Q': 0.0, 'P': -0.0, 'S': 0.0, 'R': 0.0, 'T': -0.0, 'W': 0.0, 'V': -0.0, 'Y': -0.0}, 6: {'A': 0.011, 'C': 0.0, 'E': 0.0, 'D': 0.002, 'G': 0.0, 'F': -0.005, 'I': -0.007, 'H': 0.001, 'K': 0.0, 'M': 0.007, 'L': 0.005, 'N': -0.001, 'Q': 0.008, 'P': -0.006, 'S': 0.008, 'R': -0.004, 'T': -0.002, 'W': -0.007, 'V': 0.003, 'Y': -0.012}, 7: {'A': 0.0, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': -0.0, 'F': 0.0, 'I': -0.0, 'H': -0.0, 'K': -0.0, 'M': 0.0, 'L': 0.0, 'N': 0.0, 'Q': -0.0, 'P': -0.0, 'S': -0.0, 'R': 0.0, 'T': -0.0, 'W': 0.0, 'V': 0.0, 'Y': -0.0}, 8: {'A': 0.0, 'C': 0.0, 'E': 0.0, 'D': 0.0, 'G': 0.0, 'F': -0.168, 'I': -0.093, 'H': 0.0, 'K': 0.199, 'M': 0.005, 'L': 0.113, 'N': 0.0, 'Q': 0.0, 'P': 0.0, 'S': 0.0, 'R': 0.262, 'T': 0.0, 'W': -0.268, 'V': 0.164, 'Y': -0.213}, -1: {'con': 2.16325}}
| 2,118
| 2,118
| 0.349386
| 557
| 2,118
| 1.32316
| 0.174147
| 0.246947
| 0.036635
| 0.048847
| 0.438263
| 0.331072
| 0.331072
| 0.331072
| 0.320217
| 0.320217
| 0
| 0.316905
| 0.17611
| 2,118
| 1
| 2,118
| 2,118
| 0.105444
| 0
| 0
| 0
| 0
| 0
| 0.086361
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3e087b75aa2b3fa51bb7863eb798c5a87d01a4c7
| 3,690
|
py
|
Python
|
migrations/versions/36c8971a65da_.py
|
theDrinkMD/twibbage
|
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
|
[
"MIT"
] | null | null | null |
migrations/versions/36c8971a65da_.py
|
theDrinkMD/twibbage
|
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
|
[
"MIT"
] | null | null | null |
migrations/versions/36c8971a65da_.py
|
theDrinkMD/twibbage
|
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
|
[
"MIT"
] | null | null | null |
"""empty message
Revision ID: 36c8971a65da
Revises:
Create Date: 2017-11-14 10:24:39.098695
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '36c8971a65da'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('game', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
op.alter_column('game', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
op.add_column('player', sa.Column('player_name', sa.String(length=16), nullable=True))
op.alter_column('player', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
op.alter_column('player', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
op.alter_column('player_answers', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
op.alter_column('player_answers', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
op.alter_column('question', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
op.alter_column('question', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=False,
existing_server_default=sa.text(u'now()'))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('question', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
op.alter_column('question', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
op.alter_column('player_answers', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
op.alter_column('player_answers', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
op.alter_column('player', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
op.alter_column('player', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
op.drop_column('player', 'player_name')
op.alter_column('game', 'updated_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
op.alter_column('game', 'created_dt',
existing_type=postgresql.TIMESTAMP(),
nullable=True,
existing_server_default=sa.text(u'now()'))
# ### end Alembic commands ###
| 39.677419
| 90
| 0.606233
| 396
| 3,690
| 5.419192
| 0.171717
| 0.05219
| 0.096925
| 0.178938
| 0.835042
| 0.835042
| 0.835042
| 0.835042
| 0.835042
| 0.835042
| 0
| 0.014027
| 0.265854
| 3,690
| 92
| 91
| 40.108696
| 0.778147
| 0.076694
| 0
| 0.853333
| 0
| 0
| 0.122849
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026667
| false
| 0
| 0.04
| 0
| 0.066667
| 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
|
3e1b0dca3cd9ec25fef07d7f0f6b6c4f3c9c5469
| 14,374
|
py
|
Python
|
Controller/controller.py
|
benjamin-sibellas/calculator
|
da0beae653e414a6dd11b58223bd55cd1383dbb7
|
[
"MIT"
] | null | null | null |
Controller/controller.py
|
benjamin-sibellas/calculator
|
da0beae653e414a6dd11b58223bd55cd1383dbb7
|
[
"MIT"
] | null | null | null |
Controller/controller.py
|
benjamin-sibellas/calculator
|
da0beae653e414a6dd11b58223bd55cd1383dbb7
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
import re
import math
class CalcController:
def __init__(self, calc):
self.expression = []
self.result = 0
self.calc = calc
def equals(self, label, isRes):
if len(self.expression) == 3:
if re.search("\.", self.expression[0]) or re.search("\.", self.expression[2]):
self.expression[0] = float(self.expression[0])
self.expression[2] = float(self.expression[2])
else:
self.expression[0] = int(self.expression[0])
self.expression[2] = int(self.expression[2])
if self.expression[1] == "+":
res = self.calc.add(self.expression[0], self.expression[2])
elif self.expression[1] == "-":
res = self.calc.sub(self.expression[0], self.expression[2])
elif self.expression[1] == "*":
res = self.calc.mult(self.expression[0], self.expression[2])
elif self.expression[1] == "/":
res = self.calc.div(self.expression[0], self.expression[2])
elif self.expression[1] == "pow":
res = math.pow(self.expression[0], self.expression[2])
res = str(res)
if re.search("([-0-9]+)\.0$", res):
res = re.sub("([-0-9]+)\.0$", r"\1", res)
label.config(text=res)
self.expression = []
if re.search("[-0-9\.]+", res):
self.expression.append(res)
self.calc.isRes = 1
def clear(self, label, isRes):
self.expression = []
label.config(text=" ")
isRes = 0
def enter(self, param, label, isRes):
param = str(param)
if re.search("[-0-9]", param):
if len(self.expression) == 0:
self.expression.append(param)
label.config(text=param)
elif re.search("[-0-9\.]+", self.expression[len(self.expression) - 1]):
if isRes == 0:
if re.search("([-0-9\.]+)pow([-0-9\.]+)?$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] += param
param = re.sub("([-0-9\.]+)pow([-0-9\.]+)?$", r"\2", self.expression[len(self.expression) - 1])
label.config(text=param)
else:
self.expression[len(self.expression) - 1] += param
label.config(text=self.expression[len(self.expression) - 1])
elif isRes == 1:
self.clear(label, isRes)
self.expression = [param]
label.config(text=param)
self.calc.isRes = 0
else:
self.expression.append(param)
label.config(text=param)
elif param == "pi":
if len(self.expression) == 0 or len(self.expression) == 2:
if isRes == 0:
self.expression.append(str(math.pi))
label.config(text=math.pi)
elif isRes == 1:
self.clear(label, isRes)
self.expression = [str(math.pi)]
label.config(text=math.pi)
self.calc.isRes = 0
elif param == "e":
if len(self.expression) == 0 or len(self.expression) == 2:
if isRes == 0:
self.expression.append(str(math.e))
label.config(text=math.e)
elif isRes == 1:
self.clear(label, isRes)
self.expression = [str(math.e)]
label.config(text=math.e)
self.calc.isRes = 0
elif param == ".":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] += param
label.config(text=self.expression[len(self.expression) - 1])
def operation(self, param, label, isRes):
param = str(param)
if param == "%":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = int(self.expression[len(self.expression) - 1])/100
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = float(self.expression[len(self.expression) - 1])/100
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "inv":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = int(self.expression[len(self.expression) - 1]) * (-1)
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = float(self.expression[len(self.expression) - 1]) * (-1)
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "cos":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.cos(math.radians(int(self.expression[len(self.expression) - 1])))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.cos(math.radians(float(self.expression[len(self.expression) - 1])))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "sin":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.sin(math.radians(int(self.expression[len(self.expression) - 1])))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.sin(math.radians(float(self.expression[len(self.expression) - 1])))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "tan":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.tan(math.radians(int(self.expression[len(self.expression) - 1])))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.tan(math.radians(float(self.expression[len(self.expression) - 1])))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "sqr":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.sqrt(int(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
if re.search("([-0-9]+)\.0$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = re.sub("([-0-9]+)\.0$", r"\1", self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.sqrt(float(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "exp":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.exp(int(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
if re.search("([-0-9]+)\.0$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = re.sub("([-0-9]+)\.0$", r"\1", self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.exp(float(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "ln":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.log(int(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
if re.search("([-0-9]+)\.0$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = re.sub("([-0-9]+)\.0$", r"\1", self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.log(float(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "log10":
if len(self.expression) >= 1:
if re.search("^[-0-9]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.log10(int(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
if re.search("([-0-9]+)\.0$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = re.sub("([-0-9]+)\.0$", r"\1", self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif re.search("^[-0-9.]+$", self.expression[len(self.expression) - 1]):
self.expression[len(self.expression) - 1] = math.log10(float(self.expression[len(self.expression) - 1]))
self.expression[len(self.expression) - 1] = str(self.expression[len(self.expression) - 1])
label.config(text=self.expression[len(self.expression) - 1])
self.calc.isRes = 1
elif param == "pow":
if len(self.expression) >= 1 and re.search("[-0-9]+$", self.expression[len(self.expression) - 1]):
label.config(text=" ")
self.expression.append(param)
elif re.search("[\+\-\*/.]", param):
if len(self.expression) >= 1 and re.search("[-0-9]+$", self.expression[len(self.expression) - 1]):
label.config(text=" ")
self.expression.append(param)
| 65.040724
| 141
| 0.521219
| 1,652
| 14,374
| 4.532688
| 0.036925
| 0.594551
| 0.338275
| 0.34375
| 0.924412
| 0.911859
| 0.888488
| 0.886886
| 0.866052
| 0.84148
| 0
| 0.031484
| 0.312787
| 14,374
| 221
| 142
| 65.040724
| 0.726564
| 0.001461
| 0
| 0.64455
| 0
| 0
| 0.043615
| 0.003762
| 0
| 0
| 0
| 0
| 0
| 1
| 0.023697
| false
| 0
| 0.009479
| 0
| 0.037915
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
e4bb820c1a4a77ab974aae9cb424fe4d55f14634
| 896
|
py
|
Python
|
src/cvhelpers/lie/torch/utils.py
|
yewzijian/RegTR
|
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
|
[
"MIT"
] | 25
|
2022-03-28T06:26:16.000Z
|
2022-03-30T14:21:24.000Z
|
src/common/lie/torch/utils.py
|
yewzijian/MultiReg
|
8411e3b8d878454c4db06c53025d0dd4e5efdeb3
|
[
"MIT"
] | null | null | null |
src/common/lie/torch/utils.py
|
yewzijian/MultiReg
|
8411e3b8d878454c4db06c53025d0dd4e5efdeb3
|
[
"MIT"
] | 2
|
2022-03-29T09:37:50.000Z
|
2022-03-30T06:26:35.000Z
|
from typing import Union
import torch
_EPS = 1e-3 # larger epsilon for float32
def allclose(mat1: torch.Tensor, mat2: Union[torch.Tensor, float], tol=_EPS):
"""Check if all elements of two tensors are close within some tolerance.
Either tensor can be replaced by a scalar.
Note:
This is similar to torch.allclose(), but considers just the absolute
difference at a larger tolerance more suitable for float32.
"""
return isclose(mat1, mat2, tol).all()
def isclose(mat1: torch.Tensor, mat2: Union[torch.Tensor, float], tol=_EPS):
"""Check element-wise if two tensors are close within some tolerance.
Either tensor can be replaced by a scalar.
Note:
This is similar to torch.isclose(), but considers just the absolute
difference at a larger tolerance more suitable for float32.
"""
return (mat1 - mat2).abs_().lt(tol)
| 30.896552
| 77
| 0.696429
| 130
| 896
| 4.769231
| 0.446154
| 0.070968
| 0.048387
| 0.06129
| 0.73871
| 0.73871
| 0.73871
| 0.73871
| 0.73871
| 0.73871
| 0
| 0.022923
| 0.220982
| 896
| 29
| 78
| 30.896552
| 0.86533
| 0.601563
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.285714
| 0
| 0.857143
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
9032f229ae5f03d83bfd1fa487f51c895033e00a
| 14,241
|
py
|
Python
|
Assignment.py
|
VladislavPetrusenko/Python-codes
|
35bf4a891eb25ee1c8fe73b992ebf29c94291ff6
|
[
"MIT"
] | null | null | null |
Assignment.py
|
VladislavPetrusenko/Python-codes
|
35bf4a891eb25ee1c8fe73b992ebf29c94291ff6
|
[
"MIT"
] | null | null | null |
Assignment.py
|
VladislavPetrusenko/Python-codes
|
35bf4a891eb25ee1c8fe73b992ebf29c94291ff6
|
[
"MIT"
] | null | null | null |
import numpy as np
import matplotlib.pyplot as plt
import operator
from itertools import combinations_with_replacement
from numpy import testing
def generate_data(n):
X = np.random.uniform(0,1,n)
X = np.sin(2*np.pi*X)
mu, sigma = 0, 0.3
noise = np.random.normal(mu, sigma, n)
y = X + noise
return X,y
def shuffle_data(X, y, seed=None):
if seed:
np.random.seed(seed)
idx = np.arange(X.shape[0])
np.random.shuffle(idx)
return X[idx], y[idx]
def train_test_split(X, y, test_size=0.2, shuffle=True, seed=None):
if shuffle:
X, y = shuffle_data(X, y, seed)
split_i = len(y) - int(len(y) // (1 / test_size))
print(len(y), split_i)
X_train, X_test = X[:split_i], X[split_i:]
y_train, y_test = y[:split_i], y[split_i:]
return X_train, X_test, y_train, y_test
X,y = generate_data(10)
X = np.reshape(X, (-1,1))
X_train, X_test, y_train, y_test = train_test_split(X,y)
print(X_train, X_test, y_train, y_test)
plt.plot(X,y,'b.')
plt.xlabel("$x$", fontsize=18)
plt.ylabel("$y$", rotation=0, fontsize=18)
_ = plt.axis([-1.5,1.5,-1.5,1.5])
plt.grid()
def mean_squared_error(y_true, y_pred):
mse = np.mean(0.5*np.power(y_true - y_pred, 2))
return mse
class LinearRegression(object):
def __init__(self, n_iterations=100, learning_rate=0.001):
self.n_iterations = n_iterations
self.learning_rate = learning_rate
def initialize_weights(self, n_features):
limit = 1 / np.power(n_features,0.5)
self.w = np.random.uniform(-limit, limit, (n_features, ))
def fit(self, X, y):
X = np.insert(X, 0, 1, axis=1)
self.training_errors = []
self.initialize_weights(n_features=X.shape[1])
for i in range(self.n_iterations):
y_pred = X.dot(self.w)
mse = mean_squared_error(y,y_pred)
self.training_errors.append(mse)
grad_w = -(y - y_pred).dot(X)
self.w -= self.learning_rate * grad_w
def predict(self, X):
X = np.insert(X, 0, 1, axis=1)
y_pred = X.dot(self.w)
return y_pred
model = LinearRegression( n_iterations=3000, learning_rate=0.05)
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
training_mse = model.training_errors[-1]
testing_mse = mean_squared_error(y_test, y_pred)
y_pred_line = model.predict(X)
print (training_mse,testing_mse)
m1 = plt.scatter(X_train, y_train, color='red', s=15)
m2 = plt.scatter(X_test, y_test, color='black', s=15)
sort_axis = operator.itemgetter(0)
sorted_zip = sorted(zip(X,y_pred_line), key=sort_axis)
x, y_pred_line = zip(*sorted_zip)
plt.plot(x, y_pred_line, color='blue', linewidth=1, label="Prediction")
plt.suptitle("Linear Regression",fontsize=15)
plt.title("Training MSE: {0:.2f} Testing MSE: {1:.2f}".format(training_mse,testing_mse), fontsize=10)
plt.xlabel('X',fontsize=18)
plt.ylabel('y',fontsize=18)
plt.legend((m1, m2), ("Training data", "Test data"), loc = 'lower right')
plt.grid()
plt.show()
def polynomial_features(X, degree):
n_samples, n_features = np.shape(X)
def index_combinations():
combs = [combinations_with_replacement(range(n_features), i) for i in range(0, degree + 1)]
flat_combs = [item for sublist in combs for item in sublist]
return flat_combs
combinations = index_combinations()
n_output_features = len(combinations)
X_new = np.empty((n_samples, n_output_features))
for i, index_combs in enumerate(combinations):
X_new[:, i] = np.prod(X[:, index_combs], axis = 1)
return X_new
class PolynomialRegression(object):
def __init__(self, degree, n_iterations = 3000, learning_rate = 0.001):
self.degree = degree
self.n_iterations = n_iterations
self.learning_rate = learning_rate
def initialize_weights(self, n_features):
limit = 1 / np.power(n_features, 0.5)
self.w = np.random.uniform(-limit, limit, (n_features))
def fit(self, X, y):
X = polynomial_features(X, degree = self.degree)
X = np.insert(X, 0, 1, axis = 1)
self.training_errors = []
self.initialize_weights(n_features = X.shape[1])
for i in range(self.n_iterations):
y_pred = X.dot(self.w)
mse = mean_squared_error(y, y_pred)
self.training_errors.append(mse)
grad_w = -(y - y_pred).dot(X)
self.w -= self.learning_rate * grad_w
def predict(self, X):
X = polynomial_features(X, degree = self.degree)
X = np.insert(X, 0, 1, axis = 1)
y_pred = X.dot(self.w)
return y_pred
fig = plt.figure()
plt.figure(figsize = (16, 8), dpi = 100)
fig.subplots_adjust(hspace = 1, wspace = 1)
for i in range(1, 10):
model = PolynomialRegression(degree = i, n_iterations = 3000, learning_rate = 0.001)
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
training_mse = model.training_errors[-1]
testing_mse = mean_squared_error(y_test, y_pred)
y_poly_pred = model.predict(X)
print(training_mse, testing_mse)
ax = fig.add_subplot(3, 3, i)
plt.subplot(3, 3, i)
m1 = plt.scatter(X_train, y_train, color = 'red', s = 15)
m2 = plt.scatter(X_test, y_test, color = 'black', s = 15)
sort_axis = operator.itemgetter(0)
sorted_zip = sorted(zip(X, y_poly_pred), key = sort_axis)
x, y_poly_pred = zip(*sorted_zip)
plt.plot(x, y_poly_pred, color = 'blue', linewidth = 2, label = "Prediction")
plt.title("Training MSE: {0:.2f} Testing MSE: {1:.2f} Degree: {2}".format(training_mse, testing_mse, i), fontsize = 10)
plt.legend((m1, m2), ("Training data", "Test data"), loc = 'lower right')
plt.grid()
plt.show()
X, y = generate_data(100)
X = np.reshape(X, (-1, 1))
X_train, X_test, y_train, y_test = train_test_split(X, y)
print(X_train, X_test, y_train, y_test)
fig = plt.figure()
plt.figure( figsize=(16, 8), dpi=80)
fig.subplots_adjust(hspace=1, wspace=1)
for i in range(1,10):
model = PolynomialRegression(degree = i, n_iterations=3000, learning_rate=0.001)
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
training_mse = model.training_errors[-1]
testing_mse = mean_squared_error(y_test, y_pred)
y_poly_pred = model.predict(X)
print(training_mse, testing_mse)
ax = fig.add_subplot(3, 3, i)
plt.subplot(3, 3, i)
m1 = plt.scatter(X_train, y_train, color='red', s=15)
m2 = plt.scatter(X_test, y_test, color='black', s=15)
sort_axis = operator.itemgetter(0)
sorted_zip = sorted(zip(X,y_poly_pred), key=sort_axis)
x, y_poly_pred = zip(*sorted_zip)
plt.plot(x, y_poly_pred, color='blue', linewidth=2, label="Prediction")
plt.suptitle("Polynomial Regression",fontsize=20)
plt.title("Training MSE: {0:.2f} Testing MSE: {1:.2f} Degree: {2}".format(training_mse,testing_mse,i), fontsize=10)
plt.legend((m1, m2), ("Training data", "Test data"), loc='lower right')
plt.grid()
plt.show()
X, y = generate_data(1000)
X = np.reshape(X, (-1, 1))
X_train, X_test, y_train, y_test = train_test_split(X, y)
print(X_train, X_test, y_train, y_test)
fig = plt.figure()
plt.figure(figsize = (16, 8), dpi = 90)
fig.subplots_adjust(hspace = 1, wspace = 1)
model = LinearRegression(n_iterations = 3000, learning_rate = 0.05)
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
training_mse = model.training_errors[-1]
testing_mse = mean_squared_error(y_test, y_pred)
y_poly_pred = model.predict(X)
m1 = plt.scatter(X_train, y_train, color = 'red', s = 15)
m2 = plt.scatter(X_test, y_test, color = 'black', s = 15)
sort_axis = operator.itemgetter(0)
sorted_zip = sorted(zip(X, y_poly_pred), key = sort_axis)
x, y_poly_pred = zip(*sorted_zip)
plt.plot(x, y_poly_pred, color = 'blue', linewidth = 2, label = 'Prediction')
plt.suptitle("Linear Regression", fontsize = 20)
plt.title("Training MSE: {0:.2f} Testing MSE: {1:.2f} Degree: {2}".format(training_mse, testing_mse, i), fontsize = 10)
plt.legend((m1, m2), ("Training data", "Test data"), loc = 'lower right')
plt.grid()
plt.show()
def mean_absolute_error(y_true, y_pred):
mae = np.mean(0.5 * np.absolute(y_true - y_pred))
return mae
def fourth_power_error(y_true, y_pred):
fpe = np.mean(0.5 * np.power(y_true - y_pred, 4))
return fpe
class LinearRegressionVariant(object):
def __init__(self, n_iterations = 100, learning_rate = 0.001, error = 'mse'):
self.n_iterations = n_iterations
self.learning_rate = learning_rate
self.error = error
def initialize_weights(self, n_features):
limit = 1 / np.power(n_features, 0.5)
self.w = np.random.uniform(-limit, limit, (n_features, ))
def fit(self, X, y):
X = np.insert(X, 0, 1, axis = 1)
self.training_errors = []
self.initialize_weights(n_features = X.shape[1])
if self.error == 'mse':
for i in range(self.n_iterations):
y_pred = X.dot(self.w)
mse = mean_squared_error(y, y_pred)
self.training_errors.append(mse)
grad_w = -(y - y_pred).dot(X)
self.w -= self.learning_rate * grad_w
elif self.error == 'mae':
for i in range(self.n_iterations):
y_pred = X.dot(self.w)
mse = mean_absolute_error(y, y_pred)
self.training_errors.append(mse)
grad_w = -(y - y_pred).dot(X)
self.w -= self.learning_rate * grad_w
elif self.error == 'fpe':
for i in range(self.n_iterations):
y_pred = X.dot(self.w)
mse = fourth_power_error(y, y_pred)
self.training_errors.append(mse)
grad_w = -(y - y_pred).dot(X)
self.w -= self.learning_rate * grad_w
def predict(self, X):
X = np.insert(X, 0, 1, axis = 1)
y_pred = X.dot(self.w)
return y_pred
X, y = generate_data(500)
X = np.reshape(X, (-1, 1))
X_train, X_test, y_train, y_test = train_test_split(X, y)
model1 = LinearRegressionVariant(n_iterations = 3000, learning_rate = 0.001, error = 'mse')
model1.fit(X_train, y_train)
y_pred = model1.predict(X_test)
training_mse = model1.training_errors[1]
testing_mse = mean_squared_error(y_test, y_pred)
y_pred_line = model1.predict(X)
print(training_mse, testing_mse)
plt.figure(figsize = (16, 8), dpi = 80)
plt.subplot(1, 2, 1)
m1 = plt.scatter(X_train, y_train, color = 'red', s = 15)
m2 = plt.scatter(X_test, y_test, color = 'black', s = 15)
sort_axis = operator.itemgetter(0)
sorted_zip = sorted(zip(X,y_pred_line), key = sort_axis)
x, y_pred_line = zip(*sorted_zip)
plt.plot(x, y_pred_line, color = 'blue', linewidth = 2, label = "Prediction")
plt.suptitle("Linear Regression",fontsize = 15)
plt.title("Training MSE: {0:.2f} Testing MSE: {1:.2f}".format(training_mse,testing_mse), fontsize = 15)
plt.xlabel('X',fontsize = 18)
plt.ylabel('y',fontsize = 18)
plt.legend((m1, m2), ("Training data", "Test data"), loc = 'lower right')
plt.grid()
plt.subplot(1, 2, 2)
plt.scatter(np.arange(30), model1.training_errors[:30], color = 'red', s = 15)
plt.title("Learning Rate {0:.3f}".format(model1.learning_rate), fontsize = 15)
plt.xlabel('Iterations',fontsize = 18)
plt.ylabel('Error',fontsize = 18)
plt.grid()
plt.show()
model2 = LinearRegressionVariant(n_iterations = 3000, learning_rate = 0.0005,error = 'mae')
model2.fit(X_train, y_train)
y_pred = model2.predict(X_test)
training_mse = model2.training_errors[-1]
testing_mse = mean_absolute_error(y_test, y_pred)
y_pred_line = model2.predict(X)
print (training_mse,testing_mse)
plt.figure(figsize = (16, 8), dpi = 80)
plt.subplot(1, 2, 1)
m1 = plt.scatter(X_train, y_train, color = 'red', s = 15)
m2 = plt.scatter(X_test, y_test, color = 'black', s = 15)
sort_axis = operator.itemgetter(0)
sorted_zip = sorted(zip(X,y_pred_line), key = sort_axis)
x, y_pred_line = zip(*sorted_zip)
plt.plot(x, y_pred_line, color = 'blue', linewidth = 2, label="Prediction")
plt.suptitle("Linear Regression",fontsize = 15)
plt.title("Training MSE: {0:.2f} Testing MSE: {1:.2f}".format(training_mse,testing_mse), fontsize = 15)
plt.xlabel('X',fontsize = 18)
plt.ylabel('y',fontsize = 18)
plt.legend((m1, m2), ("Training data", "Test data"), loc = 'lower right')
plt.grid()
plt.subplot(1, 2, 2)
plt.scatter(np.arange(30), model1.training_errors[:30], color = 'red', s = 15)
plt.title("Learning Rate {0:.3f}".format(model2.learning_rate), fontsize = 15)
plt.xlabel('Iterations',fontsize = 18)
plt.ylabel('Error',fontsize = 18)
plt.grid()
plt.show()
model3 = LinearRegressionVariant(n_iterations = 300, learning_rate = 0.001,error = 'fpe')
model3.fit(X_train, y_train)
y_pred = model3.predict(X_test)
training_mse = model3.training_errors[-1]
testing_mse = fourth_power_error(y_test, y_pred)
y_pred_line = model3.predict(X)
print (training_mse,testing_mse)
plt.figure(figsize= (16, 8), dpi = 80)
plt.subplot(1, 2, 1)
m1 = plt.scatter(X_train, y_train, color = 'red', s = 15)
m2 = plt.scatter(X_test, y_test, color = 'black', s = 15)
sort_axis = operator.itemgetter(0)
sorted_zip = sorted(zip(X,y_pred_line), key = sort_axis)
x, y_pred_line = zip(*sorted_zip)
plt.plot(x, y_pred_line, color = 'blue', linewidth = 2, label = "Prediction")
plt.suptitle("Linear Regression",fontsize=15)
plt.title("Training MSE: {0:.2f} Testing MSE: {1:.2f}".format(training_mse,testing_mse), fontsize = 10)
plt.xlabel('X',fontsize = 18)
plt.ylabel('y',fontsize = 18)
plt.legend((m1, m2), ("Training data", "Test data"), loc = 'lower right')
plt.grid()
plt.subplot(1, 2, 2)
plt.scatter(np.arange(30), model1.training_errors[:30], color='red', s=15)
plt.xlabel('Iterations',fontsize = 18)
plt.ylabel('Learning Rate',fontsize = 18)
plt.title("Learning Rate {0:.3f}".format(model3.learning_rate), fontsize = 15)
plt.xlabel('Iterations',fontsize = 18)
plt.ylabel('Error',fontsize = 18)
plt.grid()
plt.show()
| 39.558333
| 124
| 0.647005
| 2,255
| 14,241
| 3.886031
| 0.076275
| 0.032523
| 0.026703
| 0.019172
| 0.848682
| 0.818784
| 0.812735
| 0.783293
| 0.763437
| 0.759557
| 0
| 0.039371
| 0.20455
| 14,241
| 360
| 125
| 39.558333
| 0.734198
| 0
| 0
| 0.698758
| 1
| 0.009317
| 0.071886
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.062112
| false
| 0
| 0.015528
| 0
| 0.121118
| 0.031056
| 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
|
9037a5e412de402943a38b9b89b9d7cd5213abda
| 102
|
py
|
Python
|
factories/__init__.py
|
vishu221b/bookme-flask-REST-API-Collection
|
9ee923e13d786af9b11421370edac718743855af
|
[
"MIT"
] | null | null | null |
factories/__init__.py
|
vishu221b/bookme-flask-REST-API-Collection
|
9ee923e13d786af9b11421370edac718743855af
|
[
"MIT"
] | null | null | null |
factories/__init__.py
|
vishu221b/bookme-flask-REST-API-Collection
|
9ee923e13d786af9b11421370edac718743855af
|
[
"MIT"
] | null | null | null |
from . viewFactory import ViewFactory
from . blueprintResourceFactory import BlueprintResourceFactory
| 34
| 63
| 0.882353
| 8
| 102
| 11.25
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098039
| 102
| 2
| 64
| 51
| 0.978261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.5
| 1
| 0
| 1
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.