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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36f07c5998a8f6b400997eacae0b44860312f432
| 9,394
|
py
|
Python
|
StyleText/arch/decoder.py
|
Bourne-M/PaddleOCR
|
865e737413d430798b8c17525dcc22db4d106752
|
[
"Apache-2.0"
] | 20,401
|
2020-05-08T10:56:13.000Z
|
2022-03-31T23:34:38.000Z
|
StyleText/arch/decoder.py
|
Bourne-M/PaddleOCR
|
865e737413d430798b8c17525dcc22db4d106752
|
[
"Apache-2.0"
] | 4,988
|
2020-05-10T08:19:41.000Z
|
2022-03-31T17:57:11.000Z
|
StyleText/arch/decoder.py
|
Bourne-M/PaddleOCR
|
865e737413d430798b8c17525dcc22db4d106752
|
[
"Apache-2.0"
] | 4,479
|
2020-05-08T11:12:13.000Z
|
2022-03-31T11:55:28.000Z
|
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
# 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 paddle
import paddle.nn as nn
from arch.base_module import SNConv, SNConvTranspose, ResBlock
class Decoder(nn.Layer):
def __init__(self, name, encode_dim, out_channels, use_bias, norm_layer,
act, act_attr, conv_block_dropout, conv_block_num,
conv_block_dilation, out_conv_act, out_conv_act_attr):
super(Decoder, self).__init__()
conv_blocks = []
for i in range(conv_block_num):
conv_blocks.append(
ResBlock(
name="{}_conv_block_{}".format(name, i),
channels=encode_dim * 8,
norm_layer=norm_layer,
use_dropout=conv_block_dropout,
use_dilation=conv_block_dilation,
use_bias=use_bias))
self.conv_blocks = nn.Sequential(*conv_blocks)
self._up1 = SNConvTranspose(
name=name + "_up1",
in_channels=encode_dim * 8,
out_channels=encode_dim * 4,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._up2 = SNConvTranspose(
name=name + "_up2",
in_channels=encode_dim * 4,
out_channels=encode_dim * 2,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._up3 = SNConvTranspose(
name=name + "_up3",
in_channels=encode_dim * 2,
out_channels=encode_dim,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._pad2d = paddle.nn.Pad2D([1, 1, 1, 1], mode="replicate")
self._out_conv = SNConv(
name=name + "_out_conv",
in_channels=encode_dim,
out_channels=out_channels,
kernel_size=3,
use_bias=use_bias,
norm_layer=None,
act=out_conv_act,
act_attr=out_conv_act_attr)
def forward(self, x):
if isinstance(x, (list, tuple)):
x = paddle.concat(x, axis=1)
output_dict = dict()
output_dict["conv_blocks"] = self.conv_blocks.forward(x)
output_dict["up1"] = self._up1.forward(output_dict["conv_blocks"])
output_dict["up2"] = self._up2.forward(output_dict["up1"])
output_dict["up3"] = self._up3.forward(output_dict["up2"])
output_dict["pad2d"] = self._pad2d.forward(output_dict["up3"])
output_dict["out_conv"] = self._out_conv.forward(output_dict["pad2d"])
return output_dict
class DecoderUnet(nn.Layer):
def __init__(self, name, encode_dim, out_channels, use_bias, norm_layer,
act, act_attr, conv_block_dropout, conv_block_num,
conv_block_dilation, out_conv_act, out_conv_act_attr):
super(DecoderUnet, self).__init__()
conv_blocks = []
for i in range(conv_block_num):
conv_blocks.append(
ResBlock(
name="{}_conv_block_{}".format(name, i),
channels=encode_dim * 8,
norm_layer=norm_layer,
use_dropout=conv_block_dropout,
use_dilation=conv_block_dilation,
use_bias=use_bias))
self._conv_blocks = nn.Sequential(*conv_blocks)
self._up1 = SNConvTranspose(
name=name + "_up1",
in_channels=encode_dim * 8,
out_channels=encode_dim * 4,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._up2 = SNConvTranspose(
name=name + "_up2",
in_channels=encode_dim * 8,
out_channels=encode_dim * 2,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._up3 = SNConvTranspose(
name=name + "_up3",
in_channels=encode_dim * 4,
out_channels=encode_dim,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._pad2d = paddle.nn.Pad2D([1, 1, 1, 1], mode="replicate")
self._out_conv = SNConv(
name=name + "_out_conv",
in_channels=encode_dim,
out_channels=out_channels,
kernel_size=3,
use_bias=use_bias,
norm_layer=None,
act=out_conv_act,
act_attr=out_conv_act_attr)
def forward(self, x, y, feature2, feature1):
output_dict = dict()
output_dict["conv_blocks"] = self._conv_blocks(
paddle.concat(
(x, y), axis=1))
output_dict["up1"] = self._up1.forward(output_dict["conv_blocks"])
output_dict["up2"] = self._up2.forward(
paddle.concat(
(output_dict["up1"], feature2), axis=1))
output_dict["up3"] = self._up3.forward(
paddle.concat(
(output_dict["up2"], feature1), axis=1))
output_dict["pad2d"] = self._pad2d.forward(output_dict["up3"])
output_dict["out_conv"] = self._out_conv.forward(output_dict["pad2d"])
return output_dict
class SingleDecoder(nn.Layer):
def __init__(self, name, encode_dim, out_channels, use_bias, norm_layer,
act, act_attr, conv_block_dropout, conv_block_num,
conv_block_dilation, out_conv_act, out_conv_act_attr):
super(SingleDecoder, self).__init__()
conv_blocks = []
for i in range(conv_block_num):
conv_blocks.append(
ResBlock(
name="{}_conv_block_{}".format(name, i),
channels=encode_dim * 4,
norm_layer=norm_layer,
use_dropout=conv_block_dropout,
use_dilation=conv_block_dilation,
use_bias=use_bias))
self._conv_blocks = nn.Sequential(*conv_blocks)
self._up1 = SNConvTranspose(
name=name + "_up1",
in_channels=encode_dim * 4,
out_channels=encode_dim * 4,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._up2 = SNConvTranspose(
name=name + "_up2",
in_channels=encode_dim * 8,
out_channels=encode_dim * 2,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._up3 = SNConvTranspose(
name=name + "_up3",
in_channels=encode_dim * 4,
out_channels=encode_dim,
kernel_size=3,
stride=2,
padding=1,
output_padding=1,
use_bias=use_bias,
norm_layer=norm_layer,
act=act,
act_attr=act_attr)
self._pad2d = paddle.nn.Pad2D([1, 1, 1, 1], mode="replicate")
self._out_conv = SNConv(
name=name + "_out_conv",
in_channels=encode_dim,
out_channels=out_channels,
kernel_size=3,
use_bias=use_bias,
norm_layer=None,
act=out_conv_act,
act_attr=out_conv_act_attr)
def forward(self, x, feature2, feature1):
output_dict = dict()
output_dict["conv_blocks"] = self._conv_blocks.forward(x)
output_dict["up1"] = self._up1.forward(output_dict["conv_blocks"])
output_dict["up2"] = self._up2.forward(
paddle.concat(
(output_dict["up1"], feature2), axis=1))
output_dict["up3"] = self._up3.forward(
paddle.concat(
(output_dict["up2"], feature1), axis=1))
output_dict["pad2d"] = self._pad2d.forward(output_dict["up3"])
output_dict["out_conv"] = self._out_conv.forward(output_dict["pad2d"])
return output_dict
| 37.277778
| 78
| 0.561954
| 1,109
| 9,394
| 4.409378
| 0.121731
| 0.079755
| 0.083436
| 0.04908
| 0.856033
| 0.856033
| 0.850511
| 0.850511
| 0.850511
| 0.850102
| 0
| 0.024378
| 0.340643
| 9,394
| 251
| 79
| 37.426295
| 0.765095
| 0.061848
| 0
| 0.899123
| 0
| 0
| 0.035459
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026316
| false
| 0
| 0.013158
| 0
| 0.065789
| 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
|
e9e6c35003716bbe87b3bb5ea9ebd0d206db8edd
| 15,241
|
py
|
Python
|
Lib/test/test_compiler/test_strict/test_definite_assignment.py
|
mananpal1997/cinder
|
a8804cc6e3a5861463ff959abcd09ad60a0763e5
|
[
"CNRI-Python-GPL-Compatible"
] | 1,886
|
2021-05-03T23:58:43.000Z
|
2022-03-31T19:15:58.000Z
|
Lib/test/test_compiler/test_strict/test_definite_assignment.py
|
mananpal1997/cinder
|
a8804cc6e3a5861463ff959abcd09ad60a0763e5
|
[
"CNRI-Python-GPL-Compatible"
] | 70
|
2021-05-04T23:25:35.000Z
|
2022-03-31T18:42:08.000Z
|
Lib/test/test_compiler/test_strict/test_definite_assignment.py
|
mananpal1997/cinder
|
a8804cc6e3a5861463ff959abcd09ad60a0763e5
|
[
"CNRI-Python-GPL-Compatible"
] | 52
|
2021-05-04T21:26:03.000Z
|
2022-03-08T18:02:56.000Z
|
from __future__ import annotations
from textwrap import dedent
from typing import final, Optional, Sequence
from _strictmodule import StrictAnalysisResult, StrictModuleLoader
from .common import StrictTestBase
@final
class DefiniteAssignmentTests(StrictTestBase):
def analyze(
self,
code: str,
mod_name: str = "mod",
import_path: Optional[Sequence[str]] = None,
allow_list_prefix: Optional[Sequence[str]] = None,
stub_root: str = "",
) -> StrictAnalysisResult:
code = dedent(code)
compiler = StrictModuleLoader(
import_path or [], stub_root, allow_list_prefix or [], [], True
)
module = compiler.check_source(code, f"{mod_name}.py", mod_name, [])
return module
def assertNoError(
self,
code: str,
mod_name: str = "mod",
import_path: Optional[Sequence[str]] = None,
allow_list_prefix: Optional[Sequence[str]] = None,
stub_root: str = "",
):
m = self.analyze(code, mod_name, import_path, allow_list_prefix, stub_root)
self.assertEqual(m.is_valid, True)
self.assertEqual(m.errors, [])
def assertError(
self,
code: str,
err: str,
mod_name: str = "mod",
import_path: Optional[Sequence[str]] = None,
allow_list_prefix: Optional[Sequence[str]] = None,
stub_root: str = "",
):
m = self.analyze(code, mod_name, import_path, allow_list_prefix, stub_root)
self.assertEqual(m.is_valid, True)
self.assertTrue(len(m.errors) > 0)
self.assertTrue(err in m.errors[0][0])
def test_simple_not_assigned(self) -> None:
test_exec = """
import __strict__
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_simple_del_not_assigned(self) -> None:
test_exec = """
import __strict__
del abc
"""
self.assertNoError(test_exec)
def test_simple_assign_del_ok(self) -> None:
test_exec = """
import __strict__
abc = 1
del abc
"""
self.assertNoError(test_exec)
def test_simple_assign_double_del(self) -> None:
test_exec = """
import __strict__
abc = 1
del abc
del abc
"""
self.assertNoError(test_exec)
def test_simple_if(self) -> None:
test_exec = """
import __strict__
if False:
abc = 1
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_simple_if_del(self) -> None:
test_exec = """
import __strict__
abc = 1
if True:
del abc
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_simple_if_else(self) -> None:
test_exec = """
import __strict__
if str:
foo = 1
else:
abc = 2
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_simple_if_else_del(self) -> None:
test_exec = """
import __strict__
abc = 1
if str:
pass
else:
del abc
abc + 1
"""
self.assertNoError(test_exec)
def test_simple_if_ok(self) -> None:
test_exec = """
import __strict__
if str:
abc = 1
else:
abc = 2
abc
"""
self.assertNoError(test_exec)
def test_func_dec(self) -> None:
test_exec = """
import __strict__
@abc
def f(x): pass
"""
self.assertError(test_exec, "NameError")
def test_func_self_default(self) -> None:
test_exec = """
import __strict__
def f(x = f()): pass
"""
self.assertError(test_exec, "NameError")
def test_async_func_dec(self) -> None:
test_exec = """
import __strict__
@abc
async def f(x): pass
"""
self.assertError(test_exec, "NameError")
def test_async_func_self_default(self) -> None:
test_exec = """
import __strict__
async def f(x = f()): pass
"""
self.assertError(test_exec, "NameError")
def test_while(self) -> None:
test_exec = """
import __strict__
while False:
abc = 1
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_while_else(self) -> None:
test_exec = """
import __strict__
while False:
abc = 1
else:
abc = 1
abc
"""
self.assertNoError(test_exec)
def test_while_del(self) -> None:
test_exec = """
import __strict__
abc = 1
while str:
del abc
break
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_while_else_del(self) -> None:
test_exec = """
import __strict__
abc = 1
while False:
pass
else:
del abc
x = abc + 1
"""
self.assertError(test_exec, "NameError")
def test_while_del_else(self) -> None:
test_exec = """
import __strict__
abc = 1
x = 1
while x > 0:
del abc
x = x - 1
else:
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_class_defined(self) -> None:
test_exec = """
import __strict__
class C:
pass
C
"""
self.assertNoError(test_exec)
def test_class_defined_with_func(self) -> None:
test_exec = """
import __strict__
class C:
def __init__(self):
pass
C
"""
self.assertNoError(test_exec)
def test_class_scoping(self) -> None:
test_exec = """
import __strict__
class C:
abc = 42
x = abc + 1
"""
self.assertError(test_exec, "NameError")
def test_class_uninit_global_read(self) -> None:
test_exec = """
import __strict__
class C:
x = abc + 1
"""
self.assertError(test_exec, "NameError")
def test_class_uninit_class_read(self) -> None:
test_exec = """
import __strict__
class C:
if str:
abc = 42
abc + 1
"""
self.assertNoError(test_exec)
def test_nested_class_uninit_read(self) -> None:
test_exec = """
import __strict__
class C:
abc = 42
class D:
x = abc + 1
"""
self.assertError(test_exec, "NameError")
def test_class_undef_dec(self) -> None:
test_exec = """
import __strict__
@abc
class C:
pass
"""
self.assertError(test_exec, "NameError")
def test_uninit_aug_assign(self) -> None:
test_exec = """
import __strict__
abc += 1
"""
self.assertError(test_exec, "NameError")
def test_aug_assign(self) -> None:
test_exec = """
import __strict__
abc = 0
abc += 1
"""
self.assertNoError(test_exec)
def test_with_no_assign(self) -> None:
test_exec = """
import __strict__
class A:
def __enter__(self):
pass
def __exit__(self, exc_tp, exc, tb):
pass
with A():
abc = 1
abc + 1
"""
self.assertNoError(test_exec)
def test_with_var(self) -> None:
test_exec = """
import __strict__
class A:
def __enter__(self):
pass
def __exit__(self, exc_tp, exc, tb):
pass
with A() as abc:
pass
abc
"""
self.assertNoError(test_exec)
def test_with_var_destructured(self) -> None:
test_exec = """
import __strict__
class A:
def __enter__(self):
return 1, 3
def __exit__(self, exc_tp, exc, tb):
pass
with A() as (abc, foo):
pass
abc
foo
"""
self.assertNoError(test_exec)
def test_import(self) -> None:
test_exec = """
import __strict__
import abc
abc
"""
self.assertNoError(test_exec)
def test_import_as(self) -> None:
test_exec = """
import __strict__
import foo as abc
abc
"""
self.assertNoError(test_exec)
def test_import_from(self) -> None:
test_exec = """
import __strict__
from foo import abc
abc
"""
self.assertNoError(test_exec)
def test_import_from_as(self) -> None:
test_exec = """
import __strict__
from foo import bar as abc
abc
"""
self.assertNoError(test_exec)
def test_del_in_finally(self) -> None:
test_exec = """
import __strict__
try:
abc = 1
finally:
del abc
"""
self.assertNoError(test_exec)
def test_del_in_finally_2(self) -> None:
test_exec = """
import __strict__
abc = 1
try:
pass
finally:
del abc
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_finally_no_del(self) -> None:
test_exec = """
import __strict__
try:
abc = 1
finally:
pass
abc
"""
self.assertNoError(test_exec)
def test_finally_not_defined(self) -> None:
test_exec = """
import __strict__
try:
abc = 1
finally:
abc + 1
"""
self.assertNoError(test_exec)
def test_try_finally_deletes_apply(self) -> None:
test_exec = """
import __strict__
abc = 1
try:
del abc
finally:
pass
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_try_except_var_defined(self) -> None:
test_exec = """
import __strict__
try:
pass
except Exception as abc:
abc
"""
self.assertNoError(test_exec)
def test_try_except_var_not_defined_after(self) -> None:
test_exec = """
import __strict__
try:
pass
except Exception as abc:
pass
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_try_except_no_try_define(self) -> None:
test_exec = """
import __strict__
try:
abc = 1
except Exception:
pass
abc + 1
"""
self.assertNoError(test_exec)
def test_try_except_no_except_define(self) -> None:
test_exec = """
import __strict__
try:
pass
except Exception:
abc = 1
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_try_except_dels_assumed(self) -> None:
test_exec = """
import __strict__
abc = 1
try:
del abc
except Exception:
pass
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_try_except_dels_assumed_in_except(self) -> None:
test_exec = """
import __strict__
abc = 1
try:
del abc
except Exception:
abc + 1
"""
self.assertNoError(test_exec)
def test_try_except_except_dels_assumed(self) -> None:
test_exec = """
import __strict__
abc = 1
try:
pass
except Exception:
del abc
abc + 1
"""
self.assertNoError(test_exec)
def test_try_except_finally(self) -> None:
test_exec = """
import __strict__
try:
pass
except Exception:
pass
finally:
abc = 1
abc
"""
self.assertNoError(test_exec)
def test_try_except_finally_try_not_assumed(self) -> None:
test_exec = """
import __strict__
try:
abc = 1
except Exception:
pass
finally:
abc + 1
"""
self.assertNoError(test_exec)
def test_try_except_finally_except_not_assumed(self) -> None:
test_exec = """
import __strict__
try:
pass
except Exception:
abc = 1
finally:
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_try_except_else_try_assumed(self) -> None:
test_exec = """
import __strict__
try:
abc = 1
except Exception:
pass
else:
abc
"""
self.assertNoError(test_exec)
def test_try_except_else_try_assumed_del(self) -> None:
test_exec = """
import __strict__
try:
abc = 1
except Exception:
pass
else:
del abc
"""
self.assertNoError(test_exec)
def test_try_except_else_except_not_assumed(self) -> None:
test_exec = """
import __strict__
try:
pass
except Exception:
abc = 1
else:
x = abc + 1
"""
self.assertError(test_exec, "NameError")
def test_try_except_else_except_del_not_assumed(self) -> None:
test_exec = """
import __strict__
abc = 1
try:
pass
except Exception:
del abc
else:
x = abc + 1
"""
self.assertNoError(test_exec)
def test_try_except_else_assign_not_assumed_for_finally(self) -> None:
test_exec = """
import __strict__
try:
pass
except Exception:
pass
else:
abc = 1
finally:
x = abc + 1
"""
self.assertNoError(test_exec)
def test_try_except_finally_del_assumed(self) -> None:
test_exec = """
import __strict__
abc = 1
try:
pass
except Exception:
del abc
finally:
x = abc + 1
"""
self.assertNoError(test_exec)
def test_lambda_not_assigned(self) -> None:
test_exec = """
import __strict__
x = (lambda x=abc + 1: 42)
"""
self.assertError(test_exec, "NameError")
def test_lambda_ok(self) -> None:
test_exec = """
import __strict__
x = lambda x: abc
"""
self.assertNoError(test_exec)
def test_list_comp(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = [x for x in foo]
"""
self.assertNoError(test_exec)
def test_list_comp_undef(self) -> None:
test_exec = """
import __strict__
bar = [x for x in abc]
"""
self.assertError(test_exec, "NameError")
def test_list_comp_if(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = [x for x in foo if x]
"""
self.assertNoError(test_exec)
def test_set_comp(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = {x for x in foo}
"""
self.assertNoError(test_exec)
def test_set_comp_undef(self) -> None:
test_exec = """
import __strict__
bar = {x for x in abc}
"""
self.assertError(test_exec, "NameError")
def test_set_comp_undef_value(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = {(x, abc) for x in foo}
"""
self.assertError(test_exec, "NameError")
def test_set_comp_if(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = {x for x in foo if x}
"""
self.assertNoError(test_exec)
def test_gen_comp(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = (x for x in foo)
"""
self.assertNoError(test_exec)
def test_gen_comp_undef(self) -> None:
test_exec = """
import __strict__
bar = (x for x in abc)
"""
self.assertError(test_exec, "NameError")
def test_gen_comp_undef_value(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = ((x, abc) for x in foo)
"""
self.assertError(test_exec, "NameError")
def test_gen_comp_if(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = (x for x in foo if x)
"""
self.assertNoError(test_exec)
def test_dict_comp(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = {x:x for x in foo}
"""
self.assertNoError(test_exec)
def test_dict_comp_undef(self) -> None:
test_exec = """
import __strict__
bar = {x:x for x in abc}
"""
self.assertError(test_exec, "NameError")
def test_dict_comp_if(self) -> None:
test_exec = """
import __strict__
foo = [1, 2, 3]
bar = {x:x for x in foo if x}
"""
self.assertNoError(test_exec)
def test_self_assign(self) -> None:
test_exec = """
import __strict__
abc = abc + 1
"""
self.assertError(test_exec, "NameError")
def test_ann_assign_not_defined(self) -> None:
test_exec = """
import __strict__
abc: int
abc + 1
"""
self.assertError(test_exec, "NameError")
def test_expected_globals_name(self) -> None:
test_exec = """
import __strict__
x = __name__
"""
self.assertNoError(test_exec)
def test_raise_unreachable(self) -> None:
test_exec = """
import __strict__
x = 0
if x:
raise Exception
abc = 2
else:
abc = 1
abc + 1
"""
self.assertNoError(test_exec)
| 19.122961
| 83
| 0.619513
| 1,995
| 15,241
| 4.341353
| 0.063158
| 0.138552
| 0.103914
| 0.138552
| 0.887311
| 0.882346
| 0.876342
| 0.840781
| 0.765731
| 0.676019
| 0
| 0.010809
| 0.265534
| 15,241
| 796
| 84
| 19.146985
| 0.762909
| 0
| 0
| 0.793696
| 0
| 0
| 0.331606
| 0
| 0
| 0
| 0
| 0
| 0.117479
| 1
| 0.111748
| false
| 0.053009
| 0.13467
| 0
| 0.250716
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
e9f50c86513f441ec8f7d4958e292f7ca21eb385
| 225
|
py
|
Python
|
iris_sdk/models/data/callback_subscription.py
|
NumberAI/python-bandwidth-iris
|
0e05f79d68b244812afb97e00fd65b3f46d00aa3
|
[
"MIT"
] | 2
|
2020-04-13T13:47:59.000Z
|
2022-02-23T20:32:41.000Z
|
iris_sdk/models/data/callback_subscription.py
|
bandwidthcom/python-bandwidth-iris
|
dbcb30569631395041b92917252d913166f7d3c9
|
[
"MIT"
] | 5
|
2020-09-18T20:59:24.000Z
|
2021-08-25T16:51:42.000Z
|
iris_sdk/models/data/callback_subscription.py
|
bandwidthcom/python-bandwidth-iris
|
dbcb30569631395041b92917252d913166f7d3c9
|
[
"MIT"
] | 5
|
2018-12-12T14:39:50.000Z
|
2020-11-17T21:42:29.000Z
|
#!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData
from iris_sdk.models.maps.callback_subscription import CallbackSubscriptionMap
class CallbackSubscription(CallbackSubscriptionMap, BaseData):
pass
| 32.142857
| 78
| 0.853333
| 26
| 225
| 7.230769
| 0.730769
| 0.085106
| 0.117021
| 0.180851
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084444
| 225
| 7
| 79
| 32.142857
| 0.912621
| 0.088889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
180e0e736f98e69f47156de36238071d4b3fe263
| 27,290
|
py
|
Python
|
tests/test_eumetsat.py
|
lweydemann/ascat
|
9c986ba40694a13356c44f403c66d73ccaab83bf
|
[
"MIT"
] | null | null | null |
tests/test_eumetsat.py
|
lweydemann/ascat
|
9c986ba40694a13356c44f403c66d73ccaab83bf
|
[
"MIT"
] | null | null | null |
tests/test_eumetsat.py
|
lweydemann/ascat
|
9c986ba40694a13356c44f403c66d73ccaab83bf
|
[
"MIT"
] | null | null | null |
# Copyright (c) 2020, TU Wien, Department of Geodesy and Geoinformation
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of TU Wien, Department of Geodesy and Geoinformation
# nor the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL TU WIEN DEPARTMENT OF GEODESY AND
# GEOINFORMATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
Test data downloaded from EUMETSAT UMARF
"""
import unittest
import datetime
import numpy as np
import numpy.testing as nptest
import os
import sys
import pytest
from ascat.eumetsat import AscatL2Ssm125
from ascat.eumetsat import AscatL2Ssm125PDU
from ascat.eumetsat import AscatL2Ssm250
from ascat.eumetsat import AscatL2Ssm250PDU
from ascat.eumetsat import AscatL2Ssm125Nc
from ascat.eumetsat import AscatL2Ssm250Nc
@pytest.mark.skipif(sys.platform == 'win32', reason="Does not work on Windows")
class Test_ASCAT_A_L2_SSM_125_BUFR(unittest.TestCase):
def setUp(self):
data_path = os.path.join(os.path.dirname(__file__), 'ascat_test_data',
'eumetsat', 'ASCAT_L2_SM_125', 'bufr')
self.reader_A = AscatL2Ssm125(data_path, 'Metop_A')
self.reader_B = AscatL2Ssm125(data_path, 'Metop_B')
def tearDown(self):
self.reader_A = None
self.reader_B = None
def test_offset_getting(self):
"""
test getting the image offsets for a known day
"""
timestamps = self.reader_A.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 4, 15),
datetime.datetime(2017, 2, 20, 5, 57)]
assert sorted(timestamps) == sorted(timestamps_should)
timestamps = self.reader_B.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 5, 9)]
assert sorted(timestamps) == sorted(timestamps_should)
def test_image_reading(self):
data, meta, timestamp, lons, lats, time_var = self.reader_A.read(
datetime.datetime(2017, 2, 20, 4, 15))
ssm_should = np.array([3., 0., 0., 0., 0., 0., 0., 0., 0., 1.8, 3.3,
4.8, 4.3, 2.5, 0., 3.8, 5.8, 1.5, 2.4, 4.1, 2.3,
2.7, 5.6, 5.5, 4.9])
lats_should = np.array([62.60224, 62.67133, 62.74015, 62.80871, 62.877,
62.94502, 63.01276, 63.08024, 63.14743,
63.21435, 63.28098, 63.34734, 63.41341,
63.47919, 63.54468, 63.60988, 63.67479,
63.7394, 63.80372, 63.86773, 63.93144,
63.99485, 64.05795, 64.12075, 64.18323])
ssm_mean_should = np.array([21.3, 21.3, 21.4, 22.4, 23.4, 24.5, 26.,
27.1, 27., 26.6, 27.1, 27.6, 27.4, 26.7,
26.5, 27.5, 28.2, 28.4, 28.8, 29.2, 30.,
31., 31.3, 31.9, 32.1])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
data, meta, timestamp, lons, lats, time_var = self.reader_B.read(
datetime.datetime(2017, 2, 20, 5, 9))
ssm_should = np.array([29.2, 30.2, 35.7, 38.6, 37.5, 37.6, 40.5, 44.5,
40.7, 39.7, 41.5, 38.8, 34.5, 36.8, 39.4, 41.2,
42.4, 42.9, 39.3, 30.5, 26.7, 26.5, 26.7, 23.9,
26.2])
lats_should = np.array([64.74398, 64.81854, 64.89284, 64.96688,
65.04066, 65.11416, 65.18739, 65.26036,
65.33304, 65.40545, 65.47758, 65.54942,
65.62099, 65.69226, 65.76324, 65.83393,
65.90432, 65.97442, 66.04422, 66.11371,
66.1829, 66.25177, 66.32034, 66.38859,
66.45653])
ssm_mean_should = np.array([36.7, 35.4, 33.4, 32.5, 32.5, 32., 31.2,
29.4, 28.7, 27.6, 25.8, 25.4, 25.5, 25.3,
24.4, 23.4, 22.3, 21.3, 20.4, 20.4, 19.9,
19.7, 20.3, 21.5, 22.9])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
@pytest.mark.skipif(sys.platform == 'win32', reason="Does not work on Windows")
class Test_ASCAT_L2_SSM_125_BUFR_PDU(unittest.TestCase):
def setUp(self):
data_path = os.path.join(os.path.dirname(__file__), 'ascat_test_data',
'eumetsat', 'ASCAT_L2_SM_125', 'PDU')
self.reader_A = AscatL2Ssm125PDU(data_path, 'Metop_A')
self.reader_B = AscatL2Ssm125PDU(data_path, 'Metop_B')
def tearDown(self):
self.reader_A = None
self.reader_B = None
def test_offset_getting(self):
"""
test getting the image offsets for a known day
"""
timestamps = self.reader_A.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 4, 15),
datetime.datetime(2017, 2, 20, 4, 18),
datetime.datetime(2017, 2, 20, 4, 21)]
assert sorted(timestamps) == sorted(timestamps_should)
timestamps = self.reader_B.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 5, 9),
datetime.datetime(2017, 2, 20, 5, 12),
datetime.datetime(2017, 2, 20, 5, 15)]
assert sorted(timestamps) == sorted(timestamps_should)
def test_image_reading(self):
data, meta, timestamp, lons, lats, time_var = self.reader_A.read(
datetime.datetime(2017, 2, 20, 4, 15))
ssm_should = np.array([3., 0., 0., 0., 0., 0., 0., 0., 0., 1.8, 3.3,
4.8, 4.3, 2.5, 0., 3.8, 5.8, 1.5, 2.4, 4.1, 2.3,
2.7, 5.6, 5.5, 4.9])
lats_should = np.array([62.60224, 62.67133, 62.74015, 62.80871, 62.877,
62.94502, 63.01276, 63.08024, 63.14743,
63.21435, 63.28098, 63.34734, 63.41341,
63.47919, 63.54468, 63.60988, 63.67479,
63.7394, 63.80372, 63.86773, 63.93144,
63.99485, 64.05795, 64.12075, 64.18323])
ssm_mean_should = np.array([21.3, 21.3, 21.4, 22.4, 23.4, 24.5, 26.,
27.1, 27., 26.6, 27.1, 27.6, 27.4, 26.7,
26.5, 27.5, 28.2, 28.4, 28.8, 29.2, 30.,
31., 31.3, 31.9, 32.1])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
data, meta, timestamp, lons, lats, time_var = self.reader_B.read(
datetime.datetime(2017, 2, 20, 5, 9))
ssm_should = np.array([29.2, 30.2, 35.7, 38.6, 37.5, 37.6, 40.5, 44.5,
40.7, 39.7, 41.5, 38.8, 34.5, 36.8, 39.4, 41.2,
42.4, 42.9, 39.3, 30.5, 26.7, 26.5, 26.7, 23.9,
26.2])
lats_should = np.array([64.74398, 64.81854, 64.89284, 64.96688,
65.04066, 65.11416, 65.18739, 65.26036,
65.33304, 65.40545, 65.47758, 65.54942,
65.62099, 65.69226, 65.76324, 65.83393,
65.90432, 65.97442, 66.04422, 66.11371,
66.1829, 66.25177, 66.32034, 66.38859,
66.45653])
ssm_mean_should = np.array([36.7, 35.4, 33.4, 32.5, 32.5, 32., 31.2,
29.4, 28.7, 27.6, 25.8, 25.4, 25.5, 25.3,
24.4, 23.4, 22.3, 21.3, 20.4, 20.4, 19.9,
19.7, 20.3, 21.5, 22.9])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
@pytest.mark.skipif(sys.platform == 'win32', reason="Does not work on Windows")
class Test_ASCAT_L2_SSM_250_BUFR(unittest.TestCase):
def setUp(self):
data_path = os.path.join(os.path.dirname(__file__), 'ascat_test_data',
'eumetsat', 'ASCAT_L2_SM_250', 'bufr')
self.reader_A = AscatL2Ssm250(data_path, 'Metop_A')
self.reader_B = AscatL2Ssm250(data_path, 'Metop_B')
def tearDown(self):
self.reader_A = None
self.reader_B = None
def test_offset_getting(self):
"""
test getting the image offsets for a known day
"""
timestamps = self.reader_A.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 4, 15),
datetime.datetime(2017, 2, 20, 5, 57)]
assert sorted(timestamps) == sorted(timestamps_should)
timestamps = self.reader_B.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 5, 9)]
assert sorted(timestamps) == sorted(timestamps_should)
def test_image_reading(self):
data, meta, timestamp, lons, lats, time_var = self.reader_A.read(
datetime.datetime(2017, 2, 20, 4, 15))
ssm_should = np.array([1.8, 0., 0., 0., 0., 4.6, 2.8, 4., 4.1, 4.2,
4.7, 5.4, 7.1, 7.1, 8.2, 9.2, 14.5, 15.4, 14.3,
17.7, 25.5, 36.9, 37.8, 39.4, 24.1])
lats_should = np.array([62.60224, 62.74015, 62.877, 63.01276,
63.14743, 63.28098, 63.41341, 63.54468,
63.67479, 63.80372, 63.93144, 64.05795,
64.18323, 64.30725, 64.42999, 64.55145,
64.6716, 64.79042, 64.9079, 65.02401,
65.13873, 67.85438, 67.91597, 67.97556,
68.03314])
ssm_mean_should = np.array([21.3, 21.4, 23.4, 26., 27., 27.1, 27.4,
26.5, 28.2, 28.8, 30., 31.3, 32.1, 30.6,
27.8, 28.9, 29.5, 32.1, 33.8, 32.9, 28.9,
41.1, 40.8, 34.4, 31.])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
data, meta, timestamp, lons, lats, time_var = self.reader_B.read(
datetime.datetime(2017, 2, 20, 5, 9))
ssm_should = np.array([28.8, 31., 35.8, 38.7, 39.3, 38.9, 39.6, 40.7,
40.9, 35.5, 28.7, 25.2, 25.8, 27.2, 26.3, 29.1,
30., 27.1, 25.5, 23.9, 25.7, 44.9, 38.7, 36.7,
40.6])
lats_should = np.array([64.74398, 64.89284, 65.04066, 65.18739,
65.33304, 65.47758, 65.62099, 65.76324,
65.90432, 66.04422, 66.1829, 66.32034,
66.45653, 66.59144, 66.72505, 66.85734,
66.98829, 67.11787, 67.24605, 67.37283,
67.49816, 70.48423, 70.55154, 70.61658,
70.67934])
ssm_mean_should = np.array([36.7, 33.4, 32.5, 31.2, 28.7, 25.8, 25.5,
24.4, 22.3, 20.4, 19.9, 20.3, 22.9, 23.7,
23.5, 22.2, 22.2, 22.4, 25.3, 27.8, 27.7,
30.7, 30.7, 31.6, 33.6])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
pytest.mark.skipif(sys.platform == 'win32', reason="Does not work on Windows")
class Test_ASCAT_L2_SSM_250_BUFR_PDU(unittest.TestCase):
def setUp(self):
data_path = os.path.join(os.path.dirname(__file__), 'ascat_test_data',
'eumetsat', 'ASCAT_L2_SM_250', 'PDU')
self.reader_A = AscatL2Ssm250PDU(data_path, 'Metop_A')
self.reader_B = AscatL2Ssm250PDU(data_path, 'Metop_B')
def tearDown(self):
self.reader_A = None
self.reader_B = None
def test_offset_getting(self):
"""
test getting the image offsets for a known day
"""
timestamps = self.reader_A.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 4, 15),
datetime.datetime(2017, 2, 20, 4, 18),
datetime.datetime(2017, 2, 20, 4, 21)]
assert sorted(timestamps) == sorted(timestamps_should)
def test_image_reading(self):
data, meta, timestamp, lons, lats, time_var = self.reader_A.read(
datetime.datetime(2017, 2, 20, 4, 15))
ssm_should = np.array([1.8, 0., 0., 0., 0., 4.6, 2.8, 4., 4.1, 4.2,
4.7, 5.4, 7.1, 7.1, 8.2, 9.2, 14.5, 15.4, 14.3,
17.7, 25.5, 36.9, 37.8, 39.4, 24.1])
lats_should = np.array([62.60224, 62.74015, 62.877, 63.01276,
63.14743, 63.28098, 63.41341, 63.54468,
63.67479, 63.80372, 63.93144, 64.05795,
64.18323, 64.30725, 64.42999, 64.55145,
64.6716, 64.79042, 64.9079, 65.02401,
65.13873, 67.85438, 67.91597, 67.97556,
68.03314])
ssm_mean_should = np.array([21.3, 21.4, 23.4, 26., 27., 27.1, 27.4,
26.5, 28.2, 28.8, 30., 31.3, 32.1, 30.6,
27.8, 28.9, 29.5, 32.1, 33.8, 32.9, 28.9,
41.1, 40.8, 34.4, 31.])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
data, meta, timestamp, lons, lats, time_var = self.reader_B.read(
datetime.datetime(2017, 2, 20, 5, 9))
ssm_should = np.array([28.8, 31., 35.8, 38.7, 39.3, 38.9, 39.6, 40.7,
40.9, 35.5, 28.7, 25.2, 25.8, 27.2, 26.3, 29.1,
30., 27.1, 25.5, 23.9, 25.7, 44.9, 38.7, 36.7,
40.6])
lats_should = np.array([64.74398, 64.89284, 65.04066, 65.18739,
65.33304, 65.47758, 65.62099, 65.76324,
65.90432, 66.04422, 66.1829, 66.32034,
66.45653, 66.59144, 66.72505, 66.85734,
66.98829, 67.11787, 67.24605, 67.37283,
67.49816, 70.48423, 70.55154, 70.61658,
70.67934])
ssm_mean_should = np.array([36.7, 33.4, 32.5, 31.2, 28.7, 25.8, 25.5,
24.4, 22.3, 20.4, 19.9, 20.3, 22.9, 23.7,
23.5, 22.2, 22.2, 22.4, 25.3, 27.8, 27.7,
30.7, 30.7, 31.6, 33.6])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['Surface Soil Moisture (Ms)'][
:25], ssm_should, atol=0.01)
nptest.assert_allclose(data['Mean Surface Soil Moisture'][:25],
ssm_mean_should,
atol=0.01)
class Test_ASCAT_L2_SSM_125_NC(unittest.TestCase):
def setUp(self):
data_path = os.path.join(os.path.dirname(__file__), 'ascat_test_data',
'eumetsat', 'ASCAT_L2_SM_125', 'nc')
self.reader_A = AscatL2Ssm125Nc(data_path, 'Metop_A')
self.reader_B = AscatL2Ssm125Nc(data_path, 'Metop_B')
def tearDown(self):
self.reader_A = None
self.reader_B = None
def test_offset_getting(self):
"""
test getting the image offsets for a known day
"""
timestamps = self.reader_A.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 4, 15),
datetime.datetime(2017, 2, 20, 5, 57)]
assert sorted(timestamps) == sorted(timestamps_should)
timestamps = self.reader_B.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 5, 9)]
assert sorted(timestamps) == sorted(timestamps_should)
def test_image_reading(self):
data, meta, timestamp, lons, lats, time_var = self.reader_A.read(
datetime.datetime(2017, 2, 20, 4, 15))
ssm_should = np.array([3., 0., 0., 0., 0., 0., 0., 0., 0., 1.8, 3.3,
4.8, 4.3, 2.5, 0., 3.8, 5.8, 1.5, 2.4, 4.1, 2.3,
2.7, 5.6, 5.5, 4.9])
lats_should = np.array([62.60224, 62.67133, 62.74015, 62.80871, 62.877,
62.94502, 63.01276, 63.08024, 63.14743,
63.21435, 63.28098, 63.34734, 63.41341,
63.47919, 63.54468, 63.60988, 63.67479,
63.7394, 63.80372, 63.86773, 63.93144,
63.99485, 64.05795, 64.12075, 64.18323])
ssm_mean_should = np.array([21.3, 21.3, 21.4, 22.4, 23.4, 24.5, 26.,
27.1, 27., 26.6, 27.1, 27.6, 27.4, 26.7,
26.5, 27.5, 28.2, 28.4, 28.8, 29.2, 30.,
31., 31.3, 31.9, 32.1])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['soil_moisture'][
:25], ssm_should, atol=0.1)
nptest.assert_allclose(data['mean_soil_moisture'][:25],
ssm_mean_should,
atol=0.1)
data, meta, timestamp, lons, lats, time_var = self.reader_B.read(
datetime.datetime(2017, 2, 20, 5, 9))
ssm_should = np.array([29.2, 30.2, 35.7, 38.6, 37.5, 37.6, 40.5, 44.5,
40.7, 39.7, 41.5, 38.8, 34.5, 36.8, 39.4, 41.2,
42.4, 42.9, 39.3, 30.5, 26.7, 26.5, 26.7, 23.9,
26.2])
lats_should = np.array([64.74398, 64.81854, 64.89284, 64.96688,
65.04066, 65.11416, 65.18739, 65.26036,
65.33304, 65.40545, 65.47758, 65.54942,
65.62099, 65.69226, 65.76324, 65.83393,
65.90432, 65.97442, 66.04422, 66.11371,
66.1829, 66.25177, 66.32034, 66.38859,
66.45653])
ssm_mean_should = np.array([36.7, 35.4, 33.4, 32.5, 32.5, 32., 31.2,
29.4, 28.7, 27.6, 25.8, 25.4, 25.5, 25.3,
24.4, 23.4, 22.3, 21.3, 20.4, 20.4, 19.9,
19.7, 20.3, 21.5, 22.9])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['soil_moisture'][
:25], ssm_should, atol=0.1)
nptest.assert_allclose(data['mean_soil_moisture'][:25],
ssm_mean_should,
atol=0.1)
class Test_ASCAT_L2_SSM_250_NC(unittest.TestCase):
def setUp(self):
data_path = os.path.join(os.path.dirname(__file__), 'ascat_test_data',
'eumetsat', 'ASCAT_L2_SM_250', 'nc')
self.reader_A = AscatL2Ssm250Nc(data_path, 'Metop_A')
self.reader_B = AscatL2Ssm250Nc(data_path, 'Metop_B')
def tearDown(self):
self.reader_A = None
self.reader_B = None
def test_offset_getting(self):
"""
test getting the image offsets for a known day
"""
timestamps = self.reader_A.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 4, 15),
datetime.datetime(2017, 2, 20, 5, 57)]
assert sorted(timestamps) == sorted(timestamps_should)
timestamps = self.reader_B.tstamps_for_daterange(
datetime.datetime(2017, 2, 20), datetime.datetime(2017, 2, 21))
timestamps_should = [datetime.datetime(2017, 2, 20, 5, 9)]
assert sorted(timestamps) == sorted(timestamps_should)
def test_image_reading(self):
data, meta, timestamp, lons, lats, time_var = self.reader_A.read(
datetime.datetime(2017, 2, 20, 4, 15))
ssm_should = np.array([1.8, 0., 0., 0., 0., 4.6, 2.8, 4., 4.1, 4.2,
4.7, 5.4, 7.1, 7.1, 8.2, 9.2, 14.5, 15.4, 14.3,
17.7, 25.5, 36.9, 37.8, 39.4, 24.1])
lats_should = np.array([62.60224, 62.74015, 62.877, 63.01276,
63.14743, 63.28098, 63.41341, 63.54468,
63.67479, 63.80372, 63.93144, 64.05795,
64.18323, 64.30725, 64.42999, 64.55145,
64.6716, 64.79042, 64.9079, 65.02401,
65.13873, 67.85438, 67.91597, 67.97556,
68.03314])
ssm_mean_should = np.array([21.3, 21.4, 23.4, 26., 27., 27.1, 27.4,
26.5, 28.2, 28.8, 30., 31.3, 32.1, 30.6,
27.8, 28.9, 29.5, 32.1, 33.8, 32.9, 28.9,
41.1, 40.8, 34.4, 31.])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['soil_moisture'][
:25], ssm_should, atol=0.1)
nptest.assert_allclose(data['mean_soil_moisture'][:25],
ssm_mean_should,
atol=0.1)
data, meta, timestamp, lons, lats, time_var = self.reader_B.read(
datetime.datetime(2017, 2, 20, 5, 9))
ssm_should = np.array([28.8, 31., 35.8, 38.7, 39.3, 38.9, 39.6, 40.7,
40.9, 35.5, 28.7, 25.2, 25.8, 27.2, 26.3, 29.1,
30., 27.1, 25.5, 23.9, 25.7, 44.9, 38.7, 36.7,
40.6])
lats_should = np.array([64.74398, 64.89284, 65.04066, 65.18739,
65.33304, 65.47758, 65.62099, 65.76324,
65.90432, 66.04422, 66.1829, 66.32034,
66.45653, 66.59144, 66.72505, 66.85734,
66.98829, 67.11787, 67.24605, 67.37283,
67.49816, 70.48423, 70.55154, 70.61658,
70.67934])
ssm_mean_should = np.array([36.7, 33.4, 32.5, 31.2, 28.7, 25.8, 25.5,
24.4, 22.3, 20.4, 19.9, 20.3, 22.9, 23.7,
23.5, 22.2, 22.2, 22.4, 25.3, 27.8, 27.7,
30.7, 30.7, 31.6, 33.6])
nptest.assert_allclose(lats[:25], lats_should, atol=1e-5)
nptest.assert_allclose(data['soil_moisture'][
:25], ssm_should, atol=0.1)
nptest.assert_allclose(data['mean_soil_moisture'][:25],
ssm_mean_should,
atol=0.1)
if __name__ == '__main__':
unittest.main()
| 49.082734
| 79
| 0.5
| 3,772
| 27,290
| 3.51246
| 0.087752
| 0.06642
| 0.083025
| 0.087176
| 0.877878
| 0.874255
| 0.867084
| 0.846253
| 0.846253
| 0.846253
| 0
| 0.257322
| 0.368157
| 27,290
| 555
| 80
| 49.171171
| 0.511048
| 0.070172
| 0
| 0.894089
| 0
| 0
| 0.039435
| 0
| 0
| 0
| 0
| 0
| 0.115764
| 1
| 0.059113
| false
| 0
| 0.03202
| 0
| 0.105911
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 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
|
1817a214929049087140382732ec2d9deeb07079
| 4,160
|
py
|
Python
|
dn/models.py
|
skyydq/GreaterWMS
|
e14014a73b36ec0f0df03712a229b0931cb388fb
|
[
"Apache-2.0"
] | 2
|
2021-11-09T10:29:44.000Z
|
2021-11-15T08:03:40.000Z
|
dn/models.py
|
ashrafali46/GreaterWMS
|
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
|
[
"Apache-2.0"
] | null | null | null |
dn/models.py
|
ashrafali46/GreaterWMS
|
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
|
[
"Apache-2.0"
] | null | null | null |
from django.db import models
class DnListModel(models.Model):
dn_code = models.CharField(max_length=255, verbose_name="DN Code")
dn_status = models.BigIntegerField(default=1, verbose_name="DN Status")
total_weight = models.FloatField(default=0, verbose_name="Total Weight")
total_volume = models.FloatField(default=0, verbose_name="Total Volume")
customer = models.CharField(max_length=255, verbose_name="DN Customer")
creater = models.CharField(max_length=255, verbose_name="Who Created")
back_order_label = models.BooleanField(default=False, verbose_name='Back Order Label')
openid = models.CharField(max_length=255, verbose_name="Openid")
transportation_fee = models.JSONField(default=dict, verbose_name="Transportation Fee")
is_delete = models.BooleanField(default=False, verbose_name='Delete Label')
create_time = models.DateTimeField(auto_now_add=True, verbose_name="Create Time")
update_time = models.DateTimeField(auto_now=True, blank=True, null=True, verbose_name="Update Time")
class Meta:
db_table = 'dnlist'
verbose_name = 'data id'
verbose_name_plural = "data id"
ordering = ['-id']
def __str__(self):
return self.pk
class DnDetailModel(models.Model):
dn_code = models.CharField(max_length=255, verbose_name="DN Code")
dn_status = models.BigIntegerField(default=1, verbose_name="DN Status")
customer = models.CharField(max_length=255, verbose_name="DN Customer")
goods_code = models.CharField(max_length=255, verbose_name="Goods Code")
goods_qty = models.BigIntegerField(default=0, verbose_name="Goods QTY")
pick_qty = models.BigIntegerField(default=0, verbose_name="Goods Pre Pick QTY")
picked_qty = models.BigIntegerField(default=0, verbose_name="Goods Picked QTY")
intransit_qty = models.BigIntegerField(default=0, verbose_name="Intransit QTY")
delivery_actual_qty = models.BigIntegerField(default=0, verbose_name="Delivery Actual QTY")
delivery_shortage_qty = models.BigIntegerField(default=0, verbose_name="Delivery Shortage QTY")
delivery_more_qty = models.BigIntegerField(default=0, verbose_name="Delivery More QTY")
delivery_damage_qty = models.BigIntegerField(default=0, verbose_name="Delivery More QTY")
goods_weight = models.FloatField(default=0, verbose_name="Goods Weight")
goods_volume = models.FloatField(default=0, verbose_name="Goods Volume")
creater = models.CharField(max_length=11, verbose_name="Who Created")
back_order_label = models.BooleanField(default=False, verbose_name='Back Order Label')
openid = models.CharField(max_length=255, verbose_name="Openid")
is_delete = models.BooleanField(default=False, verbose_name='Delete Label')
create_time = models.DateTimeField(auto_now_add=True, verbose_name="Create Time")
update_time = models.DateTimeField(auto_now=True, blank=True, null=True, verbose_name="Update Time")
class Meta:
db_table = 'dndetail'
verbose_name = 'data id'
verbose_name_plural = "data id"
ordering = ['-id']
def __str__(self):
return self.pk
class PickingListModel(models.Model):
dn_code = models.CharField(max_length=255, verbose_name="DN Code")
bin_name = models.CharField(max_length=255, verbose_name="Bin Name")
goods_code = models.CharField(max_length=255, verbose_name="Goods Code")
pick_qty = models.BigIntegerField(default=0, verbose_name="Goods Pre Pick QTY")
picked_qty = models.BigIntegerField(default=0, verbose_name="Picked QTY")
creater = models.CharField(max_length=11, verbose_name="Who Created")
t_code = models.CharField(max_length=255, verbose_name="Transaction Code")
openid = models.CharField(max_length=255, verbose_name="Openid")
create_time = models.DateTimeField(auto_now_add=True, verbose_name="Create Time")
update_time = models.DateTimeField(auto_now=True, blank=True, null=True, verbose_name="Update Time")
class Meta:
db_table = 'pickinglist'
verbose_name = 'data id'
verbose_name_plural = "data id"
ordering = ['-id']
def __str__(self):
return self.pk
| 54.025974
| 104
| 0.740865
| 545
| 4,160
| 5.416514
| 0.150459
| 0.178862
| 0.091463
| 0.121951
| 0.877371
| 0.875
| 0.875
| 0.776084
| 0.70935
| 0.692412
| 0
| 0.016643
| 0.147837
| 4,160
| 76
| 105
| 54.736842
| 0.816079
| 0
| 0
| 0.656716
| 0
| 0
| 0.138942
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.044776
| false
| 0
| 0.014925
| 0.044776
| 0.820896
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
18243e36888a01556892c699aef7038d5fbbb007
| 7,907
|
py
|
Python
|
3rd_party_software/pyca/Code/Python/Numpy/FiniteDiff.py
|
ninamiolane/quicksilver
|
1baf251360dadea0afa3daaa09942d9d2d7c71fb
|
[
"Apache-2.0"
] | 126
|
2017-04-06T03:19:03.000Z
|
2022-03-08T07:44:09.000Z
|
3rd_party_software/pyca/Code/Python/Numpy/FiniteDiff.py
|
ninamiolane/quicksilver
|
1baf251360dadea0afa3daaa09942d9d2d7c71fb
|
[
"Apache-2.0"
] | 7
|
2017-09-22T01:46:04.000Z
|
2021-04-29T07:22:44.000Z
|
3rd_party_software/pyca/Code/Python/Numpy/FiniteDiff.py
|
ninamiolane/quicksilver
|
1baf251360dadea0afa3daaa09942d9d2d7c71fb
|
[
"Apache-2.0"
] | 37
|
2017-04-03T17:14:44.000Z
|
2022-03-09T16:00:03.000Z
|
"""
Finite differences implemented in numpy. Meant as reference
implementation to test PyCA functions against, not as optimized
implementations.
"""
import numpy as np
from PyCA.Core import Vec3Df
# need constants from PyCA
from PyCA.Core import DIM_X, DIM_Y, DIM_Z
from PyCA.Core import DIFF_FORWARD, DIFF_BACKWARD, DIFF_CENTRAL
from PyCA.Core import BC_APPROX, BC_CLAMP, BC_WRAP
#
# Numpy finite difference implementation to test against
#
def FiniteDiff(arr, dim, diffType, bc, sp=Vec3Df(1.0, 1.0, 1.0)):
diff = np.zeros(arr.shape)
if dim == DIM_X:
if diffType == DIFF_FORWARD:
diff[:-1,:] = (arr[1:,:]-arr[:-1,:])/sp.x
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
diff[-1,:] = (arr[0,:]-arr[-1,:])/sp.x
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_BACKWARD:
diff[1:,:] = (arr[1:,:]-arr[:-1,:])/sp.x
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
diff[0,:] = (arr[0,:]-arr[-1,:])/sp.x
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_CENTRAL:
diff[1:-1,:] = (arr[2:,:]-arr[:-2,:])/(2.0*sp.x)
if bc == BC_APPROX:
diff[0,:] = (arr[1,:]-arr[0,:])/sp.x
diff[-1,:] = (arr[-1,:]-arr[-2,:])/sp.x
elif bc == BC_CLAMP:
diff[0,:] = (arr[1,:]-arr[0,:])/(2.0*sp.x)
diff[-1,:] = (arr[-1,:]-arr[-2,:])/(2.0*sp.x)
elif bc == BC_WRAP:
diff[0,:] = (arr[1,:]-arr[-1,:])/(2.0*sp.x)
diff[-1,:] = (arr[0,:]-arr[-2,:])/(2.0*sp.x)
else:
raise Exception('Unknwn diff type')
elif dim == DIM_Y:
if diffType == DIFF_FORWARD:
diff[:,:-1] = (arr[:,1:]-arr[:,:-1])/sp.y
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
diff[:,-1] = (arr[:,0]-arr[:,-1])/sp.y
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_BACKWARD:
diff[:,1:] = (arr[:,1:]-arr[:,:-1])/sp.y
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
diff[:,0] = (arr[:,0]-arr[:,-1])/sp.y
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_CENTRAL:
diff[:,1:-1] = (arr[:,2:]-arr[:,:-2])/(2.0*sp.y)
if bc == BC_APPROX:
diff[:,0] = (arr[:,1]-arr[:,0])/sp.y
diff[:,-1] = (arr[:,-1]-arr[:,-2])/sp.y
elif bc == BC_CLAMP:
diff[:,0] = (arr[:,1]-arr[:,0])/(2.0*sp.y)
diff[:,-1] = (arr[:,-1]-arr[:,-2])/(2.0*sp.y)
elif bc == BC_WRAP:
diff[:,0] = (arr[:,1]-arr[:,-1])/(2.0*sp.y)
diff[:,-1] = (arr[:,0]-arr[:,-2])/(2.0*sp.y)
else:
raise Exception('Unknwn diff type')
elif dim == DIM_Z:
raise Exception('DIM_Z unimplemented')
else:
raise Exception('Unknwn dimension')
return diff
# end FiniteDiff
#
# Numpy finite difference implementation to test against
#
def Grad(arr, diffType, bc, sp=Vec3Df(1.0, 1.0, 1.0)):
dx = FiniteDiff(arr, DIM_X, diffType, bc, sp)
dy = FiniteDiff(arr, DIM_Y, diffType, bc, sp)
g = np.concatenate((np.atleast_3d(dx), np.atleast_3d(dy)),axis=2)
return g
#
# Numpy implementation of 2D jacobian determinant
#
def JacDet(varr, diffType, bc, sp=Vec3Df(1.0, 1.0, 1.0)):
gx = Grad(varr[:,:,0], diffType, bc, sp)
gy = Grad(varr[:,:,1], diffType, bc, sp)
jacDet = gx[:,:,0]*gy[:,:,1] - gx[:,:,1]*gy[:,:,0]
return jacDet
#
# Numpy masked finite difference implementation to test against
#
def FiniteDiffMask(arr, mask, dim, diffType, bc, sp=Vec3Df(1.0, 1.0, 1.0)):
diff = np.zeros(arr.shape)
if dim == DIM_X:
if diffType == DIFF_FORWARD:
v = arr[:-1,:]
vn = arr[1:,:].copy()
vn[mask[1:,:] == 0] = v[mask[1:,:]==0]
vp = arr[:-1,:]
diff[:-1,:] = (vn-vp)/sp.x
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
raise Exception('wrap bc unimplemented for masked fd')
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_BACKWARD:
v = arr[1:,:]
vn = arr[1:,:]
vp = arr[:-1,:].copy()
vp[mask[:-1,:] == 0] = v[mask[:-1,:] == 0]
diff[1:,:] = (vn-vp)/sp.x
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
raise Exception('wrap bc unimplemented for masked fd')
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_CENTRAL:
v = arr[1:-1,:]
vn = arr[2:,:].copy()
vn[mask[2:,:] == 0] = v[mask[2:,:] == 0]
vp = arr[:-2,:].copy()
vp[mask[:-2,:] == 0] = v[mask[:-2,:] == 0]
if bc == BC_APPROX:
diff[1:-1,:] = (vn-vp)/(sp.x)
elif bc == BC_CLAMP:
diff[1:-1,:] = (vn-vp)/(2.0*sp.x)
elif bc == BC_WRAP:
raise Exception('wrap bc unimplemented for masked fd')
else:
raise Exception('Unknwn diff type')
elif dim == DIM_Y:
if diffType == DIFF_FORWARD:
v = arr[:,:-1]
vn = arr[:,1:].copy()
vn[mask[:,1:] == 0] = v[mask[:,1:] == 0]
vp = arr[:,:-1]
diff[:,:-1] = (vn-vp)/sp.y
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
raise Exception('wrap bc unimplemented for masked fd')
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_BACKWARD:
v = arr[:,1:]
vn = arr[:,1:]
vp = arr[:,:-1].copy()
vp[mask[:,:-1] == 0] = v[mask[:,:-1] == 0]
diff[:,1:] = (vn-vp)/sp.y
if bc == BC_APPROX:
pass
elif bc == BC_CLAMP:
pass
elif bc == BC_WRAP:
raise Exception('wrap bc unimplemented for masked fd')
else:
raise Exception('Unknwn boundary condition')
elif diffType == DIFF_CENTRAL:
v = arr[:,1:-1]
vn = arr[:,2:].copy()
vn[mask[:,2:] == 0] = v[mask[:,2:] == 0]
vp = arr[:,:-2].copy()
vp[mask[:,:-2] == 0] = v[mask[:,:-2] == 0]
if bc == BC_APPROX:
diff[:,1:-1] = (vn-vp)/(sp.y)
elif bc == BC_CLAMP:
diff[:,1:-1] = (vn-vp)/(2.0*sp.y)
elif bc == BC_WRAP:
raise Exception('wrap bc unimplemented for masked fd')
else:
raise Exception('Unknwn diff type')
elif dim == DIM_Z:
raise Exception('DIM_Z unimplemented')
else:
raise Exception('Unknwn dimension')
diff[mask == 0] = 0
return diff
#
# Numpy masked gradient finite difference implementation to test
# against
#
def GradMask(arr, mask, diffType, bc, sp=Vec3Df(1.0, 1.0, 1.0)):
dx = FiniteDiffMask(arr, mask, DIM_X, diffType, bc, sp)
dy = FiniteDiffMask(arr, mask, DIM_Y, diffType, bc, sp)
g = np.concatenate((np.atleast_3d(dx), np.atleast_3d(dy)),axis=2)
return g
| 35.142222
| 75
| 0.462881
| 1,030
| 7,907
| 3.482524
| 0.085437
| 0.042375
| 0.053527
| 0.053527
| 0.824645
| 0.824645
| 0.813493
| 0.785057
| 0.755506
| 0.728185
| 0
| 0.040925
| 0.360314
| 7,907
| 224
| 76
| 35.299107
| 0.668248
| 0.05982
| 0
| 0.603175
| 0
| 0
| 0.073434
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026455
| false
| 0.084656
| 0.026455
| 0
| 0.079365
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
a1139cd5ffa2cbd5cede1a8f922c306e674fba1d
| 142
|
py
|
Python
|
invoke_based/tasks/__init__.py
|
netpyoung/nf.task-flow
|
1b8beb231e310d35848326b89944761f2919450a
|
[
"MIT"
] | null | null | null |
invoke_based/tasks/__init__.py
|
netpyoung/nf.task-flow
|
1b8beb231e310d35848326b89944761f2919450a
|
[
"MIT"
] | null | null | null |
invoke_based/tasks/__init__.py
|
netpyoung/nf.task-flow
|
1b8beb231e310d35848326b89944761f2919450a
|
[
"MIT"
] | null | null | null |
# http://docs.pyinvoke.org/en/latest/index.htlm
from .task_build_and import *
from .task_update_db import *
from .task_build_protoc import *
| 23.666667
| 47
| 0.78169
| 23
| 142
| 4.565217
| 0.695652
| 0.228571
| 0.247619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105634
| 142
| 5
| 48
| 28.4
| 0.826772
| 0.316901
| 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
|
a1327914306d0dbb1442c603e577d3f52910eaad
| 303
|
bzl
|
Python
|
tools/build_defs/android/rules.bzl
|
0xflotus/arcs
|
13614f1086f5bdcb973c6c6c9b28a49e4048a6a4
|
[
"BSD-Source-Code"
] | 57
|
2017-05-17T02:27:13.000Z
|
2022-03-24T07:45:39.000Z
|
tools/build_defs/android/rules.bzl
|
0xflotus/arcs
|
13614f1086f5bdcb973c6c6c9b28a49e4048a6a4
|
[
"BSD-Source-Code"
] | 2,687
|
2017-04-28T01:25:03.000Z
|
2022-01-07T13:51:39.000Z
|
tools/build_defs/android/rules.bzl
|
0xflotus/arcs
|
13614f1086f5bdcb973c6c6c9b28a49e4048a6a4
|
[
"BSD-Source-Code"
] | 52
|
2017-04-28T00:06:50.000Z
|
2021-08-29T05:36:06.000Z
|
load(
"@build_bazel_rules_android//android:rules.bzl",
_android_binary = "android_binary",
_android_library = "android_library",
_android_local_test = "android_local_test",
)
android_binary = _android_binary
android_library = _android_library
android_local_test = _android_local_test
| 23.307692
| 52
| 0.785479
| 36
| 303
| 5.916667
| 0.277778
| 0.244131
| 0.375587
| 0.323944
| 0.807512
| 0.807512
| 0.807512
| 0.807512
| 0.807512
| 0.807512
| 0
| 0
| 0.132013
| 303
| 12
| 53
| 25.25
| 0.809886
| 0
| 0
| 0
| 0
| 0
| 0.30363
| 0.148515
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
|
a15a1ad560707da77fd329746a316f5337690074
| 145
|
py
|
Python
|
two_qubit_simulator/quantum_gates/phase_gate.py
|
maggiecorrigan/two-qubit-simulator
|
b4fbf88dfefcac135ac08303af3e6e57f33a0cf4
|
[
"MIT"
] | null | null | null |
two_qubit_simulator/quantum_gates/phase_gate.py
|
maggiecorrigan/two-qubit-simulator
|
b4fbf88dfefcac135ac08303af3e6e57f33a0cf4
|
[
"MIT"
] | null | null | null |
two_qubit_simulator/quantum_gates/phase_gate.py
|
maggiecorrigan/two-qubit-simulator
|
b4fbf88dfefcac135ac08303af3e6e57f33a0cf4
|
[
"MIT"
] | 22
|
2019-01-30T02:49:42.000Z
|
2020-04-04T11:02:47.000Z
|
"""
Contains the Phase gate
"""
from .quantum_gate import QuantumGate
class Phase(QuantumGate):
""" Implements the Phase gate """
pass
| 14.5
| 37
| 0.689655
| 17
| 145
| 5.823529
| 0.647059
| 0.161616
| 0.242424
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 145
| 9
| 38
| 16.111111
| 0.853448
| 0.344828
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
a1b10cb364e41c8b30a799d164debc0bb8cee2df
| 1,078
|
py
|
Python
|
ex/calc/sudoku/script.py
|
Amourspirit/python-ooouno-ex
|
523dd9b89a74aaf887edbcfe1dda316a04c7125b
|
[
"MIT"
] | null | null | null |
ex/calc/sudoku/script.py
|
Amourspirit/python-ooouno-ex
|
523dd9b89a74aaf887edbcfe1dda316a04c7125b
|
[
"MIT"
] | 2
|
2022-03-28T19:03:21.000Z
|
2022-03-29T00:03:34.000Z
|
ex/calc/sudoku/script.py
|
Amourspirit/python-ooouno-ex
|
523dd9b89a74aaf887edbcfe1dda316a04c7125b
|
[
"MIT"
] | null | null | null |
from ex.calc.sudoku import sudoku_calc
def generate_single_solve(*args, **kwargs) -> None:
sudoku_calc.new_game()
def num1(*args, **kwargs) -> None:
sudoku_calc.set_number(1)
def num2(*args, **kwargs) -> None:
sudoku_calc.set_number(2)
def num3(*args, **kwargs) -> None:
sudoku_calc.set_number(3)
def num4(*args, **kwargs) -> None:
sudoku_calc.set_number(4)
def num5(*args, **kwargs) -> None:
sudoku_calc.set_number(5)
def num6(*args, **kwargs) -> None:
sudoku_calc.set_number(6)
def num7(*args, **kwargs) -> None:
sudoku_calc.set_number(7)
def num8(*args, **kwargs) -> None:
sudoku_calc.set_number(8)
def num9(*args, **kwargs) -> None:
sudoku_calc.set_number(9)
def clear_sel(*args, **kwargs) -> None:
sudoku_calc.clear_cell()
def reset_board(*args, **kwargs) -> None:
sudoku_calc.reset_board()
def hint(*args, **kwargs) -> None:
sudoku_calc.hint()
def hide_toolbars(*args, **kwargs) -> None:
sudoku_calc.hide_toolbars()
def display_fullscreen(*args, **kwargs) -> None:
sudoku_calc.display_fullscreen()
| 23.434783
| 51
| 0.675325
| 156
| 1,078
| 4.435897
| 0.282051
| 0.231214
| 0.303468
| 0.433526
| 0.637283
| 0.429191
| 0.429191
| 0
| 0
| 0
| 0
| 0.01978
| 0.155844
| 1,078
| 46
| 52
| 23.434783
| 0.740659
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.483871
| true
| 0
| 0.032258
| 0
| 0.516129
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
62938109c047bb71f905d1e5efed4e1b85162b62
| 15,031
|
py
|
Python
|
tests/test_implementations/test_sqlalchemy_table/api_test/test_upsert_many_api.py
|
aebrahim/FastAPIQuickCRUD
|
5c4d1bea2203c30eb21557f18bf9016b55fffa60
|
[
"MIT"
] | 123
|
2021-08-17T01:54:12.000Z
|
2022-03-29T20:41:56.000Z
|
tests/test_implementations/test_sqlalchemy_table/api_test/test_upsert_many_api.py
|
aebrahim/FastAPIQuickCRUD
|
5c4d1bea2203c30eb21557f18bf9016b55fffa60
|
[
"MIT"
] | 10
|
2021-12-28T21:34:20.000Z
|
2022-03-16T13:31:24.000Z
|
tests/test_implementations/test_sqlalchemy_table/api_test/test_upsert_many_api.py
|
aebrahim/FastAPIQuickCRUD
|
5c4d1bea2203c30eb21557f18bf9016b55fffa60
|
[
"MIT"
] | 10
|
2021-08-17T07:37:36.000Z
|
2022-03-31T13:16:55.000Z
|
import json
import uuid
from datetime import date, timedelta, datetime, timezone
from starlette.testclient import TestClient
from src.fastapi_quickcrud import CrudMethods
from src.fastapi_quickcrud import crud_router_builder
from src.fastapi_quickcrud import sqlalchemy_to_pydantic
from src.fastapi_quickcrud.misc.exceptions import ConflictColumnsCannotHit
from tests.test_implementations.test_sqlalchemy_table.api_test import get_transaction_session, app, UntitledTable256
# Create Many API Test
test_create_many = crud_router_builder(db_session=get_transaction_session,
db_model=UntitledTable256,
exclude_columns=['bytea_value', 'xml_value', 'box_valaue'],
crud_methods=[
CrudMethods.UPSERT_MANY,
],
prefix="/test_creation_many",
tags=["test"]
)
[app.include_router(i) for i in [test_create_many]]
client = TestClient(app)
primary_key_name = 'primary_key'
unique_fields = ['primary_key', 'int4_value', 'float4_value']
def create_example_data():
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
}
data = '{ "insert": [ { "bool_value": true, "char_value": "string", "date_value": "2021-07-23", "float4_value": 0, "float8_value": 0, "int2_value": 0, "int4_value": 0, "int8_value": 0, "interval_value": 0, "json_value": {}, "jsonb_value": {}, "numeric_value": 0, "text_value": "string", "timestamp_value": "2021-07-23T02:38:24.963Z", "timestamptz_value": "2021-07-23T02:38:24.963Z", "uuid_value": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "varchar_value": "string", "array_value": [ 0 ], "array_str__value": [ "string" ] }, { "bool_value": true, "char_value": "string", "date_value": "2021-07-23", "float4_value": 0, "float8_value": 0, "int2_value": 0, "int4_value": 0, "int8_value": 0, "interval_value": 0, "json_value": {}, "jsonb_value": {}, "numeric_value": 0, "text_value": "string", "timestamp_value": "2021-07-23T02:38:24.963Z", "timestamptz_value": "2021-07-23T02:38:24.963Z", "uuid_value": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "varchar_value": "string", "array_value": [ 0 ], "array_str__value": [ "string" ] }, { "bool_value": true, "char_value": "string", "date_value": "2021-07-23", "float4_value": 0, "float8_value": 0, "int2_value": 0, "int4_value": 0, "int8_value": 0, "interval_value": 0, "json_value": {}, "jsonb_value": {}, "numeric_value": 0, "text_value": "string", "timestamp_value": "2021-07-23T02:38:24.963Z", "timestamptz_value": "2021-07-23T02:38:24.963Z", "uuid_value": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "varchar_value": "string", "array_value": [ 0 ], "array_str__value": [ "string" ] } ] }'
response = client.post('/test_creation_many', headers=headers, data=data)
assert response.status_code == 201
return response.json()
def test_try_only_input_required_fields():
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
}
data = '{ "insert": [ { "float4_value": 1, "int2_value": 1, "int4_value": 1 },{ "float4_value": 2, "int2_value": 2, "int4_value": 2 },{ "float4_value": 3, "int2_value": 3, "int4_value": 3 } ] }'
data_ = json.loads(data)['insert']
response = client.post('/test_creation_many', headers=headers, data=data)
assert response.status_code == 201
response_result = response.json()
for index, value in enumerate(data_):
res_result_by_index = response_result[index]
for k, v in value.items():
assert res_result_by_index[k] == v
def test_try_input_with_conflict_but_conflict_columns_not_hit():
sample_data = create_example_data()
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
}
data = {"on_conflict": {"update_columns": ["bool_value", "float8_value", "varchar_value", "interval_value",
"time_value", "int8_value", "jsonb_value", "timetz_value",
"array_str__value", "text_value", "char_value", "uuid_value",
"array_value", "numeric_value", "timestamp_value", "int2_value",
"date_value", "json_value", "timestamptz_value"]}}
insert_data = []
for i in sample_data:
_ = {}
for k, v in i.items():
_[k] = v
for k, v in {"float4_value": 99, "int2_value": 99, "int4_value": 99}.items():
_[k] = v
insert_data.append(_)
data['insert'] = insert_data
try:
_ = json.dumps(data)
response = client.post('/test_creation_many', headers=headers, data=json.dumps(data))
except ConflictColumnsCannotHit as e:
pass
assert response.status_code == 409
def test_try_input_with_conflict():
sample_data = create_example_data()
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
}
data = {"on_conflict": {"update_columns": ["bool_value", "float8_value", "varchar_value", "interval_value",
"time_value", "int8_value", "jsonb_value", "timetz_value",
"array_str__value", "text_value", "char_value", "uuid_value",
"array_value", "numeric_value", "timestamp_value", "int2_value",
"date_value", "json_value", "timestamptz_value"]}}
insert_data = []
for i in sample_data:
_ = {}
for k, v in i.items():
_[k] = v
for k, v in {"float8_value": 0.7}.items():
_[k] = v
insert_data.append(_)
data['insert'] = insert_data
response = client.post('/test_creation_many', headers=headers, data=json.dumps(data))
assert response.status_code == 201
response_result = response.json()
for index, value in enumerate(data['insert']):
res_result_by_index = response_result[index]
for k, v in value.items():
assert res_result_by_index[k] == value[k]
def test_try_input_without_conflict():
sample_data = create_example_data()
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
}
data = {}
insert_data = []
for i in sample_data:
_ = {}
for k, v in i.items():
_[k] = v
for k, v in {"float4_value": 99, "int2_value": 99, "int4_value": 99}.items():
_[k] = v
insert_data.append(_)
data['insert'] = insert_data
response = client.post('/test_creation_many', headers=headers, data=json.dumps(data))
assert response.status_code == 409
def test_update_specific_columns_when_conflict():
def update_all_fields():
headers = {
'accept': 'application/json',
}
response_data = create_example_data()
# create the data
update_column_on_conflict = {
"update_columns": [
"int8_value",
"numeric_value",
"varchar_value",
"json_value",
"float8_value",
"time_value",
"timestamp_value",
"timestamptz_value",
"array_value",
"bool_value",
"array_str__value",
"int2_value",
"text_value",
"uuid_value",
"char_value",
"jsonb_value",
"interval_value",
"date_value",
"timetz_value"
]
}
tmp = {}
tmp['on_conflict'] = update_column_on_conflict
bool_value_change = not response_data[0]['bool_value']
char_value_change = "test"
date_value_change = str(date.today() - timedelta(days=1))
float8_value_change = 0.1
int2_value_change = 100
int8_value_change = 100
interval_value_change = float(5400)
json_value_change = {"hello": "world"}
jsonb_value_change = {"hello": "world"}
numeric_value_change = 19
text_value_change = 'hello world'
time_value_change = '18:18:18'
timestamp_value_change = str(datetime.utcnow().isoformat())
timestamptz_value_change = str(datetime.utcnow().replace(tzinfo=timezone.utc).isoformat())
timetz_value_change = '18:18:18+00:00'
uuid_value_change = str(uuid.uuid4())
varchar_value_change = 'hello world'
array_value_change = [1, 2, 3, 4]
array_str__value_change = ['1', '2', '3', '4']
change = {}
change['bool_value'] = bool_value_change
change['char_value'] = char_value_change
change['date_value'] = date_value_change
change['float8_value'] = float8_value_change
change['int2_value'] = int2_value_change
change['int8_value'] = int8_value_change
change['interval_value'] = interval_value_change
change['json_value'] = json_value_change
change['jsonb_value'] = jsonb_value_change
change['numeric_value'] = numeric_value_change
change['text_value'] = text_value_change
change['time_value'] = time_value_change
change['timestamp_value'] = timestamp_value_change
change['timestamptz_value'] = timestamptz_value_change
change['timetz_value'] = timetz_value_change
change['uuid_value'] = uuid_value_change
change['varchar_value'] = varchar_value_change
change['array_value'] = array_value_change
change['array_str__value'] = array_str__value_change
for i in response_data:
for k, v in change.items():
i[k] = v
tmp['insert'] = response_data
response = client.post('/test_creation_many', headers=headers, data=json.dumps(tmp))
assert response.status_code == 201
response_result = response.json()
for i in response_result:
for k, v in i.items():
if k in change:
if isinstance(v, str):
v = v.strip()
assert json.dumps(change[k]).strip() == json.dumps(v).strip()
def update_partial_fields_1():
headers = {
'accept': 'application/json',
}
response_data = create_example_data()
# create the data
update_column_on_conflict = {
"update_columns": [
"int8_value",
"numeric_value",
"varchar_value",
"json_value",
"float8_value",
"time_value",
"timestamp_value",
"timestamptz_value",
"array_value",
"bool_value",
"array_str__value",
]
}
tmp = {}
tmp['on_conflict'] = update_column_on_conflict
bool_value_change = not response_data[0]['bool_value']
float8_value_change = 0.1
int8_value_change = 100
json_value_change = {"hello": "world"}
numeric_value_change = 19
time_value_change = '18:18:18'
timestamp_value_change = str(datetime.utcnow().isoformat())
timestamptz_value_change = str(datetime.utcnow().replace(tzinfo=timezone.utc).isoformat())
uuid_value_change = str(uuid.uuid4())
varchar_value_change = 'hello world'
array_value_change = [1, 2, 3, 4]
array_str__value_change = ['1', '2', '3', '4']
change = {}
change['int8_value'] = int8_value_change
change['numeric_value'] = numeric_value_change
change['varchar_value'] = varchar_value_change
change['json_value'] = json_value_change
change['float8_value'] = float8_value_change
change['time_value'] = time_value_change
change['timestamp_value'] = timestamp_value_change
change['timestamptz_value'] = timestamptz_value_change
change['array_value'] = array_value_change
change['bool_value'] = bool_value_change
change['array_str__value'] = array_str__value_change
for i in response_data:
for k, v in change.items():
i[k] = v
tmp['insert'] = response_data
response = client.post('/test_creation_many', headers=headers, data=json.dumps(tmp))
assert response.status_code == 201
response_result = response.json()
for i in response_result:
for k, v in i.items():
if k in change:
if isinstance(v, str):
v = v.strip()
assert json.dumps(change[k]).strip() == json.dumps(v).strip()
def update_partial_fields_2():
headers = {
'accept': 'application/json',
}
response_data = create_example_data()
# create the data
update_column_on_conflict = {
"update_columns": [
"int2_value",
"text_value",
"uuid_value",
"char_value",
"jsonb_value",
"interval_value",
"date_value",
"timetz_value"
]
}
tmp = {}
tmp['on_conflict'] = update_column_on_conflict
char_value_change = "test"
date_value_change = str(date.today() - timedelta(days=1))
int2_value_change = 100
interval_value_change = float(5400)
jsonb_value_change = {"hello": "world"}
text_value_change = 'hello world'
timetz_value_change = '18:18:18+00:00'
uuid_value_change = str(uuid.uuid4())
change = {}
change['int2_value'] = int2_value_change
change['text_value'] = text_value_change
change['uuid_value'] = uuid_value_change
change['char_value'] = char_value_change
change['jsonb_value'] = jsonb_value_change
change['interval_value'] = interval_value_change
change['date_value'] = date_value_change
change['timetz_value'] = timetz_value_change
for i in response_data:
for k, v in change.items():
i[k] = v
tmp['insert'] = response_data
response = client.post('/test_creation_many', headers=headers, data=json.dumps(tmp))
assert response.status_code == 201
response_result = response.json()
for i in response_result:
for k, v in i.items():
if k in change:
if isinstance(v, str):
v = v.strip()
assert json.dumps(change[k]).strip() == json.dumps(v).strip()
update_all_fields()
update_partial_fields_1()
update_partial_fields_2()
| 42.22191
| 1,529
| 0.583594
| 1,694
| 15,031
| 4.835301
| 0.100354
| 0.103406
| 0.072641
| 0.011964
| 0.870712
| 0.837871
| 0.83311
| 0.827738
| 0.790258
| 0.698694
| 0
| 0.039142
| 0.292928
| 15,031
| 355
| 1,530
| 42.340845
| 0.731558
| 0.004524
| 0
| 0.8
| 0
| 0.006452
| 0.268953
| 0.018652
| 0
| 0
| 0
| 0
| 0.041935
| 1
| 0.029032
| false
| 0.003226
| 0.029032
| 0
| 0.06129
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 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
| 8
|
629ffac15c353394bf00d6d22033e65ced0d0e80
| 17,268
|
py
|
Python
|
paradigm_tools.py
|
fhardison/greek-inflexion
|
8decc1ebcbcfb58b46bd22ca2ac90496ed19c9db
|
[
"MIT"
] | null | null | null |
paradigm_tools.py
|
fhardison/greek-inflexion
|
8decc1ebcbcfb58b46bd22ca2ac90496ed19c9db
|
[
"MIT"
] | null | null | null |
paradigm_tools.py
|
fhardison/greek-inflexion
|
8decc1ebcbcfb58b46bd22ca2ac90496ed19c9db
|
[
"MIT"
] | null | null | null |
# py -m doctest -v examples.rst
from greek_inflexion import GreekInflexion
from yaml import load
try:
from yaml import CLoader as Loader
except ImportError:
from yaml import Loader
inflexion = GreekInflexion('stemming.yaml', 'STEM_DATA/pratt_lexicon.yaml')
def rotate_lists(xs):
len_x0 = len(xs[0])
for x in xs:
assert len(x) == len_x0
out = []
for i in range(0,len(xs[0])):
out.append([x[i] for x in xs])
return out
def load_labels(fpath, lang):
with open(fpath, 'r', encoding="UTF-8") as f:
labels = load(f, Loader=Loader)
return labels[lang]
def layout_merged_imp_paradigm_md(verbs, TVMs, labels):
verbs = [[f' {y} ' for y in xs] for xs in verbs]
row_labels = [f' {labels[x]} ' for x in ['2nd', '3rd']] * 2
verbs.insert(0,row_labels)
sgpl = [f' {labels["SG"]} ', ' ', f' {labels["PL"]} ' , ' ']
verbs.insert(0,sgpl)
header = [f' {labels["number"]} ', f' {labels["person"]} ']
header.extend([f' {labels[x]} ' if x in labels else f' {labels["unknown"]} ' for x in TVMs])
r_verbs = rotate_lists(verbs)
tcontent = "|" + "|".join(header) + "|\n"
tcontent += "|" + ":----|" * len(header) + "\n"
tcontent += "\n".join(['|' + "|".join(x) + '|' for x in r_verbs])
print(tcontent)
print()
def layout_non_merged_imp_paradigm_md(verbs, tvm, labels):
row_labels = [f' {labels[x]} ' for x in ['2nd', '3rd']] * 2
v = [f' {y} ' for y in verbs]
header = [f' {labels["number"]} ',
f' {labels["person"]} ',
f' {labels[tvm] if tvm in labels else labels["unknown"]} ']
numbers = [f' {labels["SG"]} ', ' ', f' {labels["PL"]} ', ' ']
r_verbs = rotate_lists([numbers, row_labels, v])
tcontent = "|" + "|".join(header) + "|\n"
tcontent += "|:----|:----|:----|\n"
tcontent += "\n".join(['|' + "|".join(x) + '|' for x in r_verbs])
print(tcontent)
print()
def layout_merged_verb_paradigm_md(verbs, TVMs, labels):
verbs = [[f' {y} ' for y in xs] for xs in verbs]
row_labels = [f' {labels[x]} ' for x in ['1st', '2nd', '3rd']] * 2
verbs.insert(0,row_labels)
sgpl = [f' {labels["SG"]} ', ' ', ' ', f' {labels["PL"]} ' , ' ' , ' ']
verbs.insert(0,sgpl)
header = [f' {labels["number"]} ', f' {labels["person"]} ']
header.extend([f' {labels[x]} ' if x in labels else f' {labels["unknown"]} ' for x in TVMs])
r_verbs = rotate_lists(verbs)
tcontent = "|" + "|".join(header) + "|\n"
tcontent += "|" + ":----|" * len(header) + "\n"
tcontent += "\n".join(['|' + "|".join(x) + '|' for x in r_verbs])
print(tcontent)
print()
def layout_non_merged_verb_paradigm_md(verbs, tvm, labels):
row_labels = [f' {labels[x]} ' for x in ['1st', '2nd', '3rd']] * 2
v = [f' {y} ' for y in verbs]
header = [f' {labels["number"]} ',
f' {labels["person"]} ',
f' {labels[tvm] if tvm in labels else labels["unknown"]} ']
numbers = [f' {labels["SG"]} ', ' ', ' ', f' {labels["PL"]} ' , ' ' , ' ']
r_verbs = rotate_lists([numbers, row_labels, v])
tcontent = "|" + "|".join(header) + "|\n"
tcontent += "|:----|:----|:----|\n"
tcontent += "\n".join(['|' + "|".join(x) + '|' for x in r_verbs])
print(tcontent)
print()
def layout_merged_inf_paradigm_md(forms, labels):
print("| | " + labels["inf"] + " |")
print("|:---|:---|")
for tvm, form in forms:
print(f'| {labels[tvm] if tvm in labels else labels["unknown"]} | {form[0]} |')
print()
def layout_non_merged_inf_paradigm_md(form, tvm, labels):
print("| | " + labels["inf"] + " |")
print("|:---|:---|")
print(f'| {labels[tvm] if tvm in labels else labels["unknown"]} | {form[0]} |')
print()
def layout_participle_summary_paradigm_md(forms, label, labels):
forms = [f' {x} ' for x in forms]
header = [f' {labels["number"]} ',
f' {labels["case"]} ',
f' {labels["masc"]} ',
f' {labels["fem"]} ',
f' {labels["neut"]} ']
cases = [f' {labels["nom"]} ',
f' {labels["gen"]} '] * 2
row1 = forms[0:3]
row2 = forms[3:]
row1.insert(0, f' {labels["nom"]} ')
row1.insert(0, f' {labels["SG"]} ')
row2.insert(0, f' {labels["gen"]} ')
row2.insert(0, f' ')
rows = [row1, row2]
tcontent = f'| {"|".join(header)} |\n'
tcontent += f'|:-----|:-----|:-----|:-----|:-----|\n'
tcontent += "\n".join([f'| {"|".join(x)} |' for x in rows])
print(tcontent)
print()
def conjugate_md(lemma, *TVMs, tags=None, labels="labels.yaml", lang="el", merge_paradigms=True):
labels = load_labels(labels, lang)
forms = inflexion.conjugate_core(lemma, *TVMs, tags=tags)
# participles can't be merged with other verb paradigms
verbs = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] in "SOI"]
imps = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] == "D"]
infs = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] == "N"]
parts = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] == "P"]
if verbs:
if merge_paradigms:
tvms = [x[0] for x in verbs]
verbs = [x[1] for x in verbs]
layout_merged_verb_paradigm_md(verbs, tvms, labels)
else:
for label, v in verbs:
layout_non_merged_verb_paradigm_md(v, label, labels)
if infs:
if merge_paradigms:
layout_merged_inf_paradigm_md(infs, labels)
else:
for label, v in infs:
layout_non_merged_inf_paradigm_md(v, label, labels)
if imps:
if merge_paradigms:
tvms = [x[0] for x in imps]
imps = [x[1] for x in imps]
layout_merged_imp_paradigm_md(imps, tvms, labels)
else:
for label, v in imps:
layout_non_merged_imp_paradigm_md(v, label, labels)
if parts:
for label, v in parts:
layout_participle_summary_paradigm_md(v, label, labels)
def layout_merged_imp_paradigm_html(verbs, TVMs, labels):
verbs = [[f'<td class="para-item">{y}</td>' for y in xs] for xs in verbs]
row_labels = [f'<td class="para-row-label">{labels[x]}</td>' for x in ['2nd', '3rd']] * 2
verbs.insert(0,row_labels)
header = [f'<td class="para-header-cell">{labels[x]}</td>' if x in labels else f'<td class="para-header-cell">{labels["unknown"]}</td>' for x in TVMs]
header.insert(0, f'<td class="para-header-cell">{labels["person"]}</td>')
header.insert(0, f'<td class="para-header-cell">{labels["number"]}</td>')
r_verbs = rotate_lists(verbs)
r_verbs[0].insert(0, f'<td class="para-row-label" rowspan="2" valign="top">{labels["SG"]}</td>')
r_verbs[2].insert(0, f'<td class="para-row-label" rowspan="2" valign="top">{labels["PL"]}</td>')
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in r_verbs]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def layout_non_merged_imp_paradigm_html(verbs, tvm, labels):
row_labels = [f'<td class="para-row-label">{labels[x]}</td>' for x in ['2nd', '3rd']] * 2
v = [f'<td class="para-item">{y}</td>' for y in verbs]
header = [f'<td class="para-header-cell">{labels["number"]}</td>',
f'<td class="para-header-cell">{labels["person"]}</td>',
f'<td class="para-header-cell">{labels[tvm]}</td>' if tvm in labels else f'<td class="para-header-cell">{labels["unknown"]}</td>']
r_verbs = rotate_lists([row_labels, v])
r_verbs[0].insert(0, f'<td class="para-row-label" rowspan="2" valign="top">{labels["SG"]}</td>')
r_verbs[2].insert(0, f'<td class="para-row-label" rowspan="2" valign="top">{labels["PL"]}</td>')
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in r_verbs]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def layout_merged_inf_paradigm_html(verbs, labels):
header = [f'<td class="para-header-cell"></td>',
f'<td class="para-header-cell">{labels["inf"]}</td>']
vs = [[f'<td class="para-item">{labels[tvm] if tvm in labels else labels["unknown"]}</td>',
f'<td class="para-item">{y[0]}</td>'] for (tvm, y) in verbs]
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in vs]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def layout_non_merged_inf_paradigm_html(verbs, tvm, labels):
header = [f'<td class="para-header-cell"></td>',
f'<td class="para-header-cell">{labels["inf"]}</td>']
vs = [[f'<td class="para-item">{labels[tvm] if tvm in labels else labels["unknown"]}</td>',
f'<td class="para-item">{y}</td>'] for y in verbs]
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in vs]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def layout_participle_summary_paradigm_html(forms, label, labels):
forms = [f'<td class="para-item">{x}</td>' for x in forms]
header = [f'<td class="para-header-cell">{labels["number"]}</td>',
f'<td class="para-header-cell">{labels["case"]}</td>',
f'<td class="para-header-cell">{labels["masc"]}</td>',
f'<td class="para-header-cell">{labels["fem"]}</td>',
f'<td class="para-header-cell">{labels["neut"]}</td>']
cases = [f'<td class="para-row-label">{labels["nom"]}</td>',
f'<td class="para-row-label">{labels["gen"]}</td>'] * 2
row1 = forms[0:3]
row2 = forms[3:]
row1.insert(0, f'<td class="para-row-label">{labels["nom"]}</td>')
row1.insert(0, f'<td class="para-row-label" valign="top" rowspan="2">{labels["SG"]}</td>')
row2.insert(0, f'<td class="para-row-label">{labels["gen"]}</td>')
rows = [row1, row2]
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in rows]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def layout_merged_verb_paradigm_html(verbs, TVMs, labels):
verbs = [[f'<td class="para-item">{y}</td>' for y in xs] for xs in verbs]
row_labels = [f'<td class="para-row-label">{labels[x]}</td>' for x in ['1st', '2nd', '3rd']] * 2
verbs.insert(0,row_labels)
header = [f'<td class="para-header-cell">{labels[x]}</td>' if x in labels else f'<td class="para-header-cell">{labels["unknown"]}</td>' for x in TVMs ]
header.insert(0, f'<td class="para-header-cell">{labels["person"]}</td>')
header.insert(0, f'<td class="para-header-cell">{labels["number"]}</td>')
r_verbs = rotate_lists(verbs)
r_verbs[0].insert(0, f'<td class="para-row-label" rowspan="3" valign="top">{labels["SG"]}</td>')
r_verbs[3].insert(0, f'<td class="para-row-label" rowspan="3" valign="top">{labels["PL"]}</td>')
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in r_verbs]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def layout_non_merged_verb_paradigm_html(verbs, tvm, labels):
row_labels = [f'<td class="para-row-label">{labels[x]}</td>' for x in ['1st', '2nd', '3rd']] * 2
v = [f'<td class="para-item">{y}</td>' for y in verbs]
header = [f'<td class="para-header-cell">{labels["number"]}</td>',
f'<td class="para-header-cell">{labels["person"]}</td>',
f'<td class="para-header-cell">{labels[tvm]}</td>'if tvm in labels else f'<td class="para-header-cell">{labels["unknown"]}</td>']
r_verbs = rotate_lists([row_labels, v])
r_verbs[0].insert(0, f'<td class="para-row-label" rowspan="3" valign="top">{labels["SG"]}</td>')
r_verbs[3].insert(0, f'<td class="para-row-label" rowspan="3" valign="top">{labels["PL"]}</td>')
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in r_verbs]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def conjugate_html(lemma, *TVMs, tags=None, labels="labels.yaml", lang="el", merge_paradigms=True):
labels = load_labels(labels, lang)
forms = inflexion.conjugate_core(lemma, *TVMs, tags=tags)
# participles can't be merged with other verb paradigms
verbs = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] in "IOS"]
imps = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] == "D"]
infs = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] == "N"]
parts = [(fs[0], list(fs[1].values())) for fs in forms if fs[0][2] == "P"]
if verbs:
if merge_paradigms:
tvms = [x[0] for x in verbs]
verbs = [x[1] for x in verbs]
layout_merged_verb_paradigm_html(verbs, tvms, labels)
else:
for label, v in verbs:
layout_non_merged_verb_paradigm_html(v, label, labels)
if imps:
if merge_paradigms:
tvms = [x[0] for x in imps]
imps = [x[1] for x in imps]
layout_merged_imp_paradigm_html(imps, tvms, labels)
else:
for label, v in imps:
layout_non_merged_imp_paradigm_html(v, label, labels)
if infs:
if merge_paradigms:
layout_merged_inf_paradigm_html(infs, labels)
else:
for label, v in infs:
layout_non_merged_inf_paradigm_html(v, label, labels)
if parts:
for label, v in parts:
layout_participle_summary_paradigm_html(v, label, labels)
def layout_nouny_paradigm_md(forms, labels):
forms = [[f" {y} " for y in x] for x in forms]
header = [f' {labels["number"]} ',
f' {labels["case"]} ',
f' {labels["masc"]} ',
f' {labels["fem"]} ',
f' {labels["neut"]} ']
cases = [f' {labels["nom"]} ',
f' {labels["gen"]} ',
f' {labels["dat"]} ',
f' {labels["acc"]} ',
f' {labels["voc"]} '] * 2
forms.insert(0, cases)
numbers = [f' {labels["SG"]} ', ' ', ' ',' ',' ', f' {labels["PL"]} ' , ' ' , ' ', ' ', ' ']
forms.insert(0, numbers)
r_forms = rotate_lists(forms)
tcontent = f'| {"|".join(header)} |\n'
tcontent += "|:----|:----|:----|:----|:----|\n"
tcontent += "\n".join([f'|{"|".join(x)}|' for x in r_forms])
print(tcontent)
print()
def decline_md(lemma, TVM, tags=None, labels="labels.yaml", lang="el"):
labels = load_labels(labels, lang)
forms = [list(x.values()) for x in inflexion.decline_core(lemma, TVM, tags=tags)]
layout_nouny_paradigm_md(forms, labels)
def layout_nouny_paradigm_html(forms, labels):
forms = [[f'<td class="para-item">{y}</td>' for y in x] for x in forms]
header = [f'<td class="para-header-cell">{labels["number"]}</td>',
f'<td class="para-header-cell">{labels["case"]}</td>',
f'<td class="para-header-cell">{labels["masc"]}</td>',
f'<td class="para-header-cell">{labels["fem"]}</td>',
f'<td class="para-header-cell">{labels["neut"]}</td>']
cases = [f'<td class="para-row-label">{labels["nom"]}</td>',
f'<td class="para-row-label">{labels["gen"]}</td>',
f'<td class="para-row-label">{labels["dat"]}</td>',
f'<td class="para-row-label">{labels["acc"]}</td>',
f'<td class="para-row-label">{labels["voc"]}</td>'] * 2
forms.insert(0, cases)
r_forms = rotate_lists(forms)
r_forms[0].insert(0, f'<td class="para-row-label" rowspan="5" valign="top">{labels["SG"]}</td>')
r_forms[5].insert(0, f'<td class="para-row-label" rowspan="5" valign="top">{labels["PL"]}</td>')
tcontent = f'<thead><tr class="para-header-row">{"".join(header)}</tr></thead>'
tcontent += "<tbody>\n" + "\n".join([f'<tr>{"".join(x)}</tr>' for x in r_forms]) + "\n</tbody>"
print("<link href=\"./paradigm.css\" rel=\"stylesheet\">")
print(f'<table class="verb-paradigm">\n{tcontent}\n</table>')
print()
def decline_html(lemma, TVM, tags=None, labels="labels.yaml", lang="el"):
labels = load_labels(labels, lang)
forms = [list(x.values()) for x in inflexion.decline_core(lemma, TVM, tags=tags)]
layout_nouny_paradigm_html(forms, labels)
| 47.180328
| 155
| 0.563586
| 2,533
| 17,268
| 3.755626
| 0.058824
| 0.068117
| 0.053821
| 0.080732
| 0.928519
| 0.893409
| 0.869547
| 0.858194
| 0.846105
| 0.835699
| 0
| 0.011116
| 0.202919
| 17,268
| 365
| 156
| 47.309589
| 0.680035
| 0.007934
| 0
| 0.700315
| 0
| 0.047319
| 0.363812
| 0.228061
| 0.056782
| 0
| 0
| 0
| 0.003155
| 1
| 0.069401
| false
| 0
| 0.015773
| 0
| 0.091483
| 0.138801
| 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
|
c52e042ff84ede90e4e723a4ec16b1323168c9ee
| 144
|
py
|
Python
|
tests/test_partypy_prototype.py
|
UBC-MDS/partypy_prototype
|
4b2001b68ac226ca8d571bd0c38fe7d3661deb70
|
[
"MIT"
] | null | null | null |
tests/test_partypy_prototype.py
|
UBC-MDS/partypy_prototype
|
4b2001b68ac226ca8d571bd0c38fe7d3661deb70
|
[
"MIT"
] | null | null | null |
tests/test_partypy_prototype.py
|
UBC-MDS/partypy_prototype
|
4b2001b68ac226ca8d571bd0c38fe7d3661deb70
|
[
"MIT"
] | null | null | null |
from partypy_prototype import __version__
from partypy_prototype import partypy_prototype
def test_version():
assert __version__ == '0.1.0'
| 28.8
| 47
| 0.8125
| 19
| 144
| 5.526316
| 0.526316
| 0.457143
| 0.380952
| 0.495238
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02381
| 0.125
| 144
| 5
| 48
| 28.8
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0.034483
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 8
|
3d6563dc8688da394f11b227ab6b93a5b44ba207
| 23,635
|
py
|
Python
|
orquesta/tests/unit/conducting/test_workflow_conductor_with_items_failure.py
|
exp-vkishore/orquesta
|
2823b42aff71ea711024a81f893af38033cb5de7
|
[
"Apache-2.0"
] | 85
|
2018-07-26T04:29:49.000Z
|
2022-03-31T10:47:50.000Z
|
orquesta/tests/unit/conducting/test_workflow_conductor_with_items_failure.py
|
exp-vkishore/orquesta
|
2823b42aff71ea711024a81f893af38033cb5de7
|
[
"Apache-2.0"
] | 149
|
2018-07-27T22:36:45.000Z
|
2022-03-31T10:54:32.000Z
|
orquesta/tests/unit/conducting/test_workflow_conductor_with_items_failure.py
|
exp-vkishore/orquesta
|
2823b42aff71ea711024a81f893af38033cb5de7
|
[
"Apache-2.0"
] | 24
|
2018-08-07T13:37:41.000Z
|
2021-12-16T18:12:43.000Z
|
# Copyright 2019 Extreme Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from orquesta import conducting
from orquesta import events
from orquesta.specs import native as native_specs
from orquesta import statuses
from orquesta.tests.unit import base as test_base
class WorkflowConductorWithItemsFailureTest(test_base.WorkflowConductorWithItemsTest):
def test_fail_one_and_only_item(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
tasks:
task1:
with: <% ctx(xs) %>
action: core.echo message=<% item() %>
"""
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
]
mock_ac_ex_statuses = [statuses.FAILED]
expected_task_statuses = [statuses.FAILED]
expected_workflow_statuses = [statuses.FAILED]
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
# Assert the task is not removed from staging. This is intentional so the with items
# task can be rerun partially for failed items or items that hasn't been run.
self.assertIsNotNone(conductor.workflow_state.get_staged_task(task_name, task_route))
# Assert the workflow failed.
self.assertEqual(conductor.get_workflow_status(), statuses.FAILED)
def test_failed_item_task_dormant_other_incomplete(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with: <% ctx(xs) %>
action: core.echo message=<% item() %>
"""
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [statuses.SUCCEEDED, statuses.FAILED]
expected_task_statuses = [statuses.RUNNING, statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING, statuses.FAILED]
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
# Assert the task is not removed from staging. This is intentional so the with items
# task can be rerun partially for failed items or items that hasn't been run.
self.assertIsNotNone(conductor.workflow_state.get_staged_task(task_name, task_route))
# Assert the workflow failed.
self.assertEqual(conductor.get_workflow_status(), statuses.FAILED)
def test_failed_item_task_dormant_other_failed(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with: <% ctx(xs) %>
action: core.echo message=<% item() %>
"""
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [statuses.SUCCEEDED, statuses.FAILED, statuses.FAILED]
expected_task_statuses = [statuses.RUNNING, statuses.RUNNING, statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING, statuses.RUNNING, statuses.FAILED]
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
# Assert the task is not removed from staging. This is intentional so the with items
# task can be rerun partially for failed items or items that hasn't been run.
self.assertIsNotNone(conductor.workflow_state.get_staged_task(task_name, task_route))
# Assert the workflow failed.
self.assertEqual(conductor.get_workflow_status(), statuses.FAILED)
def test_failed_item_task_active(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with: <% ctx(xs) %>
action: core.echo message=<% item() %>
"""
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [
statuses.SUCCEEDED,
statuses.FAILED,
statuses.SUCCEEDED,
statuses.SUCCEEDED,
]
expected_task_statuses = [statuses.RUNNING] * 3 + [statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING] * 3 + [statuses.FAILED]
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
# Assert the task is not removed from staging. This is intentional so the with items
# task can be rerun partially for failed items or items that hasn't been run.
self.assertIsNotNone(conductor.workflow_state.get_staged_task(task_name, task_route))
# Assert the workflow failed.
self.assertEqual(conductor.get_workflow_status(), statuses.FAILED)
def test_failed_item_task_dormant_with_concurrency(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with:
items: <% ctx(xs) %>
concurrency: 2
action: core.echo message=<% item() %>
"""
concurrency = 2
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [statuses.SUCCEEDED, statuses.FAILED]
expected_task_statuses = [statuses.RUNNING, statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING, statuses.FAILED]
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
concurrency=concurrency,
)
# Assert the task is not removed from staging. This is intentional so the with items
# task can be rerun partially for failed items or items that hasn't been run.
self.assertIsNotNone(conductor.workflow_state.get_staged_task(task_name, task_route))
# Assert the workflow failed.
self.assertEqual(conductor.get_workflow_status(), statuses.FAILED)
def test_failed_item_task_active_with_concurrency(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with:
items: <% ctx(xs) %>
concurrency: 2
action: core.echo message=<% item() %>
"""
concurrency = 2
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [
statuses.SUCCEEDED,
statuses.FAILED,
statuses.SUCCEEDED,
statuses.SUCCEEDED,
]
expected_task_statuses = [statuses.RUNNING] * 3 + [statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING] * 3 + [statuses.FAILED]
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
concurrency=concurrency,
)
# Assert the task is not removed from staging. This is intentional so the with items
# task can be rerun partially for failed items or items that hasn't been run.
self.assertIsNotNone(conductor.workflow_state.get_staged_task(task_name, task_route))
# Assert the workflow failed.
self.assertEqual(conductor.get_workflow_status(), statuses.FAILED)
def test_failed_item_with_task_remediation(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with: <% ctx(xs) %>
action: core.echo message=<% item() %>
next:
- do: task2
task2:
action: core.noop
"""
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [
statuses.SUCCEEDED,
statuses.FAILED,
statuses.SUCCEEDED,
statuses.SUCCEEDED,
]
expected_task_statuses = [statuses.RUNNING] * 3 + [statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING] * 4
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
current_task = conductor.get_next_tasks()[0]
current_task_id = current_task["id"]
current_task_route = current_task["route"]
ac_ex_event = events.ActionExecutionEvent(statuses.RUNNING)
conductor.update_task_state(current_task_id, current_task_route, ac_ex_event)
ac_ex_event = events.ActionExecutionEvent(statuses.SUCCEEDED)
conductor.update_task_state(current_task_id, current_task_route, ac_ex_event)
# Assert there are only two tasks executed.
self.assertEqual(len(conductor.workflow_state.sequence), 2)
# Assert the workflow succeeded.
self.assertEqual(conductor.get_workflow_status(), statuses.SUCCEEDED)
def test_failed_all_items_with_task_remediation(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with: <% ctx(xs) %>
action: core.echo message=<% item() %>
next:
- do: task2
task2:
action: core.noop
"""
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [
statuses.FAILED,
statuses.FAILED,
statuses.FAILED,
statuses.FAILED,
]
expected_task_statuses = [statuses.RUNNING] * 3 + [statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING] * 4
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
current_task = conductor.get_next_tasks()[0]
current_task_id = current_task["id"]
current_task_route = current_task["route"]
ac_ex_event = events.ActionExecutionEvent(statuses.RUNNING)
conductor.update_task_state(current_task_id, current_task_route, ac_ex_event)
ac_ex_event = events.ActionExecutionEvent(statuses.SUCCEEDED)
conductor.update_task_state(current_task_id, current_task_route, ac_ex_event)
# Assert there are only two tasks executed.
self.assertEqual(len(conductor.workflow_state.sequence), 2)
# Assert the workflow succeeded.
self.assertEqual(conductor.get_workflow_status(), statuses.SUCCEEDED)
def test_failed_item_task_dormant_with_concurrency_and_task_remediation(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
task1:
with:
items: <% ctx(xs) %>
concurrency: 2
action: core.echo message=<% item() %>
next:
- do: task2
task2:
action: core.noop
"""
concurrency = 2
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [statuses.SUCCEEDED, statuses.FAILED]
expected_task_statuses = [statuses.RUNNING, statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING] * 4
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
concurrency=concurrency,
)
current_task = conductor.get_next_tasks()[0]
current_task_id = current_task["id"]
current_task_route = current_task["route"]
ac_ex_event = events.ActionExecutionEvent(statuses.RUNNING)
conductor.update_task_state(current_task_id, current_task_route, ac_ex_event)
ac_ex_event = events.ActionExecutionEvent(statuses.SUCCEEDED)
conductor.update_task_state(current_task_id, current_task_route, ac_ex_event)
# Assert there are only two tasks executed.
self.assertEqual(len(conductor.workflow_state.sequence), 2)
# Assert the workflow succeeded.
self.assertEqual(conductor.get_workflow_status(), statuses.SUCCEEDED)
def test_task_cycle(self):
wf_def = """
version: 1.0
vars:
- xs:
- fee
- fi
- fo
- fum
tasks:
init:
next:
- do: task1
task1:
with: <% ctx(xs) %>
action: core.echo message=<% item() %>
next:
- when: <% failed() %>
do: task1
"""
spec = native_specs.WorkflowSpec(wf_def)
self.assertDictEqual(spec.inspect(), {})
conductor = conducting.WorkflowConductor(spec)
conductor.request_workflow_status(statuses.RUNNING)
# Get pass the init task, required for bootstrapping self looping task..
self.forward_task_statuses(conductor, "init", [statuses.RUNNING, statuses.SUCCEEDED])
# Mock the action execution for each item and assert expected task statuses.
task_route = 0
task_name = "task1"
task_ctx = {"xs": ["fee", "fi", "fo", "fum"]}
task_action_specs = [
{"action": "core.echo", "input": {"message": "fee"}, "item_id": 0},
{"action": "core.echo", "input": {"message": "fi"}, "item_id": 1},
{"action": "core.echo", "input": {"message": "fo"}, "item_id": 2},
{"action": "core.echo", "input": {"message": "fum"}, "item_id": 3},
]
mock_ac_ex_statuses = [statuses.SUCCEEDED, statuses.FAILED]
expected_task_statuses = [statuses.RUNNING, statuses.FAILED]
expected_workflow_statuses = [statuses.RUNNING] * 2
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
# Assert the task is reset in staging.
staged_task = conductor.workflow_state.get_staged_task(task_name, task_route)
self.assertIsNotNone(staged_task)
self.assertNotIn("items", staged_task)
# Assert the workflow is still running.
self.assertEqual(conductor.get_workflow_status(), statuses.RUNNING)
# Mock the second task execution.
mock_ac_ex_statuses = [statuses.SUCCEEDED] * 4
expected_task_statuses = [statuses.RUNNING] * 3 + [statuses.SUCCEEDED]
expected_workflow_statuses = [statuses.RUNNING] * 3 + [statuses.SUCCEEDED]
self.assert_task_items(
conductor,
task_name,
task_route,
task_ctx,
task_ctx["xs"],
task_action_specs,
mock_ac_ex_statuses,
expected_task_statuses,
expected_workflow_statuses,
)
# Assert the task is removed from staging.
self.assertIsNone(conductor.workflow_state.get_staged_task(task_name, task_route))
# Assert the workflow succeeded.
conductor.render_workflow_output()
self.assertEqual(conductor.get_workflow_status(), statuses.SUCCEEDED)
| 34.353198
| 93
| 0.575122
| 2,521
| 23,635
| 5.155494
| 0.0714
| 0.03847
| 0.050627
| 0.054089
| 0.914365
| 0.914365
| 0.901054
| 0.890205
| 0.883435
| 0.876048
| 0
| 0.007897
| 0.314195
| 23,635
| 687
| 94
| 34.403202
| 0.793942
| 0.122699
| 0
| 0.879079
| 0
| 0
| 0.22262
| 0
| 0
| 0
| 0
| 0
| 0.084453
| 1
| 0.019194
| false
| 0
| 0.009597
| 0
| 0.03071
| 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
|
9a9a3c44c2c81819a2ffb7418513ab8597474f76
| 948
|
py
|
Python
|
resteasycli/exceptions.py
|
rapidstack/RESTEasyCLI
|
f65fc86163c25f843a94341f09b20db28c1511d7
|
[
"MIT"
] | null | null | null |
resteasycli/exceptions.py
|
rapidstack/RESTEasyCLI
|
f65fc86163c25f843a94341f09b20db28c1511d7
|
[
"MIT"
] | 55
|
2019-01-01T12:03:58.000Z
|
2019-05-23T16:36:30.000Z
|
resteasycli/exceptions.py
|
sayanarijit/RESTEasyCLI
|
f65fc86163c25f843a94341f09b20db28c1511d7
|
[
"MIT"
] | 5
|
2019-01-01T17:04:37.000Z
|
2019-03-02T17:59:49.000Z
|
class FileNotFoundException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class FileExtensionNotSupportedException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class MethodNotAllowedException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class EntryNotFoundException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class InvalidCommandException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class CorruptFileException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class InvalidFormatException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
| 28.727273
| 52
| 0.693038
| 91
| 948
| 6.604396
| 0.153846
| 0.186356
| 0.279534
| 0.419301
| 0.71381
| 0.71381
| 0.71381
| 0.71381
| 0.71381
| 0.71381
| 0
| 0
| 0.166667
| 948
| 32
| 53
| 29.625
| 0.760759
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 9
|
9aac967710f7bd4f38c6a06a0b53dbf3689d5fbf
| 2,758
|
py
|
Python
|
lib/test_calculate_terms.py
|
StoDevX/course-data-tools
|
7afc7f060c6724aea12d35bd71b4586a2f818fcd
|
[
"MIT"
] | 2
|
2016-08-19T03:26:35.000Z
|
2017-05-15T14:40:22.000Z
|
lib/test_calculate_terms.py
|
StoDevX/course-data-tools
|
7afc7f060c6724aea12d35bd71b4586a2f818fcd
|
[
"MIT"
] | 1
|
2018-09-05T15:50:23.000Z
|
2018-09-05T16:33:16.000Z
|
lib/test_calculate_terms.py
|
StoDevX/course-data-tools
|
7afc7f060c6724aea12d35bd71b4586a2f818fcd
|
[
"MIT"
] | null | null | null |
from .calculate_terms import find_terms_for_year, find_terms, get_years_and_terms, calculate_terms
from datetime import date
def test_find_terms_for_year():
assert find_terms_for_year(2000, date(2001, 1, 1)) == [20001, 20002, 20003, 20004, 20005]
assert find_terms_for_year(2001, date(2000, 1, 1)) == []
assert find_terms_for_year(2000, date(2000, 1, 1)) == []
assert find_terms_for_year(2000, date(2000, 4, 1)) == [20001, 20002, 20003]
assert find_terms_for_year(2000, date(2000, 8, 1)) == [20001, 20002, 20003, 20004, 20005]
def test_find_terms():
assert find_terms(start_year=2017, end_year=2018, now=date(2018, 8, 20)) == [
[20171, 20172, 20173, 20174, 20175],
[20181, 20182, 20183, 20184, 20185],
]
assert find_terms(now=date(2018, 6, 20)) == [
[19941, 19942, 19943, 19944, 19945],
[19951, 19952, 19953, 19954, 19955],
[19961, 19962, 19963, 19964, 19965],
[19971, 19972, 19973, 19974, 19975],
[19981, 19982, 19983, 19984, 19985],
[19991, 19992, 19993, 19994, 19995],
[20001, 20002, 20003, 20004, 20005],
[20011, 20012, 20013, 20014, 20015],
[20021, 20022, 20023, 20024, 20025],
[20031, 20032, 20033, 20034, 20035],
[20041, 20042, 20043, 20044, 20045],
[20051, 20052, 20053, 20054, 20055],
[20061, 20062, 20063, 20064, 20065],
[20071, 20072, 20073, 20074, 20075],
[20081, 20082, 20083, 20084, 20085],
[20091, 20092, 20093, 20094, 20095],
[20101, 20102, 20103, 20104, 20105],
[20111, 20112, 20113, 20114, 20115],
[20121, 20122, 20123, 20124, 20125],
[20131, 20132, 20133, 20134, 20135],
[20141, 20142, 20143, 20144, 20145],
[20151, 20152, 20153, 20154, 20155],
[20161, 20162, 20163, 20164, 20165],
[20171, 20172, 20173, 20174, 20175],
[20181, 20182, 20183],
]
assert find_terms(now=date(2018, 8, 20)) == [
[19941, 19942, 19943, 19944, 19945],
[19951, 19952, 19953, 19954, 19955],
[19961, 19962, 19963, 19964, 19965],
[19971, 19972, 19973, 19974, 19975],
[19981, 19982, 19983, 19984, 19985],
[19991, 19992, 19993, 19994, 19995],
[20001, 20002, 20003, 20004, 20005],
[20011, 20012, 20013, 20014, 20015],
[20021, 20022, 20023, 20024, 20025],
[20031, 20032, 20033, 20034, 20035],
[20041, 20042, 20043, 20044, 20045],
[20051, 20052, 20053, 20054, 20055],
[20061, 20062, 20063, 20064, 20065],
[20071, 20072, 20073, 20074, 20075],
[20081, 20082, 20083, 20084, 20085],
[20091, 20092, 20093, 20094, 20095],
[20101, 20102, 20103, 20104, 20105],
[20111, 20112, 20113, 20114, 20115],
[20121, 20122, 20123, 20124, 20125],
[20131, 20132, 20133, 20134, 20135],
[20141, 20142, 20143, 20144, 20145],
[20151, 20152, 20153, 20154, 20155],
[20161, 20162, 20163, 20164, 20165],
[20171, 20172, 20173, 20174, 20175],
[20181, 20182, 20183, 20184, 20185],
]
| 36.773333
| 98
| 0.660261
| 381
| 2,758
| 4.687664
| 0.39895
| 0.06047
| 0.067189
| 0.06271
| 0.884099
| 0.863382
| 0.805151
| 0.788354
| 0.769317
| 0.769317
| 0
| 0.624837
| 0.167875
| 2,758
| 74
| 99
| 37.27027
| 0.153377
| 0
| 0
| 0.761194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119403
| 1
| 0.029851
| true
| 0
| 0.029851
| 0
| 0.059701
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
9ae572d01faafd5f123223a787bd094c4b93dfc7
| 7,821
|
py
|
Python
|
oura/models/activity.py
|
kevingoldsmith/python-ouraring
|
aa398b93efd95a4b26c29b3db542e9fd914045d5
|
[
"MIT"
] | null | null | null |
oura/models/activity.py
|
kevingoldsmith/python-ouraring
|
aa398b93efd95a4b26c29b3db542e9fd914045d5
|
[
"MIT"
] | null | null | null |
oura/models/activity.py
|
kevingoldsmith/python-ouraring
|
aa398b93efd95a4b26c29b3db542e9fd914045d5
|
[
"MIT"
] | null | null | null |
from helper import OuraModel, from_json
class Activity(OuraModel):
_KEYS = [
"summary_date",
"day_start",
"day_end",
"timezone",
"score",
"score_stay_active",
"score_move_every_hour",
"score_meet_daily_targets",
"score_training_frequency",
"score_training_volume",
"score_recovery_time",
"daily_movement",
"non_wear",
"rest",
"inactive",
"inactivity_alerts",
"low",
"medium",
"high",
"steps",
"cal_total",
"cal_active",
"met_min_inactive",
"met_min_low",
"met_min_medium_plus",
"met_min_medium",
"met_min_high",
"average_met",
"class_5min",
"met_1min"
]
if __name__ == '__main__':
test = """
{
"summary_date": "2016-09-03",
"day_start": "2016-09-03T04:00:00+03:00",
"day_end": "2016-09-04T03:59:59+03:00",
"timezone": 180,
"score": 87,
"score_stay_active": 90,
"score_move_every_hour": 100,
"score_meet_daily_targets": 60,
"score_training_frequency": 96,
"score_training_volume": 95,
"score_recovery_time": 100,
"daily_movement": 7806,
"non_wear": 313,
"rest": 426,
"inactive": 429,
"inactivity_alerts": 0,
"low": 224,
"medium": 49,
"high": 0,
"steps": 9206,
"cal_total": 2540,
"cal_active": 416,
"met_min_inactive": 9,
"met_min_low": 167,
"met_min_medium_plus": 159,
"met_min_medium": 159,
"met_min_high": 0,
"average_met": 1.4375,
"class_5min":"1112211111111111111111111111111111111111111111233322322223333323322222220000000000000000000000000000000000000000000000000000000233334444332222222222222322333444432222222221230003233332232222333332333333330002222222233233233222212222222223121121111222111111122212321223211111111111111111",
"met_1min": [ 1.2,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,0.9,0.9,1.2,0.9,1.1,1.2,1.1,1.1,0.9,0.9,0.9,1.1,0.9,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,1.2,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.3,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.3,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.2,0.9,0.9,0.9,1.1,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.9,2.7,2.8,1.6,1.8,1.5,1.5,1.8,1.6,1.9,1.4,1.9,1.4,1.5,1.7,1.7,1.4,1.5,1.5,1.7,1.3,1.7,1.7,1.9,1.5,1.4,1.8,2.2,1.4,1.6,1.7,1.7,1.4,1.5,1.6,1.4,1.4,1.7,1.6,1.3,1.3,1.4,1.3,2.6,1.6,1.7,1.5,1.6,1.6,1.8,1.9,1.8,1.7,2,1.8,2,1.7,1.5,1.3,2.4,1.4,1.6,2,2.8,1.8,1.5,1.8,1.6,1.5,1.8,1.8,1.4,1.6,1.7,1.7,1.6,1.5,1.5,1.8,1.8,1.7,1.8,1.8,1.5,2.4,1.9,1.3,1.2,1.4,1.3,1.5,1.2,1.4,1.4,1.6,1.5,1.6,1.4,1.4,1.6,1.6,1.6,1.8,1.7,1.3,1.9,1.3,1.2,1.2,1.3,1.5,1.4,1.4,1.3,1.7,1.2,1.3,1.5,1.7,1.5,2.6,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.9,3.6,0.9,0.1,0.1,0.1,0.1,0.1,3.3,3.8,3.6,2.3,3.1,3.2,3.5,4.3,3.6,1.7,1.6,2.8,2.1,3.3,4.9,3.3,1.8,5,4.6,5.3,4.9,4.9,5.4,5.4,5.2,5.3,4.5,5.3,4.5,4.4,5,5.3,4.8,4.6,1.8,4.4,3.6,3.5,2.9,2.6,3.1,0.9,0.1,2.9,3.8,1.7,2.8,1.8,1.5,1.4,1.4,1.3,1.4,1.3,1.4,1.3,1.3,1.2,1.3,1.6,1.5,1.5,1.4,1.8,1.3,1.4,1.3,1.4,1.6,1.6,1.4,1.3,1.4,1.4,1.6,1.5,1.4,2,1.5,1.4,1.4,1.3,1.2,1.3,1.3,1.6,1.6,1.5,1.5,1.8,1.5,1.2,1.2,1.5,1.6,1.5,1.7,1.7,1.5,1.6,2.5,1.5,1.3,1.2,1.4,1.6,1.3,1.6,1.7,2,1.2,1.3,1.9,3.3,2.8,1.7,1.4,1.4,1.4,1.5,1.4,1.5,1.3,2,1.4,1.2,1.5,1.2,1.2,1.8,2.4,3,4.6,4,3.6,2.2,0.9,4,3.3,2.6,4.4,2.3,4.5,5.2,5.2,5,5.3,5,4.6,5.4,5.7,5.5,5.2,5.5,3.8,5,5,4.4,4.8,5.5,4.1,4.5,3.2,3.3,2.6,4,3.4,2.1,1.5,1.5,1.4,1.4,1.5,1.3,1.3,1.5,1.4,1.2,1.2,1.4,1.2,1.2,1.2,1.2,1.1,1.3,1.6,1.8,1.5,1.3,1.5,1.5,1.6,1.5,1.6,1.4,1.4,1.4,1.3,1.3,1.3,1.3,1.2,1.3,1.2,1.2,1.2,0.9,1.1,1.1,1.1,1.1,1.7,1.1,0.9,0.9,0.9,1.1,1.1,0.9,1.1,0.9,1.2,1.3,2.4,2.2,1.6,0.9,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,2.4,2.7,1.3,1.4,1.3,1.2,1.3,1.2,1.4,1.4,2.2,1.7,2.9,1.3,1.4,1.2,1.3,1.8,2.1,2.2,2.5,1.9,2.3,2.7,2.3,2,1.7,2,2.1,1.7,1.8,1.2,1.2,0.9,0.9,1.3,1.4,1.2,1.6,1.7,2.4,2.4,2,1.2,1.3,1.3,1.2,1.3,2.4,1.2,1.2,1.3,2,1.3,1.8,1.2,1.2,1.2,1.2,1.8,1.7,1.3,1.3,1.6,1.8,2.2,1.3,1.5,1.5,1.8,1.3,1.7,1.8,2.1,2,1.9,1.6,2,1.8,2,1.6,1.2,1.7,1.5,1.5,2.3,2.6,3.3,3.3,1.5,1.2,1.3,1.5,1.3,1.5,1.5,3.7,2.4,3.3,3,3.7,4.5,2.8,1.3,1.9,2.2,1.6,1.3,1.2,1.3,1.3,2.9,3.3,2,2.2,2.6,2.7,4.5,3.2,4.5,3.3,2.1,3.4,3,2.7,3.3,2.1,2.3,1.7,1.7,2.8,0.9,2.2,0.9,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,1.4,1.6,1.2,1.2,1.3,1.7,1.3,1.5,1.3,1.3,1.3,1.3,1.5,2.9,1.5,1.2,1.4,1.2,1.3,1.3,1.4,1.3,1.4,1.4,1.2,1.2,1.3,1.2,1.2,1.2,1.2,1.4,1.4,1.3,1.2,1.2,1.2,1.9,1.4,1.3,1.4,1.3,1.7,1.3,2.1,2.9,1.9,1.8,1.6,1.4,1.4,1.7,1.2,1.5,1.6,1.9,1.5,1.8,1.3,1.2,1.8,2.3,2,2.2,1.7,1.5,1.2,1.2,1.2,1.1,1.1,1.4,3.3,2,1.5,2.4,2.4,1.6,2.6,2.5,2.3,1.5,1.2,1.2,1.2,1.3,1.2,1.2,1.3,2,1.5,1.7,1.2,1.3,1.6,1.5,1.4,1.4,1.4,1.2,1.2,1.1,1.1,0.9,0.9,1.3,0.9,0.9,0.9,0.9,0.9,1.3,1.1,1.1,1.3,0.9,0.9,1.3,0.9,1.5,2.1,2.1,1.2,1.2,1.3,1.2,1.2,1.5,1.4,1.3,1.2,1.2,1.3,1.3,1.2,1.3,1.2,1.2,1.2,1.2,1.2,1.4,1.2,1.5,1.5,1.4,1.4,1.5,1.5,1.3,1.2,1.2,0.9,2.3,1.8,1.3,1.2,1.2,1.1,0.9,0.9,0.9,1.2,1.6,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,0.9,0.9,0.9,1.9,1.2,1.3,1.1,1.3,1.1,0.9,0.9,0.9,1.2,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,1.1,0.9,0.9,0.9,0.9,1.2,0.9,0.9,0.9,1.1,0.9,0.9,1.2,1.6,1.4,1.3,1.4,1.5,1.2,1.2,1.1,0.9,0.9,1.1,1.1,0.9,0.9,1.1,1.1,0.9,0.9,0.9,0.9,0.9,1.1,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,1.1,1.3,0.9,1.3,1.1,1.1,0.9,1.1,0.9,1.1,0.9,1.3,1.2,0.9,1.1,0.9,0.9,0.9,1.1,0.9,0.9,1.1,1.2,1.6,0.9,1.1,1.4,3.7,2.8,3.2,2.7,1.2,1.2,1.3,1.3,1.3,1.2,1.2,0.9,0.9,0.9,1.1,1.1,0.9,1.1,1.3,0.9,1.1,1.1,1.1,1.3,4.1,1.5,1.7,1.2,1.2,1.2,1.2,1.2,1.2,1.2,1.1,0.9,0.9,0.9,1.1,1.3,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,0.9,0.9,1.1,0.9,0.9,1.1,0.9,0.9,0.9,0.9,0.9,1.1,0.9,0.9,0.9,0.9,0.9,0.9,0.9,1.1,0.9,1.3,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.9 ]
}"""
activity = from_json(test, Activity)
print(activity)
| 104.28
| 5,725
| 0.52244
| 3,048
| 7,821
| 1.31332
| 0.029199
| 0.20035
| 0.251062
| 0.330752
| 0.642518
| 0.607295
| 0.58706
| 0.5336
| 0.505871
| 0.429178
| 0
| 0.451779
| 0.079913
| 7,821
| 75
| 5,726
| 104.28
| 0.104503
| 0
| 0
| 0
| 0
| 0.014286
| 0.929804
| 0.804884
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.014286
| 0
| 0.042857
| 0.014286
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
9aef8102c930f2ded58bcf71a12a431d56f87125
| 1,602
|
py
|
Python
|
gym_cellular_automata/forest_fire/helicopter/utils/helicopter_shape.py
|
BrunoGupa/gym-cellular-automata
|
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
|
[
"MIT"
] | 13
|
2021-02-22T20:26:11.000Z
|
2022-02-03T02:33:33.000Z
|
gym_cellular_automata/forest_fire/helicopter/utils/helicopter_shape.py
|
BrunoGupa/gym-cellular-automata
|
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
|
[
"MIT"
] | 1
|
2021-10-18T00:50:01.000Z
|
2021-10-18T00:50:01.000Z
|
gym_cellular_automata/forest_fire/helicopter/utils/helicopter_shape.py
|
BrunoGupa/gym-cellular-automata
|
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
|
[
"MIT"
] | 2
|
2021-03-30T23:35:09.000Z
|
2021-09-03T16:37:40.000Z
|
SVG_PATH = "M 12.2727,21.5884 H 65 M 27.2121,55.2753 h 28.1212 c 0,0 5.2728,0 6.1515,-2.6364 M 50.0606,47.3662 c 0,0 2.6364,0.8787 2.6364,7.0303 M 35.1212,47.3662 c 0,0 -2.6364,0.8787 -2.6364,7.0303 M 39.73,20.3298 v 8.73 c 0,0.24 -0.09,0.46 -0.24,0.63 -0.53,0 -1.1,-0.01 -1.72,-0.02 -0.15,-0.17 -0.23,-0.38 -0.23,-0.61 v -8.73 c 0,-0.52 0.42,-0.94 0.94,-0.94 h 0.32 c 0.51,0 0.93,0.42 0.93,0.94 z m 0.61,13.88 v 8.74 c 0,0.49 -0.41,0.9 -0.91,0.9 h -3.02 c -0.5,0 -0.9,-0.41 -0.9,-0.9 v -8.74 c 0,-0.5 0.4,-0.9 0.9,-0.9 h 3.02 c 0.5,0 0.91,0.4 0.91,0.9 z m 20.24,9.64 H 44.79 c -0.49,0 -0.88,-0.39 -0.88,-0.88 v -12.4 c 0,-0.43 -0.4,-0.78 -0.8799,-0.78 0,0 -1.36,-0.05 -3.54,-0.1 -0.53,0 -1.1,-0.01 -1.72,-0.02 -7.02,-0.08 -19.31,0.03 -25.68,1.6801 -0.41,0.11 -0.83,-0.07 -1.02,-0.45 l -2.31,-3.75 c 0,0 -1.76,-2.63 -1.76,0 l 1.66,11.54 c 0.05,0.44 0.4301,0.77 0.8701,0.77 h 0.99 c 0.48,0 0.87,-0.4 0.87,-0.88 v -1.86 c 0,-0.45 0.34,-0.82 0.78,-0.87 3.07,-0.35 14.25,-1.29 16.28,2.9399 0.01,0.02 0.02,0.04 0.03,0.0601 l -0.28,3.48 -0.04,0.58 -0.0699,0.94 c 0,2.39 2.15,4 5.56,4.97 2.86,0.81 6.6,1.18 10.7,1.18 2.7401,0 5.33,-0.08 7.59,-0.34 3.69,-0.4301 6.53,-1.34 7.85,-3.17 0.36,-0.49 0.61,-1.04 0.72,-1.66 0.05,-0.23 0.08,-0.48 0.09,-0.73 0,-0.03 0.01,-0.07 0,-0.11 C 60.6,43.9398 60.59,43.8998 60.58,43.8498 Z m -20.24,-0.9 c 0,0.49 -0.41,0.9 -0.91,0.9 h -3.02 c -0.5,0 -0.9,-0.41 -0.9,-0.9 v -8.74 c 0,-0.5 0.4,-0.9 0.9,-0.9 h 3.02 c 0.5,0 0.91,0.4 0.91,0.9 z m 20.12,0.17 c 0.05,0.25 0.09,0.49 0.12,0.73 H 44.79 c -0.49,0 -0.88,-0.39 -0.88,-0.88 v -12.28 c 8.35,0.2399 15.2,5.5399 16.55,12.43 z"
| 801
| 1,601
| 0.563046
| 586
| 1,602
| 1.537543
| 0.211604
| 0.051054
| 0.039956
| 0.026637
| 0.330744
| 0.330744
| 0.310766
| 0.310766
| 0.310766
| 0.310766
| 0
| 0.599569
| 0.13171
| 1,602
| 1
| 1,602
| 1,602
| 0.048167
| 0
| 0
| 0
| 0
| 1
| 0.991261
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 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
| 0
| 0
| 0
| 0
|
0
| 8
|
b163187a867da3e0e600039c182a4c5010423887
| 1,032
|
py
|
Python
|
tests/evaluation/external.py
|
PiNaCl/cclust_package
|
18100b89bbaa6ae3b34dbb3a65e33755bcbb627f
|
[
"BSD-3-Clause"
] | 26
|
2016-04-18T12:59:18.000Z
|
2021-09-22T14:28:25.000Z
|
tests/evaluation/external.py
|
boutalbi/cclust_package
|
d301cf8d4073af5e972edd1a05320e2343ab8895
|
[
"BSD-3-Clause"
] | 9
|
2017-02-13T16:35:24.000Z
|
2021-12-03T21:42:09.000Z
|
tests/evaluation/external.py
|
boutalbi/cclust_package
|
d301cf8d4073af5e972edd1a05320e2343ab8895
|
[
"BSD-3-Clause"
] | 21
|
2017-01-09T14:21:00.000Z
|
2022-03-23T10:03:04.000Z
|
from unittest import TestCase
from coclust.evaluation import external
class TestAccuracy(TestCase):
def test_accuracy_1(self):
true_row_labels = [0, 0, 1, 1]
predicted_row_labels = [0, 0, 1, 1]
accuracy = external.accuracy(true_row_labels, predicted_row_labels)
self.assertEqual(accuracy, 1)
def test_accuracy_2(self):
true_row_labels = [0, 0, 1, 1]
predicted_row_labels = [1, 1, 0, 0]
accuracy = external.accuracy(true_row_labels, predicted_row_labels)
self.assertEqual(accuracy, 1)
def test_accuracy_3(self):
true_row_labels = [0, 1, 1, 0]
predicted_row_labels = [1, 1, 0, 0]
accuracy = external.accuracy(true_row_labels, predicted_row_labels)
self.assertEqual(accuracy, 0.5)
def test_accuracy_4(self):
true_row_labels = [0, 0, 1, 1, 1]
predicted_row_labels = [1, 1, 0, 1, 0]
accuracy = external.accuracy(true_row_labels, predicted_row_labels)
self.assertEqual(accuracy, 0.8)
| 30.352941
| 75
| 0.660853
| 144
| 1,032
| 4.458333
| 0.173611
| 0.224299
| 0.161994
| 0.105919
| 0.803738
| 0.775701
| 0.76947
| 0.76947
| 0.702492
| 0.702492
| 0
| 0.05598
| 0.238372
| 1,032
| 33
| 76
| 31.272727
| 0.760814
| 0
| 0
| 0.434783
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 1
| 0.173913
| false
| 0
| 0.086957
| 0
| 0.304348
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b17bbecf341139cf034951607a9b0e86a5e155b5
| 2,107
|
py
|
Python
|
PC_chp FIles/PC_chp9_classes/car.py
|
rwelsh98/isat252
|
c2647bfa1200aefb7aba9b911e3e2f625af445c4
|
[
"MIT"
] | null | null | null |
PC_chp FIles/PC_chp9_classes/car.py
|
rwelsh98/isat252
|
c2647bfa1200aefb7aba9b911e3e2f625af445c4
|
[
"MIT"
] | null | null | null |
PC_chp FIles/PC_chp9_classes/car.py
|
rwelsh98/isat252
|
c2647bfa1200aefb7aba9b911e3e2f625af445c4
|
[
"MIT"
] | null | null | null |
"""
Your module description
"""
class Car:
"""A simple attempt to represent a car."""
def __init__(self, make, model, year):
"""Initialze attributes to describe a car."""
self.make=make
self.model=model
self.year=year
def get_descriptive_name(self):
"""Return a neatly formatted descriptive name."""
long_name=f"{self.year} {self.make} {self.model}"
return long_name.title()
my_new_car=Car('audi', ' a4', 2019)
print(my_new_car.get_descriptive_name())
#setting a default value for an attribute.
class Car:
"""A simple attempt to represent a car."""
def __init__(self, make, model, year):
"""Initialze attributes to describe a car."""
self.make=make
self.model=model
self.year=year
self.odometer_reading=0
def get_descriptive_name(self):
"""Return a neatly formatted descriptive name."""
long_name=f"{self.year} {self.make} {self.model}"
return long_name.title()
def read_odometer(self):
"""Print a statement showing the car's mileage"""
print(f"This car had {self.odometer_reading} miles on it.")
my_new_car=Car('audi', ' a4', 2019)
print(my_new_car.get_descriptive_name())
my_new_car.read_odometer()
#modifying attribute values
class Car:
"""A simple attempt to represent a car."""
def __init__(self, make, model, year):
"""Initialze attributes to describe a car."""
self.make=make
self.model=model
self.year=year
self.odometer_reading=0
def get_descriptive_name(self):
"""Return a neatly formatted descriptive name."""
long_name=f"{self.year} {self.make} {self.model}"
return long_name.title()
def read_odometer(self):
"""Print a statement showing the car's mileage"""
print(f"This car had {self.odometer_reading} miles on it.")
my_new_car=Car('audi', ' a4', 2019)
print(my_new_car.get_descriptive_name())
my_new_car.odometer_reading=23
my_new_car.read_odometer()
| 30.536232
| 67
| 0.634077
| 287
| 2,107
| 4.456446
| 0.198606
| 0.056294
| 0.056294
| 0.035184
| 0.924941
| 0.899922
| 0.899922
| 0.899922
| 0.899922
| 0.899922
| 0
| 0.011942
| 0.244898
| 2,107
| 69
| 68
| 30.536232
| 0.791955
| 0.257238
| 0
| 0.974359
| 0
| 0
| 0.151132
| 0.030626
| 0
| 0
| 0
| 0
| 0
| 1
| 0.205128
| false
| 0
| 0
| 0
| 0.358974
| 0.128205
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
4945eca4ea6b5c54f58c8635db2b58d988873a34
| 9,924
|
py
|
Python
|
src/genie/libs/parser/nxos/tests/ShowSystemInternalSysmgrServiceName/cli/equal/golden_output_2_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 204
|
2018-06-27T00:55:27.000Z
|
2022-03-06T21:12:18.000Z
|
src/genie/libs/parser/nxos/tests/ShowSystemInternalSysmgrServiceName/cli/equal/golden_output_2_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 468
|
2018-06-19T00:33:18.000Z
|
2022-03-31T23:23:35.000Z
|
src/genie/libs/parser/nxos/tests/ShowSystemInternalSysmgrServiceName/cli/equal/golden_output_2_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 309
|
2019-01-16T20:21:07.000Z
|
2022-03-30T12:56:41.000Z
|
expected_output = {
'instance':
{'__inst_001__ospf':
{'tag':
{'ENT':
{'internal_id': 83,
'last_restart_date': 'Wed '
'Mar '
'18 '
'10:14:35 '
'2020',
'pid': 23994,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_crashed',
'restart_count': 1,
'sap': 320,
'state': 'SRV_STATE_HANDSHAKED',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x41000119'}}},
'__inst_002__ospf':
{'tag':
{'IPN':
{'internal_id': 88,
'last_restart_date': 'Wed '
'Mar '
'18 '
'10:14:35 '
'2020',
'pid': 23993,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_crashed',
'restart_count': 1,
'sap': 321,
'state': 'SRV_STATE_HANDSHAKED',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x42000119'}}},
'__inst_003__ospf':
{'tag':
{'l3vpn':
{'internal_id': 93,
'last_restart_date': 'Wed '
'Mar '
'18 '
'10:14:35 '
'2020',
'pid': 23992,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_crashed',
'restart_count': 1,
'sap': 322,
'state': 'SRV_STATE_HANDSHAKED',
'state_start_date': 'Wed '
'Mar '
'18 '
'10:14:35 '
'2020',
'uuid': '0x43000119'}}},
'__inst_004__ospf':
{'tag':
{'N/A':
{'internal_id': 98,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x44000119'}}},
'__inst_005__ospf':
{'tag':
{'N/A':
{'internal_id': 103,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x45000119'}}},
'__inst_006__ospf':
{'tag':
{'N/A':
{'internal_id': 107,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x46000119'}}},
'__inst_007__ospf':
{'tag':
{'N/A':
{'internal_id': 111,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x47000119'}}},
'__inst_008__ospf':
{'tag':
{'N/A':
{'internal_id': 115,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x48000119'}}},
'__inst_009__ospf':
{'tag':
{'N/A':
{'internal_id': 119,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x49000119'}}},
'__inst_010__ospf':
{'tag':
{'N/A':
{'internal_id': 123,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x4A000119'}}},
'__inst_011__ospf':
{'tag':
{'N/A':
{'internal_id': 127,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x4B000119'}}},
'__inst_012__ospf':
{'tag':
{'N/A':
{'internal_id': 131,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x4C000119'}}},
'__inst_013__ospf':
{'tag':
{'N/A':
{'internal_id': 135,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x4D000119'}}},
'__inst_014__ospf':
{'tag':
{'N/A':
{'internal_id': 139,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x4E000119'}}},
'__inst_015__ospf':
{'tag':
{'N/A':
{'internal_id': 143,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x4F000119'}}},
'__inst_016__ospf':
{'tag':
{'N/A':
{'internal_id': 147,
'plugin_id': '1',
'process_name': 'ospf',
'reboot_state': 'never_started',
'state': 'SRV_STATE_WAIT_SPAWN_CONDITION',
'state_start_date': 'Wed '
'Mar 18 '
'10:14:35 '
'2020',
'uuid': '0x50000119'}}}}}
| 41.697479
| 62
| 0.290911
| 637
| 9,924
| 4.124019
| 0.150706
| 0.050628
| 0.072326
| 0.086791
| 0.838599
| 0.838599
| 0.744576
| 0.744576
| 0.744576
| 0.744576
| 0
| 0.125469
| 0.596836
| 9,924
| 237
| 63
| 41.873418
| 0.531117
| 0
| 0
| 0.748936
| 0
| 0
| 0.295102
| 0.039307
| 0
| 0
| 0.016126
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
4998be621089996ec201424e5b2b22ed304e73db
| 34,018
|
py
|
Python
|
iter8_analytics/tests/unit/v2/experiment_test.py
|
sriumcp/iter8-analytics
|
87704d0111328a718e6692d5f0aed946083732ba
|
[
"Apache-2.0"
] | null | null | null |
iter8_analytics/tests/unit/v2/experiment_test.py
|
sriumcp/iter8-analytics
|
87704d0111328a718e6692d5f0aed946083732ba
|
[
"Apache-2.0"
] | null | null | null |
iter8_analytics/tests/unit/v2/experiment_test.py
|
sriumcp/iter8-analytics
|
87704d0111328a718e6692d5f0aed946083732ba
|
[
"Apache-2.0"
] | null | null | null |
"""Tests for module iter8_analytics.api.v2"""
# standard python stuff
import logging
import json
import os
import copy
# python libraries
import requests_mock
from iter8_analytics import fastapi_app
from iter8_analytics.api.v2.types import \
ExperimentResource, AggregatedMetricsAnalysis, VersionAssessmentsAnalysis, \
WinnerAssessmentAnalysis, WeightsAnalysis, VersionWeight
from iter8_analytics.config import env_config
import iter8_analytics.constants as constants
from iter8_analytics.api.v2.examples.examples_canary import \
er_example, er_example_step1, er_example_step2, er_example_step3, \
am_response, va_response, wa_response, w_response, mr_example, mocked_mr_example
from iter8_analytics.api.v2.examples.examples_ab import \
ab_er_example, ab_er_example_step1, ab_er_example_step2, ab_er_example_step3, \
ab_am_response, ab_va_response, ab_wa_response, ab_w_response, ab_mr_example
from iter8_analytics.api.v2.examples.examples_abn import \
abn_er_example, abn_er_example_step1, abn_er_example_step2, abn_er_example_step3, \
abn_am_response, abn_va_response, abn_wa_response, abn_w_response, abn_mr_example
from iter8_analytics.api.v2.metrics import get_aggregated_metrics
from iter8_analytics.api.v2.experiment import get_version_assessments, get_winner_assessment, \
get_weights, get_analytics_results
logger = logging.getLogger('iter8_analytics')
if not logger.hasHandlers():
fastapi_app.config_logger(env_config[constants.LOG_LEVEL])
logger.info(env_config)
# class TestExperiment:
# """Test Iter8 v2 experiment"""
def test_v2_input_object():
ExperimentResource(** er_example)
ExperimentResource(** er_example_step1)
ExperimentResource(** er_example_step2)
ExperimentResource(** er_example_step3)
def test_experiment_response_objects():
AggregatedMetricsAnalysis(** am_response)
VersionAssessmentsAnalysis(** va_response)
WinnerAssessmentAnalysis(** wa_response)
WeightsAnalysis(** w_response)
def test_v2_aggregated_metrics_endpoint():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
response_json = json.load(open(file_path))
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=response_json)
expr = ExperimentResource(** er_example)
agm = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
assert agm.data['request-count'].data['default'].value == \
response_json['data']['result'][0]['value'][1]
ercopy = copy.deepcopy(er_example)
del ercopy["status"]["metrics"]
expr = ExperimentResource(** ercopy)
agm = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
def test_v2_version_assessment_endpoint():
expr = ExperimentResource(** er_example_step1)
get_version_assessments(expr.convert_to_float())
def test_v2_winner_assessment_endpoint():
expr = ExperimentResource(** er_example_step2)
get_winner_assessment(expr.convert_to_float())
def test_v2_weights_endpoint():
expr = ExperimentResource(** er_example_step3)
get_weights(expr.convert_to_float())
def test_v2_analytics_assessment_endpoint():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
expr = ExperimentResource(** er_example)
get_analytics_results(expr.convert_to_float()).convert_to_quantity()
def test_mock_metrics():
ercopy = copy.deepcopy(er_example)
ercopy["status"]["metrics"] = mocked_mr_example
expr = ExperimentResource(** ercopy)
agm = get_aggregated_metrics(
expr.convert_to_float())
logger.info(agm)
assert agm.data['request-count'].data['default'].value > 100.0
assert agm.data['request-count'].data['canary'].value > 100.0
assert agm.data['mean-latency'].data['default'].value > 15.0
assert agm.data['mean-latency'].data['canary'].value > 9.0
def test_v2_am_without_candidates():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(er_example)
del example['spec']['versionInfo']['candidates']
expr = ExperimentResource(** example)
get_aggregated_metrics(expr.convert_to_float()).convert_to_quantity()
def test_v2_analytics_assessment_conformance():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(er_example)
del example['spec']['versionInfo']['candidates']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
get_analytics_results(expr.convert_to_float()).convert_to_quantity()
def test_v2_version_assessment_conformance():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(er_example)
del example['spec']['versionInfo']['candidates']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
resp = get_analytics_results(
expr.convert_to_float()).convert_to_quantity()
assert resp.version_assessments.data == {'default': [True]}
def test_v2_va_without_am():
expr = ExperimentResource(** er_example)
try:
get_version_assessments(expr.convert_to_float())
except AttributeError:
pass
def test_v2_wa_without_va():
expr = ExperimentResource(** er_example)
try:
get_winner_assessment(expr.convert_to_float())
except AttributeError:
pass
def test_v2_w_without_wa():
expr = ExperimentResource(** er_example)
try:
get_weights(expr.convert_to_float())
except AttributeError:
pass
def test_v2_no_prometheus_response():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_no_response.json')
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
expr = ExperimentResource(** er_example)
resp = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
expected_response = {
"request-count": {
"max": None,
"min": None,
"data": {
"default": {
"max": None,
"min": None,
"sample_size": None,
"value": None
},
"canary": {
"max": None,
"min": None,
"sample_size": None,
"value": None
}
}
},
"mean-latency": {
"max": None,
"min": None,
"data": {
"default": {
"max": None,
"min": None,
"sample_size": None,
"value": None
},
"canary": {
"max": None,
"min": None,
"sample_size": None,
"value": None
}
}
}
}
assert resp.data == expected_response
def test_v2_va_with_no_metric_value():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_no_response.json')
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
expr = ExperimentResource(** er_example)
resp = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
example = copy.deepcopy(er_example_step1)
example['status']['analysis']["aggregatedMetrics"] = resp
expr = ExperimentResource(** example)
resp2 = get_version_assessments(expr.convert_to_float())
assert resp2.data == {'default': [False], 'canary': [False]}
def test_v2_va_without_mean_latency_metric():
example = copy.deepcopy(er_example_step1)
example['status']['analysis']['aggregatedMetrics']["data"].pop(
'mean-latency', None)
expr = ExperimentResource(** example)
resp = get_version_assessments(expr.convert_to_float())
assert resp.message == \
"Error: ; Warning: Aggregated metric object for mean-latency metric is unavailable.; Info: "
def test_v2_canary_passing_criteria():
example = copy.deepcopy(er_example_step1)
example['spec']['criteria']['objectives'][0]['upperLimit'] = 500
expr = ExperimentResource(** example)
resp = get_version_assessments(expr.convert_to_float())
assert resp.data == {'default': [True], 'canary': [True]}
def test_v2_canary_failing_upperlimit_criteria():
expr = ExperimentResource(** er_example_step1)
resp = get_version_assessments(expr.convert_to_float())
assert resp.data == {'default': [True], 'canary': [False]}
def test_v2_canary_failing_lowerlimit_criteria():
example = copy.deepcopy(er_example_step1)
example['spec']['criteria']['objectives'][0].pop('upperLimit')
example['spec']['criteria']['objectives'][0]['lowerLimit'] = 500
expr = ExperimentResource(** example)
resp = get_version_assessments(expr.convert_to_float())
assert resp.data == {'default': [False], 'canary': [False]}
def test_v2_canary_is_winner():
example = copy.deepcopy(er_example_step2)
example['status']['analysis']['versionAssessments'] = {
"data": {
"default": [
True
],
"canary": [
True
]
},
"message": "All ok"
}
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert resp.data.winnerFound == wa_response['data']['winnerFound']
assert resp.data.winner == wa_response['data']['winner']
def test_v2_analytics_assessment_conformance_winner():
example = copy.deepcopy(er_example_step2)
example['status']['analysis']['versionAssessments'] = {
"data": {
"default": [
True
]
},
"message": "All ok"
}
del example['spec']['versionInfo']['candidates']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert resp.data.winnerFound is True
assert resp.data.winner == 'default'
def test_v2_default_is_winner():
example = copy.deepcopy(er_example_step2)
example['status']['analysis']['versionAssessments'] = {
"data": {
"default": [
True
],
"canary": [
False
]
},
"message": "All ok"
}
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert resp.data.winnerFound == wa_response['data']['winnerFound']
assert resp.data.winner == 'default'
def test_v2_no_winner():
example = copy.deepcopy(er_example_step2)
example['status']['analysis']['versionAssessments'] = {
"data": {
"default": [
False
],
"canary": [
False
]
},
"message": "All ok"
}
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert resp.data.winnerFound is False
def test_v2_weights_with_winner():
expr = ExperimentResource(** er_example_step3)
resp = get_weights(expr.convert_to_float())
expected_resp = [
VersionWeight(name="default", value=5),
VersionWeight(name="canary", value=95)
]
assert resp.data == expected_resp
def test_v2_weights_with_no_winner():
example = copy.deepcopy(er_example_step3)
example['status']['analysis']['winnerAssessment']['data'] = {
"winnerFound": False
}
expr = ExperimentResource(** example)
resp = get_weights(expr.convert_to_float())
assert resp.data == w_response['data']
def test_v2_inc_old_weights_and_best_versions_and_canary_winner():
example = copy.deepcopy(er_example_step3)
example['status']['currentWeightDistribution'] = [{
"name": "default",
"value": 70
}, {
"name": "canary",
"value": 30
}]
expected_resp = [{
"name": "default",
"value": 5
}, {
"name": "canary",
"value": 95
}]
expr = ExperimentResource(** example)
resp = get_weights(expr.convert_to_float())
assert resp.data == expected_resp
def test_v2_inc_old_weights_and_no_best_versions():
example = copy.deepcopy(er_example_step3)
example['status']['currentWeightDistribution'] = [{
"name": "default",
"value": 50
}, {
"name": "canary",
"value": 50
}]
example["status"]["analysis"]["winnerAssessment"]["data"] = {
"winnerFound": False
}
expected_resp = [{
"name": "default",
"value": 95
}, {
"name": "canary",
"value": 5
}]
expr = ExperimentResource(** example)
resp = get_weights(expr.convert_to_float())
assert resp.data == expected_resp
def test_v2_set_weights_config():
example = copy.deepcopy(er_example_step3)
example['status']['currentWeightDistribution'] = [{
"name": "default",
"value": 50
}, {
"name": "canary",
"value": 50
}]
example['spec']['strategy']['weights'] = {
"maxCandidateWeight": 53,
"maxCandidateWeightIncrement": 2,
"algorithm": 'Progressive'
}
expected_resp = [{
"name": "default",
"value": 48
}, {
"name": "canary",
"value": 52
}]
expr = ExperimentResource(** example)
resp = get_weights(expr.convert_to_float())
assert resp.data == expected_resp
def test_v2_using_previous_metric_status():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_no_response.json')
mock.get(er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(er_example_step1)
example['status']['metrics'] = mr_example
expr = ExperimentResource(** example)
resp = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
expected_response = copy.deepcopy(am_response)
assert resp.data['mean-latency'].data['default'].value == \
expected_response['data']['mean-latency']['data']['default']['value']
########## A/B TESTS #############
def test_v2_ab_input_object():
ExperimentResource(** ab_er_example)
ExperimentResource(** ab_er_example_step1)
ExperimentResource(** ab_er_example_step2)
ExperimentResource(** ab_er_example_step3)
def test_experiment_ab_response_objects():
AggregatedMetricsAnalysis(** ab_am_response)
VersionAssessmentsAnalysis(** ab_va_response)
WinnerAssessmentAnalysis(** ab_wa_response)
WeightsAnalysis(** ab_w_response)
def test_v2_ab_aggregated_metrics_endpoint():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
response_json = json.load(open(file_path))
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=response_json)
expr = ExperimentResource(** ab_er_example)
agm = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
assert agm.data['request-count'].data['default'].value == \
response_json['data']['result'][0]['value'][1]
def test_v2_ab_version_assessment_endpoint():
expr = ExperimentResource(** ab_er_example_step1)
get_version_assessments(expr.convert_to_float())
def test_v2_ab_winner_assessment_endpoint():
expr = ExperimentResource(** ab_er_example_step2)
get_winner_assessment(expr.convert_to_float())
def test_v2_ab_weights_endpoint():
expr = ExperimentResource(** ab_er_example_step3)
get_weights(expr.convert_to_float())
def test_v2_ab_analytics_assessment_endpoint():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
expr = ExperimentResource(** ab_er_example)
get_analytics_results(expr.convert_to_float()).convert_to_quantity()
def test_v2_ab_am_without_candidates():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(ab_er_example)
del example['spec']['versionInfo']['candidates']
expr = ExperimentResource(** example)
get_aggregated_metrics(expr.convert_to_float()).convert_to_quantity()
def test_v2_ab_analytics_assessment_conformance():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(ab_er_example)
del example['spec']['versionInfo']['candidates']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
get_analytics_results(expr.convert_to_float()).convert_to_quantity()
def test_conformance_without_objectives():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(ab_er_example)
del example['spec']['versionInfo']['candidates']
del example['spec']['criteria']['objectives']
del example['spec']['criteria']['rewards']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
get_analytics_results(expr.convert_to_float()).convert_to_quantity()
def test_v2_ab_version_assessment_conformance():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(ab_er_example)
del example['spec']['versionInfo']['candidates']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
resp = get_analytics_results(
expr.convert_to_float()).convert_to_quantity()
assert resp.version_assessments.data == {'default': [True]}
def test_v2_ab_va_without_am():
expr = ExperimentResource(** ab_er_example)
try:
get_version_assessments(expr.convert_to_float())
except AttributeError:
pass
def test_v2_ab_wa_without_va():
expr = ExperimentResource(** ab_er_example)
try:
get_winner_assessment(expr.convert_to_float())
except AttributeError:
pass
def test_v2_ab_w_without_wa():
expr = ExperimentResource(** ab_er_example)
try:
get_weights(expr.convert_to_float())
except AttributeError:
pass
def test_v2_ab_without_reward():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(ab_er_example)
del example['spec']['criteria']['rewards']
expr = ExperimentResource(** example)
resp = get_analytics_results(
expr.convert_to_float()).convert_to_quantity()
assert "No reward metric in experiment" in resp.winner_assessment.message
assert resp.winner_assessment.data.winnerFound is False
def test_v2_ab_without_reward_metric_config():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(ab_er_example)
del example["status"]["metrics"][2]
expr = ExperimentResource(** example)
resp = get_analytics_results(
expr.convert_to_float()).convert_to_quantity()
assert "reward metric values are not available" in \
resp.winner_assessment.message
assert resp.winner_assessment.data.winnerFound is False
def test_v2_ab_without_reward_for_feasible_version():
example = copy.deepcopy(ab_er_example_step2)
del example['status']['analysis']['aggregatedMetrics']['data']['business-revenue']['data']['canary']
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert "reward value for feasible version canary is not available" in \
resp.message
def test_v2_ab_using_previous_metric_status():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_no_response.json')
mock.get(ab_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(ab_er_example_step1)
example['status']['metrics'] = ab_mr_example[:2]
expr = ExperimentResource(** example)
resp = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
expected_response = copy.deepcopy(ab_am_response)
assert resp.data['mean-latency'].data['default'].value == \
expected_response['data']['mean-latency']['data']['default']['value']
########## A/B/N TESTS #############
def test_v2_abn_input_object():
ExperimentResource(** abn_er_example)
ExperimentResource(** abn_er_example_step1)
ExperimentResource(** abn_er_example_step2)
ExperimentResource(** abn_er_example_step3)
def test_experiment_abn_response_objects():
AggregatedMetricsAnalysis(** abn_am_response)
VersionAssessmentsAnalysis(** abn_va_response)
WinnerAssessmentAnalysis(** abn_wa_response)
WeightsAnalysis(** abn_w_response)
def test_v2_abn_aggregated_metrics_endpoint():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
response_json = json.load(open(file_path))
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=response_json)
expr = ExperimentResource(** abn_er_example)
agm = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
assert agm.data['request-count'].data['default'].value == \
response_json['data']['result'][0]['value'][1]
def test_v2_abn_version_assessment_endpoint():
expr = ExperimentResource(** abn_er_example_step1)
get_version_assessments(expr.convert_to_float())
def test_v2_abn_winner_assessment_endpoint():
expr = ExperimentResource(** abn_er_example_step2)
get_winner_assessment(expr.convert_to_float())
def test_v2_abn_weights_endpoint():
expr = ExperimentResource(** abn_er_example_step3)
get_weights(expr.convert_to_float())
def test_v2_abn_analytics_assessment_endpoint():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
expr = ExperimentResource(** abn_er_example)
get_analytics_results(expr.convert_to_float()).convert_to_quantity()
def test_v2_abn_am_without_candidates():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(abn_er_example)
del example['spec']['versionInfo']['candidates']
expr = ExperimentResource(** example)
get_aggregated_metrics(expr.convert_to_float()).convert_to_quantity()
def test_v2_abn_analytics_assessment_conformance():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(abn_er_example)
del example['spec']['versionInfo']['candidates']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
get_analytics_results(expr.convert_to_float()).convert_to_quantity()
def test_v2_abn_version_assessment_conformance():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(abn_er_example)
del example['spec']['versionInfo']['candidates']
example['spec']['strategy']['testingPattern'] = 'Conformance'
expr = ExperimentResource(** example)
resp = get_analytics_results(
expr.convert_to_float()).convert_to_quantity()
assert resp.version_assessments.data == {'default': [True]}
def test_v2_abn_va_without_am():
expr = ExperimentResource(** abn_er_example)
try:
get_version_assessments(expr.convert_to_float())
except AttributeError:
pass
def test_v2_abn_wa_without_va():
expr = ExperimentResource(** abn_er_example)
try:
get_winner_assessment(expr.convert_to_float())
except AttributeError:
pass
def test_v2_abn_w_without_wa():
expr = ExperimentResource(** abn_er_example)
try:
get_weights(expr.convert_to_float())
except AttributeError:
pass
def test_v2_abn_without_reward():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(abn_er_example)
del example['spec']['criteria']['rewards']
expr = ExperimentResource(** example)
resp = get_analytics_results(
expr.convert_to_float()).convert_to_quantity()
assert "No reward metric in experiment" in \
resp.winner_assessment.message
assert resp.winner_assessment.data.winnerFound is False
def test_v2_abn_without_reward_metric_config():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(abn_er_example)
del example["status"]["metrics"][2]
expr = ExperimentResource(** example)
resp = get_analytics_results(
expr.convert_to_float()).convert_to_quantity()
assert "reward metric values are not available" in \
resp.winner_assessment.message
assert resp.winner_assessment.data.winnerFound is False
def test_v2_abn_general():
example = copy.deepcopy(abn_er_example_step2)
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert resp.data.winnerFound is True
assert resp.data.winner == 'canary1'
def test_v2_abn_without_reward_for_feasible_version():
example = copy.deepcopy(abn_er_example_step2)
del example['status']['analysis']['aggregatedMetrics']['data']['business-revenue']['data']['canary1']
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert "reward value for feasible version canary1 is not available" in \
resp.message
assert resp.data.winnerFound is True
assert resp.data.winner == 'canary2'
def test_v2_abn_with_better_reward_but_not_feasible():
example = copy.deepcopy(abn_er_example_step2)
example['status']['analysis']['versionAssessments']['data']['canary1'] = [False]
expr = ExperimentResource(** example)
resp = get_winner_assessment(expr.convert_to_float())
assert resp.data.winnerFound is True
assert resp.data.winner == 'canary2'
def test_v2_abn_using_previous_metric_status():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_no_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(abn_er_example_step1)
example['status']['metrics'] = abn_mr_example[:2]
expr = ExperimentResource(** example)
resp = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
expected_response = copy.deepcopy(abn_am_response)
assert resp.data['mean-latency'].data['default'].value == \
expected_response['data']['mean-latency']['data']['default']['value']
def test_v2_abn_using_previous_metric_status_none():
with requests_mock.mock(real_http=True) as mock:
file_path = os.path.join(os.path.dirname(__file__), 'data/prom_responses',
'prometheus_sample_no_response.json')
mock.get(abn_er_example["status"]["metrics"][0]["metricObj"]
["spec"]["urlTemplate"], json=json.load(open(file_path)))
example = copy.deepcopy(abn_er_example)
example['status']['metrics'] = abn_mr_example[:2]
expr = ExperimentResource(** example)
resp = get_aggregated_metrics(
expr.convert_to_float()).convert_to_quantity()
assert resp.data['mean-latency'].data['default'].value is None
| 40.257988
| 105
| 0.648216
| 3,810
| 34,018
| 5.451444
| 0.051181
| 0.049398
| 0.040058
| 0.055465
| 0.87092
| 0.833269
| 0.807222
| 0.773905
| 0.751805
| 0.744198
| 0
| 0.008544
| 0.222412
| 34,018
| 845
| 106
| 40.257988
| 0.776652
| 0.004674
| 0
| 0.700428
| 0
| 0
| 0.150929
| 0.027393
| 0
| 0
| 0
| 0
| 0.068474
| 1
| 0.097004
| false
| 0.014265
| 0.019971
| 0
| 0.116976
| 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
|
b8dd8f09e8ad8713dd3752632307a9ae40b94614
| 261
|
py
|
Python
|
chainer/dataset/tabular/__init__.py
|
zaltoprofen/chainer
|
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
|
[
"MIT"
] | 2
|
2019-08-12T21:48:04.000Z
|
2020-08-27T18:04:20.000Z
|
chainer/dataset/tabular/__init__.py
|
zaltoprofen/chainer
|
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
|
[
"MIT"
] | null | null | null |
chainer/dataset/tabular/__init__.py
|
zaltoprofen/chainer
|
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
|
[
"MIT"
] | null | null | null |
from chainer.dataset.tabular import _as_mode # NOQA
from chainer.dataset.tabular import _concat # NOQA
from chainer.dataset.tabular import _join # NOQA
from chainer.dataset.tabular import _slice # NOQA
from chainer.dataset.tabular import _transform # NOQA
| 43.5
| 54
| 0.808429
| 36
| 261
| 5.694444
| 0.333333
| 0.268293
| 0.439024
| 0.609756
| 0.834146
| 0.682927
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1341
| 261
| 5
| 55
| 52.2
| 0.90708
| 0.091954
| 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
| 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
|
b8ddd14a7c93587eee3486c15ad5c3cbf9169c62
| 55,557
|
py
|
Python
|
jollof/sell.py
|
bluman1/jollofbot
|
1e679e8cd7e559809379d9a29b9ec0c5f273ea8d
|
[
"MIT"
] | 2
|
2017-05-24T02:20:47.000Z
|
2017-06-14T18:53:02.000Z
|
jollof/sell.py
|
bluman1/jollofbot
|
1e679e8cd7e559809379d9a29b9ec0c5f273ea8d
|
[
"MIT"
] | null | null | null |
jollof/sell.py
|
bluman1/jollofbot
|
1e679e8cd7e559809379d9a29b9ec0c5f273ea8d
|
[
"MIT"
] | null | null | null |
import os
import requests
import json
import geopy.distance
from pprint import pprint
from jollof.models import *
class Sell(object):
def __init__(self):
self.SELLER_ACCESS_TOKEN = os.environ.get('SELLER_ACCESS_TOKEN')
self.DELIVER_ACCESS_TOKEN = os.environ.get('DELIVER_ACCESS_TOKEN')
self.BUYER_ACCESS_TOKEN = os.environ.get('BUYER_ACCESS_TOKEN')
self.BLUMAN_ID = os.environ.get('BLUMAN_ID')
self.NEAREST_KM = os.environ.get('NEAREST_KM')
def get_started_button(self):
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
data = '{"get_started":{"payload":"GET_STARTED"}}'
response = requests.post('https://graph.facebook.com/v2.6/me/messenger_profile',
headers=headers, params=params, data=data)
pprint(response.json())
def persistent_menu(self):
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
data = """{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":false,
"call_to_actions":[
{
"title":"Jollof Orders",
"type":"nested",
"call_to_actions":[
{
"title":"Pending Jollof Deliveries",
"type":"postback",
"payload":"JOLLOF_PENDING_DELIVERIES"
},
{
"title":"Pending Jollof Reservations",
"type":"postback",
"payload":"JOLLOF_PENDING_RESERVATIONS"
},
{
"title":"Accepted Jollof Deliveries",
"type":"postback",
"payload":"JOLLOF_ACCEPTED_DELIVERIES"
},
{
"title":"Accepted Jollof Reservations",
"type":"postback",
"payload":"JOLLOF_ACCEPTED_RESERVATIONS"
}
]
},
{
"title":"Delicacy Orders",
"type":"nested",
"call_to_actions":[
{
"title":"Pending Delicacy Deliveries",
"type":"postback",
"payload":"DELICACY_PENDING_DELIVERIES"
},
{
"title":"Pending Delicacy Reservations",
"type":"postback",
"payload":"DELICACY_PENDING_RESERVATIONS"
},
{
"title":"Accepted Delicacy Deliveries",
"type":"postback",
"payload":"DELICACY_ACCEPTED_DELIVERIES"
},
{
"title":"Accepted Delicacy Reservations",
"type":"postback",
"payload":"DELICACY_ACCEPTED_RESERVATIONS"
}
]
}
]
}
]
}"""
response = requests.post('https://graph.facebook.com/v2.6/me/messenger_profile',
headers=headers, params=params, data=data)
pprint(response.json())
def get_distance(self, coords1, coords2):
distance = geopy.distance.vincenty(coords1, coords2).km
pprint('Distance: ' + str(distance))
return distance
def get_user_details(self, fbid):
user_details_url = "https://graph.facebook.com/v2.6/%s"%fbid
user_details_params = {'fields':'first_name,last_name,profile_pic', 'access_token':self.SELLER_ACCESS_TOKEN}
user_details = requests.get(user_details_url, user_details_params).json()
return user_details
def get_directions(self, origin_lat, origin_long, dest_lat, dest_long):
return 'https://www.google.com/maps/dir/' + str(origin_lat) + ',' + str(origin_long) + '/' + str(dest_lat) + ',' + str(dest_long) + '/'
def text_message(self, fbid, msg):
try:
seller = Profile.objects.get(fbid=fbid)
if '{{user_first_name}}' in msg:
msg = msg.replace('{{user_first_name}}', seller.user.first_name)
except Profile.DoesNotExist:
msg = msg.replace('{{user_first_name}}', 'Jollof Creator')
print(msg)
headers = {
'Content-Type': 'application/json; charset=utf-8',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
data = {"recipient": {"id": str(fbid)},"message": {"text": str(msg)}}
data = json.dumps(data).encode("utf-8")
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=data)
pprint(response.json())
def text_buyer(self, fbid, msg):
headers = {
'Content-Type': 'application/json; charset=utf-8',
}
params = (
('access_token', os.environ.get('BUYER_ACCESS_TOKEN')),
)
data = {"recipient": {"id": str(fbid)},"message": {"text": str(msg)}}
data = json.dumps(data).encode("utf-8")
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=data)
pprint(response.json())
def cancel_action(self, fbid, payload):
seller = Profile.objects.get(fbid=fbid)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'I\'ve cancelled that action.'
self.text_message(fbid, msg)
def request_location(self, fbid):
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
data = '{"recipient":{"id":"' + str(fbid) + '"},"message":{"text":"Please share your location with me.","quick_replies":[{"content_type":"location"}]}}'
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=data)
pprint(response.json())
def process_code(self, fbid, jollof_code):
try:
seller = Profile.objects.get(code=jollof_code)
seller.fbid = fbid
seller.current_state = 'VENDOR_LOCATION'
seller.save()
msg = 'Nice having you here ' + seller.restaurant + ' :)'
self.text_message(fbid, msg)
self.request_location(fbid)
return
except Profile.DoesNotExist:
msg = 'Sorry, the Jollof code you entered is incorrect. Please double check and enter again.'
self.text_message(fbid, msg)
return
def save_location(self, fbid, payload, location_title=None, location_url=None, location_lat=None, location_long=None):
if payload == 'CANCELLED':
self.cancel_action(fbid, payload)
elif location_lat:
# save location_lat and location_long
seller = Profile.objects.get(fbid=fbid)
seller.longitude = float(location_long)
seller.latitude = float(location_lat)
print('Lat: ' + str(float(location_lat)) + ' Long: ' + str(float(location_long)))
seller.current_state = 'DEFAULT'
seller.save()
self.text_message(fbid, 'Great! Now you can receive order and reservation updates!')
self.text_message(fbid, 'Please use the menu options to view pending and accepted orders/reservations.')
return
def jollof_pending_deliveries(self, fbid, payload):
if 'JOLLOF_PENDING_DELIVERIES_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
jollof_delivery_pk = int(payload_list[3])
jollof_action = int(payload_list[4])
jollof_order = JollofOrder.objects.get(pk=jollof_delivery_pk)
if jollof_action == 1:
#seller accepted order
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
if jollof_order.status != 0:
msg = 'You can no longer accept this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 1
jollof_order.save()
msg = 'Great news! ' + seller.restaurant + ' has accepted your order and it has been broadcasted to The Flash. I will let you know once they have picked it up. Remember your order code is ' + jollof_order.code + ' :D'
self.text_buyer(buyer.fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have accepted to deliver ' + buyer.user.first_name + '\'s Jollof and they have been notified.'
self.text_message(fbid, msg)
# broadcast to flash for acceptance
avalaible_flash = Profile.objects.filter(user_type='f').filter(available=True)
for flash in avalaible_flash:
# check if flash doesn't have any order to fufill
flash_jollof_order = JollofOrder.objects.filter(jollof_flash=flash)
flash_busy = False
for flash_jollof in flash_jollof_order:
if flash_jollof.flash_status > 0 and flash_jollof.flash_status < 4:
# flash is currently busy
flash_busy = True
break
if flash_busy:
continue
flash_delicacy_order = DelicacyOrder.objects.filter(delicacy_flash=flash)
for flash_delicacy in flash_delicacy_order:
if flash_delicacy.flash_status > 0 and flash_delicacy.flash_status < 4:
# flash is currently busy
flash_busy = True
break
if flash_busy:
continue
# flash not busy, check if flash in proximity of restaurant.
distance = self.get_distance((flash.latitude, flash.longitude), (jollof_order.jollof_seller.latitude, jollof_order.jollof_seller.longitude))
if distance >= float(self.NEAREST_KM):
# flash not in range.
continue
# flash not busy, check if flash in proximity of buyer.
distance = self.get_distance((flash.latitude, flash.longitude), (jollof_order.jollof_buyer.latitude, jollof_order.jollof_buyer.longitude))
if distance >= float(self.NEAREST_KM):
# flash not in range.
continue
# flash is free and in range
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.DELIVER_ACCESS_TOKEN),
)
data = '''{
"recipient":{
"id":"USER_ID"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"You have a Jollof delivery from REST to FULL_NAME with order code ORDER_CODE. ",
"buttons":[
{
"type":"postback",
"title":"Accept To Deliver",
"payload":"PAYLOAD"
}
]
}
}
}
}'''
data = data.replace('FULL_NAME', buyer.user.first_name + ' ' + buyer.user.last_name)
data = data.replace('USER_ID', flash.fbid)
data = data.replace('REST', jollof_order.jollof_seller.restaurant)
data = data.replace('ORDER_CODE', jollof_order.code)
data = data.replace('PAYLOAD', 'ACCEPT_PENDING_JOLLOF_' + str(jollof_order.pk))
pprint(str(data))
data = json.dumps(json.loads(data)).encode('utf-8')
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=data)
pprint(response.json())
elif jollof_action == 2:
# seller rejected order.
if jollof_order.status != 0:
msg = 'You can no longer reject this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 2
jollof_order.save()
msg = 'You have rejected the order. I hope all is well with your Jollof.'
self.text_message(fbid, msg)
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
msg = 'Oh shucks! ' + seller.restaurant + ' will not be able to get you your Jollof :( Just say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
jollof_orders = JollofOrder.objects.filter(jollof_seller=seller).filter(order_type=2).filter(status=0)
if jollof_orders.count() < 1:
msg = 'You have no pending jollof deliveries right now. I will send you updates in real-time.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for jollof_order in jollof_orders:
if count >= 10:
break
count += 1
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' wants your Jollof delivered!'
generic_subtitle = 'Order Code: ' + jollof_order.code
accept_order_payload = 'JOLLOF_PENDING_DELIVERIES_' + str(jollof_order.pk) + '_1'
reject_order_payload = 'JOLLOF_PENDING_DELIVERIES_' + str(jollof_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Accept Order","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Reject Order"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
def jollof_pending_reservations(self, fbid, payload):
if 'JOLLOF_PENDING_RESERVATIONS_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
jollof_delivery_pk = int(payload_list[3])
jollof_action = int(payload_list[4])
jollof_order = JollofOrder.objects.get(pk=jollof_delivery_pk)
if jollof_action == 1:
#seller accepted reservation
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
if jollof_order.status != 0:
msg = 'You can no longer accept this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 1
jollof_order.save()
msg = 'Great news! ' + seller.restaurant + ' have accepted your reservation and they are waiting for you with your jollof!. Remember your order code is ' + jollof_order.code + ' :D'
self.text_buyer(buyer.fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have accepted ' + buyer.user.first_name + '\'s reservation for Jollof and they have been notified. They will be at your restaurant soon with their order code: ' + jollof_order.code
self.text_message(fbid, msg)
elif jollof_action == 2:
# seller rejected order.
if jollof_order.status != 0:
msg = 'You can no longer reject this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 2
jollof_order.save()
msg = 'You have rejected the reservation. I hope all is well with your Jollof and your restaurant.'
self.text_message(fbid, msg)
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
msg = 'Oh shucks! ' + seller.restaurant + ' will not be able to set up a jollof reservation for you :( Say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
jollof_orders = JollofOrder.objects.filter(jollof_seller=seller).filter(order_type=1).filter(status=0)
if jollof_orders.count() < 1:
msg = 'You have no pending jollof reservations right now. I will send you updates in real-time.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for jollof_order in jollof_orders:
if count >= 10:
break
count += 1
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' is requesting a Jollof reservation!'
generic_subtitle = 'Order Code: ' + jollof_order.code
accept_order_payload = 'JOLLOF_PENDING_RESERVATIONS_' + str(jollof_order.pk) + '_1'
reject_order_payload = 'JOLLOF_PENDING_RESERVATIONS_' + str(jollof_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Accept Reservation","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Reject Reservation"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
def jollof_accepted_deliveries(self, fbid, payload):
if 'JOLLOF_ACCEPTED_DELIVERIES_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
jollof_delivery_pk = int(payload_list[3])
jollof_action = int(payload_list[4])
jollof_order = JollofOrder.objects.get(pk=jollof_delivery_pk)
if jollof_action == 1:
#seller completed order
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
if jollof_order.status != 1:
msg = 'You can no longer complete this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
if jollof_order.flash_status != 3:
msg = 'The Flash must mark this order as Picked Up first before you can complete it.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 4
jollof_order.save()
msg = seller.restaurant + ' just marked your delivery as completed! Sit tight. The Flash will be there soon :D'
self.text_buyer(buyer.fbid, msg)
seller.vendor_balance += delicacy_order.delicacy.price
seller.month_orders += 1
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have marked ' + buyer.user.first_name + '\'s Jollof delivery as completed and they have been notified. Sweet!'
self.text_message(fbid, msg)
msg = 'I have also updated your wallet balance on the dashboard. Keep making money!'
self.text_message(fbid, msg)
elif jollof_action == 2:
# seller cancelled order.
if jollof_order.status != 1:
msg = 'You can no longer complete this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 3
jollof_order.save()
msg = 'You have cancelled the delivery. I hope all is well with your Jollof.'
self.text_message(fbid, msg)
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
msg = 'Oh shucks! ' + seller.restaurant + ' will not be able to deliver your Jollof. Seems like Ghanian goblins got their delivery guy. Say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
jollof_orders = JollofOrder.objects.filter(jollof_seller=seller).filter(order_type=2).filter(status=1)
if jollof_orders.count() < 1:
msg = 'You have not accepted to deliver any orders.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for jollof_order in jollof_orders:
if count >= 10:
break
count += 1
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' wants your Jollof delivery completed!'
generic_subtitle = 'Order Code: ' + jollof_order.code
accept_order_payload = 'JOLLOF_ACCEPTED_DELIVERIES_' + str(jollof_order.pk) + '_1'
reject_order_payload = 'JOLLOF_ACCEPTED_DELIVERIES_' + str(jollof_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Complete Order","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Cancel Order"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
def jollof_accepted_reservations(self, fbid, payload):
if 'JOLLOF_ACCEPTED_RESERVATIONS_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
jollof_delivery_pk = int(payload_list[3])
jollof_action = int(payload_list[4])
jollof_order = JollofOrder.objects.get(pk=jollof_delivery_pk)
if jollof_action == 1:
#seller completed reservation
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
if jollof_order.status != 1:
msg = 'You can no longer complete this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 4
jollof_order.save()
msg = 'Sweet! ' + seller.restaurant + ' just marked your reservation as completed. I hope you are enjoying your jollof :D'
self.text_buyer(buyer.fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have marked ' + buyer.user.first_name + '\'s Jollof reservation as completed and they have been notified. Nice!'
self.text_message(fbid, msg)
elif jollof_action == 2:
# seller cancelled order.
if jollof_order.status != 1:
msg = 'You can no longer complete this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
jollof_order.status = 3
jollof_order.save()
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
msg = 'You have cancelled the reservation and ' + buyer.user.first_name + ' has been informed. I hope all is well with your Jollof.'
self.text_message(fbid, msg)
msg = 'I am so sorry right now but ' + seller.restaurant + ' will not be able to accept your jollof reservation. :( Say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
jollof_orders = JollofOrder.objects.filter(jollof_seller=seller).filter(order_type=1).filter(status=1)
if jollof_orders.count() < 1:
msg = 'You have not accepted any reservations for your jollof.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for jollof_order in jollof_orders:
if count >= 10:
break
count += 1
buyer = Profile.objects.get(pk=int(jollof_order.jollof_buyer.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' wants their Jollof reservation completed!'
generic_subtitle = 'Order Code: ' + jollof_order.code
accept_order_payload = 'JOLLOF_ACCEPTED_RESERVATIONS_' + str(jollof_order.pk) + '_1'
reject_order_payload = 'JOLLOF_ACCEPTED_RESERVATIONS_' + str(jollof_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Complete Reservation","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Cancel Reservation"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
def delicacy_pending_deliveries(self, fbid, payload):
if 'DELICACY_PENDING_DELIVERIES_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
delicacy_delivery_pk = int(payload_list[3])
delicacy_action = int(payload_list[4])
delicacy_order = DelicacyOrder.objects.get(pk=delicacy_delivery_pk)
delicacy = Delicacy.objects.get(pk=int(delicacy_order.delicacy.pk))
if delicacy_action == 1:
#seller accepted order
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
if delicacy_order.status != 0:
msg = 'You can no longer accept this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 1
delicacy_order.save()
msg = seller.restaurant + ' just accepted your order for ' + delicacy.name + ' and are on their way to deliver it to you! You will get a phone call from them once they arrive. Remember your order code is ' + delicacy_order.code + ' :D'
self.text_buyer(buyer.fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have accepted to deliver ' + buyer.user.first_name + '\'s ' + delicacy.name + ' delicacy and they have been notified.'
self.text_message(fbid, msg)
# broadcast to flash for acceptance
avalaible_flash = Profile.objects.filter(user_type='f').filter(available=True)
for flash in avalaible_flash:
# check if flash doesn't have any order to fufill
flash_jollof_order = JollofOrder.objects.filter(jollof_flash=flash)
flash_busy = False
for flash_jollof in flash_jollof_order:
if flash_jollof.flash_status > 0 and flash_jollof.flash_status < 4:
# flash is currently busy
flash_busy = True
break
if flash_busy:
continue
flash_delicacy_order = DelicacyOrder.objects.filter(delicacy_flash=flash)
for flash_delicacy in flash_delicacy_order:
if flash_delicacy.flash_status > 0 and flash_delicacy.flash_status < 4:
# flash is currently busy
flash_busy = True
break
if flash_busy:
continue
# flash not busy, check if flash in proximity of restaurant.
distance = self.get_distance((flash.latitude, flash.longitude), (delicacy_order.delicacy_seller.latitude, delicacy_order.delicacy_seller.longitude))
if distance >= float(self.NEAREST_KM):
# flash not in range.
continue
# flash not busy, check if flash in proximity of buyer.
distance = self.get_distance((flash.latitude, flash.longitude), (delicacy_order.delicacy_buyer.latitude, delicacy_order.delicacy_buyer.longitude))
if distance >= float(self.NEAREST_KM):
# flash not in range.
continue
# flash is free and in range
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
data = '''{
"recipient":{
"id":"USER_ID"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"You have a Delicacy delivery from REST to FULL_NAME with order code ORDER_CODE. DELICACY_INFO",
"buttons":[
{
"type":"postback",
"title":"Accept To Deliver",
"payload":"PAYLOAD"
}
]
}
}
}
}'''
data = data.replace('FULL_NAME', buyer.user.first_name + ' ' + buyer.user.last_name)
data = data.replace('USER_ID', flash.fbid)
data = data.replace('REST', delicacy_order.delicacy_seller.restaurant)
data = data.replace('ORDER_CODE', delicacy_order.code)
data = data.replace('PAYLOAD', 'ACCEPT_PENDING_JOLLOF_' + str(delicacy_order.pk))
data = data.replace('DELICACY_INFO', delicacy.name + '; ' + delicacy.description)
pprint(str(data))
data = json.dumps(json.loads(data)).encode('utf-8')
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=data)
pprint(response.json())
elif delicacy_action == 2:
# seller rejected order.
if delicacy_order.status != 0:
msg = 'You can no longer reject this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 2
delicacy_order.save()
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
msg = 'You have rejected ' + buyer.user.first_name + '\'s' + ' order for ' + delicacy.name + '. I hope all is well with your restaurant.'
self.text_message(fbid, msg)
msg = 'Oh shucks! ' + seller.restaurant + ' will not be able to get you your ' + delicacy.name + ' Delicacy :( Say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
delicacy_orders = DelicacyOrder.objects.filter(delicacy_seller=seller).filter(order_type=2).filter(status=0)
if delicacy_orders.count() < 1:
msg = 'You have no pending delicacy deliveries right now. I will send you updates in real-time.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for delicacy_order in delicacy_orders:
if count >= 10:
break
count += 1
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
delicacy = Delicacy.objects.get(pk=int(delicacy_order.delicacy.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' wants ' + delicacy.name + ' delivered!'
generic_subtitle = 'Order Code: ' + delicacy_order.code
accept_order_payload = 'DELICACY_PENDING_DELIVERIES_' + str(delicacy_order.pk) + '_1'
reject_order_payload = 'DELICACY_PENDING_DELIVERIES_' + str(delicacy_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Accept Order","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Reject Order"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
def delicacy_pending_reservations(self, fbid, payload):
if 'DELICACY_PENDING_RESERVATIONS_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
delicacy_delivery_pk = int(payload_list[3])
delicacy_action = int(payload_list[4])
delicacy_order = DelicacyOrder.objects.get(pk=delicacy_delivery_pk)
delicacy = Delicacy.objects.get(pk=int(delicacy_order.delicacy.pk))
if delicacy_action == 1:
#seller accepted reservation
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
if delicacy_order.status != 0:
msg = 'You can no longer accept this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 1
delicacy_order.save()
msg = 'Great news! ' + seller.restaurant + ' have accepted your reservation for ' + delicacy.name + ' at their restaurant!. Remember your order code is ' + delicacy_order.code + ' :D'
self.text_buyer(buyer.fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have accepted ' + buyer.user.first_name + '\'s ' + delicacy.name + ' reservation and they have been notified. They will be at your restaurant soon with their order code: ' + jollof_order.code
self.text_message(fbid, msg)
elif delicacy_action == 2:
# seller rejected order.
if delicacy_order.status != 0:
msg = 'You can no longer reject this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 2
delicacy_order.save()
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
msg = 'You have rejected ' + buyer.user.first_name + '\'s ' + delicacy.name + ' reservation. I hope all is well with your restaurant.'
self.text_message(fbid, msg)
msg = 'Oh shucks! ' + seller.restaurant + ' will not be able to set up a reservation for ' + delicacy.name + ' :( Say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
delicacy_orders = DelicacyOrder.objects.filter(delicacy_seller=seller).filter(order_type=1).filter(status=0)
if delicacy_orders.count() < 1:
msg = 'You have no pending delicacy reservations right now. I will send you updates in real-time.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for delicacy_order in delicacy_orders:
if count >= 10:
break
count += 1
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
delicacy = Delicacy.objects.get(pk=int(delicacy_order.delicacy.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' is requesting a reservation for ' + delicacy.name + '!'
generic_subtitle = 'Order Code: ' + delicacy_order.code
accept_order_payload = 'DELICACY_PENDING_RESERVATIONS_' + str(delicacy_order.pk) + '_1'
reject_order_payload = 'DELICACY_PENDING_RESERVATIONS_' + str(delicacy_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Accept Reservation","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Reject Reservation"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
def delicacy_accepted_deliveries(self, fbid, payload):
if 'DELICACY_ACCEPTED_DELIVERIES_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
delicacy_delivery_pk = int(payload_list[3])
delicacy_action = int(payload_list[4])
delicacy_order = DelicacyOrder.objects.get(pk=delicacy_delivery_pk)
delicacy = Delicacy.objects.get(pk=int(delicacy_order.delicacy.pk))
if delicacy_action == 1:
#seller completed order
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
if delicacy_order.status != 1:
msg = 'You can no longer complete this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
if delicacy_order.flash_status != 3:
msg = 'The Flash must mark this order as Picked Up first before you can complete it.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 4
seller.vendor_balance += delicacy_order.delicacy.price
seller.month_orders += 1
delicacy_order.save()
msg = seller.restaurant + ' just marked your delivery as completed! Sit tight. The Flash will be there soon :D'
self.text_buyer(buyer.fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have marked ' + buyer.user.first_name + '\'s ' + delicacy.name + ' delivery as completed and they have been notified. Sweet!'
self.text_message(fbid, msg)
msg = 'I have also updated your wallet balance on the dashboard. Keep making money!'
self.text_message(fbid, msg)
elif delicacy_action == 2:
# seller cancelled order.
if delicacy_order.status != 1:
msg = 'You can no longer cancel this order.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 3
delicacy_order.save()
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
msg = 'You have cancelled ' + buyer.user.first_name + '\'s delivery of ' + delicacy.name + '. I hope all is well with your restaurant.'
self.text_message(fbid, msg)
msg = 'Oh shucks! ' + seller.restaurant + ' will not be able to deliver your ' + delicacy.name + '. Seems like Ghanaian goblins got their delivery guy. Say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
delicacy_orders = DelicacyOrder.objects.filter(delicacy_seller=seller).filter(order_type=2).filter(status=1)
if delicacy_orders.count() < 1:
msg = 'You have not accepted to deliver any orders.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for delicacy_order in delicacy_orders:
if count >= 10:
break
count += 1
delicacy = Delicacy.objects.get(pk=int(delicacy_order.delicacy.pk))
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' wants your ' + delicacy.name + ' delivery completed!'
generic_subtitle = 'Order Code: ' + delicacy_order.code
accept_order_payload = 'DELICACY_ACCEPTED_DELIVERIES_' + str(delicacy_order.pk) + '_1'
reject_order_payload = 'DELICACY_ACCEPTED_DELIVERIES_' + str(delicacy_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Complete Order","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Cancel Order"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
def delicacy_accepted_reservations(self, fbid, payload):
if 'DELICACY_ACCEPTED_RESERVATIONS_' in payload:
seller = Profile.objects.get(fbid=fbid)
payload_list = payload.split('_')
delicacy_delivery_pk = int(payload_list[3])
delicacy_action = int(payload_list[4])
delicacy_order = DelicacyOrder.objects.get(pk=delicacy_delivery_pk)
if delicacy_action == 1:
#seller completed reservation
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
if delicacy_order.status != 1:
msg = 'You can no longer complete this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 4
delicacy_order.save()
msg = 'Sweet! ' + seller.restaurant + ' just marked your reservation as completed. I hope you are enjoying your delicacy :D'
self.text_buyer(buyer.fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
msg = 'You have marked ' + buyer.user.first_name + '\'s delicacy reservation as completed and they have been notified. Nice!'
self.text_message(fbid, msg)
elif delicacy_action == 2:
# seller cancelled order.
if delicacy_order.status != 1:
msg = 'You can no longer cancel this reservation.'
self.text_message(fbid, msg)
seller.current_state = 'DEFAULT'
seller.save()
return
delicacy_order.status = 3
delicacy_order.save()
buyer = Profile.objects.get(pk=int(delicacy_order.jollof_buyer.pk))
msg = 'You have cancelled the reservation and ' + buyer.user.first_name + ' has been informed. I hope all is well with your restaurant.'
self.text_message(fbid, msg)
msg = 'I am so sorry right now but ' + seller.restaurant + ' will not be able to accept your delicacy reservation. :( Say Jollof! to find other places near you.'
self.text_buyer(buyer.fbid, msg)
else:
seller = Profile.objects.get(fbid=fbid)
delicacy_orders = DelicacyOrder.objects.filter(delicacy_seller=seller).filter(order_type=1).filter(status=1)
if delicacy_orders.count() < 1:
msg = 'You have not accepted any reservations for your delicacies.'
self.text_message(fbid, msg)
else:
count = 0
generic_sellers = '{"recipient":{"id":"'+str(fbid)+'"},"message":{"attachment":{"type":"template","payload":{"template_type":"generic","elements":['
generic_ending = ']}}}}'
generic_elements = ''
for delicacy_order in delicacy_orders:
if count >= 10:
break
count += 1
buyer = Profile.objects.get(pk=int(delicacy_order.delicacy_buyer.pk))
delicacy = Delicacy.objects.get(pk=int(delicacy_order.delicacy.pk))
img_link = 'http://via.placeholder.com/350x350'
generic_title = buyer.user.first_name + ' wants their Delicacy reservation completed!'
generic_subtitle = 'Order Code: ' + delicacy_order.code
accept_order_payload = 'DELICACY_ACCEPTED_RESERVATIONS_' + str(delicacy_order.pk) + '_1'
reject_order_payload = 'DELICACY_ACCEPTED_RESERVATIONS_' + str(delicacy_order.pk) + '_2'
generic_elements += '{"title":"'+str(generic_title)+'","image_url":"'+str(img_link)+'","subtitle":"'+str(generic_subtitle)+'.","buttons":[{"type":"postback","title":"Complete Reservation","payload":"'+str(accept_order_payload)+'"},{"type":"postback","payload":"'+str(reject_order_payload)+'","title":"Cancel Reservation"}]},'
#Remove trailing comma
generic_elements = generic_elements[:-1]
generic_message = generic_sellers + generic_elements + generic_ending
print('Generic message: ' + generic_message)
headers = {
'Content-Type': 'application/json',
}
params = (
('access_token', self.SELLER_ACCESS_TOKEN),
)
response = requests.post('https://graph.facebook.com/v2.6/me/messages', headers=headers, params=params, data=generic_message)
pprint(response.json())
return
| 56.690816
| 345
| 0.535954
| 5,567
| 55,557
| 5.169032
| 0.055506
| 0.035689
| 0.025542
| 0.032353
| 0.90572
| 0.894982
| 0.861586
| 0.853281
| 0.844558
| 0.844558
| 0
| 0.006908
| 0.359037
| 55,557
| 979
| 346
| 56.748723
| 0.801179
| 0.022067
| 0
| 0.720045
| 0
| 0.010078
| 0.271649
| 0.051412
| 0.00112
| 0
| 0
| 0
| 0
| 1
| 0.022396
| false
| 0
| 0.006719
| 0.00112
| 0.066069
| 0.032475
| 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
|
b8f3450cc13ca7f49f170be6f68defce0a31b23e
| 16,740
|
py
|
Python
|
jodd-core/src/main/python/ArraysUtil.py
|
kissys/jodd
|
b8e3d5bebd4ec61f5ce4b4e5ac1c6c0e449eebf8
|
[
"BSD-3-Clause"
] | 1
|
2019-07-03T09:51:49.000Z
|
2019-07-03T09:51:49.000Z
|
jodd-core/src/main/python/ArraysUtil.py
|
kissys/jodd
|
b8e3d5bebd4ec61f5ce4b4e5ac1c6c0e449eebf8
|
[
"BSD-3-Clause"
] | null | null | null |
jodd-core/src/main/python/ArraysUtil.py
|
kissys/jodd
|
b8e3d5bebd4ec61f5ce4b4e5ac1c6c0e449eebf8
|
[
"BSD-3-Clause"
] | null | null | null |
f = open('ArraysUtil.java', 'w')
f.write('''
package jodd.util;
import java.lang.reflect.Array;
import static jodd.util.StringPool.NULL;
/**
* More array utilities.
* <b>DO NOT MODIFY: this source is generated.</b>
*/
public class ArraysUtil {
''')
types = ['String', 'byte', 'char', 'short', 'int', 'long', 'float', 'double', 'boolean']
prim_types = ['byte', 'char', 'short', 'int', 'long', 'float', 'double', 'boolean']
big_types = ['Byte', 'Character', 'Short', 'Integer', 'Long', 'Float', 'Double', 'Boolean']
prim_types_safe = ['byte', 'char', 'short', 'int', 'long', 'boolean']
f.write('\n\n\t// ---------------------------------------------------------------- join')
f.write('''
/**
* Joins arrays. Component type is resolved from the array argument.
*/
@SuppressWarnings({"unchecked"})
public static <T> T[] join(T[]... arrays) {
Class<T> componentType = (Class<T>) arrays.getClass().getComponentType().getComponentType();
return join(componentType, arrays);
}
/**
* Joins arrays using provided component type.
*/
@SuppressWarnings({"unchecked"})
public static <T> T[] join(Class<T> componentType, T[][] arrays) {
if (arrays.length == 1) {
return arrays[0];
}
int length = 0;
for (T[] array : arrays) {
length += array.length;
}
T[] result = (T[]) Array.newInstance(componentType, length);
length = 0;
for (T[] array : arrays) {
System.arraycopy(array, 0, result, length, array.length);
length += array.length;
}
return result;
}
''')
template = '''
/**
* Join <code>$T</code> arrays.
*/
public static $T[] join($T[]... arrays) {
if (arrays.length == 0) {
return new $T[0];
}
if (arrays.length == 1) {
return arrays[0];
}
int length = 0;
for ($T[] array : arrays) {
length += array.length;
}
$T[] result = new $T[length];
length = 0;
for ($T[] array : arrays) {
System.arraycopy(array, 0, result, length, array.length);
length += array.length;
}
return result;
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- resize')
f.write('''
/**
* Resizes an array.
*/
public static <T> T[] resize(T[] buffer, int newSize) {
Class<T> componentType = (Class<T>) buffer.getClass().getComponentType();
T[] temp = (T[]) Array.newInstance(componentType, newSize);
System.arraycopy(buffer, 0, temp, 0, buffer.length >= newSize ? newSize : buffer.length);
return temp;
}
'''
)
template = '''
/**
* Resizes a <code>$T</code> array.
*/
public static $T[] resize($T buffer[], int newSize) {
$T temp[] = new $T[newSize];
System.arraycopy(buffer, 0, temp, 0, buffer.length >= newSize ? newSize : buffer.length);
return temp;
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- append')
f.write('''
/**
* Appends an element to array.
*/
public static <T> T[] append(T[] buffer, T newElement) {
T[] t = resize(buffer, buffer.length + 1);
t[buffer.length] = newElement;
return t;
}
'''
)
template = '''
/**
* Appends an element to <code>$T</code> array.
*/
public static $T[] append($T buffer[], $T newElement) {
$T[] t = resize(buffer, buffer.length + 1);
t[buffer.length] = newElement;
return t;
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- remove')
f.write('''
/**
* Removes sub-array.
*/
public static <T> T[] remove(T[] buffer, int offset, int length) {
Class<T> componentType = (Class<T>) buffer.getClass().getComponentType();
return remove(buffer, offset, length, componentType);
}
/**
* Removes sub-array.
*/
@SuppressWarnings({"unchecked"})
public static <T> T[] remove(T[] buffer, int offset, int length, Class<T> componentType) {
int len2 = buffer.length - length;
T[] temp = (T[]) Array.newInstance(componentType, len2);
System.arraycopy(buffer, 0, temp, 0, offset);
System.arraycopy(buffer, offset + length, temp, offset, len2 - offset);
return temp;
}
''')
template = '''
/**
* Removes sub-array from <code>$T</code> array.
*/
public static $T[] remove($T[] buffer, int offset, int length) {
int len2 = buffer.length - length;
$T temp[] = new $T[len2];
System.arraycopy(buffer, 0, temp, 0, offset);
System.arraycopy(buffer, offset + length, temp, offset, len2 - offset);
return temp;
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- subarray')
f.write('''
/**
* Returns subarray.
*/
public static <T> T[] subarray(T[] buffer, int offset, int length) {
Class<T> componentType = (Class<T>) buffer.getClass().getComponentType();
return subarray(buffer, offset, length, componentType);
}
/**
* Returns subarray.
*/
@SuppressWarnings({"unchecked"})
public static <T> T[] subarray(T[] buffer, int offset, int length, Class<T> componentType) {
T[] temp = (T[]) Array.newInstance(componentType, length);
System.arraycopy(buffer, offset, temp, 0, length);
return temp;
}
''')
template = '''
/**
* Returns subarray.
*/
public static $T[] subarray($T[] buffer, int offset, int length) {
$T temp[] = new $T[length];
System.arraycopy(buffer, offset, temp, 0, length);
return temp;
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- insert')
f.write('''
/**
* Inserts one array into another array.
*/
public static <T> T[] insert(T[] dest, T[] src, int offset) {
Class<T> componentType = (Class<T>) dest.getClass().getComponentType();
return insert(dest, src, offset, componentType);
}
/**
* Inserts one element into an array.
*/
public static <T> T[] insert(T[] dest, T src, int offset) {
Class<T> componentType = (Class<T>) dest.getClass().getComponentType();
return insert(dest, src, offset, componentType);
}
/**
* Inserts one array into another array.
*/
@SuppressWarnings({"unchecked"})
public static <T> T[] insert(T[] dest, T[] src, int offset, Class componentType) {
T[] temp = (T[]) Array.newInstance(componentType, dest.length + src.length);
System.arraycopy(dest, 0, temp, 0, offset);
System.arraycopy(src, 0, temp, offset, src.length);
System.arraycopy(dest, offset, temp, src.length + offset, dest.length - offset);
return temp;
}
/**
* Inserts one element into another array.
*/
@SuppressWarnings({"unchecked"})
public static <T> T[] insert(T[] dest, T src, int offset, Class componentType) {
T[] temp = (T[]) Array.newInstance(componentType, dest.length + 1);
System.arraycopy(dest, 0, temp, 0, offset);
temp[offset] = src;
System.arraycopy(dest, offset, temp, offset + 1, dest.length - offset);
return temp;
}
''')
template = '''
/**
* Inserts one array into another <code>$T</code> array.
*/
public static $T[] insert($T[] dest, $T[] src, int offset) {
$T[] temp = new $T[dest.length + src.length];
System.arraycopy(dest, 0, temp, 0, offset);
System.arraycopy(src, 0, temp, offset, src.length);
System.arraycopy(dest, offset, temp, src.length + offset, dest.length - offset);
return temp;
}
/**
* Inserts one element into another <code>$T</code> array.
*/
public static $T[] insert($T[] dest, $T src, int offset) {
$T[] temp = new $T[dest.length + 1];
System.arraycopy(dest, 0, temp, 0, offset);
temp[offset] = src;
System.arraycopy(dest, offset, temp, offset + 1, dest.length - offset);
return temp;
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- insertAt')
f.write('''
/**
* Inserts one array into another at given offset.
*/
public static <T> T[] insertAt(T[] dest, T[] src, int offset) {
Class<T> componentType = (Class<T>) dest.getClass().getComponentType();
return insertAt(dest, src, offset, componentType);
}
/**
* Inserts one array into another at given offset.
*/
@SuppressWarnings({"unchecked"})
public static <T> T[] insertAt(T[] dest, T[] src, int offset, Class componentType) {
T[] temp = (T[]) Array.newInstance(componentType, dest.length + src.length - 1);
System.arraycopy(dest, 0, temp, 0, offset);
System.arraycopy(src, 0, temp, offset, src.length);
System.arraycopy(dest, offset + 1, temp, src.length + offset, dest.length - offset - 1);
return temp;
}
''')
template = '''
/**
* Inserts one array into another by replacing specified offset.
*/
public static $T[] insertAt($T[] dest, $T[] src, int offset) {
$T[] temp = new $T[dest.length + src.length - 1];
System.arraycopy(dest, 0, temp, 0, offset);
System.arraycopy(src, 0, temp, offset, src.length);
System.arraycopy(dest, offset + 1, temp, src.length + offset, dest.length - offset - 1);
return temp;
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- convert')
f.write('''
''')
template = '''
/**
* Converts to primitive array.
*/
public static $t[] values($T[] array) {
$t[] dest = new $t[array.length];
for (int i = 0; i < array.length; i++) {
$T v = array[i];
if (v != null) {
dest[i] = v.$tValue();
}
}
return dest;
}
/**
* Converts to object array.
*/
public static $T[] valuesOf($t[] array) {
$T[] dest = new $T[array.length];
for (int i = 0; i < array.length; i++) {
dest[i] = $T.valueOf(array[i]);
}
return dest;
}
'''
for i in range(len(prim_types)):
data = template.replace('$t', prim_types[i])
data = data.replace('$T', big_types[i])
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- indexof')
f.write('''
''')
template = '''
/**
* Finds the first occurrence of an element in an array.
*/
public static int indexOf($T[] array, $T value) {
for (int i = 0; i < array.length; i++) {
if (array[i] == value) {
return i;
}
}
return -1;
}
/**
* Returns <code>true</code> if an array contains given value.
*/
public static boolean contains($T[] array, $T value) {
return indexOf(array, value) != -1;
}
/**
* Finds the first occurrence of given value in an array from specified given position.
*/
public static int indexOf($T[] array, $T value, int startIndex) {
for (int i = startIndex; i < array.length; i++) {
if (array[i] == value) {
return i;
}
}
return -1;
}
/**
* Finds the first occurrence in an array from specified given position and upto given length.
*/
public static int indexOf($T[] array, $T value, int startIndex, int endIndex) {
for (int i = startIndex; i < endIndex; i++) {
if (array[i] == value) {
return i;
}
}
return -1;
}
'''
for type in prim_types_safe:
data = template.replace('$T', type)
f.write(data)
template = '''
/**
* Finds the first occurrence of value in <code>$T</code> array.
*/
public static int indexOf($T[] array, $T value) {
for (int i = 0; i < array.length; i++) {
if ($B.compare(array[i], value) == 0) {
return i;
}
}
return -1;
}
/**
* Returns <code>true</code> if <code>$T</code> array contains given value.
*/
public static boolean contains($T[] array, $T value) {
return indexOf(array, value) != -1;
}
/**
* Finds the first occurrence of given value in <code>$T</code>
* array from specified given position.
*/
public static int indexOf($T[] array, $T value, int startIndex) {
for (int i = startIndex; i < array.length; i++) {
if ($B.compare(array[i], value) == 0) {
return i;
}
}
return -1;
}
/**
* Finds the first occurrence in <code>$T</code> array from specified given position and upto given length.
*/
public static int indexOf($T[] array, $T value, int startIndex, int endIndex) {
for (int i = startIndex; i < endIndex; i++) {
if ($B.compare(array[i], value) == 0) {
return i;
}
}
return -1;
}
'''
data = template.replace('$T', 'float')
data = data.replace('$B', 'Float')
f.write(data)
data = template.replace('$T', 'double')
data = data.replace('$B', 'Double')
f.write(data)
f.write('''
/**
* Finds the first occurrence in an array.
*/
public static int indexOf(Object[] array, Object value) {
for (int i = 0; i < array.length; i++) {
if (array[i].equals(value)) {
return i;
}
}
return -1;
}
public static boolean contains(Object[] array, Object value) {
return indexOf(array, value) != -1;
}
/**
* Finds the first occurrence in an array from specified given position.
*/
public static int indexOf(Object[] array, Object value, int startIndex) {
for (int i = startIndex; i < array.length; i++) {
if (array[i].equals(value)) {
return i;
}
}
return -1;
}
public static boolean contains(Object[] array, Object value, int startIndex) {
return indexOf(array, value, startIndex) != -1;
}
''')
f.write('\n\n\t// ---------------------------------------------------------------- indexof 2')
f.write('''
''')
template = '''
/**
* Finds the first occurrence in an array.
*/
public static int indexOf($T[] array, $T[] sub) {
return indexOf(array, sub, 0, array.length);
}
public static boolean contains($T[] array, $T[] sub) {
return indexOf(array, sub) != -1;
}
/**
* Finds the first occurrence in an array from specified given position.
*/
public static int indexOf($T[] array, $T[] sub, int startIndex) {
return indexOf(array, sub, startIndex, array.length);
}
/**
* Finds the first occurrence in an array from specified given position and upto given length.
*/
public static int indexOf($T[] array, $T[] sub, int startIndex, int endIndex) {
int sublen = sub.length;
if (sublen == 0) {
return startIndex;
}
int total = endIndex - sublen + 1;
$T c = sub[0];
mainloop:
for (int i = startIndex; i < total; i++) {
if (array[i] != c) {
continue;
}
int j = 1;
int k = i + 1;
while (j < sublen) {
if (sub[j] != array[k]) {
continue mainloop;
}
j++; k++;
}
return i;
}
return -1;
}
'''
for type in prim_types_safe:
data = template.replace('$T', type)
f.write(data)
template = '''
/**
* Finds the first occurrence in an array.
*/
public static int indexOf($T[] array, $T[] sub) {
return indexOf(array, sub, 0, array.length);
}
public static boolean contains($T[] array, $T[] sub) {
return indexOf(array, sub) != -1;
}
/**
* Finds the first occurrence in an array from specified given position.
*/
public static int indexOf($T[] array, $T[] sub, int startIndex) {
return indexOf(array, sub, startIndex, array.length);
}
/**
* Finds the first occurrence in an array from specified given position and upto given length.
*/
public static int indexOf($T[] array, $T[] sub, int startIndex, int endIndex) {
int sublen = sub.length;
if (sublen == 0) {
return startIndex;
}
int total = endIndex - sublen + 1;
$T c = sub[0];
mainloop:
for (int i = startIndex; i < total; i++) {
if ($B.compare(array[i], c) != 0) {
continue;
}
int j = 1;
int k = i + 1;
while (j < sublen) {
if ($B.compare(sub[j], array[k]) != 0) {
continue mainloop;
}
j++; k++;
}
return i;
}
return -1;
}
'''
data = template.replace('$T', 'float')
data = data.replace('$B', 'Float')
f.write(data)
data = template.replace('$T', 'double')
data = data.replace('$B', 'Double')
f.write(data)
f.write('\n\n\t// ---------------------------------------------------------------- toString')
f.write('''
/**
* Converts an array to string. Elements are separated by comma and
* an empty space. Returned string contains no brackets.
*/
public static String toString(Object[] array) {
if (array == null) {
return NULL;
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < array.length; i++) {
if (i != 0) {
sb.append(',').append(' ');
}
sb.append(array[i]);
}
return sb.toString();
}
'''
)
template = '''
/**
* Converts an array to string. Elements are separated by comma and
* an empty space. Returned string contains no brackets.
*/
public static String toString($T[] array) {
if (array == null) {
return NULL;
}
StringBuilder sb = new StringBuilder();
for (int i = 0; i < array.length; i++) {
if (i != 0) {
sb.append(',').append(' ');
}
sb.append(array[i]);
}
return sb.toString();
}
'''
for type in types:
data = template.replace('$T', type)
f.write(data)
f.write('}')
f.close()
| 25.363636
| 108
| 0.589367
| 2,173
| 16,740
| 4.535205
| 0.072711
| 0.056012
| 0.031659
| 0.030441
| 0.88138
| 0.857737
| 0.827905
| 0.790259
| 0.74896
| 0.733435
| 0
| 0.007334
| 0.193668
| 16,740
| 659
| 109
| 25.402124
| 0.722774
| 0
| 0
| 0.654882
| 0
| 0.031987
| 0.882729
| 0.134954
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.003367
| 0
| 0.109428
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
62454b969e7e4c5652ca7f1fdd8bc2609a554943
| 559
|
py
|
Python
|
src/graph_transpiler/webdnn/backend/webgl/optimize_rules/__init__.py
|
steerapi/webdnn
|
1df51cc094e5a528cfd3452c264905708eadb491
|
[
"MIT"
] | 1
|
2021-04-09T15:55:35.000Z
|
2021-04-09T15:55:35.000Z
|
src/graph_transpiler/webdnn/backend/webgl/optimize_rules/__init__.py
|
steerapi/webdnn
|
1df51cc094e5a528cfd3452c264905708eadb491
|
[
"MIT"
] | null | null | null |
src/graph_transpiler/webdnn/backend/webgl/optimize_rules/__init__.py
|
steerapi/webdnn
|
1df51cc094e5a528cfd3452c264905708eadb491
|
[
"MIT"
] | null | null | null |
from webdnn.backend.webgl.optimize_rules import decompose_softmax
from webdnn.backend.webgl.optimize_rules import fix_tensordot_texture_shape
from webdnn.backend.webgl.optimize_rules import insert_channel_mode_conversion
from webdnn.backend.webgl.optimize_rules import insert_transpose
from webdnn.backend.webgl.optimize_rules import simplify_channel_mode_conversion
from webdnn.backend.webgl.optimize_rules import split_texture
from webdnn.backend.webgl.optimize_rules import unroll_concat
from webdnn.backend.webgl.optimize_rules import webgl_optimize_rule
| 62.111111
| 80
| 0.899821
| 79
| 559
| 6.075949
| 0.291139
| 0.24375
| 0.283333
| 0.366667
| 0.795833
| 0.795833
| 0.795833
| 0.36875
| 0.258333
| 0.258333
| 0
| 0
| 0.057245
| 559
| 8
| 81
| 69.875
| 0.910816
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
6254e94f4ffad04828185c3245d0dd7b8c59e9af
| 1,644
|
py
|
Python
|
elementalcms/extends/actionsdecorators.py
|
paranoid-software/elemental-cms
|
7f09f9cd5498577d23fa70d1a51497b9de232598
|
[
"MIT"
] | 3
|
2022-01-12T09:11:54.000Z
|
2022-02-24T22:39:11.000Z
|
elementalcms/extends/actionsdecorators.py
|
paranoid-software/elemental-cms
|
7f09f9cd5498577d23fa70d1a51497b9de232598
|
[
"MIT"
] | null | null | null |
elementalcms/extends/actionsdecorators.py
|
paranoid-software/elemental-cms
|
7f09f9cd5498577d23fa70d1a51497b9de232598
|
[
"MIT"
] | 1
|
2022-01-12T09:11:56.000Z
|
2022-01-12T09:11:56.000Z
|
def get(route: str, **kwargs):
def wrapper(function):
function.is_action = True
function.route = route
function.method = 'GET'
function.endpoint = None
if 'endpoint' in kwargs.keys():
function.endpoint = kwargs['endpoint']
return function
return wrapper
def post(route: str, **kwargs):
def wrapper(function):
function.is_action = True
function.route = route
function.method = 'POST'
function.endpoint = None
if 'endpoint' in kwargs.keys():
function.endpoint = kwargs['endpoint']
return function
return wrapper
def put(route: str, **kwargs):
def wrapper(function):
function.is_action = True
function.route = route
function.method = 'PUT'
function.endpoint = None
if 'endpoint' in kwargs.keys():
function.endpoint = kwargs['endpoint']
return function
return wrapper
def patch(route: str, **kwargs):
def wrapper(function):
function.is_action = True
function.route = route
function.method = 'PATCH'
function.endpoint = None
if 'endpoint' in kwargs.keys():
function.endpoint = kwargs['endpoint']
return function
return wrapper
def delete(route: str, **kwargs):
def wrapper(function):
function.is_action = True
function.route = route
function.method = 'DELETE'
function.endpoint = None
if 'endpoint' in kwargs.keys():
function.endpoint = kwargs['endpoint']
return function
return wrapper
| 22.520548
| 50
| 0.594282
| 170
| 1,644
| 5.717647
| 0.123529
| 0.164609
| 0.072016
| 0.087449
| 0.953704
| 0.953704
| 0.953704
| 0.953704
| 0.953704
| 0.953704
| 0
| 0
| 0.308394
| 1,644
| 72
| 51
| 22.833333
| 0.854881
| 0
| 0
| 0.8
| 0
| 0
| 0.061436
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.4
| 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
|
626943faefc1c4a4cec83d3cb33de6c38ae9875b
| 109,893
|
py
|
Python
|
tfat/migrations/0001_initial_squashed_0015_upload_to_tfat_tag_reports.py
|
AdamCottrill/TFAT
|
2cd6026ecf22eff6473a6064b9bc9e908c33e4ae
|
[
"MIT"
] | null | null | null |
tfat/migrations/0001_initial_squashed_0015_upload_to_tfat_tag_reports.py
|
AdamCottrill/TFAT
|
2cd6026ecf22eff6473a6064b9bc9e908c33e4ae
|
[
"MIT"
] | null | null | null |
tfat/migrations/0001_initial_squashed_0015_upload_to_tfat_tag_reports.py
|
AdamCottrill/TFAT
|
2cd6026ecf22eff6473a6064b9bc9e908c33e4ae
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.2.10 on 2020-06-10 12:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
class Migration(migrations.Migration):
replaces = [
("tfat", "0001_initial"),
("tfat", "0002_auto_20200220_0949"),
("tfat", "0003_auto_20200220_1242"),
("tfat", "0004_auto_20200220_1647"),
("tfat", "0005_auto_20200220_1718"),
("tfat", "0006_auto_20200221_1652"),
("tfat", "0007_auto_20200224_1338"),
("tfat", "0008_auto_20200415_1940"),
("tfat", "0009_auto_20200415_2001"),
("tfat", "0010_auto_20200415_2103"),
("tfat", "0011_auto_20200415_2158"),
("tfat", "0012_auto_20200415_2224"),
("tfat", "0013_auto_20200416_1012"),
("tfat", "0014_auto_20200416_1049"),
("tfat", "0015_upload_to_tfat_tag_reports"),
]
dependencies = [
("common", "0001_initial"),
("common", "0003_auto_20200414_1700"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name="Database",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("master_database", models.CharField(max_length=250)),
("path", models.CharField(max_length=250)),
],
options={
"verbose_name": "Master Database",
},
),
migrations.CreateModel(
name="JoePublic",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("first_name", models.CharField(max_length=15)),
("last_name", models.CharField(max_length=50)),
("initial", models.CharField(blank=True, max_length=5, null=True)),
("address1", models.CharField(blank=True, max_length=50, null=True)),
("address2", models.CharField(blank=True, max_length=50, null=True)),
("town", models.CharField(blank=True, max_length=50, null=True)),
(
"province",
models.CharField(
blank=True,
choices=[
("ON", "Ontario"),
("AB", "Alberta"),
("BC", "British Columbia"),
("MB", "Manitoba"),
("NB", "New Brunswick"),
("NL", "Newfoundland and Labrador"),
("NS", "Nova Scotia"),
("NT", "Northwest Territories"),
("NU", "Nunavut"),
("PE", "Prince Edward Island"),
("QC", "Quebec"),
("SK", "Saskatchewan"),
("YT", "Yukon"),
("AL", "Alabama"),
("AK", "Alaska"),
("AZ", "Arizona"),
("AR", "Arkansas"),
("CA", "California"),
("CO", "Colorado"),
("CT", "Connecticut"),
("DE", "Delaware"),
("DC", "District of Columbia"),
("FL", "Florida"),
("GA", "Georgia"),
("HI", "Hawaii"),
("ID", "Idaho"),
("IL", "Illinois"),
("IN", "Indiana"),
("IA", "Iowa"),
("KS", "Kansas"),
("KY", "Kentucky"),
("LA", "Louisiana"),
("ME", "Maine"),
("MD", "Maryland"),
("MA", "Massachusetts"),
("MI", "Michigan"),
("MN", "Minnesota"),
("MS", "Mississippi"),
("MO", "Missouri"),
("MT", "Montana"),
("NE", "Nebraska"),
("NV", "Nevada"),
("NH", "New Hampshire"),
("NJ", "New Jersey"),
("NM", "New Mexico"),
("NY", "New York"),
("NC", "North Carolina"),
("ND", "North Dakota"),
("OH", "Ohio"),
("OK", "Oklahoma"),
("OR", "Oregon"),
("PA", "Pennsylvania"),
("RI", "Rhode Island"),
("SC", "South Carolina"),
("SD", "South Dakota"),
("TN", "Tennessee"),
("TX", "Texas"),
("UT", "Utah"),
("VT", "Vermont"),
("VA", "Virginia"),
("WA", "Washington"),
("WV", "West Virginia"),
("WI", "Wisconsin"),
("WY", "Wyoming"),
],
max_length=12,
null=True,
),
),
("postal_code", models.CharField(blank=True, max_length=7, null=True)),
("email", models.CharField(blank=True, max_length=50, null=True)),
("phone", models.CharField(blank=True, max_length=15, null=True)),
("affiliation", models.CharField(blank=True, max_length=50, null=True)),
],
options={
"ordering": ["last_name", "first_name"],
},
),
migrations.CreateModel(
name="Recovery",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("recovery_date", models.DateField(blank=True, null=True)),
(
"date_flag",
models.IntegerField(
choices=[(2, "Derived"), (0, "Unknown"), (1, "Reported")],
default=1,
verbose_name="Date Flag",
),
),
(
"general_location",
models.CharField(
blank=True,
max_length=200,
null=True,
verbose_name="General Location",
),
),
(
"specific_location",
models.CharField(
blank=True,
max_length=200,
null=True,
verbose_name="Specific Location",
),
),
("dd_lat", models.FloatField(blank=True, null=True)),
("dd_lon", models.FloatField(blank=True, null=True)),
(
"latlon_flag",
models.IntegerField(
choices=[(2, "Derived"), (0, "Unknown"), (1, "Reported")],
default=1,
verbose_name="Spatial Flag",
),
),
("spatial_followup", models.BooleanField(default=False)),
(
"flen",
models.IntegerField(
blank=True, null=True, verbose_name="Fork Length"
),
),
(
"tlen",
models.IntegerField(
blank=True, null=True, verbose_name="Total Length"
),
),
(
"rwt",
models.IntegerField(
blank=True, null=True, verbose_name="Round Weight"
),
),
(
"girth",
models.IntegerField(blank=True, null=True, verbose_name="Girth"),
),
(
"sex",
models.CharField(
blank=True,
choices=[
("1", "Male"),
("3", "Hermaphrodite"),
("9", "Unknown"),
("2", "Female"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
(
"clipc",
models.CharField(
blank=True, max_length=5, null=True, verbose_name="Clip Code"
),
),
("tagid", models.CharField(db_index=True, max_length=20)),
(
"_tag_origin",
models.CharField(
choices=[
("10", "Lakehead University"),
("98", "Other"),
("24", "CORA"),
("05", "University of Toronto"),
("20", "USGS"),
("09", "State of Minnesota"),
("07", "State of Pennsylvania"),
("13", "Ontario Hydro"),
("19", "USFWS"),
("02", "New York State"),
("25", "AOFRC"),
("11", "Sir Sandford Fleming College"),
("06", "State of Ohio"),
("08", "Royal Ontario Museum"),
("26", "GLLFAS"),
("01", "Ontario Ministry of Natural Resources"),
("03", "State of Michigan"),
("99", "Unknown"),
("12", "Private Club"),
("04", "University of Guelph"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
(
"_tag_position",
models.CharField(
choices=[
("6", "Jaw"),
("8", "Anal"),
("4", "Abdominal Insertion"),
("2", "Between Dorsal"),
("5", "Flesh of Back"),
("1", "Anterior Dorsal"),
("3", "Posterior Dorsal"),
("7", "Snout"),
("9", "Unknown"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
(
"_tag_type",
models.CharField(
choices=[
("B", "Metal Livestock"),
("1", "Streamer"),
("6", "Coded Wire"),
("7", "Strip Vinyl "),
("2", "Tubular Vinyl"),
("A", "Internal (Radio)"),
("5", "Anchor"),
("8", "Secure Tie"),
("C", "Cinch"),
("P", "PIT tag"),
("3", "Circular Strap Jaw "),
("4", "Butt End Jaw "),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
(
"_tag_colour",
models.CharField(
choices=[
("3", "Red"),
("5", "Orange"),
("7", "White"),
("4", "Green"),
("1", "Colourless"),
("2", "Yellow"),
("6", "Silver"),
("9", "Unknown"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
(
"tagdoc",
models.CharField(
db_index=True,
default="25012",
max_length=6,
verbose_name="TAGDOC",
),
),
("tag_removed", models.BooleanField(default=False)),
(
"fate",
models.CharField(
blank=True,
choices=[("R", "Released"), ("K", "Killed")],
default="R",
max_length=3,
null=True,
verbose_name="Fate",
),
),
("comment", models.CharField(blank=True, max_length=500, null=True)),
(
"lake",
models.ForeignKey(
default=1,
on_delete=django.db.models.deletion.CASCADE,
related_name="recoveries",
to="common.Lake",
),
),
],
options={
"ordering": ["tagdoc", "tagid"],
},
),
migrations.CreateModel(
name="Report",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"report_date",
models.DateTimeField(
blank=True, null=True, verbose_name="Report Date"
),
),
(
"date_flag",
models.IntegerField(
choices=[(2, "Derived"), (1, "Reported"), (0, "Unknown")],
default=0,
verbose_name="Date Flag",
),
),
(
"reporting_format",
models.CharField(
choices=[
("letter", "letter"),
("other", "other"),
("dcr", "DCR"),
("verbal", "verbal"),
("e-mail", "e-mail"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
("dcr", models.CharField(blank=True, max_length=15, null=True)),
("effort", models.CharField(blank=True, max_length=15, null=True)),
(
"associated_file",
models.FileField(blank=True, null=True, upload_to="reports"),
),
("comment", models.CharField(blank=True, max_length=500, null=True)),
("follow_up", models.BooleanField(default=False)),
(
"reported_by",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="Reported_By",
to="tfat.JoePublic",
),
),
],
options={
"verbose_name_plural": "JoePublic",
"ordering": ["-report_date"],
},
),
migrations.CreateModel(
name="Species",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("species_code", models.IntegerField(unique=True)),
("common_name", models.CharField(max_length=40)),
(
"scientific_name",
models.CharField(blank=True, max_length=50, null=True),
),
("primary", models.BooleanField(default=False)),
],
options={
"verbose_name_plural": "Species",
"ordering": ["-primary", "common_name"],
},
),
migrations.CreateModel(
name="RecoveryLetter",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("letter", models.FileField(upload_to="tag_return_letters/")),
(
"zoom",
models.IntegerField(blank=True, null=True, verbose_name="Map Zoom"),
),
(
"method",
models.CharField(
choices=[
("custom_letter", "Custom Letter"),
("tfat_template", "TFAT Template"),
],
default="tfat_template",
max_length=30,
verbose_name="Generated By",
),
),
(
"recovery",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="recovery_letters",
to="tfat.Recovery",
),
),
],
),
migrations.AddField(
model_name="recovery",
name="report",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="Report",
to="tfat.Report",
),
),
migrations.AddField(
model_name="recovery",
name="species",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="recoveries",
to="tfat.TaggedSpecies",
),
),
migrations.CreateModel(
name="Project",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("year", models.IntegerField(db_index=True)),
("prj_cd", models.CharField(db_index=True, max_length=12)),
("prj_nm", models.CharField(max_length=100)),
("slug", models.SlugField(blank=True, editable=False)),
(
"dbase",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="tfat.Database"
),
),
(
"lake",
models.ForeignKey(
default=1,
on_delete=django.db.models.deletion.CASCADE,
related_name="Projects",
to="common.Lake",
),
),
],
options={
"ordering": ["-year", "prj_cd"],
},
),
migrations.AlterIndexTogether(
name="recovery",
index_together={("tagid", "tagdoc", "species")},
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("2", "Yellow"),
("7", "White"),
("9", "Unknown"),
("3", "Red"),
("4", "Green"),
("6", "Silver"),
("1", "Colourless"),
("5", "Orange"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("01", "Ontario Ministry of Natural Resources"),
("99", "Unknown"),
("20", "USGS"),
("03", "State of Michigan"),
("11", "Sir Sandford Fleming College"),
("19", "USFWS"),
("12", "Private Club"),
("09", "State of Minnesota"),
("98", "Other"),
("06", "State of Ohio"),
("05", "University of Toronto"),
("26", "GLLFAS"),
("08", "Royal Ontario Museum"),
("02", "New York State"),
("25", "AOFRC"),
("10", "Lakehead University"),
("07", "State of Pennsylvania"),
("04", "University of Guelph"),
("24", "CORA"),
("13", "Ontario Hydro"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("2", "Between Dorsal"),
("9", "Unknown"),
("1", "Anterior Dorsal"),
("6", "Jaw"),
("3", "Posterior Dorsal"),
("5", "Flesh of Back"),
("7", "Snout"),
("4", "Abdominal Insertion"),
("8", "Anal"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("2", "Tubular Vinyl"),
("C", "Cinch"),
("8", "Secure Tie"),
("3", "Circular Strap Jaw "),
("B", "Metal Livestock"),
("P", "PIT tag"),
("1", "Streamer"),
("5", "Anchor"),
("7", "Strip Vinyl "),
("4", "Butt End Jaw "),
("A", "Internal (Radio)"),
("6", "Coded Wire"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (1, "Reported"), (2, "Derived")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (1, "Reported"), (2, "Derived")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("2", "Female"),
("3", "Hermaphrodite"),
("9", "Unknown"),
("1", "Male"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("1", "Colourless"),
("2", "Yellow"),
("5", "Orange"),
("7", "White"),
("9", "Unknown"),
("4", "Green"),
("3", "Red"),
("6", "Silver"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("19", "USFWS"),
("01", "Ontario Ministry of Natural Resources"),
("25", "AOFRC"),
("07", "State of Pennsylvania"),
("06", "State of Ohio"),
("20", "USGS"),
("98", "Other"),
("04", "University of Guelph"),
("26", "GLLFAS"),
("09", "State of Minnesota"),
("05", "University of Toronto"),
("10", "Lakehead University"),
("24", "CORA"),
("99", "Unknown"),
("12", "Private Club"),
("08", "Royal Ontario Museum"),
("02", "New York State"),
("11", "Sir Sandford Fleming College"),
("03", "State of Michigan"),
("13", "Ontario Hydro"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("6", "Jaw"),
("5", "Flesh of Back"),
("1", "Anterior Dorsal"),
("8", "Anal"),
("9", "Unknown"),
("4", "Abdominal Insertion"),
("7", "Snout"),
("3", "Posterior Dorsal"),
("2", "Between Dorsal"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("3", "Circular Strap Jaw "),
("P", "PIT tag"),
("4", "Butt End Jaw "),
("B", "Metal Livestock"),
("C", "Cinch"),
("6", "Coded Wire"),
("A", "Internal (Radio)"),
("1", "Streamer"),
("8", "Secure Tie"),
("5", "Anchor"),
("7", "Strip Vinyl "),
("2", "Tubular Vinyl"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("1", "Male"),
("9", "Unknown"),
("2", "Female"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.CreateModel(
name="Encounter",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("sam", models.CharField(max_length=5)),
("eff", models.CharField(max_length=3)),
("grp", models.CharField(max_length=3)),
("fish", models.CharField(max_length=10)),
("observation_date", models.DateField()),
("grid", models.CharField(max_length=4)),
("dd_lat", models.FloatField()),
("dd_lon", models.FloatField()),
("flen", models.IntegerField(blank=True, null=True)),
("tlen", models.IntegerField(blank=True, null=True)),
("rwt", models.IntegerField(blank=True, null=True)),
("age", models.IntegerField(blank=True, null=True)),
(
"sex",
models.CharField(
blank=True,
choices=[
("1", "Male"),
("2", "Female"),
("3", "Hermaphrodite"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
("clipc", models.CharField(blank=True, max_length=5, null=True)),
("tagid", models.CharField(db_index=True, max_length=20)),
(
"tagdoc",
models.CharField(
blank=True, db_index=True, max_length=6, null=True
),
),
(
"tagstat",
models.CharField(
blank=True,
choices=[("A", "Applied"), ("C", "Existed on Capture")],
db_index=True,
default="C",
max_length=4,
null=True,
),
),
(
"fate",
models.CharField(
blank=True,
choices=[("R", "Released"), ("K", "Killed")],
default="C",
max_length=2,
null=True,
),
),
("comment", models.CharField(blank=True, max_length=500, null=True)),
(
"project",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="Encounters",
to="tfat.Project",
),
),
(
"species",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="tfat.TaggedSpecies"
),
),
],
options={
"ordering": ["tagdoc", "tagid", "observation_date"],
"index_together": {("tagid", "tagdoc", "species")},
},
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("1", "Colourless"),
("6", "Silver"),
("9", "Unknown"),
("5", "Orange"),
("4", "Green"),
("2", "Yellow"),
("7", "White"),
("3", "Red"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("11", "Sir Sandford Fleming College"),
("01", "Ontario Ministry of Natural Resources"),
("09", "State of Minnesota"),
("10", "Lakehead University"),
("12", "Private Club"),
("04", "University of Guelph"),
("25", "AOFRC"),
("26", "GLLFAS"),
("03", "State of Michigan"),
("06", "State of Ohio"),
("99", "Unknown"),
("20", "USGS"),
("05", "University of Toronto"),
("24", "CORA"),
("07", "State of Pennsylvania"),
("02", "New York State"),
("98", "Other"),
("13", "Ontario Hydro"),
("08", "Royal Ontario Museum"),
("19", "USFWS"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("9", "Unknown"),
("2", "Between Dorsal"),
("8", "Anal"),
("5", "Flesh of Back"),
("7", "Snout"),
("4", "Abdominal Insertion"),
("1", "Anterior Dorsal"),
("3", "Posterior Dorsal"),
("6", "Jaw"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("5", "Anchor"),
("C", "Cinch"),
("4", "Butt End Jaw "),
("3", "Circular Strap Jaw "),
("A", "Internal (Radio)"),
("7", "Strip Vinyl "),
("6", "Coded Wire"),
("8", "Secure Tie"),
("P", "PIT tag"),
("B", "Metal Livestock"),
("2", "Tubular Vinyl"),
("1", "Streamer"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("1", "Male"),
("2", "Female"),
("3", "Hermaphrodite"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("1", "Colourless"),
("4", "Green"),
("9", "Unknown"),
("3", "Red"),
("7", "White"),
("2", "Yellow"),
("5", "Orange"),
("6", "Silver"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("12", "Private Club"),
("05", "University of Toronto"),
("10", "Lakehead University"),
("25", "AOFRC"),
("99", "Unknown"),
("08", "Royal Ontario Museum"),
("24", "CORA"),
("09", "State of Minnesota"),
("02", "New York State"),
("11", "Sir Sandford Fleming College"),
("03", "State of Michigan"),
("07", "State of Pennsylvania"),
("01", "Ontario Ministry of Natural Resources"),
("19", "USFWS"),
("26", "GLLFAS"),
("04", "University of Guelph"),
("13", "Ontario Hydro"),
("20", "USGS"),
("06", "State of Ohio"),
("98", "Other"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("2", "Between Dorsal"),
("7", "Snout"),
("9", "Unknown"),
("3", "Posterior Dorsal"),
("1", "Anterior Dorsal"),
("8", "Anal"),
("4", "Abdominal Insertion"),
("6", "Jaw"),
("5", "Flesh of Back"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("P", "PIT tag"),
("4", "Butt End Jaw "),
("1", "Streamer"),
("5", "Anchor"),
("B", "Metal Livestock"),
("C", "Cinch"),
("7", "Strip Vinyl "),
("3", "Circular Strap Jaw "),
("6", "Coded Wire"),
("A", "Internal (Radio)"),
("2", "Tubular Vinyl"),
("8", "Secure Tie"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(2, "Derived"), (1, "Reported"), (0, "Unknown")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(2, "Derived"), (1, "Reported"), (0, "Unknown")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.CreateModel(
name="ReportFollowUp",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("timestamp", models.DateTimeField()),
(
"status",
models.CharField(
choices=[
("requested", "Requested"),
("initialized", "Initialized"),
("completed", "Completed"),
],
db_index=True,
default="requested",
max_length=12,
verbose_name="Follow Up Status",
),
),
(
"created_by",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
(
"report",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="followups",
to="tfat.Report",
),
),
("comment", models.TextField(blank=True, null=True)),
],
# options={
# "unique_together": {("report", "status")},
# },
),
# migrations.AddConstraint(
# model_name="reportfollowup",
# constraint=models.UniqueConstraint(
# # foo bar - was id
# fields=("report_id", "status"),
# name="unique status",
# ),
# ),
# migrations.RemoveConstraint(
# model_name="reportfollowup",
# name="unique status",
# ),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("2", "Female"),
("1", "Male"),
("9", "Unknown"),
("3", "Hermaphrodite"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("9", "Unknown"),
("3", "Red"),
("5", "Orange"),
("7", "White"),
("4", "Green"),
("1", "Colourless"),
("6", "Silver"),
("2", "Yellow"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("20", "USGS"),
("04", "University of Guelph"),
("06", "State of Ohio"),
("12", "Private Club"),
("10", "Lakehead University"),
("05", "University of Toronto"),
("19", "USFWS"),
("11", "Sir Sandford Fleming College"),
("02", "New York State"),
("25", "AOFRC"),
("09", "State of Minnesota"),
("24", "CORA"),
("08", "Royal Ontario Museum"),
("01", "Ontario Ministry of Natural Resources"),
("03", "State of Michigan"),
("26", "GLLFAS"),
("13", "Ontario Hydro"),
("99", "Unknown"),
("07", "State of Pennsylvania"),
("98", "Other"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("1", "Anterior Dorsal"),
("8", "Anal"),
("3", "Posterior Dorsal"),
("9", "Unknown"),
("4", "Abdominal Insertion"),
("6", "Jaw"),
("7", "Snout"),
("2", "Between Dorsal"),
("5", "Flesh of Back"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("C", "Cinch"),
("7", "Strip Vinyl "),
("8", "Secure Tie"),
("5", "Anchor"),
("4", "Butt End Jaw "),
("A", "Internal (Radio)"),
("6", "Coded Wire"),
("B", "Metal Livestock"),
("1", "Streamer"),
("2", "Tubular Vinyl"),
("P", "PIT tag"),
("3", "Circular Strap Jaw "),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (2, "Derived"), (0, "Unknown")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (2, "Derived"), (0, "Unknown")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="report",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="recoveries",
to="tfat.Report",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("2", "Female"),
("1", "Male"),
("9", "Unknown"),
("3", "Hermaphrodite"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (2, "Derived"), (0, "Unknown")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("e-mail", "e-mail"),
("other", "other"),
("dcr", "DCR"),
("verbal", "verbal"),
("letter", "letter"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
# migrations.AlterUniqueTogether(
# name="reportfollowup",
# unique_together=set(),
# ),
# migrations.AddConstraint(
# model_name="reportfollowup",
# constraint=models.UniqueConstraint(
# fields=("report", "status"), name="unique report_status"
# ),
# ),
migrations.AddField(
model_name="report",
name="follow_up_status",
field=models.CharField(
blank=True,
choices=[
("requested", "Requested"),
("initialized", "Initialized"),
("completed", "Completed"),
],
db_index=True,
default=None,
max_length=12,
null=True,
verbose_name="Follow Up Status",
),
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("2", "Female"),
("1", "Male"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("7", "White"),
("6", "Silver"),
("5", "Orange"),
("9", "Unknown"),
("3", "Red"),
("4", "Green"),
("2", "Yellow"),
("1", "Colourless"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("09", "State of Minnesota"),
("07", "State of Pennsylvania"),
("12", "Private Club"),
("01", "Ontario Ministry of Natural Resources"),
("19", "USFWS"),
("98", "Other"),
("08", "Royal Ontario Museum"),
("11", "Sir Sandford Fleming College"),
("25", "AOFRC"),
("02", "New York State"),
("20", "USGS"),
("03", "State of Michigan"),
("06", "State of Ohio"),
("26", "GLLFAS"),
("99", "Unknown"),
("24", "CORA"),
("13", "Ontario Hydro"),
("04", "University of Guelph"),
("10", "Lakehead University"),
("05", "University of Toronto"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("6", "Jaw"),
("9", "Unknown"),
("2", "Between Dorsal"),
("8", "Anal"),
("5", "Flesh of Back"),
("4", "Abdominal Insertion"),
("3", "Posterior Dorsal"),
("7", "Snout"),
("1", "Anterior Dorsal"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("3", "Circular Strap Jaw "),
("7", "Strip Vinyl "),
("P", "PIT tag"),
("5", "Anchor"),
("4", "Butt End Jaw "),
("1", "Streamer"),
("A", "Internal (Radio)"),
("B", "Metal Livestock"),
("2", "Tubular Vinyl"),
("C", "Cinch"),
("8", "Secure Tie"),
("6", "Coded Wire"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (2, "Derived"), (1, "Reported")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (2, "Derived"), (1, "Reported")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("2", "Female"),
("1", "Male"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (2, "Derived"), (1, "Reported")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("letter", "letter"),
("verbal", "verbal"),
("e-mail", "e-mail"),
("other", "other"),
("dcr", "DCR"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.AlterModelOptions(
name="report",
options={"ordering": ["-report_date"]},
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("2", "Female"),
("1", "Male"),
("3", "Hermaphrodite"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="encounter",
name="tagstat",
field=models.CharField(
blank=True,
choices=[("C", "Existed on Capture"), ("A", "Applied")],
db_index=True,
default="C",
max_length=4,
null=True,
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("9", "Unknown"),
("5", "Orange"),
("2", "Yellow"),
("3", "Red"),
("7", "White"),
("1", "Colourless"),
("4", "Green"),
("6", "Silver"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("01", "MNRF"),
("08", "ROM"),
("10", "Lakehead"),
("02", "NY"),
("03", "Mich."),
("25", "AOFRC"),
("04", "UofG"),
("20", "USGS"),
("09", "Minn."),
("19", "USFWS"),
("06", "Ohio"),
("13", "OntHydro"),
("99", "Unkn"),
("11", "SSFC"),
("26", "GLLFAS"),
("05", "UofT"),
("12", "Priv"),
("98", "Other"),
("24", "CORA"),
("07", "Penn."),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("9", "Unknown"),
("5", "Flesh of Back"),
("4", "Abdominal Insertion"),
("8", "Anal"),
("1", "Anterior Dorsal"),
("6", "Jaw"),
("7", "Snout"),
("3", "Posterior Dorsal"),
("2", "Between Dorsal"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("7", "Strip Vinyl "),
("A", "Internal (Radio)"),
("P", "PIT tag"),
("5", "Anchor"),
("3", "Circular Strap Jaw "),
("4", "Butt End Jaw "),
("8", "Secure Tie"),
("2", "Tubular Vinyl"),
("C", "Cinch"),
("B", "Metal Livestock"),
("6", "Coded Wire"),
("1", "Streamer"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("2", "Female"),
("1", "Male"),
("3", "Hermaphrodite"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recoveryletter",
name="method",
field=models.CharField(
choices=[
("tfat_template", "TFAT Template"),
("custom_letter", "Custom Letter"),
],
default="tfat_template",
max_length=30,
verbose_name="Generated By",
),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("dcr", "DCR"),
("verbal", "verbal"),
("letter", "letter"),
("other", "other"),
("e-mail", "e-mail"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("1", "Male"),
("2", "Female"),
("9", "Unknown"),
("3", "Hermaphrodite"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("2", "Yellow"),
("7", "White"),
("3", "Red"),
("1", "Colourless"),
("4", "Green"),
("9", "Unknown"),
("5", "Orange"),
("6", "Silver"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("26", "GLLFAS"),
("24", "CORA"),
("19", "USFWS"),
("25", "AOFRC"),
("06", "Ohio"),
("03", "Mich."),
("12", "Priv"),
("04", "UofG"),
("08", "ROM"),
("05", "UofT"),
("98", "Other"),
("13", "OntHydro"),
("10", "Lakehead"),
("09", "Minn."),
("99", "Unkn"),
("01", "MNRF"),
("20", "USGS"),
("02", "NY"),
("07", "Penn."),
("11", "SSFC"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("5", "Flesh of Back"),
("2", "Between Dorsal"),
("6", "Jaw"),
("8", "Anal"),
("1", "Anterior Dorsal"),
("4", "Abdominal Insertion"),
("3", "Posterior Dorsal"),
("7", "Snout"),
("9", "Unknown"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("6", "Coded Wire"),
("1", "Streamer"),
("A", "Internal (Radio)"),
("P", "PIT tag"),
("7", "Strip Vinyl "),
("B", "Metal Livestock"),
("5", "Anchor"),
("4", "Butt End Jaw "),
("8", "Secure Tie"),
("3", "Circular Strap Jaw "),
("2", "Tubular Vinyl"),
("C", "Cinch"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("1", "Male"),
("2", "Female"),
("9", "Unknown"),
("3", "Hermaphrodite"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recoveryletter",
name="method",
field=models.CharField(
choices=[
("custom_letter", "Custom Letter"),
("tfat_template", "TFAT Template"),
],
default="tfat_template",
max_length=30,
verbose_name="Generated By",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("other", "other"),
("verbal", "verbal"),
("dcr", "DCR"),
("e-mail", "e-mail"),
("letter", "letter"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("2", "Female"),
("9", "Unknown"),
("1", "Male"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
## migrations.AddField(
## model_name="encounter",
## name="species",
## field=models.ForeignKey(
## on_delete=django.db.models.deletion.CASCADE, to="common.Species"
## ),
## ),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("5", "Orange"),
("3", "Red"),
("6", "Silver"),
("7", "White"),
("9", "Unknown"),
("2", "Yellow"),
("1", "Colourless"),
("4", "Green"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("98", "Other"),
("04", "UofG"),
("01", "MNRF"),
("08", "ROM"),
("13", "OntHydro"),
("99", "Unkn"),
("20", "USGS"),
("25", "AOFRC"),
("19", "USFWS"),
("05", "UofT"),
("03", "Mich."),
("09", "Minn."),
("26", "GLLFAS"),
("10", "Lakehead"),
("07", "Penn."),
("06", "Ohio"),
("02", "NY"),
("12", "Priv"),
("24", "CORA"),
("11", "SSFC"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("1", "Anterior Dorsal"),
("3", "Posterior Dorsal"),
("2", "Between Dorsal"),
("9", "Unknown"),
("7", "Snout"),
("8", "Anal"),
("4", "Abdominal Insertion"),
("6", "Jaw"),
("5", "Flesh of Back"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("5", "Anchor"),
("C", "Cinch"),
("3", "Circular Strap Jaw "),
("6", "Coded Wire"),
("A", "Internal (Radio)"),
("4", "Butt End Jaw "),
("7", "Strip Vinyl "),
("8", "Secure Tie"),
("P", "PIT tag"),
("B", "Metal Livestock"),
("2", "Tubular Vinyl"),
("1", "Streamer"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (2, "Derived"), (1, "Reported")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (2, "Derived"), (1, "Reported")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("2", "Female"),
("9", "Unknown"),
("1", "Male"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AddField(
model_name="recovery",
name="species",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="recoveries",
to="common.Species",
),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (2, "Derived"), (1, "Reported")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("other", "other"),
("dcr", "DCR"),
("verbal", "verbal"),
("e-mail", "e-mail"),
("letter", "letter"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.AlterIndexTogether(
name="encounter",
index_together={("tagid", "tagdoc", "species")},
),
migrations.AlterIndexTogether(
name="recovery",
index_together={("tagid", "tagdoc", "species")},
),
## migrations.RemoveField(
## model_name="encounter",
## name="species",
## ),
## migrations.RemoveField(
## model_name="recovery",
## name="species",
## ),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("9", "Unknown"),
("1", "Male"),
("2", "Female"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="encounter",
name="tagstat",
field=models.CharField(
blank=True,
choices=[("A", "Applied"), ("C", "Existed on Capture")],
db_index=True,
default="C",
max_length=4,
null=True,
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("3", "Red"),
("2", "Yellow"),
("6", "Silver"),
("9", "Unknown"),
("1", "Colourless"),
("5", "Orange"),
("7", "White"),
("4", "Green"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("11", "SSFC"),
("20", "USGS"),
("08", "ROM"),
("24", "CORA"),
("04", "UofG"),
("12", "Priv"),
("99", "Unkn"),
("03", "Mich."),
("07", "Penn."),
("19", "USFWS"),
("09", "Minn."),
("05", "UofT"),
("01", "MNRF"),
("06", "Ohio"),
("98", "Other"),
("10", "Lakehead"),
("13", "OntHydro"),
("26", "GLLFAS"),
("25", "AOFRC"),
("02", "NY"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("2", "Between Dorsal"),
("7", "Snout"),
("6", "Jaw"),
("9", "Unknown"),
("8", "Anal"),
("1", "Anterior Dorsal"),
("5", "Flesh of Back"),
("3", "Posterior Dorsal"),
("4", "Abdominal Insertion"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("5", "Anchor"),
("7", "Strip Vinyl "),
("6", "Coded Wire"),
("3", "Circular Strap Jaw "),
("4", "Butt End Jaw "),
("2", "Tubular Vinyl"),
("B", "Metal Livestock"),
("8", "Secure Tie"),
("C", "Cinch"),
("A", "Internal (Radio)"),
("1", "Streamer"),
("P", "PIT tag"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(2, "Derived"), (1, "Reported"), (0, "Unknown")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(2, "Derived"), (1, "Reported"), (0, "Unknown")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("9", "Unknown"),
("1", "Male"),
("2", "Female"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(2, "Derived"), (1, "Reported"), (0, "Unknown")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("verbal", "verbal"),
("letter", "letter"),
("e-mail", "e-mail"),
("other", "other"),
("dcr", "DCR"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.DeleteModel(
name="Species",
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("1", "Male"),
("9", "Unknown"),
("2", "Female"),
("3", "Hermaphrodite"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="encounter",
name="tagstat",
field=models.CharField(
blank=True,
choices=[("C", "Existed on Capture"), ("A", "Applied")],
db_index=True,
default="C",
max_length=4,
null=True,
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("3", "Red"),
("6", "Silver"),
("2", "Yellow"),
("9", "Unknown"),
("4", "Green"),
("5", "Orange"),
("7", "White"),
("1", "Colourless"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("10", "Lakehead"),
("20", "USGS"),
("07", "Penn."),
("02", "NY"),
("98", "Other"),
("08", "ROM"),
("11", "SSFC"),
("25", "AOFRC"),
("06", "Ohio"),
("26", "GLLFAS"),
("03", "Mich."),
("09", "Minn."),
("12", "Priv"),
("13", "OntHydro"),
("01", "MNRF"),
("24", "CORA"),
("19", "USFWS"),
("04", "UofG"),
("99", "Unkn"),
("05", "UofT"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("4", "Abdominal Insertion"),
("7", "Snout"),
("8", "Anal"),
("9", "Unknown"),
("3", "Posterior Dorsal"),
("6", "Jaw"),
("2", "Between Dorsal"),
("1", "Anterior Dorsal"),
("5", "Flesh of Back"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("7", "Strip Vinyl "),
("B", "Metal Livestock"),
("2", "Tubular Vinyl"),
("5", "Anchor"),
("C", "Cinch"),
("P", "PIT tag"),
("4", "Butt End Jaw "),
("3", "Circular Strap Jaw "),
("8", "Secure Tie"),
("A", "Internal (Radio)"),
("6", "Coded Wire"),
("1", "Streamer"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (1, "Reported"), (2, "Derived")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (1, "Reported"), (2, "Derived")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("1", "Male"),
("9", "Unknown"),
("2", "Female"),
("3", "Hermaphrodite"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(0, "Unknown"), (1, "Reported"), (2, "Derived")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("other", "other"),
("letter", "letter"),
("verbal", "verbal"),
("e-mail", "e-mail"),
("dcr", "DCR"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.CreateModel(
name="TaggedSpecies",
fields=[
(
"species_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="common.Species",
),
),
("tagged", models.BooleanField(default=False)),
],
options={
"ordering": ["spc_nmco"],
"verbose_name_plural": "Tagged Species",
},
bases=("common.species",),
managers=[
("all_species", django.db.models.manager.Manager()),
],
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("9", "Unknown"),
("3", "Hermaphrodite"),
("2", "Female"),
("1", "Male"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("1", "Colourless"),
("3", "Red"),
("9", "Unknown"),
("6", "Silver"),
("4", "Green"),
("2", "Yellow"),
("5", "Orange"),
("7", "White"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("09", "Minn."),
("10", "Lakehead"),
("98", "Other"),
("13", "OntHydro"),
("03", "Mich."),
("08", "ROM"),
("24", "CORA"),
("99", "Unkn"),
("19", "USFWS"),
("25", "AOFRC"),
("12", "Priv"),
("05", "UofT"),
("07", "Penn."),
("02", "NY"),
("04", "UofG"),
("11", "SSFC"),
("26", "GLLFAS"),
("01", "MNRF"),
("20", "USGS"),
("06", "Ohio"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("6", "Jaw"),
("9", "Unknown"),
("2", "Between Dorsal"),
("5", "Flesh of Back"),
("3", "Posterior Dorsal"),
("4", "Abdominal Insertion"),
("7", "Snout"),
("8", "Anal"),
("1", "Anterior Dorsal"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("A", "Internal (Radio)"),
("B", "Metal Livestock"),
("6", "Coded Wire"),
("3", "Circular Strap Jaw "),
("P", "PIT tag"),
("1", "Streamer"),
("5", "Anchor"),
("C", "Cinch"),
("2", "Tubular Vinyl"),
("8", "Secure Tie"),
("4", "Butt End Jaw "),
("7", "Strip Vinyl "),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (2, "Derived"), (0, "Unknown")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (2, "Derived"), (0, "Unknown")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("9", "Unknown"),
("3", "Hermaphrodite"),
("2", "Female"),
("1", "Male"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recoveryletter",
name="method",
field=models.CharField(
choices=[
("tfat_template", "TFAT Template"),
("custom_letter", "Custom Letter"),
],
default="tfat_template",
max_length=30,
verbose_name="Generated By",
),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (2, "Derived"), (0, "Unknown")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("e-mail", "e-mail"),
("verbal", "verbal"),
("letter", "letter"),
("other", "other"),
("dcr", "DCR"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("9", "Unknown"),
("3", "Hermaphrodite"),
("1", "Male"),
("2", "Female"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
## migrations.AlterField(
## model_name="encounter",
## name="species",
## field=models.ForeignKey(
## on_delete=django.db.models.deletion.CASCADE, to="tfat.TaggedSpecies"
## ),
## ),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("3", "Red"),
("6", "Silver"),
("9", "Unknown"),
("2", "Yellow"),
("7", "White"),
("1", "Colourless"),
("4", "Green"),
("5", "Orange"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("12", "Priv"),
("09", "Minn."),
("06", "Ohio"),
("13", "OntHydro"),
("24", "CORA"),
("11", "SSFC"),
("04", "UofG"),
("08", "ROM"),
("05", "UofT"),
("99", "Unkn"),
("20", "USGS"),
("10", "Lakehead"),
("07", "Penn."),
("01", "MNRF"),
("02", "NY"),
("26", "GLLFAS"),
("98", "Other"),
("19", "USFWS"),
("25", "AOFRC"),
("03", "Mich."),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("8", "Anal"),
("9", "Unknown"),
("7", "Snout"),
("2", "Between Dorsal"),
("5", "Flesh of Back"),
("4", "Abdominal Insertion"),
("6", "Jaw"),
("1", "Anterior Dorsal"),
("3", "Posterior Dorsal"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("3", "Circular Strap Jaw "),
("P", "PIT tag"),
("A", "Internal (Radio)"),
("C", "Cinch"),
("1", "Streamer"),
("7", "Strip Vinyl "),
("8", "Secure Tie"),
("4", "Butt End Jaw "),
("2", "Tubular Vinyl"),
("6", "Coded Wire"),
("B", "Metal Livestock"),
("5", "Anchor"),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("9", "Unknown"),
("3", "Hermaphrodite"),
("1", "Male"),
("2", "Female"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="species",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="recoveries",
to="tfat.TaggedSpecies",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("letter", "letter"),
("verbal", "verbal"),
("other", "other"),
("e-mail", "e-mail"),
("dcr", "DCR"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
migrations.AlterModelOptions(
name="joepublic",
options={
"ordering": ["last_name", "first_name"],
"verbose_name_plural": "Tag Reporters",
},
),
migrations.AlterModelManagers(
name="taggedspecies",
managers=[
("all_objects", django.db.models.manager.Manager()),
],
),
migrations.AlterField(
model_name="encounter",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("2", "Female"),
("1", "Male"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_colour",
field=models.CharField(
choices=[
("7", "White"),
("6", "Silver"),
("1", "Colourless"),
("4", "Green"),
("3", "Red"),
("9", "Unknown"),
("2", "Yellow"),
("5", "Orange"),
],
db_column="tag_colour",
db_index=True,
default="2",
max_length=3,
verbose_name="Tag Colour",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_origin",
field=models.CharField(
choices=[
("26", "GLLFAS"),
("03", "Mich."),
("99", "Unkn"),
("13", "OntHydro"),
("20", "USGS"),
("98", "Other"),
("02", "NY"),
("04", "UofG"),
("19", "USFWS"),
("25", "AOFRC"),
("05", "UofT"),
("24", "CORA"),
("09", "Minn."),
("10", "Lakehead"),
("08", "ROM"),
("11", "SSFC"),
("07", "Penn."),
("06", "Ohio"),
("01", "MNRF"),
("12", "Priv"),
],
db_column="tag_origin",
db_index=True,
default="01",
max_length=3,
verbose_name="Tag Origin",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_position",
field=models.CharField(
choices=[
("6", "Jaw"),
("5", "Flesh of Back"),
("2", "Between Dorsal"),
("8", "Anal"),
("4", "Abdominal Insertion"),
("1", "Anterior Dorsal"),
("9", "Unknown"),
("3", "Posterior Dorsal"),
("7", "Snout"),
],
db_column="tag_position",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Position",
),
),
migrations.AlterField(
model_name="recovery",
name="_tag_type",
field=models.CharField(
choices=[
("8", "Secure Tie"),
("5", "Anchor"),
("6", "Coded Wire"),
("A", "Internal (Radio)"),
("B", "Metal Livestock"),
("C", "Cinch"),
("P", "PIT tag"),
("2", "Tubular Vinyl"),
("4", "Butt End Jaw "),
("3", "Circular Strap Jaw "),
("1", "Streamer"),
("7", "Strip Vinyl "),
],
db_column="tag_type",
db_index=True,
default="1",
max_length=3,
verbose_name="Tag Type",
),
),
migrations.AlterField(
model_name="recovery",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=1,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="latlon_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=1,
verbose_name="Spatial Flag",
),
),
migrations.AlterField(
model_name="recovery",
name="sex",
field=models.CharField(
blank=True,
choices=[
("3", "Hermaphrodite"),
("2", "Female"),
("1", "Male"),
("9", "Unknown"),
],
default="9",
max_length=3,
null=True,
verbose_name="Sex",
),
),
migrations.AlterField(
model_name="report",
name="associated_file",
field=models.FileField(blank=True, null=True, upload_to="tfat_tag_reports"),
),
migrations.AlterField(
model_name="report",
name="date_flag",
field=models.IntegerField(
choices=[(1, "Reported"), (0, "Unknown"), (2, "Derived")],
default=0,
verbose_name="Date Flag",
),
),
migrations.AlterField(
model_name="report",
name="reporting_format",
field=models.CharField(
choices=[
("e-mail", "e-mail"),
("other", "other"),
("letter", "letter"),
("dcr", "DCR"),
("verbal", "verbal"),
],
default="verbal",
max_length=30,
verbose_name="Report Format",
),
),
]
| 34.71036
| 92
| 0.338429
| 7,305
| 109,893
| 4.957837
| 0.067899
| 0.048596
| 0.089047
| 0.103294
| 0.822404
| 0.781208
| 0.739211
| 0.714029
| 0.680592
| 0.660822
| 0
| 0.033508
| 0.521762
| 109,893
| 3,165
| 93
| 34.721327
| 0.655618
| 0.012148
| 0
| 0.906461
| 1
| 0
| 0.165063
| 0.003254
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.001286
| 0
| 0.002572
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 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
|
6269df86a0e56f7a7bc59d345338b39a6aabbfed
| 251
|
py
|
Python
|
colour/plotting/datasets/__init__.py
|
rift-labs-developer/colour
|
15112dbe824aab0f21447e0db4a046a28a06f43a
|
[
"BSD-3-Clause"
] | 1,380
|
2015-01-10T12:30:33.000Z
|
2022-03-30T10:19:57.000Z
|
colour/plotting/datasets/__init__.py
|
rift-labs-developer/colour
|
15112dbe824aab0f21447e0db4a046a28a06f43a
|
[
"BSD-3-Clause"
] | 638
|
2015-01-02T10:49:05.000Z
|
2022-03-29T10:16:22.000Z
|
colour/plotting/datasets/__init__.py
|
rift-labs-developer/colour
|
15112dbe824aab0f21447e0db4a046a28a06f43a
|
[
"BSD-3-Clause"
] | 250
|
2015-01-21T15:27:19.000Z
|
2022-03-30T10:23:58.000Z
|
# -*- coding: utf-8 -*-
from .astm_g_173 import (SD_ASTMG173_ETR, SD_ASTMG173_GLOBAL_TILT,
SD_ASTMG173_DIRECT_CIRCUMSOLAR)
__all__ = [
'SD_ASTMG173_ETR', 'SD_ASTMG173_GLOBAL_TILT',
'SD_ASTMG173_DIRECT_CIRCUMSOLAR'
]
| 25.1
| 66
| 0.689243
| 31
| 251
| 4.870968
| 0.516129
| 0.397351
| 0.172185
| 0.198676
| 0.794702
| 0.794702
| 0.794702
| 0.794702
| 0.794702
| 0.794702
| 0
| 0.111111
| 0.211155
| 251
| 9
| 67
| 27.888889
| 0.651515
| 0.083665
| 0
| 0
| 0
| 0
| 0.298246
| 0.232456
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 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
|
627f22a72ec6d7e5ec56507a8f894c263991e8fe
| 7,898
|
py
|
Python
|
src/outpost/django/typo3/filters.py
|
medunigraz/outpost.django.typo3
|
d3ba82189d78ecae73342707940c91ebe958a29e
|
[
"BSD-2-Clause"
] | null | null | null |
src/outpost/django/typo3/filters.py
|
medunigraz/outpost.django.typo3
|
d3ba82189d78ecae73342707940c91ebe958a29e
|
[
"BSD-2-Clause"
] | null | null | null |
src/outpost/django/typo3/filters.py
|
medunigraz/outpost.django.typo3
|
d3ba82189d78ecae73342707940c91ebe958a29e
|
[
"BSD-2-Clause"
] | null | null | null |
from django.utils.translation import gettext_lazy as _
from django_filters.rest_framework import filters, filterset
from . import models
class NewsFilter(filterset.FilterSet):
"""
## Filters
To filter for exact value matches:
?<fieldname>=<value>
For advanced filtering use lookups:
?<fieldname>__<lookup>=<value>
Possible lookups:
- `datetime`: `gt`, `lt`, `gte`, `lte`, `date`
- `title`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `teaser`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `start`: `gt`, `lt`, `gte`, `lte`, `date`
- `end`: `gt`, `lt`, `gte`, `lte`, `date`
- `author`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `email`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `keywords`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `last_modified`: `gt`, `lt`, `gte`, `lte`, `date`
"""
language = filters.ModelChoiceFilter(
label=_("Language"), queryset=models.Language.objects.all()
)
categories = filters.ModelMultipleChoiceFilter(
label=_("Categories"), queryset=models.Category.objects.all()
)
groups = filters.ModelMultipleChoiceFilter(
label=_("Groups"), queryset=models.Group.objects.all()
)
class Meta:
model = models.News
fields = {
"datetime": ("exact", "gt", "lt", "gte", "lte", "date"),
"title": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"teaser": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"start": ("exact", "gt", "lt", "gte", "lte", "date"),
"end": ("exact", "gt", "lt", "gte", "lte", "date"),
"author": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"email": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"keywords": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"last_modified": ("exact", "gt", "lt", "gte", "lte", "date"),
}
class EventFilter(filterset.FilterSet):
"""
## Filters
To filter for exact value matches:
?<fieldname>=<value>
For advanced filtering use lookups:
?<fieldname>__<lookup>=<value>
Possible lookups:
- `title`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `organizer`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `location`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `teaser`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `start`: `exact`, `gt`, `lt`, `gte`, `lte`, `contains`, `startswith`
- `end`: `exact`, `gt`, `lt`, `gte`, `lte`, `contains`, `startswith`
- `registration_end`: `exact`, `gt`, `lt`, `gte`, `lte`, `contains`, `startswith`
- `dfp_points`: `exact`, `gt`, `lt`, `gte`, `lte`
- `contact`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `email`: `iexact`, `contains`, `icontains`, `startswith`, `istartswith`, `endswith`, `iendswith`, `regex`, `iregex`
- `last_modified`: `exact`, `gt`, `lt`, `gte`, `lte`, `contains`, `startswith`
"""
language = filters.ModelChoiceFilter(
label=_("Language"), queryset=models.Language.objects.all()
)
categories = filters.ModelMultipleChoiceFilter(
label=_("Categories"), queryset=models.Category.objects.all()
)
groups = filters.ModelMultipleChoiceFilter(
label=_("Groups"), queryset=models.Group.objects.all()
)
class Meta:
model = models.Event
fields = {
"title": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"organizer": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"location": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"teaser": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"start": ("exact", "gt", "lt", "gte", "lte", "contains", "startswith"),
"end": ("exact", "gt", "lt", "gte", "lte", "contains", "startswith"),
"registration_end": (
"exact",
"gt",
"lt",
"gte",
"lte",
"contains",
"startswith",
),
"dfp_points": ("exact", "lt", "gt", "lte", "gte"),
"contact": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"email": (
"exact",
"iexact",
"contains",
"icontains",
"startswith",
"istartswith",
"endswith",
"iendswith",
"regex",
"iregex",
),
"last_modified": (
"exact",
"gt",
"lt",
"gte",
"lte",
"contains",
"startswith",
),
}
| 32.105691
| 127
| 0.421372
| 504
| 7,898
| 6.559524
| 0.14881
| 0.093164
| 0.153055
| 0.219601
| 0.937992
| 0.930732
| 0.898669
| 0.898669
| 0.898669
| 0.898669
| 0
| 0
| 0.413902
| 7,898
| 245
| 128
| 32.236735
| 0.714193
| 0.281084
| 0
| 0.845745
| 0
| 0
| 0.228695
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.015957
| 0
| 0.069149
| 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
|
657eb414864dffad74398ae5973a531250bc8abc
| 82,861
|
py
|
Python
|
msgraph/cli/command_modules/devicescorpmgt/azext_devicescorpmgt/vendored_sdks/devicescorpmgt/operations/_deviceappmanagementmobileappconfigurations_operations.py
|
microsoftgraph/msgraph-cli-archived
|
489f70bf4ede1ce67b84bfb31e66da3e4db76062
|
[
"MIT"
] | null | null | null |
msgraph/cli/command_modules/devicescorpmgt/azext_devicescorpmgt/vendored_sdks/devicescorpmgt/operations/_deviceappmanagementmobileappconfigurations_operations.py
|
microsoftgraph/msgraph-cli-archived
|
489f70bf4ede1ce67b84bfb31e66da3e4db76062
|
[
"MIT"
] | 22
|
2022-03-29T22:54:37.000Z
|
2022-03-29T22:55:27.000Z
|
msgraph/cli/command_modules/devicescorpmgt/azext_devicescorpmgt/vendored_sdks/devicescorpmgt/operations/_deviceappmanagementmobileappconfigurations_operations.py
|
microsoftgraph/msgraph-cli-archived
|
489f70bf4ede1ce67b84bfb31e66da3e4db76062
|
[
"MIT"
] | null | null | null |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import TYPE_CHECKING
import warnings
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.paging import ItemPaged
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import HttpRequest, HttpResponse
from .. import models
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union
T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
class deviceappmanagementmobileappconfigurationsOperations(object):
"""deviceappmanagementmobileappconfigurationsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~devices_corporate_management.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
"""
models = models
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config
def list_assignments(
self,
managed_device_mobile_app_configuration_id, # type: str
orderby=None, # type: Optional[List[Union[str, "models.Enum98"]]]
select=None, # type: Optional[List[Union[str, "models.Enum99"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> Iterable["models.collectionofmanageddevicemobileappconfigurationassignment"]
"""Get assignments from deviceAppManagement.
Get assignments from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param orderby: Order items by property values.
:type orderby: list[str or ~devices_corporate_management.models.Enum98]
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum99]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either collectionofmanageddevicemobileappconfigurationassignment or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~devices_corporate_management.models.collectionofmanageddevicemobileappconfigurationassignment]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.collectionofmanageddevicemobileappconfigurationassignment"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list_assignments.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if self._config.top is not None:
query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
if self._config.skip is not None:
query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
if self._config.search is not None:
query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
if self._config.filter is not None:
query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
if self._config.count is not None:
query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
if orderby is not None:
query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
request = self._client.get(url, query_parameters, header_parameters)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
request = self._client.get(url, query_parameters, header_parameters)
return request
def extract_data(pipeline_response):
deserialized = self._deserialize('collectionofmanageddevicemobileappconfigurationassignment', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.odata_next_link or None, iter(list_of_elem)
def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
error = self._deserialize(models.odataerror, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error)
return pipeline_response
return ItemPaged(
get_next, extract_data
)
list_assignments.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/assignments'} # type: ignore
def create_assignments(
self,
managed_device_mobile_app_configuration_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationassignment"
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationassignment"
"""Create new navigation property to assignments for deviceAppManagement.
Create new navigation property to assignments for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param body: New navigation property.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationassignment
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationassignment, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationassignment
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationassignment"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.create_assignments.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationassignment')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationassignment', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
create_assignments.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/assignments'} # type: ignore
def get_assignments(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_assignment_id, # type: str
select=None, # type: Optional[List[Union[str, "models.Enum100"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationassignment"
"""Get assignments from deviceAppManagement.
Get assignments from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_assignment_id: key: id of
managedDeviceMobileAppConfigurationAssignment.
:type managed_device_mobile_app_configuration_assignment_id: str
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum100]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationassignment, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationassignment
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationassignment"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.get_assignments.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationAssignment-id': self._serialize.url("managed_device_mobile_app_configuration_assignment_id", managed_device_mobile_app_configuration_assignment_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationassignment', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
get_assignments.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/assignments/{managedDeviceMobileAppConfigurationAssignment-id}'} # type: ignore
def update_assignments(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_assignment_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationassignment"
**kwargs # type: Any
):
# type: (...) -> None
"""Update the navigation property assignments in deviceAppManagement.
Update the navigation property assignments in deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_assignment_id: key: id of
managedDeviceMobileAppConfigurationAssignment.
:type managed_device_mobile_app_configuration_assignment_id: str
:param body: New navigation property values.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationassignment
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.update_assignments.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationAssignment-id': self._serialize.url("managed_device_mobile_app_configuration_assignment_id", managed_device_mobile_app_configuration_assignment_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationassignment')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
update_assignments.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/assignments/{managedDeviceMobileAppConfigurationAssignment-id}'} # type: ignore
def delete_assignments(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_assignment_id, # type: str
if_match=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
"""Delete navigation property assignments for deviceAppManagement.
Delete navigation property assignments for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_assignment_id: key: id of
managedDeviceMobileAppConfigurationAssignment.
:type managed_device_mobile_app_configuration_assignment_id: str
:param if_match: ETag.
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.delete_assignments.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationAssignment-id': self._serialize.url("managed_device_mobile_app_configuration_assignment_id", managed_device_mobile_app_configuration_assignment_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
if if_match is not None:
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.delete(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
delete_assignments.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/assignments/{managedDeviceMobileAppConfigurationAssignment-id}'} # type: ignore
def list_device_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
orderby=None, # type: Optional[List[Union[str, "models.Enum101"]]]
select=None, # type: Optional[List[Union[str, "models.Enum102"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> Iterable["models.collectionofmanageddevicemobileappconfigurationdevicestatus"]
"""Get deviceStatuses from deviceAppManagement.
Get deviceStatuses from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param orderby: Order items by property values.
:type orderby: list[str or ~devices_corporate_management.models.Enum101]
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum102]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either collectionofmanageddevicemobileappconfigurationdevicestatus or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~devices_corporate_management.models.collectionofmanageddevicemobileappconfigurationdevicestatus]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.collectionofmanageddevicemobileappconfigurationdevicestatus"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list_device_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if self._config.top is not None:
query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
if self._config.skip is not None:
query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
if self._config.search is not None:
query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
if self._config.filter is not None:
query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
if self._config.count is not None:
query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
if orderby is not None:
query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
request = self._client.get(url, query_parameters, header_parameters)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
request = self._client.get(url, query_parameters, header_parameters)
return request
def extract_data(pipeline_response):
deserialized = self._deserialize('collectionofmanageddevicemobileappconfigurationdevicestatus', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.odata_next_link or None, iter(list_of_elem)
def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
error = self._deserialize(models.odataerror, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error)
return pipeline_response
return ItemPaged(
get_next, extract_data
)
list_device_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatuses'} # type: ignore
def create_device_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus"
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus"
"""Create new navigation property to deviceStatuses for deviceAppManagement.
Create new navigation property to deviceStatuses for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param body: New navigation property.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationdevicestatus, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.create_device_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationdevicestatus')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationdevicestatus', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
create_device_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatuses'} # type: ignore
def get_device_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_device_status_id, # type: str
select=None, # type: Optional[List[Union[str, "models.Enum103"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus"
"""Get deviceStatuses from deviceAppManagement.
Get deviceStatuses from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_device_status_id: key: id of
managedDeviceMobileAppConfigurationDeviceStatus.
:type managed_device_mobile_app_configuration_device_status_id: str
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum103]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationdevicestatus, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.get_device_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationDeviceStatus-id': self._serialize.url("managed_device_mobile_app_configuration_device_status_id", managed_device_mobile_app_configuration_device_status_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationdevicestatus', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
get_device_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatuses/{managedDeviceMobileAppConfigurationDeviceStatus-id}'} # type: ignore
def update_device_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_device_status_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus"
**kwargs # type: Any
):
# type: (...) -> None
"""Update the navigation property deviceStatuses in deviceAppManagement.
Update the navigation property deviceStatuses in deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_device_status_id: key: id of
managedDeviceMobileAppConfigurationDeviceStatus.
:type managed_device_mobile_app_configuration_device_status_id: str
:param body: New navigation property values.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationdevicestatus
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.update_device_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationDeviceStatus-id': self._serialize.url("managed_device_mobile_app_configuration_device_status_id", managed_device_mobile_app_configuration_device_status_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationdevicestatus')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
update_device_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatuses/{managedDeviceMobileAppConfigurationDeviceStatus-id}'} # type: ignore
def delete_device_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_device_status_id, # type: str
if_match=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
"""Delete navigation property deviceStatuses for deviceAppManagement.
Delete navigation property deviceStatuses for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_device_status_id: key: id of
managedDeviceMobileAppConfigurationDeviceStatus.
:type managed_device_mobile_app_configuration_device_status_id: str
:param if_match: ETag.
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.delete_device_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationDeviceStatus-id': self._serialize.url("managed_device_mobile_app_configuration_device_status_id", managed_device_mobile_app_configuration_device_status_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
if if_match is not None:
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.delete(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
delete_device_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatuses/{managedDeviceMobileAppConfigurationDeviceStatus-id}'} # type: ignore
def get_device_status_summary(
self,
managed_device_mobile_app_configuration_id, # type: str
select=None, # type: Optional[List[Union[str, "models.Enum104"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationdevicesummary"
"""Get deviceStatusSummary from deviceAppManagement.
Get deviceStatusSummary from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum104]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationdevicesummary, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationdevicesummary
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationdevicesummary"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.get_device_status_summary.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationdevicesummary', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
get_device_status_summary.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatusSummary'} # type: ignore
def update_device_status_summary(
self,
managed_device_mobile_app_configuration_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationdevicesummary"
**kwargs # type: Any
):
# type: (...) -> None
"""Update the navigation property deviceStatusSummary in deviceAppManagement.
Update the navigation property deviceStatusSummary in deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param body: New navigation property values.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationdevicesummary
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.update_device_status_summary.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationdevicesummary')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
update_device_status_summary.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatusSummary'} # type: ignore
def delete_device_status_summary(
self,
managed_device_mobile_app_configuration_id, # type: str
if_match=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
"""Delete navigation property deviceStatusSummary for deviceAppManagement.
Delete navigation property deviceStatusSummary for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param if_match: ETag.
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.delete_device_status_summary.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
if if_match is not None:
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.delete(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
delete_device_status_summary.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/deviceStatusSummary'} # type: ignore
def assign(
self,
managed_device_mobile_app_configuration_id, # type: str
body, # type: "models.paths1pwcjs5deviceappmanagementmobileappconfigurationsmanageddevicemobileappconfigurationidmicrosoftgraphassignpostrequestbodycontentapplicationjsonschema"
**kwargs # type: Any
):
# type: (...) -> None
"""Invoke action assign.
Invoke action assign.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param body: Action parameters.
:type body: ~devices_corporate_management.models.paths1pwcjs5deviceappmanagementmobileappconfigurationsmanageddevicemobileappconfigurationidmicrosoftgraphassignpostrequestbodycontentapplicationjsonschema
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.assign.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'paths1pwcjs5deviceappmanagementmobileappconfigurationsmanageddevicemobileappconfigurationidmicrosoftgraphassignpostrequestbodycontentapplicationjsonschema')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
assign.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/microsoft.graph.assign'} # type: ignore
def list_user_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
orderby=None, # type: Optional[List[Union[str, "models.Enum105"]]]
select=None, # type: Optional[List[Union[str, "models.Enum106"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> Iterable["models.collectionofmanageddevicemobileappconfigurationuserstatus"]
"""Get userStatuses from deviceAppManagement.
Get userStatuses from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param orderby: Order items by property values.
:type orderby: list[str or ~devices_corporate_management.models.Enum105]
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum106]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either collectionofmanageddevicemobileappconfigurationuserstatus or the result of cls(response)
:rtype: ~azure.core.paging.ItemPaged[~devices_corporate_management.models.collectionofmanageddevicemobileappconfigurationuserstatus]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.collectionofmanageddevicemobileappconfigurationuserstatus"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list_user_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if self._config.top is not None:
query_parameters['$top'] = self._serialize.query("self._config.top", self._config.top, 'int', minimum=0)
if self._config.skip is not None:
query_parameters['$skip'] = self._serialize.query("self._config.skip", self._config.skip, 'int', minimum=0)
if self._config.search is not None:
query_parameters['$search'] = self._serialize.query("self._config.search", self._config.search, 'str')
if self._config.filter is not None:
query_parameters['$filter'] = self._serialize.query("self._config.filter", self._config.filter, 'str')
if self._config.count is not None:
query_parameters['$count'] = self._serialize.query("self._config.count", self._config.count, 'bool')
if orderby is not None:
query_parameters['$orderby'] = self._serialize.query("orderby", orderby, '[str]', div=',')
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
request = self._client.get(url, query_parameters, header_parameters)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
request = self._client.get(url, query_parameters, header_parameters)
return request
def extract_data(pipeline_response):
deserialized = self._deserialize('collectionofmanageddevicemobileappconfigurationuserstatus', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.odata_next_link or None, iter(list_of_elem)
def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
error = self._deserialize(models.odataerror, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error)
return pipeline_response
return ItemPaged(
get_next, extract_data
)
list_user_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatuses'} # type: ignore
def create_user_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationuserstatus"
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationuserstatus"
"""Create new navigation property to userStatuses for deviceAppManagement.
Create new navigation property to userStatuses for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param body: New navigation property.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationuserstatus
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationuserstatus, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationuserstatus
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationuserstatus"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.create_user_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationuserstatus')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationuserstatus', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
create_user_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatuses'} # type: ignore
def get_user_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_user_status_id, # type: str
select=None, # type: Optional[List[Union[str, "models.Enum107"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationuserstatus"
"""Get userStatuses from deviceAppManagement.
Get userStatuses from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_user_status_id: key: id of
managedDeviceMobileAppConfigurationUserStatus.
:type managed_device_mobile_app_configuration_user_status_id: str
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum107]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationuserstatus, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationuserstatus
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationuserstatus"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.get_user_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationUserStatus-id': self._serialize.url("managed_device_mobile_app_configuration_user_status_id", managed_device_mobile_app_configuration_user_status_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationuserstatus', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
get_user_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatuses/{managedDeviceMobileAppConfigurationUserStatus-id}'} # type: ignore
def update_user_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_user_status_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationuserstatus"
**kwargs # type: Any
):
# type: (...) -> None
"""Update the navigation property userStatuses in deviceAppManagement.
Update the navigation property userStatuses in deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_user_status_id: key: id of
managedDeviceMobileAppConfigurationUserStatus.
:type managed_device_mobile_app_configuration_user_status_id: str
:param body: New navigation property values.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationuserstatus
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.update_user_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationUserStatus-id': self._serialize.url("managed_device_mobile_app_configuration_user_status_id", managed_device_mobile_app_configuration_user_status_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationuserstatus')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
update_user_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatuses/{managedDeviceMobileAppConfigurationUserStatus-id}'} # type: ignore
def delete_user_statuses(
self,
managed_device_mobile_app_configuration_id, # type: str
managed_device_mobile_app_configuration_user_status_id, # type: str
if_match=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
"""Delete navigation property userStatuses for deviceAppManagement.
Delete navigation property userStatuses for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param managed_device_mobile_app_configuration_user_status_id: key: id of
managedDeviceMobileAppConfigurationUserStatus.
:type managed_device_mobile_app_configuration_user_status_id: str
:param if_match: ETag.
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.delete_user_statuses.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
'managedDeviceMobileAppConfigurationUserStatus-id': self._serialize.url("managed_device_mobile_app_configuration_user_status_id", managed_device_mobile_app_configuration_user_status_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
if if_match is not None:
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.delete(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
delete_user_statuses.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatuses/{managedDeviceMobileAppConfigurationUserStatus-id}'} # type: ignore
def get_user_status_summary(
self,
managed_device_mobile_app_configuration_id, # type: str
select=None, # type: Optional[List[Union[str, "models.Enum108"]]]
expand=None, # type: Optional[List[str]]
**kwargs # type: Any
):
# type: (...) -> "models.microsoftgraphmanageddevicemobileappconfigurationusersummary"
"""Get userStatusSummary from deviceAppManagement.
Get userStatusSummary from deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param select: Select properties to be returned.
:type select: list[str or ~devices_corporate_management.models.Enum108]
:param expand: Expand related entities.
:type expand: list[str]
:keyword callable cls: A custom type or function that will be passed the direct response
:return: microsoftgraphmanageddevicemobileappconfigurationusersummary, or the result of cls(response)
:rtype: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationusersummary
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.microsoftgraphmanageddevicemobileappconfigurationusersummary"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.get_user_status_summary.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
if select is not None:
query_parameters['$select'] = self._serialize.query("select", select, '[str]', div=',')
if expand is not None:
query_parameters['$expand'] = self._serialize.query("expand", expand, '[str]', div=',')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
deserialized = self._deserialize('microsoftgraphmanageddevicemobileappconfigurationusersummary', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
get_user_status_summary.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatusSummary'} # type: ignore
def update_user_status_summary(
self,
managed_device_mobile_app_configuration_id, # type: str
body, # type: "models.microsoftgraphmanageddevicemobileappconfigurationusersummary"
**kwargs # type: Any
):
# type: (...) -> None
"""Update the navigation property userStatusSummary in deviceAppManagement.
Update the navigation property userStatusSummary in deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param body: New navigation property values.
:type body: ~devices_corporate_management.models.microsoftgraphmanageddevicemobileappconfigurationusersummary
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self.update_user_status_summary.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(body, 'microsoftgraphmanageddevicemobileappconfigurationusersummary')
body_content_kwargs['content'] = body_content
request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
update_user_status_summary.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatusSummary'} # type: ignore
def delete_user_status_summary(
self,
managed_device_mobile_app_configuration_id, # type: str
if_match=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
"""Delete navigation property userStatusSummary for deviceAppManagement.
Delete navigation property userStatusSummary for deviceAppManagement.
:param managed_device_mobile_app_configuration_id: key: id of
managedDeviceMobileAppConfiguration.
:type managed_device_mobile_app_configuration_id: str
:param if_match: ETag.
:type if_match: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
accept = "application/json"
# Construct URL
url = self.delete_user_status_summary.metadata['url'] # type: ignore
path_format_arguments = {
'managedDeviceMobileAppConfiguration-id': self._serialize.url("managed_device_mobile_app_configuration_id", managed_device_mobile_app_configuration_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
if if_match is not None:
header_parameters['If-Match'] = self._serialize.header("if_match", if_match, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.delete(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.odataerror, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
delete_user_status_summary.metadata = {'url': '/deviceAppManagement/mobileAppConfigurations/{managedDeviceMobileAppConfiguration-id}/userStatusSummary'} # type: ignore
| 53.116026
| 218
| 0.695587
| 8,209
| 82,861
| 6.764039
| 0.031673
| 0.036289
| 0.053038
| 0.061413
| 0.929997
| 0.923928
| 0.908709
| 0.901758
| 0.894608
| 0.891204
| 0
| 0.005198
| 0.212863
| 82,861
| 1,559
| 219
| 53.150096
| 0.846128
| 0.311908
| 0
| 0.845039
| 0
| 0
| 0.170448
| 0.122597
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035674
| false
| 0
| 0.008919
| 0
| 0.090301
| 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
|
65b98649d65bfcb789e572c99c1e70cef590bcbb
| 206
|
py
|
Python
|
pages/models/validations.py
|
kevin-klein/101wiki
|
8647271c00e8e9d954df2e43ddbf12f5f3d062be
|
[
"MIT"
] | null | null | null |
pages/models/validations.py
|
kevin-klein/101wiki
|
8647271c00e8e9d954df2e43ddbf12f5f3d062be
|
[
"MIT"
] | 1
|
2020-02-12T00:17:34.000Z
|
2020-02-12T00:17:34.000Z
|
pages/models/validations.py
|
kevin-klein/101wiki
|
8647271c00e8e9d954df2e43ddbf12f5f3d062be
|
[
"MIT"
] | null | null | null |
class ValidationMessage(object):
pass
class ValidationInfo(ValidationMessage):
def message(self):
return ''
class ValidationError(ValidationMessage):
def message(self):
pass
| 15.846154
| 41
| 0.694175
| 18
| 206
| 7.944444
| 0.555556
| 0.27972
| 0.377622
| 0.433566
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.223301
| 206
| 12
| 42
| 17.166667
| 0.89375
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0
| 0.125
| 0.75
| 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
| 1
| 0
| 1
| 1
| 0
|
0
| 8
|
65e8316224293026fdd4faaf606f62cd41ff0eeb
| 206
|
py
|
Python
|
lessons/error_handling/exception_hierarchy.py
|
eliranM98/python_course
|
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
|
[
"MIT"
] | 6
|
2019-03-29T06:14:53.000Z
|
2021-10-15T23:42:36.000Z
|
lessons/error_handling/exception_hierarchy.py
|
eliranM98/python_course
|
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
|
[
"MIT"
] | 4
|
2019-09-06T10:03:40.000Z
|
2022-03-11T23:30:55.000Z
|
lessons/error_handling/exception_hierarchy.py
|
eliranM98/python_course
|
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
|
[
"MIT"
] | 12
|
2019-06-20T19:34:52.000Z
|
2021-10-15T23:42:39.000Z
|
# run in debug
try:
try:
try:
raise Exception('hi')
except Exception as e:
raise e
except Exception as e:
raise e
except Exception as e:
print(e)
| 17.166667
| 33
| 0.519417
| 27
| 206
| 3.962963
| 0.407407
| 0.420561
| 0.476636
| 0.504673
| 0.616822
| 0.616822
| 0.616822
| 0.616822
| 0.616822
| 0.616822
| 0
| 0
| 0.417476
| 206
| 11
| 34
| 18.727273
| 0.891667
| 0.058252
| 0
| 0.8
| 0
| 0
| 0.010417
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.1
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
028e9ada93fb1a58e29c803a0c545bd598dd934c
| 2,202
|
py
|
Python
|
tests/test_core.py
|
matsuren/gm_counter_simulator
|
c396b36ab3a30593ec86a79eefac5761397c1d33
|
[
"MIT"
] | null | null | null |
tests/test_core.py
|
matsuren/gm_counter_simulator
|
c396b36ab3a30593ec86a79eefac5761397c1d33
|
[
"MIT"
] | null | null | null |
tests/test_core.py
|
matsuren/gm_counter_simulator
|
c396b36ab3a30593ec86a79eefac5761397c1d33
|
[
"MIT"
] | 1
|
2022-02-16T18:17:11.000Z
|
2022-02-16T18:17:11.000Z
|
import numpy as np
import pytest
from gm_simulator import Detector, Source, World
@pytest.mark.parametrize("dist", [-1, -0.5, 0.5, 1])
@pytest.mark.parametrize("q", [1.0, 2.0, 3.0])
def test_detector_singlesrc_count(dist, q):
# q: Source intensity
# dist: Distance between source and detector
# TODO statistic method for testing
np.random.seed(1234)
N = 200
# Source location
pt = np.array([1.0, 0.0, 0.0])
# Detector info
duration = 2
detect_factor = 5
# Construct world
world = World()
world.add_source(Source(loc=pt.tolist(), intensity=q))
# Expected values
expected = duration * detect_factor * q / dist / dist
for i in range(3):
diff_vec = np.array([0.0, 0.0, 0.0])
diff_vec[i] = dist
d_loc = pt + diff_vec
detector = Detector(loc=d_loc, duration=duration, factor=detect_factor)
cnt_mean = np.array([world.get_measuments(detector) for _ in range(N)]).mean()
error = abs((cnt_mean - expected)) / expected
assert error < 0.05
@pytest.mark.parametrize("N_src", [2, 3])
@pytest.mark.parametrize("dist", [0.5, 1])
@pytest.mark.parametrize("q", [1.0, 2.0, 3.0])
def test_detector_multisrc_count(N_src, dist, q):
# N_src: Number of source
# q: Source intensity
# dist: Distance between source and detector
# TODO statistic method for testing
np.random.seed(1234)
N = 200
# Source location
pt = np.array([1.0, 0.0, 0.0])
# Detector info
duration = 2
detect_factor = 5
# Construct world
world = World()
for _ in range(N_src):
world.add_source(Source(loc=pt.tolist(), intensity=q))
# Expected values
expected = N_src * duration * detect_factor * q / dist / dist
for i in range(3):
diff_vec = np.array([0.0, 0.0, 0.0])
diff_vec[i] = dist
d_loc = pt + diff_vec
detector = Detector(loc=d_loc, duration=duration, factor=detect_factor)
cnt_mean = np.array([world.get_measuments(detector) for _ in range(N)]).mean()
error = abs((cnt_mean - expected)) / expected
assert error < 0.05
| 31.457143
| 87
| 0.6099
| 319
| 2,202
| 4.087774
| 0.216301
| 0.027607
| 0.032209
| 0.030675
| 0.828221
| 0.828221
| 0.828221
| 0.828221
| 0.828221
| 0.828221
| 0
| 0.045006
| 0.263397
| 2,202
| 69
| 88
| 31.913043
| 0.75894
| 0.154859
| 0
| 0.744186
| 0
| 0
| 0.008441
| 0
| 0
| 0
| 0
| 0.014493
| 0.046512
| 1
| 0.046512
| false
| 0
| 0.069767
| 0
| 0.116279
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
02aaff668024f8cf5a7a526078601a47852169e4
| 9,259
|
py
|
Python
|
totter/evolution/algorithms/KeystrokeGA.py
|
zachdj/totter
|
7ac9fe0302e1a499a661b11b771df22dd7bf5aad
|
[
"MIT"
] | null | null | null |
totter/evolution/algorithms/KeystrokeGA.py
|
zachdj/totter
|
7ac9fe0302e1a499a661b11b771df22dd7bf5aad
|
[
"MIT"
] | 8
|
2018-11-08T01:11:50.000Z
|
2018-11-27T03:30:19.000Z
|
totter/evolution/algorithms/KeystrokeGA.py
|
zachdj/totter
|
7ac9fe0302e1a499a661b11b771df22dd7bf5aad
|
[
"MIT"
] | null | null | null |
""" GAs that use the Bitmask + duration representation
"""
import copy
import pyautogui
import random
import time
from totter.evolution.GeneticAlgorithm import GeneticAlgorithm
from totter.evolution.CellularGA import CellularGA
ALPHABET = list(('q', 'w', 'o', 'p'))
class KeystrokeGA(GeneticAlgorithm):
def generate_random_genome(self):
""" Representation: sequence of keys from the alphabet [q, w, o, p] """
# initial length of the genome is chosen randomly from 15 to 30
genome_size = random.choice(range(15, 31))
# choose a random sequence of keystrokes of length `genome_size`
genome = random.choices(ALPHABET, k=genome_size)
return genome
def genome_to_phenotype(self, genome):
def phenotype():
for key in genome:
pyautogui.keyDown(key)
time.sleep(0.150)
pyautogui.keyUp(key)
return phenotype
def compute_fitness(self, distance_run, run_time):
""" Fitness: distance + speed """
speed = distance_run*60 / run_time # meters per minute
if distance_run > 10:
fitness = distance_run + speed
else:
fitness = distance_run
return fitness
def select_parents(self, population, n):
""" Tournament selection with k=5 """
parents = list()
for i in range(0, n):
competitors = random.sample(population.individuals, 5)
winner = max(competitors, key=lambda individual: individual.fitness)
parents.append(winner)
return parents
def crossover(self, parent1, parent2):
""" 50% 2-point crossover, 50% cut-and-splice """
if random.random() < 0.5:
# 2-point crossover
if len(parent1) < 3 or len(parent2) < 3:
print(f'Skipping crossover. Cannot perform 2-point xover with {parent1} and {parent2}')
return parent1, parent2
else:
# we have to choose a crossover point smaller than the length of the shortest parent
maximum_crossover_point = min(len(parent1), len(parent2)) - 1
crossover_point1 = random.choice(range(0, maximum_crossover_point - 1))
crossover_point2 = random.choice(range(crossover_point1+1, maximum_crossover_point))
child1 = parent1[:crossover_point1] + parent2[crossover_point1:crossover_point2] + parent1[crossover_point2:]
child2 = parent2[:crossover_point1] + parent1[crossover_point1:crossover_point2] + parent2[crossover_point2:]
return child1, child2
else:
# cut-and-splice
cut_point1 = random.choice(range(0, len(parent1)-1))
cut_point2 = random.choice(range(0, len(parent2)-1))
child1 = parent1[:cut_point1] + parent2[cut_point2:]
child2 = parent2[:cut_point2] + parent1[cut_point1:]
return child1, child2
def mutate(self, genome):
""" Mutation -
Options:
With 25% probability, change one of the characters to another randomly selected character
With 25% probability, insert a random character at a random position
With 25% probability, swap two characters
With 25% probability, delete a randomly-selected character
"""
mutant = copy.deepcopy(genome)
selected_gene = random.choice(range(len(mutant)))
decider = random.random()
if decider < 0.25:
# change to randomly selected character
new_character = random.choice(ALPHABET)
mutant[selected_gene] = new_character
elif decider < 0.5:
# insert random character
new_character = random.choice(ALPHABET)
mutant = mutant[:selected_gene] + [new_character] + mutant[selected_gene:]
elif decider < 0.75:
# swap two characters
swap_pos = random.choice(range(len(mutant)))
mutant[selected_gene], mutant[swap_pos] = mutant[swap_pos], mutant[selected_gene]
else:
# delete a gene
if selected_gene != len(mutant) - 1:
mutant = mutant[:selected_gene] + mutant[selected_gene+1:]
else:
mutant = mutant[:selected_gene]
return mutant
def repair(self, genome):
if len(genome) <= 2:
# duplicate the genome several times so it can be used in crossover once again
return genome[:] + genome[:] + genome[:] + genome[:]
return genome
def replace(self, population, candidate):
""" Replacement - replace one of the five worst members of the population """
# population is a list of `Individual` objects
# sort in order of fitness
sorted_pop = sorted(population.individuals, key=lambda individual: individual.fitness)
# choose one of the five members with worst fitness
replacement = random.choice(sorted_pop[0:5])
# find the index of the chosen member
replacement_index = population.individuals.index(replacement)
return replacement_index
class CellularKeystrokeGA(CellularGA):
def generate_random_genome(self):
""" Representation: sequence of keys from the alphabet [q, w, o, p] """
# initial length of the genome is chosen randomly from 15 to 30
genome_size = random.choice(range(15, 30))
# choose a random sequence of keystrokes of length `genome_size`
genome = random.choices(ALPHABET, k=genome_size)
return genome
def genome_to_phenotype(self, genome):
def phenotype():
for key in genome:
pyautogui.keyDown(key)
time.sleep(0.150)
pyautogui.keyUp(key)
return phenotype
def compute_fitness(self, distance_run, run_time):
""" Fitness: distance + speed """
speed = distance_run*60 / run_time # meters per minute
if distance_run > 10:
fitness = distance_run + speed
else:
fitness = distance_run
return fitness
def crossover(self, parent1, parent2):
""" 50% 2-point crossover, 50% cut-and-splice """
if random.random() < 0.5:
# 2-point crossover
if len(parent1) < 3 or len(parent2) < 3:
print(f'Skipping crossover. Cannot perform 2-point xover with {parent1} and {parent2}')
return parent1, parent2
else:
# we have to choose a crossover point smaller than the length of the shortest parent
maximum_crossover_point = min(len(parent1), len(parent2)) - 1
crossover_point1 = random.choice(range(0, maximum_crossover_point - 1))
crossover_point2 = random.choice(range(crossover_point1+1, maximum_crossover_point))
child1 = parent1[:crossover_point1] + parent2[crossover_point1:crossover_point2] + parent1[crossover_point2:]
child2 = parent2[:crossover_point1] + parent1[crossover_point1:crossover_point2] + parent2[crossover_point2:]
return child1, child2
else:
# cut-and-splice
cut_point1 = random.choice(range(0, len(parent1)-1))
cut_point2 = random.choice(range(0, len(parent2)-1))
child1 = parent1[:cut_point1] + parent2[cut_point2:]
child2 = parent2[:cut_point2] + parent1[cut_point1:]
return child1, child2
def mutate(self, genome):
""" Mutation -
Options:
With 25% probability, change one of the characters to another randomly selected character
With 25% probability, insert a random character at a random position
With 25% probability, swap two characters
With 25% probability, delete a randomly-selected character
"""
mutant = copy.deepcopy(genome)
selected_gene = random.choice(range(len(mutant)))
decider = random.random()
if decider < 0.25:
# change to randomly selected character
new_character = random.choice(ALPHABET)
mutant[selected_gene] = new_character
elif decider < 0.5:
# insert random character
new_character = random.choice(ALPHABET)
mutant = mutant[:selected_gene] + [new_character] + mutant[selected_gene:]
elif decider < 0.75:
# swap two characters
swap_pos = random.choice(range(len(mutant)))
mutant[selected_gene], mutant[swap_pos] = mutant[swap_pos], mutant[selected_gene]
else:
# delete a gene
if selected_gene != len(mutant) - 1:
mutant = mutant[:selected_gene] + mutant[selected_gene+1:]
else:
mutant = mutant[:selected_gene]
return mutant
def repair(self, genome):
if len(genome) <= 2:
# duplicate the genome several times so it can be used in crossover once again
return genome[:] + genome[:] + genome[:] + genome[:]
return genome
if __name__ == '__main__':
ga = CellularKeystrokeGA(pop_size=1, eval_time_limit=2)
print(ga.ALPHABET)
| 41.895928
| 125
| 0.615941
| 1,056
| 9,259
| 5.28125
| 0.16572
| 0.043034
| 0.051641
| 0.034427
| 0.842209
| 0.829299
| 0.829299
| 0.829299
| 0.829299
| 0.829299
| 0
| 0.03208
| 0.29636
| 9,259
| 221
| 126
| 41.895928
| 0.823945
| 0.219786
| 0
| 0.816901
| 0
| 0
| 0.023887
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.112676
| false
| 0
| 0.042254
| 0
| 0.309859
| 0.021127
| 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
|
02e0cce7bf42caed1c10c4485c3381f673ed24d6
| 44,493
|
py
|
Python
|
pubsub/animation/mario.py
|
yanigisawa/coffee-scale
|
8131f5485646fa6b9803ca13b3e20d02d9debfce
|
[
"MIT"
] | 13
|
2015-07-29T12:07:40.000Z
|
2018-06-29T13:21:41.000Z
|
pubsub/animation/mario.py
|
yanigisawa/coffee-scale
|
8131f5485646fa6b9803ca13b3e20d02d9debfce
|
[
"MIT"
] | 4
|
2015-05-29T11:44:43.000Z
|
2018-07-25T20:20:10.000Z
|
pubsub/animation/mario.py
|
yanigisawa/coffee-scale
|
8131f5485646fa6b9803ca13b3e20d02d9debfce
|
[
"MIT"
] | 7
|
2016-01-19T21:56:08.000Z
|
2018-04-25T04:34:32.000Z
|
#!/usr/bin/env python
from samplebase import SampleBase
import time
import logging
log = logging.getLogger()
class Pixel():
def __init__(self, *args):
self.x = args[0]
self.y = args[1]
self.red = args[2]
self.green = args[3]
self.blue = args[4]
class Mario(SampleBase):
red = (155, 0, 0)
yellow = (25, 25, 0)
flesh = (155, 155, 0)
brown = (32, 5, 0)
blue = (0, 0, 155)
_halt = None
def __init__(self, *args, **kwargs):
super(Mario, self).__init__(*args, **kwargs)
def clearScreen(self, x = 0):
minx = max(x - 4, 0)
maxX = min(x + 16, 64)
for i in range(minx, maxX):
for j in range(0, 16):
self.canvas.SetPixel(i, j, 0, 0, 0)
def run(self):
x, y, step = 10, 0, 1
count = 0
self.canvas = self.matrix.CreateFrameCanvas()
inverse = False
while True:
if self._halt and self._halt.isSet():
log.info('Halting Mario')
break
self.clearScreen(x)
count += 1
if count == 6:
count = 2
if count == 1:
self.draw(self.getRun1(x, y, inverse))
elif count == 2:
self.draw(self.getRun2(x, y, inverse))
elif count == 3:
self.draw(self.getRun3(x, y, inverse))
elif count == 4:
self.draw(self.getRun4(x, y, inverse))
elif count == 5:
self.draw(self.getRun5(x, y, inverse))
else:
count = 0
# if count % 2 == 0:
# self.draw(self.getStanding(x, y, inverse))
# else:
# # self.draw(self.getStanding(x, y, inverse))
self.draw(self.getJumping(x, y, inverse))
time.sleep(0.2)
x += step
if x > 65 or x < -14:
step *= -1
inverse = not inverse
self.canvas = self.matrix.SwapOnVSync(self.canvas)
def draw(self, pixels):
for p in pixels:
self.canvas.SetPixel(p.x, p.y, p.red, p.green, p.blue)
def getRun1(self, x, y, inverse = False):
pixels = []
pixels.append(Pixel(x + 4, y + 0, *self.red))
pixels.append(Pixel(x + 5, y + 0, *self.red))
pixels.append(Pixel(x + 6, y + 0, *self.red))
pixels.append(Pixel(x + 7, y + 0, *self.red))
pixels.append(Pixel(x + 8, y + 0, *self.red))
pixels.append(Pixel(x + 3, y + 1, *self.red))
pixels.append(Pixel(x + 4, y + 1, *self.red))
pixels.append(Pixel(x + 5, y + 1, *self.red))
pixels.append(Pixel(x + 6, y + 1, *self.red))
pixels.append(Pixel(x + 7, y + 1, *self.red))
pixels.append(Pixel(x + 8, y + 1, *self.red))
pixels.append(Pixel(x + 9, y + 1, *self.red))
pixels.append(Pixel(x + 10, y + 1, *self.red))
pixels.append(Pixel(x + 11, y + 1, *self.red))
# Head / Hair)
pixels.append(Pixel(x + 3, y + 2, *self.brown))
pixels.append(Pixel(x + 4, y + 2, *self.brown))
pixels.append(Pixel(x + 5, y + 2, *self.brown))
# Skin)
pixels.append(Pixel(x + 6, y + 2, *self.flesh) )
pixels.append(Pixel(x + 7, y + 2, *self.flesh) )
pixels.append(Pixel(x + 8, y + 2, *self.brown))
pixels.append(Pixel(x + 9, y + 2, *self.flesh))
pixels.append(Pixel(x + 2, y + 3, *self.brown))
pixels.append(Pixel(x + 3, y + 3, *self.flesh))
pixels.append(Pixel(x + 4, y + 3, *self.brown))
pixels.append(Pixel(x + 5, y + 3, *self.flesh) )
pixels.append(Pixel(x + 6, y + 3, *self.flesh) )
pixels.append(Pixel(x + 7, y + 3, *self.flesh) )
pixels.append(Pixel(x + 8, y + 3, *self.brown))
pixels.append(Pixel(x + 9, y + 3, *self.flesh))
pixels.append(Pixel(x + 10, y + 3, *self.flesh))
pixels.append(Pixel(x + 11, y + 3,*self.flesh))
pixels.append(Pixel(x + 2, y + 4, *self.brown))
pixels.append(Pixel(x + 3, y + 4, *self.flesh))
pixels.append(Pixel(x + 4, y + 4, *self.brown))
pixels.append(Pixel(x + 5, y + 4, *self.brown))
pixels.append(Pixel(x + 6, y + 4, *self.flesh))
pixels.append(Pixel(x + 7, y + 4, *self.flesh))
pixels.append(Pixel(x + 8, y + 4, *self.flesh))
pixels.append(Pixel(x + 9, y + 4, *self.brown))
pixels.append(Pixel(x + 10, y + 4, *self.flesh))
pixels.append(Pixel(x + 11, y + 4, *self.flesh))
pixels.append(Pixel(x + 12, y + 4, *self.flesh))
pixels.append(Pixel(x + 2, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 5, *self.brown))
pixels.append(Pixel(x + 4, y + 5, *self.flesh))
pixels.append(Pixel(x + 5, y + 5, *self.flesh))
pixels.append(Pixel(x + 6, y + 5, *self.flesh))
pixels.append(Pixel(x + 7, y + 5, *self.flesh))
pixels.append(Pixel(x + 8, y + 5, *self.brown))
pixels.append(Pixel(x + 9, y + 5, *self.brown))
pixels.append(Pixel(x + 10, y + 5, *self.brown))
pixels.append(Pixel(x + 11, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 6, *self.flesh))
pixels.append(Pixel(x + 4, y + 6, *self.flesh))
pixels.append(Pixel(x + 5, y + 6, *self.flesh))
pixels.append(Pixel(x + 6, y + 6, *self.flesh))
pixels.append(Pixel(x + 7, y + 6, *self.flesh))
pixels.append(Pixel(x + 8, y + 6, *self.flesh))
pixels.append(Pixel(x + 9, y + 6, *self.flesh))
# Body)
pixels.append(Pixel(x + 2, y + 7, *self.red))
pixels.append(Pixel(x + 3, y + 7, *self.red))
pixels.append(Pixel(x + 4, y + 7, *self.red))
pixels.append(Pixel(x + 5, y + 7, *self.blue))
pixels.append(Pixel(x + 6, y + 7, *self.red))
pixels.append(Pixel(x + 7, y + 7, *self.red))
pixels.append(Pixel(x + 1, y + 8, *self.red))
pixels.append(Pixel(x + 2, y + 8, *self.red))
pixels.append(Pixel(x + 3, y + 8, *self.red))
pixels.append(Pixel(x + 4, y + 8, *self.red))
pixels.append(Pixel(x + 5, y + 8, *self.blue))
pixels.append(Pixel(x + 6, y + 8, *self.blue))
pixels.append(Pixel(x + 7, y + 8, *self.red))
pixels.append(Pixel(x + 8, y + 8, *self.red))
pixels.append(Pixel(x + 1, y + 9, *self.red))
pixels.append(Pixel(x + 2, y + 9, *self.red))
pixels.append(Pixel(x + 3, y + 9, *self.red))
pixels.append(Pixel(x + 4, y + 9, *self.blue))
pixels.append(Pixel(x + 5, y + 9, *self.blue))
pixels.append(Pixel(x + 6, y + 9, *self.yellow))
pixels.append(Pixel(x + 7, y + 9, *self.blue))
pixels.append(Pixel(x + 8, y + 9, *self.blue))
pixels.append(Pixel(x + 1, y + 10, *self.red))
pixels.append(Pixel(x + 2, y + 10, *self.red))
pixels.append(Pixel(x + 3, y + 10, *self.red))
pixels.append(Pixel(x + 4, y + 10, *self.red))
pixels.append(Pixel(x + 5, y + 10, *self.blue))
pixels.append(Pixel(x + 6, y + 10, *self.blue))
pixels.append(Pixel(x + 7, y + 10, *self.blue))
pixels.append(Pixel(x + 8, y + 10, *self.blue))
pixels.append(Pixel(x + 1, y + 11, *self.blue))
pixels.append(Pixel(x + 2, y + 11, *self.red))
pixels.append(Pixel(x + 3, y + 11, *self.red))
pixels.append(Pixel(x + 4, y + 11, *self.flesh))
pixels.append(Pixel(x + 5, y + 11, *self.flesh))
pixels.append(Pixel(x + 6, y + 11, *self.red))
pixels.append(Pixel(x + 7, y + 11, *self.red))
pixels.append(Pixel(x + 8, y + 11, *self.red))
pixels.append(Pixel(x + 2, y + 12, *self.blue))
pixels.append(Pixel(x + 3, y + 12, *self.red))
pixels.append(Pixel(x + 4, y + 12, *self.flesh))
pixels.append(Pixel(x + 5, y + 12, *self.flesh))
pixels.append(Pixel(x + 6, y + 12, *self.blue))
pixels.append(Pixel(x + 7, y + 12, *self.blue))
pixels.append(Pixel(x + 3, y + 13, *self.blue))
pixels.append(Pixel(x + 4, y + 13, *self.blue))
pixels.append(Pixel(x + 5, y + 13, *self.blue))
pixels.append(Pixel(x + 6, y + 13, *self.brown))
pixels.append(Pixel(x + 7, y + 13, *self.brown))
pixels.append(Pixel(x + 8, y + 13, *self.brown))
# Feet
pixels.append(Pixel(x + 3, y + 14, *self.brown))
pixels.append(Pixel(x + 4, y + 14, *self.brown))
pixels.append(Pixel(x + 5, y + 14, *self.brown))
pixels.append(Pixel(x + 6, y + 14, *self.brown))
# Standing Mario is 12 pixels wide. With 6 as the mid-point
# flip all pixels around the 6 pixel mark to turn him around
if inverse:
left = x
right = left + 12
mid = left + 6
for p in pixels:
if p.x < mid:
distance = mid - p.x
p.x = p.x + distance * 2
elif p.x > mid:
distance = p.x - mid
p.x = p.x - distance * 2
return pixels
def getRun2(self, x, y, inverse = False):
pixels = []
pixels.append(Pixel(x + 4, y + 0, *self.red))
pixels.append(Pixel(x + 5, y + 0, *self.red))
pixels.append(Pixel(x + 6, y + 0, *self.red))
pixels.append(Pixel(x + 7, y + 0, *self.red))
pixels.append(Pixel(x + 8, y + 0, *self.red))
pixels.append(Pixel(x + 3, y + 1, *self.red))
pixels.append(Pixel(x + 4, y + 1, *self.red))
pixels.append(Pixel(x + 5, y + 1, *self.red))
pixels.append(Pixel(x + 6, y + 1, *self.red))
pixels.append(Pixel(x + 7, y + 1, *self.red))
pixels.append(Pixel(x + 8, y + 1, *self.red))
pixels.append(Pixel(x + 9, y + 1, *self.red))
pixels.append(Pixel(x + 10, y + 1, *self.red))
pixels.append(Pixel(x + 11, y + 1, *self.red))
# Head / Hair)
pixels.append(Pixel(x + 3, y + 2, *self.brown))
pixels.append(Pixel(x + 4, y + 2, *self.brown))
pixels.append(Pixel(x + 5, y + 2, *self.brown))
# Skin)
pixels.append(Pixel(x + 6, y + 2, *self.flesh) )
pixels.append(Pixel(x + 7, y + 2, *self.flesh) )
pixels.append(Pixel(x + 8, y + 2, *self.brown))
pixels.append(Pixel(x + 9, y + 2, *self.flesh))
pixels.append(Pixel(x + 2, y + 3, *self.brown))
pixels.append(Pixel(x + 3, y + 3, *self.flesh))
pixels.append(Pixel(x + 4, y + 3, *self.brown))
pixels.append(Pixel(x + 5, y + 3, *self.flesh) )
pixels.append(Pixel(x + 6, y + 3, *self.flesh) )
pixels.append(Pixel(x + 7, y + 3, *self.flesh) )
pixels.append(Pixel(x + 8, y + 3, *self.brown))
pixels.append(Pixel(x + 9, y + 3, *self.flesh))
pixels.append(Pixel(x + 10, y + 3, *self.flesh))
pixels.append(Pixel(x + 11, y + 3,*self.flesh))
pixels.append(Pixel(x + 2, y + 4, *self.brown))
pixels.append(Pixel(x + 3, y + 4, *self.flesh))
pixels.append(Pixel(x + 4, y + 4, *self.brown))
pixels.append(Pixel(x + 5, y + 4, *self.brown))
pixels.append(Pixel(x + 6, y + 4, *self.flesh))
pixels.append(Pixel(x + 7, y + 4, *self.flesh))
pixels.append(Pixel(x + 8, y + 4, *self.flesh))
pixels.append(Pixel(x + 9, y + 4, *self.brown))
pixels.append(Pixel(x + 10, y + 4, *self.flesh))
pixels.append(Pixel(x + 11, y + 4, *self.flesh))
pixels.append(Pixel(x + 12, y + 4, *self.flesh))
pixels.append(Pixel(x + 2, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 5, *self.brown))
pixels.append(Pixel(x + 4, y + 5, *self.flesh))
pixels.append(Pixel(x + 5, y + 5, *self.flesh))
pixels.append(Pixel(x + 6, y + 5, *self.flesh))
pixels.append(Pixel(x + 7, y + 5, *self.flesh))
pixels.append(Pixel(x + 8, y + 5, *self.brown))
pixels.append(Pixel(x + 9, y + 5, *self.brown))
pixels.append(Pixel(x + 10, y + 5, *self.brown))
pixels.append(Pixel(x + 11, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 6, *self.flesh))
pixels.append(Pixel(x + 4, y + 6, *self.flesh))
pixels.append(Pixel(x + 5, y + 6, *self.flesh))
pixels.append(Pixel(x + 6, y + 6, *self.flesh))
pixels.append(Pixel(x + 7, y + 6, *self.flesh))
pixels.append(Pixel(x + 8, y + 6, *self.flesh))
pixels.append(Pixel(x + 9, y + 6, *self.flesh))
# Body
pixels.append(Pixel(x + 4, y + 7, *self.red))
pixels.append(Pixel(x + 5, y + 7, *self.red))
pixels.append(Pixel(x + 6, y + 7, *self.blue))
pixels.append(Pixel(x + 7, y + 7, *self.blue))
pixels.append(Pixel(x + 8, y + 7, *self.red))
pixels.append(Pixel(x + 3, y + 8, *self.red))
pixels.append(Pixel(x + 4, y + 8, *self.red))
pixels.append(Pixel(x + 5, y + 8, *self.red))
pixels.append(Pixel(x + 6, y + 8, *self.red))
pixels.append(Pixel(x + 7, y + 8, *self.blue))
pixels.append(Pixel(x + 8, y + 8, *self.red))
pixels.append(Pixel(x + 9, y + 8, *self.flesh))
pixels.append(Pixel(x + 10, y + 8, *self.flesh))
pixels.append(Pixel(x + 1, y + 9, *self.flesh))
pixels.append(Pixel(x + 2, y + 9, *self.flesh))
pixels.append(Pixel(x + 3, y + 9, *self.red))
pixels.append(Pixel(x + 4, y + 9, *self.red))
pixels.append(Pixel(x + 5, y + 9, *self.red))
pixels.append(Pixel(x + 6, y + 9, *self.red))
pixels.append(Pixel(x + 7, y + 9, *self.red))
pixels.append(Pixel(x + 8, y + 9, *self.red))
pixels.append(Pixel(x + 9, y + 9, *self.flesh))
pixels.append(Pixel(x + 10, y + 9, *self.flesh))
pixels.append(Pixel(x + 11, y + 9, *self.flesh))
pixels.append(Pixel(x + 0, y + 10, *self.flesh))
pixels.append(Pixel(x + 1, y + 10, *self.flesh))
pixels.append(Pixel(x + 2, y + 10, *self.flesh))
pixels.append(Pixel(x + 3, y + 10, *self.blue))
pixels.append(Pixel(x + 4, y + 10, *self.red))
pixels.append(Pixel(x + 5, y + 10, *self.red))
pixels.append(Pixel(x + 6, y + 10, *self.red))
pixels.append(Pixel(x + 7, y + 10, *self.red))
pixels.append(Pixel(x + 8, y + 10, *self.red))
pixels.append(Pixel(x + 9, y + 10, *self.flesh))
pixels.append(Pixel(x + 10, y + 10, *self.flesh))
pixels.append(Pixel(x + 1, y + 11, *self.brown))
pixels.append(Pixel(x + 2, y + 11, *self.brown))
pixels.append(Pixel(x + 3, y + 11, *self.blue))
pixels.append(Pixel(x + 4, y + 11, *self.blue))
pixels.append(Pixel(x + 5, y + 11, *self.blue))
pixels.append(Pixel(x + 6, y + 11, *self.blue))
pixels.append(Pixel(x + 7, y + 11, *self.blue))
pixels.append(Pixel(x + 8, y + 11, *self.blue))
pixels.append(Pixel(x + 9, y + 11, *self.blue))
pixels.append(Pixel(x + 1, y + 12, *self.brown))
pixels.append(Pixel(x + 2, y + 12, *self.blue))
pixels.append(Pixel(x + 3, y + 12, *self.blue))
pixels.append(Pixel(x + 4, y + 12, *self.blue))
pixels.append(Pixel(x + 5, y + 12, *self.blue))
pixels.append(Pixel(x + 6, y + 12, *self.blue))
pixels.append(Pixel(x + 7, y + 12, *self.blue))
pixels.append(Pixel(x + 8, y + 12, *self.blue))
pixels.append(Pixel(x + 9, y + 12, *self.blue))
pixels.append(Pixel(x + 0, y + 13, *self.brown))
pixels.append(Pixel(x + 1, y + 13, *self.brown))
pixels.append(Pixel(x + 2, y + 13, *self.blue))
pixels.append(Pixel(x + 3, y + 13, *self.blue))
pixels.append(Pixel(x + 6, y + 13, *self.blue))
pixels.append(Pixel(x + 7, y + 13, *self.blue))
pixels.append(Pixel(x + 8, y + 13, *self.blue))
# Feet)
pixels.append(Pixel(x + 0, y + 14, *self.brown))
pixels.append(Pixel(x + 6, y + 14, *self.brown))
pixels.append(Pixel(x + 7, y + 14, *self.brown))
pixels.append(Pixel(x + 8, y + 14, *self.brown))
pixels.append(Pixel(x + 7, y + 15, *self.brown))
pixels.append(Pixel(x + 8, y + 15, *self.brown))
pixels.append(Pixel(x + 9, y + 15, *self.brown))
# Standing Mario is 12 pixels wide. With 6 as the mid-point
# flip all pixels around the 6 pixel mark to turn him around
if inverse:
left = x
right = left + 12
mid = left + 6
for p in pixels:
if p.x < mid:
distance = mid - p.x
p.x = p.x + distance * 2
elif p.x > mid:
distance = p.x - mid
p.x = p.x - distance * 2
return pixels
def getRun3(self, x, y, inverse = False):
return self.getRun1(x, y, inverse)
def getRun4(self, x, y, inverse = False):
pixels = []
pixels.append(Pixel(x + 4, y + 0, *self.red))
pixels.append(Pixel(x + 5, y + 0, *self.red))
pixels.append(Pixel(x + 6, y + 0, *self.red))
pixels.append(Pixel(x + 7, y + 0, *self.red))
pixels.append(Pixel(x + 8, y + 0, *self.red))
pixels.append(Pixel(x + 3, y + 1, *self.red))
pixels.append(Pixel(x + 4, y + 1, *self.red))
pixels.append(Pixel(x + 5, y + 1, *self.red))
pixels.append(Pixel(x + 6, y + 1, *self.red))
pixels.append(Pixel(x + 7, y + 1, *self.red))
pixels.append(Pixel(x + 8, y + 1, *self.red))
pixels.append(Pixel(x + 9, y + 1, *self.red))
pixels.append(Pixel(x + 10, y + 1, *self.red))
pixels.append(Pixel(x + 11, y + 1, *self.red))
# Head / Hair)
pixels.append(Pixel(x + 3, y + 2, *self.brown))
pixels.append(Pixel(x + 4, y + 2, *self.brown))
pixels.append(Pixel(x + 5, y + 2, *self.brown))
# Skin)
pixels.append(Pixel(x + 6, y + 2, *self.flesh) )
pixels.append(Pixel(x + 7, y + 2, *self.flesh) )
pixels.append(Pixel(x + 8, y + 2, *self.brown))
pixels.append(Pixel(x + 9, y + 2, *self.flesh))
pixels.append(Pixel(x + 2, y + 3, *self.brown))
pixels.append(Pixel(x + 3, y + 3, *self.flesh))
pixels.append(Pixel(x + 4, y + 3, *self.brown))
pixels.append(Pixel(x + 5, y + 3, *self.flesh) )
pixels.append(Pixel(x + 6, y + 3, *self.flesh) )
pixels.append(Pixel(x + 7, y + 3, *self.flesh) )
pixels.append(Pixel(x + 8, y + 3, *self.brown))
pixels.append(Pixel(x + 9, y + 3, *self.flesh))
pixels.append(Pixel(x + 10, y + 3, *self.flesh))
pixels.append(Pixel(x + 11, y + 3,*self.flesh))
pixels.append(Pixel(x + 2, y + 4, *self.brown))
pixels.append(Pixel(x + 3, y + 4, *self.flesh))
pixels.append(Pixel(x + 4, y + 4, *self.brown))
pixels.append(Pixel(x + 5, y + 4, *self.brown))
pixels.append(Pixel(x + 6, y + 4, *self.flesh))
pixels.append(Pixel(x + 7, y + 4, *self.flesh))
pixels.append(Pixel(x + 8, y + 4, *self.flesh))
pixels.append(Pixel(x + 9, y + 4, *self.brown))
pixels.append(Pixel(x + 10, y + 4, *self.flesh))
pixels.append(Pixel(x + 11, y + 4, *self.flesh))
pixels.append(Pixel(x + 12, y + 4, *self.flesh))
pixels.append(Pixel(x + 2, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 5, *self.brown))
pixels.append(Pixel(x + 4, y + 5, *self.flesh))
pixels.append(Pixel(x + 5, y + 5, *self.flesh))
pixels.append(Pixel(x + 6, y + 5, *self.flesh))
pixels.append(Pixel(x + 7, y + 5, *self.flesh))
pixels.append(Pixel(x + 8, y + 5, *self.brown))
pixels.append(Pixel(x + 9, y + 5, *self.brown))
pixels.append(Pixel(x + 10, y + 5, *self.brown))
pixels.append(Pixel(x + 11, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 6, *self.flesh))
pixels.append(Pixel(x + 4, y + 6, *self.flesh))
pixels.append(Pixel(x + 5, y + 6, *self.flesh))
pixels.append(Pixel(x + 6, y + 6, *self.flesh))
pixels.append(Pixel(x + 7, y + 6, *self.flesh))
pixels.append(Pixel(x + 8, y + 6, *self.flesh))
pixels.append(Pixel(x + 9, y + 6, *self.flesh))
# Body)
pixels.append(Pixel(x + 1, y + 7, *self.red))
pixels.append(Pixel(x + 2, y + 7, *self.red))
pixels.append(Pixel(x + 3, y + 7, *self.red))
pixels.append(Pixel(x + 4, y + 7, *self.red))
pixels.append(Pixel(x + 5, y + 7, *self.blue))
pixels.append(Pixel(x + 6, y + 7, *self.red))
pixels.append(Pixel(x + 7, y + 7, *self.red))
pixels.append(Pixel(x + 8, y + 7, *self.red))
pixels.append(Pixel(x + 9, y + 7, *self.blue))
pixels.append(Pixel(x - 1, y + 8, *self.flesh))
pixels.append(Pixel(x + 0, y + 8, *self.flesh))
pixels.append(Pixel(x + 1, y + 8, *self.red))
pixels.append(Pixel(x + 2, y + 8, *self.red))
pixels.append(Pixel(x + 3, y + 8, *self.red))
pixels.append(Pixel(x + 4, y + 8, *self.red))
pixels.append(Pixel(x + 5, y + 8, *self.blue))
pixels.append(Pixel(x + 6, y + 8, *self.blue))
pixels.append(Pixel(x + 7, y + 8, *self.red))
pixels.append(Pixel(x + 8, y + 8, *self.red))
pixels.append(Pixel(x + 9, y + 8, *self.red))
pixels.append(Pixel(x + 10, y + 8, *self.blue))
pixels.append(Pixel(x + 11, y + 8, *self.red))
pixels.append(Pixel(x + 12, y + 8, *self.flesh))
pixels.append(Pixel(x + 13, y + 8, *self.flesh))
pixels.append(Pixel(x + 14, y + 8, *self.flesh))
pixels.append(Pixel(x - 1, y + 9, *self.flesh))
pixels.append(Pixel(x - 0, y + 9, *self.flesh))
pixels.append(Pixel(x + 1, y + 9, *self.flesh))
pixels.append(Pixel(x + 3, y + 9, *self.red))
pixels.append(Pixel(x + 4, y + 9, *self.red))
pixels.append(Pixel(x + 5, y + 9, *self.blue))
pixels.append(Pixel(x + 6, y + 9, *self.blue))
pixels.append(Pixel(x + 7, y + 9, *self.blue))
pixels.append(Pixel(x + 8, y + 9, *self.blue))
pixels.append(Pixel(x + 9, y + 9, *self.blue))
pixels.append(Pixel(x + 10, y + 9, *self.blue))
pixels.append(Pixel(x + 11, y + 9, *self.red))
pixels.append(Pixel(x + 12, y + 9, *self.red))
pixels.append(Pixel(x + 13, y + 9, *self.flesh))
pixels.append(Pixel(x + 14, y + 9, *self.flesh))
pixels.append(Pixel(x - 1, y + 10, *self.flesh))
pixels.append(Pixel(x + 0, y + 10, *self.flesh))
pixels.append(Pixel(x + 3, y + 10, *self.blue))
pixels.append(Pixel(x + 4, y + 10, *self.blue))
pixels.append(Pixel(x + 5, y + 10, *self.blue))
pixels.append(Pixel(x + 6, y + 10, *self.yellow))
pixels.append(Pixel(x + 7, y + 10, *self.blue))
pixels.append(Pixel(x + 8, y + 10, *self.blue))
pixels.append(Pixel(x + 9, y + 10, *self.blue))
pixels.append(Pixel(x + 10, y + 10, *self.yellow))
pixels.append(Pixel(x + 13, y + 10, *self.brown))
pixels.append(Pixel(x + 2, y + 11, *self.blue))
pixels.append(Pixel(x + 3, y + 11, *self.blue))
pixels.append(Pixel(x + 4, y + 11, *self.blue))
pixels.append(Pixel(x + 5, y + 11, *self.blue))
pixels.append(Pixel(x + 6, y + 11, *self.blue))
pixels.append(Pixel(x + 7, y + 11, *self.blue))
pixels.append(Pixel(x + 8, y + 11, *self.blue))
pixels.append(Pixel(x + 9, y + 11, *self.blue))
pixels.append(Pixel(x + 10, y + 11, *self.blue))
pixels.append(Pixel(x + 11, y + 11, *self.blue))
pixels.append(Pixel(x + 12, y + 11, *self.brown))
pixels.append(Pixel(x + 13, y + 11, *self.brown))
pixels.append(Pixel(x + 1, y + 12, *self.blue))
pixels.append(Pixel(x + 2, y + 12, *self.blue))
pixels.append(Pixel(x + 3, y + 12, *self.blue))
pixels.append(Pixel(x + 4, y + 12, *self.blue))
pixels.append(Pixel(x + 5, y + 12, *self.blue))
pixels.append(Pixel(x + 6, y + 12, *self.blue))
pixels.append(Pixel(x + 7, y + 12, *self.blue))
pixels.append(Pixel(x + 8, y + 12, *self.blue))
pixels.append(Pixel(x + 9, y + 12, *self.blue))
pixels.append(Pixel(x + 10, y + 12, *self.blue))
pixels.append(Pixel(x + 11, y + 12, *self.blue))
pixels.append(Pixel(x + 12, y + 12, *self.brown))
pixels.append(Pixel(x + 13, y + 12, *self.brown))
pixels.append(Pixel(x + 0, y + 13, *self.brown))
pixels.append(Pixel(x + 1, y + 13, *self.brown))
pixels.append(Pixel(x + 2, y + 13, *self.blue))
pixels.append(Pixel(x + 3, y + 13, *self.blue))
pixels.append(Pixel(x + 4, y + 13, *self.blue))
pixels.append(Pixel(x + 9, y + 13, *self.blue))
pixels.append(Pixel(x + 9, y + 13, *self.blue))
pixels.append(Pixel(x + 10, y + 13, *self.blue))
pixels.append(Pixel(x + 11, y + 13, *self.blue))
pixels.append(Pixel(x + 12, y + 13, *self.brown))
pixels.append(Pixel(x + 13, y + 13, *self.brown))
# Feet)
pixels.append(Pixel(x + 0, y + 14, *self.brown))
pixels.append(Pixel(x + 1, y + 14, *self.brown))
pixels.append(Pixel(x + 2, y + 14, *self.brown))
pixels.append(Pixel(x + 1, y + 15, *self.brown))
pixels.append(Pixel(x + 2, y + 15, *self.brown))
pixels.append(Pixel(x + 3, y + 15, *self.brown))
# Standing Mario is 12 pixels wide. With 6 as the mid-point
# flip all pixels around the 6 pixel mark to turn him around
if inverse:
left = x
right = left + 12
mid = left + 6
for p in pixels:
if p.x < mid:
distance = mid - p.x
p.x = p.x + distance * 2
elif p.x > mid:
distance = p.x - mid
p.x = p.x - distance * 2
return pixels
def getRun5(self, x, y, inverse = False):
return self.getRun1(x, y, inverse)
def getJumping(self, x, y, inverse = False):
pixels = []
pixels.append(Pixel(x + 4, y + 0, *self.red))
pixels.append(Pixel(x + 5, y + 0, *self.red))
pixels.append(Pixel(x + 6, y + 0, *self.red))
pixels.append(Pixel(x + 7, y + 0, *self.red))
pixels.append(Pixel(x + 8, y + 0, *self.red))
pixels.append(Pixel(x + 11, y + 0, *self.flesh) )
pixels.append(Pixel(x + 12, y + 0, *self.flesh) )
pixels.append(Pixel(x + 13, y + 0, *self.flesh) )
pixels.append(Pixel(x + 3, y + 1, *self.red))
pixels.append(Pixel(x + 4, y + 1, *self.red))
pixels.append(Pixel(x + 5, y + 1, *self.red))
pixels.append(Pixel(x + 6, y + 1, *self.red))
pixels.append(Pixel(x + 7, y + 1, *self.red))
pixels.append(Pixel(x + 8, y + 1, *self.red))
pixels.append(Pixel(x + 9, y + 1, *self.red))
pixels.append(Pixel(x + 10, y + 1, *self.red))
pixels.append(Pixel(x + 11, y + 1, *self.red))
pixels.append(Pixel(x + 12, y + 1, *self.flesh) )
pixels.append(Pixel(x + 13, y + 1, *self.flesh) )
# Head / Hair)
pixels.append(Pixel(x + 3, y + 2, *self.brown))
pixels.append(Pixel(x + 4, y + 2, *self.brown))
pixels.append(Pixel(x + 5, y + 2, *self.brown))
# Skin)
pixels.append(Pixel(x + 6, y + 2, *self.flesh) )
pixels.append(Pixel(x + 7, y + 2, *self.flesh) )
pixels.append(Pixel(x + 8, y + 2, *self.brown))
pixels.append(Pixel(x + 9, y + 2, *self.flesh))
pixels.append(Pixel(x + 11, y + 2, *self.red))
pixels.append(Pixel(x + 12, y + 2, *self.red))
pixels.append(Pixel(x + 13, y + 2, *self.red))
pixels.append(Pixel(x + 2, y + 3, *self.brown))
pixels.append(Pixel(x + 3, y + 3, *self.flesh))
pixels.append(Pixel(x + 4, y + 3, *self.brown))
pixels.append(Pixel(x + 5, y + 3, *self.flesh) )
pixels.append(Pixel(x + 6, y + 3, *self.flesh) )
pixels.append(Pixel(x + 7, y + 3, *self.flesh) )
pixels.append(Pixel(x + 8, y + 3, *self.brown))
pixels.append(Pixel(x + 9, y + 3, *self.flesh))
pixels.append(Pixel(x + 10, y + 3, *self.flesh))
pixels.append(Pixel(x + 11, y + 3,*self.flesh))
pixels.append(Pixel(x + 12, y + 3, *self.red))
pixels.append(Pixel(x + 13, y + 3, *self.red))
pixels.append(Pixel(x + 2, y + 4, *self.brown))
pixels.append(Pixel(x + 3, y + 4, *self.flesh))
pixels.append(Pixel(x + 4, y + 4, *self.brown))
pixels.append(Pixel(x + 5, y + 4, *self.brown))
pixels.append(Pixel(x + 6, y + 4, *self.flesh))
pixels.append(Pixel(x + 7, y + 4, *self.flesh))
pixels.append(Pixel(x + 8, y + 4, *self.flesh))
pixels.append(Pixel(x + 9, y + 4, *self.brown))
pixels.append(Pixel(x + 10, y + 4, *self.flesh))
pixels.append(Pixel(x + 11, y + 4, *self.flesh))
pixels.append(Pixel(x + 12, y + 4, *self.flesh))
pixels.append(Pixel(x + 13, y + 4, *self.red))
pixels.append(Pixel(x + 2, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 5, *self.brown))
pixels.append(Pixel(x + 4, y + 5, *self.flesh))
pixels.append(Pixel(x + 5, y + 5, *self.flesh))
pixels.append(Pixel(x + 6, y + 5, *self.flesh))
pixels.append(Pixel(x + 7, y + 5, *self.flesh))
pixels.append(Pixel(x + 8, y + 5, *self.brown))
pixels.append(Pixel(x + 9, y + 5, *self.brown))
pixels.append(Pixel(x + 10, y + 5, *self.brown))
pixels.append(Pixel(x + 11, y + 5, *self.brown))
pixels.append(Pixel(x + 12, y + 5, *self.red))
pixels.append(Pixel(x + 3, y + 6, *self.flesh))
pixels.append(Pixel(x + 4, y + 6, *self.flesh))
pixels.append(Pixel(x + 5, y + 6, *self.flesh))
pixels.append(Pixel(x + 6, y + 6, *self.flesh))
pixels.append(Pixel(x + 7, y + 6, *self.flesh))
pixels.append(Pixel(x + 8, y + 6, *self.flesh))
pixels.append(Pixel(x + 9, y + 6, *self.flesh))
pixels.append(Pixel(x + 10, y + 6, *self.red))
pixels.append(Pixel(x + 11, y + 6, *self.red))
# Body)
pixels.append(Pixel(x - 2, y + 7, *self.flesh))
pixels.append(Pixel(x - 1, y + 7, *self.flesh))
pixels.append(Pixel(x + 0, y + 7, *self.flesh))
pixels.append(Pixel(x + 1, y + 7, *self.red))
pixels.append(Pixel(x + 2, y + 7, *self.red))
pixels.append(Pixel(x + 3, y + 7, *self.red))
pixels.append(Pixel(x + 4, y + 7, *self.red))
pixels.append(Pixel(x + 5, y + 7, *self.blue))
pixels.append(Pixel(x + 6, y + 7, *self.red))
pixels.append(Pixel(x + 7, y + 7, *self.red))
pixels.append(Pixel(x + 8, y + 7, *self.red))
pixels.append(Pixel(x + 9, y + 7, *self.blue))
pixels.append(Pixel(x + 10, y + 7, *self.red))
pixels.append(Pixel(x + 11, y + 7, *self.red))
pixels.append(Pixel(x + 14, y + 7, *self.brown))
pixels.append(Pixel(x - 2, y + 8, *self.flesh))
pixels.append(Pixel(x - 1, y + 8, *self.flesh))
pixels.append(Pixel(x + 0, y + 8, *self.flesh))
pixels.append(Pixel(x + 1, y + 8, *self.red))
pixels.append(Pixel(x + 2, y + 8, *self.red))
pixels.append(Pixel(x + 3, y + 8, *self.red))
pixels.append(Pixel(x + 4, y + 8, *self.red))
pixels.append(Pixel(x + 5, y + 8, *self.red))
pixels.append(Pixel(x + 6, y + 8, *self.blue))
pixels.append(Pixel(x + 7, y + 8, *self.red))
pixels.append(Pixel(x + 8, y + 8, *self.red))
pixels.append(Pixel(x + 9, y + 8, *self.red))
pixels.append(Pixel(x + 10, y + 8, *self.blue))
pixels.append(Pixel(x + 13, y + 8, *self.brown))
pixels.append(Pixel(x + 14, y + 8, *self.brown))
pixels.append(Pixel(x - 1, y + 9, *self.flesh))
pixels.append(Pixel(x + 3, y + 9, *self.red))
pixels.append(Pixel(x + 4, y + 9, *self.red))
pixels.append(Pixel(x + 5, y + 9, *self.red))
pixels.append(Pixel(x + 6, y + 9, *self.blue))
pixels.append(Pixel(x + 7, y + 9, *self.blue))
pixels.append(Pixel(x + 8, y + 9, *self.blue))
pixels.append(Pixel(x + 9, y + 9, *self.blue))
pixels.append(Pixel(x + 10, y + 9, *self.yellow))
pixels.append(Pixel(x + 11, y + 9, *self.blue))
pixels.append(Pixel(x + 12, y + 9, *self.blue))
pixels.append(Pixel(x + 13, y + 9, *self.brown))
pixels.append(Pixel(x + 14, y + 9, *self.brown))
pixels.append(Pixel(x + 4, y + 10, *self.blue))
pixels.append(Pixel(x + 5, y + 10, *self.blue))
pixels.append(Pixel(x + 6, y + 10, *self.blue))
pixels.append(Pixel(x + 7, y + 10, *self.yellow))
pixels.append(Pixel(x + 8, y + 10, *self.blue))
pixels.append(Pixel(x + 9, y + 10, *self.blue))
pixels.append(Pixel(x + 10, y + 10, *self.blue))
pixels.append(Pixel(x + 11, y + 10, *self.blue))
pixels.append(Pixel(x + 12, y + 10, *self.blue))
pixels.append(Pixel(x + 13, y + 10, *self.brown))
pixels.append(Pixel(x + 14, y + 10, *self.brown))
pixels.append(Pixel(x + 2, y + 11, *self.brown))
pixels.append(Pixel(x + 3, y + 11, *self.brown))
pixels.append(Pixel(x + 4, y + 11, *self.blue))
pixels.append(Pixel(x + 5, y + 11, *self.blue))
pixels.append(Pixel(x + 6, y + 11, *self.blue))
pixels.append(Pixel(x + 7, y + 11, *self.blue))
pixels.append(Pixel(x + 8, y + 11, *self.blue))
pixels.append(Pixel(x + 9, y + 11, *self.blue))
pixels.append(Pixel(x + 10, y + 11, *self.blue))
pixels.append(Pixel(x + 11, y + 11, *self.blue))
pixels.append(Pixel(x + 12, y + 11, *self.blue))
pixels.append(Pixel(x + 13, y + 11, *self.brown))
pixels.append(Pixel(x + 14, y + 11, *self.brown))
pixels.append(Pixel(x + 1, y + 12, *self.brown))
pixels.append(Pixel(x + 2, y + 12, *self.brown))
pixels.append(Pixel(x + 3, y + 12, *self.brown))
pixels.append(Pixel(x + 3, y + 12, *self.blue))
pixels.append(Pixel(x + 4, y + 12, *self.blue))
pixels.append(Pixel(x + 5, y + 12, *self.blue))
pixels.append(Pixel(x + 6, y + 12, *self.blue))
pixels.append(Pixel(x + 7, y + 12, *self.blue))
pixels.append(Pixel(x + 8, y + 12, *self.blue))
pixels.append(Pixel(x + 1, y + 13, *self.brown))
pixels.append(Pixel(x + 2, y + 13, *self.brown))
# Jumping Mario is 17 pixels wide. With 8 as the mid-point
# flip all pixels around the 8 pixel mark to turn him around
if inverse:
left = x - 2
right = left + 17
mid = left + 8
for p in pixels:
if p.x < mid:
distance = mid - p.x
p.x = p.x + distance * 2
elif p.x > mid:
distance = p.x - mid
p.x = p.x - distance * 2
return pixels
def getStanding(self, x, y, inverse = False):
pixels = []
pixels.append(Pixel(x + 4, y + 0, *self.red))
pixels.append(Pixel(x + 5, y + 0, *self.red))
pixels.append(Pixel(x + 6, y + 0, *self.red))
pixels.append(Pixel(x + 7, y + 0, *self.red))
pixels.append(Pixel(x + 8, y + 0, *self.red))
pixels.append(Pixel(x + 3, y + 1, *self.red))
pixels.append(Pixel(x + 4, y + 1, *self.red))
pixels.append(Pixel(x + 5, y + 1, *self.red))
pixels.append(Pixel(x + 6, y + 1, *self.red))
pixels.append(Pixel(x + 7, y + 1, *self.red))
pixels.append(Pixel(x + 8, y + 1, *self.red))
pixels.append(Pixel(x + 9, y + 1, *self.red))
pixels.append(Pixel(x + 10, y + 1, *self.red))
pixels.append(Pixel(x + 11, y + 1, *self.red))
# Head / Hair)
pixels.append(Pixel(x + 3, y + 2, *self.brown))
pixels.append(Pixel(x + 4, y + 2, *self.brown))
pixels.append(Pixel(x + 5, y + 2, *self.brown))
# Skin)
pixels.append(Pixel(x + 6, y + 2, *self.flesh) )
pixels.append(Pixel(x + 7, y + 2, *self.flesh) )
pixels.append(Pixel(x + 8, y + 2, *self.brown))
pixels.append(Pixel(x + 9, y + 2, *self.flesh))
pixels.append(Pixel(x + 2, y + 3, *self.brown))
pixels.append(Pixel(x + 3, y + 3, *self.flesh))
pixels.append(Pixel(x + 4, y + 3, *self.brown))
pixels.append(Pixel(x + 5, y + 3, *self.flesh) )
pixels.append(Pixel(x + 6, y + 3, *self.flesh) )
pixels.append(Pixel(x + 7, y + 3, *self.flesh) )
pixels.append(Pixel(x + 8, y + 3, *self.brown))
pixels.append(Pixel(x + 9, y + 3, *self.flesh))
pixels.append(Pixel(x + 10, y + 3, *self.flesh))
pixels.append(Pixel(x + 11, y + 3,*self.flesh))
pixels.append(Pixel(x + 2, y + 4, *self.brown))
pixels.append(Pixel(x + 3, y + 4, *self.flesh))
pixels.append(Pixel(x + 4, y + 4, *self.brown))
pixels.append(Pixel(x + 5, y + 4, *self.brown))
pixels.append(Pixel(x + 6, y + 4, *self.flesh))
pixels.append(Pixel(x + 7, y + 4, *self.flesh))
pixels.append(Pixel(x + 8, y + 4, *self.flesh))
pixels.append(Pixel(x + 9, y + 4, *self.brown))
pixels.append(Pixel(x + 10, y + 4, *self.flesh))
pixels.append(Pixel(x + 11, y + 4, *self.flesh))
pixels.append(Pixel(x + 12, y + 4, *self.flesh))
pixels.append(Pixel(x + 2, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 5, *self.brown))
pixels.append(Pixel(x + 4, y + 5, *self.flesh))
pixels.append(Pixel(x + 5, y + 5, *self.flesh))
pixels.append(Pixel(x + 6, y + 5, *self.flesh))
pixels.append(Pixel(x + 7, y + 5, *self.flesh))
pixels.append(Pixel(x + 8, y + 5, *self.brown))
pixels.append(Pixel(x + 9, y + 5, *self.brown))
pixels.append(Pixel(x + 10, y + 5, *self.brown))
pixels.append(Pixel(x + 11, y + 5, *self.brown))
pixels.append(Pixel(x + 3, y + 6, *self.flesh))
pixels.append(Pixel(x + 4, y + 6, *self.flesh))
pixels.append(Pixel(x + 5, y + 6, *self.flesh))
pixels.append(Pixel(x + 6, y + 6, *self.flesh))
pixels.append(Pixel(x + 7, y + 6, *self.flesh))
pixels.append(Pixel(x + 8, y + 6, *self.flesh))
pixels.append(Pixel(x + 9, y + 6, *self.flesh))
# Body)
pixels.append(Pixel(x + 2, y + 7, *self.red))
pixels.append(Pixel(x + 3, y + 7, *self.red))
pixels.append(Pixel(x + 4, y + 7, *self.blue))
pixels.append(Pixel(x + 5, y + 7, *self.red))
pixels.append(Pixel(x + 6, y + 7, *self.red))
pixels.append(Pixel(x + 7, y + 7, *self.red))
pixels.append(Pixel(x + 8, y + 7, *self.red))
pixels.append(Pixel(x + 1, y + 8, *self.red))
pixels.append(Pixel(x + 2, y + 8, *self.red))
pixels.append(Pixel(x + 3, y + 8, *self.red))
pixels.append(Pixel(x + 4, y + 8, *self.blue))
pixels.append(Pixel(x + 5, y + 8, *self.red))
pixels.append(Pixel(x + 6, y + 8, *self.red))
pixels.append(Pixel(x + 7, y + 8, *self.blue))
pixels.append(Pixel(x + 8, y + 8, *self.red))
pixels.append(Pixel(x + 9, y + 8, *self.red))
pixels.append(Pixel(x + 10, y + 8, *self.red))
pixels.append(Pixel(x + 0, y + 9, *self.red))
pixels.append(Pixel(x + 1, y + 9, *self.red))
pixels.append(Pixel(x + 2, y + 9, *self.red))
pixels.append(Pixel(x + 3, y + 9, *self.red))
pixels.append(Pixel(x + 4, y + 9, *self.blue))
pixels.append(Pixel(x + 5, y + 9, *self.blue))
pixels.append(Pixel(x + 6, y + 9, *self.blue))
pixels.append(Pixel(x + 7, y + 9, *self.blue))
pixels.append(Pixel(x + 8, y + 9, *self.red))
pixels.append(Pixel(x + 9, y + 9, *self.red))
pixels.append(Pixel(x + 10, y + 9, *self.red))
pixels.append(Pixel(x + 11, y + 9, *self.red))
pixels.append(Pixel(x + 0, y + 10, *self.flesh))
pixels.append(Pixel(x + 1, y + 10, *self.flesh))
pixels.append(Pixel(x + 2, y + 10, *self.red))
pixels.append(Pixel(x + 3, y + 10, *self.blue))
pixels.append(Pixel(x + 4, y + 10, *self.yellow))
pixels.append(Pixel(x + 5, y + 10, *self.blue))
pixels.append(Pixel(x + 6, y + 10, *self.blue))
pixels.append(Pixel(x + 7, y + 10, *self.yellow))
pixels.append(Pixel(x + 8, y + 10, *self.blue))
pixels.append(Pixel(x + 9, y + 10, *self.red))
pixels.append(Pixel(x + 10, y + 10, *self.flesh))
pixels.append(Pixel(x + 11, y + 10, *self.flesh))
pixels.append(Pixel(x + 0, y + 11, *self.flesh))
pixels.append(Pixel(x + 1, y + 11, *self.flesh))
pixels.append(Pixel(x + 2, y + 11, *self.flesh))
pixels.append(Pixel(x + 3, y + 11, *self.blue))
pixels.append(Pixel(x + 4, y + 11, *self.blue))
pixels.append(Pixel(x + 5, y + 11, *self.blue))
pixels.append(Pixel(x + 6, y + 11, *self.blue))
pixels.append(Pixel(x + 7, y + 11, *self.blue))
pixels.append(Pixel(x + 8, y + 11, *self.blue))
pixels.append(Pixel(x + 9, y + 11, *self.flesh))
pixels.append(Pixel(x + 10, y + 11, *self.flesh))
pixels.append(Pixel(x + 11, y + 11, *self.flesh))
pixels.append(Pixel(x + 0, y + 12, *self.flesh))
pixels.append(Pixel(x + 1, y + 12, *self.flesh))
pixels.append(Pixel(x + 2, y + 12, *self.blue))
pixels.append(Pixel(x + 3, y + 12, *self.blue))
pixels.append(Pixel(x + 4, y + 12, *self.blue))
pixels.append(Pixel(x + 5, y + 12, *self.blue))
pixels.append(Pixel(x + 6, y + 12, *self.blue))
pixels.append(Pixel(x + 7, y + 12, *self.blue))
pixels.append(Pixel(x + 8, y + 12, *self.blue))
pixels.append(Pixel(x + 9, y + 12, *self.blue))
pixels.append(Pixel(x + 10, y + 12, *self.flesh))
pixels.append(Pixel(x + 11, y + 12, *self.flesh))
pixels.append(Pixel(x + 2, y + 13, *self.blue))
pixels.append(Pixel(x + 3, y + 13, *self.blue))
pixels.append(Pixel(x + 4, y + 13, *self.blue))
pixels.append(Pixel(x + 7, y + 13, *self.blue))
pixels.append(Pixel(x + 8, y + 13, *self.blue))
pixels.append(Pixel(x + 9, y + 13, *self.blue))
# Feet)
pixels.append(Pixel(x + 1, y + 14, *self.brown))
pixels.append(Pixel(x + 2, y + 14, *self.brown))
pixels.append(Pixel(x + 3, y + 14, *self.brown))
pixels.append(Pixel(x + 8, y + 14, *self.brown))
pixels.append(Pixel(x + 9, y + 14, *self.brown))
pixels.append(Pixel(x + 10, y + 14, *self.brown))
pixels.append(Pixel(x + 0, y + 15, *self.brown))
pixels.append(Pixel(x + 1, y + 15, *self.brown))
pixels.append(Pixel(x + 2, y + 15, *self.brown))
pixels.append(Pixel(x + 3, y + 15, *self.brown))
pixels.append(Pixel(x + 8, y + 15, *self.brown))
pixels.append(Pixel(x + 9, y + 15, *self.brown))
pixels.append(Pixel(x + 10, y + 15, *self.brown))
pixels.append(Pixel(x + 11, y + 15, *self.brown))
# Standing Mario is 12 pixels wide. With 6 as the mid-point
# flip all pixels around the 6 pixel mark to turn him around
if inverse:
left = x
right = left + 12
mid = left + 6
for p in pixels:
if p.x < mid:
distance = mid - p.x
p.x = p.x + distance * 2
elif p.x > mid:
distance = p.x - mid
p.x = p.x - distance * 2
return pixels
# Main function
if __name__ == "__main__":
mario = Mario()
if (not mario.process()):
mario.print_help()
| 43.492669
| 68
| 0.516576
| 6,897
| 44,493
| 3.328984
| 0.018559
| 0.358537
| 0.507927
| 0.537805
| 0.952918
| 0.949303
| 0.949042
| 0.946254
| 0.855836
| 0.851916
| 0
| 0.059015
| 0.300766
| 44,493
| 1,022
| 69
| 43.535225
| 0.678988
| 0.019891
| 0
| 0.761212
| 0
| 0
| 0.000482
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014545
| false
| 0
| 0.003636
| 0.002424
| 0.036364
| 0.001212
| 0
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
02fe017a3f725b1b3bc8c484dca2f4750c8e4d6e
| 1,467
|
py
|
Python
|
action_test.py
|
luchesar/4oBe4e
|
05d3d0dba5198d9d03df0a0728c80fbacfabd0eb
|
[
"MIT"
] | null | null | null |
action_test.py
|
luchesar/4oBe4e
|
05d3d0dba5198d9d03df0a0728c80fbacfabd0eb
|
[
"MIT"
] | null | null | null |
action_test.py
|
luchesar/4oBe4e
|
05d3d0dba5198d9d03df0a0728c80fbacfabd0eb
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# coding: utf-8
from io import StringIO
import pytest # type: ignore
import action
def test_ask_move_invalid_input(monkeypatch):
pawn_number = StringIO(f"\n")
monkeypatch.setattr("sys.stdin", pawn_number)
with pytest.raises(Exception):
assert action.ask_move(1)
pawn_number = StringIO("a_string\n")
monkeypatch.setattr("sys.stdin", pawn_number)
with pytest.raises(Exception):
assert action.ask_move(1)
pawn_number = StringIO(f"-1\n")
monkeypatch.setattr("sys.stdin", pawn_number)
with pytest.raises(Exception):
assert action.ask_move(1)
pawn_number = StringIO(f"1.3\n")
monkeypatch.setattr("sys.stdin", pawn_number)
with pytest.raises(Exception):
assert action.ask_move(1)
pawn_number = StringIO(f"4\n")
monkeypatch.setattr("sys.stdin", pawn_number)
with pytest.raises(Exception):
assert action.ask_move(1)
def test_ask_move_valid_input(monkeypatch):
pawn_number = StringIO("0\n")
monkeypatch.setattr("sys.stdin", pawn_number)
assert action.ask_move(1) == 0
pawn_number = StringIO("1\n")
monkeypatch.setattr("sys.stdin", pawn_number)
assert action.ask_move(1) == 1
pawn_number = StringIO("2\n")
monkeypatch.setattr("sys.stdin", pawn_number)
assert action.ask_move(1) == 2
pawn_number = StringIO("3\n")
monkeypatch.setattr("sys.stdin", pawn_number)
assert action.ask_move(1) == 3
| 26.196429
| 49
| 0.689162
| 204
| 1,467
| 4.779412
| 0.20098
| 0.184615
| 0.166154
| 0.203077
| 0.806154
| 0.73641
| 0.73641
| 0.73641
| 0.733333
| 0.733333
| 0
| 0.019151
| 0.181322
| 1,467
| 55
| 50
| 26.672727
| 0.792673
| 0.03272
| 0
| 0.513514
| 0
| 0
| 0.082627
| 0
| 0
| 0
| 0
| 0
| 0.243243
| 1
| 0.054054
| false
| 0
| 0.081081
| 0
| 0.135135
| 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
|
f309d58c072bb9976853b2db022e83cfe2377dea
| 1,113
|
py
|
Python
|
examples/action_models/AD_Test_all.py
|
pcyoung75/SysMPy
|
2684e28eb8ad63c351e3327591bc2d988480e6a3
|
[
"Apache-2.0"
] | null | null | null |
examples/action_models/AD_Test_all.py
|
pcyoung75/SysMPy
|
2684e28eb8ad63c351e3327591bc2d988480e6a3
|
[
"Apache-2.0"
] | null | null | null |
examples/action_models/AD_Test_all.py
|
pcyoung75/SysMPy
|
2684e28eb8ad63c351e3327591bc2d988480e6a3
|
[
"Apache-2.0"
] | null | null | null |
import examples.action_models.AD2_Start_End_Test_2
import examples.action_models.AD3_And_2Actions_Test
import examples.action_models.AD4_Or_2Actions_Test
import examples.action_models.AD4_XOr_2Actions_Test
import examples.action_models.AD5_And_Actions_Conduit_Test
import examples.action_models.AD5_And_Actions_Items_Test
import examples.action_models.AD5_Item_Flow_Test
import examples.action_models.AD5_Item_Flow_Test_2
import examples.action_models.AD5_Resource_Test
import examples.action_models.AD5_Resource_Test_2
import examples.action_models.AD6_Loop_Test_1
import examples.action_models.AD6_Loop_Test_2
import examples.action_models.AD6_Loop_Test_3
import examples.action_models.AD7_Condition_Test
import examples.action_models.AD7_Condition_Test_2
import examples.action_models.AD7_Condition_Test_3
import examples.action_models.AD7_Condition_Test_4
import examples.action_models.AD8_2And_4Actions_Loop_Test
import examples.action_models.AD8_Or_Test
import examples.action_models.AD9_SubActions_Test
import examples.action_models.AD9_SubActions_Test_3
import examples.action_models.AD10_Loop_Exit_Test
| 46.375
| 58
| 0.920036
| 177
| 1,113
| 5.282486
| 0.20339
| 0.329412
| 0.470588
| 0.611765
| 0.897326
| 0.831016
| 0.758289
| 0.46631
| 0.278075
| 0
| 0
| 0.035581
| 0.040431
| 1,113
| 23
| 59
| 48.391304
| 0.839888
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
b8346ad11b9eb483291092bfa7777a4678f72cc3
| 15,227
|
py
|
Python
|
feature_space_tree/attributes/postfilter_extra.py
|
lopez-monroy/FeatureSpaceTreeOld
|
200a9e35f1251db85a6c83f2e864db2649e531e2
|
[
"Apache-2.0"
] | null | null | null |
feature_space_tree/attributes/postfilter_extra.py
|
lopez-monroy/FeatureSpaceTreeOld
|
200a9e35f1251db85a6c83f2e864db2649e531e2
|
[
"Apache-2.0"
] | null | null | null |
feature_space_tree/attributes/postfilter_extra.py
|
lopez-monroy/FeatureSpaceTreeOld
|
200a9e35f1251db85a6c83f2e864db2649e531e2
|
[
"Apache-2.0"
] | null | null | null |
from postfilter import DecoratorByTokenNormalizer
class NeighboringBigramsFilterDecoratorByTokenNormalizer(DecoratorByTokenNormalizer):
def __init__(self, by_token_normalizer):
super(NeighboringBigramsFilterDecoratorByTokenNormalizer, self).__init__(by_token_normalizer)
def get_list_of_tokens(self):
old_list_of_tokens = self._by_token_normalizer.get_list_of_tokens()
# print old_list_of_tokens
new_list_of_tokens = []
rows = int(old_list_of_tokens[0])
cols = int(old_list_of_tokens[1])
tokens = old_list_of_tokens[2:]
base_mat = []
for i in range(rows):
a = i*cols
b = i*cols + cols
base_mat += [tokens[a:b]]
# print base_mat
if (len(base_mat) != rows) or (len(base_mat[0]) != cols) or (len(base_mat[-1]) != cols):
print "THE MATRIX HAS A STRANGE SIZE!!!, YOU SHOUL CHECK THIS CASE."
for i in range(rows):
for j in range(cols):
v = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
actual = base_mat[i][j]
if ((i-1) >= 0) and ((j-1) >= 0) :
v[0] = base_mat[i-1][j-1]
if (j-1) >= 0:
v[1] = base_mat[i][j-1]
if ((i+1) < rows) and ((j-1) >= 0):
v[2] = base_mat[i+1][j-1]
if ((i+1) < rows):
v[3] = base_mat[i+1][j]
if ((i+1) < rows) and ((j+1) < cols):
v[4] = base_mat[i+1][j+1]
if (j+1) < cols:
v[5] = base_mat[i][j+1]
if ((i-1) >= 0) and ((j+1) < cols):
v[6] = base_mat[i-1][j+1]
if (i-1) >= 0:
v[7] = base_mat[i-1][j]
for v_e in v:
if v_e != "NOT_A_VISUAL_FEATURE":
new_list_of_tokens += [actual + "~" + v_e]
# print new_list_of_tokens
return new_list_of_tokens
class OrientationNeighboringBigramsFilterDecoratorByTokenNormalizer(DecoratorByTokenNormalizer):
def __init__(self, by_token_normalizer):
super(OrientationNeighboringBigramsFilterDecoratorByTokenNormalizer, self).__init__(by_token_normalizer)
def get_list_of_tokens(self):
old_list_of_tokens = self._by_token_normalizer.get_list_of_tokens()
# print old_list_of_tokens
new_list_of_tokens = []
rows = int(old_list_of_tokens[0])
cols = int(old_list_of_tokens[1])
tokens = old_list_of_tokens[2:]
base_mat = []
for i in range(rows):
a = i*cols
b = i*cols + cols
base_mat += [tokens[a:b]]
# print base_mat
if (len(base_mat) != rows) or (len(base_mat[0]) != cols) or (len(base_mat[-1]) != cols):
print "THE MATRIX HAS A STRANGE SIZE!!!, YOU SHOUL CHECK THIS CASE."
for i in range(rows):
for j in range(cols):
v = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
actual = "c" + base_mat[i][j]
if ((i-1) >= 0) and ((j-1) >= 0) :
v[0] = "no" + base_mat[i-1][j-1]
if (j-1) >= 0:
v[1] = "o" + base_mat[i][j-1]
if ((i+1) < rows) and ((j-1) >= 0):
v[2] = "so" + base_mat[i+1][j-1]
if ((i+1) < rows):
v[3] = "s" + base_mat[i+1][j]
if ((i+1) < rows) and ((j+1) < cols):
v[4] = "se" + base_mat[i+1][j+1]
if (j+1) < cols:
v[5] = "e" + base_mat[i][j+1]
if ((i-1) >= 0) and ((j+1) < cols):
v[6] = "ne" + base_mat[i-1][j+1]
if (i-1) >= 0:
v[7] = "n" + base_mat[i-1][j]
for v_e in v:
if v_e != "NOT_A_VISUAL_FEATURE":
new_list_of_tokens += [actual + "~" + v_e]
# print new_list_of_tokens
return new_list_of_tokens
class NeighboringNoOrderBigramsFilterDecoratorByTokenNormalizer(DecoratorByTokenNormalizer):
def __init__(self, by_token_normalizer):
super(NeighboringNoOrderBigramsFilterDecoratorByTokenNormalizer, self).__init__(by_token_normalizer)
def get_list_of_tokens(self):
old_list_of_tokens = self._by_token_normalizer.get_list_of_tokens()
# print old_list_of_tokens
new_list_of_tokens = []
rows = int(old_list_of_tokens[0])
cols = int(old_list_of_tokens[1])
tokens = old_list_of_tokens[2:]
base_mat = []
for i in range(rows):
a = i*cols
b = i*cols + cols
base_mat += [tokens[a:b]]
# print base_mat
if (len(base_mat) != rows) or (len(base_mat[0]) != cols) or (len(base_mat[-1]) != cols):
print "THE MATRIX HAS A STRANGE SIZE!!!, YOU SHOUL CHECK THIS CASE."
for i in range(rows):
for j in range(cols):
v = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
actual = base_mat[i][j]
if ((i-1) >= 0) and ((j-1) >= 0) :
v[0] = base_mat[i-1][j-1]
if (j-1) >= 0:
v[1] = base_mat[i][j-1]
if ((i+1) < rows) and ((j-1) >= 0):
v[2] = base_mat[i+1][j-1]
if ((i+1) < rows):
v[3] = base_mat[i+1][j]
if ((i+1) < rows) and ((j+1) < cols):
v[4] = base_mat[i+1][j+1]
if (j+1) < cols:
v[5] = base_mat[i][j+1]
if ((i-1) >= 0) and ((j+1) < cols):
v[6] = base_mat[i-1][j+1]
if (i-1) >= 0:
v[7] = base_mat[i-1][j]
for v_e in v:
if v_e != "NOT_A_VISUAL_FEATURE":
generated_bigram = ""
if actual <= v_e:
generated_bigram = actual + "~" + v_e
else:
generated_bigram = v_e + "~" + actual
new_list_of_tokens += [generated_bigram]
# print new_list_of_tokens
return new_list_of_tokens
class NeighboringNoOrderTrigramsFilterDecoratorByTokenNormalizer(DecoratorByTokenNormalizer):
def __init__(self, by_token_normalizer):
super(NeighboringNoOrderTrigramsFilterDecoratorByTokenNormalizer, self).__init__(by_token_normalizer)
def get_list_of_tokens(self):
old_list_of_tokens = self._by_token_normalizer.get_list_of_tokens()
# print old_list_of_tokens
new_list_of_tokens = []
rows = int(old_list_of_tokens[0])
cols = int(old_list_of_tokens[1])
tokens = old_list_of_tokens[2:]
base_mat = []
for i in range(rows):
a = i*cols
b = i*cols + cols
base_mat += [tokens[a:b]]
# print base_mat
if (len(base_mat) != rows) or (len(base_mat[0]) != cols) or (len(base_mat[-1]) != cols):
print "THE MATRIX HAS A STRANGE SIZE!!!, YOU SHOUL CHECK THIS CASE."
for i in range(rows):
for j in range(cols):
v = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
v_ext = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
actual = base_mat[i][j]
if ((i-1) >= 0) and ((j-1) >= 0) and ((i-2) >= 0) and ((j-2) >= 0):
v[0] = base_mat[i-1][j-1]
v_ext[0] = base_mat[i-2][j-2]
if ((j-1) >= 0) and ((j-2) >= 0):
v[1] = base_mat[i][j-1]
v_ext[1] = base_mat[i][j-2]
if (((i+1) < rows) and ((j-1) >= 0)) and (((i+2) < rows) and ((j-2) >= 0)):
v[2] = base_mat[i+1][j-1]
v_ext[2] = base_mat[i+2][j-2]
if ((i+1) < rows) and ((i+2) < rows):
v[3] = base_mat[i+1][j]
v_ext[3] = base_mat[i+2][j]
if (((i+1) < rows) and ((j+1) < cols)) and (((i+2) < rows) and ((j+2) < cols)):
v[4] = base_mat[i+1][j+1]
v_ext[4] = base_mat[i+2][j+2]
if ((j+1) < cols) and ((j+2) < cols):
v[5] = base_mat[i][j+1]
v_ext[5] = base_mat[i][j+2]
if (((i-1) >= 0) and ((j+1) < cols)) and (((i-2) >= 0) and ((j+2) < cols)):
v[6] = base_mat[i-1][j+1]
v_ext[6] = base_mat[i-2][j+2]
if ((i-1) >= 0) and ((i-2) >= 0):
v[7] = base_mat[i-1][j]
v_ext[7] = base_mat[i-2][j]
for v_e, v_e_ext in zip(v, v_ext):
if (v_e != "NOT_A_VISUAL_FEATURE") and (v_e_ext != "NOT_A_VISUAL_FEATURE"):
my_seq = [actual, v_e, v_e_ext]
if my_seq[0] <= my_seq[-1]:
my_seq.reverse()
generated_trigram = my_seq[0] + "~" + my_seq[1] + "~" + my_seq[2]
new_list_of_tokens += [generated_trigram]
# print new_list_of_tokens
return new_list_of_tokens
#####
class NeighboringNoOrderTetragramsFilterDecoratorByTokenNormalizer(DecoratorByTokenNormalizer):
def __init__(self, by_token_normalizer):
super(NeighboringNoOrderTetragramsFilterDecoratorByTokenNormalizer, self).__init__(by_token_normalizer)
def get_list_of_tokens(self):
old_list_of_tokens = self._by_token_normalizer.get_list_of_tokens()
# print old_list_of_tokens
new_list_of_tokens = []
rows = int(old_list_of_tokens[0])
cols = int(old_list_of_tokens[1])
tokens = old_list_of_tokens[2:]
base_mat = []
for i in range(rows):
a = i*cols
b = i*cols + cols
base_mat += [tokens[a:b]]
# print base_mat
if (len(base_mat) != rows) or (len(base_mat[0]) != cols) or (len(base_mat[-1]) != cols):
print "THE MATRIX HAS A STRANGE SIZE!!!, YOU SHOUL CHECK THIS CASE."
for i in range(rows):
for j in range(cols):
v = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
v_ext = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
v_ext_2 = ["NOT_A_VISUAL_FEATURE" for e in range(8)]
actual = base_mat[i][j]
if ((i-1) >= 0) and ((j-1) >= 0) and ((i-2) >= 0) and ((j-2) >= 0) and ((i-3) >= 0) and ((j-3) >= 0):
v[0] = base_mat[i-1][j-1]
v_ext[0] = base_mat[i-2][j-2]
v_ext_2[0] = base_mat[i-3][j-3]
if ((j-1) >= 0) and ((j-2) >= 0) and ((j-3) >= 0):
v[1] = base_mat[i][j-1]
v_ext[1] = base_mat[i][j-2]
v_ext_2[1] = base_mat[i][j-3]
if (((i+1) < rows) and ((j-1) >= 0)) and (((i+2) < rows) and ((j-2) >= 0)) and (((i+3) < rows) and ((j-3) >= 0)):
v[2] = base_mat[i+1][j-1]
v_ext[2] = base_mat[i+2][j-2]
v_ext_2[2] = base_mat[i+3][j-3]
if ((i+1) < rows) and ((i+2) < rows) and ((i+3) < rows):
v[3] = base_mat[i+1][j]
v_ext[3] = base_mat[i+2][j]
v_ext_2[3] = base_mat[i+3][j]
if (((i+1) < rows) and ((j+1) < cols)) and (((i+2) < rows) and ((j+2) < cols)) and (((i+3) < rows) and ((j+3) < cols)):
v[4] = base_mat[i+1][j+1]
v_ext[4] = base_mat[i+2][j+2]
v_ext_2[4] = base_mat[i+3][j+3]
if ((j+1) < cols) and ((j+2) < cols) and ((j+3) < cols):
v[5] = base_mat[i][j+1]
v_ext[5] = base_mat[i][j+2]
v_ext_2[5] = base_mat[i][j+3]
if (((i-1) >= 0) and ((j+1) < cols)) and (((i-2) >= 0) and ((j+2) < cols)) and (((i-3) >= 0) and ((j+3) < cols)):
v[6] = base_mat[i-1][j+1]
v_ext[6] = base_mat[i-2][j+2]
v_ext_2[6] = base_mat[i-3][j+3]
if ((i-1) >= 0) and ((i-2) >= 0) and ((i-3) >= 0):
v[7] = base_mat[i-1][j]
v_ext[7] = base_mat[i-2][j]
v_ext_2[7] = base_mat[i-3][j]
for v_e, v_e_ext, v_e_ext_2 in zip(v, v_ext, v_ext_2):
if (v_e != "NOT_A_VISUAL_FEATURE") and (v_e_ext != "NOT_A_VISUAL_FEATURE") and (v_e_ext_2 != "NOT_A_VISUAL_FEATURE"):
my_seq = [actual, v_e, v_e_ext, v_e_ext_2]
if my_seq[0] <= my_seq[-1]:
my_seq.reverse()
generated_tetragram = my_seq[0] + "~" + my_seq[1] + "~" + my_seq[2] + "~" + my_seq[3]
new_list_of_tokens += [generated_tetragram]
# print new_list_of_tokens
return new_list_of_tokens
#####
| 39.448187
| 138
| 0.403888
| 1,906
| 15,227
| 2.970619
| 0.044071
| 0.122395
| 0.097492
| 0.047686
| 0.864359
| 0.843165
| 0.841575
| 0.829742
| 0.7568
| 0.730131
| 0
| 0.044278
| 0.46457
| 15,227
| 386
| 139
| 39.448187
| 0.65019
| 0.021278
| 0
| 0.746888
| 0
| 0
| 0.043151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.004149
| null | null | 0.020747
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b868203b1c54f4260ffbdb8599980e3069fda7bf
| 17,098
|
py
|
Python
|
tests/trestle/tasks/tanium_to_oscal_test.py
|
CyberFlameGO/compliance-trestle
|
aeae771e0e90c7c69ef914ca02d4857ed6f50222
|
[
"Apache-2.0"
] | 1
|
2022-01-07T01:11:03.000Z
|
2022-01-07T01:11:03.000Z
|
tests/trestle/tasks/tanium_to_oscal_test.py
|
CyberFlameGO/compliance-trestle
|
aeae771e0e90c7c69ef914ca02d4857ed6f50222
|
[
"Apache-2.0"
] | null | null | null |
tests/trestle/tasks/tanium_to_oscal_test.py
|
CyberFlameGO/compliance-trestle
|
aeae771e0e90c7c69ef914ca02d4857ed6f50222
|
[
"Apache-2.0"
] | null | null | null |
# -*- mode:python; coding:utf-8 -*-
# Copyright (c) 2020 IBM Corp. 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
#
# https://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.
"""Tanium to OSCAL task tests."""
import configparser
import os
import pathlib
from _pytest.monkeypatch import MonkeyPatch
import trestle.core.const as const
import trestle.tasks.tanium_to_oscal as tanium_to_oscal
import trestle.transforms.implementations.tanium as tanium
from trestle.tasks.base_task import TaskOutcome
class MonkeyBusiness():
"""Monkey business."""
def __init__(self):
"""Initialize context."""
self._seed_component = 25529320
self._seed_inventory = 36618780
self._seed_observation = 47732990
self._seed_result = 18847350
self._seed_result2 = 51169030
def uuid_component(self):
"""Monkey the creation of uuid for component."""
self._seed_component += 1
return str(self._seed_component) + '-71b1-46f6-b2f0-edc34a977809'
def uuid_inventory(self):
"""Monkey the creation of uuid for inventory."""
self._seed_inventory += 1
return str(self._seed_inventory) + '-0f02-40f3-adb7-f1d5cbf15150'
def uuid_observation(self):
"""Monkey the creation of uuid for observation."""
self._seed_observation += 1
return str(self._seed_observation) + '-5c28-45ba-8f0f-9d8c7f51c46e'
def uuid_result(self):
"""Monkey the creation of uuid for result."""
self._seed_result += 1
return str(self._seed_result) + '-8012-434e-801b-19e6ba3cdc0e'
def uuid_result2(self):
"""Monkey the creation of uuid for result, alternate."""
self._seed_result2 += 1
return str(self._seed_result2) + '-ca25-4eec-8152-506286489d9a'
def test_tanium_print_info(tmp_path):
"""Test print_info call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.print_info()
assert retval is None
def test_tanium_simulate(tmp_path):
"""Test simulate call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.simulate()
assert retval == TaskOutcome.SIM_SUCCESS
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_simulate_no_config(tmp_path):
"""Test simulate no config call."""
tgt = tanium_to_oscal.TaniumToOscal(None)
retval = tgt.simulate()
assert retval == TaskOutcome.SIM_FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_simulate_no_overwrite(tmp_path):
"""Test simulate no overwrite call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
assert len(os.listdir(str(tmp_path))) == 1
section['output-overwrite'] = 'false'
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.simulate()
assert retval == TaskOutcome.SIM_FAILURE
assert len(os.listdir(str(tmp_path))) == 1
def test_tanium_simulate_no_input_dir(tmp_path):
"""Test simulate with no input dir call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
config.remove_option('task.tanium-to-oscal', 'input-dir')
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.simulate()
assert retval == TaskOutcome.SIM_FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_simulate_no_ouput_dir(tmp_path):
"""Test simulate with no output dir call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
config.remove_option('task.tanium-to-oscal', 'output-dir')
section = config['task.tanium-to-oscal']
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.simulate()
assert retval == TaskOutcome.SIM_FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_simulate_bad_input_file(tmp_path):
"""Test simulate with bad input file call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
config.remove_option('task.tanium-to-oscal', 'input-dir')
config.set('task.tanium-to-oscal', 'input-dir', 'tests/data/tasks/tanium/input-bad')
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.simulate()
assert retval == TaskOutcome.SIM_FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_execute(tmp_path, monkeypatch: MonkeyPatch):
"""Test execute call."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
tanium.TaniumTransformer.set_timestamp('2021-02-24T19:31:13+00:00')
assert tanium.TaniumTransformer.get_timestamp() == '2021-02-24T19:31:13+00:00'
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
section['cpus-max'] = '1'
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
assert len(os.listdir(str(tmp_path))) == 1
f_expected = pathlib.Path('tests/data/tasks/tanium/output/') / 'Tanium.oscal.json'
f_produced = tmp_path / 'Tanium.oscal.json'
assert list(open(f_produced, encoding=const.FILE_ENCODING)) == list(open(f_expected, encoding=const.FILE_ENCODING))
def test_tanium_execute_checking(tmp_path, monkeypatch: MonkeyPatch):
"""Test execute call."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
tanium.TaniumTransformer.set_timestamp('2021-02-24T19:31:13+00:00')
assert tanium.TaniumTransformer.get_timestamp() == '2021-02-24T19:31:13+00:00'
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
section['cpus-max'] = '1'
section['checking'] = 'true'
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
assert len(os.listdir(str(tmp_path))) == 1
f_expected = pathlib.Path('tests/data/tasks/tanium/output/') / 'Tanium.oscal.json'
f_produced = tmp_path / 'Tanium.oscal.json'
assert list(open(f_produced, encoding=const.FILE_ENCODING)) == list(open(f_expected, encoding=const.FILE_ENCODING))
def test_tanium_execute_one_file(tmp_path, monkeypatch: MonkeyPatch):
"""Test execute call."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
tanium.TaniumTransformer.set_timestamp('2021-02-24T19:31:13+00:00')
assert tanium.TaniumTransformer.get_timestamp() == '2021-02-24T19:31:13+00:00'
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
assert len(os.listdir(str(tmp_path))) == 1
def test_tanium_execute_blocksize(tmp_path, monkeypatch: MonkeyPatch):
"""Test execute optional call."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
section['blocksize'] = '0'
section['cpus-max'] = '0'
section['cpus-min'] = '0'
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
def test_tanium_execute_cpus(tmp_path, monkeypatch: MonkeyPatch):
"""Test execute optional call."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
# set values for number of CPUs to unattainable numbers forcing code to chose reasonable ones.
section['cpus-max'] = '1000000'
section['cpus-min'] = '2000000'
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
def test_tanium_execute_no_config(tmp_path):
"""Test execute no config call."""
tgt = tanium_to_oscal.TaniumToOscal(None)
retval = tgt.execute()
assert retval == TaskOutcome.FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_execute_no_overwrite_dir(tmp_path, monkeypatch: MonkeyPatch):
"""Test execute no overwrite directory call."""
tanium.TaniumTransformer.set_timestamp('2021-02-24T19:31:13+00:00')
execute_no_overwrite_dir_part1(tmp_path, monkeypatch)
execute_no_overwrite_dir_part2(tmp_path, monkeypatch)
f_expected = pathlib.Path('tests/data/tasks/tanium/output/') / 'Tanium.oscal.json'
f_produced = tmp_path / 'Tanium.oscal.json'
assert list(open(f_produced, encoding=const.FILE_ENCODING)) == list(open(f_expected, encoding=const.FILE_ENCODING))
def execute_no_overwrite_dir_part1(tmp_path, monkeypatch: MonkeyPatch):
"""Create expected output."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
section['cpus-max'] = '1'
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
assert len(os.listdir(str(tmp_path))) == 1
def execute_no_overwrite_dir_part2(tmp_path, monkeypatch: MonkeyPatch):
"""Attempt to overwrite."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-overwrite'] = 'false'
section['output-dir'] = str(tmp_path)
section['cpus-max'] = '1'
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.FAILURE
def test_tanium_execute_no_input_dir(tmp_path):
"""Test execute with no input dir call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
config.remove_option('task.tanium-to-oscal', 'input-dir')
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_execute_no_ouput_dir(tmp_path):
"""Test execute with no output dir call."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
config.remove_option('task.tanium-to-oscal', 'output-dir')
section = config['task.tanium-to-oscal']
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_execute_bad_timestamp(tmp_path):
"""Test execute with bad timestamp."""
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['timestamp'] = str('bogus')
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.FAILURE
assert len(os.listdir(str(tmp_path))) == 0
def test_tanium_execute_override_timestamp(tmp_path, monkeypatch: MonkeyPatch):
"""Test execute override timestamp call."""
monkeybusiness = MonkeyBusiness()
monkeypatch.setattr(tanium, '_uuid_component', monkeybusiness.uuid_component)
monkeypatch.setattr(tanium, '_uuid_inventory', monkeybusiness.uuid_inventory)
monkeypatch.setattr(tanium, '_uuid_observation', monkeybusiness.uuid_observation)
monkeypatch.setattr(tanium, '_uuid_result', monkeybusiness.uuid_result)
tanium.TaniumTransformer.set_timestamp('2020-02-24T19:31:13+00:00')
assert tanium.TaniumTransformer.get_timestamp() == '2020-02-24T19:31:13+00:00'
config = configparser.ConfigParser()
config_path = pathlib.Path('tests/data/tasks/tanium/demo-tanium-to-oscal.config')
config.read(config_path)
section = config['task.tanium-to-oscal']
section['output-dir'] = str(tmp_path)
section['cpus-max'] = '1'
tgt = tanium_to_oscal.TaniumToOscal(section)
retval = tgt.execute()
assert retval == TaskOutcome.SUCCESS
assert len(os.listdir(str(tmp_path))) == 1
f_expected = pathlib.Path('tests/data/tasks/tanium/output/') / 'Tanium.oscal.2020.json'
f_produced = tmp_path / 'Tanium.oscal.json'
assert list(open(f_produced, encoding=const.FILE_ENCODING)) == list(open(f_expected, encoding=const.FILE_ENCODING))
| 44.180879
| 119
| 0.730436
| 2,158
| 17,098
| 5.600093
| 0.099166
| 0.041705
| 0.06777
| 0.074142
| 0.845511
| 0.826645
| 0.81597
| 0.801407
| 0.779644
| 0.779644
| 0
| 0.023354
| 0.143526
| 17,098
| 386
| 120
| 44.295337
| 0.801898
| 0.092701
| 0
| 0.773973
| 0
| 0
| 0.184855
| 0.091874
| 0
| 0
| 0
| 0
| 0.150685
| 1
| 0.089041
| false
| 0
| 0.027397
| 0
| 0.136986
| 0.006849
| 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
|
b89f2b04b0e903da87c0d453b376ac6f47ef28a9
| 14,245
|
py
|
Python
|
tests/unit/test_pyext.py
|
mballance/pyastgen
|
08f85da180fefd9c602ef911a8c225c11f5dd4a0
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_pyext.py
|
mballance/pyastgen
|
08f85da180fefd9c602ef911a8c225c11f5dd4a0
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_pyext.py
|
mballance/pyastgen
|
08f85da180fefd9c602ef911a8c225c11f5dd4a0
|
[
"Apache-2.0"
] | null | null | null |
'''
Created on Mar 21, 2021
@author: mballance
'''
from unittest.case import TestCase
from unit.base_test import BaseTest
import io
from astbuilder.pyext_gen_pxd import PyExtGenPxd
from astbuilder.outstream import OutStream
from astbuilder.gen_cpp import GenCPP
from astbuilder.pyext_gen import PyExtGen
import os
import subprocess
import sys
import shutil
class TestPyExt(BaseTest):
def test_smoke(self):
doc = """
classes:
- C1:
- data:
- f1 : int32_t
- f2 : bool
- C2:
- super: C1
- data:
- f3: string
- f4: int32_t
- children: list<UP<C1>>
"""
setup_py = """
import os
import sys
from setuptools import Extension, setup
from Cython.Build import cythonize
setup_dir=os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(setup_dir, "ext"))
import ast_ext
VERSION="0.0.1"
PLATFORMS = "Any"
ext = ast_ext.ext()
for e in dir(ext):
print("e: " + str(e))
ast_dir=os.path.join(setup_dir, 'ast')
ext.include_dirs.append(ast_dir)
ext.include_dirs.append(os.path.join(ast_dir, 'include'))
ext.include_dirs.append(os.path.join(ast_dir, 'include', 'impl'))
for f in os.listdir(ast_dir):
file = os.path.join(ast_dir, f)
if os.path.isfile(file) and os.path.splitext(f)[1] == ".cpp":
print("Add: " + file)
ext.sources.append(file)
extensions = [ext]
setup(
name="libvsc",
version="0.0.1",
ext_modules=cythonize(extensions)
)
"""
print("Test: " + self._testMethodName + " " + self.id())
ast = self.loadAst(doc)
astdir = os.path.join(self.testdir, "ast")
os.makedirs(astdir)
name = "testast"
GenCPP(astdir, name, None, None).generate(ast)
extdir = os.path.join(self.testdir, "ext")
os.makedirs(extdir)
PyExtGen(extdir, "ast", "test.ast", None, None).generate(ast)
with open(os.path.join(self.testdir, "setup.py"), "w") as f:
f.write(setup_py)
if not os.path.isdir(os.path.join(self.testdir, "test")):
os.makedirs(os.path.join(self.testdir, "test"))
with open(os.path.join(self.testdir, "test", "__init__.py"), "w") as fp:
fp.write("\n")
shutil.copy(
os.path.join(self.testdir, "ext", "ast_decl.pxd"),
os.path.join(self.testdir, "test", "ast_decl.pxd"))
shutil.copy(
os.path.join(self.testdir, "ext", "ast.pxd"),
os.path.join(self.testdir, "test", "ast.pxd"))
ret = subprocess.call(
[sys.executable, "setup.py", "build_ext", "--inplace"],
cwd=self.testdir
)
self.assertEqual(ret, 0)
# Load just-compiled extension
sys.path.insert(0, self.testdir)
import test
from test import ast as testast
for e in dir(testast):
print("e: " + str(e))
c2_i = testast.C2.create(1, False, "abc".encode(), 4)
for e in dir(c2_i):
print("e: " + str(e))
print("f3=" + c2_i.get_f3().decode())
self.assertEqual(c2_i.get_f3().decode(), "abc")
class MyVisitor(testast.BaseVisitor):
def __init__(self):
super().__init__()
def visitc1(self, i):
print("visitc1")
def visitc2(self, i):
print("--> visitc2")
super().visitc2(i)
print("<-- visitc2")
v = MyVisitor()
for i in range(1000):
c2_i.accept(v)
def test_smoke_ns1(self):
doc = """
classes:
- C1:
- data:
- f1 : int32_t
- f2 : bool
- C2:
- super: C1
- data:
- f3: string
- f4: int32_t
- children: list<UP<C1>>
"""
setup_py = """
import os
import sys
from setuptools import Extension, setup
from Cython.Build import cythonize
setup_dir=os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(setup_dir, "ext"))
import ast_ext
VERSION="0.0.1"
PLATFORMS = "Any"
ext = ast_ext.ext()
for e in dir(ext):
print("e: " + str(e))
ast_dir=os.path.join(setup_dir, 'ast')
ext.include_dirs.append(ast_dir)
ext.include_dirs.append(os.path.join(ast_dir, 'include'))
ext.include_dirs.append(os.path.join(ast_dir, 'include', 'impl'))
for f in os.listdir(ast_dir):
file = os.path.join(ast_dir, f)
if os.path.isfile(file) and os.path.splitext(f)[1] == ".cpp":
print("Add: " + file)
ext.sources.append(file)
extensions = [ext]
setup(
name="libvsc",
version="0.0.1",
ext_modules=cythonize(extensions)
)
"""
print("Test: " + self._testMethodName + " " + self.id())
ast = self.loadAst(doc)
astdir = os.path.join(self.testdir, "ast")
os.makedirs(astdir)
name = "testast"
GenCPP(astdir, name, None, "ns1").generate(ast)
extdir = os.path.join(self.testdir, "ext")
os.makedirs(extdir)
PyExtGen(extdir, "ast", "test.ast", None, "ns1").generate(ast)
with open(os.path.join(self.testdir, "setup.py"), "w") as f:
f.write(setup_py)
if not os.path.isdir(os.path.join(self.testdir, "test")):
os.makedirs(os.path.join(self.testdir, "test"))
with open(os.path.join(self.testdir, "test", "__init__.py"), "w") as fp:
fp.write("\n")
shutil.copy(
os.path.join(self.testdir, "ext", "ast_decl.pxd"),
os.path.join(self.testdir, "test", "ast_decl.pxd"))
shutil.copy(
os.path.join(self.testdir, "ext", "ast.pxd"),
os.path.join(self.testdir, "test", "ast.pxd"))
ret = subprocess.call(
[sys.executable, "setup.py", "build_ext", "--inplace"],
cwd=self.testdir
)
self.assertEqual(ret, 0)
# Load just-compiled extension
sys.path.insert(0, self.testdir)
import test
from test import ast as testast
for e in dir(testast):
print("e: " + str(e))
c2_i = testast.C2.create(1, False, "abc".encode(), 4)
for e in dir(c2_i):
print("e: " + str(e))
print("f3=" + c2_i.get_f3().decode())
self.assertEqual(c2_i.get_f3().decode(), "abc")
class MyVisitor(testast.BaseVisitor):
def __init__(self):
super().__init__()
def visitc1(self, i):
print("visitc1")
def visitc2(self, i):
print("--> visitc2")
super().visitc2(i)
print("<-- visitc2")
v = MyVisitor()
for i in range(1000):
c2_i.accept(v)
def test_smoke_ns2(self):
doc = """
classes:
- C1:
- data:
- f1 : int32_t
- f2 : bool
- C2:
- super: C1
- data:
- f3: string
- f4: int32_t
- children: list<UP<C1>>
"""
setup_py = """
import os
import sys
from setuptools import Extension, setup
from Cython.Build import cythonize
setup_dir=os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(setup_dir, "ext"))
import ast_ext
VERSION="0.0.1"
PLATFORMS = "Any"
ext = ast_ext.ext()
for e in dir(ext):
print("e: " + str(e))
ast_dir=os.path.join(setup_dir, 'ast')
ext.include_dirs.append(ast_dir)
ext.include_dirs.append(os.path.join(ast_dir, 'include'))
ext.include_dirs.append(os.path.join(ast_dir, 'include', 'impl'))
for f in os.listdir(ast_dir):
file = os.path.join(ast_dir, f)
if os.path.isfile(file) and os.path.splitext(f)[1] == ".cpp":
print("Add: " + file)
ext.sources.append(file)
extensions = [ext]
setup(
name="libvsc",
version="0.0.1",
ext_modules=cythonize(extensions)
)
"""
print("Test: " + self._testMethodName + " " + self.id())
ast = self.loadAst(doc)
astdir = os.path.join(self.testdir, "ast")
os.makedirs(astdir)
name = "testast"
GenCPP(astdir, name, None, "ns1::ns2").generate(ast)
extdir = os.path.join(self.testdir, "ext")
os.makedirs(extdir)
PyExtGen(extdir, "ast", "test.ast", None, "ns1::ns2").generate(ast)
with open(os.path.join(self.testdir, "setup.py"), "w") as f:
f.write(setup_py)
if not os.path.isdir(os.path.join(self.testdir, "test")):
os.makedirs(os.path.join(self.testdir, "test"))
with open(os.path.join(self.testdir, "test", "__init__.py"), "w") as fp:
fp.write("\n")
shutil.copy(
os.path.join(self.testdir, "ext", "ast_decl.pxd"),
os.path.join(self.testdir, "test", "ast_decl.pxd"))
shutil.copy(
os.path.join(self.testdir, "ext", "ast.pxd"),
os.path.join(self.testdir, "test", "ast.pxd"))
ret = subprocess.call(
[sys.executable, "setup.py", "build_ext", "--inplace"],
cwd=self.testdir
)
self.assertEqual(ret, 0)
# Load just-compiled extension
sys.path.insert(0, self.testdir)
import test
from test import ast as testast
for e in dir(testast):
print("e: " + str(e))
c2_i = testast.C2.create(1, False, "abc".encode(), 4)
for e in dir(c2_i):
print("e: " + str(e))
print("f3=" + c2_i.get_f3().decode())
self.assertEqual(c2_i.get_f3().decode(), "abc")
class MyVisitor(testast.BaseVisitor):
def __init__(self):
super().__init__()
def visitc1(self, i):
print("visitc1")
def visitc2(self, i):
print("--> visitc2")
super().visitc2(i)
print("<-- visitc2")
v = MyVisitor()
for i in range(1000):
c2_i.accept(v)
def test_smoke_enum_ns1(self):
doc = """
enums:
- E1:
- V1
- V2
classes:
- C1:
- data:
- f1 : int32_t
- f2 : bool
- f3 : E1
- C2:
- super: C1
- data:
- f4: string
- f5: int32_t
- children: list<UP<C1>>
"""
setup_py = """
import os
import sys
from setuptools import Extension, setup
from Cython.Build import cythonize
setup_dir=os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(setup_dir, "ext"))
import ast_ext
VERSION="0.0.1"
PLATFORMS = "Any"
ext = ast_ext.ext()
for e in dir(ext):
print("e: " + str(e))
ast_dir=os.path.join(setup_dir, 'ast')
ext.include_dirs.append(ast_dir)
ext.include_dirs.append(os.path.join(ast_dir, 'include'))
ext.include_dirs.append(os.path.join(ast_dir, 'include', 'impl'))
for f in os.listdir(ast_dir):
file = os.path.join(ast_dir, f)
if os.path.isfile(file) and os.path.splitext(f)[1] == ".cpp":
print("Add: " + file)
ext.sources.append(file)
extensions = [ext]
setup(
name="libvsc",
version="0.0.1",
ext_modules=cythonize(extensions)
)
"""
print("Test: " + self._testMethodName + " " + self.id())
ast = self.loadAst(doc)
astdir = os.path.join(self.testdir, "ast")
os.makedirs(astdir)
name = "testast"
GenCPP(astdir, name, None, "ns1").generate(ast)
extdir = os.path.join(self.testdir, "ext")
os.makedirs(extdir)
PyExtGen(extdir, "ast", "test.ast", None, "ns1").generate(ast)
with open(os.path.join(self.testdir, "setup.py"), "w") as f:
f.write(setup_py)
if not os.path.isdir(os.path.join(self.testdir, "test")):
os.makedirs(os.path.join(self.testdir, "test"))
with open(os.path.join(self.testdir, "test", "__init__.py"), "w") as fp:
fp.write("\n")
shutil.copy(
os.path.join(self.testdir, "ext", "ast_decl.pxd"),
os.path.join(self.testdir, "test", "ast_decl.pxd"))
shutil.copy(
os.path.join(self.testdir, "ext", "ast.pxd"),
os.path.join(self.testdir, "test", "ast.pxd"))
ret = subprocess.call(
[sys.executable, "setup.py", "build_ext", "--inplace"],
cwd=self.testdir
)
self.assertEqual(ret, 0)
# Load just-compiled extension
sys.path.insert(0, self.testdir)
import test
from test import ast as testast
for e in dir(testast):
print("e: " + str(e))
c2_i = testast.C2.create(1, False, "abc".encode(), 4)
for e in dir(c2_i):
print("e: " + str(e))
print("f3=" + c2_i.get_f3().decode())
self.assertEqual(c2_i.get_f3().decode(), "abc")
class MyVisitor(testast.BaseVisitor):
def __init__(self):
super().__init__()
def visitc1(self, i):
print("visitc1")
def visitc2(self, i):
print("--> visitc2")
super().visitc2(i)
print("<-- visitc2")
v = MyVisitor()
for i in range(1000):
c2_i.accept(v)
| 27.986248
| 84
| 0.509161
| 1,735
| 14,245
| 4.066859
| 0.085879
| 0.068027
| 0.085034
| 0.079365
| 0.944161
| 0.943311
| 0.943311
| 0.943311
| 0.939484
| 0.939484
| 0
| 0.020758
| 0.34391
| 14,245
| 509
| 85
| 27.986248
| 0.734218
| 0.012917
| 0
| 0.913386
| 0
| 0.010499
| 0.378908
| 0.093427
| 0
| 0
| 0
| 0
| 0.020997
| 1
| 0.041995
| false
| 0
| 0.102362
| 0
| 0.15748
| 0.094488
| 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
|
b21c683c835630da23fa8c6f25c09e2a0128940c
| 422
|
py
|
Python
|
bench/test_primitives.py
|
JarnoRFB/cattrs
|
dc38160b5f28579522fe3b6ca34d995c75209e48
|
[
"MIT"
] | 364
|
2016-09-10T16:09:23.000Z
|
2021-10-20T03:26:06.000Z
|
bench/test_primitives.py
|
JarnoRFB/cattrs
|
dc38160b5f28579522fe3b6ca34d995c75209e48
|
[
"MIT"
] | 167
|
2016-09-22T08:45:12.000Z
|
2021-10-21T13:34:35.000Z
|
bench/test_primitives.py
|
JarnoRFB/cattrs
|
dc38160b5f28579522fe3b6ca34d995c75209e48
|
[
"MIT"
] | 65
|
2016-12-31T11:21:59.000Z
|
2021-09-29T10:07:38.000Z
|
import pytest
from cattr import Converter, GenConverter
@pytest.mark.parametrize("converter_cls", [Converter, GenConverter])
def test_unstructure_int(benchmark, converter_cls):
c = converter_cls()
benchmark(c.unstructure, 5)
@pytest.mark.parametrize("converter_cls", [Converter, GenConverter])
def test_unstructure_float(benchmark, converter_cls):
c = converter_cls()
benchmark(c.unstructure, 15.0)
| 23.444444
| 68
| 0.767773
| 50
| 422
| 6.28
| 0.38
| 0.229299
| 0.133758
| 0.191083
| 0.808917
| 0.808917
| 0.808917
| 0.808917
| 0.808917
| 0.458599
| 0
| 0.010811
| 0.123223
| 422
| 17
| 69
| 24.823529
| 0.837838
| 0
| 0
| 0.4
| 0
| 0
| 0.061611
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b24d20304a8eec77b551bca53d01feda21ab8a45
| 5,775
|
py
|
Python
|
tools/Buhlmann.py
|
albertofabrizio/Buhlmann
|
b99ac45a218f53808bea8cb534889c7e1488af50
|
[
"MIT"
] | null | null | null |
tools/Buhlmann.py
|
albertofabrizio/Buhlmann
|
b99ac45a218f53808bea8cb534889c7e1488af50
|
[
"MIT"
] | null | null | null |
tools/Buhlmann.py
|
albertofabrizio/Buhlmann
|
b99ac45a218f53808bea8cb534889c7e1488af50
|
[
"MIT"
] | 1
|
2021-11-08T04:34:46.000Z
|
2021-11-08T04:34:46.000Z
|
import numpy as np
def ZHL16c():
''' Paramters of the Buhlmann ZHL-16c algorithm for N2 and He '''
algo = np.array([
[4.0000e+00, 1.5100e+00, 1.2599e+00, 5.0500e-01, 1.6189e+00, 4.2450e-01],
[8.0000e+00, 3.0200e+00, 1.0000e+00, 6.5140e-01, 1.3830e+00, 5.7470e-01],
[1.2500e+01, 4.7200e+00, 8.6180e-01, 7.2220e-01, 1.1919e+00, 6.5270e-01],
[1.8500e+01, 6.9900e+00, 7.5620e-01, 7.8250e-01, 1.0458e+00, 7.2230e-01],
[2.7000e+01, 1.0210e+01, 6.2000e-01, 8.1260e-01, 9.2200e-01, 7.5820e-01],
[3.8300e+01, 1.4480e+01, 5.0430e-01, 8.4340e-01, 8.2050e-01, 7.9570e-01],
[5.4300e+01, 2.0530e+01, 4.4100e-01, 8.6930e-01, 7.3050e-01, 8.2790e-01],
[7.7000e+01, 2.9110e+01, 4.0000e-01, 8.9100e-01, 6.5020e-01, 8.5530e-01],
[1.0900e+02, 4.1200e+01, 3.7500e-01, 9.0920e-01, 5.9500e-01, 8.7570e-01],
[1.4600e+02, 5.5190e+01, 3.5000e-01, 9.2220e-01, 5.5450e-01, 8.9030e-01],
[1.8700e+02, 7.0690e+01, 3.2950e-01, 9.3190e-01, 5.3330e-01, 8.9970e-01],
[2.3900e+02, 9.0340e+01, 3.0650e-01, 9.4030e-01, 5.1890e-01, 9.0730e-01],
[3.0500e+02, 1.1529e+02, 2.8350e-01, 9.4770e-01, 5.1810e-01, 9.1220e-01],
[3.9000e+02, 1.4742e+02, 2.6100e-01, 9.5440e-01, 5.1760e-01, 9.1710e-01],
[4.9800e+02, 1.8824e+02, 2.4800e-01, 9.6020e-01, 5.1720e-01, 9.2170e-01],
[6.3500e+02, 2.4003e+02, 2.3270e-01, 9.6530e-01, 5.1190e-01, 9.2670e-01]])
return algo
def ZHL16c_1b():
''' Paramters of the Buhlmann ZHL-16c algorithm for N2 and He '''
algo = np.array([
[5.0000e+00, 1.8800e+00, 1.1696e+00, 5.5780e-01, 1.6189e+00, 4.7700e-01],
[8.0000e+00, 3.0200e+00, 1.0000e+00, 6.5140e-01, 1.3830e+00, 5.7470e-01],
[1.2500e+01, 4.7200e+00, 8.6180e-01, 7.2220e-01, 1.1919e+00, 6.5270e-01],
[1.8500e+01, 6.9900e+00, 7.5620e-01, 7.8250e-01, 1.0458e+00, 7.2230e-01],
[2.7000e+01, 1.0210e+01, 6.2000e-01, 8.1260e-01, 9.2200e-01, 7.5820e-01],
[3.8300e+01, 1.4480e+01, 5.0430e-01, 8.4340e-01, 8.2050e-01, 7.9570e-01],
[5.4300e+01, 2.0530e+01, 4.4100e-01, 8.6930e-01, 7.3050e-01, 8.2790e-01],
[7.7000e+01, 2.9110e+01, 4.0000e-01, 8.9100e-01, 6.5020e-01, 8.5530e-01],
[1.0900e+02, 4.1200e+01, 3.7500e-01, 9.0920e-01, 5.9500e-01, 8.7570e-01],
[1.4600e+02, 5.5190e+01, 3.5000e-01, 9.2220e-01, 5.5450e-01, 8.9030e-01],
[1.8700e+02, 7.0690e+01, 3.2950e-01, 9.3190e-01, 5.3330e-01, 8.9970e-01],
[2.3900e+02, 9.0340e+01, 3.0650e-01, 9.4030e-01, 5.1890e-01, 9.0730e-01],
[3.0500e+02, 1.1529e+02, 2.8350e-01, 9.4770e-01, 5.1810e-01, 9.1220e-01],
[3.9000e+02, 1.4742e+02, 2.6100e-01, 9.5440e-01, 5.1760e-01, 9.1710e-01],
[4.9800e+02, 1.8824e+02, 2.4800e-01, 9.6020e-01, 5.1720e-01, 9.2170e-01],
[6.3500e+02, 2.4003e+02, 2.3270e-01, 9.6530e-01, 5.1190e-01, 9.2670e-01]])
return algo
def ZHL16a():
''' Paramters of the Buhlmann ZHL-16a algorithm for N2 and He '''
algo = np.array([
[5.0000e+00, 1.8800e+00, 1.1696e+00, 5.5780e-01, 1.6189e+00, 4.7700e-01],
[8.0000e+00, 3.0200e+00, 1.0000e+00, 6.5140e-01, 1.3830e+00, 5.7470e-01],
[1.2500e+01, 4.7200e+00, 8.6180e-01, 7.2220e-01, 1.1919e+00, 6.5270e-01],
[1.8500e+01, 6.9900e+00, 7.5620e-01, 7.8250e-01, 1.0458e+00, 7.2230e-01],
[2.7000e+01, 1.0210e+01, 6.6670e-01, 8.1260e-01, 9.2200e-01, 7.5820e-01],
[3.8300e+01, 1.4480e+01, 5.9330e-01, 8.4340e-01, 8.2050e-01, 7.9570e-01],
[5.4300e+01, 2.0530e+01, 5.2820e-01, 8.6930e-01, 7.3050e-01, 8.2790e-01],
[7.7000e+01, 2.9110e+01, 4.7100e-01, 8.9100e-01, 6.5020e-01, 8.5530e-01],
[1.0900e+02, 4.1200e+01, 4.1870e-01, 9.0920e-01, 5.9500e-01, 8.7570e-01],
[1.4600e+02, 5.5190e+01, 3.7980e-01, 9.2220e-01, 5.5450e-01, 8.9030e-01],
[1.8700e+02, 7.0690e+01, 3.4970e-01, 9.3190e-01, 5.3330e-01, 8.9970e-01],
[2.3900e+02, 9.0340e+01, 3.2230e-01, 9.4030e-01, 5.1890e-01, 9.0730e-01],
[3.0500e+02, 1.1529e+02, 2.9710e-01, 9.4770e-01, 5.1810e-01, 9.1220e-01],
[3.9000e+02, 1.4742e+02, 2.7370e-01, 9.5440e-01, 5.1760e-01, 9.1710e-01],
[4.9800e+02, 1.8824e+02, 2.5230e-01, 9.6020e-01, 5.1720e-01, 9.2170e-01],
[6.3500e+02, 2.4003e+02, 2.3270e-01, 9.6530e-01, 5.1190e-01, 9.2670e-01]])
return algo
def ZHL16b():
''' Paramters of the Buhlmann ZHL-16b algorithm for N2 and He '''
algo = np.array([
[5.0000e+00, 1.8800e+00, 1.1696e+00, 5.5780e-01, 1.6189e+00, 4.7700e-01],
[8.0000e+00, 3.0200e+00, 1.0000e+00, 6.5140e-01, 1.3830e+00, 5.7470e-01],
[1.2500e+01, 4.7200e+00, 8.6180e-01, 7.2220e-01, 1.1919e+00, 6.5270e-01],
[1.8500e+01, 6.9900e+00, 7.5620e-01, 7.8250e-01, 1.0458e+00, 7.2230e-01],
[2.7000e+01, 1.0210e+01, 6.6670e-01, 8.1260e-01, 9.2200e-01, 7.5820e-01],
[3.8300e+01, 1.4480e+01, 5.6000e-01, 8.4340e-01, 8.2050e-01, 7.9570e-01],
[5.4300e+01, 2.0530e+01, 4.9470e-01, 8.6930e-01, 7.3050e-01, 8.2790e-01],
[7.7000e+01, 2.9110e+01, 4.5000e-01, 8.9100e-01, 6.5020e-01, 8.5530e-01],
[1.0900e+02, 4.1200e+01, 4.1870e-01, 9.0920e-01, 5.9500e-01, 8.7570e-01],
[1.4600e+02, 5.5190e+01, 3.7980e-01, 9.2220e-01, 5.5450e-01, 8.9030e-01],
[1.8700e+02, 7.0690e+01, 3.4970e-01, 9.3190e-01, 5.3330e-01, 8.9970e-01],
[2.3900e+02, 9.0340e+01, 3.2230e-01, 9.4030e-01, 5.1890e-01, 9.0730e-01],
[3.0500e+02, 1.1529e+02, 2.8500e-01, 9.4770e-01, 5.1810e-01, 9.1220e-01],
[3.9000e+02, 1.4742e+02, 2.7370e-01, 9.5440e-01, 5.1760e-01, 9.1710e-01],
[4.9800e+02, 1.8824e+02, 2.5230e-01, 9.6020e-01, 5.1720e-01, 9.2170e-01],
[6.3500e+02, 2.4003e+02, 2.3270e-01, 9.6530e-01, 5.1190e-01, 9.2670e-01]])
return algo
| 63.461538
| 82
| 0.588398
| 1,229
| 5,775
| 2.764036
| 0.116355
| 0.049455
| 0.016485
| 0.025905
| 0.962908
| 0.944951
| 0.944951
| 0.944951
| 0.944951
| 0.944951
| 0
| 0.57176
| 0.179567
| 5,775
| 90
| 83
| 64.166667
| 0.145209
| 0.040519
| 0
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.051948
| false
| 0
| 0.012987
| 0
| 0.116883
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b2a48d7d7aae85400698f58361f32258e7f834c0
| 324
|
py
|
Python
|
wpt/websockets/websock_handlers/webkit/long-invalid-header_wsh.py
|
gsnedders/presto-testo
|
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
|
[
"BSD-3-Clause"
] | null | null | null |
wpt/websockets/websock_handlers/webkit/long-invalid-header_wsh.py
|
gsnedders/presto-testo
|
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
|
[
"BSD-3-Clause"
] | null | null | null |
wpt/websockets/websock_handlers/webkit/long-invalid-header_wsh.py
|
gsnedders/presto-testo
|
a0acfbef13a3f8cae67cc7145216d31b67aa8eb4
|
[
"BSD-3-Clause"
] | null | null | null |
def web_socket_do_extra_handshake(request):
msg = "HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
msg += ("p" * 1024) + "\r\n"
request.connection.write(msg)
def web_socket_transfer_data(request):
msg = "HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
msg += ("p" * 1024) + "\r\n"
request.connection.write(msg)
| 32.4
| 56
| 0.688272
| 53
| 324
| 4.075472
| 0.377358
| 0.166667
| 0.111111
| 0.138889
| 0.759259
| 0.759259
| 0.759259
| 0.759259
| 0.759259
| 0.759259
| 0
| 0.065455
| 0.151235
| 324
| 9
| 57
| 36
| 0.72
| 0
| 0
| 0.75
| 0
| 0
| 0.314815
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b2a55aed0dd9e440b31194c6179b60928eeea7ed
| 5,465
|
py
|
Python
|
apps/arscheduling/arscheduler/testSets.py
|
DylanAPDavis/arscheduler
|
9cac8f285410f3435004ee575cee91a6a8550270
|
[
"Apache-2.0"
] | 2
|
2016-06-07T09:44:58.000Z
|
2017-12-21T21:12:20.000Z
|
apps/arscheduling/arscheduler/testSets.py
|
DylanAPDavis/arscheduler
|
9cac8f285410f3435004ee575cee91a6a8550270
|
[
"Apache-2.0"
] | null | null | null |
apps/arscheduling/arscheduler/testSets.py
|
DylanAPDavis/arscheduler
|
9cac8f285410f3435004ee575cee91a6a8550270
|
[
"Apache-2.0"
] | null | null | null |
__author__ = 'dylan'
# Sets of Flow Scheduling requests used to test ARScheduling module
test_dictionary = {
1: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "1", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "3", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "1", "00:00", "00:01")
],
2: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "1", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "3", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "4", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "1", "00:00", "00:01")
],
3: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.3", "00:00:00:00:00:03", "1", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "2", "00:00", "00:01"),
("10.0.0.2", "00:00:00:00:00:02", "10.0.0.3", "00:00:00:00:00:03", "3", "00:00", "00:01"),
("10.0.0.2", "00:00:00:00:00:02", "10.0.0.4", "00:00:00:00:00:04", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.3", "00:00:00:00:00:03", "1", "00:00", "00:01")
],
4: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.3", "00:00:00:00:00:03", "4", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "4", "00:00", "00:01"),
("10.0.0.2", "00:00:00:00:00:02", "10.0.0.3", "00:00:00:00:00:03", "2", "00:00", "00:01"),
("10.0.0.2", "00:00:00:00:00:02", "10.0.0.4", "00:00:00:00:00:04", "1", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.3", "00:00:00:00:00:03", "1", "00:00", "00:01")
],
5: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.5", "00:00:00:00:00:05", "1", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.5", "00:00:00:00:00:05", "2", "00:00", "00:01"),
("10.0.0.3", "00:00:00:00:00:03", "10.0.0.5", "00:00:00:00:00:05", "3", "00:00", "00:01"),
("10.0.0.3", "00:00:00:00:00:03", "10.0.0.5", "00:00:00:00:00:05", "2", "00:00", "00:01"),
("10.0.0.4", "00:00:00:00:00:04", "10.0.0.5", "00:00:00:00:00:05", "1", "00:00", "00:01")
],
6: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.5", "00:00:00:00:00:05", "7", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.5", "00:00:00:00:00:05", "4", "00:00", "00:01"),
("10.0.0.3", "00:00:00:00:00:03", "10.0.0.5", "00:00:00:00:00:05", "3", "00:00", "00:01"),
("10.0.0.3", "00:00:00:00:00:03", "10.0.0.5", "00:00:00:00:00:05", "4", "00:00", "00:01"),
("10.0.0.4", "00:00:00:00:00:04", "10.0.0.5", "00:00:00:00:00:05", "1", "00:00", "00:01")
],
7: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "8", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "7", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "1", "00:00", "00:01")
],
8: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "8", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "4", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "7", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "3", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "1", "00:00", "00:01")
],
9: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "1", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.3", "00:00:00:00:00:03", "2", "00:00", "00:01"),
("10.0.0.2", "00:00:00:00:00:02", "10.0.0.3", "00:00:00:00:00:03", "3", "00:00", "00:01"),
("10.0.0.4", "00:00:00:00:00:04", "10.0.0.1", "00:00:00:00:00:01", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "1", "00:00", "00:01")
],
10: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.2", "00:00:00:00:00:02", "6", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.3", "00:00:00:00:00:03", "6", "00:00", "00:01"),
("10.0.0.2", "00:00:00:00:00:02", "10.0.0.3", "00:00:00:00:00:03", "6", "00:00", "00:01"),
("10.0.0.4", "00:00:00:00:00:04", "10.0.0.1", "00:00:00:00:00:01", "6", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "6", "00:00", "00:01")
],
11: [("10.0.0.1", "00:00:00:00:00:01", "10.0.0.4", "00:00:00:00:00:04", "5", "00:00", "00:01"),
("10.0.0.2", "00:00:00:00:00:02", "10.0.0.3", "00:00:00:00:00:03", "2", "00:00", "00:01"),
("10.0.0.1", "00:00:00:00:00:01", "10.0.0.3", "00:00:00:00:00:03", "1", "00:00", "00:01")
]
}
| 79.202899
| 99
| 0.435133
| 1,350
| 5,465
| 1.757778
| 0.022963
| 0.893384
| 0.938053
| 0.714707
| 0.961652
| 0.957016
| 0.957016
| 0.957016
| 0.957016
| 0.957016
| 0
| 0.499346
| 0.16011
| 5,465
| 69
| 100
| 79.202899
| 0.017647
| 0.011894
| 0
| 0.567164
| 0
| 0
| 0.599741
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
a234f0bff7e68d972f966b007cba685f7ab95878
| 4,264
|
py
|
Python
|
algorithms/search/tests/student/test_dfs_by_critera.py
|
Tebs-Lab/learn-graph-theory
|
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
|
[
"Unlicense"
] | 9
|
2019-03-25T14:21:37.000Z
|
2021-12-06T19:19:49.000Z
|
algorithms/search/tests/student/test_dfs_by_critera.py
|
Tebs-Lab/learn-graph-theory
|
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
|
[
"Unlicense"
] | null | null | null |
algorithms/search/tests/student/test_dfs_by_critera.py
|
Tebs-Lab/learn-graph-theory
|
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
|
[
"Unlicense"
] | 4
|
2019-08-02T20:32:00.000Z
|
2020-10-14T02:19:50.000Z
|
from graphs.reference_implementation import DirectedGraph, UndirectedGraph
from algorithms.search.student_implementation import depth_first_search_by_criteria
def criterion(node):
return node.upper() == 'E'
def test_start_is_stop():
g = DirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'd')
g.add_edge('e', 'f')
assert depth_first_search_by_criteria(g, 'e', criterion) == ['e']
def test_no_path_directed():
'''
Test BFS on a simple directed graph that contains a no cycles, and no path to the goal.
'''
g = DirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'd')
g.add_edge('e', 'f')
assert depth_first_search_by_criteria(g, 'a', criterion) is None
def test_no_path_directed_cycles():
'''
Test BFS on a simple directed graph that contains cycles, but no path to the goal.
'''
g = DirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('c', 'a')
g.add_edge('b', 'd')
g.add_edge('e', 'f')
assert depth_first_search_by_criteria(g, 'a', criterion) is None
def test_single_path_directed():
g = DirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'd')
g.add_edge('d', 'e')
g.add_edge('e', 'f')
assert depth_first_search_by_criteria(g, 'a', criterion) == ['a', 'b', 'd', 'e']
def test_multiple_paths_directed():
g = DirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'e')
g.add_edge('b', 'd')
g.add_edge('d', 'e')
g.add_edge('e', 'f')
found_path = depth_first_search_by_criteria(g, 'a', criterion)
assert found_path == ['a', 'b', 'e'] or found_path == ['a', 'b', 'd', 'e']
def test_single_path_with_cycles_directed():
g = DirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('c', 'h')
g.add_edge('h', 'i')
g.add_edge('i', 'j')
g.add_edge('j', 'e')
g.add_edge('b', 'd')
g.add_edge('d', 'k')
g.add_edge('k', 'f')
g.add_edge('f', 'b')
assert depth_first_search_by_criteria(g, 'a', criterion) == ['a', 'b', 'c', 'h', 'i', 'j', 'e']
def test_no_path_undirected():
'''
Test BFS on a simple undirected graph that contains a no cycles, and no path to the goal.
'''
g = UndirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'd')
g.add_edge('e', 'f')
assert depth_first_search_by_criteria(g, 'a', criterion) is None
def test_no_path_undirected_cycles():
'''
Test BFS on a simple undirected graph that contains cycles, but no path to the goal.
'''
g = UndirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('c', 'a')
g.add_edge('b', 'd')
g.add_edge('e', 'f')
assert depth_first_search_by_criteria(g, 'a', criterion) is None
def test_single_path_undirected():
g = UndirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'd')
g.add_edge('d', 'e')
g.add_edge('e', 'f')
assert depth_first_search_by_criteria(g, 'a', criterion) == ['a', 'b', 'd', 'e']
def test_multiple_paths_undirected():
g = UndirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'e')
g.add_edge('b', 'd')
g.add_edge('d', 'e')
g.add_edge('e', 'f')
found_path = depth_first_search_by_criteria(g, 'a', criterion)
assert found_path == ['a', 'b', 'e'] or found_path == ['a', 'b', 'd', 'e']
def test_single_path_with_cycles_undirected():
g = UndirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('c', 'h')
g.add_edge('h', 'i')
g.add_edge('i', 'j')
g.add_edge('j', 'e')
g.add_edge('b', 'd')
g.add_edge('d', 'k')
g.add_edge('k', 'f')
g.add_edge('f', 'b')
assert depth_first_search_by_criteria(g, 'a', criterion) == ['a', 'b', 'c', 'h', 'i', 'j', 'e']
def test_graph_with_tie():
g = UndirectedGraph()
g.add_edge('a', 'b')
g.add_edge('b', 'c')
g.add_edge('b', 'd')
g.add_edge('c', 'e')
g.add_edge('d', 'e')
found = depth_first_search_by_criteria(g, 'a', criterion)
assert found == ['a', 'b', 'c', 'e'] or found == ['a', 'b', 'd', 'e']
| 26.320988
| 99
| 0.577392
| 707
| 4,264
| 3.240453
| 0.08628
| 0.120471
| 0.240943
| 0.102139
| 0.90921
| 0.869053
| 0.863815
| 0.863815
| 0.863815
| 0.820166
| 0
| 0
| 0.20849
| 4,264
| 161
| 100
| 26.484472
| 0.678815
| 0.08091
| 0
| 0.821429
| 0
| 0
| 0.050804
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 1
| 0.116071
| false
| 0
| 0.017857
| 0.008929
| 0.142857
| 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
|
a2e8483b6d0ad6ba85579582873a92d66d4825c5
| 24,333
|
py
|
Python
|
src/server/domain/models.py
|
jhchen3121/wechat_shop
|
c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328
|
[
"Apache-2.0"
] | null | null | null |
src/server/domain/models.py
|
jhchen3121/wechat_shop
|
c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328
|
[
"Apache-2.0"
] | 5
|
2021-01-28T21:18:27.000Z
|
2022-03-25T19:10:01.000Z
|
src/server/domain/models.py
|
jhchen3121/wechat_shop
|
c9d9ad009df1e5bb0eb23ca8d830dd5c15df5328
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
from sqlalchemy import CHAR, Column, DECIMAL, Float, String, Text, text
from sqlalchemy.dialects.mysql import DECIMAL, INTEGER, MEDIUMINT, SMALLINT, TINYINT, VARCHAR
from sqlalchemy import create_engine
from core_backend.database.base import DomainBase
import settings
class WechatshopAd(DomainBase):
__tablename__ = 'wechatshop_ad'
id = Column(SMALLINT(5), primary_key=True, autoincrement=True)
link_type = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
link = Column(String(255), server_default=text("''"))
goods_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
image_url = Column(Text, nullable=False)
end_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
enabled = Column(TINYINT(1), nullable=False, index=True, server_default=text("'0'"))
sort_order = Column(TINYINT(2), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopAddres(DomainBase):
__tablename__ = 'wechatshop_address'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
name = Column(String(50), nullable=False, server_default=text("''"))
user_id = Column(MEDIUMINT(8), nullable=False, index=True, server_default=text("'0'"))
country_id = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
province_id = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
city_id = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
district_id = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
address = Column(String(120), nullable=False, server_default=text("''"))
mobile = Column(String(60), nullable=False, server_default=text("''"))
is_default = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), server_default=text("'0'"))
class WechatshopAdmin(DomainBase):
__tablename__ = 'wechatshop_admin'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
username = Column(String(25), nullable=False, server_default=text("''"))
password = Column(String(255), nullable=False, server_default=text("''"))
password_salt = Column(String(255), nullable=False, server_default=text("''"))
last_login_ip = Column(String(60), nullable=False, server_default=text("''"))
last_login_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), server_default=text("'0'"))
class WechatshopCart(DomainBase):
__tablename__ = 'wechatshop_cart'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
user_id = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
goods_id = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
goods_sn = Column(String(60), nullable=False, server_default=text("''"))
product_id = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
goods_name = Column(String(120), nullable=False, server_default=text("''"))
goods_aka = Column(String(120), nullable=False, server_default=text("''"))
goods_weight = Column(Float(4, True), nullable=False, server_default=text("'0.00'"))
add_price = Column(DECIMAL(10, 2), server_default=text("'0.00'"))
retail_price = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
number = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
goods_specifition_name_value = Column(Text, nullable=False)
goods_specifition_ids = Column(String(60), nullable=False, server_default=text("''"))
checked = Column(TINYINT(1), nullable=False, server_default=text("'1'"))
list_pic_url = Column(String(255), nullable=False, server_default=text("''"))
freight_template_id = Column(MEDIUMINT(4), nullable=False)
is_on_sale = Column(TINYINT(1), nullable=False, server_default=text("'1'"))
add_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
is_fast = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(2), nullable=False, server_default=text("'0'"))
class WechatshopCategory(DomainBase):
__tablename__ = 'wechatshop_category'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
name = Column(String(90), nullable=False, server_default=text("''"))
keywords = Column(String(255), nullable=False, server_default=text("''"))
front_desc = Column(String(255), nullable=False, server_default=text("''"))
parent_id = Column(INTEGER(11), nullable=False, index=True, server_default=text("'0'"))
sort_order = Column(TINYINT(1), nullable=False, server_default=text("'50'"))
show_index = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
is_show = Column(TINYINT(1), nullable=False, server_default=text("'1'"))
icon_url = Column(String(255), nullable=False)
img_url = Column(String(255), nullable=False)
level = Column(String(255), nullable=False)
front_name = Column(String(255), nullable=False)
p_height = Column(INTEGER(3), nullable=False, server_default=text("'0'"))
is_category = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
is_channel = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopExceptArea(DomainBase):
__tablename__ = 'wechatshop_except_area'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
content = Column(String(255), nullable=False)
area = Column(String(3000), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopExceptAreaDetail(DomainBase):
__tablename__ = 'wechatshop_except_area_detail'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
except_area_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
area = Column(INTEGER(5), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopFootprint(DomainBase):
__tablename__ = 'wechatshop_footprint'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
user_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
goods_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
add_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
class WechatshopFormid(DomainBase):
__tablename__ = 'wechatshop_formid'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
user_id = Column(INTEGER(11), nullable=False)
order_id = Column(INTEGER(11), nullable=False)
form_id = Column(String(255), nullable=False)
add_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
use_times = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopFreightTemplate(DomainBase):
__tablename__ = 'wechatshop_freight_template'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
name = Column(VARCHAR(120), nullable=False, server_default=text("'0'"))
package_price = Column(DECIMAL(5, 2), nullable=False, server_default=text("'0.00'"))
freight_type = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopFreightTemplateDetail(DomainBase):
__tablename__ = 'wechatshop_freight_template_detail'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
template_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
group_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
area = Column(INTEGER(5), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopFreightTemplateGroup(DomainBase):
__tablename__ = 'wechatshop_freight_template_group'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
template_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
is_default = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
area = Column(String(3000), nullable=False, server_default=text("'0'"))
start = Column(INTEGER(3), nullable=False, server_default=text("'1'"))
start_fee = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
add = Column(INTEGER(3), nullable=False, server_default=text("'1'"))
add_fee = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
free_by_number = Column(TINYINT(2), nullable=False, server_default=text("'0'"))
free_by_money = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopGood(DomainBase):
__tablename__ = 'wechatshop_goods'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
category_id = Column(INTEGER(11), nullable=False, index=True, server_default=text("'0'"))
is_on_sale = Column(TINYINT(1), nullable=False, server_default=text("'1'"))
name = Column(String(120), nullable=False, server_default=text("''"))
goods_number = Column(MEDIUMINT(8), nullable=False, index=True, server_default=text("'0'"))
sell_volume = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
keywords = Column(String(255), nullable=False, server_default=text("''"))
retail_price = Column(String(100), nullable=False, server_default=text("'0.00'"))
min_retail_price = Column(DECIMAL(10, 2), server_default=text("'0.00'"))
cost_price = Column(String(100), nullable=False, server_default=text("'0.00'"))
min_cost_price = Column(DECIMAL(10, 2), server_default=text("'0.00'"))
goods_brief = Column(String(255), nullable=False, server_default=text("''"))
goods_desc = Column(Text)
sort_order = Column(SMALLINT(4), nullable=False, index=True, server_default=text("'100'"))
is_index = Column(TINYINT(1), server_default=text("'0'"))
is_new = Column(TINYINT(1), server_default=text("'0'"))
goods_unit = Column(String(45), nullable=False)
https_pic_url = Column(String(255), nullable=False, server_default=text("'0'"))
list_pic_url = Column(String(255), nullable=False)
freight_template_id = Column(INTEGER(5), server_default=text("'0'"))
freight_type = Column(TINYINT(1), server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopGoodsGallery(DomainBase):
__tablename__ = 'wechatshop_goods_gallery'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
goods_id = Column(INTEGER(11), nullable=False, index=True, server_default=text("'0'"))
img_url = Column(String(255), nullable=False, server_default=text("''"))
img_desc = Column(String(255), nullable=False, server_default=text("''"))
sort_order = Column(INTEGER(11), nullable=False, server_default=text("'5'"))
is_delete = Column(TINYINT(1), server_default=text("'0'"))
class WechatshopGoodsSpecification(DomainBase):
__tablename__ = 'wechatshop_goods_specification'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
goods_id = Column(INTEGER(11), nullable=False, index=True, server_default=text("'0'"))
specification_id = Column(INTEGER(11), nullable=False, index=True, server_default=text("'0'"))
value = Column(String(50), nullable=False, server_default=text("''"))
pic_url = Column(String(255), nullable=False, server_default=text("''"))
is_delete = Column(TINYINT(1), server_default=text("'0'"))
class WechatshopKeyword(DomainBase):
__tablename__ = 'wechatshop_keywords'
keyword = Column(String(90), primary_key=True, nullable=False, server_default=text("''"))
is_hot = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
is_default = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
is_show = Column(TINYINT(1), nullable=False, server_default=text("'1'"))
sort_order = Column(INTEGER(11), nullable=False, server_default=text("'100'"))
scheme__url = Column('scheme _url', String(255), nullable=False, server_default=text("''"))
id = Column(INTEGER(11), primary_key=True, autoincrement=True, nullable=False)
type = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
class WechatshopNotice(DomainBase):
__tablename__ = 'wechatshop_notice'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
content = Column(String(255), nullable=False, server_default=text("'0'"))
end_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopOrder(DomainBase):
__tablename__ = 'wechatshop_order'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
order_sn = Column(String(20), nullable=False, unique=True, server_default=text("''"))
user_id = Column(MEDIUMINT(8), nullable=False, index=True, server_default=text("'0'"))
order_status = Column(SMALLINT(4), nullable=False, index=True, server_default=text("'0'"))
offline_pay = Column(TINYINT(1), server_default=text("'0'"))
shipping_status = Column(TINYINT(1), nullable=False, index=True, server_default=text("'0'"))
print_status = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
pay_status = Column(TINYINT(1), nullable=False, index=True, server_default=text("'0'"))
consignee = Column(String(60), nullable=False, server_default=text("''"))
country = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
province = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
city = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
district = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
address = Column(String(255), nullable=False, server_default=text("''"))
print_info = Column(String(255), nullable=False, server_default=text("''"))
mobile = Column(String(60), nullable=False, server_default=text("''"))
postscript = Column(String(255), nullable=False, server_default=text("''"))
admin_memo = Column(VARCHAR(255))
shipping_fee = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
pay_name = Column(String(120), nullable=False, server_default=text("''"))
pay_id = Column(VARCHAR(255), nullable=False, index=True, server_default=text("'0'"))
change_price = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
actual_price = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
order_price = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
goods_price = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
add_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
pay_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
shipping_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
confirm_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
dealdone_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
freight_price = Column(INTEGER(10), nullable=False, server_default=text("'0'"))
express_value = Column(DECIMAL(10, 2), nullable=False, server_default=text("'480.00'"))
remark = Column(String(255), nullable=False, server_default=text("'???????????????'"))
order_type = Column(TINYINT(2), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopOrderExpres(DomainBase):
__tablename__ = 'wechatshop_order_express'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
order_id = Column(MEDIUMINT(8), nullable=False, index=True, server_default=text("'0'"))
shipper_id = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
shipper_name = Column(String(120), nullable=False, server_default=text("''"))
shipper_code = Column(String(60), nullable=False, server_default=text("''"))
logistic_code = Column(String(40), nullable=False, server_default=text("''"))
traces = Column(String(2000), nullable=False, server_default=text("''"))
is_finish = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
request_count = Column(INTEGER(11), server_default=text("'0'"))
request_time = Column(INTEGER(11), server_default=text("'0'"))
add_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
update_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
express_type = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
region_code = Column(String(10), nullable=False, server_default=text("'0'"))
class WechatshopOrderGood(DomainBase):
__tablename__ = 'wechatshop_order_goods'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
order_id = Column(MEDIUMINT(8), nullable=False, index=True, server_default=text("'0'"))
goods_id = Column(MEDIUMINT(8), nullable=False, index=True, server_default=text("'0'"))
goods_name = Column(String(120), nullable=False, server_default=text("''"))
goods_aka = Column(String(120), nullable=False)
product_id = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
number = Column(SMALLINT(5), nullable=False, server_default=text("'1'"))
retail_price = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
goods_specifition_name_value = Column(Text, nullable=False)
goods_specifition_ids = Column(String(255), nullable=False, server_default=text("''"))
list_pic_url = Column(String(255), nullable=False, server_default=text("''"))
user_id = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopProduct(DomainBase):
__tablename__ = 'wechatshop_product'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
goods_id = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
goods_specification_ids = Column(String(50), nullable=False, server_default=text("''"))
goods_sn = Column(String(60), nullable=False, server_default=text("''"))
goods_number = Column(MEDIUMINT(8), nullable=False, server_default=text("'0'"))
retail_price = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
cost = Column(DECIMAL(10, 2), nullable=False, server_default=text("'0.00'"))
goods_weight = Column(Float(6, True), nullable=False, server_default=text("'0.00'"))
has_change = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
goods_name = Column(String(120), nullable=False)
is_on_sale = Column(TINYINT(1), nullable=False, server_default=text("'1'"))
is_delete = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopRegion(DomainBase):
__tablename__ = 'wechatshop_region'
id = Column(SMALLINT(5), primary_key=True, autoincrement=True)
parent_id = Column(SMALLINT(5), nullable=False, index=True, server_default=text("'0'"))
name = Column(String(120), nullable=False, server_default=text("''"))
type = Column(TINYINT(1), nullable=False, index=True, server_default=text("'2'"))
agency_id = Column(SMALLINT(5), nullable=False, index=True, server_default=text("'0'"))
area = Column(SMALLINT(5), nullable=False, server_default=text("'0'"))
area_code = Column(VARCHAR(10), nullable=False, server_default=text("'0'"))
far_area = Column(INTEGER(2), nullable=False, server_default=text("'0'"))
class WechatshopSearchHistory(DomainBase):
__tablename__ = 'wechatshop_search_history'
id = Column(INTEGER(10), primary_key=True, autoincrement=True)
keyword = Column(CHAR(50), nullable=False)
_from = Column('from', String(45), nullable=False, server_default=text("''"))
add_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
user_id = Column(String(45))
class WechatshopSetting(DomainBase):
__tablename__ = 'wechatshop_settings'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
autoDelivery = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
Name = Column(String(100), nullable=False)
Tel = Column(String(20), nullable=False)
ProvinceName = Column(String(20), nullable=False)
CityName = Column(String(20), nullable=False)
ExpAreaName = Column(String(20), nullable=False)
Address = Column(String(20), nullable=False)
discovery_img_height = Column(INTEGER(4), nullable=False, server_default=text("'0'"))
discovery_img = Column(String(255), nullable=False, server_default=text("''"))
goods_id = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
city_id = Column(INTEGER(5), nullable=False, server_default=text("'0'"))
province_id = Column(INTEGER(5), nullable=False, server_default=text("'0'"))
district_id = Column(INTEGER(5), nullable=False, server_default=text("'0'"))
countdown = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
reset = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopShipper(DomainBase):
__tablename__ = 'wechatshop_shipper'
id = Column(INTEGER(11), primary_key=True, autoincrement=True, unique=True)
name = Column(String(20), nullable=False, server_default=text("''"))
code = Column(String(10), nullable=False, server_default=text("''"))
sort_order = Column(INTEGER(11), nullable=False, server_default=text("'10'"))
MonthCode = Column(String(100))
CustomerName = Column(String(100))
enabled = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopShowSetting(DomainBase):
__tablename__ = 'wechatshop_show_settings'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
banner = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
channel = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
index_banner_img = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
notice = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
class WechatshopSpecification(DomainBase):
__tablename__ = 'wechatshop_specification'
id = Column(INTEGER(11), primary_key=True, autoincrement=True)
name = Column(String(60), nullable=False, server_default=text("''"))
sort_order = Column(TINYINT(3), nullable=False, server_default=text("'0'"))
memo = Column(VARCHAR(255), nullable=False, server_default=text("'0'"))
class WechatshopUser(DomainBase):
__tablename__ = 'wechatshop_user'
id = Column(MEDIUMINT(8), primary_key=True, autoincrement=True)
nickname = Column(String(1024), nullable=False)
name = Column(String(60), nullable=False, server_default=text("''"))
username = Column(String(60), nullable=False, server_default=text("''"))
password = Column(String(32), nullable=False, server_default=text("''"))
gender = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
birthday = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
register_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
last_login_time = Column(INTEGER(11), nullable=False, server_default=text("'0'"))
last_login_ip = Column(String(15), nullable=False, server_default=text("''"))
mobile = Column(String(20), nullable=False)
register_ip = Column(String(45), nullable=False, server_default=text("''"))
avatar = Column(String(255), nullable=False, server_default=text("''"))
weixin_openid = Column(String(50), nullable=False, server_default=text("''"))
name_mobile = Column(TINYINT(1), nullable=False, server_default=text("'0'"))
country = Column(String(255), server_default=text("'0'"))
province = Column(String(100), server_default=text("'0'"))
city = Column(String(100), server_default=text("'0'"))
#engine = create_engine(settings.DB_URL)
#DomainBase.metadata.create_all(engine)
| 55.809633
| 98
| 0.711215
| 3,120
| 24,333
| 5.345833
| 0.075321
| 0.182385
| 0.23035
| 0.291504
| 0.829306
| 0.773967
| 0.755381
| 0.723724
| 0.655795
| 0.535883
| 0
| 0.034518
| 0.120166
| 24,333
| 435
| 99
| 55.937931
| 0.744547
| 0.003699
| 0
| 0.284058
| 0
| 0
| 0.054251
| 0.013119
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.008696
| 0.014493
| 0
| 1
| 0.011594
| 0
| 0
| 0
| null | 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
a2f475ff17f0490b3086e84352c11c21273da44e
| 886,018
|
py
|
Python
|
src/encoding/declare/tests/test_declare_mining.py
|
fleur101/predict-python
|
d40c876d919232bbb77904e050b182c875bc36fa
|
[
"MIT"
] | 12
|
2018-06-27T08:09:18.000Z
|
2021-10-10T22:19:04.000Z
|
src/encoding/declare/tests/test_declare_mining.py
|
fleur101/predict-python
|
d40c876d919232bbb77904e050b182c875bc36fa
|
[
"MIT"
] | 17
|
2018-06-12T17:36:11.000Z
|
2020-11-16T21:23:22.000Z
|
src/encoding/declare/tests/test_declare_mining.py
|
fleur101/predict-python
|
d40c876d919232bbb77904e050b182c875bc36fa
|
[
"MIT"
] | 16
|
2018-08-02T14:40:17.000Z
|
2021-11-12T12:28:46.000Z
|
from django.test import TestCase
from src.encoding.declare.declare_mining import filter_candidates_by_support, generate_train_candidate_constraints, \
find_if_satisfied_by_class, apply_template_to_log, template_sizes, transform_results_to_numpy
class TestDeclareMining(TestCase):
"""Proof of concept tests"""
def setUp(self) -> None:
self.labels = {'2_100': 'false', '2_101': 'true', '2_102': 'false', '2_103': 'true', '2_104': 'true',
'2_105': 'false', '2_106': 'false', '2_107': 'false', '2_108': 'true', '2_109': 'true',
'2_126': 'false', '2_124': 'true', '2_122': 'true', '2_123': 'false'}
self.transformed_log = {
'2_100': {'Contact Hospital': [3], 'Create Questionnaire': [1], 'High Insurance Check': [2],
'High Medical History': [4], 'Prepare Notification Content': [6], 'Register': [0],
'Reject Claim': [5]},
'2_101': {'Accept Claim': [4], 'Create Questionnaire': [2], 'Low Insurance Check': [3],
'Low Medical History': [1], 'Prepare Notification Content': [5], 'Register': [0],
'Send Questionnaire': [6]},
'2_102': {'Contact Hospital': [4], 'Create Questionnaire': [1], 'High Insurance Check': [2],
'High Medical History': [3], 'Prepare Notification Content': [6], 'Register': [0],
'Reject Claim': [5]},
'2_103': {'Accept Claim': [3], 'Create Questionnaire': [4], 'Low Insurance Check': [2],
'Low Medical History': [1], 'Prepare Notification Content': [5], 'Register': [0],
'Send Notification by e-mail': [6]},
'2_104': {'Accept Claim': [3], 'Create Questionnaire': [5], 'Low Insurance Check': [2],
'Low Medical History': [1], 'Prepare Notification Content': [4], 'Register': [0],
'Send Notification by e-mail': [6]},
'2_105': {'Contact Hospital': [1], 'Create Questionnaire': [6], 'High Insurance Check': [3],
'High Medical History': [2], 'Prepare Notification Content': [5], 'Register': [0],
'Reject Claim': [4]},
'2_106': {'Contact Hospital': [1], 'Create Questionnaire': [3], 'High Insurance Check': [2],
'High Medical History': [4], 'Prepare Notification Content': [6], 'Register': [0],
'Reject Claim': [5]},
'2_107': {'Create Questionnaire': [1], 'Low Insurance Check': [3],
'Low Medical History': [2], 'Prepare Notification Content': [5], 'Register': [0],
'Reject Claim': [4], 'Send Notification by e-mail': [6]},
'2_108': {'Accept Claim': [3], 'Create Questionnaire': [4], 'Low Insurance Check': [2],
'Low Medical History': [1], 'Prepare Notification Content': [5], 'Register': [0],
'Send Notification by Post': [6]},
'2_109': {'Accept Claim': [5], 'Contact Hospital': [4], 'Create Questionnaire': [1],
'High Insurance Check': [3], 'High Medical History': [2],
'Prepare Notification Content': [6], 'Register': [0]},
'2_126': {'Create Questionnaire': [1], 'Low Insurance Check': [3],
'Low Medical History': [2], 'Prepare Notification Content': [5], 'Register': [0],
'Reject Claim': [4], 'Send Questionnaire': [6]},
'2_124': {'Accept Claim': [5], 'Contact Hospital': [3], 'Create Questionnaire': [1],
'High Insurance Check': [4], 'High Medical History': [2],
'Prepare Notification Content': [6], 'Register': [0]},
'2_122': {'Accept Claim': [4], 'Contact Hospital': [3], 'Create Questionnaire': [6],
'High Insurance Check': [1], 'High Medical History': [2],
'Prepare Notification Content': [5], 'Register': [0]},
'2_123': {'Contact Hospital': [3], 'Create Questionnaire': [5], 'High Insurance Check': [1],
'High Medical History': [2], 'Prepare Notification Content': [6], 'Register': [0],
'Reject Claim': [4]}}
def test_find_if_satisfied_by_class(self):
constraint_result = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
constraint_support_true = 0
constraint_support_false = 0
satis_true, satis_false = find_if_satisfied_by_class(constraint_result, self.transformed_log, self.labels, constraint_support_true, constraint_support_false)
expected_true = True
expected_false = True
self.assertEqual(expected_true, satis_true)
self.assertEqual(expected_false, satis_false)
def test_generate_train_candidate_constraints(self):
candidates = [('Accept Claim',), ('Send Questionnaire',), ('Create Questionnaire',), ('Prepare Notification Content',), ('Register',), ('Reject Claim',), ('Low Insurance Check',), ('Send Notification by e-mail',), ('Send Notification by Post',), ('Low Medical History',), ('Contact Hospital',), ('High Medical History',), ('High Insurance Check',), ('Accept Claim', 'Send Questionnaire'), ('Accept Claim', 'Create Questionnaire'), ('Accept Claim', 'Prepare Notification Content'), ('Accept Claim', 'Register'), ('Accept Claim', 'Reject Claim'), ('Accept Claim', 'Low Insurance Check'), ('Accept Claim', 'Send Notification by e-mail'), ('Accept Claim', 'Send Notification by Post'), ('Accept Claim', 'Low Medical History'), ('Accept Claim', 'Contact Hospital'), ('Accept Claim', 'High Medical History'), ('Accept Claim', 'High Insurance Check'), ('Send Questionnaire', 'Accept Claim'), ('Send Questionnaire', 'Create Questionnaire'), ('Send Questionnaire', 'Prepare Notification Content'), ('Send Questionnaire', 'Register'), ('Send Questionnaire', 'Reject Claim'), ('Send Questionnaire', 'Low Insurance Check'), ('Send Questionnaire', 'Send Notification by e-mail'), ('Send Questionnaire', 'Send Notification by Post'), ('Send Questionnaire', 'Low Medical History'), ('Send Questionnaire', 'Contact Hospital'), ('Send Questionnaire', 'High Medical History'), ('Send Questionnaire', 'High Insurance Check'), ('Create Questionnaire', 'Accept Claim'), ('Create Questionnaire', 'Send Questionnaire'), ('Create Questionnaire', 'Prepare Notification Content'), ('Create Questionnaire', 'Register'), ('Create Questionnaire', 'Reject Claim'), ('Create Questionnaire', 'Low Insurance Check'), ('Create Questionnaire', 'Send Notification by e-mail'), ('Create Questionnaire', 'Send Notification by Post'), ('Create Questionnaire', 'Low Medical History'), ('Create Questionnaire', 'Contact Hospital'), ('Create Questionnaire', 'High Medical History'), ('Create Questionnaire', 'High Insurance Check'), ('Prepare Notification Content', 'Accept Claim'), ('Prepare Notification Content', 'Send Questionnaire'), ('Prepare Notification Content', 'Create Questionnaire'), ('Prepare Notification Content', 'Register'), ('Prepare Notification Content', 'Reject Claim'), ('Prepare Notification Content', 'Low Insurance Check'), ('Prepare Notification Content', 'Send Notification by e-mail'), ('Prepare Notification Content', 'Send Notification by Post'), ('Prepare Notification Content', 'Low Medical History'), ('Prepare Notification Content', 'Contact Hospital'), ('Prepare Notification Content', 'High Medical History'), ('Prepare Notification Content', 'High Insurance Check'), ('Register', 'Accept Claim'), ('Register', 'Send Questionnaire'), ('Register', 'Create Questionnaire'), ('Register', 'Prepare Notification Content'), ('Register', 'Reject Claim'), ('Register', 'Low Insurance Check'), ('Register', 'Send Notification by e-mail'), ('Register', 'Send Notification by Post'), ('Register', 'Low Medical History'), ('Register', 'Contact Hospital'), ('Register', 'High Medical History'), ('Register', 'High Insurance Check'), ('Reject Claim', 'Accept Claim'), ('Reject Claim', 'Send Questionnaire'), ('Reject Claim', 'Create Questionnaire'), ('Reject Claim', 'Prepare Notification Content'), ('Reject Claim', 'Register'), ('Reject Claim', 'Low Insurance Check'), ('Reject Claim', 'Send Notification by e-mail'), ('Reject Claim', 'Send Notification by Post'), ('Reject Claim', 'Low Medical History'), ('Reject Claim', 'Contact Hospital'), ('Reject Claim', 'High Medical History'), ('Reject Claim', 'High Insurance Check'), ('Low Insurance Check', 'Accept Claim'), ('Low Insurance Check', 'Send Questionnaire'), ('Low Insurance Check', 'Create Questionnaire'), ('Low Insurance Check', 'Prepare Notification Content'), ('Low Insurance Check', 'Register'), ('Low Insurance Check', 'Reject Claim'), ('Low Insurance Check', 'Send Notification by e-mail'), ('Low Insurance Check', 'Send Notification by Post'), ('Low Insurance Check', 'Low Medical History'), ('Low Insurance Check', 'Contact Hospital'), ('Low Insurance Check', 'High Medical History'), ('Low Insurance Check', 'High Insurance Check'), ('Send Notification by e-mail', 'Accept Claim'), ('Send Notification by e-mail', 'Send Questionnaire'), ('Send Notification by e-mail', 'Create Questionnaire'), ('Send Notification by e-mail', 'Prepare Notification Content'), ('Send Notification by e-mail', 'Register'), ('Send Notification by e-mail', 'Reject Claim'), ('Send Notification by e-mail', 'Low Insurance Check'), ('Send Notification by e-mail', 'Send Notification by Post'), ('Send Notification by e-mail', 'Low Medical History'), ('Send Notification by e-mail', 'Contact Hospital'), ('Send Notification by e-mail', 'High Medical History'), ('Send Notification by e-mail', 'High Insurance Check'), ('Send Notification by Post', 'Accept Claim'), ('Send Notification by Post', 'Send Questionnaire'), ('Send Notification by Post', 'Create Questionnaire'), ('Send Notification by Post', 'Prepare Notification Content'), ('Send Notification by Post', 'Register'), ('Send Notification by Post', 'Reject Claim'), ('Send Notification by Post', 'Low Insurance Check'), ('Send Notification by Post', 'Send Notification by e-mail'), ('Send Notification by Post', 'Low Medical History'), ('Send Notification by Post', 'Contact Hospital'), ('Send Notification by Post', 'High Medical History'), ('Send Notification by Post', 'High Insurance Check'), ('Low Medical History', 'Accept Claim'), ('Low Medical History', 'Send Questionnaire'), ('Low Medical History', 'Create Questionnaire'), ('Low Medical History', 'Prepare Notification Content'), ('Low Medical History', 'Register'), ('Low Medical History', 'Reject Claim'), ('Low Medical History', 'Low Insurance Check'), ('Low Medical History', 'Send Notification by e-mail'), ('Low Medical History', 'Send Notification by Post'), ('Low Medical History', 'Contact Hospital'), ('Low Medical History', 'High Medical History'), ('Low Medical History', 'High Insurance Check'), ('Contact Hospital', 'Accept Claim'), ('Contact Hospital', 'Send Questionnaire'), ('Contact Hospital', 'Create Questionnaire'), ('Contact Hospital', 'Prepare Notification Content'), ('Contact Hospital', 'Register'), ('Contact Hospital', 'Reject Claim'), ('Contact Hospital', 'Low Insurance Check'), ('Contact Hospital', 'Send Notification by e-mail'), ('Contact Hospital', 'Send Notification by Post'), ('Contact Hospital', 'Low Medical History'), ('Contact Hospital', 'High Medical History'), ('Contact Hospital', 'High Insurance Check'), ('High Medical History', 'Accept Claim'), ('High Medical History', 'Send Questionnaire'), ('High Medical History', 'Create Questionnaire'), ('High Medical History', 'Prepare Notification Content'), ('High Medical History', 'Register'), ('High Medical History', 'Reject Claim'), ('High Medical History', 'Low Insurance Check'), ('High Medical History', 'Send Notification by e-mail'), ('High Medical History', 'Send Notification by Post'), ('High Medical History', 'Low Medical History'), ('High Medical History', 'Contact Hospital'), ('High Medical History', 'High Insurance Check'), ('High Insurance Check', 'Accept Claim'), ('High Insurance Check', 'Send Questionnaire'), ('High Insurance Check', 'Create Questionnaire'), ('High Insurance Check', 'Prepare Notification Content'), ('High Insurance Check', 'Register'), ('High Insurance Check', 'Reject Claim'), ('High Insurance Check', 'Low Insurance Check'), ('High Insurance Check', 'Send Notification by e-mail'), ('High Insurance Check', 'Send Notification by Post'), ('High Insurance Check', 'Low Medical History'), ('High Insurance Check', 'Contact Hospital'), ('High Insurance Check', 'High Medical History')]
templates = ['init', 'exist', 'absence1', 'absence2', 'absence3', 'choice', 'coexistence', 'exactly1', 'exactly2', 'exactly3', 'alternate_precedence', 'alternate_succession', 'alternate_response', 'chain_precedence', 'chain_response', 'chain_succession', 'not_chain_succession', 'not_coexistence', 'not_succession', 'responded_existence', 'response', 'succession', 'precedence']
constraint_support_true = 0
constraint_support_false = 0
filter_t = True
train_results = generate_train_candidate_constraints(candidates, templates, self.transformed_log, self.labels, constraint_support_true, constraint_support_false, filter_t=filter_t)
expected = {"init:('Low Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Reject Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Accept Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('High Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Low Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "init:('Send Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Contact Hospital',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('High Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Send Notification by e-mail',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exist:('Low Insurance Check',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exist:('Reject Claim',)": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "exist:('Accept Claim',)": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "exist:('High Insurance Check',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exist:('Low Medical History',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exist:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exist:('Send Questionnaire',)": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "exist:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "exist:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exist:('Contact Hospital',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exist:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exist:('High Medical History',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exist:('Send Notification by e-mail',)": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "absence1:('Low Insurance Check',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "absence1:('Reject Claim',)": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "absence1:('Accept Claim',)": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "absence1:('High Insurance Check',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "absence1:('Low Medical History',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "absence1:('Register',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "absence1:('Send Questionnaire',)": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "absence1:('Send Notification by Post',)": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "absence1:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "absence1:('Contact Hospital',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "absence1:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "absence1:('High Medical History',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "absence1:('Send Notification by e-mail',)": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "absence2:('Low Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Reject Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Accept Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('High Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Low Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Send Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Send Notification by Post',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Contact Hospital',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('High Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Send Notification by e-mail',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Low Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Reject Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Accept Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('High Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Low Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Send Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Send Notification by Post',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Contact Hospital',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('High Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Send Notification by e-mail',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Low Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Low Insurance Check', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Low Insurance Check', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Low Insurance Check', 'Send Notification by Post')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Low Insurance Check', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Insurance Check', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Insurance Check', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Send Notification by e-mail')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Reject Claim', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Reject Claim', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Reject Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Reject Claim', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Reject Claim', 'Register')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Reject Claim', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1], "choice:('Reject Claim', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, 1, 1, -1, 1, -1, -1, 1], "choice:('Reject Claim', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Reject Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Reject Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Reject Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Reject Claim', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Accept Claim', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Accept Claim', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Accept Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Accept Claim', 'Register')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'Send Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1], "choice:('Accept Claim', 'Send Notification by Post')": [-1, 1, -1, 1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "choice:('Accept Claim', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Accept Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Accept Claim', 'Send Notification by e-mail')": [-1, 1, -1, -1, -1, -1, -1, 1, 1, 1, -1, 1, 1, -1], "choice:('High Insurance Check', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('High Insurance Check', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('High Insurance Check', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Insurance Check', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Insurance Check', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('High Insurance Check', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('High Insurance Check', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Insurance Check', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Low Medical History', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Low Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Low Medical History', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Medical History', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'Send Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Low Medical History', 'Send Notification by Post')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Low Medical History', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Medical History', 'Send Notification by e-mail')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Register', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Register', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Register', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Register', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Register', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Register', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Register', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Register', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Low Insurance Check')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Send Questionnaire', 'Reject Claim')": [1, 1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1], "choice:('Send Questionnaire', 'Accept Claim')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1], "choice:('Send Questionnaire', 'High Insurance Check')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Low Medical History')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Send Questionnaire', 'Register')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Send Questionnaire', 'Send Notification by Post')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Questionnaire', 'Create Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Send Questionnaire', 'Contact Hospital')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Prepare Notification Content')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Send Questionnaire', 'High Medical History')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Send Notification by e-mail')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, 1, -1, 1, -1, -1, 1], "choice:('Send Notification by Post', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "choice:('Send Notification by Post', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Send Notification by Post', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Send Notification by Post', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Send Notification by Post', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Send Notification by Post', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Send Notification by Post', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Send Notification by Post', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Create Questionnaire', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Create Questionnaire', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Create Questionnaire', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Create Questionnaire', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Create Questionnaire', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Create Questionnaire', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Create Questionnaire', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Create Questionnaire', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Create Questionnaire', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Create Questionnaire', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Contact Hospital', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Contact Hospital', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Contact Hospital', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Contact Hospital', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Contact Hospital', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Contact Hospital', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Contact Hospital', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Contact Hospital', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Prepare Notification Content', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Prepare Notification Content', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Prepare Notification Content', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Prepare Notification Content', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Prepare Notification Content', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Prepare Notification Content', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Prepare Notification Content', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('High Medical History', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('High Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Medical History', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Medical History', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('High Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Medical History', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Reject Claim')": [1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 1], "choice:('Send Notification by e-mail', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, 1, 1, 1, -1, 1, 1, -1], "choice:('Send Notification by e-mail', 'High Insurance Check')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Low Medical History')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Register')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Send Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Send Notification by Post')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Create Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Contact Hospital')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Prepare Notification Content')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Notification by e-mail', 'High Medical History')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "coexistence:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "coexistence:('Low Insurance Check', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Low Insurance Check', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Reject Claim', 'Register')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "coexistence:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "coexistence:('Reject Claim', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "coexistence:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Accept Claim', 'Register')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "coexistence:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "coexistence:('Accept Claim', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "coexistence:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Insurance Check', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('High Insurance Check', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "coexistence:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Medical History', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "coexistence:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "coexistence:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Send Questionnaire', 'Register')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "coexistence:('Send Questionnaire', 'Create Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Prepare Notification Content')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "coexistence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "coexistence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "coexistence:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Contact Hospital', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Contact Hospital', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Prepare Notification Content', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Prepare Notification Content', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('High Medical History', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Medical History', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "coexistence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "coexistence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "exactly1:('Low Insurance Check',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exactly1:('Reject Claim',)": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "exactly1:('Accept Claim',)": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "exactly1:('High Insurance Check',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exactly1:('Low Medical History',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exactly1:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exactly1:('Send Questionnaire',)": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "exactly1:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "exactly1:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exactly1:('Contact Hospital',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exactly1:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exactly1:('High Medical History',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exactly1:('Send Notification by e-mail',)": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "exactly2:('Low Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Reject Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Accept Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('High Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Low Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Register',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Send Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Contact Hospital',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('High Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Send Notification by e-mail',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Low Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Reject Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Accept Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('High Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Low Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Register',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Send Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Contact Hospital',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('High Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Send Notification by e-mail',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "alternate_precedence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_precedence:('Low Insurance Check', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "alternate_precedence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_precedence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Accept Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "alternate_precedence:('Accept Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_precedence:('Accept Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "alternate_precedence:('High Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "alternate_precedence:('High Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('High Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_precedence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "alternate_precedence:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_precedence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_precedence:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "alternate_precedence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_precedence:('Low Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_precedence:('Low Medical History', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Register', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_precedence:('Register', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "alternate_precedence:('Register', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "alternate_precedence:('Register', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('Register', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_precedence:('Register', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_precedence:('Register', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_precedence:('Register', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('Register', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Send Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Reject Claim')": [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], "alternate_precedence:('Create Questionnaire', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0], "alternate_precedence:('Create Questionnaire', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "alternate_precedence:('Create Questionnaire', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "alternate_precedence:('Contact Hospital', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "alternate_precedence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "alternate_precedence:('Contact Hospital', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Contact Hospital', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_precedence:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_precedence:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Prepare Notification Content', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Prepare Notification Content', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "alternate_precedence:('Prepare Notification Content', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('High Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "alternate_precedence:('High Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "alternate_precedence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('High Medical History', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('High Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "alternate_precedence:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_precedence:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "alternate_succession:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "alternate_succession:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_succession:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_succession:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "alternate_succession:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_succession:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "alternate_succession:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "alternate_succession:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "alternate_succession:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "alternate_succession:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_succession:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "alternate_succession:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_succession:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "alternate_succession:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "alternate_succession:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "alternate_succession:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_succession:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "alternate_succession:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_succession:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_succession:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "alternate_succession:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "alternate_succession:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_succession:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_succession:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_succession:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_succession:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_succession:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_succession:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_succession:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "alternate_succession:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_succession:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "alternate_succession:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "alternate_succession:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "alternate_succession:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "alternate_succession:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "alternate_succession:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_succession:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "alternate_succession:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "alternate_succession:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "alternate_succession:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_succession:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "alternate_succession:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "alternate_succession:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_succession:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "alternate_succession:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_response:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_response:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Register')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "alternate_response:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, 1], "alternate_response:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "alternate_response:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], "alternate_response:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Register')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, 1, 0], "alternate_response:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "alternate_response:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "alternate_response:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "alternate_response:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "alternate_response:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_response:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_response:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_response:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_response:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_response:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_response:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_response:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_response:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_response:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_response:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_response:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_response:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_response:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Register')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Create Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Prepare Notification Content')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "alternate_response:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_response:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "alternate_response:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "alternate_response:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "alternate_response:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "alternate_response:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_response:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "alternate_response:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "alternate_response:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_response:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Register')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "chain_precedence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "chain_precedence:('Low Insurance Check', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Reject Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Reject Claim', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Reject Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Reject Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1], "chain_precedence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1], "chain_precedence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Accept Claim', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Accept Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_precedence:('Accept Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "chain_precedence:('Accept Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('High Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, 1, -1, 0], "chain_precedence:('High Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Insurance Check', 'Contact Hospital')": [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_precedence:('High Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Insurance Check', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_precedence:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "chain_precedence:('Low Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Low Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Medical History', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Register', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Register', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Register', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Register', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_precedence:('Register', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "chain_precedence:('Register', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Register', 'Create Questionnaire')": [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], "chain_precedence:('Register', 'Contact Hospital')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Register', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Register', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Send Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Create Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Create Questionnaire', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Create Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Create Questionnaire', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], "chain_precedence:('Create Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "chain_precedence:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Reject Claim')": [-1, 0, 1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], "chain_precedence:('Contact Hospital', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, -1, 1, 0], "chain_precedence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], "chain_precedence:('Contact Hospital', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Contact Hospital', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Contact Hospital', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Prepare Notification Content', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Prepare Notification Content', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "chain_precedence:('Prepare Notification Content', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, 1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "chain_precedence:('High Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Medical History', 'Reject Claim')": [1, 0, -1, 0, 0, -1, 1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('High Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_precedence:('High Medical History', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], "chain_precedence:('High Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Create Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Register')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], "chain_response:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, -1], "chain_response:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Register')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Create Questionnaire')": [0, -1, 0, 1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, -1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "chain_response:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, 1, -1, -1], "chain_response:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Contact Hospital')": [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_response:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "chain_response:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Register', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1], "chain_response:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Create Questionnaire')": [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], "chain_response:('Register', 'Contact Hospital')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Send Notification by e-mail')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Register')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Create Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Prepare Notification Content')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], "chain_response:('Create Questionnaire', 'High Medical History')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "chain_response:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Reject Claim')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, 1], "chain_response:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, -1], "chain_response:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], "chain_response:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "chain_response:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "chain_response:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Reject Claim')": [1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], "chain_response:('High Medical History', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Register')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "chain_succession:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "chain_succession:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1], "chain_succession:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1], "chain_succession:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "chain_succession:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "chain_succession:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "chain_succession:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_succession:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_succession:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "chain_succession:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "chain_succession:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, 1, -1, -1], "chain_succession:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Contact Hospital')": [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_succession:('High Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_succession:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "chain_succession:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "chain_succession:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Register', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1], "chain_succession:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Create Questionnaire')": [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], "chain_succession:('Register', 'Contact Hospital')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Send Notification by e-mail')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "chain_succession:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_succession:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "chain_succession:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], "chain_succession:('Create Questionnaire', 'High Medical History')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "chain_succession:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Reject Claim')": [-1, 0, 1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, 1], "chain_succession:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, -1, 1, -1], "chain_succession:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], "chain_succession:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_succession:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "chain_succession:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Reject Claim')": [1, 0, -1, 0, 0, -1, 1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_succession:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], "chain_succession:('High Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "chain_succession:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "not_chain_succession:('Low Insurance Check', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Register')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, -1], "not_chain_succession:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], "not_chain_succession:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Register')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Create Questionnaire')": [0, 1, 0, -1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Prepare Notification Content')": [0, -1, 0, 1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "not_chain_succession:('Accept Claim', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('High Insurance Check', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, -1, 1, 0], "not_chain_succession:('High Insurance Check', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, -1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'Contact Hospital')": [-1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, 1, -1, -1], "not_chain_succession:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Register', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Register', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Register', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Register', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, -1, -1], "not_chain_succession:('Register', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_chain_succession:('Register', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Register', 'Create Questionnaire')": [-1, 1, -1, 1, 1, 1, 1, -1, 1, -1, -1, -1, 1, 1], "not_chain_succession:('Register', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_chain_succession:('Register', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Register', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Register')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Create Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Prepare Notification Content')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Create Questionnaire', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Create Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, 1, 1, -1], "not_chain_succession:('Create Questionnaire', 'High Medical History')": [1, 0, 1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Reject Claim')": [1, 0, -1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, -1], "not_chain_succession:('Contact Hospital', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 1, -1, 0], "not_chain_succession:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, -1, 0, 0, 1, 0, -1, 1, 1], "not_chain_succession:('Contact Hospital', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'High Medical History')": [-1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Prepare Notification Content', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Prepare Notification Content', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "not_chain_succession:('Prepare Notification Content', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, -1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Reject Claim')": [-1, 0, 1, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('High Medical History', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Contact Hospital')": [1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, -1, -1, -1], "not_chain_succession:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Register')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Low Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Low Insurance Check', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Reject Claim', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Register')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, -1, 0, 0, 1, 0, 0, 1], "not_coexistence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Accept Claim', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Accept Claim', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Accept Claim', 'Register')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0], "not_coexistence:('Accept Claim', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_coexistence:('Accept Claim', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Accept Claim', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Accept Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Accept Claim', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Accept Claim', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, 1, 1, 1, 0, 1, 1, 0], "not_coexistence:('High Insurance Check', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('High Insurance Check', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('High Insurance Check', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_coexistence:('Low Medical History', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Low Medical History', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Low Medical History', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Low Medical History', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Medical History', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Register', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Register', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Register', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Register', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Register', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Register', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Register', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Register', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Register', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Register', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Register', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Send Questionnaire', 'Reject Claim')": [1, 1, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], "not_coexistence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0], "not_coexistence:('Send Questionnaire', 'High Insurance Check')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Send Questionnaire', 'Register')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Send Notification by Post')": [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Questionnaire', 'Create Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Contact Hospital')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Prepare Notification Content')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'High Medical History')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1], "not_coexistence:('Send Notification by Post', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_coexistence:('Send Notification by Post', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0], "not_coexistence:('Create Questionnaire', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Create Questionnaire', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Create Questionnaire', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Contact Hospital', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Contact Hospital', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Prepare Notification Content', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Prepare Notification Content', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('High Medical History', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Medical History', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Medical History', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('High Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Medical History', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Reject Claim')": [1, 0, 1, 1, 1, 1, 1, -1, 0, 0, 1, 0, 0, 1], "not_coexistence:('Send Notification by e-mail', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 1, 1, 1, 0, 1, 1, 0], "not_coexistence:('Send Notification by e-mail', 'High Insurance Check')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Low Medical History')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Register')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Send Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Create Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Contact Hospital')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Prepare Notification Content')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'High Medical History')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_succession:('Low Insurance Check', 'Reject Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'High Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Create Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Contact Hospital')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_succession:('Low Insurance Check', 'High Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_succession:('Reject Claim', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Register')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], "not_succession:('Reject Claim', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], "not_succession:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "not_succession:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, 1, 0, 0, 1], "not_succession:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Reject Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'High Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Register')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Create Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0], "not_succession:('Accept Claim', 'Contact Hospital')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "not_succession:('Accept Claim', 'High Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('High Insurance Check', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "not_succession:('High Insurance Check', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "not_succession:('High Insurance Check', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('High Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "not_succession:('High Insurance Check', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('High Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('High Insurance Check', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'Reject Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'High Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Create Questionnaire')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Contact Hospital')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'High Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_succession:('Register', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_succession:('Register', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_succession:('Register', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_succession:('Register', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_succession:('Register', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_succession:('Register', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_succession:('Register', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_succession:('Register', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_succession:('Register', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_succession:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_succession:('Register', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_succession:('Register', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_succession:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Reject Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'High Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Register')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Send Notification by Post')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Create Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Contact Hospital')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Prepare Notification Content')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'High Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Create Questionnaire', 'Low Insurance Check')": [1, -1, 1, 1, 1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Reject Claim')": [-1, 1, -1, 1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Accept Claim')": [1, -1, 1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'High Insurance Check')": [-1, 1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Contact Hospital')": [-1, 1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "not_succession:('Create Questionnaire', 'High Medical History')": [-1, 1, -1, 1, 1, 1, -1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_succession:('Contact Hospital', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "not_succession:('Contact Hospital', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "not_succession:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "not_succession:('Contact Hospital', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('Contact Hospital', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('Contact Hospital', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "not_succession:('Prepare Notification Content', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_succession:('High Medical History', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "not_succession:('High Medical History', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "not_succession:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "not_succession:('High Medical History', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('High Medical History', 'Contact Hospital')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('High Medical History', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('High Medical History', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Register')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "responded_existence:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "responded_existence:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "responded_existence:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "responded_existence:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "responded_existence:('Reject Claim', 'Register')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "responded_existence:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "responded_existence:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "responded_existence:('Reject Claim', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "responded_existence:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "responded_existence:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "responded_existence:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "responded_existence:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], "responded_existence:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Register')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "responded_existence:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "responded_existence:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "responded_existence:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "responded_existence:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "responded_existence:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "responded_existence:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "responded_existence:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "responded_existence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "responded_existence:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Register')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Create Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Prepare Notification Content')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "responded_existence:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "responded_existence:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "responded_existence:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "responded_existence:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "responded_existence:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "responded_existence:('Prepare Notification Content', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "responded_existence:('Prepare Notification Content', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "responded_existence:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "responded_existence:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "responded_existence:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Register')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "response:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "response:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "response:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "response:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Register')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "response:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, 1], "response:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "response:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], "response:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Register')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, 1, 0], "response:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "response:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "response:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "response:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "response:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "response:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "response:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "response:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "response:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "response:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "response:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "response:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "response:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "response:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "response:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "response:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "response:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "response:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "response:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "response:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "response:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Register')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Create Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Prepare Notification Content')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "response:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "response:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "response:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "response:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "response:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "response:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "response:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "response:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "response:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "response:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "response:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "response:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "response:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "response:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], "response:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "response:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "response:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Register')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "succession:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "succession:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "succession:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "succession:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "succession:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "succession:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "succession:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "succession:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "succession:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "succession:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "succession:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "succession:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "succession:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "succession:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "succession:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "succession:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "succession:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "succession:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "succession:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "succession:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "succession:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "succession:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "succession:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "succession:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "succession:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "succession:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "succession:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "succession:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "succession:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "succession:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "succession:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "succession:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "succession:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "succession:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "succession:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "succession:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "succession:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "succession:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "succession:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "succession:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "succession:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "succession:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "succession:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "succession:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "succession:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "succession:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "succession:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "succession:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "succession:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "succession:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "succession:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "succession:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "succession:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "succession:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "precedence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "precedence:('Low Insurance Check', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "precedence:('Low Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "precedence:('Low Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Reject Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Reject Claim', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Reject Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Reject Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "precedence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "precedence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Accept Claim', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Accept Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "precedence:('Accept Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "precedence:('Accept Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('High Insurance Check', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "precedence:('High Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "precedence:('High Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('High Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "precedence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "precedence:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "precedence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "precedence:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "precedence:('Low Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "precedence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "precedence:('Low Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "precedence:('Low Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "precedence:('Low Medical History', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Register', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "precedence:('Register', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "precedence:('Register', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "precedence:('Register', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "precedence:('Register', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "precedence:('Register', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "precedence:('Register', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "precedence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "precedence:('Register', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "precedence:('Register', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Send Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Create Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "precedence:('Create Questionnaire', 'Reject Claim')": [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], "precedence:('Create Questionnaire', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0], "precedence:('Create Questionnaire', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "precedence:('Create Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "precedence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Create Questionnaire', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Create Questionnaire', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "precedence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "precedence:('Create Questionnaire', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "precedence:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Contact Hospital', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "precedence:('Contact Hospital', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "precedence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "precedence:('Contact Hospital', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Contact Hospital', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "precedence:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "precedence:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Prepare Notification Content', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Prepare Notification Content', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Prepare Notification Content', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Prepare Notification Content', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Prepare Notification Content', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Prepare Notification Content', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "precedence:('Prepare Notification Content', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Prepare Notification Content', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('High Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "precedence:('High Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "precedence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "precedence:('High Medical History', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('High Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "precedence:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "precedence:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "precedence:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1]}
self.assertEqual(expected, train_results)
def test_transform_results_to_numpy(self):
train_results = {"init:('Low Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Reject Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Accept Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('High Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Low Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "init:('Send Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Contact Hospital',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('High Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "init:('Send Notification by e-mail',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exist:('Low Insurance Check',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exist:('Reject Claim',)": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "exist:('Accept Claim',)": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "exist:('High Insurance Check',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exist:('Low Medical History',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exist:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exist:('Send Questionnaire',)": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "exist:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "exist:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exist:('Contact Hospital',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exist:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exist:('High Medical History',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exist:('Send Notification by e-mail',)": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "absence1:('Low Insurance Check',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "absence1:('Reject Claim',)": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "absence1:('Accept Claim',)": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "absence1:('High Insurance Check',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "absence1:('Low Medical History',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "absence1:('Register',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "absence1:('Send Questionnaire',)": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "absence1:('Send Notification by Post',)": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "absence1:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "absence1:('Contact Hospital',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "absence1:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "absence1:('High Medical History',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "absence1:('Send Notification by e-mail',)": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "absence2:('Low Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Reject Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Accept Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('High Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Low Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Send Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Send Notification by Post',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Contact Hospital',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('High Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence2:('Send Notification by e-mail',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Low Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Reject Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Accept Claim',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('High Insurance Check',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Low Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Send Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Send Notification by Post',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Contact Hospital',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('High Medical History',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "absence3:('Send Notification by e-mail',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Low Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Low Insurance Check', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Low Insurance Check', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Low Insurance Check', 'Send Notification by Post')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Low Insurance Check', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Insurance Check', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Insurance Check', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Insurance Check', 'Send Notification by e-mail')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Reject Claim', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Reject Claim', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Reject Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Reject Claim', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Reject Claim', 'Register')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Reject Claim', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1], "choice:('Reject Claim', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, 1, 1, -1, 1, -1, -1, 1], "choice:('Reject Claim', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Reject Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Reject Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Reject Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Reject Claim', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Accept Claim', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Accept Claim', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Accept Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Accept Claim', 'Register')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'Send Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1], "choice:('Accept Claim', 'Send Notification by Post')": [-1, 1, -1, 1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "choice:('Accept Claim', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Accept Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Accept Claim', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Accept Claim', 'Send Notification by e-mail')": [-1, 1, -1, -1, -1, -1, -1, 1, 1, 1, -1, 1, 1, -1], "choice:('High Insurance Check', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('High Insurance Check', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('High Insurance Check', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Insurance Check', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Insurance Check', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('High Insurance Check', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('High Insurance Check', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Insurance Check', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Low Medical History', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Low Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Low Medical History', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Medical History', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'Send Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Low Medical History', 'Send Notification by Post')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Low Medical History', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Low Medical History', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Low Medical History', 'Send Notification by e-mail')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Register', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Register', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Register', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Register', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Register', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Register', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Register', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Register', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Register', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Low Insurance Check')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Send Questionnaire', 'Reject Claim')": [1, 1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1], "choice:('Send Questionnaire', 'Accept Claim')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1], "choice:('Send Questionnaire', 'High Insurance Check')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Low Medical History')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Send Questionnaire', 'Register')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Send Questionnaire', 'Send Notification by Post')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Questionnaire', 'Create Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Send Questionnaire', 'Contact Hospital')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Prepare Notification Content')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Send Questionnaire', 'High Medical History')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Send Questionnaire', 'Send Notification by e-mail')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, 1, -1, 1, -1, -1, 1], "choice:('Send Notification by Post', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "choice:('Send Notification by Post', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Send Notification by Post', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Send Notification by Post', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Notification by Post', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Send Notification by Post', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Send Notification by Post', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Send Notification by Post', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Send Notification by Post', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Create Questionnaire', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Create Questionnaire', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Create Questionnaire', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Create Questionnaire', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Create Questionnaire', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Create Questionnaire', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Create Questionnaire', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Create Questionnaire', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Create Questionnaire', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Create Questionnaire', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('Contact Hospital', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('Contact Hospital', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Contact Hospital', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Contact Hospital', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('Contact Hospital', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('Contact Hospital', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Contact Hospital', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Contact Hospital', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Contact Hospital', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "choice:('Prepare Notification Content', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "choice:('Prepare Notification Content', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Prepare Notification Content', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Prepare Notification Content', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "choice:('Prepare Notification Content', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "choice:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('Prepare Notification Content', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Prepare Notification Content', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('Prepare Notification Content', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], "choice:('High Medical History', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], "choice:('High Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Medical History', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Medical History', 'Send Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], "choice:('High Medical History', 'Send Notification by Post')": [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "choice:('High Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "choice:('High Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "choice:('High Medical History', 'Send Notification by e-mail')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Reject Claim')": [1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 1], "choice:('Send Notification by e-mail', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, 1, 1, 1, -1, 1, 1, -1], "choice:('Send Notification by e-mail', 'High Insurance Check')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Low Medical History')": [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Register')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Send Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Send Notification by Post')": [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], "choice:('Send Notification by e-mail', 'Create Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Contact Hospital')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "choice:('Send Notification by e-mail', 'Prepare Notification Content')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "choice:('Send Notification by e-mail', 'High Medical History')": [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], "coexistence:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "coexistence:('Low Insurance Check', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Low Insurance Check', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Reject Claim', 'Register')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "coexistence:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "coexistence:('Reject Claim', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "coexistence:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Accept Claim', 'Register')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "coexistence:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "coexistence:('Accept Claim', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "coexistence:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Insurance Check', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('High Insurance Check', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "coexistence:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "coexistence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "coexistence:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Medical History', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "coexistence:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "coexistence:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "coexistence:('Send Questionnaire', 'Register')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "coexistence:('Send Questionnaire', 'Create Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Prepare Notification Content')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "coexistence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "coexistence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "coexistence:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('Contact Hospital', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Contact Hospital', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "coexistence:('Prepare Notification Content', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "coexistence:('Prepare Notification Content', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "coexistence:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "coexistence:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "coexistence:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "coexistence:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "coexistence:('High Medical History', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Medical History', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "coexistence:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "coexistence:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "coexistence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "coexistence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "coexistence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "coexistence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "exactly1:('Low Insurance Check',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exactly1:('Reject Claim',)": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "exactly1:('Accept Claim',)": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "exactly1:('High Insurance Check',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exactly1:('Low Medical History',)": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "exactly1:('Register',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exactly1:('Send Questionnaire',)": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "exactly1:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "exactly1:('Create Questionnaire',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exactly1:('Contact Hospital',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exactly1:('Prepare Notification Content',)": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "exactly1:('High Medical History',)": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "exactly1:('Send Notification by e-mail',)": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "exactly2:('Low Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Reject Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Accept Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('High Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Low Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Register',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Send Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Contact Hospital',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('High Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly2:('Send Notification by e-mail',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Low Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Reject Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Accept Claim',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('High Insurance Check',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Low Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Register',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Send Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Send Notification by Post',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Create Questionnaire',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Contact Hospital',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Prepare Notification Content',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('High Medical History',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "exactly3:('Send Notification by e-mail',)": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "alternate_precedence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_precedence:('Low Insurance Check', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "alternate_precedence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_precedence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Accept Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "alternate_precedence:('Accept Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_precedence:('Accept Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "alternate_precedence:('High Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "alternate_precedence:('High Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('High Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_precedence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "alternate_precedence:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_precedence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_precedence:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "alternate_precedence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_precedence:('Low Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_precedence:('Low Medical History', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Register', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_precedence:('Register', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "alternate_precedence:('Register', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "alternate_precedence:('Register', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('Register', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_precedence:('Register', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_precedence:('Register', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_precedence:('Register', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('Register', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Send Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Reject Claim')": [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], "alternate_precedence:('Create Questionnaire', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0], "alternate_precedence:('Create Questionnaire', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Create Questionnaire', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "alternate_precedence:('Create Questionnaire', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "alternate_precedence:('Contact Hospital', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "alternate_precedence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "alternate_precedence:('Contact Hospital', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Contact Hospital', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_precedence:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_precedence:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Prepare Notification Content', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Prepare Notification Content', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "alternate_precedence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "alternate_precedence:('Prepare Notification Content', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('High Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "alternate_precedence:('High Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "alternate_precedence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_precedence:('High Medical History', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('High Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "alternate_precedence:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "alternate_precedence:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_precedence:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_precedence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_precedence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_precedence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_precedence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "alternate_succession:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "alternate_succession:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_succession:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_succession:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "alternate_succession:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_succession:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "alternate_succession:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "alternate_succession:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "alternate_succession:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "alternate_succession:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "alternate_succession:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_succession:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "alternate_succession:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_succession:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "alternate_succession:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "alternate_succession:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "alternate_succession:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_succession:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "alternate_succession:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_succession:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_succession:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "alternate_succession:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "alternate_succession:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_succession:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_succession:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_succession:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_succession:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_succession:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_succession:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_succession:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_succession:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "alternate_succession:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "alternate_succession:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_succession:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "alternate_succession:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "alternate_succession:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "alternate_succession:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "alternate_succession:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "alternate_succession:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "alternate_succession:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "alternate_succession:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "alternate_succession:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "alternate_succession:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "alternate_succession:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "alternate_succession:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_succession:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "alternate_succession:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "alternate_succession:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "alternate_succession:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "alternate_succession:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_succession:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_succession:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "alternate_succession:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "alternate_succession:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_succession:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "alternate_response:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_response:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Register')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "alternate_response:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, 1], "alternate_response:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "alternate_response:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "alternate_response:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], "alternate_response:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Register')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, 1, 0], "alternate_response:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "alternate_response:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "alternate_response:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "alternate_response:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "alternate_response:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Insurance Check', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "alternate_response:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "alternate_response:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "alternate_response:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "alternate_response:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_response:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "alternate_response:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "alternate_response:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_response:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "alternate_response:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_response:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_response:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_response:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_response:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "alternate_response:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "alternate_response:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_response:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Register')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Create Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Prepare Notification Content')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "alternate_response:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_response:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "alternate_response:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "alternate_response:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_response:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "alternate_response:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "alternate_response:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "alternate_response:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "alternate_response:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "alternate_response:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "alternate_response:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "alternate_response:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "alternate_response:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "alternate_response:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('High Medical History', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], "alternate_response:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "alternate_response:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "alternate_response:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Register')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "alternate_response:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "chain_precedence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "chain_precedence:('Low Insurance Check', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Reject Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Reject Claim', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Reject Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Reject Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1], "chain_precedence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1], "chain_precedence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Accept Claim', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Accept Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_precedence:('Accept Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "chain_precedence:('Accept Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('High Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, 1, -1, 0], "chain_precedence:('High Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Insurance Check', 'Contact Hospital')": [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_precedence:('High Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Insurance Check', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_precedence:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "chain_precedence:('Low Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Low Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Low Medical History', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Register', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Register', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Register', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Register', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_precedence:('Register', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "chain_precedence:('Register', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Register', 'Create Questionnaire')": [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], "chain_precedence:('Register', 'Contact Hospital')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Register', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Register', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Send Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Create Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Create Questionnaire', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Create Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Create Questionnaire', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Create Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], "chain_precedence:('Create Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "chain_precedence:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Reject Claim')": [-1, 0, 1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], "chain_precedence:('Contact Hospital', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, -1, 1, 0], "chain_precedence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], "chain_precedence:('Contact Hospital', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Contact Hospital', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Contact Hospital', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Prepare Notification Content', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Prepare Notification Content', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "chain_precedence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "chain_precedence:('Prepare Notification Content', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, 1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "chain_precedence:('High Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Medical History', 'Reject Claim')": [1, 0, -1, 0, 0, -1, 1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('High Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_precedence:('High Medical History', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], "chain_precedence:('High Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_precedence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_precedence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_precedence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_precedence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Create Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Register')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], "chain_response:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, -1], "chain_response:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_response:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Register')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Create Questionnaire')": [0, -1, 0, 1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, -1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "chain_response:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_response:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, 1, -1, -1], "chain_response:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Contact Hospital')": [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Insurance Check', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_response:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "chain_response:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_response:('Register', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1], "chain_response:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Create Questionnaire')": [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], "chain_response:('Register', 'Contact Hospital')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Register', 'Send Notification by e-mail')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Register')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Create Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Prepare Notification Content')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "chain_response:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "chain_response:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], "chain_response:('Create Questionnaire', 'High Medical History')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "chain_response:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Reject Claim')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, 1], "chain_response:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, -1], "chain_response:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], "chain_response:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "chain_response:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_response:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "chain_response:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Reject Claim')": [1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Create Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], "chain_response:('High Medical History', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_response:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Register')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_response:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "chain_succession:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "chain_succession:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1], "chain_succession:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1], "chain_succession:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "chain_succession:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "chain_succession:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "chain_succession:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_succession:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_succession:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], "chain_succession:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "chain_succession:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, 1, -1, -1], "chain_succession:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'Contact Hospital')": [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_succession:('High Insurance Check', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Insurance Check', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], "chain_succession:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "chain_succession:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "chain_succession:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Register', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1], "chain_succession:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Create Questionnaire')": [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], "chain_succession:('Register', 'Contact Hospital')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Register', 'Send Notification by e-mail')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "chain_succession:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "chain_succession:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "chain_succession:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "chain_succession:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Send Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], "chain_succession:('Create Questionnaire', 'High Medical History')": [-1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "chain_succession:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Reject Claim')": [-1, 0, 1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, 1], "chain_succession:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, -1, 1, -1], "chain_succession:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], "chain_succession:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], "chain_succession:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "chain_succession:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Reject Claim')": [1, 0, -1, 0, 0, -1, 1, -1, 0, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], "chain_succession:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "chain_succession:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], "chain_succession:('High Medical History', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "chain_succession:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "chain_succession:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "chain_succession:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "chain_succession:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "not_chain_succession:('Low Insurance Check', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Register')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Reject Claim', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, -1], "not_chain_succession:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], "not_chain_succession:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Register')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Accept Claim', 'Create Questionnaire')": [0, 1, 0, -1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Prepare Notification Content')": [0, -1, 0, 1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "not_chain_succession:('Accept Claim', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('High Insurance Check', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, -1, 1, 0], "not_chain_succession:('High Insurance Check', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Insurance Check', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, -1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'Contact Hospital')": [-1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Insurance Check', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, 1, -1, -1], "not_chain_succession:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Low Medical History', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Register', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Register', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Register', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Register', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, -1, -1], "not_chain_succession:('Register', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_chain_succession:('Register', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Register', 'Create Questionnaire')": [-1, 1, -1, 1, 1, 1, 1, -1, 1, -1, -1, -1, 1, 1], "not_chain_succession:('Register', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_chain_succession:('Register', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Register', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Register')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Create Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Prepare Notification Content')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Create Questionnaire', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Create Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_chain_succession:('Create Questionnaire', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, 1, 1, -1], "not_chain_succession:('Create Questionnaire', 'High Medical History')": [1, 0, 1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], "not_chain_succession:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Reject Claim')": [1, 0, -1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, -1], "not_chain_succession:('Contact Hospital', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 1, -1, 0], "not_chain_succession:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, -1, 0, 0, 1, 0, -1, 1, 1], "not_chain_succession:('Contact Hospital', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Contact Hospital', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'High Medical History')": [-1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_chain_succession:('Prepare Notification Content', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_chain_succession:('Prepare Notification Content', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "not_chain_succession:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "not_chain_succession:('Prepare Notification Content', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, -1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Reject Claim')": [-1, 0, 1, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 1], "not_chain_succession:('High Medical History', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], "not_chain_succession:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('High Medical History', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Contact Hospital')": [1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, -1, -1, -1], "not_chain_succession:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_chain_succession:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Register')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_chain_succession:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Low Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Low Insurance Check', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Low Insurance Check', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Reject Claim', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Register')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1], "not_coexistence:('Reject Claim', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Reject Claim', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, -1, 0, 0, 1, 0, 0, 1], "not_coexistence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Accept Claim', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Accept Claim', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Accept Claim', 'Register')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0], "not_coexistence:('Accept Claim', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_coexistence:('Accept Claim', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Accept Claim', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Accept Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Accept Claim', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Accept Claim', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, 1, 1, 1, 0, 1, 1, 0], "not_coexistence:('High Insurance Check', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('High Insurance Check', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('High Insurance Check', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('High Insurance Check', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Insurance Check', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_coexistence:('Low Medical History', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], "not_coexistence:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], "not_coexistence:('Low Medical History', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Register')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Low Medical History', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Low Medical History', 'Create Questionnaire')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Low Medical History', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Low Medical History', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Register', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Register', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Register', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Register', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Register', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Register', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Register', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Register', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Register', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Register', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Register', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Send Questionnaire', 'Reject Claim')": [1, 1, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], "not_coexistence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0], "not_coexistence:('Send Questionnaire', 'High Insurance Check')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_coexistence:('Send Questionnaire', 'Register')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Send Notification by Post')": [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Questionnaire', 'Create Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Contact Hospital')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Prepare Notification Content')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'High Medical History')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1], "not_coexistence:('Send Notification by Post', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_coexistence:('Send Notification by Post', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by Post', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0], "not_coexistence:('Create Questionnaire', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Create Questionnaire', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Create Questionnaire', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Create Questionnaire', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Create Questionnaire', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('Contact Hospital', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('Contact Hospital', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Contact Hospital', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('Contact Hospital', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_coexistence:('Prepare Notification Content', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_coexistence:('Prepare Notification Content', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_coexistence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('Prepare Notification Content', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], "not_coexistence:('High Medical History', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], "not_coexistence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Medical History', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Register')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Medical History', 'Send Questionnaire')": [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], "not_coexistence:('High Medical History', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], "not_coexistence:('High Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_coexistence:('High Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_coexistence:('High Medical History', 'Send Notification by e-mail')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Reject Claim')": [1, 0, 1, 1, 1, 1, 1, -1, 0, 0, 1, 0, 0, 1], "not_coexistence:('Send Notification by e-mail', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 1, 1, 1, 0, 1, 1, 0], "not_coexistence:('Send Notification by e-mail', 'High Insurance Check')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Low Medical History')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Register')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Send Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0], "not_coexistence:('Send Notification by e-mail', 'Create Questionnaire')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Contact Hospital')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'Prepare Notification Content')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_coexistence:('Send Notification by e-mail', 'High Medical History')": [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], "not_succession:('Low Insurance Check', 'Reject Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'High Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Create Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Contact Hospital')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_succession:('Low Insurance Check', 'High Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_succession:('Reject Claim', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Register')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], "not_succession:('Reject Claim', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], "not_succession:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "not_succession:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "not_succession:('Reject Claim', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, 1, 0, 0, 1], "not_succession:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Reject Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'High Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Register')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Create Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0], "not_succession:('Accept Claim', 'Contact Hospital')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "not_succession:('Accept Claim', 'High Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('Accept Claim', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "not_succession:('High Insurance Check', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "not_succession:('High Insurance Check', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "not_succession:('High Insurance Check', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Insurance Check', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('High Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "not_succession:('High Insurance Check', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('High Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('High Insurance Check', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Low Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'Reject Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'High Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Send Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'Send Notification by Post')": [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Create Questionnaire')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Contact Hospital')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Prepare Notification Content')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "not_succession:('Low Medical History', 'High Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "not_succession:('Low Medical History', 'Send Notification by e-mail')": [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], "not_succession:('Register', 'Low Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_succession:('Register', 'Reject Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "not_succession:('Register', 'Accept Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "not_succession:('Register', 'High Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_succession:('Register', 'Low Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "not_succession:('Register', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_succession:('Register', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_succession:('Register', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_succession:('Register', 'Contact Hospital')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_succession:('Register', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "not_succession:('Register', 'High Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "not_succession:('Register', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_succession:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Reject Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'High Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Register')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Send Notification by Post')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Create Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Contact Hospital')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Prepare Notification Content')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'High Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "not_succession:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "not_succession:('Create Questionnaire', 'Low Insurance Check')": [1, -1, 1, 1, 1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Reject Claim')": [-1, 1, -1, 1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Accept Claim')": [1, -1, 1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'High Insurance Check')": [-1, 1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, -1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_succession:('Create Questionnaire', 'Contact Hospital')": [-1, 1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "not_succession:('Create Questionnaire', 'High Medical History')": [-1, 1, -1, 1, 1, 1, -1, 1, 1, -1, 1, -1, 1, 1], "not_succession:('Create Questionnaire', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_succession:('Contact Hospital', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "not_succession:('Contact Hospital', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "not_succession:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "not_succession:('Contact Hospital', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('Contact Hospital', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('Contact Hospital', 'High Medical History')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Contact Hospital', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Low Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Reject Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Accept Claim')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'High Insurance Check')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Low Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Send Questionnaire')": [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Send Notification by Post')": [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "not_succession:('Prepare Notification Content', 'Contact Hospital')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'High Medical History')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "not_succession:('Prepare Notification Content', 'Send Notification by e-mail')": [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], "not_succession:('High Medical History', 'Low Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "not_succession:('High Medical History', 'Accept Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "not_succession:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "not_succession:('High Medical History', 'Low Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Send Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Send Notification by Post')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('High Medical History', 'Create Questionnaire')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "not_succession:('High Medical History', 'Contact Hospital')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('High Medical History', 'Prepare Notification Content')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "not_succession:('High Medical History', 'Send Notification by e-mail')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "not_succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Register')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "not_succession:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "responded_existence:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "responded_existence:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "responded_existence:('Reject Claim', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "responded_existence:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "responded_existence:('Reject Claim', 'Register')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "responded_existence:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "responded_existence:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "responded_existence:('Reject Claim', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "responded_existence:('Reject Claim', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "responded_existence:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "responded_existence:('Reject Claim', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "responded_existence:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], "responded_existence:('Accept Claim', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Register')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "responded_existence:('Accept Claim', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "responded_existence:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "responded_existence:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "responded_existence:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "responded_existence:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Insurance Check', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Register')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "responded_existence:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "responded_existence:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "responded_existence:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "responded_existence:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "responded_existence:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "responded_existence:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "responded_existence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "responded_existence:('Send Questionnaire', 'Low Insurance Check')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Accept Claim')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Low Medical History')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Register')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Create Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Prepare Notification Content')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "responded_existence:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "responded_existence:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "responded_existence:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "responded_existence:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "responded_existence:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "responded_existence:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "responded_existence:('Contact Hospital', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Contact Hospital', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "responded_existence:('Prepare Notification Content', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "responded_existence:('Prepare Notification Content', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Register')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "responded_existence:('Prepare Notification Content', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "responded_existence:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "responded_existence:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "responded_existence:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "responded_existence:('High Medical History', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Register')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('High Medical History', 'Create Questionnaire')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "responded_existence:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "responded_existence:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Register')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "responded_existence:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Low Insurance Check', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "response:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "response:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "response:('Low Insurance Check', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "response:('Reject Claim', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Register')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "response:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, 1], "response:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "response:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "response:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], "response:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Register')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Create Questionnaire')": [0, -1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, 1, 0], "response:('Accept Claim', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "response:('Accept Claim', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "response:('High Insurance Check', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "response:('High Insurance Check', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "response:('High Insurance Check', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Insurance Check', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "response:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "response:('High Insurance Check', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "response:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "response:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'Reject Claim')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'High Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Register')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Create Questionnaire')": [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Contact Hospital')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Prepare Notification Content')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "response:('Low Medical History', 'High Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "response:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "response:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "response:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "response:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "response:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "response:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "response:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "response:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "response:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "response:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "response:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "response:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "response:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "response:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Reject Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'High Insurance Check')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Register')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Create Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Contact Hospital')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Prepare Notification Content')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'High Medical History')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "response:('Send Notification by Post', 'Low Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Reject Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Accept Claim')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'High Insurance Check')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Low Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Register')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Send Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Create Questionnaire')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Contact Hospital')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Prepare Notification Content')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'High Medical History')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "response:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "response:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "response:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "response:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "response:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "response:('Contact Hospital', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "response:('Contact Hospital', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "response:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "response:('Contact Hospital', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], "response:('Contact Hospital', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "response:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "response:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "response:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "response:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "response:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "response:('High Medical History', 'Low Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], "response:('High Medical History', 'Accept Claim')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], "response:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "response:('High Medical History', 'Low Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Register')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Send Questionnaire')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('High Medical History', 'Create Questionnaire')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], "response:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "response:('High Medical History', 'Prepare Notification Content')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "response:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "response:('Send Notification by e-mail', 'Low Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Reject Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Accept Claim')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'High Insurance Check')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Low Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Register')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Send Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Create Questionnaire')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Contact Hospital')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'Prepare Notification Content')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "response:('Send Notification by e-mail', 'High Medical History')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "succession:('Low Insurance Check', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "succession:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "succession:('Low Insurance Check', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "succession:('Low Insurance Check', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "succession:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Low Insurance Check', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Insurance Check', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "succession:('Reject Claim', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Reject Claim', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], "succession:('Reject Claim', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "succession:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "succession:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], "succession:('Reject Claim', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], "succession:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "succession:('Accept Claim', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Accept Claim', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], "succession:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "succession:('Accept Claim', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "succession:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "succession:('Accept Claim', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "succession:('Accept Claim', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Accept Claim', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "succession:('High Insurance Check', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "succession:('High Insurance Check', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "succession:('High Insurance Check', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('High Insurance Check', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "succession:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "succession:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "succession:('High Insurance Check', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "succession:('Low Medical History', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], "succession:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], "succession:('Low Medical History', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], "succession:('Low Medical History', 'Send Notification by Post')": [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], "succession:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Low Medical History', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Low Medical History', 'Send Notification by e-mail')": [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], "succession:('Register', 'Low Insurance Check')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Register', 'Reject Claim')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "succession:('Register', 'Accept Claim')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "succession:('Register', 'High Insurance Check')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Register', 'Low Medical History')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "succession:('Register', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "succession:('Register', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "succession:('Register', 'Contact Hospital')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "succession:('Register', 'High Medical History')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Register', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Questionnaire', 'Reject Claim')": [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "succession:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], "succession:('Send Questionnaire', 'High Insurance Check')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Send Notification by Post')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "succession:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Contact Hospital')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'High Medical History')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Send Questionnaire', 'Send Notification by e-mail')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], "succession:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "succession:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "succession:('Create Questionnaire', 'Low Insurance Check')": [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Reject Claim')": [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Accept Claim')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'High Insurance Check')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Create Questionnaire', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "succession:('Create Questionnaire', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Create Questionnaire', 'Contact Hospital')": [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "succession:('Create Questionnaire', 'High Medical History')": [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], "succession:('Create Questionnaire', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "succession:('Contact Hospital', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "succession:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "succession:('Contact Hospital', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('Contact Hospital', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "succession:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "succession:('Contact Hospital', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Prepare Notification Content', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Reject Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'High Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Send Questionnaire')": [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], "succession:('Prepare Notification Content', 'Send Notification by Post')": [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "succession:('Prepare Notification Content', 'Contact Hospital')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'High Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Prepare Notification Content', 'Send Notification by e-mail')": [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Low Insurance Check')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], "succession:('High Medical History', 'Accept Claim')": [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], "succession:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "succession:('High Medical History', 'Low Medical History')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Send Questionnaire')": [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], "succession:('High Medical History', 'Send Notification by Post')": [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], "succession:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "succession:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "succession:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "succession:('High Medical History', 'Send Notification by e-mail')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], "succession:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], "succession:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "succession:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], "succession:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], "succession:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "succession:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "succession:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "precedence:('Low Insurance Check', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "precedence:('Low Insurance Check', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Low Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Low Insurance Check', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Low Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Low Insurance Check', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "precedence:('Low Insurance Check', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "precedence:('Low Insurance Check', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Reject Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Reject Claim', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Reject Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Reject Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Reject Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Reject Claim', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Reject Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Reject Claim', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], "precedence:('Reject Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Reject Claim', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], "precedence:('Reject Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Reject Claim', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Accept Claim', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Accept Claim', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Accept Claim', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Accept Claim', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Accept Claim', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Accept Claim', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Accept Claim', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Accept Claim', 'Create Questionnaire')": [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], "precedence:('Accept Claim', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Accept Claim', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], "precedence:('Accept Claim', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Accept Claim', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('High Insurance Check', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Insurance Check', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "precedence:('High Insurance Check', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "precedence:('High Insurance Check', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Insurance Check', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('High Insurance Check', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('High Insurance Check', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('High Insurance Check', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "precedence:('High Insurance Check', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], "precedence:('High Insurance Check', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "precedence:('High Insurance Check', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], "precedence:('High Insurance Check', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Low Medical History', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "precedence:('Low Medical History', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], "precedence:('Low Medical History', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], "precedence:('Low Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Low Medical History', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Low Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Low Medical History', 'Create Questionnaire')": [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], "precedence:('Low Medical History', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Medical History', 'Prepare Notification Content')": [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], "precedence:('Low Medical History', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Low Medical History', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Register', 'Low Insurance Check')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "precedence:('Register', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], "precedence:('Register', 'Accept Claim')": [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], "precedence:('Register', 'High Insurance Check')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "precedence:('Register', 'Low Medical History')": [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], "precedence:('Register', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Register', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Register', 'Create Questionnaire')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "precedence:('Register', 'Contact Hospital')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "precedence:('Register', 'Prepare Notification Content')": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "precedence:('Register', 'High Medical History')": [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], "precedence:('Register', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Send Questionnaire', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Questionnaire', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Send Questionnaire', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Send Questionnaire', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Send Questionnaire', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Questionnaire', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Questionnaire', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Questionnaire', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Send Notification by Post', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by Post', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Send Notification by Post', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Send Notification by Post', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by Post', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by Post', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by Post', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Send Notification by Post', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by Post', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by Post', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by Post', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by Post', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Create Questionnaire', 'Low Insurance Check')": [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "precedence:('Create Questionnaire', 'Reject Claim')": [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], "precedence:('Create Questionnaire', 'Accept Claim')": [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0], "precedence:('Create Questionnaire', 'High Insurance Check')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "precedence:('Create Questionnaire', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], "precedence:('Create Questionnaire', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Create Questionnaire', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Create Questionnaire', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Create Questionnaire', 'Contact Hospital')": [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], "precedence:('Create Questionnaire', 'Prepare Notification Content')": [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], "precedence:('Create Questionnaire', 'High Medical History')": [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], "precedence:('Create Questionnaire', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('Contact Hospital', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Contact Hospital', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "precedence:('Contact Hospital', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "precedence:('Contact Hospital', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], "precedence:('Contact Hospital', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Contact Hospital', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Contact Hospital', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Contact Hospital', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Contact Hospital', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], "precedence:('Contact Hospital', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "precedence:('Contact Hospital', 'High Medical History')": [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Contact Hospital', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Prepare Notification Content', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Prepare Notification Content', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Prepare Notification Content', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Prepare Notification Content', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Prepare Notification Content', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Prepare Notification Content', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Prepare Notification Content', 'Send Questionnaire')": [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], "precedence:('Prepare Notification Content', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], "precedence:('Prepare Notification Content', 'Create Questionnaire')": [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], "precedence:('Prepare Notification Content', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Prepare Notification Content', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Prepare Notification Content', 'Send Notification by e-mail')": [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], "precedence:('High Medical History', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Medical History', 'Reject Claim')": [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], "precedence:('High Medical History', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], "precedence:('High Medical History', 'High Insurance Check')": [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], "precedence:('High Medical History', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('High Medical History', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('High Medical History', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('High Medical History', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('High Medical History', 'Create Questionnaire')": [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], "precedence:('High Medical History', 'Contact Hospital')": [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], "precedence:('High Medical History', 'Prepare Notification Content')": [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], "precedence:('High Medical History', 'Send Notification by e-mail')": [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Low Insurance Check')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Reject Claim')": [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], "precedence:('Send Notification by e-mail', 'Accept Claim')": [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], "precedence:('Send Notification by e-mail', 'High Insurance Check')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Low Medical History')": [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Register')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Send Questionnaire')": [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Send Notification by Post')": [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], "precedence:('Send Notification by e-mail', 'Create Questionnaire')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Contact Hospital')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], "precedence:('Send Notification by e-mail', 'Prepare Notification Content')": [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], "precedence:('Send Notification by e-mail', 'High Medical History')": [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1]}
cols = None
data, labels, featurenames, train_names = transform_results_to_numpy(train_results, self.labels, self.transformed_log, cols)
# expected_data =
# expected_labels =
expected_featurenames = ["init:('Low Insurance Check',)", "init:('Reject Claim',)", "init:('Accept Claim',)", "init:('High Insurance Check',)", "init:('Low Medical History',)", "init:('Register',)", "init:('Send Questionnaire',)", "init:('Send Notification by Post',)", "init:('Create Questionnaire',)", "init:('Contact Hospital',)", "init:('Prepare Notification Content',)", "init:('High Medical History',)", "init:('Send Notification by e-mail',)", "exist:('Low Insurance Check',)", "exist:('Reject Claim',)", "exist:('Accept Claim',)", "exist:('High Insurance Check',)", "exist:('Low Medical History',)", "exist:('Register',)", "exist:('Send Questionnaire',)", "exist:('Send Notification by Post',)", "exist:('Create Questionnaire',)", "exist:('Contact Hospital',)", "exist:('Prepare Notification Content',)", "exist:('High Medical History',)", "exist:('Send Notification by e-mail',)", "absence1:('Low Insurance Check',)", "absence1:('Reject Claim',)", "absence1:('Accept Claim',)", "absence1:('High Insurance Check',)", "absence1:('Low Medical History',)", "absence1:('Register',)", "absence1:('Send Questionnaire',)", "absence1:('Send Notification by Post',)", "absence1:('Create Questionnaire',)", "absence1:('Contact Hospital',)", "absence1:('Prepare Notification Content',)", "absence1:('High Medical History',)", "absence1:('Send Notification by e-mail',)", "absence2:('Low Insurance Check',)", "absence2:('Reject Claim',)", "absence2:('Accept Claim',)", "absence2:('High Insurance Check',)", "absence2:('Low Medical History',)", "absence2:('Register',)", "absence2:('Send Questionnaire',)", "absence2:('Send Notification by Post',)", "absence2:('Create Questionnaire',)", "absence2:('Contact Hospital',)", "absence2:('Prepare Notification Content',)", "absence2:('High Medical History',)", "absence2:('Send Notification by e-mail',)", "absence3:('Low Insurance Check',)", "absence3:('Reject Claim',)", "absence3:('Accept Claim',)", "absence3:('High Insurance Check',)", "absence3:('Low Medical History',)", "absence3:('Register',)", "absence3:('Send Questionnaire',)", "absence3:('Send Notification by Post',)", "absence3:('Create Questionnaire',)", "absence3:('Contact Hospital',)", "absence3:('Prepare Notification Content',)", "absence3:('High Medical History',)", "absence3:('Send Notification by e-mail',)", "choice:('Low Insurance Check', 'Reject Claim')", "choice:('Low Insurance Check', 'Accept Claim')", "choice:('Low Insurance Check', 'High Insurance Check')", "choice:('Low Insurance Check', 'Low Medical History')", "choice:('Low Insurance Check', 'Register')", "choice:('Low Insurance Check', 'Send Questionnaire')", "choice:('Low Insurance Check', 'Send Notification by Post')", "choice:('Low Insurance Check', 'Create Questionnaire')", "choice:('Low Insurance Check', 'Contact Hospital')", "choice:('Low Insurance Check', 'Prepare Notification Content')", "choice:('Low Insurance Check', 'High Medical History')", "choice:('Low Insurance Check', 'Send Notification by e-mail')", "choice:('Reject Claim', 'Low Insurance Check')", "choice:('Reject Claim', 'Accept Claim')", "choice:('Reject Claim', 'High Insurance Check')", "choice:('Reject Claim', 'Low Medical History')", "choice:('Reject Claim', 'Register')", "choice:('Reject Claim', 'Send Questionnaire')", "choice:('Reject Claim', 'Send Notification by Post')", "choice:('Reject Claim', 'Create Questionnaire')", "choice:('Reject Claim', 'Contact Hospital')", "choice:('Reject Claim', 'Prepare Notification Content')", "choice:('Reject Claim', 'High Medical History')", "choice:('Reject Claim', 'Send Notification by e-mail')", "choice:('Accept Claim', 'Low Insurance Check')", "choice:('Accept Claim', 'Reject Claim')", "choice:('Accept Claim', 'High Insurance Check')", "choice:('Accept Claim', 'Low Medical History')", "choice:('Accept Claim', 'Register')", "choice:('Accept Claim', 'Send Questionnaire')", "choice:('Accept Claim', 'Send Notification by Post')", "choice:('Accept Claim', 'Create Questionnaire')", "choice:('Accept Claim', 'Contact Hospital')", "choice:('Accept Claim', 'Prepare Notification Content')", "choice:('Accept Claim', 'High Medical History')", "choice:('Accept Claim', 'Send Notification by e-mail')", "choice:('High Insurance Check', 'Low Insurance Check')", "choice:('High Insurance Check', 'Reject Claim')", "choice:('High Insurance Check', 'Accept Claim')", "choice:('High Insurance Check', 'Low Medical History')", "choice:('High Insurance Check', 'Register')", "choice:('High Insurance Check', 'Send Questionnaire')", "choice:('High Insurance Check', 'Send Notification by Post')", "choice:('High Insurance Check', 'Create Questionnaire')", "choice:('High Insurance Check', 'Contact Hospital')", "choice:('High Insurance Check', 'Prepare Notification Content')", "choice:('High Insurance Check', 'High Medical History')", "choice:('High Insurance Check', 'Send Notification by e-mail')", "choice:('Low Medical History', 'Low Insurance Check')", "choice:('Low Medical History', 'Reject Claim')", "choice:('Low Medical History', 'Accept Claim')", "choice:('Low Medical History', 'High Insurance Check')", "choice:('Low Medical History', 'Register')", "choice:('Low Medical History', 'Send Questionnaire')", "choice:('Low Medical History', 'Send Notification by Post')", "choice:('Low Medical History', 'Create Questionnaire')", "choice:('Low Medical History', 'Contact Hospital')", "choice:('Low Medical History', 'Prepare Notification Content')", "choice:('Low Medical History', 'High Medical History')", "choice:('Low Medical History', 'Send Notification by e-mail')", "choice:('Register', 'Low Insurance Check')", "choice:('Register', 'Reject Claim')", "choice:('Register', 'Accept Claim')", "choice:('Register', 'High Insurance Check')", "choice:('Register', 'Low Medical History')", "choice:('Register', 'Send Questionnaire')", "choice:('Register', 'Send Notification by Post')", "choice:('Register', 'Create Questionnaire')", "choice:('Register', 'Contact Hospital')", "choice:('Register', 'Prepare Notification Content')", "choice:('Register', 'High Medical History')", "choice:('Register', 'Send Notification by e-mail')", "choice:('Send Questionnaire', 'Low Insurance Check')", "choice:('Send Questionnaire', 'Reject Claim')", "choice:('Send Questionnaire', 'Accept Claim')", "choice:('Send Questionnaire', 'High Insurance Check')", "choice:('Send Questionnaire', 'Low Medical History')", "choice:('Send Questionnaire', 'Register')", "choice:('Send Questionnaire', 'Send Notification by Post')", "choice:('Send Questionnaire', 'Create Questionnaire')", "choice:('Send Questionnaire', 'Contact Hospital')", "choice:('Send Questionnaire', 'Prepare Notification Content')", "choice:('Send Questionnaire', 'High Medical History')", "choice:('Send Questionnaire', 'Send Notification by e-mail')", "choice:('Send Notification by Post', 'Low Insurance Check')", "choice:('Send Notification by Post', 'Reject Claim')", "choice:('Send Notification by Post', 'Accept Claim')", "choice:('Send Notification by Post', 'High Insurance Check')", "choice:('Send Notification by Post', 'Low Medical History')", "choice:('Send Notification by Post', 'Register')", "choice:('Send Notification by Post', 'Send Questionnaire')", "choice:('Send Notification by Post', 'Create Questionnaire')", "choice:('Send Notification by Post', 'Contact Hospital')", "choice:('Send Notification by Post', 'Prepare Notification Content')", "choice:('Send Notification by Post', 'High Medical History')", "choice:('Send Notification by Post', 'Send Notification by e-mail')", "choice:('Create Questionnaire', 'Low Insurance Check')", "choice:('Create Questionnaire', 'Reject Claim')", "choice:('Create Questionnaire', 'Accept Claim')", "choice:('Create Questionnaire', 'High Insurance Check')", "choice:('Create Questionnaire', 'Low Medical History')", "choice:('Create Questionnaire', 'Register')", "choice:('Create Questionnaire', 'Send Questionnaire')", "choice:('Create Questionnaire', 'Send Notification by Post')", "choice:('Create Questionnaire', 'Contact Hospital')", "choice:('Create Questionnaire', 'Prepare Notification Content')", "choice:('Create Questionnaire', 'High Medical History')", "choice:('Create Questionnaire', 'Send Notification by e-mail')", "choice:('Contact Hospital', 'Low Insurance Check')", "choice:('Contact Hospital', 'Reject Claim')", "choice:('Contact Hospital', 'Accept Claim')", "choice:('Contact Hospital', 'High Insurance Check')", "choice:('Contact Hospital', 'Low Medical History')", "choice:('Contact Hospital', 'Register')", "choice:('Contact Hospital', 'Send Questionnaire')", "choice:('Contact Hospital', 'Send Notification by Post')", "choice:('Contact Hospital', 'Create Questionnaire')", "choice:('Contact Hospital', 'Prepare Notification Content')", "choice:('Contact Hospital', 'High Medical History')", "choice:('Contact Hospital', 'Send Notification by e-mail')", "choice:('Prepare Notification Content', 'Low Insurance Check')", "choice:('Prepare Notification Content', 'Reject Claim')", "choice:('Prepare Notification Content', 'Accept Claim')", "choice:('Prepare Notification Content', 'High Insurance Check')", "choice:('Prepare Notification Content', 'Low Medical History')", "choice:('Prepare Notification Content', 'Register')", "choice:('Prepare Notification Content', 'Send Questionnaire')", "choice:('Prepare Notification Content', 'Send Notification by Post')", "choice:('Prepare Notification Content', 'Create Questionnaire')", "choice:('Prepare Notification Content', 'Contact Hospital')", "choice:('Prepare Notification Content', 'High Medical History')", "choice:('Prepare Notification Content', 'Send Notification by e-mail')", "choice:('High Medical History', 'Low Insurance Check')", "choice:('High Medical History', 'Reject Claim')", "choice:('High Medical History', 'Accept Claim')", "choice:('High Medical History', 'High Insurance Check')", "choice:('High Medical History', 'Low Medical History')", "choice:('High Medical History', 'Register')", "choice:('High Medical History', 'Send Questionnaire')", "choice:('High Medical History', 'Send Notification by Post')", "choice:('High Medical History', 'Create Questionnaire')", "choice:('High Medical History', 'Contact Hospital')", "choice:('High Medical History', 'Prepare Notification Content')", "choice:('High Medical History', 'Send Notification by e-mail')", "choice:('Send Notification by e-mail', 'Low Insurance Check')", "choice:('Send Notification by e-mail', 'Reject Claim')", "choice:('Send Notification by e-mail', 'Accept Claim')", "choice:('Send Notification by e-mail', 'High Insurance Check')", "choice:('Send Notification by e-mail', 'Low Medical History')", "choice:('Send Notification by e-mail', 'Register')", "choice:('Send Notification by e-mail', 'Send Questionnaire')", "choice:('Send Notification by e-mail', 'Send Notification by Post')", "choice:('Send Notification by e-mail', 'Create Questionnaire')", "choice:('Send Notification by e-mail', 'Contact Hospital')", "choice:('Send Notification by e-mail', 'Prepare Notification Content')", "choice:('Send Notification by e-mail', 'High Medical History')", "coexistence:('Low Insurance Check', 'Reject Claim')", "coexistence:('Low Insurance Check', 'Accept Claim')", "coexistence:('Low Insurance Check', 'High Insurance Check')", "coexistence:('Low Insurance Check', 'Low Medical History')", "coexistence:('Low Insurance Check', 'Register')", "coexistence:('Low Insurance Check', 'Send Questionnaire')", "coexistence:('Low Insurance Check', 'Send Notification by Post')", "coexistence:('Low Insurance Check', 'Create Questionnaire')", "coexistence:('Low Insurance Check', 'Contact Hospital')", "coexistence:('Low Insurance Check', 'Prepare Notification Content')", "coexistence:('Low Insurance Check', 'High Medical History')", "coexistence:('Low Insurance Check', 'Send Notification by e-mail')", "coexistence:('Reject Claim', 'Low Insurance Check')", "coexistence:('Reject Claim', 'Accept Claim')", "coexistence:('Reject Claim', 'High Insurance Check')", "coexistence:('Reject Claim', 'Low Medical History')", "coexistence:('Reject Claim', 'Register')", "coexistence:('Reject Claim', 'Send Questionnaire')", "coexistence:('Reject Claim', 'Send Notification by Post')", "coexistence:('Reject Claim', 'Create Questionnaire')", "coexistence:('Reject Claim', 'Contact Hospital')", "coexistence:('Reject Claim', 'Prepare Notification Content')", "coexistence:('Reject Claim', 'High Medical History')", "coexistence:('Reject Claim', 'Send Notification by e-mail')", "coexistence:('Accept Claim', 'Low Insurance Check')", "coexistence:('Accept Claim', 'Reject Claim')", "coexistence:('Accept Claim', 'High Insurance Check')", "coexistence:('Accept Claim', 'Low Medical History')", "coexistence:('Accept Claim', 'Register')", "coexistence:('Accept Claim', 'Send Questionnaire')", "coexistence:('Accept Claim', 'Send Notification by Post')", "coexistence:('Accept Claim', 'Create Questionnaire')", "coexistence:('Accept Claim', 'Contact Hospital')", "coexistence:('Accept Claim', 'Prepare Notification Content')", "coexistence:('Accept Claim', 'High Medical History')", "coexistence:('Accept Claim', 'Send Notification by e-mail')", "coexistence:('High Insurance Check', 'Low Insurance Check')", "coexistence:('High Insurance Check', 'Reject Claim')", "coexistence:('High Insurance Check', 'Accept Claim')", "coexistence:('High Insurance Check', 'Low Medical History')", "coexistence:('High Insurance Check', 'Register')", "coexistence:('High Insurance Check', 'Send Questionnaire')", "coexistence:('High Insurance Check', 'Send Notification by Post')", "coexistence:('High Insurance Check', 'Create Questionnaire')", "coexistence:('High Insurance Check', 'Contact Hospital')", "coexistence:('High Insurance Check', 'Prepare Notification Content')", "coexistence:('High Insurance Check', 'High Medical History')", "coexistence:('High Insurance Check', 'Send Notification by e-mail')", "coexistence:('Low Medical History', 'Low Insurance Check')", "coexistence:('Low Medical History', 'Reject Claim')", "coexistence:('Low Medical History', 'Accept Claim')", "coexistence:('Low Medical History', 'High Insurance Check')", "coexistence:('Low Medical History', 'Register')", "coexistence:('Low Medical History', 'Send Questionnaire')", "coexistence:('Low Medical History', 'Send Notification by Post')", "coexistence:('Low Medical History', 'Create Questionnaire')", "coexistence:('Low Medical History', 'Contact Hospital')", "coexistence:('Low Medical History', 'Prepare Notification Content')", "coexistence:('Low Medical History', 'High Medical History')", "coexistence:('Low Medical History', 'Send Notification by e-mail')", "coexistence:('Register', 'Low Insurance Check')", "coexistence:('Register', 'Reject Claim')", "coexistence:('Register', 'Accept Claim')", "coexistence:('Register', 'High Insurance Check')", "coexistence:('Register', 'Low Medical History')", "coexistence:('Register', 'Send Questionnaire')", "coexistence:('Register', 'Send Notification by Post')", "coexistence:('Register', 'Create Questionnaire')", "coexistence:('Register', 'Contact Hospital')", "coexistence:('Register', 'Prepare Notification Content')", "coexistence:('Register', 'High Medical History')", "coexistence:('Register', 'Send Notification by e-mail')", "coexistence:('Send Questionnaire', 'Low Insurance Check')", "coexistence:('Send Questionnaire', 'Reject Claim')", "coexistence:('Send Questionnaire', 'Accept Claim')", "coexistence:('Send Questionnaire', 'High Insurance Check')", "coexistence:('Send Questionnaire', 'Low Medical History')", "coexistence:('Send Questionnaire', 'Register')", "coexistence:('Send Questionnaire', 'Send Notification by Post')", "coexistence:('Send Questionnaire', 'Create Questionnaire')", "coexistence:('Send Questionnaire', 'Contact Hospital')", "coexistence:('Send Questionnaire', 'Prepare Notification Content')", "coexistence:('Send Questionnaire', 'High Medical History')", "coexistence:('Send Questionnaire', 'Send Notification by e-mail')", "coexistence:('Send Notification by Post', 'Low Insurance Check')", "coexistence:('Send Notification by Post', 'Reject Claim')", "coexistence:('Send Notification by Post', 'Accept Claim')", "coexistence:('Send Notification by Post', 'High Insurance Check')", "coexistence:('Send Notification by Post', 'Low Medical History')", "coexistence:('Send Notification by Post', 'Register')", "coexistence:('Send Notification by Post', 'Send Questionnaire')", "coexistence:('Send Notification by Post', 'Create Questionnaire')", "coexistence:('Send Notification by Post', 'Contact Hospital')", "coexistence:('Send Notification by Post', 'Prepare Notification Content')", "coexistence:('Send Notification by Post', 'High Medical History')", "coexistence:('Send Notification by Post', 'Send Notification by e-mail')", "coexistence:('Create Questionnaire', 'Low Insurance Check')", "coexistence:('Create Questionnaire', 'Reject Claim')", "coexistence:('Create Questionnaire', 'Accept Claim')", "coexistence:('Create Questionnaire', 'High Insurance Check')", "coexistence:('Create Questionnaire', 'Low Medical History')", "coexistence:('Create Questionnaire', 'Register')", "coexistence:('Create Questionnaire', 'Send Questionnaire')", "coexistence:('Create Questionnaire', 'Send Notification by Post')", "coexistence:('Create Questionnaire', 'Contact Hospital')", "coexistence:('Create Questionnaire', 'Prepare Notification Content')", "coexistence:('Create Questionnaire', 'High Medical History')", "coexistence:('Create Questionnaire', 'Send Notification by e-mail')", "coexistence:('Contact Hospital', 'Low Insurance Check')", "coexistence:('Contact Hospital', 'Reject Claim')", "coexistence:('Contact Hospital', 'Accept Claim')", "coexistence:('Contact Hospital', 'High Insurance Check')", "coexistence:('Contact Hospital', 'Low Medical History')", "coexistence:('Contact Hospital', 'Register')", "coexistence:('Contact Hospital', 'Send Questionnaire')", "coexistence:('Contact Hospital', 'Send Notification by Post')", "coexistence:('Contact Hospital', 'Create Questionnaire')", "coexistence:('Contact Hospital', 'Prepare Notification Content')", "coexistence:('Contact Hospital', 'High Medical History')", "coexistence:('Contact Hospital', 'Send Notification by e-mail')", "coexistence:('Prepare Notification Content', 'Low Insurance Check')", "coexistence:('Prepare Notification Content', 'Reject Claim')", "coexistence:('Prepare Notification Content', 'Accept Claim')", "coexistence:('Prepare Notification Content', 'High Insurance Check')", "coexistence:('Prepare Notification Content', 'Low Medical History')", "coexistence:('Prepare Notification Content', 'Register')", "coexistence:('Prepare Notification Content', 'Send Questionnaire')", "coexistence:('Prepare Notification Content', 'Send Notification by Post')", "coexistence:('Prepare Notification Content', 'Create Questionnaire')", "coexistence:('Prepare Notification Content', 'Contact Hospital')", "coexistence:('Prepare Notification Content', 'High Medical History')", "coexistence:('Prepare Notification Content', 'Send Notification by e-mail')", "coexistence:('High Medical History', 'Low Insurance Check')", "coexistence:('High Medical History', 'Reject Claim')", "coexistence:('High Medical History', 'Accept Claim')", "coexistence:('High Medical History', 'High Insurance Check')", "coexistence:('High Medical History', 'Low Medical History')", "coexistence:('High Medical History', 'Register')", "coexistence:('High Medical History', 'Send Questionnaire')", "coexistence:('High Medical History', 'Send Notification by Post')", "coexistence:('High Medical History', 'Create Questionnaire')", "coexistence:('High Medical History', 'Contact Hospital')", "coexistence:('High Medical History', 'Prepare Notification Content')", "coexistence:('High Medical History', 'Send Notification by e-mail')", "coexistence:('Send Notification by e-mail', 'Low Insurance Check')", "coexistence:('Send Notification by e-mail', 'Reject Claim')", "coexistence:('Send Notification by e-mail', 'Accept Claim')", "coexistence:('Send Notification by e-mail', 'High Insurance Check')", "coexistence:('Send Notification by e-mail', 'Low Medical History')", "coexistence:('Send Notification by e-mail', 'Register')", "coexistence:('Send Notification by e-mail', 'Send Questionnaire')", "coexistence:('Send Notification by e-mail', 'Send Notification by Post')", "coexistence:('Send Notification by e-mail', 'Create Questionnaire')", "coexistence:('Send Notification by e-mail', 'Contact Hospital')", "coexistence:('Send Notification by e-mail', 'Prepare Notification Content')", "coexistence:('Send Notification by e-mail', 'High Medical History')", "exactly1:('Low Insurance Check',)", "exactly1:('Reject Claim',)", "exactly1:('Accept Claim',)", "exactly1:('High Insurance Check',)", "exactly1:('Low Medical History',)", "exactly1:('Register',)", "exactly1:('Send Questionnaire',)", "exactly1:('Send Notification by Post',)", "exactly1:('Create Questionnaire',)", "exactly1:('Contact Hospital',)", "exactly1:('Prepare Notification Content',)", "exactly1:('High Medical History',)", "exactly1:('Send Notification by e-mail',)", "exactly2:('Low Insurance Check',)", "exactly2:('Reject Claim',)", "exactly2:('Accept Claim',)", "exactly2:('High Insurance Check',)", "exactly2:('Low Medical History',)", "exactly2:('Register',)", "exactly2:('Send Questionnaire',)", "exactly2:('Send Notification by Post',)", "exactly2:('Create Questionnaire',)", "exactly2:('Contact Hospital',)", "exactly2:('Prepare Notification Content',)", "exactly2:('High Medical History',)", "exactly2:('Send Notification by e-mail',)", "exactly3:('Low Insurance Check',)", "exactly3:('Reject Claim',)", "exactly3:('Accept Claim',)", "exactly3:('High Insurance Check',)", "exactly3:('Low Medical History',)", "exactly3:('Register',)", "exactly3:('Send Questionnaire',)", "exactly3:('Send Notification by Post',)", "exactly3:('Create Questionnaire',)", "exactly3:('Contact Hospital',)", "exactly3:('Prepare Notification Content',)", "exactly3:('High Medical History',)", "exactly3:('Send Notification by e-mail',)", "alternate_precedence:('Low Insurance Check', 'Reject Claim')", "alternate_precedence:('Low Insurance Check', 'Accept Claim')", "alternate_precedence:('Low Insurance Check', 'High Insurance Check')", "alternate_precedence:('Low Insurance Check', 'Low Medical History')", "alternate_precedence:('Low Insurance Check', 'Register')", "alternate_precedence:('Low Insurance Check', 'Send Questionnaire')", "alternate_precedence:('Low Insurance Check', 'Send Notification by Post')", "alternate_precedence:('Low Insurance Check', 'Create Questionnaire')", "alternate_precedence:('Low Insurance Check', 'Contact Hospital')", "alternate_precedence:('Low Insurance Check', 'Prepare Notification Content')", "alternate_precedence:('Low Insurance Check', 'High Medical History')", "alternate_precedence:('Low Insurance Check', 'Send Notification by e-mail')", "alternate_precedence:('Reject Claim', 'Low Insurance Check')", "alternate_precedence:('Reject Claim', 'Accept Claim')", "alternate_precedence:('Reject Claim', 'High Insurance Check')", "alternate_precedence:('Reject Claim', 'Low Medical History')", "alternate_precedence:('Reject Claim', 'Register')", "alternate_precedence:('Reject Claim', 'Send Questionnaire')", "alternate_precedence:('Reject Claim', 'Send Notification by Post')", "alternate_precedence:('Reject Claim', 'Create Questionnaire')", "alternate_precedence:('Reject Claim', 'Contact Hospital')", "alternate_precedence:('Reject Claim', 'Prepare Notification Content')", "alternate_precedence:('Reject Claim', 'High Medical History')", "alternate_precedence:('Reject Claim', 'Send Notification by e-mail')", "alternate_precedence:('Accept Claim', 'Low Insurance Check')", "alternate_precedence:('Accept Claim', 'Reject Claim')", "alternate_precedence:('Accept Claim', 'High Insurance Check')", "alternate_precedence:('Accept Claim', 'Low Medical History')", "alternate_precedence:('Accept Claim', 'Register')", "alternate_precedence:('Accept Claim', 'Send Questionnaire')", "alternate_precedence:('Accept Claim', 'Send Notification by Post')", "alternate_precedence:('Accept Claim', 'Create Questionnaire')", "alternate_precedence:('Accept Claim', 'Contact Hospital')", "alternate_precedence:('Accept Claim', 'Prepare Notification Content')", "alternate_precedence:('Accept Claim', 'High Medical History')", "alternate_precedence:('Accept Claim', 'Send Notification by e-mail')", "alternate_precedence:('High Insurance Check', 'Low Insurance Check')", "alternate_precedence:('High Insurance Check', 'Reject Claim')", "alternate_precedence:('High Insurance Check', 'Accept Claim')", "alternate_precedence:('High Insurance Check', 'Low Medical History')", "alternate_precedence:('High Insurance Check', 'Register')", "alternate_precedence:('High Insurance Check', 'Send Questionnaire')", "alternate_precedence:('High Insurance Check', 'Send Notification by Post')", "alternate_precedence:('High Insurance Check', 'Create Questionnaire')", "alternate_precedence:('High Insurance Check', 'Contact Hospital')", "alternate_precedence:('High Insurance Check', 'Prepare Notification Content')", "alternate_precedence:('High Insurance Check', 'High Medical History')", "alternate_precedence:('High Insurance Check', 'Send Notification by e-mail')", "alternate_precedence:('Low Medical History', 'Low Insurance Check')", "alternate_precedence:('Low Medical History', 'Reject Claim')", "alternate_precedence:('Low Medical History', 'Accept Claim')", "alternate_precedence:('Low Medical History', 'High Insurance Check')", "alternate_precedence:('Low Medical History', 'Register')", "alternate_precedence:('Low Medical History', 'Send Questionnaire')", "alternate_precedence:('Low Medical History', 'Send Notification by Post')", "alternate_precedence:('Low Medical History', 'Create Questionnaire')", "alternate_precedence:('Low Medical History', 'Contact Hospital')", "alternate_precedence:('Low Medical History', 'Prepare Notification Content')", "alternate_precedence:('Low Medical History', 'High Medical History')", "alternate_precedence:('Low Medical History', 'Send Notification by e-mail')", "alternate_precedence:('Register', 'Low Insurance Check')", "alternate_precedence:('Register', 'Reject Claim')", "alternate_precedence:('Register', 'Accept Claim')", "alternate_precedence:('Register', 'High Insurance Check')", "alternate_precedence:('Register', 'Low Medical History')", "alternate_precedence:('Register', 'Send Questionnaire')", "alternate_precedence:('Register', 'Send Notification by Post')", "alternate_precedence:('Register', 'Create Questionnaire')", "alternate_precedence:('Register', 'Contact Hospital')", "alternate_precedence:('Register', 'Prepare Notification Content')", "alternate_precedence:('Register', 'High Medical History')", "alternate_precedence:('Register', 'Send Notification by e-mail')", "alternate_precedence:('Send Questionnaire', 'Low Insurance Check')", "alternate_precedence:('Send Questionnaire', 'Reject Claim')", "alternate_precedence:('Send Questionnaire', 'Accept Claim')", "alternate_precedence:('Send Questionnaire', 'High Insurance Check')", "alternate_precedence:('Send Questionnaire', 'Low Medical History')", "alternate_precedence:('Send Questionnaire', 'Register')", "alternate_precedence:('Send Questionnaire', 'Send Notification by Post')", "alternate_precedence:('Send Questionnaire', 'Create Questionnaire')", "alternate_precedence:('Send Questionnaire', 'Contact Hospital')", "alternate_precedence:('Send Questionnaire', 'Prepare Notification Content')", "alternate_precedence:('Send Questionnaire', 'High Medical History')", "alternate_precedence:('Send Questionnaire', 'Send Notification by e-mail')", "alternate_precedence:('Send Notification by Post', 'Low Insurance Check')", "alternate_precedence:('Send Notification by Post', 'Reject Claim')", "alternate_precedence:('Send Notification by Post', 'Accept Claim')", "alternate_precedence:('Send Notification by Post', 'High Insurance Check')", "alternate_precedence:('Send Notification by Post', 'Low Medical History')", "alternate_precedence:('Send Notification by Post', 'Register')", "alternate_precedence:('Send Notification by Post', 'Send Questionnaire')", "alternate_precedence:('Send Notification by Post', 'Create Questionnaire')", "alternate_precedence:('Send Notification by Post', 'Contact Hospital')", "alternate_precedence:('Send Notification by Post', 'Prepare Notification Content')", "alternate_precedence:('Send Notification by Post', 'High Medical History')", "alternate_precedence:('Send Notification by Post', 'Send Notification by e-mail')", "alternate_precedence:('Create Questionnaire', 'Low Insurance Check')", "alternate_precedence:('Create Questionnaire', 'Reject Claim')", "alternate_precedence:('Create Questionnaire', 'Accept Claim')", "alternate_precedence:('Create Questionnaire', 'High Insurance Check')", "alternate_precedence:('Create Questionnaire', 'Low Medical History')", "alternate_precedence:('Create Questionnaire', 'Register')", "alternate_precedence:('Create Questionnaire', 'Send Questionnaire')", "alternate_precedence:('Create Questionnaire', 'Send Notification by Post')", "alternate_precedence:('Create Questionnaire', 'Contact Hospital')", "alternate_precedence:('Create Questionnaire', 'Prepare Notification Content')", "alternate_precedence:('Create Questionnaire', 'High Medical History')", "alternate_precedence:('Create Questionnaire', 'Send Notification by e-mail')", "alternate_precedence:('Contact Hospital', 'Low Insurance Check')", "alternate_precedence:('Contact Hospital', 'Reject Claim')", "alternate_precedence:('Contact Hospital', 'Accept Claim')", "alternate_precedence:('Contact Hospital', 'High Insurance Check')", "alternate_precedence:('Contact Hospital', 'Low Medical History')", "alternate_precedence:('Contact Hospital', 'Register')", "alternate_precedence:('Contact Hospital', 'Send Questionnaire')", "alternate_precedence:('Contact Hospital', 'Send Notification by Post')", "alternate_precedence:('Contact Hospital', 'Create Questionnaire')", "alternate_precedence:('Contact Hospital', 'Prepare Notification Content')", "alternate_precedence:('Contact Hospital', 'High Medical History')", "alternate_precedence:('Contact Hospital', 'Send Notification by e-mail')", "alternate_precedence:('Prepare Notification Content', 'Low Insurance Check')", "alternate_precedence:('Prepare Notification Content', 'Reject Claim')", "alternate_precedence:('Prepare Notification Content', 'Accept Claim')", "alternate_precedence:('Prepare Notification Content', 'High Insurance Check')", "alternate_precedence:('Prepare Notification Content', 'Low Medical History')", "alternate_precedence:('Prepare Notification Content', 'Register')", "alternate_precedence:('Prepare Notification Content', 'Send Questionnaire')", "alternate_precedence:('Prepare Notification Content', 'Send Notification by Post')", "alternate_precedence:('Prepare Notification Content', 'Create Questionnaire')", "alternate_precedence:('Prepare Notification Content', 'Contact Hospital')", "alternate_precedence:('Prepare Notification Content', 'High Medical History')", "alternate_precedence:('Prepare Notification Content', 'Send Notification by e-mail')", "alternate_precedence:('High Medical History', 'Low Insurance Check')", "alternate_precedence:('High Medical History', 'Reject Claim')", "alternate_precedence:('High Medical History', 'Accept Claim')", "alternate_precedence:('High Medical History', 'High Insurance Check')", "alternate_precedence:('High Medical History', 'Low Medical History')", "alternate_precedence:('High Medical History', 'Register')", "alternate_precedence:('High Medical History', 'Send Questionnaire')", "alternate_precedence:('High Medical History', 'Send Notification by Post')", "alternate_precedence:('High Medical History', 'Create Questionnaire')", "alternate_precedence:('High Medical History', 'Contact Hospital')", "alternate_precedence:('High Medical History', 'Prepare Notification Content')", "alternate_precedence:('High Medical History', 'Send Notification by e-mail')", "alternate_precedence:('Send Notification by e-mail', 'Low Insurance Check')", "alternate_precedence:('Send Notification by e-mail', 'Reject Claim')", "alternate_precedence:('Send Notification by e-mail', 'Accept Claim')", "alternate_precedence:('Send Notification by e-mail', 'High Insurance Check')", "alternate_precedence:('Send Notification by e-mail', 'Low Medical History')", "alternate_precedence:('Send Notification by e-mail', 'Register')", "alternate_precedence:('Send Notification by e-mail', 'Send Questionnaire')", "alternate_precedence:('Send Notification by e-mail', 'Send Notification by Post')", "alternate_precedence:('Send Notification by e-mail', 'Create Questionnaire')", "alternate_precedence:('Send Notification by e-mail', 'Contact Hospital')", "alternate_precedence:('Send Notification by e-mail', 'Prepare Notification Content')", "alternate_precedence:('Send Notification by e-mail', 'High Medical History')", "alternate_succession:('Low Insurance Check', 'Reject Claim')", "alternate_succession:('Low Insurance Check', 'Accept Claim')", "alternate_succession:('Low Insurance Check', 'High Insurance Check')", "alternate_succession:('Low Insurance Check', 'Low Medical History')", "alternate_succession:('Low Insurance Check', 'Register')", "alternate_succession:('Low Insurance Check', 'Send Questionnaire')", "alternate_succession:('Low Insurance Check', 'Send Notification by Post')", "alternate_succession:('Low Insurance Check', 'Create Questionnaire')", "alternate_succession:('Low Insurance Check', 'Contact Hospital')", "alternate_succession:('Low Insurance Check', 'Prepare Notification Content')", "alternate_succession:('Low Insurance Check', 'High Medical History')", "alternate_succession:('Low Insurance Check', 'Send Notification by e-mail')", "alternate_succession:('Reject Claim', 'Low Insurance Check')", "alternate_succession:('Reject Claim', 'Accept Claim')", "alternate_succession:('Reject Claim', 'High Insurance Check')", "alternate_succession:('Reject Claim', 'Low Medical History')", "alternate_succession:('Reject Claim', 'Register')", "alternate_succession:('Reject Claim', 'Send Questionnaire')", "alternate_succession:('Reject Claim', 'Send Notification by Post')", "alternate_succession:('Reject Claim', 'Create Questionnaire')", "alternate_succession:('Reject Claim', 'Contact Hospital')", "alternate_succession:('Reject Claim', 'Prepare Notification Content')", "alternate_succession:('Reject Claim', 'High Medical History')", "alternate_succession:('Reject Claim', 'Send Notification by e-mail')", "alternate_succession:('Accept Claim', 'Low Insurance Check')", "alternate_succession:('Accept Claim', 'Reject Claim')", "alternate_succession:('Accept Claim', 'High Insurance Check')", "alternate_succession:('Accept Claim', 'Low Medical History')", "alternate_succession:('Accept Claim', 'Register')", "alternate_succession:('Accept Claim', 'Send Questionnaire')", "alternate_succession:('Accept Claim', 'Send Notification by Post')", "alternate_succession:('Accept Claim', 'Create Questionnaire')", "alternate_succession:('Accept Claim', 'Contact Hospital')", "alternate_succession:('Accept Claim', 'Prepare Notification Content')", "alternate_succession:('Accept Claim', 'High Medical History')", "alternate_succession:('Accept Claim', 'Send Notification by e-mail')", "alternate_succession:('High Insurance Check', 'Low Insurance Check')", "alternate_succession:('High Insurance Check', 'Reject Claim')", "alternate_succession:('High Insurance Check', 'Accept Claim')", "alternate_succession:('High Insurance Check', 'Low Medical History')", "alternate_succession:('High Insurance Check', 'Register')", "alternate_succession:('High Insurance Check', 'Send Questionnaire')", "alternate_succession:('High Insurance Check', 'Send Notification by Post')", "alternate_succession:('High Insurance Check', 'Create Questionnaire')", "alternate_succession:('High Insurance Check', 'Contact Hospital')", "alternate_succession:('High Insurance Check', 'Prepare Notification Content')", "alternate_succession:('High Insurance Check', 'High Medical History')", "alternate_succession:('High Insurance Check', 'Send Notification by e-mail')", "alternate_succession:('Low Medical History', 'Low Insurance Check')", "alternate_succession:('Low Medical History', 'Reject Claim')", "alternate_succession:('Low Medical History', 'Accept Claim')", "alternate_succession:('Low Medical History', 'High Insurance Check')", "alternate_succession:('Low Medical History', 'Register')", "alternate_succession:('Low Medical History', 'Send Questionnaire')", "alternate_succession:('Low Medical History', 'Send Notification by Post')", "alternate_succession:('Low Medical History', 'Create Questionnaire')", "alternate_succession:('Low Medical History', 'Contact Hospital')", "alternate_succession:('Low Medical History', 'Prepare Notification Content')", "alternate_succession:('Low Medical History', 'High Medical History')", "alternate_succession:('Low Medical History', 'Send Notification by e-mail')", "alternate_succession:('Register', 'Low Insurance Check')", "alternate_succession:('Register', 'Reject Claim')", "alternate_succession:('Register', 'Accept Claim')", "alternate_succession:('Register', 'High Insurance Check')", "alternate_succession:('Register', 'Low Medical History')", "alternate_succession:('Register', 'Send Questionnaire')", "alternate_succession:('Register', 'Send Notification by Post')", "alternate_succession:('Register', 'Create Questionnaire')", "alternate_succession:('Register', 'Contact Hospital')", "alternate_succession:('Register', 'Prepare Notification Content')", "alternate_succession:('Register', 'High Medical History')", "alternate_succession:('Register', 'Send Notification by e-mail')", "alternate_succession:('Send Questionnaire', 'Low Insurance Check')", "alternate_succession:('Send Questionnaire', 'Reject Claim')", "alternate_succession:('Send Questionnaire', 'Accept Claim')", "alternate_succession:('Send Questionnaire', 'High Insurance Check')", "alternate_succession:('Send Questionnaire', 'Low Medical History')", "alternate_succession:('Send Questionnaire', 'Register')", "alternate_succession:('Send Questionnaire', 'Send Notification by Post')", "alternate_succession:('Send Questionnaire', 'Create Questionnaire')", "alternate_succession:('Send Questionnaire', 'Contact Hospital')", "alternate_succession:('Send Questionnaire', 'Prepare Notification Content')", "alternate_succession:('Send Questionnaire', 'High Medical History')", "alternate_succession:('Send Questionnaire', 'Send Notification by e-mail')", "alternate_succession:('Send Notification by Post', 'Low Insurance Check')", "alternate_succession:('Send Notification by Post', 'Reject Claim')", "alternate_succession:('Send Notification by Post', 'Accept Claim')", "alternate_succession:('Send Notification by Post', 'High Insurance Check')", "alternate_succession:('Send Notification by Post', 'Low Medical History')", "alternate_succession:('Send Notification by Post', 'Register')", "alternate_succession:('Send Notification by Post', 'Send Questionnaire')", "alternate_succession:('Send Notification by Post', 'Create Questionnaire')", "alternate_succession:('Send Notification by Post', 'Contact Hospital')", "alternate_succession:('Send Notification by Post', 'Prepare Notification Content')", "alternate_succession:('Send Notification by Post', 'High Medical History')", "alternate_succession:('Send Notification by Post', 'Send Notification by e-mail')", "alternate_succession:('Create Questionnaire', 'Low Insurance Check')", "alternate_succession:('Create Questionnaire', 'Reject Claim')", "alternate_succession:('Create Questionnaire', 'Accept Claim')", "alternate_succession:('Create Questionnaire', 'High Insurance Check')", "alternate_succession:('Create Questionnaire', 'Low Medical History')", "alternate_succession:('Create Questionnaire', 'Register')", "alternate_succession:('Create Questionnaire', 'Send Questionnaire')", "alternate_succession:('Create Questionnaire', 'Send Notification by Post')", "alternate_succession:('Create Questionnaire', 'Contact Hospital')", "alternate_succession:('Create Questionnaire', 'Prepare Notification Content')", "alternate_succession:('Create Questionnaire', 'High Medical History')", "alternate_succession:('Create Questionnaire', 'Send Notification by e-mail')", "alternate_succession:('Contact Hospital', 'Low Insurance Check')", "alternate_succession:('Contact Hospital', 'Reject Claim')", "alternate_succession:('Contact Hospital', 'Accept Claim')", "alternate_succession:('Contact Hospital', 'High Insurance Check')", "alternate_succession:('Contact Hospital', 'Low Medical History')", "alternate_succession:('Contact Hospital', 'Register')", "alternate_succession:('Contact Hospital', 'Send Questionnaire')", "alternate_succession:('Contact Hospital', 'Send Notification by Post')", "alternate_succession:('Contact Hospital', 'Create Questionnaire')", "alternate_succession:('Contact Hospital', 'Prepare Notification Content')", "alternate_succession:('Contact Hospital', 'High Medical History')", "alternate_succession:('Contact Hospital', 'Send Notification by e-mail')", "alternate_succession:('Prepare Notification Content', 'Low Insurance Check')", "alternate_succession:('Prepare Notification Content', 'Reject Claim')", "alternate_succession:('Prepare Notification Content', 'Accept Claim')", "alternate_succession:('Prepare Notification Content', 'High Insurance Check')", "alternate_succession:('Prepare Notification Content', 'Low Medical History')", "alternate_succession:('Prepare Notification Content', 'Register')", "alternate_succession:('Prepare Notification Content', 'Send Questionnaire')", "alternate_succession:('Prepare Notification Content', 'Send Notification by Post')", "alternate_succession:('Prepare Notification Content', 'Create Questionnaire')", "alternate_succession:('Prepare Notification Content', 'Contact Hospital')", "alternate_succession:('Prepare Notification Content', 'High Medical History')", "alternate_succession:('Prepare Notification Content', 'Send Notification by e-mail')", "alternate_succession:('High Medical History', 'Low Insurance Check')", "alternate_succession:('High Medical History', 'Reject Claim')", "alternate_succession:('High Medical History', 'Accept Claim')", "alternate_succession:('High Medical History', 'High Insurance Check')", "alternate_succession:('High Medical History', 'Low Medical History')", "alternate_succession:('High Medical History', 'Register')", "alternate_succession:('High Medical History', 'Send Questionnaire')", "alternate_succession:('High Medical History', 'Send Notification by Post')", "alternate_succession:('High Medical History', 'Create Questionnaire')", "alternate_succession:('High Medical History', 'Contact Hospital')", "alternate_succession:('High Medical History', 'Prepare Notification Content')", "alternate_succession:('High Medical History', 'Send Notification by e-mail')", "alternate_succession:('Send Notification by e-mail', 'Low Insurance Check')", "alternate_succession:('Send Notification by e-mail', 'Reject Claim')", "alternate_succession:('Send Notification by e-mail', 'Accept Claim')", "alternate_succession:('Send Notification by e-mail', 'High Insurance Check')", "alternate_succession:('Send Notification by e-mail', 'Low Medical History')", "alternate_succession:('Send Notification by e-mail', 'Register')", "alternate_succession:('Send Notification by e-mail', 'Send Questionnaire')", "alternate_succession:('Send Notification by e-mail', 'Send Notification by Post')", "alternate_succession:('Send Notification by e-mail', 'Create Questionnaire')", "alternate_succession:('Send Notification by e-mail', 'Contact Hospital')", "alternate_succession:('Send Notification by e-mail', 'Prepare Notification Content')", "alternate_succession:('Send Notification by e-mail', 'High Medical History')", "alternate_response:('Low Insurance Check', 'Reject Claim')", "alternate_response:('Low Insurance Check', 'Accept Claim')", "alternate_response:('Low Insurance Check', 'High Insurance Check')", "alternate_response:('Low Insurance Check', 'Low Medical History')", "alternate_response:('Low Insurance Check', 'Register')", "alternate_response:('Low Insurance Check', 'Send Questionnaire')", "alternate_response:('Low Insurance Check', 'Send Notification by Post')", "alternate_response:('Low Insurance Check', 'Create Questionnaire')", "alternate_response:('Low Insurance Check', 'Contact Hospital')", "alternate_response:('Low Insurance Check', 'Prepare Notification Content')", "alternate_response:('Low Insurance Check', 'High Medical History')", "alternate_response:('Low Insurance Check', 'Send Notification by e-mail')", "alternate_response:('Reject Claim', 'Low Insurance Check')", "alternate_response:('Reject Claim', 'Accept Claim')", "alternate_response:('Reject Claim', 'High Insurance Check')", "alternate_response:('Reject Claim', 'Low Medical History')", "alternate_response:('Reject Claim', 'Register')", "alternate_response:('Reject Claim', 'Send Questionnaire')", "alternate_response:('Reject Claim', 'Send Notification by Post')", "alternate_response:('Reject Claim', 'Create Questionnaire')", "alternate_response:('Reject Claim', 'Contact Hospital')", "alternate_response:('Reject Claim', 'Prepare Notification Content')", "alternate_response:('Reject Claim', 'High Medical History')", "alternate_response:('Reject Claim', 'Send Notification by e-mail')", "alternate_response:('Accept Claim', 'Low Insurance Check')", "alternate_response:('Accept Claim', 'Reject Claim')", "alternate_response:('Accept Claim', 'High Insurance Check')", "alternate_response:('Accept Claim', 'Low Medical History')", "alternate_response:('Accept Claim', 'Register')", "alternate_response:('Accept Claim', 'Send Questionnaire')", "alternate_response:('Accept Claim', 'Send Notification by Post')", "alternate_response:('Accept Claim', 'Create Questionnaire')", "alternate_response:('Accept Claim', 'Contact Hospital')", "alternate_response:('Accept Claim', 'Prepare Notification Content')", "alternate_response:('Accept Claim', 'High Medical History')", "alternate_response:('Accept Claim', 'Send Notification by e-mail')", "alternate_response:('High Insurance Check', 'Low Insurance Check')", "alternate_response:('High Insurance Check', 'Reject Claim')", "alternate_response:('High Insurance Check', 'Accept Claim')", "alternate_response:('High Insurance Check', 'Low Medical History')", "alternate_response:('High Insurance Check', 'Register')", "alternate_response:('High Insurance Check', 'Send Questionnaire')", "alternate_response:('High Insurance Check', 'Send Notification by Post')", "alternate_response:('High Insurance Check', 'Create Questionnaire')", "alternate_response:('High Insurance Check', 'Contact Hospital')", "alternate_response:('High Insurance Check', 'Prepare Notification Content')", "alternate_response:('High Insurance Check', 'High Medical History')", "alternate_response:('High Insurance Check', 'Send Notification by e-mail')", "alternate_response:('Low Medical History', 'Low Insurance Check')", "alternate_response:('Low Medical History', 'Reject Claim')", "alternate_response:('Low Medical History', 'Accept Claim')", "alternate_response:('Low Medical History', 'High Insurance Check')", "alternate_response:('Low Medical History', 'Register')", "alternate_response:('Low Medical History', 'Send Questionnaire')", "alternate_response:('Low Medical History', 'Send Notification by Post')", "alternate_response:('Low Medical History', 'Create Questionnaire')", "alternate_response:('Low Medical History', 'Contact Hospital')", "alternate_response:('Low Medical History', 'Prepare Notification Content')", "alternate_response:('Low Medical History', 'High Medical History')", "alternate_response:('Low Medical History', 'Send Notification by e-mail')", "alternate_response:('Register', 'Low Insurance Check')", "alternate_response:('Register', 'Reject Claim')", "alternate_response:('Register', 'Accept Claim')", "alternate_response:('Register', 'High Insurance Check')", "alternate_response:('Register', 'Low Medical History')", "alternate_response:('Register', 'Send Questionnaire')", "alternate_response:('Register', 'Send Notification by Post')", "alternate_response:('Register', 'Create Questionnaire')", "alternate_response:('Register', 'Contact Hospital')", "alternate_response:('Register', 'Prepare Notification Content')", "alternate_response:('Register', 'High Medical History')", "alternate_response:('Register', 'Send Notification by e-mail')", "alternate_response:('Send Questionnaire', 'Low Insurance Check')", "alternate_response:('Send Questionnaire', 'Reject Claim')", "alternate_response:('Send Questionnaire', 'Accept Claim')", "alternate_response:('Send Questionnaire', 'High Insurance Check')", "alternate_response:('Send Questionnaire', 'Low Medical History')", "alternate_response:('Send Questionnaire', 'Register')", "alternate_response:('Send Questionnaire', 'Send Notification by Post')", "alternate_response:('Send Questionnaire', 'Create Questionnaire')", "alternate_response:('Send Questionnaire', 'Contact Hospital')", "alternate_response:('Send Questionnaire', 'Prepare Notification Content')", "alternate_response:('Send Questionnaire', 'High Medical History')", "alternate_response:('Send Questionnaire', 'Send Notification by e-mail')", "alternate_response:('Send Notification by Post', 'Low Insurance Check')", "alternate_response:('Send Notification by Post', 'Reject Claim')", "alternate_response:('Send Notification by Post', 'Accept Claim')", "alternate_response:('Send Notification by Post', 'High Insurance Check')", "alternate_response:('Send Notification by Post', 'Low Medical History')", "alternate_response:('Send Notification by Post', 'Register')", "alternate_response:('Send Notification by Post', 'Send Questionnaire')", "alternate_response:('Send Notification by Post', 'Create Questionnaire')", "alternate_response:('Send Notification by Post', 'Contact Hospital')", "alternate_response:('Send Notification by Post', 'Prepare Notification Content')", "alternate_response:('Send Notification by Post', 'High Medical History')", "alternate_response:('Send Notification by Post', 'Send Notification by e-mail')", "alternate_response:('Create Questionnaire', 'Low Insurance Check')", "alternate_response:('Create Questionnaire', 'Reject Claim')", "alternate_response:('Create Questionnaire', 'Accept Claim')", "alternate_response:('Create Questionnaire', 'High Insurance Check')", "alternate_response:('Create Questionnaire', 'Low Medical History')", "alternate_response:('Create Questionnaire', 'Register')", "alternate_response:('Create Questionnaire', 'Send Questionnaire')", "alternate_response:('Create Questionnaire', 'Send Notification by Post')", "alternate_response:('Create Questionnaire', 'Contact Hospital')", "alternate_response:('Create Questionnaire', 'Prepare Notification Content')", "alternate_response:('Create Questionnaire', 'High Medical History')", "alternate_response:('Create Questionnaire', 'Send Notification by e-mail')", "alternate_response:('Contact Hospital', 'Low Insurance Check')", "alternate_response:('Contact Hospital', 'Reject Claim')", "alternate_response:('Contact Hospital', 'Accept Claim')", "alternate_response:('Contact Hospital', 'High Insurance Check')", "alternate_response:('Contact Hospital', 'Low Medical History')", "alternate_response:('Contact Hospital', 'Register')", "alternate_response:('Contact Hospital', 'Send Questionnaire')", "alternate_response:('Contact Hospital', 'Send Notification by Post')", "alternate_response:('Contact Hospital', 'Create Questionnaire')", "alternate_response:('Contact Hospital', 'Prepare Notification Content')", "alternate_response:('Contact Hospital', 'High Medical History')", "alternate_response:('Contact Hospital', 'Send Notification by e-mail')", "alternate_response:('Prepare Notification Content', 'Low Insurance Check')", "alternate_response:('Prepare Notification Content', 'Reject Claim')", "alternate_response:('Prepare Notification Content', 'Accept Claim')", "alternate_response:('Prepare Notification Content', 'High Insurance Check')", "alternate_response:('Prepare Notification Content', 'Low Medical History')", "alternate_response:('Prepare Notification Content', 'Register')", "alternate_response:('Prepare Notification Content', 'Send Questionnaire')", "alternate_response:('Prepare Notification Content', 'Send Notification by Post')", "alternate_response:('Prepare Notification Content', 'Create Questionnaire')", "alternate_response:('Prepare Notification Content', 'Contact Hospital')", "alternate_response:('Prepare Notification Content', 'High Medical History')", "alternate_response:('Prepare Notification Content', 'Send Notification by e-mail')", "alternate_response:('High Medical History', 'Low Insurance Check')", "alternate_response:('High Medical History', 'Reject Claim')", "alternate_response:('High Medical History', 'Accept Claim')", "alternate_response:('High Medical History', 'High Insurance Check')", "alternate_response:('High Medical History', 'Low Medical History')", "alternate_response:('High Medical History', 'Register')", "alternate_response:('High Medical History', 'Send Questionnaire')", "alternate_response:('High Medical History', 'Send Notification by Post')", "alternate_response:('High Medical History', 'Create Questionnaire')", "alternate_response:('High Medical History', 'Contact Hospital')", "alternate_response:('High Medical History', 'Prepare Notification Content')", "alternate_response:('High Medical History', 'Send Notification by e-mail')", "alternate_response:('Send Notification by e-mail', 'Low Insurance Check')", "alternate_response:('Send Notification by e-mail', 'Reject Claim')", "alternate_response:('Send Notification by e-mail', 'Accept Claim')", "alternate_response:('Send Notification by e-mail', 'High Insurance Check')", "alternate_response:('Send Notification by e-mail', 'Low Medical History')", "alternate_response:('Send Notification by e-mail', 'Register')", "alternate_response:('Send Notification by e-mail', 'Send Questionnaire')", "alternate_response:('Send Notification by e-mail', 'Send Notification by Post')", "alternate_response:('Send Notification by e-mail', 'Create Questionnaire')", "alternate_response:('Send Notification by e-mail', 'Contact Hospital')", "alternate_response:('Send Notification by e-mail', 'Prepare Notification Content')", "alternate_response:('Send Notification by e-mail', 'High Medical History')", "chain_precedence:('Low Insurance Check', 'Reject Claim')", "chain_precedence:('Low Insurance Check', 'Accept Claim')", "chain_precedence:('Low Insurance Check', 'High Insurance Check')", "chain_precedence:('Low Insurance Check', 'Low Medical History')", "chain_precedence:('Low Insurance Check', 'Register')", "chain_precedence:('Low Insurance Check', 'Send Questionnaire')", "chain_precedence:('Low Insurance Check', 'Send Notification by Post')", "chain_precedence:('Low Insurance Check', 'Create Questionnaire')", "chain_precedence:('Low Insurance Check', 'Contact Hospital')", "chain_precedence:('Low Insurance Check', 'Prepare Notification Content')", "chain_precedence:('Low Insurance Check', 'High Medical History')", "chain_precedence:('Low Insurance Check', 'Send Notification by e-mail')", "chain_precedence:('Reject Claim', 'Low Insurance Check')", "chain_precedence:('Reject Claim', 'Accept Claim')", "chain_precedence:('Reject Claim', 'High Insurance Check')", "chain_precedence:('Reject Claim', 'Low Medical History')", "chain_precedence:('Reject Claim', 'Register')", "chain_precedence:('Reject Claim', 'Send Questionnaire')", "chain_precedence:('Reject Claim', 'Send Notification by Post')", "chain_precedence:('Reject Claim', 'Create Questionnaire')", "chain_precedence:('Reject Claim', 'Contact Hospital')", "chain_precedence:('Reject Claim', 'Prepare Notification Content')", "chain_precedence:('Reject Claim', 'High Medical History')", "chain_precedence:('Reject Claim', 'Send Notification by e-mail')", "chain_precedence:('Accept Claim', 'Low Insurance Check')", "chain_precedence:('Accept Claim', 'Reject Claim')", "chain_precedence:('Accept Claim', 'High Insurance Check')", "chain_precedence:('Accept Claim', 'Low Medical History')", "chain_precedence:('Accept Claim', 'Register')", "chain_precedence:('Accept Claim', 'Send Questionnaire')", "chain_precedence:('Accept Claim', 'Send Notification by Post')", "chain_precedence:('Accept Claim', 'Create Questionnaire')", "chain_precedence:('Accept Claim', 'Contact Hospital')", "chain_precedence:('Accept Claim', 'Prepare Notification Content')", "chain_precedence:('Accept Claim', 'High Medical History')", "chain_precedence:('Accept Claim', 'Send Notification by e-mail')", "chain_precedence:('High Insurance Check', 'Low Insurance Check')", "chain_precedence:('High Insurance Check', 'Reject Claim')", "chain_precedence:('High Insurance Check', 'Accept Claim')", "chain_precedence:('High Insurance Check', 'Low Medical History')", "chain_precedence:('High Insurance Check', 'Register')", "chain_precedence:('High Insurance Check', 'Send Questionnaire')", "chain_precedence:('High Insurance Check', 'Send Notification by Post')", "chain_precedence:('High Insurance Check', 'Create Questionnaire')", "chain_precedence:('High Insurance Check', 'Contact Hospital')", "chain_precedence:('High Insurance Check', 'Prepare Notification Content')", "chain_precedence:('High Insurance Check', 'High Medical History')", "chain_precedence:('High Insurance Check', 'Send Notification by e-mail')", "chain_precedence:('Low Medical History', 'Low Insurance Check')", "chain_precedence:('Low Medical History', 'Reject Claim')", "chain_precedence:('Low Medical History', 'Accept Claim')", "chain_precedence:('Low Medical History', 'High Insurance Check')", "chain_precedence:('Low Medical History', 'Register')", "chain_precedence:('Low Medical History', 'Send Questionnaire')", "chain_precedence:('Low Medical History', 'Send Notification by Post')", "chain_precedence:('Low Medical History', 'Create Questionnaire')", "chain_precedence:('Low Medical History', 'Contact Hospital')", "chain_precedence:('Low Medical History', 'Prepare Notification Content')", "chain_precedence:('Low Medical History', 'High Medical History')", "chain_precedence:('Low Medical History', 'Send Notification by e-mail')", "chain_precedence:('Register', 'Low Insurance Check')", "chain_precedence:('Register', 'Reject Claim')", "chain_precedence:('Register', 'Accept Claim')", "chain_precedence:('Register', 'High Insurance Check')", "chain_precedence:('Register', 'Low Medical History')", "chain_precedence:('Register', 'Send Questionnaire')", "chain_precedence:('Register', 'Send Notification by Post')", "chain_precedence:('Register', 'Create Questionnaire')", "chain_precedence:('Register', 'Contact Hospital')", "chain_precedence:('Register', 'Prepare Notification Content')", "chain_precedence:('Register', 'High Medical History')", "chain_precedence:('Register', 'Send Notification by e-mail')", "chain_precedence:('Send Questionnaire', 'Low Insurance Check')", "chain_precedence:('Send Questionnaire', 'Reject Claim')", "chain_precedence:('Send Questionnaire', 'Accept Claim')", "chain_precedence:('Send Questionnaire', 'High Insurance Check')", "chain_precedence:('Send Questionnaire', 'Low Medical History')", "chain_precedence:('Send Questionnaire', 'Register')", "chain_precedence:('Send Questionnaire', 'Send Notification by Post')", "chain_precedence:('Send Questionnaire', 'Create Questionnaire')", "chain_precedence:('Send Questionnaire', 'Contact Hospital')", "chain_precedence:('Send Questionnaire', 'Prepare Notification Content')", "chain_precedence:('Send Questionnaire', 'High Medical History')", "chain_precedence:('Send Questionnaire', 'Send Notification by e-mail')", "chain_precedence:('Send Notification by Post', 'Low Insurance Check')", "chain_precedence:('Send Notification by Post', 'Reject Claim')", "chain_precedence:('Send Notification by Post', 'Accept Claim')", "chain_precedence:('Send Notification by Post', 'High Insurance Check')", "chain_precedence:('Send Notification by Post', 'Low Medical History')", "chain_precedence:('Send Notification by Post', 'Register')", "chain_precedence:('Send Notification by Post', 'Send Questionnaire')", "chain_precedence:('Send Notification by Post', 'Create Questionnaire')", "chain_precedence:('Send Notification by Post', 'Contact Hospital')", "chain_precedence:('Send Notification by Post', 'Prepare Notification Content')", "chain_precedence:('Send Notification by Post', 'High Medical History')", "chain_precedence:('Send Notification by Post', 'Send Notification by e-mail')", "chain_precedence:('Create Questionnaire', 'Low Insurance Check')", "chain_precedence:('Create Questionnaire', 'Reject Claim')", "chain_precedence:('Create Questionnaire', 'Accept Claim')", "chain_precedence:('Create Questionnaire', 'High Insurance Check')", "chain_precedence:('Create Questionnaire', 'Low Medical History')", "chain_precedence:('Create Questionnaire', 'Register')", "chain_precedence:('Create Questionnaire', 'Send Questionnaire')", "chain_precedence:('Create Questionnaire', 'Send Notification by Post')", "chain_precedence:('Create Questionnaire', 'Contact Hospital')", "chain_precedence:('Create Questionnaire', 'Prepare Notification Content')", "chain_precedence:('Create Questionnaire', 'High Medical History')", "chain_precedence:('Create Questionnaire', 'Send Notification by e-mail')", "chain_precedence:('Contact Hospital', 'Low Insurance Check')", "chain_precedence:('Contact Hospital', 'Reject Claim')", "chain_precedence:('Contact Hospital', 'Accept Claim')", "chain_precedence:('Contact Hospital', 'High Insurance Check')", "chain_precedence:('Contact Hospital', 'Low Medical History')", "chain_precedence:('Contact Hospital', 'Register')", "chain_precedence:('Contact Hospital', 'Send Questionnaire')", "chain_precedence:('Contact Hospital', 'Send Notification by Post')", "chain_precedence:('Contact Hospital', 'Create Questionnaire')", "chain_precedence:('Contact Hospital', 'Prepare Notification Content')", "chain_precedence:('Contact Hospital', 'High Medical History')", "chain_precedence:('Contact Hospital', 'Send Notification by e-mail')", "chain_precedence:('Prepare Notification Content', 'Low Insurance Check')", "chain_precedence:('Prepare Notification Content', 'Reject Claim')", "chain_precedence:('Prepare Notification Content', 'Accept Claim')", "chain_precedence:('Prepare Notification Content', 'High Insurance Check')", "chain_precedence:('Prepare Notification Content', 'Low Medical History')", "chain_precedence:('Prepare Notification Content', 'Register')", "chain_precedence:('Prepare Notification Content', 'Send Questionnaire')", "chain_precedence:('Prepare Notification Content', 'Send Notification by Post')", "chain_precedence:('Prepare Notification Content', 'Create Questionnaire')", "chain_precedence:('Prepare Notification Content', 'Contact Hospital')", "chain_precedence:('Prepare Notification Content', 'High Medical History')", "chain_precedence:('Prepare Notification Content', 'Send Notification by e-mail')", "chain_precedence:('High Medical History', 'Low Insurance Check')", "chain_precedence:('High Medical History', 'Reject Claim')", "chain_precedence:('High Medical History', 'Accept Claim')", "chain_precedence:('High Medical History', 'High Insurance Check')", "chain_precedence:('High Medical History', 'Low Medical History')", "chain_precedence:('High Medical History', 'Register')", "chain_precedence:('High Medical History', 'Send Questionnaire')", "chain_precedence:('High Medical History', 'Send Notification by Post')", "chain_precedence:('High Medical History', 'Create Questionnaire')", "chain_precedence:('High Medical History', 'Contact Hospital')", "chain_precedence:('High Medical History', 'Prepare Notification Content')", "chain_precedence:('High Medical History', 'Send Notification by e-mail')", "chain_precedence:('Send Notification by e-mail', 'Low Insurance Check')", "chain_precedence:('Send Notification by e-mail', 'Reject Claim')", "chain_precedence:('Send Notification by e-mail', 'Accept Claim')", "chain_precedence:('Send Notification by e-mail', 'High Insurance Check')", "chain_precedence:('Send Notification by e-mail', 'Low Medical History')", "chain_precedence:('Send Notification by e-mail', 'Register')", "chain_precedence:('Send Notification by e-mail', 'Send Questionnaire')", "chain_precedence:('Send Notification by e-mail', 'Send Notification by Post')", "chain_precedence:('Send Notification by e-mail', 'Create Questionnaire')", "chain_precedence:('Send Notification by e-mail', 'Contact Hospital')", "chain_precedence:('Send Notification by e-mail', 'Prepare Notification Content')", "chain_precedence:('Send Notification by e-mail', 'High Medical History')", "chain_response:('Low Insurance Check', 'Reject Claim')", "chain_response:('Low Insurance Check', 'Accept Claim')", "chain_response:('Low Insurance Check', 'High Insurance Check')", "chain_response:('Low Insurance Check', 'Low Medical History')", "chain_response:('Low Insurance Check', 'Register')", "chain_response:('Low Insurance Check', 'Send Questionnaire')", "chain_response:('Low Insurance Check', 'Send Notification by Post')", "chain_response:('Low Insurance Check', 'Create Questionnaire')", "chain_response:('Low Insurance Check', 'Contact Hospital')", "chain_response:('Low Insurance Check', 'Prepare Notification Content')", "chain_response:('Low Insurance Check', 'High Medical History')", "chain_response:('Low Insurance Check', 'Send Notification by e-mail')", "chain_response:('Reject Claim', 'Low Insurance Check')", "chain_response:('Reject Claim', 'Accept Claim')", "chain_response:('Reject Claim', 'High Insurance Check')", "chain_response:('Reject Claim', 'Low Medical History')", "chain_response:('Reject Claim', 'Register')", "chain_response:('Reject Claim', 'Send Questionnaire')", "chain_response:('Reject Claim', 'Send Notification by Post')", "chain_response:('Reject Claim', 'Create Questionnaire')", "chain_response:('Reject Claim', 'Contact Hospital')", "chain_response:('Reject Claim', 'Prepare Notification Content')", "chain_response:('Reject Claim', 'High Medical History')", "chain_response:('Reject Claim', 'Send Notification by e-mail')", "chain_response:('Accept Claim', 'Low Insurance Check')", "chain_response:('Accept Claim', 'Reject Claim')", "chain_response:('Accept Claim', 'High Insurance Check')", "chain_response:('Accept Claim', 'Low Medical History')", "chain_response:('Accept Claim', 'Register')", "chain_response:('Accept Claim', 'Send Questionnaire')", "chain_response:('Accept Claim', 'Send Notification by Post')", "chain_response:('Accept Claim', 'Create Questionnaire')", "chain_response:('Accept Claim', 'Contact Hospital')", "chain_response:('Accept Claim', 'Prepare Notification Content')", "chain_response:('Accept Claim', 'High Medical History')", "chain_response:('Accept Claim', 'Send Notification by e-mail')", "chain_response:('High Insurance Check', 'Low Insurance Check')", "chain_response:('High Insurance Check', 'Reject Claim')", "chain_response:('High Insurance Check', 'Accept Claim')", "chain_response:('High Insurance Check', 'Low Medical History')", "chain_response:('High Insurance Check', 'Register')", "chain_response:('High Insurance Check', 'Send Questionnaire')", "chain_response:('High Insurance Check', 'Send Notification by Post')", "chain_response:('High Insurance Check', 'Create Questionnaire')", "chain_response:('High Insurance Check', 'Contact Hospital')", "chain_response:('High Insurance Check', 'Prepare Notification Content')", "chain_response:('High Insurance Check', 'High Medical History')", "chain_response:('High Insurance Check', 'Send Notification by e-mail')", "chain_response:('Low Medical History', 'Low Insurance Check')", "chain_response:('Low Medical History', 'Reject Claim')", "chain_response:('Low Medical History', 'Accept Claim')", "chain_response:('Low Medical History', 'High Insurance Check')", "chain_response:('Low Medical History', 'Register')", "chain_response:('Low Medical History', 'Send Questionnaire')", "chain_response:('Low Medical History', 'Send Notification by Post')", "chain_response:('Low Medical History', 'Create Questionnaire')", "chain_response:('Low Medical History', 'Contact Hospital')", "chain_response:('Low Medical History', 'Prepare Notification Content')", "chain_response:('Low Medical History', 'High Medical History')", "chain_response:('Low Medical History', 'Send Notification by e-mail')", "chain_response:('Register', 'Low Insurance Check')", "chain_response:('Register', 'Reject Claim')", "chain_response:('Register', 'Accept Claim')", "chain_response:('Register', 'High Insurance Check')", "chain_response:('Register', 'Low Medical History')", "chain_response:('Register', 'Send Questionnaire')", "chain_response:('Register', 'Send Notification by Post')", "chain_response:('Register', 'Create Questionnaire')", "chain_response:('Register', 'Contact Hospital')", "chain_response:('Register', 'Prepare Notification Content')", "chain_response:('Register', 'High Medical History')", "chain_response:('Register', 'Send Notification by e-mail')", "chain_response:('Send Questionnaire', 'Low Insurance Check')", "chain_response:('Send Questionnaire', 'Reject Claim')", "chain_response:('Send Questionnaire', 'Accept Claim')", "chain_response:('Send Questionnaire', 'High Insurance Check')", "chain_response:('Send Questionnaire', 'Low Medical History')", "chain_response:('Send Questionnaire', 'Register')", "chain_response:('Send Questionnaire', 'Send Notification by Post')", "chain_response:('Send Questionnaire', 'Create Questionnaire')", "chain_response:('Send Questionnaire', 'Contact Hospital')", "chain_response:('Send Questionnaire', 'Prepare Notification Content')", "chain_response:('Send Questionnaire', 'High Medical History')", "chain_response:('Send Questionnaire', 'Send Notification by e-mail')", "chain_response:('Send Notification by Post', 'Low Insurance Check')", "chain_response:('Send Notification by Post', 'Reject Claim')", "chain_response:('Send Notification by Post', 'Accept Claim')", "chain_response:('Send Notification by Post', 'High Insurance Check')", "chain_response:('Send Notification by Post', 'Low Medical History')", "chain_response:('Send Notification by Post', 'Register')", "chain_response:('Send Notification by Post', 'Send Questionnaire')", "chain_response:('Send Notification by Post', 'Create Questionnaire')", "chain_response:('Send Notification by Post', 'Contact Hospital')", "chain_response:('Send Notification by Post', 'Prepare Notification Content')", "chain_response:('Send Notification by Post', 'High Medical History')", "chain_response:('Send Notification by Post', 'Send Notification by e-mail')", "chain_response:('Create Questionnaire', 'Low Insurance Check')", "chain_response:('Create Questionnaire', 'Reject Claim')", "chain_response:('Create Questionnaire', 'Accept Claim')", "chain_response:('Create Questionnaire', 'High Insurance Check')", "chain_response:('Create Questionnaire', 'Low Medical History')", "chain_response:('Create Questionnaire', 'Register')", "chain_response:('Create Questionnaire', 'Send Questionnaire')", "chain_response:('Create Questionnaire', 'Send Notification by Post')", "chain_response:('Create Questionnaire', 'Contact Hospital')", "chain_response:('Create Questionnaire', 'Prepare Notification Content')", "chain_response:('Create Questionnaire', 'High Medical History')", "chain_response:('Create Questionnaire', 'Send Notification by e-mail')", "chain_response:('Contact Hospital', 'Low Insurance Check')", "chain_response:('Contact Hospital', 'Reject Claim')", "chain_response:('Contact Hospital', 'Accept Claim')", "chain_response:('Contact Hospital', 'High Insurance Check')", "chain_response:('Contact Hospital', 'Low Medical History')", "chain_response:('Contact Hospital', 'Register')", "chain_response:('Contact Hospital', 'Send Questionnaire')", "chain_response:('Contact Hospital', 'Send Notification by Post')", "chain_response:('Contact Hospital', 'Create Questionnaire')", "chain_response:('Contact Hospital', 'Prepare Notification Content')", "chain_response:('Contact Hospital', 'High Medical History')", "chain_response:('Contact Hospital', 'Send Notification by e-mail')", "chain_response:('Prepare Notification Content', 'Low Insurance Check')", "chain_response:('Prepare Notification Content', 'Reject Claim')", "chain_response:('Prepare Notification Content', 'Accept Claim')", "chain_response:('Prepare Notification Content', 'High Insurance Check')", "chain_response:('Prepare Notification Content', 'Low Medical History')", "chain_response:('Prepare Notification Content', 'Register')", "chain_response:('Prepare Notification Content', 'Send Questionnaire')", "chain_response:('Prepare Notification Content', 'Send Notification by Post')", "chain_response:('Prepare Notification Content', 'Create Questionnaire')", "chain_response:('Prepare Notification Content', 'Contact Hospital')", "chain_response:('Prepare Notification Content', 'High Medical History')", "chain_response:('Prepare Notification Content', 'Send Notification by e-mail')", "chain_response:('High Medical History', 'Low Insurance Check')", "chain_response:('High Medical History', 'Reject Claim')", "chain_response:('High Medical History', 'Accept Claim')", "chain_response:('High Medical History', 'High Insurance Check')", "chain_response:('High Medical History', 'Low Medical History')", "chain_response:('High Medical History', 'Register')", "chain_response:('High Medical History', 'Send Questionnaire')", "chain_response:('High Medical History', 'Send Notification by Post')", "chain_response:('High Medical History', 'Create Questionnaire')", "chain_response:('High Medical History', 'Contact Hospital')", "chain_response:('High Medical History', 'Prepare Notification Content')", "chain_response:('High Medical History', 'Send Notification by e-mail')", "chain_response:('Send Notification by e-mail', 'Low Insurance Check')", "chain_response:('Send Notification by e-mail', 'Reject Claim')", "chain_response:('Send Notification by e-mail', 'Accept Claim')", "chain_response:('Send Notification by e-mail', 'High Insurance Check')", "chain_response:('Send Notification by e-mail', 'Low Medical History')", "chain_response:('Send Notification by e-mail', 'Register')", "chain_response:('Send Notification by e-mail', 'Send Questionnaire')", "chain_response:('Send Notification by e-mail', 'Send Notification by Post')", "chain_response:('Send Notification by e-mail', 'Create Questionnaire')", "chain_response:('Send Notification by e-mail', 'Contact Hospital')", "chain_response:('Send Notification by e-mail', 'Prepare Notification Content')", "chain_response:('Send Notification by e-mail', 'High Medical History')", "chain_succession:('Low Insurance Check', 'Reject Claim')", "chain_succession:('Low Insurance Check', 'Accept Claim')", "chain_succession:('Low Insurance Check', 'High Insurance Check')", "chain_succession:('Low Insurance Check', 'Low Medical History')", "chain_succession:('Low Insurance Check', 'Register')", "chain_succession:('Low Insurance Check', 'Send Questionnaire')", "chain_succession:('Low Insurance Check', 'Send Notification by Post')", "chain_succession:('Low Insurance Check', 'Create Questionnaire')", "chain_succession:('Low Insurance Check', 'Contact Hospital')", "chain_succession:('Low Insurance Check', 'Prepare Notification Content')", "chain_succession:('Low Insurance Check', 'High Medical History')", "chain_succession:('Low Insurance Check', 'Send Notification by e-mail')", "chain_succession:('Reject Claim', 'Low Insurance Check')", "chain_succession:('Reject Claim', 'Accept Claim')", "chain_succession:('Reject Claim', 'High Insurance Check')", "chain_succession:('Reject Claim', 'Low Medical History')", "chain_succession:('Reject Claim', 'Register')", "chain_succession:('Reject Claim', 'Send Questionnaire')", "chain_succession:('Reject Claim', 'Send Notification by Post')", "chain_succession:('Reject Claim', 'Create Questionnaire')", "chain_succession:('Reject Claim', 'Contact Hospital')", "chain_succession:('Reject Claim', 'Prepare Notification Content')", "chain_succession:('Reject Claim', 'High Medical History')", "chain_succession:('Reject Claim', 'Send Notification by e-mail')", "chain_succession:('Accept Claim', 'Low Insurance Check')", "chain_succession:('Accept Claim', 'Reject Claim')", "chain_succession:('Accept Claim', 'High Insurance Check')", "chain_succession:('Accept Claim', 'Low Medical History')", "chain_succession:('Accept Claim', 'Register')", "chain_succession:('Accept Claim', 'Send Questionnaire')", "chain_succession:('Accept Claim', 'Send Notification by Post')", "chain_succession:('Accept Claim', 'Create Questionnaire')", "chain_succession:('Accept Claim', 'Contact Hospital')", "chain_succession:('Accept Claim', 'Prepare Notification Content')", "chain_succession:('Accept Claim', 'High Medical History')", "chain_succession:('Accept Claim', 'Send Notification by e-mail')", "chain_succession:('High Insurance Check', 'Low Insurance Check')", "chain_succession:('High Insurance Check', 'Reject Claim')", "chain_succession:('High Insurance Check', 'Accept Claim')", "chain_succession:('High Insurance Check', 'Low Medical History')", "chain_succession:('High Insurance Check', 'Register')", "chain_succession:('High Insurance Check', 'Send Questionnaire')", "chain_succession:('High Insurance Check', 'Send Notification by Post')", "chain_succession:('High Insurance Check', 'Create Questionnaire')", "chain_succession:('High Insurance Check', 'Contact Hospital')", "chain_succession:('High Insurance Check', 'Prepare Notification Content')", "chain_succession:('High Insurance Check', 'High Medical History')", "chain_succession:('High Insurance Check', 'Send Notification by e-mail')", "chain_succession:('Low Medical History', 'Low Insurance Check')", "chain_succession:('Low Medical History', 'Reject Claim')", "chain_succession:('Low Medical History', 'Accept Claim')", "chain_succession:('Low Medical History', 'High Insurance Check')", "chain_succession:('Low Medical History', 'Register')", "chain_succession:('Low Medical History', 'Send Questionnaire')", "chain_succession:('Low Medical History', 'Send Notification by Post')", "chain_succession:('Low Medical History', 'Create Questionnaire')", "chain_succession:('Low Medical History', 'Contact Hospital')", "chain_succession:('Low Medical History', 'Prepare Notification Content')", "chain_succession:('Low Medical History', 'High Medical History')", "chain_succession:('Low Medical History', 'Send Notification by e-mail')", "chain_succession:('Register', 'Low Insurance Check')", "chain_succession:('Register', 'Reject Claim')", "chain_succession:('Register', 'Accept Claim')", "chain_succession:('Register', 'High Insurance Check')", "chain_succession:('Register', 'Low Medical History')", "chain_succession:('Register', 'Send Questionnaire')", "chain_succession:('Register', 'Send Notification by Post')", "chain_succession:('Register', 'Create Questionnaire')", "chain_succession:('Register', 'Contact Hospital')", "chain_succession:('Register', 'Prepare Notification Content')", "chain_succession:('Register', 'High Medical History')", "chain_succession:('Register', 'Send Notification by e-mail')", "chain_succession:('Send Questionnaire', 'Low Insurance Check')", "chain_succession:('Send Questionnaire', 'Reject Claim')", "chain_succession:('Send Questionnaire', 'Accept Claim')", "chain_succession:('Send Questionnaire', 'High Insurance Check')", "chain_succession:('Send Questionnaire', 'Low Medical History')", "chain_succession:('Send Questionnaire', 'Register')", "chain_succession:('Send Questionnaire', 'Send Notification by Post')", "chain_succession:('Send Questionnaire', 'Create Questionnaire')", "chain_succession:('Send Questionnaire', 'Contact Hospital')", "chain_succession:('Send Questionnaire', 'Prepare Notification Content')", "chain_succession:('Send Questionnaire', 'High Medical History')", "chain_succession:('Send Questionnaire', 'Send Notification by e-mail')", "chain_succession:('Send Notification by Post', 'Low Insurance Check')", "chain_succession:('Send Notification by Post', 'Reject Claim')", "chain_succession:('Send Notification by Post', 'Accept Claim')", "chain_succession:('Send Notification by Post', 'High Insurance Check')", "chain_succession:('Send Notification by Post', 'Low Medical History')", "chain_succession:('Send Notification by Post', 'Register')", "chain_succession:('Send Notification by Post', 'Send Questionnaire')", "chain_succession:('Send Notification by Post', 'Create Questionnaire')", "chain_succession:('Send Notification by Post', 'Contact Hospital')", "chain_succession:('Send Notification by Post', 'Prepare Notification Content')", "chain_succession:('Send Notification by Post', 'High Medical History')", "chain_succession:('Send Notification by Post', 'Send Notification by e-mail')", "chain_succession:('Create Questionnaire', 'Low Insurance Check')", "chain_succession:('Create Questionnaire', 'Reject Claim')", "chain_succession:('Create Questionnaire', 'Accept Claim')", "chain_succession:('Create Questionnaire', 'High Insurance Check')", "chain_succession:('Create Questionnaire', 'Low Medical History')", "chain_succession:('Create Questionnaire', 'Register')", "chain_succession:('Create Questionnaire', 'Send Questionnaire')", "chain_succession:('Create Questionnaire', 'Send Notification by Post')", "chain_succession:('Create Questionnaire', 'Contact Hospital')", "chain_succession:('Create Questionnaire', 'Prepare Notification Content')", "chain_succession:('Create Questionnaire', 'High Medical History')", "chain_succession:('Create Questionnaire', 'Send Notification by e-mail')", "chain_succession:('Contact Hospital', 'Low Insurance Check')", "chain_succession:('Contact Hospital', 'Reject Claim')", "chain_succession:('Contact Hospital', 'Accept Claim')", "chain_succession:('Contact Hospital', 'High Insurance Check')", "chain_succession:('Contact Hospital', 'Low Medical History')", "chain_succession:('Contact Hospital', 'Register')", "chain_succession:('Contact Hospital', 'Send Questionnaire')", "chain_succession:('Contact Hospital', 'Send Notification by Post')", "chain_succession:('Contact Hospital', 'Create Questionnaire')", "chain_succession:('Contact Hospital', 'Prepare Notification Content')", "chain_succession:('Contact Hospital', 'High Medical History')", "chain_succession:('Contact Hospital', 'Send Notification by e-mail')", "chain_succession:('Prepare Notification Content', 'Low Insurance Check')", "chain_succession:('Prepare Notification Content', 'Reject Claim')", "chain_succession:('Prepare Notification Content', 'Accept Claim')", "chain_succession:('Prepare Notification Content', 'High Insurance Check')", "chain_succession:('Prepare Notification Content', 'Low Medical History')", "chain_succession:('Prepare Notification Content', 'Register')", "chain_succession:('Prepare Notification Content', 'Send Questionnaire')", "chain_succession:('Prepare Notification Content', 'Send Notification by Post')", "chain_succession:('Prepare Notification Content', 'Create Questionnaire')", "chain_succession:('Prepare Notification Content', 'Contact Hospital')", "chain_succession:('Prepare Notification Content', 'High Medical History')", "chain_succession:('Prepare Notification Content', 'Send Notification by e-mail')", "chain_succession:('High Medical History', 'Low Insurance Check')", "chain_succession:('High Medical History', 'Reject Claim')", "chain_succession:('High Medical History', 'Accept Claim')", "chain_succession:('High Medical History', 'High Insurance Check')", "chain_succession:('High Medical History', 'Low Medical History')", "chain_succession:('High Medical History', 'Register')", "chain_succession:('High Medical History', 'Send Questionnaire')", "chain_succession:('High Medical History', 'Send Notification by Post')", "chain_succession:('High Medical History', 'Create Questionnaire')", "chain_succession:('High Medical History', 'Contact Hospital')", "chain_succession:('High Medical History', 'Prepare Notification Content')", "chain_succession:('High Medical History', 'Send Notification by e-mail')", "chain_succession:('Send Notification by e-mail', 'Low Insurance Check')", "chain_succession:('Send Notification by e-mail', 'Reject Claim')", "chain_succession:('Send Notification by e-mail', 'Accept Claim')", "chain_succession:('Send Notification by e-mail', 'High Insurance Check')", "chain_succession:('Send Notification by e-mail', 'Low Medical History')", "chain_succession:('Send Notification by e-mail', 'Register')", "chain_succession:('Send Notification by e-mail', 'Send Questionnaire')", "chain_succession:('Send Notification by e-mail', 'Send Notification by Post')", "chain_succession:('Send Notification by e-mail', 'Create Questionnaire')", "chain_succession:('Send Notification by e-mail', 'Contact Hospital')", "chain_succession:('Send Notification by e-mail', 'Prepare Notification Content')", "chain_succession:('Send Notification by e-mail', 'High Medical History')", "not_chain_succession:('Low Insurance Check', 'Reject Claim')", "not_chain_succession:('Low Insurance Check', 'Accept Claim')", "not_chain_succession:('Low Insurance Check', 'High Insurance Check')", "not_chain_succession:('Low Insurance Check', 'Low Medical History')", "not_chain_succession:('Low Insurance Check', 'Register')", "not_chain_succession:('Low Insurance Check', 'Send Questionnaire')", "not_chain_succession:('Low Insurance Check', 'Send Notification by Post')", "not_chain_succession:('Low Insurance Check', 'Create Questionnaire')", "not_chain_succession:('Low Insurance Check', 'Contact Hospital')", "not_chain_succession:('Low Insurance Check', 'Prepare Notification Content')", "not_chain_succession:('Low Insurance Check', 'High Medical History')", "not_chain_succession:('Low Insurance Check', 'Send Notification by e-mail')", "not_chain_succession:('Reject Claim', 'Low Insurance Check')", "not_chain_succession:('Reject Claim', 'Accept Claim')", "not_chain_succession:('Reject Claim', 'High Insurance Check')", "not_chain_succession:('Reject Claim', 'Low Medical History')", "not_chain_succession:('Reject Claim', 'Register')", "not_chain_succession:('Reject Claim', 'Send Questionnaire')", "not_chain_succession:('Reject Claim', 'Send Notification by Post')", "not_chain_succession:('Reject Claim', 'Create Questionnaire')", "not_chain_succession:('Reject Claim', 'Contact Hospital')", "not_chain_succession:('Reject Claim', 'Prepare Notification Content')", "not_chain_succession:('Reject Claim', 'High Medical History')", "not_chain_succession:('Reject Claim', 'Send Notification by e-mail')", "not_chain_succession:('Accept Claim', 'Low Insurance Check')", "not_chain_succession:('Accept Claim', 'Reject Claim')", "not_chain_succession:('Accept Claim', 'High Insurance Check')", "not_chain_succession:('Accept Claim', 'Low Medical History')", "not_chain_succession:('Accept Claim', 'Register')", "not_chain_succession:('Accept Claim', 'Send Questionnaire')", "not_chain_succession:('Accept Claim', 'Send Notification by Post')", "not_chain_succession:('Accept Claim', 'Create Questionnaire')", "not_chain_succession:('Accept Claim', 'Contact Hospital')", "not_chain_succession:('Accept Claim', 'Prepare Notification Content')", "not_chain_succession:('Accept Claim', 'High Medical History')", "not_chain_succession:('Accept Claim', 'Send Notification by e-mail')", "not_chain_succession:('High Insurance Check', 'Low Insurance Check')", "not_chain_succession:('High Insurance Check', 'Reject Claim')", "not_chain_succession:('High Insurance Check', 'Accept Claim')", "not_chain_succession:('High Insurance Check', 'Low Medical History')", "not_chain_succession:('High Insurance Check', 'Register')", "not_chain_succession:('High Insurance Check', 'Send Questionnaire')", "not_chain_succession:('High Insurance Check', 'Send Notification by Post')", "not_chain_succession:('High Insurance Check', 'Create Questionnaire')", "not_chain_succession:('High Insurance Check', 'Contact Hospital')", "not_chain_succession:('High Insurance Check', 'Prepare Notification Content')", "not_chain_succession:('High Insurance Check', 'High Medical History')", "not_chain_succession:('High Insurance Check', 'Send Notification by e-mail')", "not_chain_succession:('Low Medical History', 'Low Insurance Check')", "not_chain_succession:('Low Medical History', 'Reject Claim')", "not_chain_succession:('Low Medical History', 'Accept Claim')", "not_chain_succession:('Low Medical History', 'High Insurance Check')", "not_chain_succession:('Low Medical History', 'Register')", "not_chain_succession:('Low Medical History', 'Send Questionnaire')", "not_chain_succession:('Low Medical History', 'Send Notification by Post')", "not_chain_succession:('Low Medical History', 'Create Questionnaire')", "not_chain_succession:('Low Medical History', 'Contact Hospital')", "not_chain_succession:('Low Medical History', 'Prepare Notification Content')", "not_chain_succession:('Low Medical History', 'High Medical History')", "not_chain_succession:('Low Medical History', 'Send Notification by e-mail')", "not_chain_succession:('Register', 'Low Insurance Check')", "not_chain_succession:('Register', 'Reject Claim')", "not_chain_succession:('Register', 'Accept Claim')", "not_chain_succession:('Register', 'High Insurance Check')", "not_chain_succession:('Register', 'Low Medical History')", "not_chain_succession:('Register', 'Send Questionnaire')", "not_chain_succession:('Register', 'Send Notification by Post')", "not_chain_succession:('Register', 'Create Questionnaire')", "not_chain_succession:('Register', 'Contact Hospital')", "not_chain_succession:('Register', 'Prepare Notification Content')", "not_chain_succession:('Register', 'High Medical History')", "not_chain_succession:('Register', 'Send Notification by e-mail')", "not_chain_succession:('Send Questionnaire', 'Low Insurance Check')", "not_chain_succession:('Send Questionnaire', 'Reject Claim')", "not_chain_succession:('Send Questionnaire', 'Accept Claim')", "not_chain_succession:('Send Questionnaire', 'High Insurance Check')", "not_chain_succession:('Send Questionnaire', 'Low Medical History')", "not_chain_succession:('Send Questionnaire', 'Register')", "not_chain_succession:('Send Questionnaire', 'Send Notification by Post')", "not_chain_succession:('Send Questionnaire', 'Create Questionnaire')", "not_chain_succession:('Send Questionnaire', 'Contact Hospital')", "not_chain_succession:('Send Questionnaire', 'Prepare Notification Content')", "not_chain_succession:('Send Questionnaire', 'High Medical History')", "not_chain_succession:('Send Questionnaire', 'Send Notification by e-mail')", "not_chain_succession:('Send Notification by Post', 'Low Insurance Check')", "not_chain_succession:('Send Notification by Post', 'Reject Claim')", "not_chain_succession:('Send Notification by Post', 'Accept Claim')", "not_chain_succession:('Send Notification by Post', 'High Insurance Check')", "not_chain_succession:('Send Notification by Post', 'Low Medical History')", "not_chain_succession:('Send Notification by Post', 'Register')", "not_chain_succession:('Send Notification by Post', 'Send Questionnaire')", "not_chain_succession:('Send Notification by Post', 'Create Questionnaire')", "not_chain_succession:('Send Notification by Post', 'Contact Hospital')", "not_chain_succession:('Send Notification by Post', 'Prepare Notification Content')", "not_chain_succession:('Send Notification by Post', 'High Medical History')", "not_chain_succession:('Send Notification by Post', 'Send Notification by e-mail')", "not_chain_succession:('Create Questionnaire', 'Low Insurance Check')", "not_chain_succession:('Create Questionnaire', 'Reject Claim')", "not_chain_succession:('Create Questionnaire', 'Accept Claim')", "not_chain_succession:('Create Questionnaire', 'High Insurance Check')", "not_chain_succession:('Create Questionnaire', 'Low Medical History')", "not_chain_succession:('Create Questionnaire', 'Register')", "not_chain_succession:('Create Questionnaire', 'Send Questionnaire')", "not_chain_succession:('Create Questionnaire', 'Send Notification by Post')", "not_chain_succession:('Create Questionnaire', 'Contact Hospital')", "not_chain_succession:('Create Questionnaire', 'Prepare Notification Content')", "not_chain_succession:('Create Questionnaire', 'High Medical History')", "not_chain_succession:('Create Questionnaire', 'Send Notification by e-mail')", "not_chain_succession:('Contact Hospital', 'Low Insurance Check')", "not_chain_succession:('Contact Hospital', 'Reject Claim')", "not_chain_succession:('Contact Hospital', 'Accept Claim')", "not_chain_succession:('Contact Hospital', 'High Insurance Check')", "not_chain_succession:('Contact Hospital', 'Low Medical History')", "not_chain_succession:('Contact Hospital', 'Register')", "not_chain_succession:('Contact Hospital', 'Send Questionnaire')", "not_chain_succession:('Contact Hospital', 'Send Notification by Post')", "not_chain_succession:('Contact Hospital', 'Create Questionnaire')", "not_chain_succession:('Contact Hospital', 'Prepare Notification Content')", "not_chain_succession:('Contact Hospital', 'High Medical History')", "not_chain_succession:('Contact Hospital', 'Send Notification by e-mail')", "not_chain_succession:('Prepare Notification Content', 'Low Insurance Check')", "not_chain_succession:('Prepare Notification Content', 'Reject Claim')", "not_chain_succession:('Prepare Notification Content', 'Accept Claim')", "not_chain_succession:('Prepare Notification Content', 'High Insurance Check')", "not_chain_succession:('Prepare Notification Content', 'Low Medical History')", "not_chain_succession:('Prepare Notification Content', 'Register')", "not_chain_succession:('Prepare Notification Content', 'Send Questionnaire')", "not_chain_succession:('Prepare Notification Content', 'Send Notification by Post')", "not_chain_succession:('Prepare Notification Content', 'Create Questionnaire')", "not_chain_succession:('Prepare Notification Content', 'Contact Hospital')", "not_chain_succession:('Prepare Notification Content', 'High Medical History')", "not_chain_succession:('Prepare Notification Content', 'Send Notification by e-mail')", "not_chain_succession:('High Medical History', 'Low Insurance Check')", "not_chain_succession:('High Medical History', 'Reject Claim')", "not_chain_succession:('High Medical History', 'Accept Claim')", "not_chain_succession:('High Medical History', 'High Insurance Check')", "not_chain_succession:('High Medical History', 'Low Medical History')", "not_chain_succession:('High Medical History', 'Register')", "not_chain_succession:('High Medical History', 'Send Questionnaire')", "not_chain_succession:('High Medical History', 'Send Notification by Post')", "not_chain_succession:('High Medical History', 'Create Questionnaire')", "not_chain_succession:('High Medical History', 'Contact Hospital')", "not_chain_succession:('High Medical History', 'Prepare Notification Content')", "not_chain_succession:('High Medical History', 'Send Notification by e-mail')", "not_chain_succession:('Send Notification by e-mail', 'Low Insurance Check')", "not_chain_succession:('Send Notification by e-mail', 'Reject Claim')", "not_chain_succession:('Send Notification by e-mail', 'Accept Claim')", "not_chain_succession:('Send Notification by e-mail', 'High Insurance Check')", "not_chain_succession:('Send Notification by e-mail', 'Low Medical History')", "not_chain_succession:('Send Notification by e-mail', 'Register')", "not_chain_succession:('Send Notification by e-mail', 'Send Questionnaire')", "not_chain_succession:('Send Notification by e-mail', 'Send Notification by Post')", "not_chain_succession:('Send Notification by e-mail', 'Create Questionnaire')", "not_chain_succession:('Send Notification by e-mail', 'Contact Hospital')", "not_chain_succession:('Send Notification by e-mail', 'Prepare Notification Content')", "not_chain_succession:('Send Notification by e-mail', 'High Medical History')", "not_coexistence:('Low Insurance Check', 'Reject Claim')", "not_coexistence:('Low Insurance Check', 'Accept Claim')", "not_coexistence:('Low Insurance Check', 'High Insurance Check')", "not_coexistence:('Low Insurance Check', 'Low Medical History')", "not_coexistence:('Low Insurance Check', 'Register')", "not_coexistence:('Low Insurance Check', 'Send Questionnaire')", "not_coexistence:('Low Insurance Check', 'Send Notification by Post')", "not_coexistence:('Low Insurance Check', 'Create Questionnaire')", "not_coexistence:('Low Insurance Check', 'Contact Hospital')", "not_coexistence:('Low Insurance Check', 'Prepare Notification Content')", "not_coexistence:('Low Insurance Check', 'High Medical History')", "not_coexistence:('Low Insurance Check', 'Send Notification by e-mail')", "not_coexistence:('Reject Claim', 'Low Insurance Check')", "not_coexistence:('Reject Claim', 'Accept Claim')", "not_coexistence:('Reject Claim', 'High Insurance Check')", "not_coexistence:('Reject Claim', 'Low Medical History')", "not_coexistence:('Reject Claim', 'Register')", "not_coexistence:('Reject Claim', 'Send Questionnaire')", "not_coexistence:('Reject Claim', 'Send Notification by Post')", "not_coexistence:('Reject Claim', 'Create Questionnaire')", "not_coexistence:('Reject Claim', 'Contact Hospital')", "not_coexistence:('Reject Claim', 'Prepare Notification Content')", "not_coexistence:('Reject Claim', 'High Medical History')", "not_coexistence:('Reject Claim', 'Send Notification by e-mail')", "not_coexistence:('Accept Claim', 'Low Insurance Check')", "not_coexistence:('Accept Claim', 'Reject Claim')", "not_coexistence:('Accept Claim', 'High Insurance Check')", "not_coexistence:('Accept Claim', 'Low Medical History')", "not_coexistence:('Accept Claim', 'Register')", "not_coexistence:('Accept Claim', 'Send Questionnaire')", "not_coexistence:('Accept Claim', 'Send Notification by Post')", "not_coexistence:('Accept Claim', 'Create Questionnaire')", "not_coexistence:('Accept Claim', 'Contact Hospital')", "not_coexistence:('Accept Claim', 'Prepare Notification Content')", "not_coexistence:('Accept Claim', 'High Medical History')", "not_coexistence:('Accept Claim', 'Send Notification by e-mail')", "not_coexistence:('High Insurance Check', 'Low Insurance Check')", "not_coexistence:('High Insurance Check', 'Reject Claim')", "not_coexistence:('High Insurance Check', 'Accept Claim')", "not_coexistence:('High Insurance Check', 'Low Medical History')", "not_coexistence:('High Insurance Check', 'Register')", "not_coexistence:('High Insurance Check', 'Send Questionnaire')", "not_coexistence:('High Insurance Check', 'Send Notification by Post')", "not_coexistence:('High Insurance Check', 'Create Questionnaire')", "not_coexistence:('High Insurance Check', 'Contact Hospital')", "not_coexistence:('High Insurance Check', 'Prepare Notification Content')", "not_coexistence:('High Insurance Check', 'High Medical History')", "not_coexistence:('High Insurance Check', 'Send Notification by e-mail')", "not_coexistence:('Low Medical History', 'Low Insurance Check')", "not_coexistence:('Low Medical History', 'Reject Claim')", "not_coexistence:('Low Medical History', 'Accept Claim')", "not_coexistence:('Low Medical History', 'High Insurance Check')", "not_coexistence:('Low Medical History', 'Register')", "not_coexistence:('Low Medical History', 'Send Questionnaire')", "not_coexistence:('Low Medical History', 'Send Notification by Post')", "not_coexistence:('Low Medical History', 'Create Questionnaire')", "not_coexistence:('Low Medical History', 'Contact Hospital')", "not_coexistence:('Low Medical History', 'Prepare Notification Content')", "not_coexistence:('Low Medical History', 'High Medical History')", "not_coexistence:('Low Medical History', 'Send Notification by e-mail')", "not_coexistence:('Register', 'Low Insurance Check')", "not_coexistence:('Register', 'Reject Claim')", "not_coexistence:('Register', 'Accept Claim')", "not_coexistence:('Register', 'High Insurance Check')", "not_coexistence:('Register', 'Low Medical History')", "not_coexistence:('Register', 'Send Questionnaire')", "not_coexistence:('Register', 'Send Notification by Post')", "not_coexistence:('Register', 'Create Questionnaire')", "not_coexistence:('Register', 'Contact Hospital')", "not_coexistence:('Register', 'Prepare Notification Content')", "not_coexistence:('Register', 'High Medical History')", "not_coexistence:('Register', 'Send Notification by e-mail')", "not_coexistence:('Send Questionnaire', 'Low Insurance Check')", "not_coexistence:('Send Questionnaire', 'Reject Claim')", "not_coexistence:('Send Questionnaire', 'Accept Claim')", "not_coexistence:('Send Questionnaire', 'High Insurance Check')", "not_coexistence:('Send Questionnaire', 'Low Medical History')", "not_coexistence:('Send Questionnaire', 'Register')", "not_coexistence:('Send Questionnaire', 'Send Notification by Post')", "not_coexistence:('Send Questionnaire', 'Create Questionnaire')", "not_coexistence:('Send Questionnaire', 'Contact Hospital')", "not_coexistence:('Send Questionnaire', 'Prepare Notification Content')", "not_coexistence:('Send Questionnaire', 'High Medical History')", "not_coexistence:('Send Questionnaire', 'Send Notification by e-mail')", "not_coexistence:('Send Notification by Post', 'Low Insurance Check')", "not_coexistence:('Send Notification by Post', 'Reject Claim')", "not_coexistence:('Send Notification by Post', 'Accept Claim')", "not_coexistence:('Send Notification by Post', 'High Insurance Check')", "not_coexistence:('Send Notification by Post', 'Low Medical History')", "not_coexistence:('Send Notification by Post', 'Register')", "not_coexistence:('Send Notification by Post', 'Send Questionnaire')", "not_coexistence:('Send Notification by Post', 'Create Questionnaire')", "not_coexistence:('Send Notification by Post', 'Contact Hospital')", "not_coexistence:('Send Notification by Post', 'Prepare Notification Content')", "not_coexistence:('Send Notification by Post', 'High Medical History')", "not_coexistence:('Send Notification by Post', 'Send Notification by e-mail')", "not_coexistence:('Create Questionnaire', 'Low Insurance Check')", "not_coexistence:('Create Questionnaire', 'Reject Claim')", "not_coexistence:('Create Questionnaire', 'Accept Claim')", "not_coexistence:('Create Questionnaire', 'High Insurance Check')", "not_coexistence:('Create Questionnaire', 'Low Medical History')", "not_coexistence:('Create Questionnaire', 'Register')", "not_coexistence:('Create Questionnaire', 'Send Questionnaire')", "not_coexistence:('Create Questionnaire', 'Send Notification by Post')", "not_coexistence:('Create Questionnaire', 'Contact Hospital')", "not_coexistence:('Create Questionnaire', 'Prepare Notification Content')", "not_coexistence:('Create Questionnaire', 'High Medical History')", "not_coexistence:('Create Questionnaire', 'Send Notification by e-mail')", "not_coexistence:('Contact Hospital', 'Low Insurance Check')", "not_coexistence:('Contact Hospital', 'Reject Claim')", "not_coexistence:('Contact Hospital', 'Accept Claim')", "not_coexistence:('Contact Hospital', 'High Insurance Check')", "not_coexistence:('Contact Hospital', 'Low Medical History')", "not_coexistence:('Contact Hospital', 'Register')", "not_coexistence:('Contact Hospital', 'Send Questionnaire')", "not_coexistence:('Contact Hospital', 'Send Notification by Post')", "not_coexistence:('Contact Hospital', 'Create Questionnaire')", "not_coexistence:('Contact Hospital', 'Prepare Notification Content')", "not_coexistence:('Contact Hospital', 'High Medical History')", "not_coexistence:('Contact Hospital', 'Send Notification by e-mail')", "not_coexistence:('Prepare Notification Content', 'Low Insurance Check')", "not_coexistence:('Prepare Notification Content', 'Reject Claim')", "not_coexistence:('Prepare Notification Content', 'Accept Claim')", "not_coexistence:('Prepare Notification Content', 'High Insurance Check')", "not_coexistence:('Prepare Notification Content', 'Low Medical History')", "not_coexistence:('Prepare Notification Content', 'Register')", "not_coexistence:('Prepare Notification Content', 'Send Questionnaire')", "not_coexistence:('Prepare Notification Content', 'Send Notification by Post')", "not_coexistence:('Prepare Notification Content', 'Create Questionnaire')", "not_coexistence:('Prepare Notification Content', 'Contact Hospital')", "not_coexistence:('Prepare Notification Content', 'High Medical History')", "not_coexistence:('Prepare Notification Content', 'Send Notification by e-mail')", "not_coexistence:('High Medical History', 'Low Insurance Check')", "not_coexistence:('High Medical History', 'Reject Claim')", "not_coexistence:('High Medical History', 'Accept Claim')", "not_coexistence:('High Medical History', 'High Insurance Check')", "not_coexistence:('High Medical History', 'Low Medical History')", "not_coexistence:('High Medical History', 'Register')", "not_coexistence:('High Medical History', 'Send Questionnaire')", "not_coexistence:('High Medical History', 'Send Notification by Post')", "not_coexistence:('High Medical History', 'Create Questionnaire')", "not_coexistence:('High Medical History', 'Contact Hospital')", "not_coexistence:('High Medical History', 'Prepare Notification Content')", "not_coexistence:('High Medical History', 'Send Notification by e-mail')", "not_coexistence:('Send Notification by e-mail', 'Low Insurance Check')", "not_coexistence:('Send Notification by e-mail', 'Reject Claim')", "not_coexistence:('Send Notification by e-mail', 'Accept Claim')", "not_coexistence:('Send Notification by e-mail', 'High Insurance Check')", "not_coexistence:('Send Notification by e-mail', 'Low Medical History')", "not_coexistence:('Send Notification by e-mail', 'Register')", "not_coexistence:('Send Notification by e-mail', 'Send Questionnaire')", "not_coexistence:('Send Notification by e-mail', 'Send Notification by Post')", "not_coexistence:('Send Notification by e-mail', 'Create Questionnaire')", "not_coexistence:('Send Notification by e-mail', 'Contact Hospital')", "not_coexistence:('Send Notification by e-mail', 'Prepare Notification Content')", "not_coexistence:('Send Notification by e-mail', 'High Medical History')", "not_succession:('Low Insurance Check', 'Reject Claim')", "not_succession:('Low Insurance Check', 'Accept Claim')", "not_succession:('Low Insurance Check', 'High Insurance Check')", "not_succession:('Low Insurance Check', 'Low Medical History')", "not_succession:('Low Insurance Check', 'Register')", "not_succession:('Low Insurance Check', 'Send Questionnaire')", "not_succession:('Low Insurance Check', 'Send Notification by Post')", "not_succession:('Low Insurance Check', 'Create Questionnaire')", "not_succession:('Low Insurance Check', 'Contact Hospital')", "not_succession:('Low Insurance Check', 'Prepare Notification Content')", "not_succession:('Low Insurance Check', 'High Medical History')", "not_succession:('Low Insurance Check', 'Send Notification by e-mail')", "not_succession:('Reject Claim', 'Low Insurance Check')", "not_succession:('Reject Claim', 'Accept Claim')", "not_succession:('Reject Claim', 'High Insurance Check')", "not_succession:('Reject Claim', 'Low Medical History')", "not_succession:('Reject Claim', 'Register')", "not_succession:('Reject Claim', 'Send Questionnaire')", "not_succession:('Reject Claim', 'Send Notification by Post')", "not_succession:('Reject Claim', 'Create Questionnaire')", "not_succession:('Reject Claim', 'Contact Hospital')", "not_succession:('Reject Claim', 'Prepare Notification Content')", "not_succession:('Reject Claim', 'High Medical History')", "not_succession:('Reject Claim', 'Send Notification by e-mail')", "not_succession:('Accept Claim', 'Low Insurance Check')", "not_succession:('Accept Claim', 'Reject Claim')", "not_succession:('Accept Claim', 'High Insurance Check')", "not_succession:('Accept Claim', 'Low Medical History')", "not_succession:('Accept Claim', 'Register')", "not_succession:('Accept Claim', 'Send Questionnaire')", "not_succession:('Accept Claim', 'Send Notification by Post')", "not_succession:('Accept Claim', 'Create Questionnaire')", "not_succession:('Accept Claim', 'Contact Hospital')", "not_succession:('Accept Claim', 'Prepare Notification Content')", "not_succession:('Accept Claim', 'High Medical History')", "not_succession:('Accept Claim', 'Send Notification by e-mail')", "not_succession:('High Insurance Check', 'Low Insurance Check')", "not_succession:('High Insurance Check', 'Reject Claim')", "not_succession:('High Insurance Check', 'Accept Claim')", "not_succession:('High Insurance Check', 'Low Medical History')", "not_succession:('High Insurance Check', 'Register')", "not_succession:('High Insurance Check', 'Send Questionnaire')", "not_succession:('High Insurance Check', 'Send Notification by Post')", "not_succession:('High Insurance Check', 'Create Questionnaire')", "not_succession:('High Insurance Check', 'Contact Hospital')", "not_succession:('High Insurance Check', 'Prepare Notification Content')", "not_succession:('High Insurance Check', 'High Medical History')", "not_succession:('High Insurance Check', 'Send Notification by e-mail')", "not_succession:('Low Medical History', 'Low Insurance Check')", "not_succession:('Low Medical History', 'Reject Claim')", "not_succession:('Low Medical History', 'Accept Claim')", "not_succession:('Low Medical History', 'High Insurance Check')", "not_succession:('Low Medical History', 'Register')", "not_succession:('Low Medical History', 'Send Questionnaire')", "not_succession:('Low Medical History', 'Send Notification by Post')", "not_succession:('Low Medical History', 'Create Questionnaire')", "not_succession:('Low Medical History', 'Contact Hospital')", "not_succession:('Low Medical History', 'Prepare Notification Content')", "not_succession:('Low Medical History', 'High Medical History')", "not_succession:('Low Medical History', 'Send Notification by e-mail')", "not_succession:('Register', 'Low Insurance Check')", "not_succession:('Register', 'Reject Claim')", "not_succession:('Register', 'Accept Claim')", "not_succession:('Register', 'High Insurance Check')", "not_succession:('Register', 'Low Medical History')", "not_succession:('Register', 'Send Questionnaire')", "not_succession:('Register', 'Send Notification by Post')", "not_succession:('Register', 'Create Questionnaire')", "not_succession:('Register', 'Contact Hospital')", "not_succession:('Register', 'Prepare Notification Content')", "not_succession:('Register', 'High Medical History')", "not_succession:('Register', 'Send Notification by e-mail')", "not_succession:('Send Questionnaire', 'Low Insurance Check')", "not_succession:('Send Questionnaire', 'Reject Claim')", "not_succession:('Send Questionnaire', 'Accept Claim')", "not_succession:('Send Questionnaire', 'High Insurance Check')", "not_succession:('Send Questionnaire', 'Low Medical History')", "not_succession:('Send Questionnaire', 'Register')", "not_succession:('Send Questionnaire', 'Send Notification by Post')", "not_succession:('Send Questionnaire', 'Create Questionnaire')", "not_succession:('Send Questionnaire', 'Contact Hospital')", "not_succession:('Send Questionnaire', 'Prepare Notification Content')", "not_succession:('Send Questionnaire', 'High Medical History')", "not_succession:('Send Questionnaire', 'Send Notification by e-mail')", "not_succession:('Send Notification by Post', 'Low Insurance Check')", "not_succession:('Send Notification by Post', 'Reject Claim')", "not_succession:('Send Notification by Post', 'Accept Claim')", "not_succession:('Send Notification by Post', 'High Insurance Check')", "not_succession:('Send Notification by Post', 'Low Medical History')", "not_succession:('Send Notification by Post', 'Register')", "not_succession:('Send Notification by Post', 'Send Questionnaire')", "not_succession:('Send Notification by Post', 'Create Questionnaire')", "not_succession:('Send Notification by Post', 'Contact Hospital')", "not_succession:('Send Notification by Post', 'Prepare Notification Content')", "not_succession:('Send Notification by Post', 'High Medical History')", "not_succession:('Send Notification by Post', 'Send Notification by e-mail')", "not_succession:('Create Questionnaire', 'Low Insurance Check')", "not_succession:('Create Questionnaire', 'Reject Claim')", "not_succession:('Create Questionnaire', 'Accept Claim')", "not_succession:('Create Questionnaire', 'High Insurance Check')", "not_succession:('Create Questionnaire', 'Low Medical History')", "not_succession:('Create Questionnaire', 'Register')", "not_succession:('Create Questionnaire', 'Send Questionnaire')", "not_succession:('Create Questionnaire', 'Send Notification by Post')", "not_succession:('Create Questionnaire', 'Contact Hospital')", "not_succession:('Create Questionnaire', 'Prepare Notification Content')", "not_succession:('Create Questionnaire', 'High Medical History')", "not_succession:('Create Questionnaire', 'Send Notification by e-mail')", "not_succession:('Contact Hospital', 'Low Insurance Check')", "not_succession:('Contact Hospital', 'Reject Claim')", "not_succession:('Contact Hospital', 'Accept Claim')", "not_succession:('Contact Hospital', 'High Insurance Check')", "not_succession:('Contact Hospital', 'Low Medical History')", "not_succession:('Contact Hospital', 'Register')", "not_succession:('Contact Hospital', 'Send Questionnaire')", "not_succession:('Contact Hospital', 'Send Notification by Post')", "not_succession:('Contact Hospital', 'Create Questionnaire')", "not_succession:('Contact Hospital', 'Prepare Notification Content')", "not_succession:('Contact Hospital', 'High Medical History')", "not_succession:('Contact Hospital', 'Send Notification by e-mail')", "not_succession:('Prepare Notification Content', 'Low Insurance Check')", "not_succession:('Prepare Notification Content', 'Reject Claim')", "not_succession:('Prepare Notification Content', 'Accept Claim')", "not_succession:('Prepare Notification Content', 'High Insurance Check')", "not_succession:('Prepare Notification Content', 'Low Medical History')", "not_succession:('Prepare Notification Content', 'Register')", "not_succession:('Prepare Notification Content', 'Send Questionnaire')", "not_succession:('Prepare Notification Content', 'Send Notification by Post')", "not_succession:('Prepare Notification Content', 'Create Questionnaire')", "not_succession:('Prepare Notification Content', 'Contact Hospital')", "not_succession:('Prepare Notification Content', 'High Medical History')", "not_succession:('Prepare Notification Content', 'Send Notification by e-mail')", "not_succession:('High Medical History', 'Low Insurance Check')", "not_succession:('High Medical History', 'Reject Claim')", "not_succession:('High Medical History', 'Accept Claim')", "not_succession:('High Medical History', 'High Insurance Check')", "not_succession:('High Medical History', 'Low Medical History')", "not_succession:('High Medical History', 'Register')", "not_succession:('High Medical History', 'Send Questionnaire')", "not_succession:('High Medical History', 'Send Notification by Post')", "not_succession:('High Medical History', 'Create Questionnaire')", "not_succession:('High Medical History', 'Contact Hospital')", "not_succession:('High Medical History', 'Prepare Notification Content')", "not_succession:('High Medical History', 'Send Notification by e-mail')", "not_succession:('Send Notification by e-mail', 'Low Insurance Check')", "not_succession:('Send Notification by e-mail', 'Reject Claim')", "not_succession:('Send Notification by e-mail', 'Accept Claim')", "not_succession:('Send Notification by e-mail', 'High Insurance Check')", "not_succession:('Send Notification by e-mail', 'Low Medical History')", "not_succession:('Send Notification by e-mail', 'Register')", "not_succession:('Send Notification by e-mail', 'Send Questionnaire')", "not_succession:('Send Notification by e-mail', 'Send Notification by Post')", "not_succession:('Send Notification by e-mail', 'Create Questionnaire')", "not_succession:('Send Notification by e-mail', 'Contact Hospital')", "not_succession:('Send Notification by e-mail', 'Prepare Notification Content')", "not_succession:('Send Notification by e-mail', 'High Medical History')", "responded_existence:('Low Insurance Check', 'Reject Claim')", "responded_existence:('Low Insurance Check', 'Accept Claim')", "responded_existence:('Low Insurance Check', 'High Insurance Check')", "responded_existence:('Low Insurance Check', 'Low Medical History')", "responded_existence:('Low Insurance Check', 'Register')", "responded_existence:('Low Insurance Check', 'Send Questionnaire')", "responded_existence:('Low Insurance Check', 'Send Notification by Post')", "responded_existence:('Low Insurance Check', 'Create Questionnaire')", "responded_existence:('Low Insurance Check', 'Contact Hospital')", "responded_existence:('Low Insurance Check', 'Prepare Notification Content')", "responded_existence:('Low Insurance Check', 'High Medical History')", "responded_existence:('Low Insurance Check', 'Send Notification by e-mail')", "responded_existence:('Reject Claim', 'Low Insurance Check')", "responded_existence:('Reject Claim', 'Accept Claim')", "responded_existence:('Reject Claim', 'High Insurance Check')", "responded_existence:('Reject Claim', 'Low Medical History')", "responded_existence:('Reject Claim', 'Register')", "responded_existence:('Reject Claim', 'Send Questionnaire')", "responded_existence:('Reject Claim', 'Send Notification by Post')", "responded_existence:('Reject Claim', 'Create Questionnaire')", "responded_existence:('Reject Claim', 'Contact Hospital')", "responded_existence:('Reject Claim', 'Prepare Notification Content')", "responded_existence:('Reject Claim', 'High Medical History')", "responded_existence:('Reject Claim', 'Send Notification by e-mail')", "responded_existence:('Accept Claim', 'Low Insurance Check')", "responded_existence:('Accept Claim', 'Reject Claim')", "responded_existence:('Accept Claim', 'High Insurance Check')", "responded_existence:('Accept Claim', 'Low Medical History')", "responded_existence:('Accept Claim', 'Register')", "responded_existence:('Accept Claim', 'Send Questionnaire')", "responded_existence:('Accept Claim', 'Send Notification by Post')", "responded_existence:('Accept Claim', 'Create Questionnaire')", "responded_existence:('Accept Claim', 'Contact Hospital')", "responded_existence:('Accept Claim', 'Prepare Notification Content')", "responded_existence:('Accept Claim', 'High Medical History')", "responded_existence:('Accept Claim', 'Send Notification by e-mail')", "responded_existence:('High Insurance Check', 'Low Insurance Check')", "responded_existence:('High Insurance Check', 'Reject Claim')", "responded_existence:('High Insurance Check', 'Accept Claim')", "responded_existence:('High Insurance Check', 'Low Medical History')", "responded_existence:('High Insurance Check', 'Register')", "responded_existence:('High Insurance Check', 'Send Questionnaire')", "responded_existence:('High Insurance Check', 'Send Notification by Post')", "responded_existence:('High Insurance Check', 'Create Questionnaire')", "responded_existence:('High Insurance Check', 'Contact Hospital')", "responded_existence:('High Insurance Check', 'Prepare Notification Content')", "responded_existence:('High Insurance Check', 'High Medical History')", "responded_existence:('High Insurance Check', 'Send Notification by e-mail')", "responded_existence:('Low Medical History', 'Low Insurance Check')", "responded_existence:('Low Medical History', 'Reject Claim')", "responded_existence:('Low Medical History', 'Accept Claim')", "responded_existence:('Low Medical History', 'High Insurance Check')", "responded_existence:('Low Medical History', 'Register')", "responded_existence:('Low Medical History', 'Send Questionnaire')", "responded_existence:('Low Medical History', 'Send Notification by Post')", "responded_existence:('Low Medical History', 'Create Questionnaire')", "responded_existence:('Low Medical History', 'Contact Hospital')", "responded_existence:('Low Medical History', 'Prepare Notification Content')", "responded_existence:('Low Medical History', 'High Medical History')", "responded_existence:('Low Medical History', 'Send Notification by e-mail')", "responded_existence:('Register', 'Low Insurance Check')", "responded_existence:('Register', 'Reject Claim')", "responded_existence:('Register', 'Accept Claim')", "responded_existence:('Register', 'High Insurance Check')", "responded_existence:('Register', 'Low Medical History')", "responded_existence:('Register', 'Send Questionnaire')", "responded_existence:('Register', 'Send Notification by Post')", "responded_existence:('Register', 'Create Questionnaire')", "responded_existence:('Register', 'Contact Hospital')", "responded_existence:('Register', 'Prepare Notification Content')", "responded_existence:('Register', 'High Medical History')", "responded_existence:('Register', 'Send Notification by e-mail')", "responded_existence:('Send Questionnaire', 'Low Insurance Check')", "responded_existence:('Send Questionnaire', 'Reject Claim')", "responded_existence:('Send Questionnaire', 'Accept Claim')", "responded_existence:('Send Questionnaire', 'High Insurance Check')", "responded_existence:('Send Questionnaire', 'Low Medical History')", "responded_existence:('Send Questionnaire', 'Register')", "responded_existence:('Send Questionnaire', 'Send Notification by Post')", "responded_existence:('Send Questionnaire', 'Create Questionnaire')", "responded_existence:('Send Questionnaire', 'Contact Hospital')", "responded_existence:('Send Questionnaire', 'Prepare Notification Content')", "responded_existence:('Send Questionnaire', 'High Medical History')", "responded_existence:('Send Questionnaire', 'Send Notification by e-mail')", "responded_existence:('Send Notification by Post', 'Low Insurance Check')", "responded_existence:('Send Notification by Post', 'Reject Claim')", "responded_existence:('Send Notification by Post', 'Accept Claim')", "responded_existence:('Send Notification by Post', 'High Insurance Check')", "responded_existence:('Send Notification by Post', 'Low Medical History')", "responded_existence:('Send Notification by Post', 'Register')", "responded_existence:('Send Notification by Post', 'Send Questionnaire')", "responded_existence:('Send Notification by Post', 'Create Questionnaire')", "responded_existence:('Send Notification by Post', 'Contact Hospital')", "responded_existence:('Send Notification by Post', 'Prepare Notification Content')", "responded_existence:('Send Notification by Post', 'High Medical History')", "responded_existence:('Send Notification by Post', 'Send Notification by e-mail')", "responded_existence:('Create Questionnaire', 'Low Insurance Check')", "responded_existence:('Create Questionnaire', 'Reject Claim')", "responded_existence:('Create Questionnaire', 'Accept Claim')", "responded_existence:('Create Questionnaire', 'High Insurance Check')", "responded_existence:('Create Questionnaire', 'Low Medical History')", "responded_existence:('Create Questionnaire', 'Register')", "responded_existence:('Create Questionnaire', 'Send Questionnaire')", "responded_existence:('Create Questionnaire', 'Send Notification by Post')", "responded_existence:('Create Questionnaire', 'Contact Hospital')", "responded_existence:('Create Questionnaire', 'Prepare Notification Content')", "responded_existence:('Create Questionnaire', 'High Medical History')", "responded_existence:('Create Questionnaire', 'Send Notification by e-mail')", "responded_existence:('Contact Hospital', 'Low Insurance Check')", "responded_existence:('Contact Hospital', 'Reject Claim')", "responded_existence:('Contact Hospital', 'Accept Claim')", "responded_existence:('Contact Hospital', 'High Insurance Check')", "responded_existence:('Contact Hospital', 'Low Medical History')", "responded_existence:('Contact Hospital', 'Register')", "responded_existence:('Contact Hospital', 'Send Questionnaire')", "responded_existence:('Contact Hospital', 'Send Notification by Post')", "responded_existence:('Contact Hospital', 'Create Questionnaire')", "responded_existence:('Contact Hospital', 'Prepare Notification Content')", "responded_existence:('Contact Hospital', 'High Medical History')", "responded_existence:('Contact Hospital', 'Send Notification by e-mail')", "responded_existence:('Prepare Notification Content', 'Low Insurance Check')", "responded_existence:('Prepare Notification Content', 'Reject Claim')", "responded_existence:('Prepare Notification Content', 'Accept Claim')", "responded_existence:('Prepare Notification Content', 'High Insurance Check')", "responded_existence:('Prepare Notification Content', 'Low Medical History')", "responded_existence:('Prepare Notification Content', 'Register')", "responded_existence:('Prepare Notification Content', 'Send Questionnaire')", "responded_existence:('Prepare Notification Content', 'Send Notification by Post')", "responded_existence:('Prepare Notification Content', 'Create Questionnaire')", "responded_existence:('Prepare Notification Content', 'Contact Hospital')", "responded_existence:('Prepare Notification Content', 'High Medical History')", "responded_existence:('Prepare Notification Content', 'Send Notification by e-mail')", "responded_existence:('High Medical History', 'Low Insurance Check')", "responded_existence:('High Medical History', 'Reject Claim')", "responded_existence:('High Medical History', 'Accept Claim')", "responded_existence:('High Medical History', 'High Insurance Check')", "responded_existence:('High Medical History', 'Low Medical History')", "responded_existence:('High Medical History', 'Register')", "responded_existence:('High Medical History', 'Send Questionnaire')", "responded_existence:('High Medical History', 'Send Notification by Post')", "responded_existence:('High Medical History', 'Create Questionnaire')", "responded_existence:('High Medical History', 'Contact Hospital')", "responded_existence:('High Medical History', 'Prepare Notification Content')", "responded_existence:('High Medical History', 'Send Notification by e-mail')", "responded_existence:('Send Notification by e-mail', 'Low Insurance Check')", "responded_existence:('Send Notification by e-mail', 'Reject Claim')", "responded_existence:('Send Notification by e-mail', 'Accept Claim')", "responded_existence:('Send Notification by e-mail', 'High Insurance Check')", "responded_existence:('Send Notification by e-mail', 'Low Medical History')", "responded_existence:('Send Notification by e-mail', 'Register')", "responded_existence:('Send Notification by e-mail', 'Send Questionnaire')", "responded_existence:('Send Notification by e-mail', 'Send Notification by Post')", "responded_existence:('Send Notification by e-mail', 'Create Questionnaire')", "responded_existence:('Send Notification by e-mail', 'Contact Hospital')", "responded_existence:('Send Notification by e-mail', 'Prepare Notification Content')", "responded_existence:('Send Notification by e-mail', 'High Medical History')", "response:('Low Insurance Check', 'Reject Claim')", "response:('Low Insurance Check', 'Accept Claim')", "response:('Low Insurance Check', 'High Insurance Check')", "response:('Low Insurance Check', 'Low Medical History')", "response:('Low Insurance Check', 'Register')", "response:('Low Insurance Check', 'Send Questionnaire')", "response:('Low Insurance Check', 'Send Notification by Post')", "response:('Low Insurance Check', 'Create Questionnaire')", "response:('Low Insurance Check', 'Contact Hospital')", "response:('Low Insurance Check', 'Prepare Notification Content')", "response:('Low Insurance Check', 'High Medical History')", "response:('Low Insurance Check', 'Send Notification by e-mail')", "response:('Reject Claim', 'Low Insurance Check')", "response:('Reject Claim', 'Accept Claim')", "response:('Reject Claim', 'High Insurance Check')", "response:('Reject Claim', 'Low Medical History')", "response:('Reject Claim', 'Register')", "response:('Reject Claim', 'Send Questionnaire')", "response:('Reject Claim', 'Send Notification by Post')", "response:('Reject Claim', 'Create Questionnaire')", "response:('Reject Claim', 'Contact Hospital')", "response:('Reject Claim', 'Prepare Notification Content')", "response:('Reject Claim', 'High Medical History')", "response:('Reject Claim', 'Send Notification by e-mail')", "response:('Accept Claim', 'Low Insurance Check')", "response:('Accept Claim', 'Reject Claim')", "response:('Accept Claim', 'High Insurance Check')", "response:('Accept Claim', 'Low Medical History')", "response:('Accept Claim', 'Register')", "response:('Accept Claim', 'Send Questionnaire')", "response:('Accept Claim', 'Send Notification by Post')", "response:('Accept Claim', 'Create Questionnaire')", "response:('Accept Claim', 'Contact Hospital')", "response:('Accept Claim', 'Prepare Notification Content')", "response:('Accept Claim', 'High Medical History')", "response:('Accept Claim', 'Send Notification by e-mail')", "response:('High Insurance Check', 'Low Insurance Check')", "response:('High Insurance Check', 'Reject Claim')", "response:('High Insurance Check', 'Accept Claim')", "response:('High Insurance Check', 'Low Medical History')", "response:('High Insurance Check', 'Register')", "response:('High Insurance Check', 'Send Questionnaire')", "response:('High Insurance Check', 'Send Notification by Post')", "response:('High Insurance Check', 'Create Questionnaire')", "response:('High Insurance Check', 'Contact Hospital')", "response:('High Insurance Check', 'Prepare Notification Content')", "response:('High Insurance Check', 'High Medical History')", "response:('High Insurance Check', 'Send Notification by e-mail')", "response:('Low Medical History', 'Low Insurance Check')", "response:('Low Medical History', 'Reject Claim')", "response:('Low Medical History', 'Accept Claim')", "response:('Low Medical History', 'High Insurance Check')", "response:('Low Medical History', 'Register')", "response:('Low Medical History', 'Send Questionnaire')", "response:('Low Medical History', 'Send Notification by Post')", "response:('Low Medical History', 'Create Questionnaire')", "response:('Low Medical History', 'Contact Hospital')", "response:('Low Medical History', 'Prepare Notification Content')", "response:('Low Medical History', 'High Medical History')", "response:('Low Medical History', 'Send Notification by e-mail')", "response:('Register', 'Low Insurance Check')", "response:('Register', 'Reject Claim')", "response:('Register', 'Accept Claim')", "response:('Register', 'High Insurance Check')", "response:('Register', 'Low Medical History')", "response:('Register', 'Send Questionnaire')", "response:('Register', 'Send Notification by Post')", "response:('Register', 'Create Questionnaire')", "response:('Register', 'Contact Hospital')", "response:('Register', 'Prepare Notification Content')", "response:('Register', 'High Medical History')", "response:('Register', 'Send Notification by e-mail')", "response:('Send Questionnaire', 'Low Insurance Check')", "response:('Send Questionnaire', 'Reject Claim')", "response:('Send Questionnaire', 'Accept Claim')", "response:('Send Questionnaire', 'High Insurance Check')", "response:('Send Questionnaire', 'Low Medical History')", "response:('Send Questionnaire', 'Register')", "response:('Send Questionnaire', 'Send Notification by Post')", "response:('Send Questionnaire', 'Create Questionnaire')", "response:('Send Questionnaire', 'Contact Hospital')", "response:('Send Questionnaire', 'Prepare Notification Content')", "response:('Send Questionnaire', 'High Medical History')", "response:('Send Questionnaire', 'Send Notification by e-mail')", "response:('Send Notification by Post', 'Low Insurance Check')", "response:('Send Notification by Post', 'Reject Claim')", "response:('Send Notification by Post', 'Accept Claim')", "response:('Send Notification by Post', 'High Insurance Check')", "response:('Send Notification by Post', 'Low Medical History')", "response:('Send Notification by Post', 'Register')", "response:('Send Notification by Post', 'Send Questionnaire')", "response:('Send Notification by Post', 'Create Questionnaire')", "response:('Send Notification by Post', 'Contact Hospital')", "response:('Send Notification by Post', 'Prepare Notification Content')", "response:('Send Notification by Post', 'High Medical History')", "response:('Send Notification by Post', 'Send Notification by e-mail')", "response:('Create Questionnaire', 'Low Insurance Check')", "response:('Create Questionnaire', 'Reject Claim')", "response:('Create Questionnaire', 'Accept Claim')", "response:('Create Questionnaire', 'High Insurance Check')", "response:('Create Questionnaire', 'Low Medical History')", "response:('Create Questionnaire', 'Register')", "response:('Create Questionnaire', 'Send Questionnaire')", "response:('Create Questionnaire', 'Send Notification by Post')", "response:('Create Questionnaire', 'Contact Hospital')", "response:('Create Questionnaire', 'Prepare Notification Content')", "response:('Create Questionnaire', 'High Medical History')", "response:('Create Questionnaire', 'Send Notification by e-mail')", "response:('Contact Hospital', 'Low Insurance Check')", "response:('Contact Hospital', 'Reject Claim')", "response:('Contact Hospital', 'Accept Claim')", "response:('Contact Hospital', 'High Insurance Check')", "response:('Contact Hospital', 'Low Medical History')", "response:('Contact Hospital', 'Register')", "response:('Contact Hospital', 'Send Questionnaire')", "response:('Contact Hospital', 'Send Notification by Post')", "response:('Contact Hospital', 'Create Questionnaire')", "response:('Contact Hospital', 'Prepare Notification Content')", "response:('Contact Hospital', 'High Medical History')", "response:('Contact Hospital', 'Send Notification by e-mail')", "response:('Prepare Notification Content', 'Low Insurance Check')", "response:('Prepare Notification Content', 'Reject Claim')", "response:('Prepare Notification Content', 'Accept Claim')", "response:('Prepare Notification Content', 'High Insurance Check')", "response:('Prepare Notification Content', 'Low Medical History')", "response:('Prepare Notification Content', 'Register')", "response:('Prepare Notification Content', 'Send Questionnaire')", "response:('Prepare Notification Content', 'Send Notification by Post')", "response:('Prepare Notification Content', 'Create Questionnaire')", "response:('Prepare Notification Content', 'Contact Hospital')", "response:('Prepare Notification Content', 'High Medical History')", "response:('Prepare Notification Content', 'Send Notification by e-mail')", "response:('High Medical History', 'Low Insurance Check')", "response:('High Medical History', 'Reject Claim')", "response:('High Medical History', 'Accept Claim')", "response:('High Medical History', 'High Insurance Check')", "response:('High Medical History', 'Low Medical History')", "response:('High Medical History', 'Register')", "response:('High Medical History', 'Send Questionnaire')", "response:('High Medical History', 'Send Notification by Post')", "response:('High Medical History', 'Create Questionnaire')", "response:('High Medical History', 'Contact Hospital')", "response:('High Medical History', 'Prepare Notification Content')", "response:('High Medical History', 'Send Notification by e-mail')", "response:('Send Notification by e-mail', 'Low Insurance Check')", "response:('Send Notification by e-mail', 'Reject Claim')", "response:('Send Notification by e-mail', 'Accept Claim')", "response:('Send Notification by e-mail', 'High Insurance Check')", "response:('Send Notification by e-mail', 'Low Medical History')", "response:('Send Notification by e-mail', 'Register')", "response:('Send Notification by e-mail', 'Send Questionnaire')", "response:('Send Notification by e-mail', 'Send Notification by Post')", "response:('Send Notification by e-mail', 'Create Questionnaire')", "response:('Send Notification by e-mail', 'Contact Hospital')", "response:('Send Notification by e-mail', 'Prepare Notification Content')", "response:('Send Notification by e-mail', 'High Medical History')", "succession:('Low Insurance Check', 'Reject Claim')", "succession:('Low Insurance Check', 'Accept Claim')", "succession:('Low Insurance Check', 'High Insurance Check')", "succession:('Low Insurance Check', 'Low Medical History')", "succession:('Low Insurance Check', 'Register')", "succession:('Low Insurance Check', 'Send Questionnaire')", "succession:('Low Insurance Check', 'Send Notification by Post')", "succession:('Low Insurance Check', 'Create Questionnaire')", "succession:('Low Insurance Check', 'Contact Hospital')", "succession:('Low Insurance Check', 'Prepare Notification Content')", "succession:('Low Insurance Check', 'High Medical History')", "succession:('Low Insurance Check', 'Send Notification by e-mail')", "succession:('Reject Claim', 'Low Insurance Check')", "succession:('Reject Claim', 'Accept Claim')", "succession:('Reject Claim', 'High Insurance Check')", "succession:('Reject Claim', 'Low Medical History')", "succession:('Reject Claim', 'Register')", "succession:('Reject Claim', 'Send Questionnaire')", "succession:('Reject Claim', 'Send Notification by Post')", "succession:('Reject Claim', 'Create Questionnaire')", "succession:('Reject Claim', 'Contact Hospital')", "succession:('Reject Claim', 'Prepare Notification Content')", "succession:('Reject Claim', 'High Medical History')", "succession:('Reject Claim', 'Send Notification by e-mail')", "succession:('Accept Claim', 'Low Insurance Check')", "succession:('Accept Claim', 'Reject Claim')", "succession:('Accept Claim', 'High Insurance Check')", "succession:('Accept Claim', 'Low Medical History')", "succession:('Accept Claim', 'Register')", "succession:('Accept Claim', 'Send Questionnaire')", "succession:('Accept Claim', 'Send Notification by Post')", "succession:('Accept Claim', 'Create Questionnaire')", "succession:('Accept Claim', 'Contact Hospital')", "succession:('Accept Claim', 'Prepare Notification Content')", "succession:('Accept Claim', 'High Medical History')", "succession:('Accept Claim', 'Send Notification by e-mail')", "succession:('High Insurance Check', 'Low Insurance Check')", "succession:('High Insurance Check', 'Reject Claim')", "succession:('High Insurance Check', 'Accept Claim')", "succession:('High Insurance Check', 'Low Medical History')", "succession:('High Insurance Check', 'Register')", "succession:('High Insurance Check', 'Send Questionnaire')", "succession:('High Insurance Check', 'Send Notification by Post')", "succession:('High Insurance Check', 'Create Questionnaire')", "succession:('High Insurance Check', 'Contact Hospital')", "succession:('High Insurance Check', 'Prepare Notification Content')", "succession:('High Insurance Check', 'High Medical History')", "succession:('High Insurance Check', 'Send Notification by e-mail')", "succession:('Low Medical History', 'Low Insurance Check')", "succession:('Low Medical History', 'Reject Claim')", "succession:('Low Medical History', 'Accept Claim')", "succession:('Low Medical History', 'High Insurance Check')", "succession:('Low Medical History', 'Register')", "succession:('Low Medical History', 'Send Questionnaire')", "succession:('Low Medical History', 'Send Notification by Post')", "succession:('Low Medical History', 'Create Questionnaire')", "succession:('Low Medical History', 'Contact Hospital')", "succession:('Low Medical History', 'Prepare Notification Content')", "succession:('Low Medical History', 'High Medical History')", "succession:('Low Medical History', 'Send Notification by e-mail')", "succession:('Register', 'Low Insurance Check')", "succession:('Register', 'Reject Claim')", "succession:('Register', 'Accept Claim')", "succession:('Register', 'High Insurance Check')", "succession:('Register', 'Low Medical History')", "succession:('Register', 'Send Questionnaire')", "succession:('Register', 'Send Notification by Post')", "succession:('Register', 'Create Questionnaire')", "succession:('Register', 'Contact Hospital')", "succession:('Register', 'Prepare Notification Content')", "succession:('Register', 'High Medical History')", "succession:('Register', 'Send Notification by e-mail')", "succession:('Send Questionnaire', 'Low Insurance Check')", "succession:('Send Questionnaire', 'Reject Claim')", "succession:('Send Questionnaire', 'Accept Claim')", "succession:('Send Questionnaire', 'High Insurance Check')", "succession:('Send Questionnaire', 'Low Medical History')", "succession:('Send Questionnaire', 'Register')", "succession:('Send Questionnaire', 'Send Notification by Post')", "succession:('Send Questionnaire', 'Create Questionnaire')", "succession:('Send Questionnaire', 'Contact Hospital')", "succession:('Send Questionnaire', 'Prepare Notification Content')", "succession:('Send Questionnaire', 'High Medical History')", "succession:('Send Questionnaire', 'Send Notification by e-mail')", "succession:('Send Notification by Post', 'Low Insurance Check')", "succession:('Send Notification by Post', 'Reject Claim')", "succession:('Send Notification by Post', 'Accept Claim')", "succession:('Send Notification by Post', 'High Insurance Check')", "succession:('Send Notification by Post', 'Low Medical History')", "succession:('Send Notification by Post', 'Register')", "succession:('Send Notification by Post', 'Send Questionnaire')", "succession:('Send Notification by Post', 'Create Questionnaire')", "succession:('Send Notification by Post', 'Contact Hospital')", "succession:('Send Notification by Post', 'Prepare Notification Content')", "succession:('Send Notification by Post', 'High Medical History')", "succession:('Send Notification by Post', 'Send Notification by e-mail')", "succession:('Create Questionnaire', 'Low Insurance Check')", "succession:('Create Questionnaire', 'Reject Claim')", "succession:('Create Questionnaire', 'Accept Claim')", "succession:('Create Questionnaire', 'High Insurance Check')", "succession:('Create Questionnaire', 'Low Medical History')", "succession:('Create Questionnaire', 'Register')", "succession:('Create Questionnaire', 'Send Questionnaire')", "succession:('Create Questionnaire', 'Send Notification by Post')", "succession:('Create Questionnaire', 'Contact Hospital')", "succession:('Create Questionnaire', 'Prepare Notification Content')", "succession:('Create Questionnaire', 'High Medical History')", "succession:('Create Questionnaire', 'Send Notification by e-mail')", "succession:('Contact Hospital', 'Low Insurance Check')", "succession:('Contact Hospital', 'Reject Claim')", "succession:('Contact Hospital', 'Accept Claim')", "succession:('Contact Hospital', 'High Insurance Check')", "succession:('Contact Hospital', 'Low Medical History')", "succession:('Contact Hospital', 'Register')", "succession:('Contact Hospital', 'Send Questionnaire')", "succession:('Contact Hospital', 'Send Notification by Post')", "succession:('Contact Hospital', 'Create Questionnaire')", "succession:('Contact Hospital', 'Prepare Notification Content')", "succession:('Contact Hospital', 'High Medical History')", "succession:('Contact Hospital', 'Send Notification by e-mail')", "succession:('Prepare Notification Content', 'Low Insurance Check')", "succession:('Prepare Notification Content', 'Reject Claim')", "succession:('Prepare Notification Content', 'Accept Claim')", "succession:('Prepare Notification Content', 'High Insurance Check')", "succession:('Prepare Notification Content', 'Low Medical History')", "succession:('Prepare Notification Content', 'Register')", "succession:('Prepare Notification Content', 'Send Questionnaire')", "succession:('Prepare Notification Content', 'Send Notification by Post')", "succession:('Prepare Notification Content', 'Create Questionnaire')", "succession:('Prepare Notification Content', 'Contact Hospital')", "succession:('Prepare Notification Content', 'High Medical History')", "succession:('Prepare Notification Content', 'Send Notification by e-mail')", "succession:('High Medical History', 'Low Insurance Check')", "succession:('High Medical History', 'Reject Claim')", "succession:('High Medical History', 'Accept Claim')", "succession:('High Medical History', 'High Insurance Check')", "succession:('High Medical History', 'Low Medical History')", "succession:('High Medical History', 'Register')", "succession:('High Medical History', 'Send Questionnaire')", "succession:('High Medical History', 'Send Notification by Post')", "succession:('High Medical History', 'Create Questionnaire')", "succession:('High Medical History', 'Contact Hospital')", "succession:('High Medical History', 'Prepare Notification Content')", "succession:('High Medical History', 'Send Notification by e-mail')", "succession:('Send Notification by e-mail', 'Low Insurance Check')", "succession:('Send Notification by e-mail', 'Reject Claim')", "succession:('Send Notification by e-mail', 'Accept Claim')", "succession:('Send Notification by e-mail', 'High Insurance Check')", "succession:('Send Notification by e-mail', 'Low Medical History')", "succession:('Send Notification by e-mail', 'Register')", "succession:('Send Notification by e-mail', 'Send Questionnaire')", "succession:('Send Notification by e-mail', 'Send Notification by Post')", "succession:('Send Notification by e-mail', 'Create Questionnaire')", "succession:('Send Notification by e-mail', 'Contact Hospital')", "succession:('Send Notification by e-mail', 'Prepare Notification Content')", "succession:('Send Notification by e-mail', 'High Medical History')", "precedence:('Low Insurance Check', 'Reject Claim')", "precedence:('Low Insurance Check', 'Accept Claim')", "precedence:('Low Insurance Check', 'High Insurance Check')", "precedence:('Low Insurance Check', 'Low Medical History')", "precedence:('Low Insurance Check', 'Register')", "precedence:('Low Insurance Check', 'Send Questionnaire')", "precedence:('Low Insurance Check', 'Send Notification by Post')", "precedence:('Low Insurance Check', 'Create Questionnaire')", "precedence:('Low Insurance Check', 'Contact Hospital')", "precedence:('Low Insurance Check', 'Prepare Notification Content')", "precedence:('Low Insurance Check', 'High Medical History')", "precedence:('Low Insurance Check', 'Send Notification by e-mail')", "precedence:('Reject Claim', 'Low Insurance Check')", "precedence:('Reject Claim', 'Accept Claim')", "precedence:('Reject Claim', 'High Insurance Check')", "precedence:('Reject Claim', 'Low Medical History')", "precedence:('Reject Claim', 'Register')", "precedence:('Reject Claim', 'Send Questionnaire')", "precedence:('Reject Claim', 'Send Notification by Post')", "precedence:('Reject Claim', 'Create Questionnaire')", "precedence:('Reject Claim', 'Contact Hospital')", "precedence:('Reject Claim', 'Prepare Notification Content')", "precedence:('Reject Claim', 'High Medical History')", "precedence:('Reject Claim', 'Send Notification by e-mail')", "precedence:('Accept Claim', 'Low Insurance Check')", "precedence:('Accept Claim', 'Reject Claim')", "precedence:('Accept Claim', 'High Insurance Check')", "precedence:('Accept Claim', 'Low Medical History')", "precedence:('Accept Claim', 'Register')", "precedence:('Accept Claim', 'Send Questionnaire')", "precedence:('Accept Claim', 'Send Notification by Post')", "precedence:('Accept Claim', 'Create Questionnaire')", "precedence:('Accept Claim', 'Contact Hospital')", "precedence:('Accept Claim', 'Prepare Notification Content')", "precedence:('Accept Claim', 'High Medical History')", "precedence:('Accept Claim', 'Send Notification by e-mail')", "precedence:('High Insurance Check', 'Low Insurance Check')", "precedence:('High Insurance Check', 'Reject Claim')", "precedence:('High Insurance Check', 'Accept Claim')", "precedence:('High Insurance Check', 'Low Medical History')", "precedence:('High Insurance Check', 'Register')", "precedence:('High Insurance Check', 'Send Questionnaire')", "precedence:('High Insurance Check', 'Send Notification by Post')", "precedence:('High Insurance Check', 'Create Questionnaire')", "precedence:('High Insurance Check', 'Contact Hospital')", "precedence:('High Insurance Check', 'Prepare Notification Content')", "precedence:('High Insurance Check', 'High Medical History')", "precedence:('High Insurance Check', 'Send Notification by e-mail')", "precedence:('Low Medical History', 'Low Insurance Check')", "precedence:('Low Medical History', 'Reject Claim')", "precedence:('Low Medical History', 'Accept Claim')", "precedence:('Low Medical History', 'High Insurance Check')", "precedence:('Low Medical History', 'Register')", "precedence:('Low Medical History', 'Send Questionnaire')", "precedence:('Low Medical History', 'Send Notification by Post')", "precedence:('Low Medical History', 'Create Questionnaire')", "precedence:('Low Medical History', 'Contact Hospital')", "precedence:('Low Medical History', 'Prepare Notification Content')", "precedence:('Low Medical History', 'High Medical History')", "precedence:('Low Medical History', 'Send Notification by e-mail')", "precedence:('Register', 'Low Insurance Check')", "precedence:('Register', 'Reject Claim')", "precedence:('Register', 'Accept Claim')", "precedence:('Register', 'High Insurance Check')", "precedence:('Register', 'Low Medical History')", "precedence:('Register', 'Send Questionnaire')", "precedence:('Register', 'Send Notification by Post')", "precedence:('Register', 'Create Questionnaire')", "precedence:('Register', 'Contact Hospital')", "precedence:('Register', 'Prepare Notification Content')", "precedence:('Register', 'High Medical History')", "precedence:('Register', 'Send Notification by e-mail')", "precedence:('Send Questionnaire', 'Low Insurance Check')", "precedence:('Send Questionnaire', 'Reject Claim')", "precedence:('Send Questionnaire', 'Accept Claim')", "precedence:('Send Questionnaire', 'High Insurance Check')", "precedence:('Send Questionnaire', 'Low Medical History')", "precedence:('Send Questionnaire', 'Register')", "precedence:('Send Questionnaire', 'Send Notification by Post')", "precedence:('Send Questionnaire', 'Create Questionnaire')", "precedence:('Send Questionnaire', 'Contact Hospital')", "precedence:('Send Questionnaire', 'Prepare Notification Content')", "precedence:('Send Questionnaire', 'High Medical History')", "precedence:('Send Questionnaire', 'Send Notification by e-mail')", "precedence:('Send Notification by Post', 'Low Insurance Check')", "precedence:('Send Notification by Post', 'Reject Claim')", "precedence:('Send Notification by Post', 'Accept Claim')", "precedence:('Send Notification by Post', 'High Insurance Check')", "precedence:('Send Notification by Post', 'Low Medical History')", "precedence:('Send Notification by Post', 'Register')", "precedence:('Send Notification by Post', 'Send Questionnaire')", "precedence:('Send Notification by Post', 'Create Questionnaire')", "precedence:('Send Notification by Post', 'Contact Hospital')", "precedence:('Send Notification by Post', 'Prepare Notification Content')", "precedence:('Send Notification by Post', 'High Medical History')", "precedence:('Send Notification by Post', 'Send Notification by e-mail')", "precedence:('Create Questionnaire', 'Low Insurance Check')", "precedence:('Create Questionnaire', 'Reject Claim')", "precedence:('Create Questionnaire', 'Accept Claim')", "precedence:('Create Questionnaire', 'High Insurance Check')", "precedence:('Create Questionnaire', 'Low Medical History')", "precedence:('Create Questionnaire', 'Register')", "precedence:('Create Questionnaire', 'Send Questionnaire')", "precedence:('Create Questionnaire', 'Send Notification by Post')", "precedence:('Create Questionnaire', 'Contact Hospital')", "precedence:('Create Questionnaire', 'Prepare Notification Content')", "precedence:('Create Questionnaire', 'High Medical History')", "precedence:('Create Questionnaire', 'Send Notification by e-mail')", "precedence:('Contact Hospital', 'Low Insurance Check')", "precedence:('Contact Hospital', 'Reject Claim')", "precedence:('Contact Hospital', 'Accept Claim')", "precedence:('Contact Hospital', 'High Insurance Check')", "precedence:('Contact Hospital', 'Low Medical History')", "precedence:('Contact Hospital', 'Register')", "precedence:('Contact Hospital', 'Send Questionnaire')", "precedence:('Contact Hospital', 'Send Notification by Post')", "precedence:('Contact Hospital', 'Create Questionnaire')", "precedence:('Contact Hospital', 'Prepare Notification Content')", "precedence:('Contact Hospital', 'High Medical History')", "precedence:('Contact Hospital', 'Send Notification by e-mail')", "precedence:('Prepare Notification Content', 'Low Insurance Check')", "precedence:('Prepare Notification Content', 'Reject Claim')", "precedence:('Prepare Notification Content', 'Accept Claim')", "precedence:('Prepare Notification Content', 'High Insurance Check')", "precedence:('Prepare Notification Content', 'Low Medical History')", "precedence:('Prepare Notification Content', 'Register')", "precedence:('Prepare Notification Content', 'Send Questionnaire')", "precedence:('Prepare Notification Content', 'Send Notification by Post')", "precedence:('Prepare Notification Content', 'Create Questionnaire')", "precedence:('Prepare Notification Content', 'Contact Hospital')", "precedence:('Prepare Notification Content', 'High Medical History')", "precedence:('Prepare Notification Content', 'Send Notification by e-mail')", "precedence:('High Medical History', 'Low Insurance Check')", "precedence:('High Medical History', 'Reject Claim')", "precedence:('High Medical History', 'Accept Claim')", "precedence:('High Medical History', 'High Insurance Check')", "precedence:('High Medical History', 'Low Medical History')", "precedence:('High Medical History', 'Register')", "precedence:('High Medical History', 'Send Questionnaire')", "precedence:('High Medical History', 'Send Notification by Post')", "precedence:('High Medical History', 'Create Questionnaire')", "precedence:('High Medical History', 'Contact Hospital')", "precedence:('High Medical History', 'Prepare Notification Content')", "precedence:('High Medical History', 'Send Notification by e-mail')", "precedence:('Send Notification by e-mail', 'Low Insurance Check')", "precedence:('Send Notification by e-mail', 'Reject Claim')", "precedence:('Send Notification by e-mail', 'Accept Claim')", "precedence:('Send Notification by e-mail', 'High Insurance Check')", "precedence:('Send Notification by e-mail', 'Low Medical History')", "precedence:('Send Notification by e-mail', 'Register')", "precedence:('Send Notification by e-mail', 'Send Questionnaire')", "precedence:('Send Notification by e-mail', 'Send Notification by Post')", "precedence:('Send Notification by e-mail', 'Create Questionnaire')", "precedence:('Send Notification by e-mail', 'Contact Hospital')", "precedence:('Send Notification by e-mail', 'Prepare Notification Content')", "precedence:('Send Notification by e-mail', 'High Medical History')"]
# expected_train_names =
# self.assertEqual(expected_data, data)
# self.assertEqual(expected_labels, labels)
self.assertEqual(expected_featurenames, featurenames)
# self.assertEqual(expected_train_names, train_names)
def test_filter_candidates_by_support(self):
not_filtered_candidates = [('Send Notification by e-mail',), ('Send Notification by Post',), ('Send Questionnaire',), ('High Medical History',), ('Prepare Notification Content',), ('Register',), ('Low Insurance Check',), ('Reject Claim',), ('Low Medical History',), ('Contact Hospital',), ('High Insurance Check',), ('Accept Claim',), ('Create Questionnaire',), ('Send Notification by e-mail', 'Send Notification by Post'), ('Send Notification by e-mail', 'Send Questionnaire'), ('Send Notification by e-mail', 'High Medical History'), ('Send Notification by e-mail', 'Prepare Notification Content'), ('Send Notification by e-mail', 'Register'), ('Send Notification by e-mail', 'Low Insurance Check'), ('Send Notification by e-mail', 'Reject Claim'), ('Send Notification by e-mail', 'Low Medical History'), ('Send Notification by e-mail', 'Contact Hospital'), ('Send Notification by e-mail', 'High Insurance Check'), ('Send Notification by e-mail', 'Accept Claim'), ('Send Notification by e-mail', 'Create Questionnaire'), ('Send Notification by Post', 'Send Notification by e-mail'), ('Send Notification by Post', 'Send Questionnaire'), ('Send Notification by Post', 'High Medical History'), ('Send Notification by Post', 'Prepare Notification Content'), ('Send Notification by Post', 'Register'), ('Send Notification by Post', 'Low Insurance Check'), ('Send Notification by Post', 'Reject Claim'), ('Send Notification by Post', 'Low Medical History'), ('Send Notification by Post', 'Contact Hospital'), ('Send Notification by Post', 'High Insurance Check'), ('Send Notification by Post', 'Accept Claim'), ('Send Notification by Post', 'Create Questionnaire'), ('Send Questionnaire', 'Send Notification by e-mail'), ('Send Questionnaire', 'Send Notification by Post'), ('Send Questionnaire', 'High Medical History'), ('Send Questionnaire', 'Prepare Notification Content'), ('Send Questionnaire', 'Register'), ('Send Questionnaire', 'Low Insurance Check'), ('Send Questionnaire', 'Reject Claim'), ('Send Questionnaire', 'Low Medical History'), ('Send Questionnaire', 'Contact Hospital'), ('Send Questionnaire', 'High Insurance Check'), ('Send Questionnaire', 'Accept Claim'), ('Send Questionnaire', 'Create Questionnaire'), ('High Medical History', 'Send Notification by e-mail'), ('High Medical History', 'Send Notification by Post'), ('High Medical History', 'Send Questionnaire'), ('High Medical History', 'Prepare Notification Content'), ('High Medical History', 'Register'), ('High Medical History', 'Low Insurance Check'), ('High Medical History', 'Reject Claim'), ('High Medical History', 'Low Medical History'), ('High Medical History', 'Contact Hospital'), ('High Medical History', 'High Insurance Check'), ('High Medical History', 'Accept Claim'), ('High Medical History', 'Create Questionnaire'), ('Prepare Notification Content', 'Send Notification by e-mail'), ('Prepare Notification Content', 'Send Notification by Post'), ('Prepare Notification Content', 'Send Questionnaire'), ('Prepare Notification Content', 'High Medical History'), ('Prepare Notification Content', 'Register'), ('Prepare Notification Content', 'Low Insurance Check'), ('Prepare Notification Content', 'Reject Claim'), ('Prepare Notification Content', 'Low Medical History'), ('Prepare Notification Content', 'Contact Hospital'), ('Prepare Notification Content', 'High Insurance Check'), ('Prepare Notification Content', 'Accept Claim'), ('Prepare Notification Content', 'Create Questionnaire'), ('Register', 'Send Notification by e-mail'), ('Register', 'Send Notification by Post'), ('Register', 'Send Questionnaire'), ('Register', 'High Medical History'), ('Register', 'Prepare Notification Content'), ('Register', 'Low Insurance Check'), ('Register', 'Reject Claim'), ('Register', 'Low Medical History'), ('Register', 'Contact Hospital'), ('Register', 'High Insurance Check'), ('Register', 'Accept Claim'), ('Register', 'Create Questionnaire'), ('Low Insurance Check', 'Send Notification by e-mail'), ('Low Insurance Check', 'Send Notification by Post'), ('Low Insurance Check', 'Send Questionnaire'), ('Low Insurance Check', 'High Medical History'), ('Low Insurance Check', 'Prepare Notification Content'), ('Low Insurance Check', 'Register'), ('Low Insurance Check', 'Reject Claim'), ('Low Insurance Check', 'Low Medical History'), ('Low Insurance Check', 'Contact Hospital'), ('Low Insurance Check', 'High Insurance Check'), ('Low Insurance Check', 'Accept Claim'), ('Low Insurance Check', 'Create Questionnaire'), ('Reject Claim', 'Send Notification by e-mail'), ('Reject Claim', 'Send Notification by Post'), ('Reject Claim', 'Send Questionnaire'), ('Reject Claim', 'High Medical History'), ('Reject Claim', 'Prepare Notification Content'), ('Reject Claim', 'Register'), ('Reject Claim', 'Low Insurance Check'), ('Reject Claim', 'Low Medical History'), ('Reject Claim', 'Contact Hospital'), ('Reject Claim', 'High Insurance Check'), ('Reject Claim', 'Accept Claim'), ('Reject Claim', 'Create Questionnaire'), ('Low Medical History', 'Send Notification by e-mail'), ('Low Medical History', 'Send Notification by Post'), ('Low Medical History', 'Send Questionnaire'), ('Low Medical History', 'High Medical History'), ('Low Medical History', 'Prepare Notification Content'), ('Low Medical History', 'Register'), ('Low Medical History', 'Low Insurance Check'), ('Low Medical History', 'Reject Claim'), ('Low Medical History', 'Contact Hospital'), ('Low Medical History', 'High Insurance Check'), ('Low Medical History', 'Accept Claim'), ('Low Medical History', 'Create Questionnaire'), ('Contact Hospital', 'Send Notification by e-mail'), ('Contact Hospital', 'Send Notification by Post'), ('Contact Hospital', 'Send Questionnaire'), ('Contact Hospital', 'High Medical History'), ('Contact Hospital', 'Prepare Notification Content'), ('Contact Hospital', 'Register'), ('Contact Hospital', 'Low Insurance Check'), ('Contact Hospital', 'Reject Claim'), ('Contact Hospital', 'Low Medical History'), ('Contact Hospital', 'High Insurance Check'), ('Contact Hospital', 'Accept Claim'), ('Contact Hospital', 'Create Questionnaire'), ('High Insurance Check', 'Send Notification by e-mail'), ('High Insurance Check', 'Send Notification by Post'), ('High Insurance Check', 'Send Questionnaire'), ('High Insurance Check', 'High Medical History'), ('High Insurance Check', 'Prepare Notification Content'), ('High Insurance Check', 'Register'), ('High Insurance Check', 'Low Insurance Check'), ('High Insurance Check', 'Reject Claim'), ('High Insurance Check', 'Low Medical History'), ('High Insurance Check', 'Contact Hospital'), ('High Insurance Check', 'Accept Claim'), ('High Insurance Check', 'Create Questionnaire'), ('Accept Claim', 'Send Notification by e-mail'), ('Accept Claim', 'Send Notification by Post'), ('Accept Claim', 'Send Questionnaire'), ('Accept Claim', 'High Medical History'), ('Accept Claim', 'Prepare Notification Content'), ('Accept Claim', 'Register'), ('Accept Claim', 'Low Insurance Check'), ('Accept Claim', 'Reject Claim'), ('Accept Claim', 'Low Medical History'), ('Accept Claim', 'Contact Hospital'), ('Accept Claim', 'High Insurance Check'), ('Accept Claim', 'Create Questionnaire'), ('Create Questionnaire', 'Send Notification by e-mail'), ('Create Questionnaire', 'Send Notification by Post'), ('Create Questionnaire', 'Send Questionnaire'), ('Create Questionnaire', 'High Medical History'), ('Create Questionnaire', 'Prepare Notification Content'), ('Create Questionnaire', 'Register'), ('Create Questionnaire', 'Low Insurance Check'), ('Create Questionnaire', 'Reject Claim'), ('Create Questionnaire', 'Low Medical History'), ('Create Questionnaire', 'Contact Hospital'), ('Create Questionnaire', 'High Insurance Check'), ('Create Questionnaire', 'Accept Claim')]
ev_support_true = 0
ev_support_false = 0
filtered_candidates = filter_candidates_by_support(not_filtered_candidates, self.transformed_log, self.labels, ev_support_true, ev_support_false)
expected = [('Send Notification by e-mail',), ('Send Notification by Post',), ('Send Questionnaire',), ('High Medical History',), ('Prepare Notification Content',), ('Register',), ('Low Insurance Check',), ('Reject Claim',), ('Low Medical History',), ('Contact Hospital',), ('High Insurance Check',), ('Accept Claim',), ('Create Questionnaire',), ('Send Notification by e-mail', 'Send Notification by Post'), ('Send Notification by e-mail', 'Send Questionnaire'), ('Send Notification by e-mail', 'High Medical History'), ('Send Notification by e-mail', 'Prepare Notification Content'), ('Send Notification by e-mail', 'Register'), ('Send Notification by e-mail', 'Low Insurance Check'), ('Send Notification by e-mail', 'Reject Claim'), ('Send Notification by e-mail', 'Low Medical History'), ('Send Notification by e-mail', 'Contact Hospital'), ('Send Notification by e-mail', 'High Insurance Check'), ('Send Notification by e-mail', 'Accept Claim'), ('Send Notification by e-mail', 'Create Questionnaire'), ('Send Notification by Post', 'Send Notification by e-mail'), ('Send Notification by Post', 'Send Questionnaire'), ('Send Notification by Post', 'High Medical History'), ('Send Notification by Post', 'Prepare Notification Content'), ('Send Notification by Post', 'Register'), ('Send Notification by Post', 'Low Insurance Check'), ('Send Notification by Post', 'Reject Claim'), ('Send Notification by Post', 'Low Medical History'), ('Send Notification by Post', 'Contact Hospital'), ('Send Notification by Post', 'High Insurance Check'), ('Send Notification by Post', 'Accept Claim'), ('Send Notification by Post', 'Create Questionnaire'), ('Send Questionnaire', 'Send Notification by e-mail'), ('Send Questionnaire', 'Send Notification by Post'), ('Send Questionnaire', 'High Medical History'), ('Send Questionnaire', 'Prepare Notification Content'), ('Send Questionnaire', 'Register'), ('Send Questionnaire', 'Low Insurance Check'), ('Send Questionnaire', 'Reject Claim'), ('Send Questionnaire', 'Low Medical History'), ('Send Questionnaire', 'Contact Hospital'), ('Send Questionnaire', 'High Insurance Check'), ('Send Questionnaire', 'Accept Claim'), ('Send Questionnaire', 'Create Questionnaire'), ('High Medical History', 'Send Notification by e-mail'), ('High Medical History', 'Send Notification by Post'), ('High Medical History', 'Send Questionnaire'), ('High Medical History', 'Prepare Notification Content'), ('High Medical History', 'Register'), ('High Medical History', 'Low Insurance Check'), ('High Medical History', 'Reject Claim'), ('High Medical History', 'Low Medical History'), ('High Medical History', 'Contact Hospital'), ('High Medical History', 'High Insurance Check'), ('High Medical History', 'Accept Claim'), ('High Medical History', 'Create Questionnaire'), ('Prepare Notification Content', 'Send Notification by e-mail'), ('Prepare Notification Content', 'Send Notification by Post'), ('Prepare Notification Content', 'Send Questionnaire'), ('Prepare Notification Content', 'High Medical History'), ('Prepare Notification Content', 'Register'), ('Prepare Notification Content', 'Low Insurance Check'), ('Prepare Notification Content', 'Reject Claim'), ('Prepare Notification Content', 'Low Medical History'), ('Prepare Notification Content', 'Contact Hospital'), ('Prepare Notification Content', 'High Insurance Check'), ('Prepare Notification Content', 'Accept Claim'), ('Prepare Notification Content', 'Create Questionnaire'), ('Register', 'Send Notification by e-mail'), ('Register', 'Send Notification by Post'), ('Register', 'Send Questionnaire'), ('Register', 'High Medical History'), ('Register', 'Prepare Notification Content'), ('Register', 'Low Insurance Check'), ('Register', 'Reject Claim'), ('Register', 'Low Medical History'), ('Register', 'Contact Hospital'), ('Register', 'High Insurance Check'), ('Register', 'Accept Claim'), ('Register', 'Create Questionnaire'), ('Low Insurance Check', 'Send Notification by e-mail'), ('Low Insurance Check', 'Send Notification by Post'), ('Low Insurance Check', 'Send Questionnaire'), ('Low Insurance Check', 'High Medical History'), ('Low Insurance Check', 'Prepare Notification Content'), ('Low Insurance Check', 'Register'), ('Low Insurance Check', 'Reject Claim'), ('Low Insurance Check', 'Low Medical History'), ('Low Insurance Check', 'Contact Hospital'), ('Low Insurance Check', 'High Insurance Check'), ('Low Insurance Check', 'Accept Claim'), ('Low Insurance Check', 'Create Questionnaire'), ('Reject Claim', 'Send Notification by e-mail'), ('Reject Claim', 'Send Notification by Post'), ('Reject Claim', 'Send Questionnaire'), ('Reject Claim', 'High Medical History'), ('Reject Claim', 'Prepare Notification Content'), ('Reject Claim', 'Register'), ('Reject Claim', 'Low Insurance Check'), ('Reject Claim', 'Low Medical History'), ('Reject Claim', 'Contact Hospital'), ('Reject Claim', 'High Insurance Check'), ('Reject Claim', 'Accept Claim'), ('Reject Claim', 'Create Questionnaire'), ('Low Medical History', 'Send Notification by e-mail'), ('Low Medical History', 'Send Notification by Post'), ('Low Medical History', 'Send Questionnaire'), ('Low Medical History', 'High Medical History'), ('Low Medical History', 'Prepare Notification Content'), ('Low Medical History', 'Register'), ('Low Medical History', 'Low Insurance Check'), ('Low Medical History', 'Reject Claim'), ('Low Medical History', 'Contact Hospital'), ('Low Medical History', 'High Insurance Check'), ('Low Medical History', 'Accept Claim'), ('Low Medical History', 'Create Questionnaire'), ('Contact Hospital', 'Send Notification by e-mail'), ('Contact Hospital', 'Send Notification by Post'), ('Contact Hospital', 'Send Questionnaire'), ('Contact Hospital', 'High Medical History'), ('Contact Hospital', 'Prepare Notification Content'), ('Contact Hospital', 'Register'), ('Contact Hospital', 'Low Insurance Check'), ('Contact Hospital', 'Reject Claim'), ('Contact Hospital', 'Low Medical History'), ('Contact Hospital', 'High Insurance Check'), ('Contact Hospital', 'Accept Claim'), ('Contact Hospital', 'Create Questionnaire'), ('High Insurance Check', 'Send Notification by e-mail'), ('High Insurance Check', 'Send Notification by Post'), ('High Insurance Check', 'Send Questionnaire'), ('High Insurance Check', 'High Medical History'), ('High Insurance Check', 'Prepare Notification Content'), ('High Insurance Check', 'Register'), ('High Insurance Check', 'Low Insurance Check'), ('High Insurance Check', 'Reject Claim'), ('High Insurance Check', 'Low Medical History'), ('High Insurance Check', 'Contact Hospital'), ('High Insurance Check', 'Accept Claim'), ('High Insurance Check', 'Create Questionnaire'), ('Accept Claim', 'Send Notification by e-mail'), ('Accept Claim', 'Send Notification by Post'), ('Accept Claim', 'Send Questionnaire'), ('Accept Claim', 'High Medical History'), ('Accept Claim', 'Prepare Notification Content'), ('Accept Claim', 'Register'), ('Accept Claim', 'Low Insurance Check'), ('Accept Claim', 'Reject Claim'), ('Accept Claim', 'Low Medical History'), ('Accept Claim', 'Contact Hospital'), ('Accept Claim', 'High Insurance Check'), ('Accept Claim', 'Create Questionnaire'), ('Create Questionnaire', 'Send Notification by e-mail'), ('Create Questionnaire', 'Send Notification by Post'), ('Create Questionnaire', 'Send Questionnaire'), ('Create Questionnaire', 'High Medical History'), ('Create Questionnaire', 'Prepare Notification Content'), ('Create Questionnaire', 'Register'), ('Create Questionnaire', 'Low Insurance Check'), ('Create Questionnaire', 'Reject Claim'), ('Create Questionnaire', 'Low Medical History'), ('Create Questionnaire', 'Contact Hospital'), ('Create Questionnaire', 'High Insurance Check'), ('Create Questionnaire', 'Accept Claim')]
self.assertEqual(expected, filtered_candidates)
class TestApplyTemplate(TestCase):
def setUp(self):
self.candidates = [('Send Notification by e-mail',), ('Send Notification by Post',), ('Send Questionnaire',), ('High Medical History',), ('Prepare Notification Content',), ('Register',), ('Low Insurance Check',), ('Reject Claim',), ('Low Medical History',), ('Contact Hospital',), ('High Insurance Check',), ('Accept Claim',), ('Create Questionnaire',), ('Send Notification by e-mail', 'Send Notification by Post'), ('Send Notification by e-mail', 'Send Questionnaire'), ('Send Notification by e-mail', 'High Medical History'), ('Send Notification by e-mail', 'Prepare Notification Content'), ('Send Notification by e-mail', 'Register'), ('Send Notification by e-mail', 'Low Insurance Check'), ('Send Notification by e-mail', 'Reject Claim'), ('Send Notification by e-mail', 'Low Medical History'), ('Send Notification by e-mail', 'Contact Hospital'), ('Send Notification by e-mail', 'High Insurance Check'), ('Send Notification by e-mail', 'Accept Claim'), ('Send Notification by e-mail', 'Create Questionnaire'), ('Send Notification by Post', 'Send Notification by e-mail'), ('Send Notification by Post', 'Send Questionnaire'), ('Send Notification by Post', 'High Medical History'), ('Send Notification by Post', 'Prepare Notification Content'), ('Send Notification by Post', 'Register'), ('Send Notification by Post', 'Low Insurance Check'), ('Send Notification by Post', 'Reject Claim'), ('Send Notification by Post', 'Low Medical History'), ('Send Notification by Post', 'Contact Hospital'), ('Send Notification by Post', 'High Insurance Check'), ('Send Notification by Post', 'Accept Claim'), ('Send Notification by Post', 'Create Questionnaire'), ('Send Questionnaire', 'Send Notification by e-mail'), ('Send Questionnaire', 'Send Notification by Post'), ('Send Questionnaire', 'High Medical History'), ('Send Questionnaire', 'Prepare Notification Content'), ('Send Questionnaire', 'Register'), ('Send Questionnaire', 'Low Insurance Check'), ('Send Questionnaire', 'Reject Claim'), ('Send Questionnaire', 'Low Medical History'), ('Send Questionnaire', 'Contact Hospital'), ('Send Questionnaire', 'High Insurance Check'), ('Send Questionnaire', 'Accept Claim'), ('Send Questionnaire', 'Create Questionnaire'), ('High Medical History', 'Send Notification by e-mail'), ('High Medical History', 'Send Notification by Post'), ('High Medical History', 'Send Questionnaire'), ('High Medical History', 'Prepare Notification Content'), ('High Medical History', 'Register'), ('High Medical History', 'Low Insurance Check'), ('High Medical History', 'Reject Claim'), ('High Medical History', 'Low Medical History'), ('High Medical History', 'Contact Hospital'), ('High Medical History', 'High Insurance Check'), ('High Medical History', 'Accept Claim'), ('High Medical History', 'Create Questionnaire'), ('Prepare Notification Content', 'Send Notification by e-mail'), ('Prepare Notification Content', 'Send Notification by Post'), ('Prepare Notification Content', 'Send Questionnaire'), ('Prepare Notification Content', 'High Medical History'), ('Prepare Notification Content', 'Register'), ('Prepare Notification Content', 'Low Insurance Check'), ('Prepare Notification Content', 'Reject Claim'), ('Prepare Notification Content', 'Low Medical History'), ('Prepare Notification Content', 'Contact Hospital'), ('Prepare Notification Content', 'High Insurance Check'), ('Prepare Notification Content', 'Accept Claim'), ('Prepare Notification Content', 'Create Questionnaire'), ('Register', 'Send Notification by e-mail'), ('Register', 'Send Notification by Post'), ('Register', 'Send Questionnaire'), ('Register', 'High Medical History'), ('Register', 'Prepare Notification Content'), ('Register', 'Low Insurance Check'), ('Register', 'Reject Claim'), ('Register', 'Low Medical History'), ('Register', 'Contact Hospital'), ('Register', 'High Insurance Check'), ('Register', 'Accept Claim'), ('Register', 'Create Questionnaire'), ('Low Insurance Check', 'Send Notification by e-mail'), ('Low Insurance Check', 'Send Notification by Post'), ('Low Insurance Check', 'Send Questionnaire'), ('Low Insurance Check', 'High Medical History'), ('Low Insurance Check', 'Prepare Notification Content'), ('Low Insurance Check', 'Register'), ('Low Insurance Check', 'Reject Claim'), ('Low Insurance Check', 'Low Medical History'), ('Low Insurance Check', 'Contact Hospital'), ('Low Insurance Check', 'High Insurance Check'), ('Low Insurance Check', 'Accept Claim'), ('Low Insurance Check', 'Create Questionnaire'), ('Reject Claim', 'Send Notification by e-mail'), ('Reject Claim', 'Send Notification by Post'), ('Reject Claim', 'Send Questionnaire'), ('Reject Claim', 'High Medical History'), ('Reject Claim', 'Prepare Notification Content'), ('Reject Claim', 'Register'), ('Reject Claim', 'Low Insurance Check'), ('Reject Claim', 'Low Medical History'), ('Reject Claim', 'Contact Hospital'), ('Reject Claim', 'High Insurance Check'), ('Reject Claim', 'Accept Claim'), ('Reject Claim', 'Create Questionnaire'), ('Low Medical History', 'Send Notification by e-mail'), ('Low Medical History', 'Send Notification by Post'), ('Low Medical History', 'Send Questionnaire'), ('Low Medical History', 'High Medical History'), ('Low Medical History', 'Prepare Notification Content'), ('Low Medical History', 'Register'), ('Low Medical History', 'Low Insurance Check'), ('Low Medical History', 'Reject Claim'), ('Low Medical History', 'Contact Hospital'), ('Low Medical History', 'High Insurance Check'), ('Low Medical History', 'Accept Claim'), ('Low Medical History', 'Create Questionnaire'), ('Contact Hospital', 'Send Notification by e-mail'), ('Contact Hospital', 'Send Notification by Post'), ('Contact Hospital', 'Send Questionnaire'), ('Contact Hospital', 'High Medical History'), ('Contact Hospital', 'Prepare Notification Content'), ('Contact Hospital', 'Register'), ('Contact Hospital', 'Low Insurance Check'), ('Contact Hospital', 'Reject Claim'), ('Contact Hospital', 'Low Medical History'), ('Contact Hospital', 'High Insurance Check'), ('Contact Hospital', 'Accept Claim'), ('Contact Hospital', 'Create Questionnaire'), ('High Insurance Check', 'Send Notification by e-mail'), ('High Insurance Check', 'Send Notification by Post'), ('High Insurance Check', 'Send Questionnaire'), ('High Insurance Check', 'High Medical History'), ('High Insurance Check', 'Prepare Notification Content'), ('High Insurance Check', 'Register'), ('High Insurance Check', 'Low Insurance Check'), ('High Insurance Check', 'Reject Claim'), ('High Insurance Check', 'Low Medical History'), ('High Insurance Check', 'Contact Hospital'), ('High Insurance Check', 'Accept Claim'), ('High Insurance Check', 'Create Questionnaire'), ('Accept Claim', 'Send Notification by e-mail'), ('Accept Claim', 'Send Notification by Post'), ('Accept Claim', 'Send Questionnaire'), ('Accept Claim', 'High Medical History'), ('Accept Claim', 'Prepare Notification Content'), ('Accept Claim', 'Register'), ('Accept Claim', 'Low Insurance Check'), ('Accept Claim', 'Reject Claim'), ('Accept Claim', 'Low Medical History'), ('Accept Claim', 'Contact Hospital'), ('Accept Claim', 'High Insurance Check'), ('Accept Claim', 'Create Questionnaire'), ('Create Questionnaire', 'Send Notification by e-mail'), ('Create Questionnaire', 'Send Notification by Post'), ('Create Questionnaire', 'Send Questionnaire'), ('Create Questionnaire', 'High Medical History'), ('Create Questionnaire', 'Prepare Notification Content'), ('Create Questionnaire', 'Register'), ('Create Questionnaire', 'Low Insurance Check'), ('Create Questionnaire', 'Reject Claim'), ('Create Questionnaire', 'Low Medical History'), ('Create Questionnaire', 'Contact Hospital'), ('Create Questionnaire', 'High Insurance Check'), ('Create Questionnaire', 'Accept Claim')]
self.transformed_log = {
'2_100': {'Contact Hospital': [3], 'Create Questionnaire': [1], 'High Insurance Check': [2], 'High Medical History': [4], 'Prepare Notification Content': [6], 'Register': [0], 'Reject Claim': [5]},
'2_101': {'Accept Claim': [4], 'Create Questionnaire': [2], 'Low Insurance Check': [3], 'Low Medical History': [1], 'Prepare Notification Content': [5], 'Register': [0], 'Send Questionnaire': [6]},
'2_102': {'Contact Hospital': [4], 'Create Questionnaire': [1], 'High Insurance Check': [2], 'High Medical History': [3], 'Prepare Notification Content': [6], 'Register': [0], 'Reject Claim': [5]},
'2_103': {'Accept Claim': [3], 'Create Questionnaire': [4], 'Low Insurance Check': [2], 'Low Medical History': [1], 'Prepare Notification Content': [5], 'Register': [0], 'Send Notification by e-mail': [6]},
'2_104': {'Accept Claim': [3], 'Create Questionnaire': [5], 'Low Insurance Check': [2], 'Low Medical History': [1], 'Prepare Notification Content': [4], 'Register': [0], 'Send Notification by e-mail': [6]},
'2_105': {'Contact Hospital': [1], 'Create Questionnaire': [6], 'High Insurance Check': [3], 'High Medical History': [2], 'Prepare Notification Content': [5], 'Register': [0], 'Reject Claim': [4]},
'2_106': {'Contact Hospital': [1], 'Create Questionnaire': [3], 'High Insurance Check': [2], 'High Medical History': [4], 'Prepare Notification Content': [6], 'Register': [0], 'Reject Claim': [5]},
'2_107': {'Create Questionnaire': [1], 'Low Insurance Check': [3], 'Low Medical History': [2], 'Prepare Notification Content': [5], 'Register': [0], 'Reject Claim': [4], 'Send Notification by e-mail': [6]},
'2_108': {'Accept Claim': [3], 'Create Questionnaire': [4], 'Low Insurance Check': [2], 'Low Medical History': [1], 'Prepare Notification Content': [5], 'Register': [0], 'Send Notification by Post': [6]},
'2_109': {'Accept Claim': [5], 'Contact Hospital': [4], 'Create Questionnaire': [1], 'High Insurance Check': [3], 'High Medical History': [2], 'Prepare Notification Content': [6], 'Register': [0]},
'2_126': {'Create Questionnaire': [1], 'Low Insurance Check': [3], 'Low Medical History': [2], 'Prepare Notification Content': [5], 'Register': [0], 'Reject Claim': [4], 'Send Questionnaire': [6]},
'2_124': {'Accept Claim': [5], 'Contact Hospital': [3], 'Create Questionnaire': [1], 'High Insurance Check': [4], 'High Medical History': [2], 'Prepare Notification Content': [6], 'Register': [0]},
'2_122': {'Accept Claim': [4], 'Contact Hospital': [3], 'Create Questionnaire': [6], 'High Insurance Check': [1], 'High Medical History': [2], 'Prepare Notification Content': [5], 'Register': [0]},
'2_123': {'Contact Hospital': [3], 'Create Questionnaire': [5], 'High Insurance Check': [1], 'High Medical History': [2], 'Prepare Notification Content': [6], 'Register': [0], 'Reject Claim': [4]}}
def test_apply_template_to_log_init(self):
templates = ['init']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [ [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_exist(self):
templates = ['exist']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [ [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_absence1(self):
templates = ['absence1']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_absence2(self):
templates = ['absence2']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_absence3(self):
templates = ['absence3']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_choice(self):
templates = ['choice']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], [1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, -1, -1, -1, -1, 1, 1, 1, -1, 1, 1, -1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, 1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], [1, 1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, 1, -1, 1, -1, -1, 1], [1, 1, 1, -1, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, 1, 1, 1, -1, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [1, 1, 1, 1, 1, 1, 1, -1, 1, -1, -1, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_coexistence(self):
templates = ['coexistence']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_exactly1(self):
templates = ['exactly1']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [[-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_exactly2(self):
templates = ['exactly2']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_exactly3(self):
templates = ['exactly3']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_alternate_precedence(self):
templates = ['alternate_precedence']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_alternate_succession(self):
templates = ['alternate_succession']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_alternate_response(self):
templates = ['alternate_response']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, 1, 0], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_chain_precedence(self):
templates = ['chain_precedence']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, -1, 0, 0, -1, 1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, 1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, 1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, -1, 1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, 1, -1, 0], [-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [0, 0, 0, -1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_chain_response(self):
templates = ['chain_response']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, 1, -1, -1], [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, 1, 0, -1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, 1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_chain_succession(self):
templates = ['chain_succession']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, -1, 0, 0, -1, 1, -1, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, 1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, -1, 1, 0, 0, -1, 0, 1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, -1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, -1, 0, -1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, 1, -1, -1, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, 1, -1, -1], [-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], [-1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_not_chain_succession(self):
templates = ['not_chain_succession']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[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, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 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], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 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, 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, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 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], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [-1, 0, 1, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, -1, -1, -1], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 0, 0, -1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [-1, 1, -1, 1, 1, 1, 1, -1, 1, -1, -1, -1, 1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 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, -1, 0, -1, -1, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 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, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, -1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 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, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, 1, 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], [-1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, -1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, -1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 1, 0, 0, 1, -1, 0, 0, 1, 0, -1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 1, -1, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 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], [1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, 1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 1, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [-1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, -1, 1, 0], [1, 0, 1, 0, 0, 1, -1, 0, 0, 1, 0, 1, 1, 1], [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], [0, -1, 0, 1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0], [0, 1, 0, -1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [0, 0, 0, 1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], [1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_not_coexistence(self):
templates = ['not_coexistence']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0], [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 1, 1, 1, 1, -1, 0, 0, 1, 0, 0, 1], [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], [0, 1, 0, -1, -1, 0, 0, 1, 1, 1, 0, 1, 1, 0], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1], [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0], [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], [1, 1, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 0, 1, 1, 1, 1, 1, -1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1], [1, 1, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, -1, 1, 0, -1, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1], [1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 1, 1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, 1, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], [1, 1, 1, 1, 1, 1, 1, 0, 1, -1, 0, -1, -1, 1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_not_succession(self):
templates = ['not_succession']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, -1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], [0, 1, 0, -1, -1, 0, 0, -1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, 1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], [0, 1, 0, -1, -1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [0, -1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0], [1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, 1, -1, 1, 1, -1, 1, -1, 1, 1], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, -1, 1, 1, 1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, -1, 1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], [-1, 1, -1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1], [1, -1, 1, 1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_responded_existence(self):
templates = ['responded_existence']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_response(self):
templates = ['response']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, -1, 0, -1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, -1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, 1, -1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, 1, 1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [0, -1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, 1, 0], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_succession(self):
templates = ['succession']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, 0, 0, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, 1, 0, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, 0, 0, -1, -1, -1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], [0, -1, 0, 1, 1, 0, 0, 1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, 1, 0, -1, 0, 0, 0], [0, 1, 0, -1, -1, 0, 0, -1, -1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, -1, -1, -1, -1, -1, -1, 1, -1, 0, 1, 0, 0, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, -1, 1, -1, -1, -1, -1, 0], [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [-1, 0, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 0, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, 1, 1, -1, 0, -1, -1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, 1, 0, 1, 1, -1], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [0, -1, 0, 1, 1, 0, 0, -1, -1, -1, 0, -1, -1, 0], [0, -1, 0, -1, -1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [0, 1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], [-1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1, -1, -1], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, 1, -1, -1, 1, -1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1], [-1, 1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, -1, -1]
]
self.assertEqual(expected, constraint_result)
def test_apply_template_to_log_precedence(self):
templates = ['precedence']
constraint_result = []
template = templates[0]
for candidate in self.candidates:
if len(candidate) == template_sizes[template]:
constraint_result += [apply_template_to_log(template, candidate, self.transformed_log)]
expected = [
[0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, 1, 1], [-1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, -1, 1, -1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1], [0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, -1, 0, -1, -1, 0], [-1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, 1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, -1, -1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 1, 0, 0, 1, 0, 0, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [0, 1, 0, 1, 1, 0, 0, 0, 1, -1, 0, -1, -1, 0], [-1, 1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, -1, -1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, -1, -1, -1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, 1, 1, 0, 0, -1, 0, 1, -1, -1], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [0, 0, 0, -1, -1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0], [0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 1], [1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, 1, 1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, 1, 1, -1, 0, 0, -1, 0, 0, 1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, -1, 1, 1], [0, -1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, 1, 0], [-1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1, 1, 1], [0, 0, 0, 1, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, 1, -1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, -1, 0, 0, -1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, -1, -1, 0, -1, 0, 0, 0], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, 0, -1, 0, 0, -1, -1, 0, 0, -1, 0, -1, -1, -1], [-1, -1, -1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1], [0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, -1, 1, 0, 0, 1, 0, 1, -1, -1], [1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0, 1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, -1, 1, 1, 0, 0, 1, 0, 0, -1], [0, -1, 0, -1, -1, 0, 0, 1, -1, 0, 1, 0, 0, 0], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], [1, 0, 1, 0, 0, -1, -1, 0, 0, 1, 0, 1, -1, -1], [0, 1, 0, -1, -1, 0, 0, 0, -1, 1, 0, 1, -1, 0]
]
self.assertEqual(expected, constraint_result)
| 2,266.030691
| 278,273
| 0.548643
| 159,363
| 886,018
| 3.01496
| 0.000747
| 0.207204
| 0.253731
| 0.301653
| 0.989298
| 0.973258
| 0.924356
| 0.855619
| 0.804101
| 0.77248
| 0
| 0.140153
| 0.168076
| 886,018
| 390
| 278,274
| 2,271.841026
| 0.511689
| 0.000239
| 0
| 0.54023
| 1
| 0
| 0.527174
| 0.136962
| 0
| 0
| 0
| 0
| 0.08046
| 1
| 0.083333
| false
| 0
| 0.005747
| 0
| 0.094828
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
0c1eb61dcabf3c4e5daa6e90795e6853882b1ee5
| 9,732
|
py
|
Python
|
ub/modules/trolls.py
|
parv779/javes-3.0
|
d510717b2756a65b39ff18d9f53d4adc46d8e23f
|
[
"MIT"
] | 15
|
2020-12-13T17:37:05.000Z
|
2021-06-23T00:00:49.000Z
|
ub/modules/trolls.py
|
parv779/javes-3.0
|
d510717b2756a65b39ff18d9f53d4adc46d8e23f
|
[
"MIT"
] | 2
|
2021-01-11T16:39:31.000Z
|
2021-01-25T22:35:28.000Z
|
ub/modules/trolls.py
|
parv779/javes-3.0
|
d510717b2756a65b39ff18d9f53d4adc46d8e23f
|
[
"MIT"
] | 78
|
2020-12-13T17:52:51.000Z
|
2022-03-24T03:43:09.000Z
|
"""
credits to @mrconfused and @sandy1709
"""
# Copyright (C) 2020 sandeep.n(π.$)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero 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 Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import pybase64
from telegraph import exceptions, upload_file
from telethon.tl.functions.messages import ImportChatInviteRequest as Get
from ub import bot
from ub import CMD_HELP
from ub.utils import admin_cmd
from ub.helpers import *
@bot.on(admin_cmd(pattern="threats(?: |$)(.*)"))
async def catbot(catmemes):
replied = await catmemes.get_reply_message()
if not os.path.isdir("./temp/"):
os.makedirs("./temp/")
if not replied:
await catmemes.edit("reply to a supported media file")
return
if replied.media:
catmemmes = await catmemes.edit("passing to telegraph...")
else:
await catmemes.edit("reply to a supported media file")
return
try:
cat = pybase64.b64decode("QUFBQUFGRV9vWjVYVE5fUnVaaEtOdw==")
cat = Get(cat)
await catmemes.client(cat)
except BaseException:
pass
download_location = await catmemes.client.download_media(replied, "./temp/")
if download_location.endswith((".webp")):
download_location = convert_toimage(download_location)
size = os.stat(download_location).st_size
if download_location.endswith((".jpg", ".jpeg", ".png", ".bmp", ".ico")):
if size > 5242880:
await catmemmes.edit(
"the replied file size is not supported it must me below 5 mb"
)
os.remove(download_location)
return
await catmemmes.edit("generating image..")
else:
await catmemmes.edit("the replied file is not supported")
os.remove(download_location)
return
try:
response = upload_file(download_location)
os.remove(download_location)
except exceptions.TelegraphException as exc:
await catmemmes.edit("ERROR: " + str(exc))
os.remove(download_location)
return
cat = f"https://telegra.ph{response[0]}"
cat = await threats(cat)
await catmemmes.delete()
await catmemes.client.send_file(catmemes.chat_id, cat, reply_to=replied)
@bot.on(admin_cmd(pattern="trash(?: |$)(.*)"))
async def catbot(catmemes):
replied = await catmemes.get_reply_message()
if not os.path.isdir("./temp/"):
os.makedirs("./temp/")
if not replied:
await catmemes.edit("reply to a supported media file")
return
if replied.media:
catmemmes = await catmemes.edit("passing to telegraph...")
else:
await catmemes.edit("reply to a supported media file")
return
try:
cat = pybase64.b64decode("QUFBQUFGRV9vWjVYVE5fUnVaaEtOdw==")
cat = Get(cat)
await catmemes.client(cat)
except BaseException:
pass
download_location = await catmemes.client.download_media(replied, "./temp/")
if download_location.endswith((".webp")):
download_location = convert_toimage(download_location)
size = os.stat(download_location).st_size
if download_location.endswith((".jpg", ".jpeg", ".png", ".bmp", ".ico")):
if size > 5242880:
await catmemmes.edit(
"the replied file size is not supported it must me below 5 mb"
)
os.remove(download_location)
return
await catmemmes.edit("generating image..")
else:
await catmemmes.edit("the replied file is not supported")
os.remove(download_location)
return
try:
response = upload_file(download_location)
os.remove(download_location)
except exceptions.TelegraphException as exc:
await catmemmes.edit("ERROR: " + str(exc))
os.remove(download_location)
return
cat = f"https://telegra.ph{response[0]}"
cat = await trash(cat)
await catmemmes.delete()
await catmemes.client.send_file(catmemes.chat_id, cat, reply_to=replied)
@bot.on(admin_cmd(pattern="trap(?: |$)(.*)"))
async def catbot(catmemes):
input_str = catmemes.pattern_match.group(1)
input_str = deEmojify(input_str)
if "|" in input_str:
text1, text2 = input_str.split("|")
else:
await catmemes.edit(
"**Syntax :** reply to image or sticker with `.trap (name of the person to trap)|(trapper name)`",
)
return
replied = await catmemes.get_reply_message()
if not os.path.isdir("./temp/"):
os.makedirs("./temp/")
if not replied:
await catmemes.edit("reply to a supported media file")
return
if replied.media:
catmemmes = await catmemes.edit("passing to telegraph...")
else:
await catmemes.edit("reply to a supported media file")
return
try:
cat = pybase64.b64decode("QUFBQUFGRV9vWjVYVE5fUnVaaEtOdw==")
cat = Get(cat)
await catmemes.client(cat)
except BaseException:
pass
download_location = await catmemes.client.download_media(replied, "./temp/")
if download_location.endswith((".webp")):
download_location = convert_toimage(download_location)
size = os.stat(download_location).st_size
if download_location.endswith((".jpg", ".jpeg", ".png", ".bmp", ".ico")):
if size > 5242880:
await catmemmes.edit(
"the replied file size is not supported it must me below 5 mb"
)
os.remove(download_location)
return
await catmemmes.edit("generating image..")
else:
await catmemmes.edit("the replied file is not supported")
os.remove(download_location)
return
try:
response = upload_file(download_location)
os.remove(download_location)
except exceptions.TelegraphException as exc:
await catmemmes.edit("ERROR: " + str(exc))
os.remove(download_location)
return
cat = f"https://telegra.ph{response[0]}"
cat = await trap(text1, text2, cat)
await catmemmes.delete()
await catmemes.client.send_file(catmemes.chat_id, cat, reply_to=replied)
@bot.on(admin_cmd(pattern="phub(?: |$)(.*)"))
async def catbot(catmemes):
input_str = catmemes.pattern_match.group(1)
input_str = deEmojify(input_str)
if "|" in input_str:
username, text = input_str.split("|")
else:
await catmemes.edit(
"**Syntax :** reply to image or sticker with `.phub (username)|(text in comment)`"
)
return
replied = await catmemes.get_reply_message()
if not os.path.isdir("./temp/"):
os.makedirs("./temp/")
if not replied:
await catmemes.edit("reply to a supported media file")
return
if replied.media:
catmemmes = await catmemes.edit("passing to telegraph...")
else:
await catmemes.edit("reply to a supported media file")
return
try:
cat = pybase64.b64decode("QUFBQUFGRV9vWjVYVE5fUnVaaEtOdw==")
cat = Get(cat)
await catmemes.client(cat)
except BaseException:
pass
download_location = await catmemes.client.download_media(replied, "./temp/")
if download_location.endswith((".webp")):
download_location = convert_toimage(download_location)
size = os.stat(download_location).st_size
if download_location.endswith((".jpg", ".jpeg", ".png", ".bmp", ".ico")):
if size > 5242880:
await catmemmes.edit(
"the replied file size is not supported it must me below 5 mb"
)
os.remove(download_location)
return
await catmemmes.edit("generating image..")
else:
await catmemmes.edit("the replied file is not supported")
os.remove(download_location)
return
try:
response = upload_file(download_location)
os.remove(download_location)
except exceptions.TelegraphException as exc:
await catmemmes.edit("ERROR: " + str(exc))
os.remove(download_location)
return
cat = f"https://telegra.ph{response[0]}"
cat = await phcomment(cat, text, username)
await catmemmes.delete()
await catmemes.client.send_file(catmemes.chat_id, cat, reply_to=replied)
CMD_HELP.update(
{
"trolls": "__**PLUGIN NAME :** TROLLS__\
\n\n📌** CMD ➥** `.threats` reply to image or sticker \
\n**USAGE ➥ **Changes the given pic to another pic which shows that pic content is threat to society as that of nuclear bomb .\
\n\n📌** CMD ➥** `.trash` reply to image or sticker\
\n**USAGE ➥ **Changes the given pic to another pic which shows that pic content is as equal as to trash(waste)\
\n\n📌** CMD ➥** Reply to image or sticker with `.trap (name of the person to trap)|(trapper name)`\
\n**USAGE ➥ **Changes the given pic to another pic which shows that pic content is trapped in trap card\
\n\n📌** CMD ➥** Reply to image or sticker with `.phub (username)|(text in comment)`\
\n**USAGE ➥ **Changes the given pic to another pic which shows that pic content as dp and shows a comment in phub with the given username\
"
}
)
| 38.772908
| 147
| 0.644061
| 1,222
| 9,732
| 5.05401
| 0.168576
| 0.11399
| 0.046632
| 0.062176
| 0.851198
| 0.845693
| 0.840512
| 0.829501
| 0.829501
| 0.829501
| 0
| 0.010485
| 0.245376
| 9,732
| 250
| 148
| 38.928
| 0.82884
| 0.075524
| 0
| 0.821429
| 0
| 0.03125
| 0.167168
| 0.014255
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.035714
| 0.035714
| 0
| 0.133929
| 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
|
a77964dadeb8484744dd645b1ee1d7227b83fb9f
| 119
|
py
|
Python
|
src/docxCreater/__init__.py
|
HoPGoldy/docx-server
|
d1612b832e4f078080342b74a2a80cc5eca7c5b4
|
[
"MIT"
] | null | null | null |
src/docxCreater/__init__.py
|
HoPGoldy/docx-server
|
d1612b832e4f078080342b74a2a80cc5eca7c5b4
|
[
"MIT"
] | 1
|
2021-03-31T19:58:14.000Z
|
2021-03-31T19:58:14.000Z
|
src/docxCreater/__init__.py
|
HoPGoldy/docx-server
|
d1612b832e4f078080342b74a2a80cc5eca7c5b4
|
[
"MIT"
] | null | null | null |
from .helloWorld.main import create as helloworld_create
from .createWithTemplate.main import create as template_create
| 59.5
| 62
| 0.87395
| 16
| 119
| 6.375
| 0.5
| 0.196078
| 0.313725
| 0.352941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092437
| 119
| 2
| 62
| 59.5
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
a7afbac37c5e9e2b3a3edba39ad55d80d82cb9db
| 6,371
|
py
|
Python
|
zues/forms.py
|
trolando/zues
|
11274baca7feafbeecdfc4a07d4c400f9c016270
|
[
"MIT"
] | null | null | null |
zues/forms.py
|
trolando/zues
|
11274baca7feafbeecdfc4a07d4c400f9c016270
|
[
"MIT"
] | null | null | null |
zues/forms.py
|
trolando/zues
|
11274baca7feafbeecdfc4a07d4c400f9c016270
|
[
"MIT"
] | null | null | null |
from django.forms import Form, ModelForm, CharField, IntegerField, Textarea, EmailField
from captcha.fields import ReCaptchaField
from zues import models
class MotieForm(ModelForm):
def __init__(self, *args, **kwargs):
super(MotieForm, self).__init__(*args, **kwargs)
self.fields['titel'].widget.attrs.update({'placeholder': 'Titel van het voorstel'})
self.fields['onderwerp'].widget.attrs.update({'placeholder': 'Onderwerp (voor bestuur/congresteam)'})
self.fields['woordvoerder'].widget.attrs.update({'placeholder': 'Naam van de woordvoerder'})
self.fields['indieners'].widget.attrs.update({'placeholder': '"[JD Afdeling] Voorzitter, Secretaris" of "Naam 1, Naam 2, etc... (minimaal 5)"'})
self.fields['constateringen'].widget.attrs.update({'placeholder': 'Elke (optionele) constatering gescheiden door een of meerdere witregels..."'})
self.fields['overwegingen'].widget.attrs.update({'placeholder': 'Elke (optionele) overweging gescheiden door een of meerdere witregels..."'})
self.fields['uitspraken'].widget.attrs.update({'placeholder': 'Elke uitspraak gescheiden door een of meerdere witregels..."'})
self.fields['toelichting'].widget.attrs.update({'placeholder': 'Kort en bondige toelichting (optioneel)...'})
class ResolutieForm(ModelForm):
def __init__(self, *args, **kwargs):
super(ResolutieForm, self).__init__(*args, **kwargs)
self.fields['titel'].widget.attrs.update({'placeholder': 'Titel van het voorstel'})
self.fields['onderwerp'].widget.attrs.update({'placeholder': 'Onderwerp (voor bestuur/congresteam)'})
self.fields['woordvoerder'].widget.attrs.update({'placeholder': 'Naam van de woordvoerder'})
self.fields['indieners'].widget.attrs.update({'placeholder': '"[JD Afdeling] Voorzitter, Secretaris" of "Naam 1, Naam 2, etc... (minimaal 5)"'})
self.fields['betreft'].widget.attrs.update({'placeholder': 'Resolutie/Voorstel/Hoofdstuk N, pagina M, regels X-Y'})
self.fields['tekst1'].widget.attrs.update({'placeholder': 'Volledige tekst die geschrapt of toegevoegd wordt...'})
self.fields['tekst2'].widget.attrs.update({'placeholder': 'Volledige tekst die de geschrapte tekst vervangt... (alleen gebruiken bij type Vervangen)'})
self.fields['toelichting'].widget.attrs.update({'placeholder': 'Kort en bondige toelichting (optioneel)...'})
class PMForm(MotieForm):
constateringen = CharField(widget=Textarea, label='Constaterende dat', required=False)
overwegingen = CharField(widget=Textarea, label='Overwegende dat', required=False)
uitspraken = CharField(widget=Textarea, label='Spreekt uit dat')
def __init__(self, *args, **kwargs):
super(PMForm, self).__init__(*args, **kwargs)
self.fields['toelichting'].widget.attrs.update({'placeholder': 'Optionele toelichting van maximaal 100 woorden...'})
class Meta:
model = models.PolitiekeMotie
fields = ('titel', 'onderwerp', 'woordvoerder', 'indieners', 'constateringen', 'overwegingen', 'uitspraken', 'toelichting',)
class APMForm(MotieForm):
constateringen = CharField(widget=Textarea, label='Constaterende dat', required=False)
overwegingen = CharField(widget=Textarea, label='Overwegende dat', required=False)
uitspraken = CharField(widget=Textarea, label='Spreekt uit dat')
def __init__(self, *args, **kwargs):
super(APMForm, self).__init__(*args, **kwargs)
self.fields['toelichting'].widget.attrs.update({'placeholder': 'Optionele toelichting van maximaal 100 woorden...'})
class Meta:
model = models.ActuelePolitiekeMotie
fields = ('titel', 'onderwerp', 'woordvoerder', 'indieners', 'constateringen', 'overwegingen', 'uitspraken', 'toelichting',)
class ORGForm(MotieForm):
constateringen = CharField(widget=Textarea, label='Constaterende dat', required=False)
overwegingen = CharField(widget=Textarea, label='Overwegende dat', required=False)
uitspraken = CharField(widget=Textarea, label='Spreekt uit dat')
class Meta:
model = models.Organimo
fields = ('titel', 'onderwerp', 'woordvoerder', 'indieners', 'constateringen', 'overwegingen', 'uitspraken', 'toelichting',)
class RESForm(ResolutieForm):
tekst1 = CharField(widget=Textarea, label='Schrap/Voeg toe:')
tekst2 = CharField(widget=Textarea, label='Vervang door:', required=False)
class Meta:
model = models.Resolutie
fields = ('titel', 'onderwerp', 'woordvoerder', 'indieners', 'betreft', 'type', 'tekst1', 'tekst2', 'toelichting',)
def __init__(self, *args, **kwargs):
super(RESForm, self).__init__(*args, **kwargs)
self.fields['betreft'].widget.attrs.update({'placeholder': 'Hoofdstuk N, pagina M, regels X-Y'})
class AMForm(ResolutieForm):
tekst1 = CharField(widget=Textarea, label='Schrap/Voeg toe:')
tekst2 = CharField(widget=Textarea, label='Vervang door:', required=False)
class Meta:
model = models.Amendement
fields = ('titel', 'onderwerp', 'woordvoerder', 'indieners', 'betreft', 'type', 'tekst1', 'tekst2', 'toelichting',)
def __init__(self, *args, **kwargs):
super(AMForm, self).__init__(*args, **kwargs)
self.fields['betreft'].widget.attrs.update({'placeholder': 'Voorstel/Resolutie N, pagina M, regels X-Y'})
self.fields['toelichting'].widget.attrs.update({'placeholder': 'Optionele toelichting van maximaal 100 woorden...'})
class HRForm(ResolutieForm):
tekst1 = CharField(widget=Textarea, label='Schrap/Voeg toe:')
tekst2 = CharField(widget=Textarea, label='Vervang door:', required=False)
class Meta:
model = models.HRWijziging
fields = ('titel', 'onderwerp', 'woordvoerder', 'indieners', 'betreft', 'type', 'tekst1', 'tekst2', 'toelichting',)
def __init__(self, *args, **kwargs):
super(HRForm, self).__init__(*args, **kwargs)
self.fields['betreft'].widget.attrs.update({'placeholder': 'Hoofdstuk N, pagina M, regels X-Y'})
class LidnummerForm(Form):
lidnummer = IntegerField(label='Lidnummer:')
class LidnummerRecaptchaForm(LidnummerForm):
captcha = ReCaptchaField()
class HelpLidnummerForm(Form):
email = EmailField(max_length=254, label='Emailadres:')
class HelpLidnummerRecaptchaForm(HelpLidnummerForm):
captcha = ReCaptchaField()
| 51.379032
| 159
| 0.696751
| 669
| 6,371
| 6.550075
| 0.19432
| 0.050205
| 0.085349
| 0.140575
| 0.817891
| 0.810589
| 0.791876
| 0.745322
| 0.706527
| 0.706527
| 0
| 0.005891
| 0.147387
| 6,371
| 123
| 160
| 51.796748
| 0.80081
| 0
| 0
| 0.579545
| 0
| 0.022727
| 0.346413
| 0.004395
| 0
| 0
| 0
| 0
| 0
| 1
| 0.079545
| false
| 0
| 0.034091
| 0
| 0.534091
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
a7b32bc51c2e0692e95562240f856c42ea064ca2
| 144
|
py
|
Python
|
intprim/filter/spatiotemporal/__init__.py
|
carlos-cardoso/intprim
|
cf6d83996e4a1ede3cda19c7906c6166ec5a6f6e
|
[
"MIT"
] | 49
|
2017-11-23T22:37:36.000Z
|
2022-03-05T04:39:13.000Z
|
intprim/filter/spatiotemporal/__init__.py
|
souljaboy764/intprim
|
ecf905ce69dc14215230be3b3819d2236223e9ba
|
[
"MIT"
] | 5
|
2019-03-31T08:47:33.000Z
|
2021-08-19T23:54:51.000Z
|
intprim/filter/spatiotemporal/__init__.py
|
souljaboy764/intprim
|
ecf905ce69dc14215230be3b3819d2236223e9ba
|
[
"MIT"
] | 20
|
2018-01-22T20:17:24.000Z
|
2022-02-18T01:07:54.000Z
|
from intprim.filter.spatiotemporal.ekf import *
from intprim.filter.spatiotemporal.enkf import *
from intprim.filter.spatiotemporal.pf import *
| 36
| 48
| 0.833333
| 18
| 144
| 6.666667
| 0.444444
| 0.275
| 0.425
| 0.775
| 0.616667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 144
| 3
| 49
| 48
| 0.909091
| 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
|
38f72837c747db6f507628caa24e6afd46e90ecd
| 18,684
|
py
|
Python
|
plottingUtilsLaunchWindow.py
|
castanhas98/hodographic-shaping-method-python
|
c74e34a0c6ba127a9ee7c131c24f4c996a51c3cf
|
[
"MIT"
] | 2
|
2021-08-31T07:55:45.000Z
|
2021-08-31T18:37:20.000Z
|
plottingUtilsLaunchWindow.py
|
castanhas98/hodographic-shaping-method-python
|
c74e34a0c6ba127a9ee7c131c24f4c996a51c3cf
|
[
"MIT"
] | 1
|
2021-11-27T13:39:17.000Z
|
2021-11-27T13:51:57.000Z
|
plottingUtilsLaunchWindow.py
|
castanhas98/hodographic-shaping-method-python
|
c74e34a0c6ba127a9ee7c131c24f4c996a51c3cf
|
[
"MIT"
] | 2
|
2020-06-18T17:54:02.000Z
|
2021-08-31T07:55:55.000Z
|
import matplotlib as mlt
# mlt.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
from utils import *
class plottingGridSearch(object):
"""
Plotting the results of a grid search
Takes a numpy dictionary
"""
def __init__(self, results, save=False, folder='graveyard',
externalMonitor=-1, show=True):
# retrieve results
self.deltaVs = results['deltaVs']
self.depDates = results['depDates']
self.Ns = results['Ns']
self.tofs = results['tofs']
# settings
self.folder = folder
self.save = save
self.externalMonitorFlag = externalMonitor
self.show = show
def resultContours(self, save=None, folder=None, levels=50):
'''
Contour plots of time of flight and departure dates for each N
'''
print('Plotting contour')
nPlots = len(self.Ns)
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
plt.figure(figsize = (10, 4*nPlots))
index = 0
for i in self.Ns:
# plt.subplot(nPlots, 1, i+1, sharex=True)
plt.subplot(nPlots, 1, index+1)
plot1 = plt.contourf(XdepDates, Ytofs,
self.deltaVs[:, :, index]/1e3, levels)
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.title('DeltaV for N =' + str(i))
plt.ylabel('Time of flight [days]')
index += 1
plt.xlabel('Departure Date [julian days]')
plt.ylabel('Time of flight [days]')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder, 'DeltaV.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder, 'DeltaV.png'), dpi=300)
plt.tight_layout()
plt.show()
def resultContoursImshow(self, save=None, folder=None, maxVal=None):
'''
Contour plots of time of flight and departure dates for each N
Using imshow
'''
print('Plotting contour (imshow)')
nPlots = len(self.Ns)
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
plotDeltaV = self.deltaVs/1e3
if maxVal:
plotDeltaV[plotDeltaV > maxVal] = np.nan
plt.figure(figsize = (10, 4*nPlots))
index = 0
for i in self.Ns:
# plt.subplot(nPlots, 1, i+1, sharex=True)
plt.subplot(nPlots, 1, index+1)
plot1 = plt.imshow(plotDeltaV[:, :, index],
extent=[self.depDates[0], self.depDates[-1],
self.tofs[0], self.tofs[-1]],
origin='lower', aspect='auto')
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.title('DeltaV for N =' + str(i))
plt.ylabel('Time of flight [days]')
index += 1
plt.xlabel('Departure Date [julian days]')
plt.ylabel('Time of flight [days]')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder, 'DeltaVimshow.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder, 'DeltaVimshow.png'), dpi=300)
plt.tight_layout()
plt.show()
def resultContourBest(self, save=None, folder=None, levels=50,
zRange = None, colorMap = 'viridis'):
"""
Contour plot of the best trajectories
"""
print('Plotting best contour (contourf)')
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
# chose minimum DeltaV from different N
# convert to km/s
Vplot = np.amin(self.deltaVs, axis=2)/1e3
# Cut off large and small values
if zRange:
print(zRange)
Vplot[Vplot < zRange[0]] = zRange[0]
Vplot[Vplot > zRange[1]] = zRange[1]
plt.figure(figsize = (10, 5))
plotLast = plt.contourf(XdepDates, Ytofs , Vplot, levels, cmap = colorMap)
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
# if self.zRange:
# plt.clim(self.zRange)
plt.xlabel('Departure Date [julian days]')
plt.ylabel('Time of flight [days]')
plt.title('Minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder, 'bestDeltaV.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder, 'bestDeltaV.png'), dpi=300)
plt.show()
def resultContourBestImshow(self, save=None, folder=None, levels=50,
colorMap = 'viridis'):
"""
Contour plot of the best trajectories
"""
print('Plotting best contour (imshow)')
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
# chose minimum DeltaV from different N
# convert to km/s
Vplot = np.amin(self.deltaVs, axis=2)/1e3
plt.figure(figsize = (10, 5))
plot1 = plt.imshow(Vplot,
extent=[self.depDates[0], self.depDates[-1],
self.tofs[0], self.tofs[-1]],
origin='lower', aspect='auto', cmap=colorMap)
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.xlabel('Departure Date [julian days]')
plt.ylabel('Time of flight [days]')
plt.title('Minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVimshow.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVimshow.png'), dpi=300)
plt.show()
def resultBestN(self, save=None, folder=None, levels=50,
colorMap = 'viridis'):
"""
Plot the best N for each point in the grid search
"""
print('Plotting best Ns')
fig = newFigure(height=3.5, half=False, target='paper')
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
# chose minimum DeltaV from different N
# convert to km/s
Nplot = np.argmin(self.deltaVs, axis=2)
plot1 = plt.imshow(Nplot,
extent=[self.depDates[0], self.depDates[-1],
self.tofs[0], self.tofs[-1]],
origin='lower', aspect='auto', cmap=colorMap)
cbar = plt.colorbar()
cbar.ax.set_ylabel('N')
plt.xlabel('Departure Date [julian days]')
plt.ylabel('Time of flight [days]')
plt.title('Number of revolutions for minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestNimshow.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestNimshow.png'), dpi=300)
plt.show()
def resultContourBest114(self, save=None, folder=None, colorMap='viridis'):
"""
Contour plot of the best trajectories
Recreates Figure 11.4 in [Gondelach, 2012]
"""
print('Plotting best contour, recreating Figure 11.4')
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
# chose minimum DeltaV from different N
# convert to km/s
Vplot = np.amin(self.deltaVs, axis=2)/1e3
plt.figure(figsize = (10, 4))
cmap = plt.get_cmap(colorMap)
cmap = mlt.colors.ListedColormap(['mediumblue', 'royalblue',
'dodgerblue', 'deepskyblue', 'turquoise', 'chartreuse'])
cmap.set_over(color='firebrick')
cmap.set_under(color='r')
bounds = [6, 7, 8, 10, 15, 20, 40]
norm = mlt.colors.BoundaryNorm(bounds, cmap.N)
ax = plt.gca()
plotBest = plt.contourf(XdepDates, Ytofs , Vplot,
levels=bounds, cmap=cmap, norm=norm, extend='max')
cmap3 = mlt.colors.ListedColormap(['r', 'g', 'b', 'c'])
cmap3.set_over('0.35')
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.xlabel('Departure Date [MJD2000]')
plt.ylabel('Time of flight [days]')
plt.title('Minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder, '114.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder, '114.png'), dpi=300)
plt.show()
def resultContourBest118(self, save=None, folder=None, colorMap='viridis'):
"""
Contour plot of the best trajectories
Recreates Figure 11.8 in [Gondelach, 2012]
"""
print('Plotting best contour, recreating Figure 11.4')
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
# chose minimum DeltaV from different N
# convert to km/s
Vplot = np.amin(self.deltaVs, axis=2)/1e3
plt.figure(figsize = (10, 4))
cmap = plt.get_cmap(colorMap)
cmap = mlt.colors.ListedColormap(['midnightblue', 'mediumblue',
'royalblue', 'dodgerblue', 'deepskyblue',
'turquoise', 'chartreuse'])
bounds = [5, 6, 7, 8, 10, 15, 20, 40]
norm = mlt.colors.BoundaryNorm(bounds, cmap.N)
ax = plt.gca()
plotBest = plt.contourf(XdepDates, Ytofs , Vplot, levels=bounds,
cmap=cmap, norm=norm)
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.xlabel('Departure Date [MJD2000]')
plt.ylabel('Time of flight [days]')
plt.title('Minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder, '118.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder, '118.png'), dpi=300)
plt.show()
def resultContourBestPartial(self, save=None, folder=None,
limits = [7000, 11000, 500, 2000], zRange = None,
colorMap = 'viridis', levels = 50):
"""
Contour plot of the best trajectories with the option to zoom
Pay attention that the limits exist in the axis vectors
"""
print('Plotting best contour')
# crop to the desired part of the data
xMin = limits[0]
xMax = limits[1]
yMin = limits[2]
yMax = limits[3]
xMinIndex = np.where(self.depDates == xMin)
xMaxIndex = np.where(self.depDates == xMax)
yMinIndex = np.where(self.tofs == yMin)
yMaxIndex = np.where(self.tofs == yMax)
plotDeltaVs = self.deltaVs[int(yMinIndex[0]):int(yMaxIndex[0]),
int(xMinIndex[0]):int(xMaxIndex[0])]
XdepDates, Ytofs = np.meshgrid(
self.depDates[int(xMinIndex[0]):int(xMaxIndex[0])],
self.tofs[int(yMinIndex[0]):int(yMaxIndex[0])])
# chose minimum DeltaV from different N
# convert to km/s
Vplot = np.amin(plotDeltaVs, axis=2)/1e3
# Cut off large and small values
if zRange:
print(zRange)
Vplot[Vplot < zRange[0]] = zRange[0]
Vplot[Vplot > zRange[1]] = zRange[1]
plt.figure(figsize = (10, 5))
plotLast = plt.contourf(XdepDates, Ytofs , Vplot, levels, cmap=colorMap)
cbar = plt.colorbar(extend='max')
# format with arrow
# cmap = mlt.colors.ListedColormap(['r', 'g', 'b', 'c'])
# cmap.set_over('r')
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.xlabel('Departure Date [julian days]')
plt.ylabel('Time of flight [days]')
plt.title('Minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVpartialContour.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVpartialContour.png'), dpi=300)
# plt.tight_layout()
plt.show()
def resultSurfaces(self, save=None, folder=None):
'''
Contour plots ofe time of flight and departure dates for each N
'''
print('Plotting contour')
yPlots = np.ceil(len(self.Ns)/2)
xPlots = 2
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
fig = plt.figure(figsize = (20, 4*yPlots))
index = 0
for i in self.Ns:
ax = plt.subplot(yPlots, xPlots, index+1, projection='3d')
plot1 = ax.plot_surface(XdepDates, Ytofs,
self.deltaVs[:, :, index]/1e3,
cmap='viridis')
plt.title('DeltaV for N =' + str(i))
ax.set_xlabel('Departure Date [julian days]')
ax.set_ylabel('Time of flight [days]')
ax.set_zlabel('DeltaV [km/s]');
index += 1
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder,
'DeltaVsurfaces.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder,
'DeltaVsurfaces.png'), dpi=300)
plt.tight_layout()
plt.show()
def resultSurfaceBest(self, save=None, folder=None):
"""
Contour plot of the best trajectories
"""
print('Plotting best contour')
levels = 50
XdepDates, Ytofs = np.meshgrid(self.depDates, self.tofs)
fig = plt.figure(figsize = (10, 5))
ax = fig.gca(projection='3d')
plotLast = ax.plot_surface(XdepDates, Ytofs ,
np.amin(self.deltaVs, axis=2)/1e3, cmap='viridis')
m = mlt.cm.ScalarMappable(cmap=plotLast.cmap, norm=plotLast.norm)
m.set_array(np.amin(self.deltaVs, axis=2)/1e3)
plt.colorbar(m)
# ax.set_zlim(0, 200)
ax.set_xlabel('Departure Date [julian days]')
ax.set_ylabel('Time of flight [days]')
ax.set_zlabel('DeltaV [km/s]');
plt.title('Minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVsurface.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVsurface.png'), dpi=300)
plt.show()
def resultImshowBest(self, save=None, folder=None, maxVal=None):
"""
Plot the best trajectories as an image
"""
print('Plotting best imshow')
plotDeltaV = self.deltaVs/1e3
if maxVal:
plotDeltaV[plotDeltaV > maxVal] = np.nan
# plt.figure(figsize = (10, 5))
newFigure(height=3.5, half=False, target='paper')
plotLast = plt.imshow(np.nanmin(plotDeltaV, axis=2),
origin='lower', extent=[self.depDates[0],
self.depDates[-1], self.tofs[0], self.tofs[-1]],
aspect='auto')
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.xlabel('Departure Date [mjd2000]')
plt.ylabel('Time of flight [days]')
# plt.title('Minimum DeltaV')
plt.tight_layout()
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVimshow.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVimshow.png'), dpi=300)
# plt.tight_layout()
if self.show == True:
plt.show()
def resultImshowBestPartial(self, save=None, folder=None,
limits = [7000, 11000, 500, 2000]):
"""
Plot the best trajectories as an image with the option to zoom
"""
print('Plotting best imshow')
# crop to the desired part of the data
xMin = limits[0]
xMax = limits[1]
yMin = limits[2]
yMax = limits[3]
xMinIndex = np.where(self.depDates == xMin)
xMaxIndex = np.where(self.depDates == xMax)
yMinIndex = np.where(self.tofs == yMin)
yMaxIndex = np.where(self.tofs == yMax)
plotDeltaVs = self.deltaVs[int(yMinIndex[0]):int(yMaxIndex[0]),
int(xMinIndex[0]):int(xMaxIndex[0])]
# create figure
plt.figure(figsize = (10, 5))
plotLast = plt.imshow(np.amin(plotDeltaVs, axis=2)/1e3,
origin='lower', extent=[xMin, xMax, yMin, yMax],
aspect = 'auto')
cbar = plt.colorbar()
cbar.ax.set_ylabel('DeltaV [km/s]')
plt.xlabel('Departure Date [julian days]')
plt.ylabel('Time of flight [days]')
plt.title('Minimum DeltaV')
if save==None:
save = self.save
if folder==None:
folder = self.folder
if save==True:
checkFolder(folder)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVimshow.pdf'), dpi=300)
plt.savefig(os.path.join(os.getcwd(), folder,
'bestDeltaVimshow.png'), dpi=300)
# plt.tight_layout()
plt.show()
| 33.423971
| 87
| 0.535485
| 2,142
| 18,684
| 4.653595
| 0.119048
| 0.020064
| 0.028892
| 0.038523
| 0.840189
| 0.831862
| 0.782404
| 0.748596
| 0.737661
| 0.696429
| 0
| 0.02724
| 0.335902
| 18,684
| 558
| 88
| 33.483871
| 0.776112
| 0.089917
| 0
| 0.709589
| 0
| 0
| 0.116559
| 0.005888
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035616
| false
| 0
| 0.010959
| 0
| 0.049315
| 0.038356
| 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
|
ac35281e50a2964b007f38c7ed26dbc754b76275
| 109
|
py
|
Python
|
robot-runner/Plugins/Systems/TurtleBot3/modules/utilties/Utilities.py
|
engelhamer/robot-runner
|
468ffe8130ec4c4a880c21e4119407738c0d3082
|
[
"MIT"
] | 21
|
2020-11-30T12:21:18.000Z
|
2021-12-24T06:16:46.000Z
|
robot-runner/Plugins/Systems/TurtleBot3/modules/utilties/Utilities.py
|
engelhamer/robot-runner
|
468ffe8130ec4c4a880c21e4119407738c0d3082
|
[
"MIT"
] | null | null | null |
robot-runner/Plugins/Systems/TurtleBot3/modules/utilties/Utilities.py
|
engelhamer/robot-runner
|
468ffe8130ec4c4a880c21e4119407738c0d3082
|
[
"MIT"
] | 3
|
2021-04-11T14:41:54.000Z
|
2021-06-09T11:07:17.000Z
|
import math
def rotation_is_close(target, yaw) -> bool:
return math.isclose(target, yaw, abs_tol=10**-2)
| 27.25
| 52
| 0.724771
| 18
| 109
| 4.222222
| 0.833333
| 0.236842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031915
| 0.137615
| 109
| 4
| 52
| 27.25
| 0.776596
| 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
|
ac61a410c96856d73d552c60f340bb7f85fedc1f
| 3,914
|
py
|
Python
|
home/models.py
|
Amaranthos/jhcom
|
551b2eccbeadee0fb6b9c06e10da71af80776ed8
|
[
"MIT"
] | null | null | null |
home/models.py
|
Amaranthos/jhcom
|
551b2eccbeadee0fb6b9c06e10da71af80776ed8
|
[
"MIT"
] | null | null | null |
home/models.py
|
Amaranthos/jhcom
|
551b2eccbeadee0fb6b9c06e10da71af80776ed8
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.db.models import permalink
class Game(models.Model):
title = models.CharField(max_length=50, unique=True)
slug = models.SlugField(max_length=50, unique=True)
video = models.URLField()
thumbnail = models.ImageField(upload_to = 'home/img/games/thumbnails/')
description = models.TextField()
contributors = models.ManyToManyField('home.Contributor', blank=True)
links = models.ManyToManyField('home.Link', blank=True)
posted = models.DateField(auto_now_add=True)
def __str__(self):
return self.title;
@permalink
def get_absolute_url(self):
return ('game', None, {'slug':self.slug, 'id':self.id,})
class Meta:
verbose_name = "Game"
verbose_name_plural = "Games"
class App(models.Model):
title = models.CharField(max_length=50, unique=True)
slug = models.SlugField(max_length=50, unique=True)
video = models.URLField()
thumbnail = models.ImageField(upload_to = 'home/img/apps/thumbnails/')
description = models.TextField()
contributors = models.ManyToManyField('home.Contributor', blank=True)
links = models.ManyToManyField('home.Link', blank=True)
posted = models.DateField(auto_now_add=True)
def __str__(self):
return self.title;
@permalink
def get_absolute_url(self):
return ('app', None, {'slug':self.slug, 'id':self.id,})
class Meta:
verbose_name = "App"
verbose_name_plural = "Apps"
class Tool(models.Model):
title = models.CharField(max_length=50, unique=True)
slug = models.SlugField(max_length=50, unique=True)
video = models.URLField()
thumbnail = models.ImageField(upload_to = 'home/img/tools/thumbnails/')
description = models.TextField()
contributors = models.ManyToManyField('home.Contributor', blank=True)
links = models.ManyToManyField('home.Link', blank=True)
posted = models.DateField(auto_now_add=True)
def __str__(self):
return self.title;
@permalink
def get_absolute_url(self):
return ('tool', None, {'slug':self.slug, 'id':self.id,})
class Meta:
verbose_name = "Tool"
verbose_name_plural = "Tools"
class Library(models.Model):
title = models.CharField(max_length=50, unique=True)
slug = models.SlugField(max_length=50, unique=True)
thumbnail = models.ImageField(upload_to = 'home/img/libraries/thumbnails/')
description = models.TextField()
contributors = models.ManyToManyField('home.Contributor', blank=True)
links = models.ManyToManyField('home.Link', blank=True)
posted = models.DateField(auto_now_add=True)
def __str__(self):
return self.title;
@permalink
def get_absolute_url(self):
return ('library', None, {'slug':self.slug, 'id':self.id,})
class Meta:
verbose_name = "Library"
verbose_name_plural = "Libraries"
class Website(models.Model):
title = models.CharField(max_length=50, unique=True)
thumbnail = models.ImageField(upload_to = 'home/img/sites/thumbnails/')
link = models.URLField()
def __str__(self):
return self.title;
class Meta:
verbose_name = "Site"
verbose_name_plural = "Sites"
class Art(models.Model):
title = models.CharField(max_length=50, unique=True)
def __str__(self):
return self.title;
class Meta:
verbose_name = "Art"
verbose_name_plural = "Art"
class Tutorial(models.Model):
title = models.CharField(max_length=50, unique=True)
slug = models.SlugField(max_length=50, unique=True)
posted = models.DateField(auto_now_add=True)
def __str__(self):
return self.title;
class Meta:
verbose_name = "Tutorial"
verbose_name_plural = "Tutorials"
class Contributor(models.Model):
name = models.CharField(max_length=50, unique=True)
link = models.URLField()
def __str__(self):
return self.name
class Meta:
verbose_name = "Contributor"
verbose_name_plural = "Contributors"
class Link(models.Model):
name = models.CharField(max_length=50, unique=True)
link = models.URLField()
def __str__(self):
return self.name
class Meta:
verbose_name = "Link"
verbose_name_plural = "Links"
| 27.56338
| 76
| 0.742463
| 520
| 3,914
| 5.396154
| 0.126923
| 0.070563
| 0.054882
| 0.084818
| 0.833571
| 0.833571
| 0.833571
| 0.833571
| 0.827156
| 0.827156
| 0
| 0.008166
| 0.123914
| 3,914
| 142
| 77
| 27.56338
| 0.810149
| 0
| 0
| 0.654545
| 0
| 0
| 0.097063
| 0.033972
| 0
| 0
| 0
| 0
| 0
| 1
| 0.118182
| false
| 0
| 0.018182
| 0.118182
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
ac7a63b286c6c889dae56b1300b629d2e00ad4e1
| 6,886
|
py
|
Python
|
functional_tests/test_registration_page.py
|
HelloMelanieC/FiveUp
|
ab97d311f163b09146fe330e4360d8e75d769f95
|
[
"MIT"
] | 12
|
2017-09-10T01:43:42.000Z
|
2020-09-20T01:17:20.000Z
|
functional_tests/test_registration_page.py
|
HelloMelanieC/FiveUp
|
ab97d311f163b09146fe330e4360d8e75d769f95
|
[
"MIT"
] | 22
|
2016-12-26T21:46:10.000Z
|
2022-02-10T08:01:52.000Z
|
functional_tests/test_registration_page.py
|
HelloMelanieC/FiveUp
|
ab97d311f163b09146fe330e4360d8e75d769f95
|
[
"MIT"
] | 4
|
2017-08-24T16:01:37.000Z
|
2019-02-14T23:50:17.000Z
|
from django.core import mail
from fuauth.models import User
from .utils import SeleniumTestCase
class LoginTest(SeleniumTestCase):
def test_registration_should_create_a_user(self):
"""
We'll start with no users, register someone, and then end up
with one user.
"""
assert User.objects.all().count() == 0
with self.wait_for_page_load():
self.browser.get(self.live_server_url + "/")
self.browser.find_element_by_name("name").send_keys("Melanie")
self.browser.find_element_by_name("email").send_keys("test@gmailzzz.com")
self.browser.find_element_by_name("phone_number").send_keys("6192222222")
carrier_dropdown = self.browser.find_element_by_name("carrier")
carrier_dropdown.find_element_by_css_selector("option[value='pixmbl.com']").click()
tz = self.browser.find_element_by_name("user_timezone")
tz.find_element_by_css_selector("option[value='PC']").click()
self.browser.find_element_by_name("password").send_keys("testpants")
with self.wait_for_page_load():
self.browser.find_element_by_css_selector("*[type=submit]").click()
text = self.browser.find_element_by_tag_name("body").text
assert "Want some more happy?" in text
melanie = User.objects.all()[0]
assert melanie.name == "Melanie"
assert melanie.email == "test@gmailzzz.com"
assert melanie.phone_number == "6192222222"
assert melanie.carrier == "pixmbl.com"
assert melanie.user_timezone == "PC"
def test_registration_sends_confirmation_text(self):
"""
A successful registration should trigger a welcome text.
"""
with self.wait_for_page_load():
self.browser.get(self.live_server_url + "/")
self.browser.find_element_by_name("name").send_keys("Melanie")
self.browser.find_element_by_name("email").send_keys("test@gmailzzz.com")
self.browser.find_element_by_name("phone_number").send_keys("6192222222")
carrier_dropdown = self.browser.find_element_by_name("carrier")
carrier_dropdown.find_element_by_css_selector("option[value='pixmbl.com']").click()
tz = self.browser.find_element_by_name("user_timezone")
tz.find_element_by_css_selector("option[value='PC']").click()
self.browser.find_element_by_name("password").send_keys("testpants")
with self.wait_for_page_load():
self.browser.find_element_by_css_selector("*[type=submit]").click()
assert len(mail.outbox) == 1
message = mail.outbox[0]
assert (
"Hey there, partner! Hold on to your hat, because you're about to get lots of happy."
in message.body
)
assert message.from_email == "Five Up <app44043297@heroku.com>"
assert message.to == [u"6192222222@pixmbl.com"]
assert message.subject == "FiveUp"
def test_registration_form_invalid_javascript(self):
"""
Test invalid email gives a warning message on screen. Done via javascript.
"""
with self.wait_for_page_load():
self.browser.get(self.live_server_url + "/")
self.browser.find_element_by_name("name").send_keys("Melanie")
self.browser.find_element_by_name("email").send_keys(
"cass"
) # this isn't an email address!
self.browser.find_element_by_name("phone_number").send_keys("6192222222")
carrier_dropdown = self.browser.find_element_by_name("carrier")
carrier_dropdown.find_element_by_css_selector("option[value='pixmbl.com']").click()
tz = self.browser.find_element_by_name("user_timezone")
tz.find_element_by_css_selector("option[value='PC']").click()
self.browser.find_element_by_name("password").send_keys("testpants")
# We don't wait on this click because the page won't actually refresh since
# the work is being done in javascript
self.browser.find_element_by_css_selector("*[type=submit]").click()
text = self.browser.find_element_by_tag_name("body").text
assert "Hmm. Is that a real email address? Try again." in text
assert User.objects.all().count() == 0
def test_registration_form_invalid_server_side(self):
"""
Test that a django-specific email error will toss us to the fallback
registration page.
"""
with self.wait_for_page_load():
self.browser.get(self.live_server_url + "/")
self.browser.find_element_by_name("name").send_keys("Melanie")
self.browser.find_element_by_name("email").send_keys(
"a@b.c"
) # this isn't an email address!
self.browser.find_element_by_name("phone_number").send_keys("6192222222")
carrier_dropdown = self.browser.find_element_by_name("carrier")
carrier_dropdown.find_element_by_css_selector("option[value='pixmbl.com']").click()
tz = self.browser.find_element_by_name("user_timezone")
tz.find_element_by_css_selector("option[value='PC']").click()
self.browser.find_element_by_name("password").send_keys("testpants")
with self.wait_for_page_load():
self.browser.find_element_by_css_selector("*[type=submit]").click()
assert self.browser.current_url == self.live_server_url + "/register/"
assert User.objects.all().count() == 0
def test_registration_with_get_method(self):
"""
A GET should give a blank registration form and you should be able
to submit the form.
"""
assert User.objects.all().count() == 0
with self.wait_for_page_load():
self.browser.get(self.live_server_url + "/register/")
self.browser.find_element_by_name("name").send_keys("Melanie")
self.browser.find_element_by_name("email").send_keys("test@gmailzzz.com")
self.browser.find_element_by_name("phone_number").send_keys("6192222222")
carrier_dropdown = self.browser.find_element_by_name("carrier")
carrier_dropdown.find_element_by_css_selector("option[value='pixmbl.com']").click()
tz = self.browser.find_element_by_name("user_timezone")
tz.find_element_by_css_selector("option[value='PC']").click()
self.browser.find_element_by_name("password").send_keys("testpants")
with self.wait_for_page_load():
self.browser.find_element_by_css_selector("*[type=submit]").click()
text = self.browser.find_element_by_tag_name("body").text
assert "Want some more happy?" in text
melanie = User.objects.all()[0]
assert melanie.name == "Melanie"
assert melanie.email == "test@gmailzzz.com"
assert melanie.phone_number == "6192222222"
assert melanie.carrier == "pixmbl.com"
assert melanie.user_timezone == "PC"
| 47.164384
| 97
| 0.674848
| 908
| 6,886
| 4.821586
| 0.169604
| 0.120603
| 0.142531
| 0.190955
| 0.788031
| 0.771128
| 0.771128
| 0.771128
| 0.771128
| 0.750571
| 0
| 0.017483
| 0.202585
| 6,886
| 145
| 98
| 47.489655
| 0.779822
| 0.080163
| 0
| 0.759615
| 0
| 0.009615
| 0.17477
| 0.028267
| 0
| 0
| 0
| 0
| 0.221154
| 1
| 0.048077
| false
| 0.048077
| 0.028846
| 0
| 0.086538
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3bdcb601e6c1ee1fc52b4efa6ef3309a42b2e246
| 300
|
py
|
Python
|
halotools/mock_observables/pairwise_velocities/engines/__init__.py
|
pllim/halotools
|
6499cff09e7e0f169e4f425ee265403f6be816e8
|
[
"BSD-3-Clause"
] | 83
|
2015-01-15T14:54:16.000Z
|
2021-12-09T11:28:02.000Z
|
halotools/mock_observables/pairwise_velocities/engines/__init__.py
|
pllim/halotools
|
6499cff09e7e0f169e4f425ee265403f6be816e8
|
[
"BSD-3-Clause"
] | 579
|
2015-01-14T15:57:37.000Z
|
2022-01-13T18:58:44.000Z
|
halotools/mock_observables/pairwise_velocities/engines/__init__.py
|
pllim/halotools
|
6499cff09e7e0f169e4f425ee265403f6be816e8
|
[
"BSD-3-Clause"
] | 70
|
2015-01-14T15:15:58.000Z
|
2021-12-22T18:18:31.000Z
|
from .velocity_marked_npairs_3d_engine import velocity_marked_npairs_3d_engine
from .velocity_marked_npairs_xy_z_engine import velocity_marked_npairs_xy_z_engine
from .mean_radial_velocity_vs_r_engine import mean_radial_velocity_vs_r_engine
from .radial_pvd_vs_r_engine import radial_pvd_vs_r_engine
| 60
| 82
| 0.933333
| 52
| 300
| 4.692308
| 0.269231
| 0.229508
| 0.327869
| 0.196721
| 0.885246
| 0.459016
| 0
| 0
| 0
| 0
| 0
| 0.007042
| 0.053333
| 300
| 4
| 83
| 75
| 0.852113
| 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
| 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
|
3bedd08678af9bcc5758a1bbd6525517c10d42da
| 604
|
py
|
Python
|
generated_code_examples/python/classification/linear.py
|
bcampbell-prosper/m2cgen
|
cc049fe5cd7060c2f0cd5a0331e3aa85fac2a336
|
[
"MIT"
] | 3
|
2021-06-29T02:43:40.000Z
|
2022-03-28T07:41:59.000Z
|
generated_code_examples/python/classification/linear.py
|
arshamg/m2cgen
|
0769fe0bb25e2bd7dd82062265d8a9a5989f089f
|
[
"MIT"
] | null | null | null |
generated_code_examples/python/classification/linear.py
|
arshamg/m2cgen
|
0769fe0bb25e2bd7dd82062265d8a9a5989f089f
|
[
"MIT"
] | 3
|
2021-08-06T07:51:37.000Z
|
2022-03-28T07:41:42.000Z
|
import numpy as np
def score(input):
return np.asarray([((((0.26145874358806076) + ((input[0]) * (0.4247411605356963))) + ((input[1]) * (1.3963906033045022))) + ((input[2]) * (-2.215054318516674))) + ((input[3]) * (-0.9587396176450291)), ((((1.1348839223808753) + ((input[0]) * (0.25679659769994584))) + ((input[1]) * (-1.3904789369835584))) + ((input[2]) * (0.5966830233112762))) + ((input[3]) * (-1.269002272638834)), ((((-1.216280201256021) + ((input[0]) * (-1.635776698917701))) + ((input[1]) * (-1.504063872842283))) + ((input[2]) * (2.4278359331292623))) + ((input[3]) * (2.346931069336734))])
| 151
| 566
| 0.60596
| 64
| 604
| 5.71875
| 0.4375
| 0.04918
| 0.057377
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.48524
| 0.102649
| 604
| 3
| 567
| 201.333333
| 0.190037
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 7
|
ce01bb5b3c7e3400facb70a11d599bc2bb8995cd
| 45,149
|
py
|
Python
|
tests/product_advertising_api/data.py
|
gomberg5264/django-amazon-price-monitor
|
c45d9f48a5bf429bfe696fcd9fc3f41f388bac2d
|
[
"MIT"
] | 150
|
2015-03-17T19:27:46.000Z
|
2022-02-04T10:03:26.000Z
|
tests/product_advertising_api/data.py
|
rozifus/django-amazon-price-monitor
|
c45d9f48a5bf429bfe696fcd9fc3f41f388bac2d
|
[
"MIT"
] | 81
|
2015-01-28T16:42:49.000Z
|
2018-10-07T11:48:19.000Z
|
tests/product_advertising_api/data.py
|
rozifus/django-amazon-price-monitor
|
c45d9f48a5bf429bfe696fcd9fc3f41f388bac2d
|
[
"MIT"
] | 41
|
2015-02-10T20:34:14.000Z
|
2021-11-01T06:51:26.000Z
|
product_sample_lookup_fail = """
<?xml version="1.0" ?>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>False</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN01</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
</items>
</itemlookupresponse>
"""
product_sample_no_item = """
<?xml version="1.0" ?>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN02</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
</items>
</itemlookupresponse>
"""
product_sample_ok = """
<?xml version="1.0" ?>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN03</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>DEMOASIN03</asin>
<itemattributes>
<title>Demo Series - Season 2 [Blu-ray]</title>
<binding>Blu-ray</binding>
<publicationdate>2014-12-22</publicationdate>
<releasedate>2014-12-22</releasedate>
<audiencerating>Freigegeben ab 16 Jahren</audiencerating>
</itemattributes>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN03IMAGE._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">59</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN03IMAGE._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">126</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN03IMAGE.jpg</url>
<height units="pixels">500</height>
<width units="pixels">393</width>
</largeimage>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>1799</amount>
<currencycode>EUR</currencycode>
<formattedprice>EUR 17,99</formattedprice>
</price>
</offerlisting>
</offer>
</offers>
</item>
</items>
</itemlookupresponse>
"""
product_sample_no_images = """
<?xml version="1.0" ?>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN03</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>DEMOASIN03</asin>
<itemattributes>
<title>Demo Series - Season 2 [Blu-ray]</title>
<binding>Blu-ray</binding>
<publicationdate>2014-12-22</publicationdate>
<releasedate>2014-12-22</releasedate>
<audiencerating>Freigegeben ab 16 Jahren</audiencerating>
</itemattributes>
<smallimage>
</smallimage>
<mediumimage>
</mediumimage>
<largeimage>
</largeimage>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>1799</amount>
<currencycode>EUR</currencycode>
<formattedprice>EUR 17,99</formattedprice>
</price>
</offerlisting>
</offer>
</offers>
</item>
</items>
</itemlookupresponse>
"""
product_sample_no_price = """
<?xml version="1.0" ?>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN04</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>DEMOASIN04</asin>
<itemattributes>
<title>Another Demo Series - Season 1 (8 DVDs)</title>
<binding>DVD</binding>
<publicationdate>2004-11</publicationdate>
<releasedate>2004-10-27</releasedate>
<audiencerating>Freigegeben ab 16 Jahren</audiencerating>
</itemattributes>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN04IMAGE._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">59</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN04IMAGE._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">126</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN04IMAGE.jpg</url>
<height units="pixels">500</height>
<width units="pixels">393</width>
</largeimage>
<offers>
<totaloffers>0</totaloffers>
<totalofferpages>0</totalofferpages>
<moreoffersurl>0</moreoffersurl>
</offers>
</item>
</items>
</itemlookupresponse>
"""
product_sample_no_audience_rating = """
<?xml version="1.0" ?>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>123456789X</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>123456789X</asin>
<itemattributes>
<title>A Sample Book</title>
<binding>Taschenbuch</binding>
<publicationdate>2014-08-18</publicationdate>
<releasedate>2014-08-18</releasedate>
<ean>9876543219876</ean>
<eanlist>
<eanlistelement>9876543219876</eanlistelement>
</eanlist>
<isbn>123456789X</isbn>
</itemattributes>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/123456789XIMAGE._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">59</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/123456789XIMAGE._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">126</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/123456789XIMAGE.jpg</url>
<height units="pixels">500</height>
<width units="pixels">393</width>
</largeimage>
<offers>
<totaloffers>1</totaloffers>
<totalofferpages>1</totalofferpages>
<offer>
<offerattributes>
<condition>New</condition>
</offerattributes>
<offerlisting>
<offerlistingid>SAMPLEOFFERLISTINGID</offerlistingid>
<price>
<amount>1000</amount>
<currencycode>EUR</currencycode>
<formattedprice>EUR 10,00</formattedprice>
</price>
<availability>Gewöhnlich versandfertig in 24 Stunden</availability>
<availabilityattributes>
<availabilitytype>now</availabilitytype>
<minimumhours>0</minimumhours>
<maximumhours>0</maximumhours>
</availabilityattributes>
<iseligibleforsupersavershipping>1</iseligibleforsupersavershipping>
</offerlisting>
</offer>
</offers>
</item>
</items>
</itemlookupresponse>
"""
product_sample_no_offers = """
<?xml version="1.0" ?>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN05</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>DEMOASIN05</asin>
<itemattributes>
<title>Sønderzeichen</title>
<binding>Kindle Edition</binding>
<publicationdate>2009-10-14</publicationdate>
<releasedate>2009-10-14</releasedate>
</itemattributes>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN05IMAGE._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">59</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN05IMAGE._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">126</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN05IMAGE.jpg</url>
<height units="pixels">500</height>
<width units="pixels">393</width>
</largeimage>
</item>
</items>
</itemlookupresponse>
"""
product_sample_10_products = """
<html>
<body>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN06</itemid>
<itemid>DEMOASIN07</itemid>
<itemid>DEMOASIN08</itemid>
<itemid>DEMOASIN09</itemid>
<itemid>DEMOASIN10</itemid>
<itemid>DEMOASIN11</itemid>
<itemid>DEMOASIN12</itemid>
<itemid>DEMOASIN13</itemid>
<itemid>DEMOASIN14</itemid>
<itemid>DEMOASIN15</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>DEMOASIN06</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN06._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">53</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN06._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">113</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN06.jpg</url>
<height units="pixels">500</height>
<width units="pixels">354</width>
</largeimage>
<itemattributes>
<audiencerating>Freigegeben ab 12 Jahren</audiencerating>
<binding>DVD</binding>
<publicationdate>2012-10-05</publicationdate>
<releasedate>2008-11-07</releasedate>
<title>Hot Shots! - Teil 1 + Teil 2 [2 DVDs]</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>799</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN07</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN07._SL75_.jpg</url>
<height units="pixels">74</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN07._SL160_.jpg</url>
<height units="pixels">159</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN07.jpg</url>
<height units="pixels">496</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<binding>Audio CD</binding>
<releasedate>2004-06-14</releasedate>
<title>Greatest Hits</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>740</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN08</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN08._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN08._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN08.jpg</url>
<height units="pixels">500</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<binding>Audio CD</binding>
<publicationdate>2004-07-19</publicationdate>
<releasedate>2004-07-19</releasedate>
<title>Tyrannosaurus Hives</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>699</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN09</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN09._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">53</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN09._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">113</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN09.jpg</url>
<height units="pixels">475</height>
<width units="pixels">336</width>
</largeimage>
<itemattributes>
<audiencerating>Freigegeben ab 6 Jahren</audiencerating>
<binding>DVD</binding>
<releasedate>2004-08-01</releasedate>
<title>Moonlight & Valentino</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>2297</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN10</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN10._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">56</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN10._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">120</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN10.jpg</url>
<height units="pixels">475</height>
<width units="pixels">356</width>
</largeimage>
<itemattributes>
<audiencerating>Freigegeben ab 16 Jahren</audiencerating>
<binding>DVD</binding>
<releasedate>2004-09-07</releasedate>
<title>Jeepers Creepers 1 & 2 [Deluxe Edition] [4 DVDs]</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>1549</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN11</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN11._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN11._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN11.jpg</url>
<height units="pixels">500</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<binding>Audio CD</binding>
<publicationdate>2004-10-05</publicationdate>
<releasedate>2004-09-13</releasedate>
<title>Wintersun</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>2199</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN12</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN12._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">56</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN12._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">120</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN12.jpg</url>
<height units="pixels">475</height>
<width units="pixels">356</width>
</largeimage>
<itemattributes>
<audiencerating>Freigegeben ab 16 Jahren</audiencerating>
<binding>DVD</binding>
<publicationdate>2004-11</publicationdate>
<releasedate>2004-10-27</releasedate>
<title>Farscape - Season 1 (8 DVDs)</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>5999</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN13</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN13._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN13._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN13.jpg</url>
<height units="pixels">500</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<audiencerating>Freigegeben ohne Altersbeschränkung</audiencerating>
<binding>Audio CD</binding>
<releasedate>2005-01-21</releasedate>
<title>Hurricane Bar</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>499</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN14</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN14._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN14._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN14.jpg</url>
<height units="pixels">500</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<binding>Audio CD</binding>
<releasedate>2007-01-02</releasedate>
<title>Silent Alarm</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>1186</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN15</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN15._SL75_.jpg</url>
<height units="pixels">67</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN15._SL160_.jpg</url>
<height units="pixels">144</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN15.jpg</url>
<height units="pixels">449</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<binding>Audio CD</binding>
<publicationdate>2005</publicationdate>
<releasedate>2005-02-07</releasedate>
<title>Greatest Hits</title>
</itemattributes>
<offers>
<totaloffers>1</totaloffers>
<offer>
<offerlisting>
<price>
<amount>899</amount>
<currencycode>EUR</currencycode>
</price>
</offerlisting>
</offer>
</offers>
</item>
</items>
</itemlookupresponse>
</body>
</html>
"""
product_sample_3_products = """
<html>
<body>
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN16</itemid>
<itemid>DEMOASIN17</itemid>
<itemid>DEMOASIN18</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>DEMOASIN16</asin>
<itemattributes>
<title>Another Demo Series - Season 1 (8 DVDs)</title>
<binding>DVD</binding>
<publicationdate>2004-11</publicationdate>
<releasedate>2004-10-27</releasedate>
<audiencerating>Freigegeben ab 16 Jahren</audiencerating>
</itemattributes>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN16._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">59</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN16._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">126</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN16.jpg</url>
<height units="pixels">500</height>
<width units="pixels">393</width>
</largeimage>
<offers>
<totaloffers>0</totaloffers>
<totalofferpages>0</totalofferpages>
<moreoffersurl>0</moreoffersurl>
</offers>
</item>
<item>
<asin>DEMOASIN17</asin>
<itemattributes>
<title>A Sample Book</title>
<binding>Taschenbuch</binding>
<publicationdate>2014-08-18</publicationdate>
<releasedate>2014-08-18</releasedate>
<ean>9876543219876</ean>
<eanlist>
<eanlistelement>9876543219876</eanlistelement>
</eanlist>
<isbn>123456789X</isbn>
</itemattributes>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN17._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">59</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN17._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">126</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN17.jpg</url>
<height units="pixels">500</height>
<width units="pixels">393</width>
</largeimage>
<offers>
<totaloffers>1</totaloffers>
<totalofferpages>1</totalofferpages>
<offer>
<offerattributes>
<condition>New</condition>
</offerattributes>
<offerlisting>
<offerlistingid>SAMPLEOFFERLISTINGID</offerlistingid>
<price>
<amount>1000</amount>
<currencycode>EUR</currencycode>
<formattedprice>EUR 10,00</formattedprice>
</price>
<availability>Gewöhnlich versandfertig in 24 Stunden</availability>
<availabilityattributes>
<availabilitytype>now</availabilitytype>
<minimumhours>0</minimumhours>
<maximumhours>0</maximumhours>
</availabilityattributes>
<iseligibleforsupersavershipping>1</iseligibleforsupersavershipping>
</offerlisting>
</offer>
</offers>
</item>
<item>
<asin>DEMOASIN18</asin>
<itemattributes>
<title>Sønderzeichen</title>
<binding>Kindle Edition</binding>
<publicationdate>2009-10-14</publicationdate>
<releasedate>2009-10-14</releasedate>
</itemattributes>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN18._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">59</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN18._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">126</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN18.jpg</url>
<height units="pixels">500</height>
<width units="pixels">393</width>
</largeimage>
</item>
</items>
</itemlookupresponse>
</body>
</html>
"""
product_sample_with_artist = """
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>DEMOASIN19</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>DEMOASIN19</asin>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN19._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN19._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/DEMOASIN19.jpg</url>
<height units="pixels">500</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<artist>The Artist</artist>
<binding>Audio CD</binding>
<brand>SOME BRAND</brand>
<feature>CD Album</feature>
<feature>herausgegeben 2015 in Europa von SOME BRAND (SOMEBRAND123)</feature>
<feature>Musikstil: Rock / Alternative Rock</feature>
<format>CD</format>
<itemdimensions>
<height units="hundredths-inches">50</height>
<length units="hundredths-inches">500</length>
<width units="hundredths-inches">550</width>
</itemdimensions>
<label>SOME BRAND (SOME COMPANY)</label>
<languages>
<language>
<name>Englisch</name>
<type>Unbekannt</type>
</language>
</languages>
<manufacturer>SOME BRAND (SOME COMPANY)</manufacturer>
<mpn>SBR1234567</mpn>
<numberofdiscs>1</numberofdiscs>
<numberofitems>1</numberofitems>
<packagedimensions>
<height units="hundredths-inches">31</height>
<length units="hundredths-inches">551</length>
<weight units="hundredths-pounds">18</weight>
<width units="hundredths-inches">512</width>
</packagedimensions>
<packagequantity>1</packagequantity>
<partnumber>SBR1234567</partnumber>
<productgroup>Music</productgroup>
<producttypename>SOME BRAND (SOME COMPANY)</producttypename>
<publicationdate>2015</publicationdate>
<publisher>SOME BRAND (SOME COMPANY)</publisher>
<releasedate>2015-02-27</releasedate>
<studio>SOME BRAND (SOME COMPANY)</studio>
<title>The CD Title</title>
<upc>1234567879012</upc>
<upclist>
<upclistelement>1234567879012</upclistelement>
</upclist>
</itemattributes>
<offersummary>
<lowestnewprice>
<amount>747</amount>
<currencycode>EUR</currencycode>
<formattedprice>EUR 7,47</formattedprice>
</lowestnewprice>
<lowestusedprice>
<amount>901</amount>
<currencycode>EUR</currencycode>
<formattedprice>EUR 9,01</formattedprice>
</lowestusedprice>
<totalnew>94</totalnew>
<totalused>3</totalused>
<totalcollectible>0</totalcollectible>
<totalrefurbished>0</totalrefurbished>
</offersummary>
<offers>
<totaloffers>1</totaloffers>
<totalofferpages>1</totalofferpages>
<offer>
<offerattributes>
<condition>New</condition>
</offerattributes>
<offerlisting>
<offerlistingid>SAMPELOFFERLISTINGID</offerlistingid>
<price>
<amount>1299</amount>
<currencycode>EUR</currencycode>
<formattedprice>EUR 12,99</formattedprice>
</price>
<availability>Gewöhnlich versandfertig in 24 Stunden</availability>
<availabilityattributes>
<availabilitytype>now</availabilitytype>
<minimumhours>0</minimumhours>
<maximumhours>0</maximumhours>
</availabilityattributes>
<iseligibleforsupersavershipping>1</iseligibleforsupersavershipping>
<iseligibleforprime>1</iseligibleforprime>
</offerlisting>
</offer>
</offers>
<tracks>
<disc number="1">
<track number="1">Title 1</track>
<track number="2">Title 2</track>
<track number="3">Title 3</track>
<track number="4">Title 4</track>
<track number="5">Title 5</track>
</disc>
</tracks>
</item>
</items>
</itemlookupresponse>
"""
# a product with an ISBN-13 in the ISBN-10 field, see issue https://github.com/ponyriders/django-amazon-price-monitor/issues/121
product_sample_isbn_issue = """
<itemlookupresponse xmlns="http://webservices.amazon.com/AWSECommerceService/2013-08-01">
<items>
<request>
<isvalid>True</isvalid>
<itemlookuprequest>
<idtype>ASIN</idtype>
<itemid>TESTASIN20</itemid>
<responsegroup>Large</responsegroup>
<variationpage>All</variationpage>
</itemlookuprequest>
</request>
<item>
<asin>TESTASIN20</asin>
<salesrank>2</salesrank>
<smallimage>
<url>http://ecx.images-amazon.com/images/I/TESTASIN20._SL75_.jpg</url>
<height units="pixels">75</height>
<width units="pixels">75</width>
</smallimage>
<mediumimage>
<url>http://ecx.images-amazon.com/images/I/TESTASIN20._SL160_.jpg</url>
<height units="pixels">160</height>
<width units="pixels">160</width>
</mediumimage>
<largeimage>
<url>http://ecx.images-amazon.com/images/I/TESTASIN20.jpg</url>
<height units="pixels">500</height>
<width units="pixels">500</width>
</largeimage>
<itemattributes>
<actor>John Doe</actor>
<actor>Jane Doe</actor>
<aspectratio>2.39:1</aspectratio>
<audiencerating>Freigegeben ab 16 Jahren</audiencerating>
<binding>Blu-ray</binding>
<brand>Test Distribution Company</brand>
<creator role="Hauptdarsteller">John Doe</creator>
<creator role="Hauptdarsteller">Jane Doe</creator>
<director>John Director</director>
<ean>1234567890123</ean>
<eanlist>
<eanlistelement>1234567890123</eanlistelement>
</eanlist>
<edition>Standard Edition</edition>
<format>Letterboxed</format>
<format>Widescreen</format>
<isbn>1234567890123</isbn>
<label>Test Label Company</label>
<manufacturer>Test Manufacturer Company</manufacturer>
<mpn>12345678</mpn>
<numberofdiscs>2</numberofdiscs>
<numberofitems>2</numberofitems>
<packagedimensions>
<height units="Hundertstel Zoll">39</height>
<length units="Hundertstel Zoll">669</length>
<weight units="Hundertstel Pfund">18</weight>
<width units="Hundertstel Zoll">528</width>
</packagedimensions>
<partnumber>12345678</partnumber>
<productgroup>DVD & Blu-ray</productgroup>
<producttypename>ABIS_BOOK</producttypename>
<publicationdate>2018-09-27</publicationdate>
<publisher>Test Publisher Company</publisher>
<regioncode>2</regioncode>
<releasedate>2018-09-27</releasedate>
<runningtime units="Minuten">119</runningtime>
<studio>Test Studio Company</studio>
<title>The ISDN Test Product</title>
</itemattributes>
</item>
</items>
</itemlookupresponse>
"""
| 44.969124
| 128
| 0.451727
| 3,175
| 45,149
| 6.388976
| 0.105512
| 0.061819
| 0.0281
| 0.044959
| 0.805965
| 0.7965
| 0.772936
| 0.758541
| 0.758541
| 0.720335
| 0
| 0.054879
| 0.435779
| 45,149
| 1,003
| 129
| 45.013958
| 0.741423
| 0.002791
| 1
| 0.748739
| 0
| 0.057518
| 0.991271
| 0.265832
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
ce069649137a900edaa68903afdbfb38aea17b74
| 39,716
|
py
|
Python
|
src/v5.1/resources/swagger_client/api/student_parent_associations_api.py
|
xmarcosx/edfi-notebook
|
0564ebdf1d0f45a9d25056e7e61369f0a837534d
|
[
"Apache-2.0"
] | 2
|
2021-04-27T17:18:17.000Z
|
2021-04-27T19:14:39.000Z
|
src/v5.1/resources/swagger_client/api/student_parent_associations_api.py
|
xmarcosx/edfi-notebook
|
0564ebdf1d0f45a9d25056e7e61369f0a837534d
|
[
"Apache-2.0"
] | null | null | null |
src/v5.1/resources/swagger_client/api/student_parent_associations_api.py
|
xmarcosx/edfi-notebook
|
0564ebdf1d0f45a9d25056e7e61369f0a837534d
|
[
"Apache-2.0"
] | 1
|
2022-01-06T09:43:11.000Z
|
2022-01-06T09:43:11.000Z
|
# coding: utf-8
"""
Ed-Fi Operational Data Store API
The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reasonable safeguards against cross-site scripting attacks and other malicious content, but the platform does not and cannot guarantee that the data it contains is free of all potentially harmful content.* *** # noqa: E501
OpenAPI spec version: 3
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 swagger_client.api_client import ApiClient
class StudentParentAssociationsApi(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 delete_student_parent_association_by_id(self, id, **kwargs): # noqa: E501
"""Deletes an existing resource using the resource identifier. # noqa: E501
The DELETE operation is used to delete an existing resource by identifier. If the resource doesn't exist, an error will result (the resource will not be found). # 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_student_parent_association_by_id(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: A resource identifier that uniquely identifies the resource. (required)
:param str if_match: The ETag header value used to prevent the DELETE from removing a resource modified by another consumer.
: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_student_parent_association_by_id_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_student_parent_association_by_id_with_http_info(id, **kwargs) # noqa: E501
return data
def delete_student_parent_association_by_id_with_http_info(self, id, **kwargs): # noqa: E501
"""Deletes an existing resource using the resource identifier. # noqa: E501
The DELETE operation is used to delete an existing resource by identifier. If the resource doesn't exist, an error will result (the resource will not be found). # 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_student_parent_association_by_id_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: A resource identifier that uniquely identifies the resource. (required)
:param str if_match: The ETag header value used to prevent the DELETE from removing a resource modified by another consumer.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'if_match'] # 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_student_parent_association_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_student_parent_association_by_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'if_match' in params:
header_params['If-Match'] = params['if_match'] # 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 = ['oauth2_client_credentials'] # noqa: E501
return self.api_client.call_api(
'/ed-fi/studentParentAssociations/{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 deletes_student_parent_associations(self, **kwargs): # noqa: E501
"""Retrieves deleted resources based on change version. # noqa: E501
The DELETES operation is used to retrieve deleted resources. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.deletes_student_parent_associations(async_req=True)
>>> result = thread.get()
:param async_req bool
:param int offset: Indicates how many items should be skipped before returning results.
:param int limit: Indicates the maximum number of items that should be returned in the results.
:param int min_change_version: Used in synchronization to set sequence minimum ChangeVersion
:param int max_change_version: Used in synchronization to set sequence maximum ChangeVersion
:return: list[EdFiStudentParentAssociation]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.deletes_student_parent_associations_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.deletes_student_parent_associations_with_http_info(**kwargs) # noqa: E501
return data
def deletes_student_parent_associations_with_http_info(self, **kwargs): # noqa: E501
"""Retrieves deleted resources based on change version. # noqa: E501
The DELETES operation is used to retrieve deleted resources. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.deletes_student_parent_associations_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param int offset: Indicates how many items should be skipped before returning results.
:param int limit: Indicates the maximum number of items that should be returned in the results.
:param int min_change_version: Used in synchronization to set sequence minimum ChangeVersion
:param int max_change_version: Used in synchronization to set sequence maximum ChangeVersion
:return: list[EdFiStudentParentAssociation]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['offset', 'limit', 'min_change_version', 'max_change_version'] # 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 deletes_student_parent_associations" % key
)
params[key] = val
del params['kwargs']
if self.api_client.client_side_validation and ('limit' in params and params['limit'] > 500): # noqa: E501
raise ValueError("Invalid value for parameter `limit` when calling `deletes_student_parent_associations`, must be a value less than or equal to `500`") # noqa: E501
if self.api_client.client_side_validation and ('limit' in params and params['limit'] < 0): # noqa: E501
raise ValueError("Invalid value for parameter `limit` when calling `deletes_student_parent_associations`, must be a value greater than or equal to `0`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
if 'offset' in params:
query_params.append(('offset', params['offset'])) # noqa: E501
if 'limit' in params:
query_params.append(('limit', params['limit'])) # noqa: E501
if 'min_change_version' in params:
query_params.append(('minChangeVersion', params['min_change_version'])) # noqa: E501
if 'max_change_version' in params:
query_params.append(('maxChangeVersion', params['max_change_version'])) # noqa: E501
header_params = {}
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 = ['oauth2_client_credentials'] # noqa: E501
return self.api_client.call_api(
'/ed-fi/studentParentAssociations/deletes', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EdFiStudentParentAssociation]', # 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_student_parent_associations(self, **kwargs): # noqa: E501
"""Retrieves specific resources using the resource's property values (using the \"Get\" pattern). # noqa: E501
This GET operation provides access to resources using the \"Get\" search pattern. The values of any properties of the resource that are specified will be used to return all matching results (if it exists). # 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_student_parent_associations(async_req=True)
>>> result = thread.get()
:param async_req bool
:param int offset: Indicates how many items should be skipped before returning results.
:param int limit: Indicates the maximum number of items that should be returned in the results.
:param int min_change_version: Used in synchronization to set sequence minimum ChangeVersion
:param int max_change_version: Used in synchronization to set sequence maximum ChangeVersion
:param bool total_count: Indicates if the total number of items available should be returned in the 'Total-Count' header of the response. If set to false, 'Total-Count' header will not be provided.
:param str parent_unique_id: A unique alphanumeric code assigned to a parent.
:param str student_unique_id: A unique alphanumeric code assigned to a student.
:param str relation_descriptor: The nature of an individual's relationship to a student; for example: Father, Mother, Step Father, Step Mother, Foster Father, Foster Mother, Guardian, etc.
:param int contact_priority: The numeric order of the preferred sequence or priority of contact.
:param str contact_restrictions: Restrictions for student and/or teacher contact with the individual (e.g., the student may not be picked up by the individual).
:param bool emergency_contact_status: Indicator of whether the person is a designated emergency contact for the Student.
:param str id:
:param bool lives_with: Indicator of whether the Student lives with the associated parent.
:param bool primary_contact_status: Indicator of whether the person is a primary parental contact for the Student.
:return: list[EdFiStudentParentAssociation]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_student_parent_associations_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_student_parent_associations_with_http_info(**kwargs) # noqa: E501
return data
def get_student_parent_associations_with_http_info(self, **kwargs): # noqa: E501
"""Retrieves specific resources using the resource's property values (using the \"Get\" pattern). # noqa: E501
This GET operation provides access to resources using the \"Get\" search pattern. The values of any properties of the resource that are specified will be used to return all matching results (if it exists). # 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_student_parent_associations_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param int offset: Indicates how many items should be skipped before returning results.
:param int limit: Indicates the maximum number of items that should be returned in the results.
:param int min_change_version: Used in synchronization to set sequence minimum ChangeVersion
:param int max_change_version: Used in synchronization to set sequence maximum ChangeVersion
:param bool total_count: Indicates if the total number of items available should be returned in the 'Total-Count' header of the response. If set to false, 'Total-Count' header will not be provided.
:param str parent_unique_id: A unique alphanumeric code assigned to a parent.
:param str student_unique_id: A unique alphanumeric code assigned to a student.
:param str relation_descriptor: The nature of an individual's relationship to a student; for example: Father, Mother, Step Father, Step Mother, Foster Father, Foster Mother, Guardian, etc.
:param int contact_priority: The numeric order of the preferred sequence or priority of contact.
:param str contact_restrictions: Restrictions for student and/or teacher contact with the individual (e.g., the student may not be picked up by the individual).
:param bool emergency_contact_status: Indicator of whether the person is a designated emergency contact for the Student.
:param str id:
:param bool lives_with: Indicator of whether the Student lives with the associated parent.
:param bool primary_contact_status: Indicator of whether the person is a primary parental contact for the Student.
:return: list[EdFiStudentParentAssociation]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['offset', 'limit', 'min_change_version', 'max_change_version', 'total_count', 'parent_unique_id', 'student_unique_id', 'relation_descriptor', 'contact_priority', 'contact_restrictions', 'emergency_contact_status', 'id', 'lives_with', 'primary_contact_status'] # 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_student_parent_associations" % key
)
params[key] = val
del params['kwargs']
if self.api_client.client_side_validation and ('limit' in params and params['limit'] > 500): # noqa: E501
raise ValueError("Invalid value for parameter `limit` when calling `get_student_parent_associations`, must be a value less than or equal to `500`") # noqa: E501
if self.api_client.client_side_validation and ('limit' in params and params['limit'] < 0): # noqa: E501
raise ValueError("Invalid value for parameter `limit` when calling `get_student_parent_associations`, must be a value greater than or equal to `0`") # noqa: E501
if self.api_client.client_side_validation and ('parent_unique_id' in params and
len(params['parent_unique_id']) > 32):
raise ValueError("Invalid value for parameter `parent_unique_id` when calling `get_student_parent_associations`, length must be less than or equal to `32`") # noqa: E501
if self.api_client.client_side_validation and ('student_unique_id' in params and
len(params['student_unique_id']) > 32):
raise ValueError("Invalid value for parameter `student_unique_id` when calling `get_student_parent_associations`, length must be less than or equal to `32`") # noqa: E501
if self.api_client.client_side_validation and ('relation_descriptor' in params and
len(params['relation_descriptor']) > 306):
raise ValueError("Invalid value for parameter `relation_descriptor` when calling `get_student_parent_associations`, length must be less than or equal to `306`") # noqa: E501
if self.api_client.client_side_validation and ('contact_restrictions' in params and
len(params['contact_restrictions']) > 250):
raise ValueError("Invalid value for parameter `contact_restrictions` when calling `get_student_parent_associations`, length must be less than or equal to `250`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
if 'offset' in params:
query_params.append(('offset', params['offset'])) # noqa: E501
if 'limit' in params:
query_params.append(('limit', params['limit'])) # noqa: E501
if 'min_change_version' in params:
query_params.append(('minChangeVersion', params['min_change_version'])) # noqa: E501
if 'max_change_version' in params:
query_params.append(('maxChangeVersion', params['max_change_version'])) # noqa: E501
if 'total_count' in params:
query_params.append(('totalCount', params['total_count'])) # noqa: E501
if 'parent_unique_id' in params:
query_params.append(('parentUniqueId', params['parent_unique_id'])) # noqa: E501
if 'student_unique_id' in params:
query_params.append(('studentUniqueId', params['student_unique_id'])) # noqa: E501
if 'relation_descriptor' in params:
query_params.append(('relationDescriptor', params['relation_descriptor'])) # noqa: E501
if 'contact_priority' in params:
query_params.append(('contactPriority', params['contact_priority'])) # noqa: E501
if 'contact_restrictions' in params:
query_params.append(('contactRestrictions', params['contact_restrictions'])) # noqa: E501
if 'emergency_contact_status' in params:
query_params.append(('emergencyContactStatus', params['emergency_contact_status'])) # noqa: E501
if 'id' in params:
query_params.append(('id', params['id'])) # noqa: E501
if 'lives_with' in params:
query_params.append(('livesWith', params['lives_with'])) # noqa: E501
if 'primary_contact_status' in params:
query_params.append(('primaryContactStatus', params['primary_contact_status'])) # noqa: E501
header_params = {}
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 = ['oauth2_client_credentials'] # noqa: E501
return self.api_client.call_api(
'/ed-fi/studentParentAssociations', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[EdFiStudentParentAssociation]', # 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_student_parent_associations_by_id(self, id, **kwargs): # noqa: E501
"""Retrieves a specific resource using the resource's identifier (using the \"Get By Id\" pattern). # noqa: E501
This GET operation retrieves a resource by the specified resource identifier. # 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_student_parent_associations_by_id(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: A resource identifier that uniquely identifies the resource. (required)
:param str if_none_match: The previously returned ETag header value, used here to prevent the unnecessary data transfer of an unchanged resource.
:return: EdFiStudentParentAssociation
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_student_parent_associations_by_id_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_student_parent_associations_by_id_with_http_info(id, **kwargs) # noqa: E501
return data
def get_student_parent_associations_by_id_with_http_info(self, id, **kwargs): # noqa: E501
"""Retrieves a specific resource using the resource's identifier (using the \"Get By Id\" pattern). # noqa: E501
This GET operation retrieves a resource by the specified resource identifier. # 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_student_parent_associations_by_id_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: A resource identifier that uniquely identifies the resource. (required)
:param str if_none_match: The previously returned ETag header value, used here to prevent the unnecessary data transfer of an unchanged resource.
:return: EdFiStudentParentAssociation
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'if_none_match'] # 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_student_parent_associations_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_student_parent_associations_by_id`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'if_none_match' in params:
header_params['If-None-Match'] = params['if_none_match'] # 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 = ['oauth2_client_credentials'] # noqa: E501
return self.api_client.call_api(
'/ed-fi/studentParentAssociations/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='EdFiStudentParentAssociation', # 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 post_student_parent_association(self, student_parent_association, **kwargs): # noqa: E501
"""Creates or updates resources based on the natural key values of the supplied resource. # noqa: E501
The POST operation can be used to create or update resources. In database terms, this is often referred to as an \"upsert\" operation (insert + update). Clients should NOT include the resource \"id\" in the JSON body because it will result in an error (you must use a PUT operation to update a resource by \"id\"). The web service will identify whether the resource already exists based on the natural key values provided, and update or create the resource appropriately. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_student_parent_association(student_parent_association, async_req=True)
>>> result = thread.get()
:param async_req bool
:param EdFiStudentParentAssociation student_parent_association: The JSON representation of the \"studentParentAssociation\" resource to be created or updated. (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.post_student_parent_association_with_http_info(student_parent_association, **kwargs) # noqa: E501
else:
(data) = self.post_student_parent_association_with_http_info(student_parent_association, **kwargs) # noqa: E501
return data
def post_student_parent_association_with_http_info(self, student_parent_association, **kwargs): # noqa: E501
"""Creates or updates resources based on the natural key values of the supplied resource. # noqa: E501
The POST operation can be used to create or update resources. In database terms, this is often referred to as an \"upsert\" operation (insert + update). Clients should NOT include the resource \"id\" in the JSON body because it will result in an error (you must use a PUT operation to update a resource by \"id\"). The web service will identify whether the resource already exists based on the natural key values provided, and update or create the resource appropriately. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.post_student_parent_association_with_http_info(student_parent_association, async_req=True)
>>> result = thread.get()
:param async_req bool
:param EdFiStudentParentAssociation student_parent_association: The JSON representation of the \"studentParentAssociation\" resource to be created or updated. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['student_parent_association'] # 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 post_student_parent_association" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'student_parent_association' is set
if self.api_client.client_side_validation and ('student_parent_association' not in params or
params['student_parent_association'] is None): # noqa: E501
raise ValueError("Missing the required parameter `student_parent_association` when calling `post_student_parent_association`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'student_parent_association' in params:
body_params = params['student_parent_association']
# 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 = ['oauth2_client_credentials'] # noqa: E501
return self.api_client.call_api(
'/ed-fi/studentParentAssociations', 'POST',
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 put_student_parent_association(self, id, student_parent_association, **kwargs): # noqa: E501
"""Updates or creates a resource based on the resource identifier. # noqa: E501
The PUT operation is used to update or create a resource by identifier. If the resource doesn't exist, the resource will be created using that identifier. Additionally, natural key values cannot be changed using this operation, and will not be modified in the database. If the resource \"id\" is provided in the JSON body, it will be ignored as well. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_student_parent_association(id, student_parent_association, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: A resource identifier that uniquely identifies the resource. (required)
:param EdFiStudentParentAssociation student_parent_association: The JSON representation of the \"studentParentAssociation\" resource to be created or updated. (required)
:param str if_match: The ETag header value used to prevent the PUT from updating a resource modified by another consumer.
: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.put_student_parent_association_with_http_info(id, student_parent_association, **kwargs) # noqa: E501
else:
(data) = self.put_student_parent_association_with_http_info(id, student_parent_association, **kwargs) # noqa: E501
return data
def put_student_parent_association_with_http_info(self, id, student_parent_association, **kwargs): # noqa: E501
"""Updates or creates a resource based on the resource identifier. # noqa: E501
The PUT operation is used to update or create a resource by identifier. If the resource doesn't exist, the resource will be created using that identifier. Additionally, natural key values cannot be changed using this operation, and will not be modified in the database. If the resource \"id\" is provided in the JSON body, it will be ignored as well. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_student_parent_association_with_http_info(id, student_parent_association, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str id: A resource identifier that uniquely identifies the resource. (required)
:param EdFiStudentParentAssociation student_parent_association: The JSON representation of the \"studentParentAssociation\" resource to be created or updated. (required)
:param str if_match: The ETag header value used to prevent the PUT from updating a resource modified by another consumer.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'student_parent_association', 'if_match'] # 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 put_student_parent_association" % 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 `put_student_parent_association`") # noqa: E501
# verify the required parameter 'student_parent_association' is set
if self.api_client.client_side_validation and ('student_parent_association' not in params or
params['student_parent_association'] is None): # noqa: E501
raise ValueError("Missing the required parameter `student_parent_association` when calling `put_student_parent_association`") # noqa: E501
collection_formats = {}
path_params = {}
if 'id' in params:
path_params['id'] = params['id'] # noqa: E501
query_params = []
header_params = {}
if 'if_match' in params:
header_params['If-Match'] = params['if_match'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'student_parent_association' in params:
body_params = params['student_parent_association']
# 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 = ['oauth2_client_credentials'] # noqa: E501
return self.api_client.call_api(
'/ed-fi/studentParentAssociations/{id}', '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)
| 54.78069
| 493
| 0.663863
| 4,845
| 39,716
| 5.229928
| 0.074303
| 0.041359
| 0.052094
| 0.017049
| 0.93729
| 0.922452
| 0.914874
| 0.897944
| 0.895023
| 0.884763
| 0
| 0.015001
| 0.258108
| 39,716
| 724
| 494
| 54.856354
| 0.844969
| 0.423154
| 0
| 0.74359
| 0
| 0.020513
| 0.255118
| 0.095816
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033333
| false
| 0
| 0.010256
| 0
| 0.092308
| 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
|
ce1f59df517acd86106cdd9dc22ae7431ad0b696
| 20,527
|
py
|
Python
|
deepcell/model_zoo/featurenet_test.py
|
jizhouh/deepcell-tf
|
491ece59f5024d73429477ebdcb437a6e67d766b
|
[
"Apache-2.0"
] | 250
|
2018-09-19T23:55:06.000Z
|
2022-03-30T02:20:52.000Z
|
deepcell/model_zoo/featurenet_test.py
|
jizhouh/deepcell-tf
|
491ece59f5024d73429477ebdcb437a6e67d766b
|
[
"Apache-2.0"
] | 251
|
2018-09-21T17:09:43.000Z
|
2022-02-28T19:04:50.000Z
|
deepcell/model_zoo/featurenet_test.py
|
jizhouh/deepcell-tf
|
491ece59f5024d73429477ebdcb437a6e67d766b
|
[
"Apache-2.0"
] | 64
|
2018-11-29T15:22:15.000Z
|
2022-03-21T03:37:43.000Z
|
# Copyright 2016-2021 The Van Valen Lab at the California Institute of
# Technology (Caltech), with support from the Paul Allen Family Foundation,
# Google, & National Institutes of Health (NIH) under Grant U24CA224309-01.
# All rights reserved.
#
# Licensed under a modified 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.github.com/vanvalenlab/deepcell-tf/LICENSE
#
# The Work provided may be used for non-commercial academic purposes only.
# For any other use of the Work, including commercial use, please contact:
# vanvalenlab@gmail.com
#
# Neither the name of Caltech nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific
# prior written permission.
#
# 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.
# ==============================================================================
"""Test the featurenet models."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl.testing import parameterized
from tensorflow.python.framework import test_util as tf_test_util
from tensorflow.python.keras import keras_parameterized
from tensorflow.keras import backend as K
from deepcell.model_zoo import featurenet
class FeatureNetTest(keras_parameterized.TestCase):
@keras_parameterized.run_all_keras_modes
@parameterized.named_parameters([
{
'testcase_name': 'dilated_include_top',
'include_top': True,
'dilated': True,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (32, 32, 1),
'data_format': 'channels_last'
},
{
'testcase_name': 'dilated_include_top_cf',
'include_top': True,
'dilated': True,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (32, 32, 1),
'data_format': 'channels_first'
},
# {
# 'testcase_name': 'not_dilated_include_top',
# 'include_top': True,
# 'dilated': False,
# 'padding_mode': 'reflect',
# 'padding': True,
# 'multires': False,
# 'location': False,
# 'shape': (32, 32, 1),
# 'data_format': 'channels_last',
# },
# {
# 'testcase_name': 'not_dilated_include_top_cf',
# 'include_top': True,
# 'dilated': False,
# 'padding_mode': 'reflect',
# 'padding': True,
# 'multires': False,
# 'location': False,
# 'shape': (32, 32, 1),
# 'data_format': 'channels_first',
# },
{
'testcase_name': 'dilated_no_top',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (33, 33, 1),
'data_format': 'channels_last',
},
{
'testcase_name': 'dilated_no_top_cf',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (33, 33, 1),
'data_format': 'channels_first',
},
{
'testcase_name': 'not_dilated_no_top',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (32, 32, 1),
'data_format': 'channels_last',
},
{
'testcase_name': 'not_dilated_no_top_cf',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (32, 32, 1),
'data_format': 'channels_first',
},
{
'testcase_name': 'not_dilated_no_top_location',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': True,
'shape': (32, 32, 1),
'data_format': 'channels_last',
},
{
'testcase_name': 'not_dilated_no_top_location_cf',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': True,
'shape': (32, 32, 1),
'data_format': 'channels_first',
},
{
'testcase_name': 'not_dilated_no_top_multires',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': False,
'shape': (32, 32, 1),
'data_format': 'channels_last',
},
{
'testcase_name': 'not_dilated_no_top_multires_cf',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': False,
'shape': (32, 32, 1),
'data_format': 'channels_first',
},
])
def test_bn_feature_net_2D(self, include_top, padding, padding_mode, shape,
dilated, multires, location, data_format):
n_features = 3
n_dense_filters = 200
# BAD: dilated=True, include_top=False
# BAD: inputs != None
with self.cached_session():
K.set_image_data_format(data_format)
model = featurenet.bn_feature_net_2D(
include_top=include_top,
dilated=dilated,
input_shape=shape,
n_features=n_features,
n_dense_filters=n_dense_filters,
padding=padding,
padding_mode=padding_mode,
multires=multires,
VGG_mode=multires,
location=location)
self.assertEqual(len(model.output_shape), 4)
output = n_features if include_top else n_dense_filters
axis = 1 if data_format == 'channels_first' else -1
self.assertEqual(model.output_shape[axis], output)
@keras_parameterized.run_all_keras_modes
@parameterized.named_parameters(
*tf_test_util.generate_combinations_with_testcase_name(
data_format=['channels_first', 'channels_last']))
def test_bn_feature_net_2D_skip(self, data_format):
receptive_field = 61
n_features = 3
n_dense_filters = 300
input_shape = (256, 256, 1)
n_skips = 1
with self.cached_session():
K.set_image_data_format(data_format)
axis = 1 if data_format == 'channels_first' else -1
fgbg_model = featurenet.bn_feature_net_skip_2D(
receptive_field=receptive_field,
input_shape=input_shape,
n_features=n_features,
n_dense_filters=n_dense_filters,
n_skips=n_skips,
last_only=False)
self.assertIsInstance(fgbg_model.output, list)
self.assertEqual(len(fgbg_model.output), n_skips + 1)
model = featurenet.bn_feature_net_skip_2D(
receptive_field=receptive_field,
input_shape=input_shape,
fgbg_model=fgbg_model,
n_features=n_features,
n_dense_filters=n_dense_filters,
n_skips=n_skips,
last_only=True)
self.assertEqual(len(model.output_shape), 4)
self.assertEqual(model.output_shape[axis], n_features)
@keras_parameterized.run_all_keras_modes
@parameterized.named_parameters([
{
'testcase_name': 'dilated_include_top',
'include_top': True,
'dilated': True,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 33, 33, 1),
'data_format': 'channels_last',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_include_top_cf',
'include_top': True,
'dilated': True,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 33, 33, 1),
'data_format': 'channels_first',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
# {
# 'testcase_name': 'not_dilated_include_top',
# 'include_top': True,
# 'dilated': False,
# 'padding_mode': 'reflect',
# 'padding': True,
# 'multires': False,
# 'location': False,
# 'data_format': 'channels_last',
# },
# {
# 'testcase_name': 'not_dilated_include_top_cf',
# 'include_top': True,
# 'dilated': False,
# 'padding_mode': 'reflect',
# 'padding': True,
# 'multires': False,
# 'location': False,
# 'data_format': 'channels_first',
# },
{
'testcase_name': 'dilated_no_top',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_cf',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_first',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'not_dilated_no_top',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 33, 33, 1),
'data_format': 'channels_last',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'not_dilated_no_top_cf',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 33, 33, 1),
'data_format': 'channels_first',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'not_dilated_no_top_location',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': True,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'not_dilated_no_top_location_cf',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': True,
'shape': (10, 32, 32, 1),
'data_format': 'channels_first',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'not_dilated_no_top_multires',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': False,
'shape': (10, 33, 33, 1),
'data_format': 'channels_last',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'not_dilated_no_top_multires_cf',
'include_top': False,
'dilated': False,
'padding_mode': 'reflect',
'padding': False,
'multires': True,
'location': False,
'shape': (10, 33, 33, 1),
'data_format': 'channels_first',
'temporal': None,
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_conv3D_nonresidual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'conv',
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_conv3D_residual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'conv',
'residual': True,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_convGRU2D_nonresidual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'gru',
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_convgru2D_nonresidual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'GRU',
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_convGRU2D_residual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'gru',
'residual': True,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_convlstm2D_nonresidual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'lstm',
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_convLSTM2D_nonresidual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'LSTM',
'residual': False,
'temporal_kernel_size': 3,
},
{
'testcase_name': 'dilated_no_top_convLSTM2D_residual',
'include_top': False,
'dilated': True,
'padding_mode': 'zero',
'padding': False,
'multires': False,
'location': False,
'shape': (10, 32, 32, 1),
'data_format': 'channels_last',
'temporal': 'lstm',
'residual': True,
'temporal_kernel_size': 3,
},
])
def test_bn_feature_net_3D(self, include_top, padding, padding_mode, shape,
dilated, multires, location, data_format,
temporal, residual, temporal_kernel_size):
n_features = 3
n_dense_filters = 200
n_frames = 5
# input_shape = (10, 32, 32, 1)
with self.cached_session():
K.set_image_data_format(data_format)
model = featurenet.bn_feature_net_3D(
include_top=include_top,
dilated=dilated,
n_frames=n_frames,
input_shape=shape,
n_features=n_features,
n_dense_filters=n_dense_filters,
padding=padding,
padding_mode=padding_mode,
multires=multires,
VGG_mode=multires,
location=location,
temporal=temporal,
residual=residual,
temporal_kernel_size=temporal_kernel_size)
self.assertEqual(len(model.output_shape), 5 if dilated else 2)
channel_axis = 1 if data_format == 'channels_first' else -1
self.assertEqual(model.output_shape[channel_axis], n_features)
@keras_parameterized.run_all_keras_modes
@parameterized.named_parameters(
*tf_test_util.generate_combinations_with_testcase_name(
data_format=['channels_first', 'channels_last']))
def test_bn_feature_net_3D_skip(self, data_format):
receptive_field = 61
n_features = 3
n_dense_filters = 300
input_shape = (10, 32, 32, 1)
n_skips = 1
temporal = None
residual = False
temporal_kernel_size = 3
with self.cached_session():
K.set_image_data_format(data_format)
axis = 1 if data_format == 'channels_first' else -1
fgbg_model = featurenet.bn_feature_net_skip_3D(
receptive_field=receptive_field,
input_shape=input_shape,
n_features=n_features,
n_dense_filters=n_dense_filters,
n_skips=n_skips,
last_only=False,
temporal=temporal,
residual=residual,
temporal_kernel_size=temporal_kernel_size)
self.assertIsInstance(fgbg_model.output, list)
self.assertEqual(len(fgbg_model.output), n_skips + 1)
model = featurenet.bn_feature_net_skip_3D(
receptive_field=receptive_field,
input_shape=input_shape,
fgbg_model=fgbg_model,
n_features=n_features,
n_dense_filters=n_dense_filters,
n_skips=n_skips,
last_only=True,
temporal=temporal,
residual=residual,
temporal_kernel_size=temporal_kernel_size)
self.assertEqual(len(model.output_shape), 5)
self.assertEqual(model.output_shape[axis], n_features)
| 34.615514
| 80
| 0.512496
| 1,941
| 20,527
| 5.11592
| 0.114889
| 0.050352
| 0.068882
| 0.057402
| 0.852165
| 0.852165
| 0.83565
| 0.823364
| 0.810977
| 0.810977
| 0
| 0.023375
| 0.370585
| 20,527
| 592
| 81
| 34.673986
| 0.745201
| 0.112583
| 0
| 0.780684
| 0
| 0
| 0.239402
| 0.032523
| 0
| 0
| 0
| 0
| 0.024145
| 1
| 0.008048
| false
| 0
| 0.016097
| 0
| 0.026157
| 0.002012
| 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
|
ce25e62fb5d454eae2777ba5d9ec94b0b6eab76e
| 188
|
py
|
Python
|
grr/client/grr_response_client/client_actions/osx/local/__init__.py
|
certxlm/grr
|
c2a442a27f656fb18dfa3bce098847e5c5b849d7
|
[
"Apache-2.0"
] | 1
|
2019-08-28T23:48:20.000Z
|
2019-08-28T23:48:20.000Z
|
grr/client/grr_response_client/client_actions/osx/local/__init__.py
|
AjitNair2/grr
|
2a2ea891b3927775872904cdd402a18e7bb3d143
|
[
"Apache-2.0"
] | 2
|
2022-01-15T03:18:12.000Z
|
2022-02-13T22:02:43.000Z
|
grr/client/grr_response_client/client_actions/osx/local/__init__.py
|
acidburn0zzz/grr
|
44e1a5b1630e8101610faaaebe15b19b5ad30cb1
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
"""A module to load the local MacOS client plugins."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
| 31.333333
| 54
| 0.81383
| 27
| 188
| 5.148148
| 0.740741
| 0.215827
| 0.345324
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12234
| 188
| 5
| 55
| 37.6
| 0.842424
| 0.367021
| 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
|
5a58b4800d2fda6450cab33d923bb7ffa24727a3
| 760
|
py
|
Python
|
funcs/cc.py
|
nayanm9/LHD2022
|
f014d768e18a899489352db58c3e111b533e5905
|
[
"MIT"
] | 1
|
2022-02-12T04:43:22.000Z
|
2022-02-12T04:43:22.000Z
|
funcs/cc.py
|
nayanm9/LHD2022
|
f014d768e18a899489352db58c3e111b533e5905
|
[
"MIT"
] | null | null | null |
funcs/cc.py
|
nayanm9/LHD2022
|
f014d768e18a899489352db58c3e111b533e5905
|
[
"MIT"
] | null | null | null |
def encrypt(text,s):
result = ""
# traverse text
for i in range(len(text)):
char = text[i]
# Encrypt uppercase characters
if (char.isupper()):
result += chr((ord(char) + s-65) % 26 + 65)
# Encrypt lowercase characters
else:
result += chr((ord(char) + s - 97) % 26 + 97)
return result
def decrypt(text,s):
result = ""
# traverse text
for i in range(len(text)):
char = text[i]
# Decrypt uppercase characters
if (char.isupper()):
result += chr((ord(char) - s-65) % 26 + 65)
# Decrypt lowercase characters
else:
result += chr((ord(char) - s - 97) % 26 + 97)
return result
| 27.142857
| 58
| 0.492105
| 88
| 760
| 4.25
| 0.284091
| 0.096257
| 0.128342
| 0.171123
| 0.871658
| 0.871658
| 0.871658
| 0.871658
| 0.871658
| 0.871658
| 0
| 0.050847
| 0.378947
| 760
| 27
| 59
| 28.148148
| 0.741525
| 0.188158
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0
| 0
| 0.222222
| 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
|
ceac752ef0104863d6afb9dbc08fa80e0cb7f2f9
| 88
|
py
|
Python
|
matrix_parser/__init__.py
|
heliosantos/matrix_parser
|
dbea4653c52b6640bc458d1b2aae9ebb9208f313
|
[
"MIT"
] | null | null | null |
matrix_parser/__init__.py
|
heliosantos/matrix_parser
|
dbea4653c52b6640bc458d1b2aae9ebb9208f313
|
[
"MIT"
] | null | null | null |
matrix_parser/__init__.py
|
heliosantos/matrix_parser
|
dbea4653c52b6640bc458d1b2aae9ebb9208f313
|
[
"MIT"
] | null | null | null |
from .matrix_parser_base import MatrixParserBase
from .matrix_parser import MatrixParser
| 44
| 48
| 0.897727
| 11
| 88
| 6.909091
| 0.636364
| 0.263158
| 0.421053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079545
| 88
| 2
| 49
| 44
| 0.938272
| 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
|
0c8230e5c97a53e0f04fd8074a871f0fb8b75ad6
| 191
|
py
|
Python
|
nertivia4py/utils/exceptions.py
|
bentettmar/nertivia4py
|
a9b758000632e40306bc610a6966cb8d0a643c20
|
[
"MIT"
] | 3
|
2022-01-24T16:31:20.000Z
|
2022-02-03T22:44:51.000Z
|
nertivia4py/utils/exceptions.py
|
bentettmar/nertivia4py
|
a9b758000632e40306bc610a6966cb8d0a643c20
|
[
"MIT"
] | 9
|
2022-03-05T19:01:48.000Z
|
2022-03-06T11:38:53.000Z
|
nertivia4py/utils/exceptions.py
|
bentettmar/nertivia4py
|
a9b758000632e40306bc610a6966cb8d0a643c20
|
[
"MIT"
] | null | null | null |
class CommandAlreadyExists(Exception): pass
class CommandError(Exception): pass
class CommandNotFound(Exception): pass
class InvalidEvent(Exception): pass
class InvalidToken(Exception): pass
| 31.833333
| 43
| 0.842932
| 20
| 191
| 8.05
| 0.4
| 0.403727
| 0.447205
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078534
| 191
| 6
| 44
| 31.833333
| 0.914773
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 1
| 0
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
0c95c250a8bb671f56a6d2ba12610da91dae53f4
| 33
|
py
|
Python
|
Cisco/2.1.3.4c.py
|
martageraldo/aula-python-cisco
|
6f4061c4200bb611f90a4231e1646ae8a0066e99
|
[
"MIT"
] | null | null | null |
Cisco/2.1.3.4c.py
|
martageraldo/aula-python-cisco
|
6f4061c4200bb611f90a4231e1646ae8a0066e99
|
[
"MIT"
] | null | null | null |
Cisco/2.1.3.4c.py
|
martageraldo/aula-python-cisco
|
6f4061c4200bb611f90a4231e1646ae8a0066e99
|
[
"MIT"
] | null | null | null |
print(-6 // 4)
print(6. // -4)
| 11
| 16
| 0.424242
| 6
| 33
| 2.333333
| 0.5
| 0.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 0.242424
| 33
| 2
| 17
| 16.5
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
0cad1900fe19bd883bdd85f74ba6087d0291050b
| 37,397
|
py
|
Python
|
sdks/python/http_client/v1/polyaxon_sdk/api/queues_v1_api.py
|
hackerwins/polyaxon
|
ff56a098283ca872abfbaae6ba8abba479ffa394
|
[
"Apache-2.0"
] | null | null | null |
sdks/python/http_client/v1/polyaxon_sdk/api/queues_v1_api.py
|
hackerwins/polyaxon
|
ff56a098283ca872abfbaae6ba8abba479ffa394
|
[
"Apache-2.0"
] | null | null | null |
sdks/python/http_client/v1/polyaxon_sdk/api/queues_v1_api.py
|
hackerwins/polyaxon
|
ff56a098283ca872abfbaae6ba8abba479ffa394
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
#
# Copyright 2019 Polyaxon, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# coding: utf-8
"""
Polyaxon SDKs and REST API specification.
Polyaxon SDKs and REST API specification. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: contact@polyaxon.com
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 polyaxon_sdk.api_client import ApiClient
class QueuesV1Api(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_queue(self, owner, agent, body, **kwargs): # noqa: E501
"""List runs # 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_queue(owner, agent, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent that consumes the queue (required)
:param V1Queue body: Queue body (required)
:return: V1Agent
If the method is called asynchronously,
returns the request thread.
"""
kwargs["_return_http_data_only"] = True
if kwargs.get("async_req"):
return self.create_queue_with_http_info(
owner, agent, body, **kwargs
) # noqa: E501
else:
(data) = self.create_queue_with_http_info(
owner, agent, body, **kwargs
) # noqa: E501
return data
def create_queue_with_http_info(self, owner, agent, body, **kwargs): # noqa: E501
"""List runs # 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_queue_with_http_info(owner, agent, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent that consumes the queue (required)
:param V1Queue body: Queue body (required)
:return: V1Agent
If the method is called asynchronously,
returns the request thread.
"""
all_params = ["owner", "agent", "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_queue" % key
)
params[key] = val
del params["kwargs"]
# verify the required parameter 'owner' is set
if "owner" not in params or params["owner"] is None:
raise ValueError(
"Missing the required parameter `owner` when calling `create_queue`"
) # noqa: E501
# verify the required parameter 'agent' is set
if "agent" not in params or params["agent"] is None:
raise ValueError(
"Missing the required parameter `agent` when calling `create_queue`"
) # noqa: E501
# verify the required parameter 'body' is set
if "body" not in params or params["body"] is None:
raise ValueError(
"Missing the required parameter `body` when calling `create_queue`"
) # noqa: E501
collection_formats = {}
path_params = {}
if "owner" in params:
path_params["owner"] = params["owner"] # noqa: E501
if "agent" in params:
path_params["agent"] = params["agent"] # noqa: E501
query_params = []
header_params = {}
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 = ["ApiKey"] # noqa: E501
return self.api_client.call_api(
"/api/v1/{owner}/agents/{agent}/queues",
"POST",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="V1Agent", # 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_queue(self, owner, agent, uuid, **kwargs): # noqa: E501
"""Patch run # 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_queue(owner, agent, uuid, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent managing the resource (required)
:param str uuid: Unique integer identifier of the entity (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_queue_with_http_info(
owner, agent, uuid, **kwargs
) # noqa: E501
else:
(data) = self.delete_queue_with_http_info(
owner, agent, uuid, **kwargs
) # noqa: E501
return data
def delete_queue_with_http_info(self, owner, agent, uuid, **kwargs): # noqa: E501
"""Patch run # 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_queue_with_http_info(owner, agent, uuid, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent managing the resource (required)
:param str uuid: Unique integer identifier of the entity (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ["owner", "agent", "uuid"] # 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_queue" % key
)
params[key] = val
del params["kwargs"]
# verify the required parameter 'owner' is set
if "owner" not in params or params["owner"] is None:
raise ValueError(
"Missing the required parameter `owner` when calling `delete_queue`"
) # noqa: E501
# verify the required parameter 'agent' is set
if "agent" not in params or params["agent"] is None:
raise ValueError(
"Missing the required parameter `agent` when calling `delete_queue`"
) # noqa: E501
# verify the required parameter 'uuid' is set
if "uuid" not in params or params["uuid"] is None:
raise ValueError(
"Missing the required parameter `uuid` when calling `delete_queue`"
) # noqa: E501
collection_formats = {}
path_params = {}
if "owner" in params:
path_params["owner"] = params["owner"] # noqa: E501
if "agent" in params:
path_params["agent"] = params["agent"] # noqa: E501
if "uuid" in params:
path_params["uuid"] = params["uuid"] # noqa: E501
query_params = []
header_params = {}
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 = ["ApiKey"] # noqa: E501
return self.api_client.call_api(
"/api/v1/{owner}/agents/{agent}/queues/{uuid}",
"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_queue(self, owner, agent, uuid, **kwargs): # noqa: E501
"""Create new run # 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_queue(owner, agent, uuid, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent managing the resource (required)
:param str uuid: Unique integer identifier of the entity (required)
:return: V1Queue
If the method is called asynchronously,
returns the request thread.
"""
kwargs["_return_http_data_only"] = True
if kwargs.get("async_req"):
return self.get_queue_with_http_info(
owner, agent, uuid, **kwargs
) # noqa: E501
else:
(data) = self.get_queue_with_http_info(
owner, agent, uuid, **kwargs
) # noqa: E501
return data
def get_queue_with_http_info(self, owner, agent, uuid, **kwargs): # noqa: E501
"""Create new run # 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_queue_with_http_info(owner, agent, uuid, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent managing the resource (required)
:param str uuid: Unique integer identifier of the entity (required)
:return: V1Queue
If the method is called asynchronously,
returns the request thread.
"""
all_params = ["owner", "agent", "uuid"] # 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_queue" % key
)
params[key] = val
del params["kwargs"]
# verify the required parameter 'owner' is set
if "owner" not in params or params["owner"] is None:
raise ValueError(
"Missing the required parameter `owner` when calling `get_queue`"
) # noqa: E501
# verify the required parameter 'agent' is set
if "agent" not in params or params["agent"] is None:
raise ValueError(
"Missing the required parameter `agent` when calling `get_queue`"
) # noqa: E501
# verify the required parameter 'uuid' is set
if "uuid" not in params or params["uuid"] is None:
raise ValueError(
"Missing the required parameter `uuid` when calling `get_queue`"
) # noqa: E501
collection_formats = {}
path_params = {}
if "owner" in params:
path_params["owner"] = params["owner"] # noqa: E501
if "agent" in params:
path_params["agent"] = params["agent"] # noqa: E501
if "uuid" in params:
path_params["uuid"] = params["uuid"] # noqa: E501
query_params = []
header_params = {}
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 = ["ApiKey"] # noqa: E501
return self.api_client.call_api(
"/api/v1/{owner}/agents/{agent}/queues/{uuid}",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="V1Queue", # 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_queue_names(self, owner, agent, **kwargs): # noqa: E501
"""List bookmarked runs for user # 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_queue_names(owner, agent, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent man managing the resource (required)
:param int offset: Pagination offset.
:param int limit: Limit size.
:param str sort: Sort to order the search.
:param str query: Query filter the search search.
:return: V1ListQueuesResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs["_return_http_data_only"] = True
if kwargs.get("async_req"):
return self.list_queue_names_with_http_info(
owner, agent, **kwargs
) # noqa: E501
else:
(data) = self.list_queue_names_with_http_info(
owner, agent, **kwargs
) # noqa: E501
return data
def list_queue_names_with_http_info(self, owner, agent, **kwargs): # noqa: E501
"""List bookmarked runs for user # 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_queue_names_with_http_info(owner, agent, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent man managing the resource (required)
:param int offset: Pagination offset.
:param int limit: Limit size.
:param str sort: Sort to order the search.
:param str query: Query filter the search search.
:return: V1ListQueuesResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = [
"owner",
"agent",
"offset",
"limit",
"sort",
"query",
] # 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_queue_names" % key
)
params[key] = val
del params["kwargs"]
# verify the required parameter 'owner' is set
if "owner" not in params or params["owner"] is None:
raise ValueError(
"Missing the required parameter `owner` when calling `list_queue_names`"
) # noqa: E501
# verify the required parameter 'agent' is set
if "agent" not in params or params["agent"] is None:
raise ValueError(
"Missing the required parameter `agent` when calling `list_queue_names`"
) # noqa: E501
collection_formats = {}
path_params = {}
if "owner" in params:
path_params["owner"] = params["owner"] # noqa: E501
if "agent" in params:
path_params["agent"] = params["agent"] # noqa: E501
query_params = []
if "offset" in params:
query_params.append(("offset", params["offset"])) # noqa: E501
if "limit" in params:
query_params.append(("limit", params["limit"])) # noqa: E501
if "sort" in params:
query_params.append(("sort", params["sort"])) # noqa: E501
if "query" in params:
query_params.append(("query", params["query"])) # noqa: E501
header_params = {}
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 = ["ApiKey"] # noqa: E501
return self.api_client.call_api(
"/api/v1/{owner}/agents/{agent}/queues/names",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="V1ListQueuesResponse", # 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_queues(self, owner, agent, **kwargs): # noqa: E501
"""List archived runs for user # 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_queues(owner, agent, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent man managing the resource (required)
:param int offset: Pagination offset.
:param int limit: Limit size.
:param str sort: Sort to order the search.
:param str query: Query filter the search search.
:return: V1ListQueuesResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs["_return_http_data_only"] = True
if kwargs.get("async_req"):
return self.list_queues_with_http_info(owner, agent, **kwargs) # noqa: E501
else:
(data) = self.list_queues_with_http_info(
owner, agent, **kwargs
) # noqa: E501
return data
def list_queues_with_http_info(self, owner, agent, **kwargs): # noqa: E501
"""List archived runs for user # 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_queues_with_http_info(owner, agent, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str agent: Agent man managing the resource (required)
:param int offset: Pagination offset.
:param int limit: Limit size.
:param str sort: Sort to order the search.
:param str query: Query filter the search search.
:return: V1ListQueuesResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = [
"owner",
"agent",
"offset",
"limit",
"sort",
"query",
] # 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_queues" % key
)
params[key] = val
del params["kwargs"]
# verify the required parameter 'owner' is set
if "owner" not in params or params["owner"] is None:
raise ValueError(
"Missing the required parameter `owner` when calling `list_queues`"
) # noqa: E501
# verify the required parameter 'agent' is set
if "agent" not in params or params["agent"] is None:
raise ValueError(
"Missing the required parameter `agent` when calling `list_queues`"
) # noqa: E501
collection_formats = {}
path_params = {}
if "owner" in params:
path_params["owner"] = params["owner"] # noqa: E501
if "agent" in params:
path_params["agent"] = params["agent"] # noqa: E501
query_params = []
if "offset" in params:
query_params.append(("offset", params["offset"])) # noqa: E501
if "limit" in params:
query_params.append(("limit", params["limit"])) # noqa: E501
if "sort" in params:
query_params.append(("sort", params["sort"])) # noqa: E501
if "query" in params:
query_params.append(("query", params["query"])) # noqa: E501
header_params = {}
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 = ["ApiKey"] # noqa: E501
return self.api_client.call_api(
"/api/v1/{owner}/agents/{agent}/queues",
"GET",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="V1ListQueuesResponse", # 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 patch_queue(self, owner, queue_agent, queue_uuid, body, **kwargs): # noqa: E501
"""Update run # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_queue(owner, queue_agent, queue_uuid, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str queue_agent: Agent (required)
:param str queue_uuid: UUID (required)
:param V1Queue body: Queue body (required)
:return: V1Queue
If the method is called asynchronously,
returns the request thread.
"""
kwargs["_return_http_data_only"] = True
if kwargs.get("async_req"):
return self.patch_queue_with_http_info(
owner, queue_agent, queue_uuid, body, **kwargs
) # noqa: E501
else:
(data) = self.patch_queue_with_http_info(
owner, queue_agent, queue_uuid, body, **kwargs
) # noqa: E501
return data
def patch_queue_with_http_info(
self, owner, queue_agent, queue_uuid, body, **kwargs
): # noqa: E501
"""Update run # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.patch_queue_with_http_info(owner, queue_agent, queue_uuid, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str queue_agent: Agent (required)
:param str queue_uuid: UUID (required)
:param V1Queue body: Queue body (required)
:return: V1Queue
If the method is called asynchronously,
returns the request thread.
"""
all_params = ["owner", "queue_agent", "queue_uuid", "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 patch_queue" % key
)
params[key] = val
del params["kwargs"]
# verify the required parameter 'owner' is set
if "owner" not in params or params["owner"] is None:
raise ValueError(
"Missing the required parameter `owner` when calling `patch_queue`"
) # noqa: E501
# verify the required parameter 'queue_agent' is set
if "queue_agent" not in params or params["queue_agent"] is None:
raise ValueError(
"Missing the required parameter `queue_agent` when calling `patch_queue`"
) # noqa: E501
# verify the required parameter 'queue_uuid' is set
if "queue_uuid" not in params or params["queue_uuid"] is None:
raise ValueError(
"Missing the required parameter `queue_uuid` when calling `patch_queue`"
) # noqa: E501
# verify the required parameter 'body' is set
if "body" not in params or params["body"] is None:
raise ValueError(
"Missing the required parameter `body` when calling `patch_queue`"
) # noqa: E501
collection_formats = {}
path_params = {}
if "owner" in params:
path_params["owner"] = params["owner"] # noqa: E501
if "queue_agent" in params:
path_params["queue.agent"] = params["queue_agent"] # noqa: E501
if "queue_uuid" in params:
path_params["queue.uuid"] = params["queue_uuid"] # noqa: E501
query_params = []
header_params = {}
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 = ["ApiKey"] # noqa: E501
return self.api_client.call_api(
"/api/v1/{owner}/agents/{queue.agent}/queues/{queue.uuid}",
"PATCH",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="V1Queue", # 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_queue(
self, owner, queue_agent, queue_uuid, body, **kwargs
): # noqa: E501
"""Get run # 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_queue(owner, queue_agent, queue_uuid, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str queue_agent: Agent (required)
:param str queue_uuid: UUID (required)
:param V1Queue body: Queue body (required)
:return: V1Queue
If the method is called asynchronously,
returns the request thread.
"""
kwargs["_return_http_data_only"] = True
if kwargs.get("async_req"):
return self.update_queue_with_http_info(
owner, queue_agent, queue_uuid, body, **kwargs
) # noqa: E501
else:
(data) = self.update_queue_with_http_info(
owner, queue_agent, queue_uuid, body, **kwargs
) # noqa: E501
return data
def update_queue_with_http_info(
self, owner, queue_agent, queue_uuid, body, **kwargs
): # noqa: E501
"""Get run # 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_queue_with_http_info(owner, queue_agent, queue_uuid, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str owner: Owner of the namespace (required)
:param str queue_agent: Agent (required)
:param str queue_uuid: UUID (required)
:param V1Queue body: Queue body (required)
:return: V1Queue
If the method is called asynchronously,
returns the request thread.
"""
all_params = ["owner", "queue_agent", "queue_uuid", "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_queue" % key
)
params[key] = val
del params["kwargs"]
# verify the required parameter 'owner' is set
if "owner" not in params or params["owner"] is None:
raise ValueError(
"Missing the required parameter `owner` when calling `update_queue`"
) # noqa: E501
# verify the required parameter 'queue_agent' is set
if "queue_agent" not in params or params["queue_agent"] is None:
raise ValueError(
"Missing the required parameter `queue_agent` when calling `update_queue`"
) # noqa: E501
# verify the required parameter 'queue_uuid' is set
if "queue_uuid" not in params or params["queue_uuid"] is None:
raise ValueError(
"Missing the required parameter `queue_uuid` when calling `update_queue`"
) # noqa: E501
# verify the required parameter 'body' is set
if "body" not in params or params["body"] is None:
raise ValueError(
"Missing the required parameter `body` when calling `update_queue`"
) # noqa: E501
collection_formats = {}
path_params = {}
if "owner" in params:
path_params["owner"] = params["owner"] # noqa: E501
if "queue_agent" in params:
path_params["queue.agent"] = params["queue_agent"] # noqa: E501
if "queue_uuid" in params:
path_params["queue.uuid"] = params["queue_uuid"] # noqa: E501
query_params = []
header_params = {}
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 = ["ApiKey"] # noqa: E501
return self.api_client.call_api(
"/api/v1/{owner}/agents/{queue.agent}/queues/{queue.uuid}",
"PUT",
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type="V1Queue", # 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,
)
| 38.043744
| 106
| 0.584138
| 4,249
| 37,397
| 4.951283
| 0.054836
| 0.050195
| 0.039928
| 0.023957
| 0.953513
| 0.951992
| 0.946383
| 0.940013
| 0.938968
| 0.938968
| 0
| 0.017573
| 0.32286
| 37,397
| 982
| 107
| 38.082485
| 0.813213
| 0.320052
| 0
| 0.764605
| 0
| 0
| 0.198562
| 0.032939
| 0
| 0
| 0
| 0
| 0
| 1
| 0.025773
| false
| 0
| 0.006873
| 0
| 0.070447
| 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
|
0cf3c2f12f08850ecf42ba1588da5be532c6b906
| 8,572
|
py
|
Python
|
test/tracardi/test_tql.py
|
danieldemedziuk/tracardi-api
|
27a82a11f8a2ed11156979f8c8c4cfd700fd3dc4
|
[
"MIT"
] | null | null | null |
test/tracardi/test_tql.py
|
danieldemedziuk/tracardi-api
|
27a82a11f8a2ed11156979f8c8c4cfd700fd3dc4
|
[
"MIT"
] | null | null | null |
test/tracardi/test_tql.py
|
danieldemedziuk/tracardi-api
|
27a82a11f8a2ed11156979f8c8c4cfd700fd3dc4
|
[
"MIT"
] | null | null | null |
from tracardi.domain.event_metadata import EventMetadata, EventTime
from tracardi.service.notation.dot_accessor import DotAccessor
from tracardi.domain.profile import Profile
from tracardi.domain.context import Context
from tracardi.domain.event import Event, EventSession
from tracardi.domain.flow import Flow, FlowSchema
from tracardi.domain.resource import Resource
from tracardi.process_engine.tql.parser import Parser
from tracardi.process_engine.tql.transformer.expr_transformer import ExprTransformer
payload = {
"a": {
"b": 1,
"c": [1, 2, 3],
"d": {"aa": 1},
"e": "test",
'f': 1,
'g': True,
'h': None,
'i': "2021-01-10"
}
}
profile = Profile(id="1")
session = EventSession(id="2")
resource = Resource(id="3", type="event")
context = Context()
event = Event(id="event-id",
type="type",
metadata=EventMetadata(time=EventTime()),
source=resource,
context=context,
profile=profile,
session=session,
)
flow = Flow(id="flow-id", name="flow", wf_schema=FlowSchema(version="0.g.0"))
dot = DotAccessor(profile, session, payload, event, flow)
parser = Parser(Parser.read('grammar/uql_expr.lark'), start='expr')
def test_tql_between():
tree = parser.parse("payload@a.d.aa between 1 and 2")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_equal():
tree = parser.parse("payload@a.e == \"test\"")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b == payload@a.f")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.g == True")
assert ExprTransformer(dot=dot).transform(tree)
# Not allowed
# tree = parser.parse("payload@a.h == null")
# assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b == 1")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_greater_then():
tree = parser.parse("payload@a.b >= 1")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b => 1")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b > 0")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_lower_then():
tree = parser.parse("payload@a.b <= 1")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b =< 1")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b < 2")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_equal_date():
tree = parser.parse("datetime(payload@a.i) == datetime(\"2021-01-10\")")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) <= datetime(\"2021-01-10\")")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) >= datetime(\"2021-01-10\")")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) < datetime(\"2021-01-11\")")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) > datetime(\"2021-01-09\")")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) < datetime(\"2021-01-10 00:00:01\")")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) between datetime(\"2020-01-01\") and datetime(\"2022-01-01\")")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_is():
tree = parser.parse("payload@a.h is null")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_exists():
tree = parser.parse("payload@a.h exists")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.h.h not exists")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_false_between():
tree = parser.parse("payload@a.d.aa between 3 and 4")
assert not ExprTransformer(dot=dot).transform(tree)
def test_tql_false_not_equal():
tree = parser.parse("payload@a.e != \"test\"")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b != payload@a.f")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.g != True")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b != 1")
assert not ExprTransformer(dot=dot).transform(tree)
# todo not working
# def test_tql_false_is_not():
# tree = parser.parse("payload@a.h is not null")
# assert not ExprTransformer(dot=dot).transform(tree)
def test_tql_false_greater_then():
tree = parser.parse("payload@a.b > 1")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b > 0")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_false_lower_then():
tree = parser.parse("payload@a.b < 1")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b > 2")
assert not ExprTransformer(dot=dot).transform(tree)
def test_tql_false_date_ops():
tree = parser.parse("datetime(payload@a.i) != datetime(\"2021-01-10\")")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) < datetime(\"2021-01-10\")")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) > datetime(\"2021-01-10\")")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) > datetime(\"2021-01-11\")")
assert not ExprTransformer(dot=dot).transform(tree)
#
tree = parser.parse("datetime(payload@a.i) < datetime(\"2021-01-09\")")
assert not ExprTransformer(dot=dot).transform(tree)
#
tree = parser.parse("datetime(payload@a.i) > datetime(\"2021-01-10 00:00:01\")")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("datetime(payload@a.i) between datetime(\"2022-01-01\") and datetime(\"2023-01-01\")")
assert not ExprTransformer(dot=dot).transform(tree)
def test_tql_datetime_now():
tree = parser.parse("now() == now()")
assert not ExprTransformer(dot=dot).transform(tree)
def test_tql_false_exists():
tree = parser.parse("payload@a.h not exists")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.h.h exists")
assert not ExprTransformer(dot=dot).transform(tree)
def test_tql_bool_operations():
tree = parser.parse("payload@a.d.aa between 1 and 2 and payload@a.e == \"test\"")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.d.aa between 1 and 2 or payload@a.e != \"test\"")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.d.aa between 2 and 3 and payload@a.e != \"test\"")
assert not ExprTransformer(dot=dot).transform(tree)
def test_tql_fail():
try:
tree = parser.parse("a.b > 1")
ExprTransformer(dot=dot).transform(tree)
assert False
except Exception:
assert True
try:
tree = parser.parse("payload@... > 1")
ExprTransformer(dot=dot).transform(tree)
assert False
except Exception:
assert True
# todo this could work
# try:
# tree = parser.parse("payload@... exists")
# ExprTransformer(dot=dot).transform(tree)
# assert False
# except Exception:
# assert True
def test_tql_no_value():
try:
tree = parser.parse("payload@no-value.b > 1")
ExprTransformer(dot=dot).transform(tree)
assert False
except Exception as e:
assert 'Invalid dot notation' in str(e)
def test_tql_float_value():
tree = parser.parse("payload@a.b > .54543")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b > 1.54543")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b < 2.5")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b <= 2.5")
assert ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b =< 1.5")
assert ExprTransformer(dot=dot).transform(tree)
def test_tql_negative_value():
tree = parser.parse("payload@a.b < -1")
assert not ExprTransformer(dot=dot).transform(tree)
tree = parser.parse("payload@a.b < -1.845")
assert not ExprTransformer(dot=dot).transform(tree)
| 32.717557
| 110
| 0.673705
| 1,165
| 8,572
| 4.899571
| 0.096137
| 0.079888
| 0.147162
| 0.294324
| 0.807288
| 0.784338
| 0.773125
| 0.735985
| 0.733532
| 0.691135
| 0
| 0.029022
| 0.171955
| 8,572
| 261
| 111
| 32.842912
| 0.775148
| 0.049347
| 0
| 0.375723
| 0
| 0
| 0.178923
| 0.038736
| 0
| 0
| 0
| 0.003831
| 0.323699
| 1
| 0.109827
| false
| 0
| 0.052023
| 0
| 0.16185
| 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
|
0b5242f03f852864fcee9379d32c333c8859d6cb
| 7,417
|
py
|
Python
|
tests/test_wg_meta_20.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
tests/test_wg_meta_20.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
tests/test_wg_meta_20.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from tests.utils import assert_bindings
def test_sg_abstract_edc_ee1i_xml(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/edc.xsd",
instance="wgData/sg/ee1i.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_abstract_upa2_e1bis_xml(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/upa2.xsd",
instance="wgData/sg/e1.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_abstract_upa2_e1short_xml(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/upa2.xsd",
instance="wgData/sg/e1short.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_abstract_upa_e1_xml(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/upa.xsd",
instance="wgData/sg/e1.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_abstract_upa_e1token_xml(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/upa.xsd",
instance="wgData/sg/e1token.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_3_sns1b(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/snbranch.xsd",
instance="wgData/sg/sns1b.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_3_snn1c(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/snbranch.xsd",
instance="wgData/sg/snn1c.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_3_snea(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/snbranch.xsd",
instance="wgData/sg/snea.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_2_esn(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/negsn.xsd",
instance="wgData/sg/esn.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_2_n1sn(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/negsn.xsd",
instance="wgData/sg/n1sn.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_1_sn(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/snneg.xsd",
instance="wgData/sg/sn.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_1_s1n(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/snneg.xsd",
instance="wgData/sg/s1n.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_1_sne(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/snneg.xsd",
instance="wgData/sg/sne.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_sg_and_defined_sibling_1_snn1(mode, save_output, output_format):
assert_bindings(
schema="wgData/sg/snneg.xsd",
instance="wgData/sg/snn1.xml",
class_name="Test",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_iri_001_uri_3986_valid_001(mode, save_output, output_format):
assert_bindings(
schema="wgData/iri/ElementDeclarations.xsd",
instance="wgData/iri/URI-3986-valid-001.xml",
class_name="Uri3986",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_iri_001_uri_3986_valid_002(mode, save_output, output_format):
assert_bindings(
schema="wgData/iri/ElementDeclarations.xsd",
instance="wgData/iri/URI-3986-valid-002.xml",
class_name="Uri3986",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_iri_001_uri_3986_valid_003(mode, save_output, output_format):
assert_bindings(
schema="wgData/iri/ElementDeclarations.xsd",
instance="wgData/iri/URI-3986-valid-003.xml",
class_name="Uri3986",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_iri_001_absolute_uri_3986_valid_001(mode, save_output, output_format):
assert_bindings(
schema="wgData/iri/ElementDeclarations.xsd",
instance="wgData/iri/absolute-URI-3986-valid-001.xml",
class_name="AbsoluteUri3986",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_iri_001_absolute_uri_3986_valid_002(mode, save_output, output_format):
assert_bindings(
schema="wgData/iri/ElementDeclarations.xsd",
instance="wgData/iri/absolute-URI-3986-valid-002.xml",
class_name="AbsoluteUri3986",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
def test_iri_001_absolute_uri_3986_valid_003(mode, save_output, output_format):
assert_bindings(
schema="wgData/iri/ElementDeclarations.xsd",
instance="wgData/iri/absolute-URI-3986-valid-003.xml",
class_name="AbsoluteUri3986",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
)
| 26.301418
| 79
| 0.648645
| 905
| 7,417
| 4.985635
| 0.068508
| 0.132979
| 0.124113
| 0.195035
| 0.958998
| 0.958998
| 0.958998
| 0.955009
| 0.955009
| 0.955009
| 0
| 0.035328
| 0.240529
| 7,417
| 281
| 80
| 26.395018
| 0.765667
| 0
| 0
| 0.728507
| 0
| 0
| 0.176486
| 0.072401
| 0
| 0
| 0
| 0
| 0.095023
| 1
| 0.090498
| false
| 0
| 0.004525
| 0
| 0.095023
| 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
|
0b55588f3a92349bddc2fecd9596f32172171dde
| 11,140
|
py
|
Python
|
src/yafowil/widget/array/example.py
|
conestack/yafowil.widget.array
|
29baec8cc93611eec8cf82f169b772c006c024b0
|
[
"BSD-2-Clause"
] | 1
|
2019-07-09T12:53:31.000Z
|
2019-07-09T12:53:31.000Z
|
src/yafowil/widget/array/example.py
|
conestack/yafowil.widget.array
|
29baec8cc93611eec8cf82f169b772c006c024b0
|
[
"BSD-2-Clause"
] | 2
|
2015-05-11T12:32:16.000Z
|
2015-05-12T08:24:51.000Z
|
src/yafowil/widget/array/example.py
|
conestack/yafowil.widget.array
|
29baec8cc93611eec8cf82f169b772c006c024b0
|
[
"BSD-2-Clause"
] | 1
|
2015-05-12T08:03:32.000Z
|
2015-05-12T08:03:32.000Z
|
from yafowil.base import factory
DOC_ARRAY_WITH_LEAFS = """
Array with single fields as array entries
-----------------------------------------
Array containing single field entries. Preset value is expected as list.
.. code-block:: python
value = ['1', '2', '3']
array = factory('#array', value=value, props={
'label': 'My Array',
'help': 'I am an array',
'required': 'Array must at least contain one entry',
})
array['field'] = factory('#arrayfield:text', props={
'label': 'Entry',
'help': 'I am an array entry',
'required': 'Entry must not be empty',
})
"""
def array_with_leafs():
form = factory('fieldset',
name='yafowil.widget.array.array_with_leafs')
value = ['1', '2', '3']
arr = form['array'] = factory('#array', value=value, props={
'label': 'My Array',
'help': 'I am an array',
'required': 'Array must at least contain one entry',
})
arr['field'] = factory('#arrayfield:text', props={
'label': 'Entry',
'help': 'I am an array entry',
'required': 'Entry must not be empty',
})
return {
'widget': form,
'doc': DOC_ARRAY_WITH_LEAFS,
'title': 'Single field array',
}
DOC_ARRAY_WITH_COMPOUNDS = """
Array with compounds as array entries
-------------------------------------
Array containing compound entries. Preset value is expected as list containing
dictionaries addressing array child compound fields by key.
.. code-block:: python
value = [
{'f1': 'Value 1.1 F1', 'f2': 'Value 1.2 F2'},
{'f1': 'Value 2.1 F1', 'f2': 'Value 2.2 F2'},
]
array = factory('#array', value=value, props={
'label': 'Compound Array'
'required': 'Array must at least contain one entry',
})
compound = array['compound'] = factory('compound')
compound['f1'] = factory('#arrayfield:text', props={
'label': 'Field 1',
})
compound['f2'] = factory('#arrayfield:text', props={
'label': 'Field 2',
'required': 'Field 2 is required',
})
"""
def array_with_compounds():
form = factory('fieldset',
name='yafowil.widget.array.array_with_compounds')
value = [
{'f1': 'Value 1.1 F1', 'f2': 'Value 1.2 F2'},
{'f1': 'Value 2.1 F1', 'f2': 'Value 2.2 F2'},
]
arr = form['array'] = factory('#array', value=value, props={
'label': 'Compound Array',
'required': 'Array must at least contain one entry',
})
comp = arr['compound'] = factory('compound')
comp['f1'] = factory('#arrayfield:text', props={
'label': 'Field 1',
})
comp['f2'] = factory('#arrayfield:text', props={
'label': 'Field 2',
'required': 'Field 2 is required',
})
return {
'widget': form,
'doc': DOC_ARRAY_WITH_COMPOUNDS,
'title': 'Compound field array',
}
DOC_ARRAY_WITH_ARRAY_WITH_LEAFS = """
Array in array with single fields
---------------------------------
Array in array containing single field entries. Preset value is a 2-dimensional
list
.. code-block:: python
value = [['1', '2'], ['3', '4'], ['5', '6']]
array = factory('#array', value=value, props={
'label': 'Array',
'required': 'Array must at least contain one entry',
})
subarray = array['subarray'] = factory('error:array', props={
'label': 'Subarray',
'required': 'Subarray must at least contain one entry',
})
subarray['field'] = factory('#arrayfield:text', props={
'label': 'Entry',
'required': 'Entry must not be empty',
})
"""
def array_with_array_with_leafs():
form = factory('fieldset',
name='yafowil.widget.array_with_array_with_leafs')
value = [['1', '2'], ['3', '4'], ['5', '6']]
arr = form['array'] = factory('#array', value=value, props={
'label': 'Array',
'required': 'Array must at least contain one entry',
})
subarr = arr['subarray'] = factory('error:array', props={
'label': 'Subarray',
'required': 'Subarray must at least contain one entry',
})
subarr['field'] = factory('#arrayfield:text', props={
'label': 'Entry',
'required': 'Entry must not be empty',
})
return {
'widget': form,
'doc': DOC_ARRAY_WITH_ARRAY_WITH_LEAFS,
'title': 'Single field array in array',
}
DOC_ARRAY_WITH_ARRAY_WITH_COMPOUNDS = """\
Array in array with compounds as array entries
----------------------------------------------
Array in array containing compound entries. Preset value is lists in list
containing dictionaries addressing inner array child compound fields by key.
.. code-block:: python
value = [
[{
'f1': 'Value 0.0 F1',
'f2': 'Value 0.0 F2',
}, {
'f1': 'Value 0.1 F1',
'f2': 'Value 0.1 F2',
}], [{
'f1': 'Value 1.0 F1',
'f2': 'Value 1.0 F2',
}, {
'f1': 'Value 1.1 F1',
'f2': 'Value 1.1 F2',
}]
]
array = factory('#array', value=value, props={
'label': 'Array 1',
})
subarray = array['subarray'] = factory('array', props={
'label': 'Array 2',
})
compound = subarray['comp'] = factory('compound')
compound['f1'] = factory('#arrayfield:text', props={
'label': 'F1',
})
compound['f2'] = factory('#arrayfield:text', props={
'label': 'F2',
'required': 'F2 is required',
})
"""
def array_with_array_with_compounds():
form = factory('fieldset',
name='yafowil.widget.array_with_array_with_compounds')
value = [
[{
'f1': 'Value 0.0 F1',
'f2': 'Value 0.0 F2',
}, {
'f1': 'Value 0.1 F1',
'f2': 'Value 0.1 F2',
}], [{
'f1': 'Value 1.0 F1',
'f2': 'Value 1.0 F2',
}, {
'f1': 'Value 1.1 F1',
'f2': 'Value 1.1 F2',
}]
]
arr = form['array'] = factory('#array', value=value, props={
'label': 'Array 1',
})
subarr = arr['subarray'] = factory('array', props={
'label': 'Array 2',
})
comp = subarr['comp'] = factory('compound')
comp['f1'] = factory('#arrayfield:text', props={
'label': 'F1',
})
comp['f2'] = factory('#arrayfield:text', props={
'label': 'F2',
'required': 'F2 is required',
})
return {
'widget': form,
'doc': DOC_ARRAY_WITH_ARRAY_WITH_COMPOUNDS,
'title': 'Compound array in array',
}
DOC_ARRAY_WITH_ARRAY_WITH_ARRAY_WITH_LEAFS = """\
3-Dimensional Array with single fields
--------------------------------------
3-Dimensional array containing single field entries. Preset value is a
3-dimensional list
.. code-block:: python
value = [[['1', '2'], ['3']], [['4', '5']]]
arr_1 = factory('#array', value=value, props={
'label': 'Array 1',
'help': 'This is Array 1',
'required': 'Array 1 must not be empty',
})
arr_2 = arr_1['array_2'] = factory('help:error:array', props={
'label': 'Array 2',
'help': 'This is Array 2',
'required': 'Array 2 must not be empty',
})
arr_3 = arr_2['array_3'] = factory('help:error:array', props={
'label': 'Array 3',
'help': 'This is Array 3',
'required': 'Array 3 must not be empty',
})
arr_3['field'] = factory('#arrayfield:text', props={
'label': 'Text Field',
'help': 'This is the text field',
'required': 'Text Field is required',
})
"""
def array_with_array_with_array_with_leafs():
form = factory(
'fieldset',
name='yafowil.widget.array_with_array_with_array_with_leafs')
value = [[['1', '2'], ['3']], [['4', '5']]]
arr_1 = form['array_1'] = factory('#array', value=value, props={
'label': 'Array 1',
'help': 'This is Array 1',
'required': 'Array 1 must not be empty',
})
arr_2 = arr_1['array_2'] = factory('help:error:array', props={
'label': 'Array 2',
'help': 'This is Array 2',
'required': 'Array 2 must not be empty',
})
arr_3 = arr_2['array_3'] = factory('help:error:array', props={
'label': 'Array 3',
'help': 'This is Array 3',
'required': 'Array 3 must not be empty',
})
arr_3['textfield'] = factory('#arrayfield:text', props={
'label': 'Text Field',
'help': 'This is the text field',
'required': 'Text Field is required',
})
return {
'widget': form,
'doc': DOC_ARRAY_WITH_ARRAY_WITH_ARRAY_WITH_LEAFS,
'title': 'Single fields in 3-dimensional array',
}
DOC_ARRAY_WITH_ARRAY_WITH_ARRAY_WITH_COMPOUNDS = """\
3-Dimensional Array with compounds
----------------------------------
3-Dimensional array containing compound entries. Preset value is a
3-dimensional list containing dictionaries addressing most inner array child
compound fields by key.
.. code-block:: python
value = [
[[{
'f1': 'Value F1',
'f2': 'Value F2',
}]], [[{
'f1': 'Value F1',
'f2': 'Value F2',
}]]
]
arr_1 = factory('#array', value=value, props={
'label': 'Array 1',
})
arr_2 = arr_1['array_2'] = factory('array', props={
'label': 'Array 2',
})
arr_3 = arr_2['array_3'] = factory('array', props={
'label': 'Array 3',
})
compound = arr_3['comp'] = factory('compound')
compound['f1'] = factory('#arrayfield:text', props={
'label': 'F1',
})
compound['f2'] = factory('#arrayfield:text', props={
'label': 'F2',
'required': 'F2 is required',
})
"""
def array_with_array_with_array_with_compounds():
form = factory(
'fieldset',
name='yafowil.widget.array_with_array_with_array_with_compounds')
value = [
[[{
'f1': 'Value F1',
'f2': 'Value F2',
}]], [[{
'f1': 'Value F1',
'f2': 'Value F2',
}]]]
arr_1 = form['array_1'] = factory('#array', value=value, props={
'label': 'Array 1',
})
arr_2 = arr_1['array_2'] = factory('array', props={
'label': 'Array 2',
})
arr_3 = arr_2['array_3'] = factory('array', props={
'label': 'Array 3',
})
comp = arr_3['comp'] = factory('compound')
comp['f1'] = factory('#arrayfield:text', props={
'label': 'F1',
})
comp['f2'] = factory('#arrayfield:text', props={
'label': 'F2',
'required': 'F2 is required',
})
return {
'widget': form,
'doc': DOC_ARRAY_WITH_ARRAY_WITH_ARRAY_WITH_COMPOUNDS,
'title': 'Compounds in 3-dimensional array',
}
def get_example():
return [
array_with_leafs(),
array_with_compounds(),
array_with_array_with_leafs(),
array_with_array_with_compounds(),
array_with_array_with_array_with_leafs(),
array_with_array_with_array_with_compounds(),
]
| 29.470899
| 79
| 0.533303
| 1,293
| 11,140
| 4.465584
| 0.062645
| 0.102875
| 0.07274
| 0.093523
| 0.926914
| 0.906477
| 0.884829
| 0.808452
| 0.760132
| 0.68999
| 0
| 0.029912
| 0.27675
| 11,140
| 377
| 80
| 29.549072
| 0.686732
| 0
| 0
| 0.714715
| 0
| 0
| 0.633303
| 0.073968
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021021
| false
| 0
| 0.003003
| 0.003003
| 0.045045
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0ba7958059d8fd39269cbaafc44547512b7dbd14
| 125,624
|
py
|
Python
|
openshift/client/apis/apps_openshift_io_v1_api.py
|
flaper87/openshift-restclient-python
|
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
|
[
"Apache-2.0"
] | null | null | null |
openshift/client/apis/apps_openshift_io_v1_api.py
|
flaper87/openshift-restclient-python
|
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
|
[
"Apache-2.0"
] | null | null | null |
openshift/client/apis/apps_openshift_io_v1_api.py
|
flaper87/openshift-restclient-python
|
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
OpenShift API (with Kubernetes)
OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is provided for service accounts as a generated secret (in JWT form) or via the native OAuth endpoint located at /oauth/authorize. Core infrastructure components may use client certificates that require no authentication. All API operations return a 'resourceVersion' string that represents the version of the object in the underlying storage. The standard LIST operation performs a snapshot read of the underlying objects, returning a resourceVersion representing a consistent version of the listed objects. The WATCH operation allows all updates to a set of objects after the provided resourceVersion to be observed by a client. By listing and beginning a watch from the returned resourceVersion, clients may observe a consistent view of the state of one or more objects. Note that WATCH always returns the update after the provided resourceVersion. Watch may be extended a limited time in the past - using etcd 2 the watch window is 1000 events (which on a large cluster may only be a few tens of seconds) so clients must explicitly handle the \"watch to old error\" by re-listing. Objects are divided into two rough categories - those that have a lifecycle and must reflect the state of the cluster, and those that have no state. Objects with lifecycle typically have three main sections: * 'metadata' common to all objects * a 'spec' that represents the desired state * a 'status' that represents how much of the desired state is reflected on the cluster at the current time Objects that have no state have 'metadata' but may lack a 'spec' or 'status' section. Objects are divided into those that are namespace scoped (only exist inside of a namespace) and those that are cluster scoped (exist outside of a namespace). A namespace scoped resource will be deleted when the namespace is deleted and cannot be created if the namespace has not yet been created or is in the process of deletion. Cluster scoped resources are typically only accessible to admins - resources like nodes, persistent volumes, and cluster policy. All objects have a schema that is a combination of the 'kind' and 'apiVersion' fields. This schema is additive only for any given version - no backwards incompatible changes are allowed without incrementing the apiVersion. The server will return and accept a number of standard responses that share a common schema - for instance, the common error type is 'unversioned.Status' (described below) and will be returned on any error from the API server. The API is available in multiple serialization formats - the default is JSON (Accept: application/json and Content-Type: application/json) but clients may also use YAML (application/yaml) or the native Protobuf schema (application/vnd.kubernetes.protobuf). Note that the format of the WATCH API call is slightly different - for JSON it returns newline delimited objects while for Protobuf it returns length-delimited frames (4 bytes in network-order) that contain a 'versioned.Watch' Protobuf object. See the OpenShift documentation at https://docs.openshift.org for more information.
OpenAPI spec version: v3.6.0-alpha.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from kubernetes.client.configuration import Configuration
from ..api_client import ApiClient
class AppsOpenshiftIoV1Api(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):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def create_apps_openshift_io_v1_deployment_config_for_all_namespaces(self, body, **kwargs):
"""
create a DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_deployment_config_for_all_namespaces(body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.create_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(body, **kwargs)
else:
(data) = self.create_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(body, **kwargs)
return data
def create_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(self, body, **kwargs):
"""
create a DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_apps_openshift_io_v1_deployment_config_for_all_namespaces" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `create_apps_openshift_io_v1_deployment_config_for_all_namespaces`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/deploymentconfigs'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_namespaced_deployment_config(self, namespace, body, **kwargs):
"""
create a DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_namespaced_deployment_config(namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.create_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(namespace, body, **kwargs)
else:
(data) = self.create_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(namespace, body, **kwargs)
return data
def create_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(self, namespace, body, **kwargs):
"""
create a DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['namespace', 'body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_apps_openshift_io_v1_namespaced_deployment_config" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `create_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `create_apps_openshift_io_v1_namespaced_deployment_config`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs'.replace('{format}', 'json')
path_params = {}
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback(self, body, name, namespace, **kwargs):
"""
create rollback of a DeploymentConfigRollback
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback(body, name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param V1DeploymentConfigRollback body: (required)
:param str name: name of the DeploymentConfigRollback (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfigRollback
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback_with_http_info(body, name, namespace, **kwargs)
else:
(data) = self.create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback_with_http_info(body, name, namespace, **kwargs)
return data
def create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback_with_http_info(self, body, name, namespace, **kwargs):
"""
create rollback of a DeploymentConfigRollback
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback_with_http_info(body, name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param V1DeploymentConfigRollback body: (required)
:param str name: name of the DeploymentConfigRollback (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfigRollback
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'name', 'namespace', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback`")
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `create_apps_openshift_io_v1_namespaced_deployment_config_rollback_rollback`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/rollback'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfigRollback',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_namespaced_deployment_request_instantiate(self, body, name, namespace, **kwargs):
"""
create instantiate of a DeploymentRequest
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_namespaced_deployment_request_instantiate(body, name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param V1DeploymentRequest body: (required)
:param str name: name of the DeploymentRequest (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentRequest
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.create_apps_openshift_io_v1_namespaced_deployment_request_instantiate_with_http_info(body, name, namespace, **kwargs)
else:
(data) = self.create_apps_openshift_io_v1_namespaced_deployment_request_instantiate_with_http_info(body, name, namespace, **kwargs)
return data
def create_apps_openshift_io_v1_namespaced_deployment_request_instantiate_with_http_info(self, body, name, namespace, **kwargs):
"""
create instantiate of a DeploymentRequest
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.create_apps_openshift_io_v1_namespaced_deployment_request_instantiate_with_http_info(body, name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param V1DeploymentRequest body: (required)
:param str name: name of the DeploymentRequest (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentRequest
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'name', 'namespace', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_apps_openshift_io_v1_namespaced_deployment_request_instantiate" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `create_apps_openshift_io_v1_namespaced_deployment_request_instantiate`")
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `create_apps_openshift_io_v1_namespaced_deployment_request_instantiate`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `create_apps_openshift_io_v1_namespaced_deployment_request_instantiate`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/instantiate'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentRequest',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_collection_namespaced_deployment_config(self, namespace, **kwargs):
"""
delete collection of DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_apps_openshift_io_v1_collection_namespaced_deployment_config(namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
:param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
:param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.
:param int timeout_seconds: Timeout for the list/watch call.
:param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
:return: UnversionedStatus
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.delete_apps_openshift_io_v1_collection_namespaced_deployment_config_with_http_info(namespace, **kwargs)
else:
(data) = self.delete_apps_openshift_io_v1_collection_namespaced_deployment_config_with_http_info(namespace, **kwargs)
return data
def delete_apps_openshift_io_v1_collection_namespaced_deployment_config_with_http_info(self, namespace, **kwargs):
"""
delete collection of DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_apps_openshift_io_v1_collection_namespaced_deployment_config_with_http_info(namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
:param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
:param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.
:param int timeout_seconds: Timeout for the list/watch call.
:param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
:return: UnversionedStatus
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_apps_openshift_io_v1_collection_namespaced_deployment_config" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `delete_apps_openshift_io_v1_collection_namespaced_deployment_config`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs'.replace('{format}', 'json')
path_params = {}
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
if 'field_selector' in params:
query_params['fieldSelector'] = params['field_selector']
if 'label_selector' in params:
query_params['labelSelector'] = params['label_selector']
if 'resource_version' in params:
query_params['resourceVersion'] = params['resource_version']
if 'timeout_seconds' in params:
query_params['timeoutSeconds'] = params['timeout_seconds']
if 'watch' in params:
query_params['watch'] = params['watch']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UnversionedStatus',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_namespaced_deployment_config(self, name, namespace, body, **kwargs):
"""
delete a DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_apps_openshift_io_v1_namespaced_deployment_config(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeleteOptions body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
:param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.
:return: UnversionedStatus
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.delete_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs)
else:
(data) = self.delete_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs)
return data
def delete_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(self, name, namespace, body, **kwargs):
"""
delete a DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeleteOptions body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
:param bool orphan_dependents: Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list.
:return: UnversionedStatus
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'body', 'pretty', 'grace_period_seconds', 'orphan_dependents']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_apps_openshift_io_v1_namespaced_deployment_config" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `delete_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `delete_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `delete_apps_openshift_io_v1_namespaced_deployment_config`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
if 'grace_period_seconds' in params:
query_params['gracePeriodSeconds'] = params['grace_period_seconds']
if 'orphan_dependents' in params:
query_params['orphanDependents'] = params['orphan_dependents']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UnversionedStatus',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_api_resources(self, **kwargs):
"""
get available resources
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_apps_openshift_io_v1_api_resources(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: UnversionedAPIResourceList
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_apps_openshift_io_v1_api_resources_with_http_info(**kwargs)
else:
(data) = self.get_apps_openshift_io_v1_api_resources_with_http_info(**kwargs)
return data
def get_apps_openshift_io_v1_api_resources_with_http_info(self, **kwargs):
"""
get available resources
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_apps_openshift_io_v1_api_resources_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: UnversionedAPIResourceList
If the method is called asynchronously,
returns the request thread.
"""
all_params = []
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_apps_openshift_io_v1_api_resources" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/'.replace('{format}', 'json')
path_params = {}
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UnversionedAPIResourceList',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_deployment_config_for_all_namespaces(self, **kwargs):
"""
list or watch objects of kind DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_apps_openshift_io_v1_deployment_config_for_all_namespaces(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str pretty: If 'true', then the output is pretty printed.
:param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
:param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
:param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.
:param int timeout_seconds: Timeout for the list/watch call.
:param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
:return: V1DeploymentConfigList
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.list_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(**kwargs)
else:
(data) = self.list_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(**kwargs)
return data
def list_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(self, **kwargs):
"""
list or watch objects of kind DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_apps_openshift_io_v1_deployment_config_for_all_namespaces_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str pretty: If 'true', then the output is pretty printed.
:param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
:param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
:param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.
:param int timeout_seconds: Timeout for the list/watch call.
:param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
:return: V1DeploymentConfigList
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_apps_openshift_io_v1_deployment_config_for_all_namespaces" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/deploymentconfigs'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
if 'field_selector' in params:
query_params['fieldSelector'] = params['field_selector']
if 'label_selector' in params:
query_params['labelSelector'] = params['label_selector']
if 'resource_version' in params:
query_params['resourceVersion'] = params['resource_version']
if 'timeout_seconds' in params:
query_params['timeoutSeconds'] = params['timeout_seconds']
if 'watch' in params:
query_params['watch'] = params['watch']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfigList',
auth_settings=auth_settings,
callback=params.get('callback'),
_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_apps_openshift_io_v1_namespaced_deployment_config(self, namespace, **kwargs):
"""
list or watch objects of kind DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_apps_openshift_io_v1_namespaced_deployment_config(namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
:param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
:param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.
:param int timeout_seconds: Timeout for the list/watch call.
:param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
:return: V1DeploymentConfigList
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.list_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(namespace, **kwargs)
else:
(data) = self.list_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(namespace, **kwargs)
return data
def list_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(self, namespace, **kwargs):
"""
list or watch objects of kind DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.list_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
:param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
:param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history.
:param int timeout_seconds: Timeout for the list/watch call.
:param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
:return: V1DeploymentConfigList
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['namespace', 'pretty', 'field_selector', 'label_selector', 'resource_version', 'timeout_seconds', 'watch']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_apps_openshift_io_v1_namespaced_deployment_config" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `list_apps_openshift_io_v1_namespaced_deployment_config`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs'.replace('{format}', 'json')
path_params = {}
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
if 'field_selector' in params:
query_params['fieldSelector'] = params['field_selector']
if 'label_selector' in params:
query_params['labelSelector'] = params['label_selector']
if 'resource_version' in params:
query_params['resourceVersion'] = params['resource_version']
if 'timeout_seconds' in params:
query_params['timeoutSeconds'] = params['timeout_seconds']
if 'watch' in params:
query_params['watch'] = params['watch']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfigList',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 patch_apps_openshift_io_v1_namespaced_deployment_config(self, name, namespace, body, **kwargs):
"""
partially update the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.patch_apps_openshift_io_v1_namespaced_deployment_config(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param UnversionedPatch body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.patch_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs)
else:
(data) = self.patch_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs)
return data
def patch_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(self, name, namespace, body, **kwargs):
"""
partially update the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.patch_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param UnversionedPatch body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_apps_openshift_io_v1_namespaced_deployment_config" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `patch_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `patch_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `patch_apps_openshift_io_v1_namespaced_deployment_config`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 patch_apps_openshift_io_v1_namespaced_deployment_config_status(self, name, namespace, body, **kwargs):
"""
partially update status of the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.patch_apps_openshift_io_v1_namespaced_deployment_config_status(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param UnversionedPatch body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.patch_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, body, **kwargs)
else:
(data) = self.patch_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, body, **kwargs)
return data
def patch_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(self, name, namespace, body, **kwargs):
"""
partially update status of the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.patch_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param UnversionedPatch body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_apps_openshift_io_v1_namespaced_deployment_config_status" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `patch_apps_openshift_io_v1_namespaced_deployment_config_status`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `patch_apps_openshift_io_v1_namespaced_deployment_config_status`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `patch_apps_openshift_io_v1_namespaced_deployment_config_status`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/status'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 patch_apps_openshift_io_v1_namespaced_scale_scale(self, name, namespace, body, **kwargs):
"""
partially update scale of the specified Scale
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.patch_apps_openshift_io_v1_namespaced_scale_scale(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the Scale (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param UnversionedPatch body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1Scale
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.patch_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs)
else:
(data) = self.patch_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs)
return data
def patch_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs):
"""
partially update scale of the specified Scale
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.patch_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the Scale (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param UnversionedPatch body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1Scale
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method patch_apps_openshift_io_v1_namespaced_scale_scale" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `patch_apps_openshift_io_v1_namespaced_scale_scale`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `patch_apps_openshift_io_v1_namespaced_scale_scale`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `patch_apps_openshift_io_v1_namespaced_scale_scale`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1beta1Scale',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 read_apps_openshift_io_v1_namespaced_deployment_config(self, name, namespace, **kwargs):
"""
read the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_deployment_config(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'
:param bool export: Should this value be exported. Export strips fields that a user can not specify.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.read_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, **kwargs)
else:
(data) = self.read_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, **kwargs)
return data
def read_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(self, name, namespace, **kwargs):
"""
read the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'
:param bool export: Should this value be exported. Export strips fields that a user can not specify.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'pretty', 'exact', 'export']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method read_apps_openshift_io_v1_namespaced_deployment_config" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `read_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `read_apps_openshift_io_v1_namespaced_deployment_config`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
if 'exact' in params:
query_params['exact'] = params['exact']
if 'export' in params:
query_params['export'] = params['export']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 read_apps_openshift_io_v1_namespaced_deployment_config_status(self, name, namespace, **kwargs):
"""
read status of the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_deployment_config_status(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.read_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, **kwargs)
else:
(data) = self.read_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, **kwargs)
return data
def read_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(self, name, namespace, **kwargs):
"""
read status of the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method read_apps_openshift_io_v1_namespaced_deployment_config_status" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `read_apps_openshift_io_v1_namespaced_deployment_config_status`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `read_apps_openshift_io_v1_namespaced_deployment_config_status`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/status'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 read_apps_openshift_io_v1_namespaced_deployment_log_log(self, name, namespace, **kwargs):
"""
read log of the specified DeploymentLog
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_deployment_log_log(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentLog (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod.
:param bool follow: Follow if true indicates that the build log should be streamed until the build terminates.
:param int limit_bytes: If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.
:param bool nowait: NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started.
:param str pretty: If 'true', then the output is pretty printed.
:param bool previous: Return previous deployment logs. Defaults to false.
:param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
:param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
:param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
:param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.
:param int version: Version of the deployment for which to view logs.
:return: V1DeploymentLog
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.read_apps_openshift_io_v1_namespaced_deployment_log_log_with_http_info(name, namespace, **kwargs)
else:
(data) = self.read_apps_openshift_io_v1_namespaced_deployment_log_log_with_http_info(name, namespace, **kwargs)
return data
def read_apps_openshift_io_v1_namespaced_deployment_log_log_with_http_info(self, name, namespace, **kwargs):
"""
read log of the specified DeploymentLog
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_deployment_log_log_with_http_info(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentLog (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod.
:param bool follow: Follow if true indicates that the build log should be streamed until the build terminates.
:param int limit_bytes: If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.
:param bool nowait: NoWait if true causes the call to return immediately even if the deployment is not available yet. Otherwise the server will wait until the deployment has started.
:param str pretty: If 'true', then the output is pretty printed.
:param bool previous: Return previous deployment logs. Defaults to false.
:param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
:param str since_time: An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
:param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
:param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.
:param int version: Version of the deployment for which to view logs.
:return: V1DeploymentLog
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'nowait', 'pretty', 'previous', 'since_seconds', 'since_time', 'tail_lines', 'timestamps', 'version']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method read_apps_openshift_io_v1_namespaced_deployment_log_log" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `read_apps_openshift_io_v1_namespaced_deployment_log_log`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `read_apps_openshift_io_v1_namespaced_deployment_log_log`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/log'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'container' in params:
query_params['container'] = params['container']
if 'follow' in params:
query_params['follow'] = params['follow']
if 'limit_bytes' in params:
query_params['limitBytes'] = params['limit_bytes']
if 'nowait' in params:
query_params['nowait'] = params['nowait']
if 'pretty' in params:
query_params['pretty'] = params['pretty']
if 'previous' in params:
query_params['previous'] = params['previous']
if 'since_seconds' in params:
query_params['sinceSeconds'] = params['since_seconds']
if 'since_time' in params:
query_params['sinceTime'] = params['since_time']
if 'tail_lines' in params:
query_params['tailLines'] = params['tail_lines']
if 'timestamps' in params:
query_params['timestamps'] = params['timestamps']
if 'version' in params:
query_params['version'] = params['version']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentLog',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 read_apps_openshift_io_v1_namespaced_scale_scale(self, name, namespace, **kwargs):
"""
read scale of the specified Scale
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_scale_scale(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the Scale (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1Scale
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.read_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, **kwargs)
else:
(data) = self.read_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, **kwargs)
return data
def read_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(self, name, namespace, **kwargs):
"""
read scale of the specified Scale
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.read_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the Scale (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1Scale
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method read_apps_openshift_io_v1_namespaced_scale_scale" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `read_apps_openshift_io_v1_namespaced_scale_scale`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `read_apps_openshift_io_v1_namespaced_scale_scale`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1beta1Scale',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 replace_apps_openshift_io_v1_namespaced_deployment_config(self, name, namespace, body, **kwargs):
"""
replace the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.replace_apps_openshift_io_v1_namespaced_deployment_config(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.replace_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs)
else:
(data) = self.replace_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, **kwargs)
return data
def replace_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(self, name, namespace, body, **kwargs):
"""
replace the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.replace_apps_openshift_io_v1_namespaced_deployment_config_with_http_info(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method replace_apps_openshift_io_v1_namespaced_deployment_config" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `replace_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `replace_apps_openshift_io_v1_namespaced_deployment_config`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `replace_apps_openshift_io_v1_namespaced_deployment_config`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 replace_apps_openshift_io_v1_namespaced_deployment_config_status(self, name, namespace, body, **kwargs):
"""
replace status of the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.replace_apps_openshift_io_v1_namespaced_deployment_config_status(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.replace_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, body, **kwargs)
else:
(data) = self.replace_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, body, **kwargs)
return data
def replace_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(self, name, namespace, body, **kwargs):
"""
replace status of the specified DeploymentConfig
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.replace_apps_openshift_io_v1_namespaced_deployment_config_status_with_http_info(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the DeploymentConfig (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1DeploymentConfig body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1DeploymentConfig
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method replace_apps_openshift_io_v1_namespaced_deployment_config_status" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `replace_apps_openshift_io_v1_namespaced_deployment_config_status`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `replace_apps_openshift_io_v1_namespaced_deployment_config_status`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `replace_apps_openshift_io_v1_namespaced_deployment_config_status`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/status'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1DeploymentConfig',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 replace_apps_openshift_io_v1_namespaced_scale_scale(self, name, namespace, body, **kwargs):
"""
replace scale of the specified Scale
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.replace_apps_openshift_io_v1_namespaced_scale_scale(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the Scale (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1beta1Scale body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1Scale
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.replace_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs)
else:
(data) = self.replace_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, body, **kwargs)
return data
def replace_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(self, name, namespace, body, **kwargs):
"""
replace scale of the specified Scale
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.replace_apps_openshift_io_v1_namespaced_scale_scale_with_http_info(name, namespace, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str name: name of the Scale (required)
:param str namespace: object name and auth scope, such as for teams and projects (required)
:param V1beta1Scale body: (required)
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1Scale
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'namespace', 'body', 'pretty']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method replace_apps_openshift_io_v1_namespaced_scale_scale" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params) or (params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `replace_apps_openshift_io_v1_namespaced_scale_scale`")
# verify the required parameter 'namespace' is set
if ('namespace' not in params) or (params['namespace'] is None):
raise ValueError("Missing the required parameter `namespace` when calling `replace_apps_openshift_io_v1_namespaced_scale_scale`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `replace_apps_openshift_io_v1_namespaced_scale_scale`")
collection_formats = {}
resource_path = '/apis/apps.openshift.io/v1/namespaces/{namespace}/deploymentconfigs/{name}/scale'.replace('{format}', 'json')
path_params = {}
if 'name' in params:
path_params['name'] = params['name']
if 'namespace' in params:
path_params['namespace'] = params['namespace']
query_params = {}
if 'pretty' in params:
query_params['pretty'] = params['pretty']
header_params = {}
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', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['*/*'])
# Authentication setting
auth_settings = ['BearerToken']
return self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='V1beta1Scale',
auth_settings=auth_settings,
callback=params.get('callback'),
_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)
| 52.983551
| 3,330
| 0.626656
| 13,764
| 125,624
| 5.492444
| 0.034801
| 0.033017
| 0.038096
| 0.043176
| 0.945541
| 0.943874
| 0.943874
| 0.941705
| 0.940567
| 0.939403
| 0
| 0.00345
| 0.296297
| 125,624
| 2,370
| 3,331
| 53.005907
| 0.851712
| 0.37028
| 0
| 0.822648
| 0
| 0
| 0.235888
| 0.100563
| 0
| 0
| 0
| 0
| 0
| 1
| 0.032473
| false
| 0
| 0.005828
| 0
| 0.086595
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 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
| 8
|
b2e88630445cfe56752f2269ec44c8da88ce1e33
| 23,685
|
py
|
Python
|
panda/tests/test_api_dataset.py
|
eads/panda
|
3e343b9e30288abfe39a4a4bff72277d7635dc77
|
[
"MIT"
] | 1
|
2017-04-11T07:26:06.000Z
|
2017-04-11T07:26:06.000Z
|
panda/tests/test_api_dataset.py
|
eads/panda
|
3e343b9e30288abfe39a4a4bff72277d7635dc77
|
[
"MIT"
] | null | null | null |
panda/tests/test_api_dataset.py
|
eads/panda
|
3e343b9e30288abfe39a4a4bff72277d7635dc77
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
from django.conf import settings
from django.test import TestCase, TransactionTestCase
from django.test.client import Client
from django.utils import simplejson as json
from tastypie.bundle import Bundle
from panda import solr
from panda.api.datasets import DatasetValidation
from panda.models import Category, Dataset
from panda.tests import utils
class TestDatasetValidation(TestCase):
def setUp(self):
self.validator = DatasetValidation()
def test_required_fields(self):
bundle = Bundle(data={})
errors = self.validator.is_valid(bundle)
self.assertIn('name', errors)
class TestAPIDataset(TransactionTestCase):
fixtures = ['init_panda.json']
def setUp(self):
settings.CELERY_ALWAYS_EAGER = True
utils.setup_test_solr()
self.user = utils.get_panda_user()
self.dataset = utils.get_test_dataset(self.user)
self.upload = utils.get_test_data_upload(self.user, self.dataset)
self.auth_headers = utils.get_auth_headers()
self.client = Client()
def test_get(self):
# Import so that there will be a task object
self.dataset.import_data(self.user, self.upload, 0)
utils.wait()
# Refetch dataset so that attributes will be updated
self.dataset = Dataset.objects.get(id=self.dataset.id)
response = self.client.get('/api/1.0/dataset/%s/' % self.dataset.slug, **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(body['name'], self.dataset.name)
self.assertEqual(body['description'], self.dataset.description)
self.assertEqual(body['row_count'], self.dataset.row_count)
self.assertEqual(body['sample_data'], self.dataset.sample_data)
self.assertEqual(body['column_schema'], self.dataset.column_schema)
self.assertEqual(body['creator']['email'], self.dataset.creator.email)
task_response = self.client.get('/api/1.0/task/%i/' % self.dataset.current_task.id, **self.auth_headers)
self.assertEqual(task_response.status_code, 200)
self.assertEqual(body['current_task'], json.loads(task_response.content))
self.assertEqual(len(body['related_uploads']), 0)
self.assertEqual(len(body['data_uploads']), 1)
self.assertEqual(body['initial_upload'], '/api/1.0/data_upload/%i/' % self.dataset.initial_upload.id)
def test_get_unauthorized(self):
response = self.client.get('/api/1.0/dataset/%s/' % self.dataset.slug)
self.assertEqual(response.status_code, 401)
def test_get_inactive(self):
self.user.is_active = False
self.user.save()
response = self.client.get('/api/1.0/dataset/%s/' % self.dataset.slug, **self.auth_headers)
self.assertEqual(response.status_code, 401)
self.user.is_active = True
self.user.save()
def test_list(self):
response = self.client.get('/api/1.0/dataset/', data={ 'limit': 5 }, **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(len(body['objects']), 1)
self.assertEqual(body['meta']['total_count'], 1)
self.assertEqual(body['meta']['limit'], 5)
self.assertEqual(body['meta']['offset'], 0)
self.assertEqual(body['meta']['next'], None)
self.assertEqual(body['meta']['previous'], None)
def test_list_filtered_by_category_miss(self):
response = self.client.get('/api/1.0/dataset/', data={ 'category': 'crime' }, **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(len(body['objects']), 0)
self.assertEqual(body['meta']['total_count'], 0)
def test_list_filtered_by_category_hit(self):
category = Category.objects.get(slug='crime')
self.dataset.categories.add(category)
self.dataset.save()
self.dataset.update_full_text()
response = self.client.get('/api/1.0/dataset/', data={ 'category': 'crime' }, **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(len(body['objects']), 1)
self.assertEqual(body['meta']['total_count'], 1)
self.assertEqual(int(body['objects'][0]['id']), self.dataset.id)
def test_create_post(self):
new_dataset = {
'name': 'New dataset!',
'description': 'Its got yummy data!'
}
response = self.client.post('/api/1.0/dataset/', content_type='application/json', data=json.dumps(new_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 201)
body = json.loads(response.content)
self.assertEqual(body['name'], 'New dataset!')
self.assertEqual(body['slug'], 'new-dataset')
self.assertEqual(body['description'], 'Its got yummy data!')
self.assertEqual(body['row_count'], None)
self.assertEqual(body['column_schema'], None)
self.assertEqual(body['sample_data'], None)
self.assertEqual(body['current_task'], None)
self.assertEqual(body['initial_upload'], None)
self.assertEqual(body['related_uploads'], [])
self.assertEqual(body['data_uploads'], [])
new_dataset = Dataset.objects.get(id=body['id'])
self.assertEqual(new_dataset.name, 'New dataset!')
self.assertEqual(new_dataset.description, 'Its got yummy data!')
self.assertEqual(new_dataset.row_count, None)
self.assertEqual(new_dataset.column_schema, None)
self.assertEqual(new_dataset.sample_data, None)
self.assertEqual(new_dataset.current_task, None)
self.assertEqual(new_dataset.initial_upload, None)
self.assertEqual(new_dataset.related_uploads.count(), 0)
self.assertEqual(new_dataset.data_uploads.count(), 0)
def test_create_post_slug(self):
# Verify that new slugs are NOT created via POST.
new_dataset = {
'slug': 'new-slug',
'name': 'New dataset!',
'description': 'Its got yummy data!'
}
response = self.client.post('/api/1.0/dataset/', content_type='application/json', data=json.dumps(new_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 201)
body = json.loads(response.content)
self.assertEqual(body['slug'], 'new-slug')
new_dataset = Dataset.objects.get(id=body['id'])
self.assertEqual(new_dataset.slug, 'new-slug')
def test_create_put(self):
new_dataset = {
'name': 'New dataset!',
'description': 'Its got yummy data!'
}
response = self.client.put('/api/1.0/dataset/new-id/', content_type='application/json', data=json.dumps(new_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 201)
body = json.loads(response.content)
self.assertEqual(body['name'], 'New dataset!')
self.assertEqual(body['slug'], 'new-id')
self.assertEqual(body['description'], 'Its got yummy data!')
self.assertEqual(body['row_count'], None)
self.assertEqual(body['column_schema'], None)
self.assertEqual(body['sample_data'], None)
self.assertEqual(body['current_task'], None)
self.assertEqual(body['initial_upload'], None)
self.assertEqual(body['data_uploads'], [])
new_dataset = Dataset.objects.get(id=body['id'])
self.assertEqual(new_dataset.name, 'New dataset!')
self.assertEqual(new_dataset.slug, 'new-id')
self.assertEqual(new_dataset.description, 'Its got yummy data!')
self.assertEqual(new_dataset.row_count, None)
self.assertEqual(new_dataset.column_schema, None)
self.assertEqual(new_dataset.sample_data, None)
self.assertEqual(new_dataset.current_task, None)
self.assertEqual(new_dataset.initial_upload, None)
self.assertEqual(new_dataset.data_uploads.count(), 0)
def test_create_put_twice(self):
new_dataset = {
'name': 'New dataset!',
'description': 'Its got yummy data!'
}
response = self.client.put('/api/1.0/dataset/new-slug/', content_type='application/json', data=json.dumps(new_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 201)
update_dataset = {
'name': 'Updated dataset!'
}
body = json.loads(response.content)
self.assertEqual(body['name'], 'New dataset!')
self.assertEqual(body['slug'], 'new-slug')
dataset_id = body['id']
response = self.client.put('/api/1.0/dataset/new-slug/', content_type='application/json', data=json.dumps(update_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 202)
body = json.loads(response.content)
self.assertEqual(body['name'], 'Updated dataset!')
self.assertEqual(body['slug'], 'new-slug')
self.assertEqual(body['id'], dataset_id)
# One dataset is created by setup
self.assertEqual(Dataset.objects.all().count(), 2)
def test_put_different_slug(self):
new_dataset = {
'name': 'New dataset!',
'description': 'Its got yummy data!'
}
response = self.client.put('/api/1.0/dataset/new-slug/', content_type='application/json', data=json.dumps(new_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 201)
update_dataset = {
'slug': 'changed-slug',
'name': 'Updated dataset!'
}
response = self.client.put('/api/1.0/dataset/new-slug/', content_type='application/json', data=json.dumps(update_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 202)
body = json.loads(response.content)
self.assertEqual(body['slug'], 'new-slug')
new_dataset = Dataset.objects.get(id=body['id'])
self.assertEqual(new_dataset.slug, 'new-slug')
def test_create_as_new_user(self):
new_user = {
'email': 'tester@tester.com',
'password': 'test',
'first_name': 'Testy',
'last_name': 'McTester'
}
response = self.client.post('/api/1.0/user/', content_type='application/json', data=json.dumps(new_user), **utils.get_auth_headers('panda@pandaproject.net'))
self.assertEqual(response.status_code, 201)
new_dataset = {
'name': 'New dataset!',
'description': 'Its got yummy data!'
}
response = self.client.post('/api/1.0/dataset/', content_type='application/json', data=json.dumps(new_dataset), **utils.get_auth_headers('tester@tester.com'))
self.assertEqual(response.status_code, 201)
def test_update_readonly(self):
response = self.client.get('/api/1.0/dataset/%s/' % self.dataset.slug, content_type='application/json', **utils.get_auth_headers('panda@pandaproject.net'))
data = json.loads(response.content)
row_count = data['row_count']
data['row_count'] = 2717
response = self.client.put('/api/1.0/dataset/%s/' % self.dataset.slug, content_type='application/json', data=json.dumps(data), **utils.get_auth_headers('panda@pandaproject.net'))
new_data = json.loads(response.content)
self.assertEqual(new_data['row_count'], row_count)
# Refresh
self.dataset = Dataset.objects.get(id=self.dataset.id)
self.assertEqual(self.dataset.row_count, row_count)
def test_create_with_schema(self):
new_dataset = {
'name': 'New dataset!'
}
response = self.client.post('/api/1.0/dataset/?columns=foo,bar,baz&typed_columns=True,,False&column_types=int,unicode,date', content_type='application/json', data=json.dumps(new_dataset), **self.auth_headers)
self.assertEqual(response.status_code, 201)
body = json.loads(response.content)
self.assertEqual([c['name'] for c in body['column_schema']], ['foo', 'bar', 'baz'])
self.assertEqual([c['indexed'] for c in body['column_schema']], [True, False, False])
self.assertEqual([c['type'] for c in body['column_schema']], ['int', 'unicode', 'date'])
new_dataset = Dataset.objects.get(id=body['id'])
self.assertEqual([c['name'] for c in new_dataset.column_schema], ['foo', 'bar', 'baz'])
self.assertEqual([c['indexed'] for c in new_dataset.column_schema], [True, False, False])
self.assertEqual([c['type'] for c in new_dataset.column_schema], ['int', 'unicode', 'date'])
def test_import_data(self):
response = self.client.get('/api/1.0/dataset/%s/import/%i/' % (self.dataset.slug, self.upload.id), **self.auth_headers)
utils.wait()
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertNotEqual(body['current_task'], None)
self.assertEqual(body['current_task']['task_name'], 'panda.tasks.import.csv')
# Refetch dataset so that attributes will be updated
self.dataset = Dataset.objects.get(id=self.dataset.id)
self.assertEqual(self.dataset.row_count, 4)
self.assertEqual([c['name'] for c in self.dataset.column_schema], self.upload.columns)
self.assertEqual(self.dataset.initial_upload, self.upload)
self.assertEqual(self.dataset.sample_data, self.upload.sample_data)
task = self.dataset.current_task
self.assertNotEqual(task, None)
self.assertEqual(task.status, 'SUCCESS')
self.assertEqual(task.task_name, 'panda.tasks.import.csv')
self.assertNotEqual(task.start, None)
self.assertNotEqual(task.end, None)
self.assertEqual(task.traceback, None)
self.assertEqual(solr.query(settings.SOLR_DATA_CORE, 'Christopher')['response']['numFound'], 1)
def test_import_data_locked(self):
# Note - testing a race condition here, should find a better way
response = self.client.get('/api/1.0/dataset/%s/import/%i/' % (self.dataset.slug, self.upload.id), **self.auth_headers)
response = self.client.get('/api/1.0/dataset/%s/import/%i/' % (self.dataset.slug, self.upload.id), **self.auth_headers)
self.assertEqual(response.status_code, 403)
def test_import_data_unauthorized(self):
response = self.client.get('/api/1.0/dataset/%s/import/%i/' % (self.dataset.slug, self.upload.id))
self.assertEqual(response.status_code, 401)
def test_reindex_data(self):
response = self.client.get('/api/1.0/dataset/%s/import/%i/' % (self.dataset.slug, self.upload.id), **self.auth_headers)
utils.wait()
response = self.client.get('/api/1.0/dataset/%s/reindex/?typed_columns=True,False,False,False' % (self.dataset.slug), **self.auth_headers)
utils.wait()
self.assertEqual(response.status_code, 200)
# Refetch dataset so that attributes will be updated
self.dataset = Dataset.objects.get(id=self.dataset.id)
self.assertEqual(self.dataset.row_count, 4)
self.assertEqual([c['name'] for c in self.dataset.column_schema], self.upload.columns)
self.assertEqual(self.dataset.initial_upload, self.upload)
self.assertEqual(self.dataset.sample_data, self.upload.sample_data)
task = self.dataset.current_task
self.assertNotEqual(task, None)
self.assertEqual(task.status, 'SUCCESS')
self.assertEqual(task.task_name, 'panda.tasks.reindex')
self.assertNotEqual(task.start, None)
self.assertNotEqual(task.end, None)
self.assertEqual(task.traceback, None)
self.assertEqual(solr.query(settings.SOLR_DATA_CORE, 'column_int_id:3')['response']['numFound'], 1)
def test_reindex_data_no_data(self):
response = self.client.get('/api/1.0/dataset/%s/reindex/' % (self.dataset.slug), **self.auth_headers)
utils.wait()
self.assertEqual(response.status_code, 400)
def test_reindex_data_invalid_columns(self):
response = self.client.get('/api/1.0/dataset/%s/import/%i/' % (self.dataset.slug, self.upload.id), **self.auth_headers)
utils.wait()
response = self.client.get('/api/1.0/dataset/%s/reindex/?typed_columns=True,False,False' % (self.dataset.slug), **self.auth_headers)
utils.wait()
self.assertEqual(response.status_code, 400)
def test_export_data(self):
self.dataset.import_data(self.user, self.upload, 0)
utils.wait()
response = self.client.get('/api/1.0/dataset/%s/export/' % self.dataset.slug, **self.auth_headers)
utils.wait()
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertNotEqual(body['current_task'], None)
self.assertEqual(body['current_task']['task_name'], 'panda.tasks.export.csv')
# Refetch dataset so that attributes will be updated
self.dataset = Dataset.objects.get(id=self.dataset.id)
task = self.dataset.current_task
self.assertNotEqual(task, None)
self.assertEqual(task.status, 'SUCCESS')
self.assertEqual(task.task_name, 'panda.tasks.export.csv')
self.assertNotEqual(task.start, None)
self.assertNotEqual(task.end, None)
self.assertEqual(task.traceback, None)
def test_get_datum(self):
self.dataset.import_data(self.user, self.upload, 0)
utils.wait()
# Refetch dataset so that attributes will be updated
self.dataset = Dataset.objects.get(id=self.dataset.id)
# Get id of a datum in Solr
datum = solr.query(settings.SOLR_DATA_CORE, 'dataset_slug:%s AND Brian' % self.dataset.slug)['response']['docs'][0]
response = self.client.get('/api/1.0/dataset/%s/data/%s/' % (self.dataset.slug, datum['external_id']), **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
# Verify that correct attributes of the dataset are attached
self.assertEqual(body['external_id'], datum['external_id'])
self.assertEqual(body['dataset'], '/api/1.0/dataset/%s/' % self.dataset.slug)
def test_get_data(self):
self.dataset.import_data(self.user, self.upload, 0)
utils.wait()
# Refetch dataset so that attributes will be updated
self.dataset = Dataset.objects.get(id=self.dataset.id)
# Import second dataset so we can make sure only one is matched
second_dataset = Dataset.objects.create(
name='Second dataset',
creator=self.dataset.creator)
# Bending a rules a bit since this upload is associated with the other dataset
second_dataset.import_data(self.user, self.upload, 0)
utils.wait()
response = self.client.get('/api/1.0/dataset/%s/data/' % self.dataset.slug, **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
# Verify that correct attributes of the dataset are attached
self.assertEqual(int(body['id']), self.dataset.id)
self.assertEqual(body['name'], self.dataset.name)
self.assertEqual(body['row_count'], self.dataset.row_count)
self.assertEqual(body['column_schema'], self.dataset.column_schema)
# Test that only one dataset was matched
self.assertEqual(body['meta']['total_count'], 4)
self.assertEqual(len(body['objects']), 4)
self.assertEqual(body['objects'][0]['data'][1], 'Brian')
def test_search_data(self):
self.dataset.import_data(self.user, self.upload, 0)
utils.wait()
# Refetch dataset so that attributes will be updated
self.dataset = Dataset.objects.get(id=self.dataset.id)
# Import second dataset so we can make sure only one is matched
second_dataset = Dataset.objects.create(
name='Second dataset',
creator=self.dataset.creator)
# Bending the rules again...
second_dataset.import_data(self.user, self.upload, 0)
utils.wait()
response = self.client.get('/api/1.0/dataset/%s/data/?q=Christopher' % self.dataset.slug, **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
# Verify that correct attributes of the dataset are attached
self.assertEqual(int(body['id']), self.dataset.id)
self.assertEqual(body['name'], self.dataset.name)
self.assertEqual(body['row_count'], self.dataset.row_count)
self.assertEqual(body['column_schema'], self.dataset.column_schema)
# Test that only one dataset was matched
self.assertEqual(body['meta']['total_count'], 1)
self.assertEqual(len(body['objects']), 1)
self.assertEqual(body['objects'][0]['data'][1], 'Christopher')
def test_search_data_limit(self):
self.dataset.import_data(self.user, self.upload, 0)
utils.wait()
response = self.client.get('/api/1.0/dataset/%s/data/?q=Tribune&limit=1' % self.dataset.slug, **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(body['meta']['limit'], 1)
self.assertEqual(body['meta']['offset'], 0)
self.assertEqual(body['meta']['total_count'], 2)
self.assertIs(body['meta']['previous'], None)
self.assertIsNot(body['meta']['next'], None)
self.assertEqual(len(body['objects']), 1)
def test_search_data_unauthorized(self):
response = self.client.get('/api/1.0/dataset/%s/data/?q=Christopher' % self.dataset.slug)
self.assertEqual(response.status_code, 401)
def test_search_datasets(self):
second_dataset = Dataset.objects.create(
name='Second dataset',
description='contributors',
creator=self.dataset.creator)
second_dataset.update_full_text()
# Should match both
response = self.client.get('/api/1.0/dataset/?q=contributors', **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(body['meta']['total_count'], 2)
self.assertEqual(len(body['objects']), 2)
# Should match only the second dataset
response = self.client.get('/api/1.0/dataset/?q=second', **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(body['meta']['total_count'], 1)
self.assertEqual(len(body['objects']), 1)
self.assertEqual(int(body['objects'][0]['id']), second_dataset.id)
def test_search_datasets_simple(self):
response = self.client.get('/api/1.0/dataset/?q=contributors&simple=true', **self.auth_headers)
self.assertEqual(response.status_code, 200)
body = json.loads(response.content)
self.assertEqual(body['meta']['total_count'], 1)
self.assertEqual(len(body['objects']), 1)
self.assertEqual(int(body['objects'][0]['id']), self.dataset.id)
self.assertNotIn('related_uploads', body['objects'][0])
self.assertNotIn('data_uploads', body['objects'][0])
self.assertNotIn('sample_data', body['objects'][0])
self.assertNotIn('current_task', body['objects'][0])
| 38.512195
| 216
| 0.652312
| 2,987
| 23,685
| 5.050552
| 0.078005
| 0.156105
| 0.076826
| 0.028636
| 0.821291
| 0.796566
| 0.765677
| 0.74062
| 0.724248
| 0.715299
| 0
| 0.012346
| 0.203167
| 23,685
| 614
| 217
| 38.574919
| 0.786997
| 0.047921
| 0
| 0.594872
| 0
| 0.005128
| 0.15388
| 0.045907
| 0
| 0
| 0
| 0
| 0.448718
| 1
| 0.079487
| false
| 0.002564
| 0.071795
| 0
| 0.158974
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b2f34a78d4b90c31e534b2ad98d920ac8e6fad84
| 129
|
py
|
Python
|
src/lesson_mathematics/math_gcd.py
|
jasonwee/asus-rt-n14uhp-mrtg
|
4fa96c3406e32ea6631ce447db6d19d70b2cd061
|
[
"Apache-2.0"
] | 3
|
2018-08-14T09:33:52.000Z
|
2022-03-21T12:31:58.000Z
|
src/lesson_mathematics/math_gcd.py
|
jasonwee/asus-rt-n14uhp-mrtg
|
4fa96c3406e32ea6631ce447db6d19d70b2cd061
|
[
"Apache-2.0"
] | null | null | null |
src/lesson_mathematics/math_gcd.py
|
jasonwee/asus-rt-n14uhp-mrtg
|
4fa96c3406e32ea6631ce447db6d19d70b2cd061
|
[
"Apache-2.0"
] | null | null | null |
import math
print(math.gcd(10, 8))
print(math.gcd(10, 0))
print(math.gcd(50, 225))
print(math.gcd(11, 9))
print(math.gcd(0, 0))
| 16.125
| 24
| 0.666667
| 27
| 129
| 3.185185
| 0.407407
| 0.523256
| 0.697674
| 0.325581
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 0.100775
| 129
| 7
| 25
| 18.428571
| 0.603448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.166667
| 0
| 0.166667
| 0.833333
| 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
|
653906019832150270fc67d0fd662770dd2f0b1c
| 6,291
|
py
|
Python
|
lib/meshrenderer/gl_utils/texture.py
|
AlbertoRemus/GDR_Net
|
114cff27c6fc6048724a6f2bdce2306ab51d798e
|
[
"Apache-2.0"
] | 132
|
2021-02-25T10:45:29.000Z
|
2022-03-30T06:54:26.000Z
|
lib/meshrenderer/gl_utils/texture.py
|
AlbertoRemus/GDR_Net
|
114cff27c6fc6048724a6f2bdce2306ab51d798e
|
[
"Apache-2.0"
] | 69
|
2021-03-23T12:26:17.000Z
|
2022-03-29T09:08:11.000Z
|
lib/meshrenderer/gl_utils/texture.py
|
AlbertoRemus/GDR_Net
|
114cff27c6fc6048724a6f2bdce2306ab51d798e
|
[
"Apache-2.0"
] | 23
|
2021-03-26T06:21:32.000Z
|
2022-03-23T23:53:51.000Z
|
# -*- coding: utf-8 -*-
import numpy as np
from OpenGL.GL import *
from OpenGL.GL.NV.bindless_texture import *
class Texture(object):
def __init__(self, tex_type, levels, internalformat, W, H):
self.__id = np.empty(1, dtype=np.uint32)
glCreateTextures(tex_type, len(self.__id), self.__id)
glTextureStorage2D(self.__id[0], levels, internalformat, W, H)
self.__handle = None
def setFilter(self, min_filter, max_filter):
glTextureParameteri(self.__id[0], GL_TEXTURE_MIN_FILTER, min_filter)
glTextureParameteri(self.__id[0], GL_TEXTURE_MAG_FILTER, max_filter)
def setWrap(self, wrap_s, wrap_t, wrap_r=None):
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_S, wrap_s)
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_T, wrap_t)
if wrap_r != None:
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_R, wrap_r)
def subImage(self, level, xoffset, yoffset, width, height, data_format, data_type, pixels):
glTextureSubImage2D(self.__id[0], level, xoffset, yoffset, width, height, data_format, data_type, pixels)
def generate_mipmap(self):
glGenerateTextureMipmap(self.__id[0])
def makeResident(self):
self.__handle = glGetTextureHandleNV(self.__id[0])
glMakeTextureHandleResidentNV(self.__handle)
return self.__handle
def makeNonResident(self):
if self.__handle != None:
glMakeTextureHandleNonResidentNV(self.__handle)
def delete(self):
glDeleteTextures(1, self.__id)
@property
def handle(self):
return self.__handle
@property
def id(self):
return self.__id[0]
class Texture1D(object):
def __init__(self, levels, internalformat, W):
self.__id = np.empty(1, dtype=np.uint32)
glCreateTextures(GL_TEXTURE_1D, len(self.__id), self.__id)
glTextureStorage1D(self.__id[0], levels, internalformat, W)
self.__handle = None
def setFilter(self, min_filter, max_filter):
glTextureParameteri(self.__id[0], GL_TEXTURE_MIN_FILTER, min_filter)
glTextureParameteri(self.__id[0], GL_TEXTURE_MAG_FILTER, max_filter)
def setWrap(self, wrap_s, wrap_t, wrap_r=None):
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_S, wrap_s)
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_T, wrap_t)
if wrap_r != None:
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_R, wrap_r)
def subImage(self, level, xoffset, width, data_format, data_type, pixels):
glTextureSubImage1D(self.__id[0], level, xoffset, width, data_format, data_type, pixels)
def generate_mipmap(self):
glGenerateTextureMipmap(self.__id[0])
def makeResident(self):
self.__handle = glGetTextureHandleNV(self.__id[0])
glMakeTextureHandleResidentNV(self.__handle)
return self.__handle
def makeNonResident(self):
if self.__handle != None:
glMakeTextureHandleNonResidentNV(self.__handle)
def delete(self):
glDeleteTextures(1, self.__id)
@property
def handle(self):
return self.__handle
@property
def id(self):
return self.__id[0]
class Texture3D(object):
def __init__(self, tex_type, levels, internalformat, W, H, C):
self.__id = np.empty(1, dtype=np.uint32)
glCreateTextures(tex_type, len(self.__id), self.__id)
glTextureStorage3D(self.__id[0], levels, internalformat, W, H, C)
self.__handle = None
def setFilter(self, min_filter, max_filter):
glTextureParameteri(self.__id[0], GL_TEXTURE_MIN_FILTER, min_filter)
glTextureParameteri(self.__id[0], GL_TEXTURE_MAG_FILTER, max_filter)
def setWrap(self, wrap_s, wrap_t, wrap_r=None):
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_S, wrap_s)
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_T, wrap_t)
if wrap_r != None:
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_R, wrap_r)
def subImage(self, level, xoffset, yoffset, zoffset, width, height, depth, data_format, data_type, pixels):
glTextureSubImage3D(
self.__id[0], level, xoffset, yoffset, zoffset, width, height, depth, data_format, data_type, pixels
)
def generate_mipmap(self):
glGenerateTextureMipmap(self.__id[0])
def makeResident(self):
self.__handle = glGetTextureHandleNV(self.__id[0])
glMakeTextureHandleResidentNV(self.__handle)
return self.__handle
def makeNonResident(self):
if self.__handle != None:
glMakeTextureHandleNonResidentNV(self.__handle)
def delete(self):
glDeleteTextures(1, self.__id)
@property
def handle(self):
return self.__handle
@property
def id(self):
return self.__id[0]
class TextureMultisample(object):
def __init__(self, samples, internalformat, W, H, fixedsamplelocations):
self.__id = np.empty(1, dtype=np.uint32)
glCreateTextures(GL_TEXTURE_2D_MULTISAMPLE, len(self.__id), self.__id)
glTextureStorage2DMultisample(self.__id[0], samples, internalformat, W, H, fixedsamplelocations)
self.__handle = None
def setFilter(self, min_filter, max_filter):
glTextureParameteri(self.__id[0], GL_TEXTURE_MIN_FILTER, min_filter)
glTextureParameteri(self.__id[0], GL_TEXTURE_MAG_FILTER, max_filter)
def setWrap(self, wrap_s, wrap_t):
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_S, wrap_s)
glTextureParameteri(self.__id[0], GL_TEXTURE_WRAP_T, wrap_t)
def subImage(self, level, xoffset, yoffset, width, height, data_format, data_type, pixels):
glTextureSubImage2D(self.__id[0], level, xoffset, yoffset, width, height, data_format, data_type, pixels)
def makeResident(self):
self.__handle = glGetTextureHandleNV(self.__id[0])
glMakeTextureHandleResidentNV(self.__handle)
return self.__handle
def makeNonResident(self):
if self.__handle != None:
glMakeTextureHandleNonResidentNV(self.__handle)
def delete(self):
glDeleteTextures(1, self.__id)
@property
def handle(self):
return self.__handle
@property
def id(self):
return self.__id[0]
| 35.145251
| 113
| 0.687967
| 762
| 6,291
| 5.276903
| 0.111549
| 0.080577
| 0.066153
| 0.122855
| 0.919423
| 0.910221
| 0.879632
| 0.865208
| 0.853768
| 0.853768
| 0
| 0.013467
| 0.209188
| 6,291
| 178
| 114
| 35.342697
| 0.794774
| 0.003338
| 0
| 0.819549
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.293233
| false
| 0
| 0.022556
| 0.06015
| 0.43609
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
654b9fc9942e8eef9bb5ed43356a8543a0f83eaf
| 132
|
py
|
Python
|
src/personal_finance/elt/__init__.py
|
RichWolff/personal_finance
|
2b7b86f57c972918b039588d8ab3e4557ac24447
|
[
"MIT"
] | null | null | null |
src/personal_finance/elt/__init__.py
|
RichWolff/personal_finance
|
2b7b86f57c972918b039588d8ab3e4557ac24447
|
[
"MIT"
] | null | null | null |
src/personal_finance/elt/__init__.py
|
RichWolff/personal_finance
|
2b7b86f57c972918b039588d8ab3e4557ac24447
|
[
"MIT"
] | null | null | null |
from personal_finance.elt.extract import extract_last_n_days # noqa
from personal_finance.elt.load import ingest_all_files # noqa
| 44
| 68
| 0.848485
| 21
| 132
| 5
| 0.666667
| 0.228571
| 0.361905
| 0.419048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106061
| 132
| 2
| 69
| 66
| 0.889831
| 0.068182
| 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
|
e8f74f8e26ce64279acf2afe52b339f9fde660b5
| 1,473
|
py
|
Python
|
src/genie/libs/parser/nxos/tests/ShowIpMsdpSummary/cli/equal/golden_output_1_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 204
|
2018-06-27T00:55:27.000Z
|
2022-03-06T21:12:18.000Z
|
src/genie/libs/parser/nxos/tests/ShowIpMsdpSummary/cli/equal/golden_output_1_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 468
|
2018-06-19T00:33:18.000Z
|
2022-03-31T23:23:35.000Z
|
src/genie/libs/parser/nxos/tests/ShowIpMsdpSummary/cli/equal/golden_output_1_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 309
|
2019-01-16T20:21:07.000Z
|
2022-03-30T12:56:41.000Z
|
expected_output = {
"vrf": {
"default": {
"local_as": 0,
"originator_id": "10.16.2.2",
"statistics": {
"num_of_configured_peers": 1,
"num_of_established_peers": 1,
"num_of_shutdown_peers": 0
},
"peer": {
"10.144.6.6": {
"elapsed_time": "05:46:19",
"statistics": {
"num_of_sg_received": 1,
"last_message_received": "00:00:51"
},
"session_state": "established",
"address": "10.144.6.6",
"peer_as": 0
}
}
},
"VRF1": {
"local_as": 0,
"originator_id": "10.16.2.2",
"statistics": {
"num_of_configured_peers": 1,
"num_of_established_peers": 1,
"num_of_shutdown_peers": 0
},
"peer": {
"10.144.6.6": {
"elapsed_time": "05:46:18",
"statistics": {
"num_of_sg_received": 0,
"last_message_received": "00:00:55"
},
"session_state": "established",
"address": "10.144.6.6",
"peer_as": 0
}
}
}
}
}
| 30.061224
| 61
| 0.345553
| 121
| 1,473
| 3.884298
| 0.330579
| 0.085106
| 0.12766
| 0.093617
| 0.919149
| 0.714894
| 0.714894
| 0.714894
| 0.714894
| 0.714894
| 0
| 0.11
| 0.524779
| 1,473
| 48
| 62
| 30.6875
| 0.561429
| 0
| 0
| 0.521739
| 0
| 0
| 0.345343
| 0.121006
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3331e980101bf5dd55b48489c01ae73c94886a12
| 3,687
|
py
|
Python
|
tests/test_bmicategory.py
|
arunprakash16/code-2021-11-27-arunprakash
|
67f23d88f0cbd7803fe7ed90210d36495e1d5335
|
[
"MIT"
] | null | null | null |
tests/test_bmicategory.py
|
arunprakash16/code-2021-11-27-arunprakash
|
67f23d88f0cbd7803fe7ed90210d36495e1d5335
|
[
"MIT"
] | null | null | null |
tests/test_bmicategory.py
|
arunprakash16/code-2021-11-27-arunprakash
|
67f23d88f0cbd7803fe7ed90210d36495e1d5335
|
[
"MIT"
] | null | null | null |
from pybmi.bmicategory import BmiCategory
bmi_analysis = BmiCategory()
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(4.5)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Underweight', 'Malnutrition risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(18.4)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Underweight', 'Malnutrition risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(18.4)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Underweight', 'Malnutrition risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(18.5)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Normal weight', 'Low risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(24.9)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Normal weight', 'Low risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(25.6)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Overweight', 'Enhanced risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(29.9)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Overweight', 'Enhanced risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(30)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Moderately obese', 'Medium risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(34.9)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Moderately obese', 'Medium risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(35)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Severely obese', 'High risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(39.9)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Severely obese', 'High risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(40)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Very Severely obese', 'Very High risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(70)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Very Severely obese', 'Very High risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(999.9)
assert out_stat == 0, "Output status doesn't match the expectation"
assert bmi_val == ('Very Severely obese', 'Very High risk'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(-1)
assert out_stat == 1, "Output status doesn't match the expectation"
assert bmi_val == ('Couldn't fetch health category for - -1', 'Couldn't fetch health category for - -1'), "Incorrect bmi category / health risk!"
out_stat, bmi_val = bmi_analysis.get_bmi_cat_risk(1000.1)
assert out_stat == 1, "Output status doesn't match the expectation"
assert bmi_val == ('Couldn't fetch health category for - 1000.1', 'Couldn't fetch health category for - 1000.1'), "Incorrect bmi category / health risk!"
| 54.220588
| 153
| 0.754543
| 586
| 3,687
| 4.527304
| 0.09727
| 0.084433
| 0.060309
| 0.078402
| 0.967584
| 0.967584
| 0.956276
| 0.944591
| 0.929891
| 0.929891
| 0
| 0.02243
| 0.129373
| 3,687
| 67
| 154
| 55.029851
| 0.80405
| 0
| 0
| 0.64
| 0
| 0
| 0.470572
| 0
| 0
| 0
| 0
| 0
| 0.64
| 0
| null | null | 0
| 0.02
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
68358b6476201105834c7c7573987a0e20ee5235
| 92,817
|
py
|
Python
|
src/xDLbase/rnn.py
|
AskyJx/xDeepLearning
|
98d875a34c6b4f4a51dcb825998028fd36260848
|
[
"MIT"
] | 20
|
2019-03-21T18:16:00.000Z
|
2022-03-21T12:10:04.000Z
|
src/xDLbase/rnn.py
|
AskyJx/xDeepLearning
|
98d875a34c6b4f4a51dcb825998028fd36260848
|
[
"MIT"
] | 1
|
2019-07-17T10:09:23.000Z
|
2019-08-10T11:38:29.000Z
|
src/xDLbase/rnn.py
|
AskyJx/xDeepLearning
|
98d875a34c6b4f4a51dcb825998028fd36260848
|
[
"MIT"
] | 5
|
2019-06-03T15:26:55.000Z
|
2020-12-09T03:06:01.000Z
|
"""
Created: May 2018
@author: JerryX
Find more : https://www.zhihu.com/people/xu-jerry-82
"""
import numpy as np
import operator as op
import numba
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
sys.path.append(curPath)
from xDLUtils import Tools
from activators import ReLU
# Rnn类
class RnnLayer(object):
# N,H,L和优化器在初始化时定义
# T作为X的一个维度传进来
# tanh和sigmoid的前反向传播在类内部定义。
def __init__(self, LName, miniBatchesSize, nodesNum, layersNum,
optimizerCls, optmParams, dropoutRRate, dataType, init_rng):
# 初始化超参数
self.name = LName
self.miniBatchesSize = miniBatchesSize
self.nodesNum = nodesNum
self.layersNum = layersNum
self.dataType = dataType
self.init_rng = init_rng
self.isInited = False # 初始化标志
# dropout 的保留率
self.dropoutRRate = dropoutRRate
self.dropoutMask = []
self.out = []
self.optimizerObjs = [optimizerCls(optmParams, dataType) for i in range(layersNum)]
# 初始化w,u,b 和对应偏置,维度,层次和节点个数传参进去。但是没有T,所以不能创建参数
# 返回的是一个组合结构,按层次(数组)划分的U、W,字典
# 改为放在首batch X传入时lazy init
self.rnnParams = []
# 保存各层中间产出的 st和f(st),用于前向和反向传播
# 不需要,已经在前反向传播中保留
self.deltaPrev = [] # 上一层激活后的误差输出
def _initNnWeight(self, D, H, layersNum, dataType):
# 层次
rnnParams = []
for layer in range(layersNum):
Wh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, H)).astype(dataType)
if (0 == layer):
Wx = np.random.uniform(-1 * self.init_rng, self.init_rng, (D, H)).astype(dataType)
else:
Wx = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, H)).astype(dataType)
b = np.zeros(H, dataType)
rnnParams.append({'Wx': Wx, 'Wh': Wh, 'b': b})
self.rnnParams = rnnParams
def _initNnWeightOrthogonal(self, D, H, layersNum, dataType):
# 层次
rnnParams = []
for layer in range(layersNum):
# Wh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, H)).astype(dataType)
Wh = Tools.initOrthogonal( (H, H),self.init_rng, dataType)
DH = D if 0 == layer else H
Wx = Tools.initOrthogonal( (DH, H),self.init_rng, dataType)
b = np.zeros(H, dataType)
rnnParams.append({'Wx': Wx, 'Wh': Wh, 'b': b})
self.rnnParams = rnnParams
# 训练时前向传播
def fp(self, input):
out_tmp = self.inference(input)
self.out, self.dropoutMask = Tools.dropout4rnn(out_tmp, self.dropoutRRate)
return self.out
# 预测时前向传播,激活后再输出
# input: batch x seqNum, 32*10
def inference(self, x):
N, T, D = x.shape
H = self.nodesNum
L = self.layersNum
# lazy init
if (False == self.isInited):
#self._initNnWeight(D, H, L, self.dataType)
self._initNnWeightOrthogonal(D, H, L, self.dataType)
self.isInited = True
# 缓存已经存入rnnParams里了,此处只需要返回输出结果(N,T,H)
h = self.rnn_forward(x)
# N进 v 1出 模型,只保留时序最后的一项输出
# self.out = h[:,-1,:]
# 全部输出,未用到的部分梯度为0
self.out = h
return self.out
# 反向传播方法(误差和权参)
# TODO 实现反向传播逻辑,先按照时间,再按照层次,再更新Wx/Wf/b/V/bv 及偏置的反向传播梯度
def bp(self, input, delta_ori, lrt):
if self.dropoutRRate == 1:
delta = delta_ori
else:
delta = delta_ori * self.dropoutMask
# dw是一个数组,对应结构的多层,每层的dw,dh,db,dh0表示需要参数梯度
N, T, D = input.shape
H = delta.shape[1]
# 只有最后一个T填delta,其余的dh梯度设置为0
dh = np.zeros((N, T, H), self.dataType)
# dh[:,-1,:] = delta
dh = delta
dx, dweight = self.rnn_backward(dh)
# 根据梯度更新参数
self.bpWeights(dweight, lrt)
return dx
# 计算反向传播权重梯度w,b
def bpWeights(self, dw, lrt):
L = self.layersNum
# for l in range(L - 1, -1, -1):
for l in range(L):
w = (self.rnnParams[l]['Wx'], self.rnnParams[l]['Wh'], self.rnnParams[l]['b'])
# 此处不赋值也可以,因为是按引用传参
# self.rnnParams[l]['Wx'], self.rnnParams[l]['Wh'], self.rnnParams[l]['b'] = self.optimizerObjs[l].getUpdWeights(w,dw[L-1-l],lrt)
self.optimizerObjs[l].getUpdWeights(w, dw[L - 1 - l], lrt)
def rnn_forward(self, x):
"""
Run a vanilla RNN forward on an entire sequence of data. We assume an input
sequence composed of T vectors, each of dimension D. The RNN uses a hidden
size of H, and we work over a minibatch containing N sequences. After running
the RNN forward, we return the hidden states for all timesteps.
Inputs:
- x: Input data for the entire timeseries, of shape (N, T, D).
- h0: Initial hidden state, of shape (N, H)
- Wx: Weight matrix for input-to-hidden connections, of shape (D, H)
- Wh: Weight matrix for hidden-to-hidden connections, of shape (H, H)
- b: Biases of shape (H,)
Returns a tuple of:
- h: Hidden states for the entire timeseries, of shape (N, T, H).
- cache: Values needed in the backward pass
"""
h, cache = None, None
##############################################################################
# TODO: Implement forward pass for a vanilla RNN running on a sequence of #
# input data. You should use the rnn_step_forward function that you defined #
# above. You can use a for loop to help compute the forward pass. #
##############################################################################
N, T, D = x.shape
L = self.layersNum
H = self.rnnParams[0]['b'].shape[0]
xh = x
for layer in range(L):
h = np.zeros((N, T, H))
h0 = np.zeros((N, H))
cache = []
for t in range(T):
h[:, t, :], tmp_cache = self.rnn_step_forward(xh[:, t, :],
h[:, t - 1, :] if t > 0 else h0,
self.rnnParams[layer]['Wx'], self.rnnParams[layer]['Wh'],
self.rnnParams[layer]['b'])
cache.append(tmp_cache)
xh = h # 之后以h作为xh作为跨层输入
##############################################################################
# END OF YOUR CODE #
##############################################################################
self.rnnParams[layer]['h'] = h
self.rnnParams[layer]['cache'] = cache
return h # 返回最后一层作为输出
def rnn_backward(self, dh):
"""
Compute the backward pass for a vanilla RNN over an entire sequence of data.
Inputs:
- dh: Upstream gradients of all hidden states, of shape (N, T, H).
NOTE: 'dh' contains the upstream gradients produced by the
individual loss functions at each timestep, *not* the gradients
being passed between timesteps (which you'll have to compute yourself
by calling rnn_step_backward in a loop).
Returns a tuple of:
- dx: Gradient of inputs, of shape (N, T, D)
- dh0: Gradient of initial hidden state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, H)
- db: Gradient of biases, of shape (H,)
"""
dx, dh0, dWx, dWh, db = None, None, None, None, None
##############################################################################
# TODO: Implement the backward pass for a vanilla RNN running an entire #
# sequence of data. You should use the rnn_step_backward function that you #
# defined above. You can use a for loop to help compute the backward pass. #
##############################################################################
N, T, H = dh.shape
x, _, _, _, _ = self.rnnParams[0]['cache'][0]
D = x.shape[1]
# 初始化最上一层误差
dh_prevl = dh
# 保存各层dwh,dwx,和db
dweights = []
# 逐层倒推
for layer in range(self.layersNum - 1, -1, -1):
# 得到前向传播保存的cache数组
cache = self.rnnParams[layer]['cache']
DH = D if layer == 0 else H
dx = np.zeros((N, T, DH))
dWx = np.zeros((DH, H))
dWh = np.zeros((H, H))
db = np.zeros(H)
dprev_h_t = np.zeros((N, H))
# 倒序遍历
for t in range(T - 1, -1, -1):
dx[:, t, :], dprev_h_t, dWx_t, dWh_t, db_t = self.rnn_step_backward(dh_prevl[:, t, :] + dprev_h_t,
cache[t])
dWx += dWx_t
dWh += dWh_t
db += db_t
# 本层得出的dx,作为下一层的prev_l
dh_prevl = dx
dweight = (dWx, dWh, db)
dweights.append(dweight)
##############################################################################
# END OF YOUR CODE #
##############################################################################
# 返回x误差和各层参数误差
return dx, dweights
def rnn_step_forward(self, x, prev_h, Wx, Wh, b):
"""
Run the forward pass for a single timestep of a vanilla RNN that uses a tanh
activation function.
The input data has dimension D, the hidden state has dimension H, and we use
a minibatch size of N.
Inputs:
- x: Input data for this timestep, of shape (N, D).
- prev_h: Hidden state from previous timestep, of shape (N, H)
- Wx: Weight matrix for input-to-hidden connections, of shape (D, H)
- Wh: Weight matrix for hidden-to-hidden connections, of shape (H, H)
- b: Biases of shape (H,)
Returns a tuple of:
- next_h: Next hidden state, of shape (N, H)
- cache: Tuple of values needed for the backward pass.
"""
next_h, cache = None, None
##############################################################################
# TODO: Implement a single forward step for the vanilla RNN. Store the next #
# hidden state and any values you need for the backward pass in the next_h #
# and cache variables respectively. #
##############################################################################
z = Tools.matmul(x, Wx) + Tools.matmul(prev_h, Wh) + b
next_h = np.tanh(z)
dtanh = 1. - next_h * next_h
cache = (x, prev_h, Wx, Wh, dtanh)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return next_h, cache
def rnn_step_backward(self, dnext_h, cache):
"""
Backward pass for a single timestep of a vanilla RNN.
Inputs:
- dnext_h: Gradient of loss with respect to next hidden state, of shape (N, H)
- cache: Cache object from the forward pass
Returns a tuple of:
- dx: Gradients of input data, of shape (N, D)
- dprev_h: Gradients of previous hidden state, of shape (N, H)
- dWx: Gradients of input-to-hidden weights, of shape (D, H)
- dWh: Gradients of hidden-to-hidden weights, of shape (H, H)
- db: Gradients of bias vector, of shape (H,)
"""
dx, dprev_h, dWx, dWh, db = None, None, None, None, None
##############################################################################
# TODO: Implement the backward pass for a single step of a vanilla RNN. #
# #
# HINT: For the tanh function, you can compute the local derivative in terms #
# of the output value from tanh. #
##############################################################################
x, prev_h, Wx, Wh, dtanh = cache
dz = dnext_h * dtanh
dx = Tools.matmul(dz, Wx.T)
dprev_h = Tools.matmul(dz, Wh.T)
dWx = Tools.matmul(x.T, dz)
dWh = Tools.matmul(prev_h.T, dz)
db = np.sum(dz, axis=0)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return dx, dprev_h, dWx, dWh, db
# LSTM 类
class LSTMLayer(object):
# N,H,L和优化器在初始化时定义
# T作为X的一个维度传进来
# tanh和sigmoid的前反向传播在类内部定义。
def __init__(self, LName, miniBatchesSize, nodesNum, layersNum,
optimizerCls, optmParams, dropoutRRate, dataType, init_rng):
# 初始化超参数
self.name = LName
self.miniBatchesSize = miniBatchesSize
self.nodesNum = nodesNum
self.layersNum = layersNum
self.dataType = dataType
self.init_rng = init_rng
self.isInited = False # 初始化标志
# dropout 的保留率
self.dropoutRRate = dropoutRRate
self.dropoutMask = []
self.out = []
self.optimizerObjs = [optimizerCls(optmParams, dataType) for i in range(layersNum)]
# 初始化w,u,b 和对应偏置,维度,层次和节点个数传参进去。但是没有T,所以不能创建参数
# 返回的是一个组合结构,按层次(数组)划分的U、W,字典
# 改为放在首batch X传入时lazy init
self.lstmParams = []
# 保存各层中间产出的 st和f(st),用于前向和反向传播
# 不需要,已经在前反向传播中保留
self.deltaPrev = [] # 上一层激活后的误差输出
def _initNnWeight(self, D, H, layersNum, dataType):
# 层次
lstmParams = []
for layer in range(layersNum):
Wh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 4 * H)).astype(dataType)
if (0 == layer):
Wx = np.random.uniform(-1 * self.init_rng, self.init_rng, (D, 4 * H)).astype(dataType)
else:
Wx = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 4 * H)).astype(dataType)
b = np.zeros(4 * H, dataType)
lstmParams.append({'Wx': Wx, 'Wh': Wh, 'b': b})
self.lstmParams = lstmParams
def _initNnWeightOrthogonal(self, D , H, layersNum, dataType):
# 层次
lstmParams = []
for layer in range(layersNum):
# Wh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 4 * H)).astype(dataType)
Wh = Tools.initOrthogonal( (H, 4*H),self.init_rng, dataType)
DH = D if 0 == layer else H
# Wx = np.random.uniform(-1 * self.init_rng, self.init_rng, (DH, 4 * H)).astype(dataType)
Wx = Tools.initOrthogonal( (DH, 4*H),self.init_rng, dataType)
b = np.zeros(4 * H, dataType)
lstmParams.append({'Wx': Wx, 'Wh': Wh, 'b': b})
self.lstmParams = lstmParams
# 预测时前向传播
def fp(self, input):
out_tmp = self.inference(input)
self.out, self.dropoutMask = Tools.dropout4rnn(out_tmp, self.dropoutRRate)
return self.out
def inference(self, x):
N, T, D = x.shape
H = self.nodesNum
L = self.layersNum
# lazy init
if (False == self.isInited):
# self._initNnWeight(D, H, L, self.dataType)
self._initNnWeightOrthogonal(D, H, L, self.dataType)
self.isInited = True
# 缓存已经存入rnnParams里了,此处只需要返回输出结果(N,T,H)
h = self.lstm_forward(x)
# N进 v 1出 模型,只保留时序最后的一项输出
# self.out = h[:,-1,:]
self.out = h
return self.out
# 反向传播方法(误差和权参)
# TODO 实现反向传播逻辑,先按照时间,再按照层次,再更新Wx/Wf/b/V/bv 及偏置的反向传播梯度
def bp(self, input, delta_ori, lrt):
if self.dropoutRRate == 1:
delta = delta_ori
else:
delta = delta_ori * self.dropoutMask
# dw是一个数组,对应结构的多层,每层的dw,dh,db,dh0表示需要参数梯度
N, T, D = input.shape
H = delta.shape[1]
# 只有最后一个T填delta,其余的dh梯度设置为0
dh = np.zeros((N, T, H), self.dataType)
# dh[:,-1,:] = delta
dh = delta
dx, dweight = self.lstm_backward(dh)
# 根据梯度更新参数
self.bpWeights(dweight, lrt)
return dx
# 计算反向传播权重梯度w,b
def bpWeights(self, dw, lrt):
L = self.layersNum
for l in range(L):
w = (self.lstmParams[l]['Wx'], self.lstmParams[l]['Wh'], self.lstmParams[l]['b'])
# self.lstmParams[l]['Wx'], self.lstmParams[l]['Wh'], self.lstmParams[l]['b'] = self.optimizerObjs[l].getUpdWeights(w, dw[L-1-l], lrt)
self.optimizerObjs[l].getUpdWeights(w, dw[L - 1 - l], lrt)
# self.optimizerObjs[l].getUpdWeights(w, dw[l], lrt)
def lstm_forward(self, x):
"""
Forward pass for an LSTM over an entire sequence of data. We assume an input
sequence composed of T vectors, each of dimension D. The LSTM uses a hidden
size of H, and we work over a minibatch containing N sequences. After running
the LSTM forward, we return the hidden states for all timesteps.
Note that the initial cell state is passed as input, but the initial cell
state is set to zero. Also note that the cell state is not returned; it is
an internal variable to the LSTM and is not accessed from outside.
Inputs:
- x: Input data of shape (N, T, D)
- h0: Initial hidden state of shape (N, H)
- Wx: Weights for input-to-hidden connections, of shape (D, 4H)
- Wh: Weights for hidden-to-hidden connections, of shape (H, 4H)
- b: Biases of shape (4H,)
Returns a tuple of:
- h: Hidden states for all timesteps of all sequences, of shape (N, T, H)
- cache: Values needed for the backward pass.
"""
h, cache = None, None
#############################################################################
# TODO: Implement the forward pass for an LSTM over an entire timeseries. #
# You should use the lstm_step_forward function that you just defined. #
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
N, T, D = x.shape
L = self.layersNum
H = int(self.lstmParams[0]['b'].shape[0] / 4) # 取整
xh = x # 首层输入是x
for layer in range(L):
h = np.zeros((N, T, H))
h0 = np.zeros((N, H))
c = np.zeros((N, T, H))
c0 = np.zeros((N, H))
cache = []
for t in range(T):
h[:, t, :], c[:, t, :], tmp_cache = self.lstm_step_forward(xh[:, t, :], h[:, t - 1, :] if t > 0 else h0,
c[:, t - 1, :] if t > 0 else c0,
self.lstmParams[layer]['Wx'],
self.lstmParams[layer]['Wh'],
self.lstmParams[layer]['b'])
cache.append(tmp_cache)
xh = h # 之后以h作为xh作为跨层输入
##############################################################################
# END OF YOUR CODE #
##############################################################################
self.lstmParams[layer]['h'] = h
self.lstmParams[layer]['c'] = c
self.lstmParams[layer]['cache'] = cache
return h
def lstm_backward(self, dh):
"""
Backward pass for an LSTM over an entire sequence of data.]
Inputs:
- dh: Upstream gradients of hidden states, of shape (N, T, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data of shape (N, T, D)
- dh0: Gradient of initial hidden state of shape (N, H)
- dWx: Gradient of input-to-hidden weight matrix of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weight matrix of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dh0, dWx, dWh, db = None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for an LSTM over an entire timeseries. #
# You should use the lstm_step_backward function that you just defined. #
#############################################################################
N, T, H = dh.shape
x, _, _, _, _, _, _, _, _, _ = self.lstmParams[0]['cache'][0]
D = x.shape[1]
dh_prevl = dh
# 保存各层dwh,dwx,和db
dweights = []
for layer in range(self.layersNum - 1, -1, -1):
# 得到前向传播保存的cache数组
cache = self.lstmParams[layer]['cache']
DH = D if layer == 0 else H
dx = np.zeros((N, T, DH))
dWx = np.zeros((DH, 4 * H))
dWh = np.zeros((H, 4 * H))
db = np.zeros((4 * H))
dprev_h = np.zeros((N, H))
dprev_c = np.zeros((N, H))
for t in range(T - 1, -1, -1):
dx[:, t, :], dprev_h, dprev_c, dWx_t, dWh_t, db_t = self.lstm_step_backward(dh_prevl[:, t, :] + dprev_h,
dprev_c,
cache[t]) # 注意此处的叠加
dWx += dWx_t
dWh += dWh_t
db += db_t
# 本层得出的dx,作为下一层的prev_l
dh_prevl = dx
dweight = (dWx, dWh, db)
dweights.append(dweight)
##############################################################################
# END OF YOUR CODE #
##############################################################################
# 返回x误差和各层参数误差
return dx, dweights
def lstm_step_forward(self, x, prev_h, prev_c, Wx, Wh, b):
"""
Forward pass for a single timestep of an LSTM.
The input data has dimension D, the hidden state has dimension H, and we use
a minibatch size of N.
Note that a sigmoid() function has already been provided for you in this file.
Inputs:
- x: Input data, of shape (N, D)
- prev_h: Previous hidden state, of shape (N, H)
- prev_c: previous cell state, of shape (N, H)
- Wx: Input-to-hidden weights, of shape (D, 4H)
- Wh: Hidden-to-hidden weights, of shape (H, 4H)
- b: Biases, of shape (4H,)
Returns a tuple of:
- next_h: Next hidden state, of shape (N, H)
- next_c: Next cell state, of shape (N, H)
- cache: Tuple of values needed for backward pass.
"""
next_h, next_c, cache = None, None, None
#############################################################################
# TODO: Implement the forward pass for a single timestep of an LSTM. #
# You may want to use the numerically stable sigmoid implementation above.
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
H = prev_h.shape[1]
# z , of shape(N,4H)
z = Tools.matmul(x, Wx) + Tools.matmul(prev_h, Wh) + b
# of shape(N,H)
i = Tools.sigmoid(z[:, :H])
f = Tools.sigmoid(z[:, H:2 * H])
o = Tools.sigmoid(z[:, 2 * H:3 * H])
g = np.tanh(z[:, 3 * H:])
next_c = f * prev_c + i * g
next_h = o * np.tanh(next_c)
cache = (x, prev_h, prev_c, Wx, Wh, i, f, o, g, next_c)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return next_h, next_c, cache
def lstm_step_backward(self, dnext_h, dnext_c, cache):
"""
Backward pass for a single timestep of an LSTM.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dprev_c, dWx, dWh, db = None, None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for a single timestep of an LSTM. #
# #
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
x, prev_h, prev_c, Wx, Wh, i, f, o, g, next_c = cache
dnext_c = dnext_c + o * (1 - np.tanh(next_c) ** 2) * dnext_h # next_h = o*np.tanh(next_c)
di = dnext_c * g # next_c = f*prev_c + i*g
df = dnext_c * prev_c # next_c = f*prev_c + i*g
do = dnext_h * np.tanh(next_c) # next_h = o*np.tanh(next_c)
dg = dnext_c * i # next_h = o*np.tanh(next_c)
dprev_c = f * dnext_c # next_c = f*prev_c + i*g
dz = np.hstack((i * (1 - i) * di, f * (1 - f) * df, o * (1 - o) * do, (1 - g ** 2) * dg)) # 共四部分
dx = Tools.matmul(dz, Wx.T)
dprev_h = Tools.matmul(dz, Wh.T)
dWx = Tools.matmul(x.T, dz)
dWh = Tools.matmul(prev_h.T, dz)
db = np.sum(dz, axis=0)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return dx, dprev_h, dprev_c, dWx, dWh, db
#最后一层concate,输出N*T*2H
class BiLSTMLayer(object):
# N,H,L和优化器在初始化时定义
# T作为X的一个维度传进来
# tanh和sigmoid的前反向传播在类内部定义。
# 直接输出分类维度
def __init__(self, LName, miniBatchesSize, nodesNum, layersNum,
optimizerCls, optmParams, dropoutRRate, dataType, init_rng):
# 初始化超参数
self.name = LName
self.miniBatchesSize = miniBatchesSize
self.nodesNum = nodesNum
self.layersNum = layersNum
self.dataType = dataType
self.init_rng = init_rng
self.isInited = False # 初始化标志
# dropout 的保留率
self.dropoutRRate = dropoutRRate
self.dropoutMask = []
self.out = []
self.optimizerObjs = [optimizerCls(optmParams, dataType) for i in range(layersNum)]
# 初始化w,u,b 和对应偏置,维度,层次和节点个数传参进去。但是没有T,所以不能创建参数
# 返回的是一个组合结构,按层次(数组)划分的U、W,字典
# 改为放在首batch X传入时lazy init
self.lstmParams = []
# 保存各层中间产出的 st和f(st),用于前向和反向传播
# 不需要,已经在前反向传播中保留
self.deltaPrev = [] # 上一层激活后的误差输出
def _initNnWeight(self, D, H, layersNum, dataType):
# 层次
lstmParams = []
for layer in range(layersNum):
Wh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 4 * H)).astype(dataType)
iWh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 4 * H)).astype(dataType)
if (0 == layer):
Wx = np.random.uniform(-1 * self.init_rng, self.init_rng, (D, 4 * H)).astype(dataType)
iWx = np.random.uniform(-1 * self.init_rng, self.init_rng, (D, 4 * H)).astype(dataType)
else:
Wx = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 4 * H)).astype(dataType)
iWx = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 4 * H)).astype(dataType)
b = np.zeros(4 * H, dataType)
ib = np.zeros(4 * H, dataType)
lstmParams.append({'Wx': Wx, 'Wh': Wh, 'b': b,
'iWx': iWx, 'iWh': iWh, 'ib': ib
# , 'U': U, 'V': V, 'bc': bc
})
self.lstmParams = lstmParams
# 预测时前向传播
def fp(self, input):
out_tmp = self.inference(input)
self.out, self.dropoutMask = Tools.dropout4rnn(out_tmp, self.dropoutRRate)
return self.out
def inference(self, x):
N, T, D = x.shape
H = self.nodesNum
L = self.layersNum
# lazy init
if (False == self.isInited):
self._initNnWeight(D, H, L, self.dataType)
self.isInited = True
# 缓存已经存入rnnParams里了,此处只需要返回输出结果(N,T,H)
h = self.lstm_forward(x)
# N进 v 1出 模型,只保留时序最后的一项输出
# self.out = h[:,-1,:]
self.out = h
return self.out
# 反向传播方法(误差和权参)
def bp(self, input, delta_ori, lrt):
if self.dropoutRRate == 1:
delta = delta_ori
else:
delta = delta_ori * self.dropoutMask
# dw是一个数组,对应结构的多层,每层的dw,dh,db,dh0表示需要参数梯度
# N, T, D = input.shape
# H = delta.shape[1]
# 只有最后一个T填delta,其余的dh梯度设置为0
# dh = np.zeros((N, T, H), self.dataType)
# dh[:,-1,:] = delta
dh = delta
dx, dweight = self.lstm_backward(dh)
# 根据梯度更新参数
self.bpWeights(dweight, lrt)
return dx
# 计算反向传播权重梯度w,b
def bpWeights(self, dw, lrt):
L = self.layersNum
for l in range(L):
w = (self.lstmParams[l]['Wx'], self.lstmParams[l]['Wh'], self.lstmParams[l]['b'],
self.lstmParams[l]['iWx'], self.lstmParams[l]['iWh'], self.lstmParams[l]['ib']
)
self.optimizerObjs[l].getUpdWeights(w, dw[L - 1 - l], lrt)
def lstm_forward(self, x):
"""
Forward pass for an LSTM over an entire sequence of data. We assume an input
sequence composed of T vectors, each of dimension D. The LSTM uses a hidden
size of H, and we work over a minibatch containing N sequences. After running
the LSTM forward, we return the hidden states for all timesteps.
Note that the initial cell state is passed as input, but the initial cell
state is set to zero. Also note that the cell state is not returned; it is
an internal variable to the LSTM and is not accessed from outside.
Inputs:
- x: Input data of shape (N, T, D)
- h0: Initial hidden state of shape (N, H)
- Wx: Weights for input-to-hidden connections, of shape (D, 4H)
- Wh: Weights for hidden-to-hidden connections, of shape (H, 4H)
- b: Biases of shape (4H,)
Returns a tuple of:
- h: Hidden states for all timesteps of all sequences, of shape (N, T, H)
- cache: Values needed for the backward pass.
"""
#############################################################################
# TODO: Implement the forward pass for an BiLSTM over an entire timeseries. #
# You should use the lstm_step_forward function that you just defined. #
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
N, T, D = x.shape
L = self.layersNum
H = int(self.lstmParams[0]['b'].shape[0] / 4) # 取整
xh = x # 首层输入是x
ixh = x # 反向
for layer in range(L):
h0 = np.zeros((N, H))
c0 = np.zeros((N, H))
# 右向
h = np.zeros((N, T, H))
c = np.zeros((N, T, H))
cache = []
# 左向
ih = np.zeros((N, T, H))
ic = np.zeros((N, T, H))
icache = []
for t in range(T):
# 右向
h[:, t, :], c[:, t, :], tmp_cache = self.lstm_step_forward(xh[:, t, :],
h[:, t - 1, :] if t > 0 else h0,
c[:, t - 1, :] if t > 0 else c0,
self.lstmParams[layer]['Wx'],
self.lstmParams[layer]['Wh'],
self.lstmParams[layer]['b'])
cache.append(tmp_cache)
# 左向,
# 若此处ih和x的下标保持一致,均由大到小排列,后续无需倒排,提高效率
ih[:, T - 1 - t, :], ic[:, T - 1 - t, :], tmp_icache = self.lstm_step_forward(ixh[:, T - 1 - t, :],
ih[:, T - t, :] if t > 0 else h0,
ic[:, T - t, :] if t > 0 else c0,
self.lstmParams[layer]['iWx'],
self.lstmParams[layer]['iWh'],
self.lstmParams[layer]['ib'])
# icache下标和ih下标是反向对应的 self.lstmParams[layer]['ib'])
icache.append(tmp_icache)
# 右向
self.lstmParams[layer]['h'] = h
self.lstmParams[layer]['c'] = c
self.lstmParams[layer]['cache'] = cache
# 左向
self.lstmParams[layer]['ih'] = ih
self.lstmParams[layer]['ic'] = ic
self.lstmParams[layer]['icache'] = icache
# Batch * TimeStep * H
xh = h
ixh = ih
self.lstmParams[layer]['xh'] = xh
self.lstmParams[layer]['ixh'] = ixh
xh_final = np.concatenate((xh,ixh),axis=2) # 在H维度上做拼接
self.lstmParams[layer]['xh_final'] = xh_final
return xh_final
def lstm_backward(self, dh_all):
"""
Backward pass for an BiLSTM over an entire sequence of data.]
Inputs:
- dh_all: Upstream gradients of hidden states, of shape (N, T, 2*H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data of shape (N, T, D)
- dh0: Gradient of initial hidden state of shape (N, H)
- dWx: Gradient of input-to-hidden weight matrix of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weight matrix of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
#############################################################################
# TODO: Implement the backward pass for an BiLSTM over an entire timeseries. #
# You should use the lstm_step_backward function that you just defined. #
#############################################################################
N, T, H_time_2 = dh_all.shape #得到的误差是batch *T* 2H
H = int(H_time_2 / 2)
x, _, _, _, _, _, _, _, _, _ = self.lstmParams[0]['cache'][0]
D = x.shape[1] # 单个时间步上维度
dh = dh_all[:,:,0:H]
dih = dh_all[:,:,H:2*H]
dweights = []
for layer in range(self.layersNum - 1, -1, -1):
dh_prevl = dh
dih_prevl = dih
DH = D if layer == 0 else H
# 右向
dx = np.zeros((N, T, DH))
cache = self.lstmParams[layer]['cache']
dWx = np.zeros((DH, 4 * H))
dWh = np.zeros((H, 4 * H))
db = np.zeros((4 * H))
dprev_h = np.zeros((N, H))
dprev_c = np.zeros((N, H))
# 左向
dix = np.zeros((N, T, DH))
icache = self.lstmParams[layer]['icache']
diWx = np.zeros((DH, 4 * H))
diWh = np.zeros((H, 4 * H))
dib = np.zeros((4 * H))
dprev_ih = np.zeros((N, H))
dprev_ic = np.zeros((N, H))
for t in range(T - 1, -1, -1):
# 右向
dx[:, t, :], dprev_h, dprev_c, dWx_t, dWh_t, db_t = self.lstm_step_backward(dh_prevl[:, t, :] + dprev_h,
dprev_c,
cache[t]) # 注意此处的叠加
dWx += dWx_t
dWh += dWh_t
db += db_t
# fwd选择ih和输入x的下标一致对应,且之后合并前馈时,ih按时间步一致再前馈
# bp时,按照时间步倒序回传,dih从小到大回传
dix[:, T - 1 - t, :], dprev_ih, dprev_ic, diWx_t, diWh_t, db_it = self.lstm_step_backward(dih_prevl[:, T - 1 - t, :] + dprev_ih,
dprev_ic,
# icache[T - 1 - t]) # 注意此处的叠加
icache[t]) # 注意此处的叠加
diWx += diWx_t
diWh += diWh_t
dib += db_it
dweight = (dWx, dWh, db, diWx, diWh, dib)
dweights.append(dweight)
# 本层得出的dx,作为下一层的误差输入
dh = dx
dih = dix
# 第一层,正反两个方向的误差相加,得到总的dx返回上一层
# 如果rnn是第一层,则误差不需要继续向上传递
# 返回x误差和各层参数误差
dh_t_all = dh + dih # 合并得到dx
return dh_t_all, dweights
def lstm_step_forward(self, x, prev_h, prev_c, Wx, Wh, b):
"""
Forward pass for a single timestep of an LSTM.
The input data has dimension D, the hidden state has dimension H, and we use
a minibatch size of N.
Note that a sigmoid() function has already been provided for you in this file.
Inputs:
- x: Input data, of shape (N, D)
- prev_h: Previous hidden state, of shape (N, H)
- prev_c: previous cell state, of shape (N, H)
- Wx: Input-to-hidden weights, of shape (D, 4H)
- Wh: Hidden-to-hidden weights, of shape (H, 4H)
- b: Biases, of shape (4H,)
Returns a tuple of:
- next_h: Next hidden state, of shape (N, H)
- next_c: Next cell state, of shape (N, H)
- cache: Tuple of values needed for backward pass.
"""
next_h, next_c, cache = None, None, None
#############################################################################
# TODO: Implement the forward pass for a single timestep of an LSTM. #
# You may want to use the numerically stable sigmoid implementation above.
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
H = prev_h.shape[1]
# z , of shape(N,4H)
z = Tools.matmul(x, Wx) + Tools.matmul(prev_h, Wh) + b
# of shape(N,H)
i = Tools.sigmoid(z[:, :H])
f = Tools.sigmoid(z[:, H:2 * H])
o = Tools.sigmoid(z[:, 2 * H:3 * H])
g = np.tanh(z[:, 3 * H:])
next_c = f * prev_c + i * g
next_h = o * np.tanh(next_c)
cache = (x, prev_h, prev_c, Wx, Wh, i, f, o, g, next_c)
return next_h, next_c, cache
def lstm_step_backward(self, dnext_h, dnext_c, cache):
"""
Backward pass for a single timestep of an LSTM.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dprev_c, dWx, dWh, db = None, None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for a single timestep of an LSTM. #
# #
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
x, prev_h, prev_c, Wx, Wh, i, f, o, g, next_c = cache
dnext_c = dnext_c + o * (1 - np.tanh(next_c) ** 2) * dnext_h # next_h = o*np.tanh(next_c)
di = dnext_c * g # next_c = f*prev_c + i*g
df = dnext_c * prev_c # next_c = f*prev_c + i*g
do = dnext_h * np.tanh(next_c) # next_h = o*np.tanh(next_c)
dg = dnext_c * i # next_h = o*np.tanh(next_c)
dprev_c = f * dnext_c # next_c = f*prev_c + i*g
dz = np.hstack((i * (1 - i) * di, f * (1 - f) * df, o * (1 - o) * do, (1 - g ** 2) * dg)) # 共四部分
dx = Tools.matmul(dz, Wx.T)
dprev_h = Tools.matmul(dz, Wh.T)
dWx = Tools.matmul(x.T, dz)
dWh = Tools.matmul(prev_h.T, dz)
db = np.sum(dz, axis=0)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return dx, dprev_h, dprev_c, dWx, dWh, db
# GRU 类
class GRULayer(object):
def __init__(self, LName, miniBatchesSize, nodesNum, layersNum,
optimizerCls, optmParams, dropoutRRate, dataType, init_rng):
# 初始化超参数
self.name = LName
self.miniBatchesSize = miniBatchesSize
self.nodesNum = nodesNum
self.layersNum = layersNum
# self.optimizer = optimizer
self.dataType = dataType
self.init_rng = init_rng
self.isInited = False # 初始化标志
# dropout 的保留率
self.dropoutRRate = dropoutRRate
self.dropoutMask = []
self.out = []
self.optimizerObjs = [optimizerCls(optmParams, dataType) for i in range(layersNum)]
# 初始化w,u,b 和对应偏置,维度,层次和节点个数传参进去。但是没有T,所以不能创建参数
# 返回的是一个组合结构,按层次(数组)划分的U、W,字典
# 改为放在首batch X传入时lazy init
self.gruParams = []
# 保存各层中间产出的 st和f(st),用于前向和反向传播
# 不需要,已经在前反向传播中保留
self.deltaPrev = [] # 上一层激活后的误差输出
# N,H,L和优化器在初始化时定义
# T作为X的一个维度传进来
# tanh和sigmoid的前反向传播在类内部定义。
def _initNnWeight(self, D, H, layersNum, dataType):
# 层次
gruParams = []
for layer in range(layersNum):
Wzh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 2 * H)).astype(dataType)
War = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, H)).astype(dataType)
if (0 == layer):
Wzx = np.random.uniform(-1 * self.init_rng, self.init_rng, (D, 2 * H)).astype(dataType)
Wax = np.random.uniform(-1 * self.init_rng, self.init_rng, (D, H)).astype(dataType)
else:
Wzx = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 2 * H)).astype(dataType)
Wax = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, H)).astype(dataType)
bz = np.zeros(2 * H, dataType)
ba = np.zeros(H, dataType)
gruParams.append({'Wzx': Wzx, 'Wzh': Wzh, 'bz': bz, 'Wax': Wax, 'War': War, 'ba': ba})
self.gruParams = gruParams
def fp(self, input):
out_tmp = self.inference(input)
self.out, self.dropoutMask = Tools.dropout4rnn(out_tmp, self.dropoutRRate)
return self.out
# 预测时前向传播
def inference(self, x):
N, T, D = x.shape
H = self.nodesNum
L = self.layersNum
# lazy init
if (False == self.isInited):
self._initNnWeight(D, H, L, self.dataType)
self.isInited = True
# 缓存已经存入rnnParams里了,此处只需要返回输出结果(N,T,H)
h = self.gru_forward(x)
# N进 v 1出 模型,只保留时序最后的一项输出
# self.out = h[:,-1,:]
self.out = h
return self.out
# 反向传播方法(误差和权参)
# TODO 实现反向传播逻辑,先按照时间,再按照层次,再更新Wx/Wf/b/V/bv 及偏置的反向传播梯度
def bp(self, input, delta_ori, lrt):
if self.dropoutRRate == 1:
delta = delta_ori
else:
delta = delta_ori * self.dropoutMask
# dw是一个数组,对应结构的多层,每层的dw,dh,db,dh0表示需要参数梯度
N, T, D = input.shape
H = delta.shape[1]
# 只有最后一个T填delta,其余的dh梯度设置为0
dh = np.zeros((N, T, H), self.dataType)
# dh[:,-1,:] = delta
dh = delta
dx, dweight = self.gru_backward(dh)
# 根据梯度更新参数
self.bpWeights(dweight, lrt)
return dx
# 计算反向传播权重梯度w,b
def bpWeights(self, dw, lrt):
L = self.layersNum
for l in range(L):
w = (self.gruParams[l]['Wzx'], self.gruParams[l]['Wzh'], self.gruParams[l]['bz'], self.gruParams[l]['Wax'],
self.gruParams[l]['War'], self.gruParams[l]['ba'])
# self.gruParams[l]['Wzx'], self.gruParams[l]['Wzh'], self.gruParams[l]['bz'],self.gruParams[l]['Wax'], self.gruParams[l]['War'], self.gruParams[l]['ba'] = self.optimizerObjs[l].getUpdWeights(w, dw[L-1-l], lrt)
self.optimizerObjs[l].getUpdWeights(w, dw[L - 1 - l], lrt)
def gru_forward(self, x):
"""
Forward pass for an LSTM over an entire sequence of data. We assume an input
sequence composed of T vectors, each of dimension D. The LSTM uses a hidden
size of H, and we work over a minibatch containing N sequences. After running
the LSTM forward, we return the hidden states for all timesteps.
Note that the initial cell state is passed as input, but the initial cell
state is set to zero. Also note that the cell state is not returned; it is
an internal variable to the LSTM and is not accessed from outside.
Inputs:
- x: Input data of shape (N, T, D)
- h0: Initial hidden state of shape (N, H)
- Wx: Weights for input-to-hidden connections, of shape (D, 4H)
- Wh: Weights for hidden-to-hidden connections, of shape (H, 4H)
- b: Biases of shape (4H,)
Returns a tuple of:
- h: Hidden states for all timesteps of all sequences, of shape (N, T, H)
- cache: Values needed for the backward pass.
"""
h, cache = None, None
#############################################################################
# TODO: Implement the forward pass for an LSTM over an entire timeseries. #
# You should use the lstm_step_forward function that you just defined. #
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
N, T, D = x.shape
L = self.layersNum
H = self.gruParams[0]['ba'].shape[0] # 取整
xh = x # 首层输入是x
for layer in range(L):
h = np.zeros((N, T, H))
h0 = np.zeros((N, H))
cache = []
for t in range(T):
h[:, t, :], tmp_cache = self.gru_step_forward(xh[:, t, :], h[:, t - 1, :] if t > 0 else h0,
self.gruParams[layer]['Wzx'],
self.gruParams[layer]['Wzh'],
self.gruParams[layer]['bz'],
self.gruParams[layer]['Wax'],
self.gruParams[layer]['War'],
self.gruParams[layer]['ba'],
)
cache.append(tmp_cache)
xh = h # 之后以h作为xh作为跨层输入
##############################################################################
# END OF YOUR CODE #
##############################################################################
self.gruParams[layer]['h'] = h
self.gruParams[layer]['cache'] = cache
return h
def gru_backward(self, dh):
"""
Backward pass for an LSTM over an entire sequence of data.]
Inputs:
- dh: Upstream gradients of hidden states, of shape (N, T, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data of shape (N, T, D)
- dh0: Gradient of initial hidden state of shape (N, H)
- dWx: Gradient of input-to-hidden weight matrix of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weight matrix of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dh0, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for an LSTM over an entire timeseries. #
# You should use the lstm_step_backward function that you just defined. #
#############################################################################
N, T, H = dh.shape
x, _, _, _, _, _, _, _, _, _ = self.gruParams[0]['cache'][0]
D = x.shape[1]
dh_prevl = dh
# 保存各层dwh,dwx,和db
dweights = []
for layer in range(self.layersNum - 1, -1, -1):
# 得到前向传播保存的cache数组
cache = self.gruParams[layer]['cache']
DH = D if layer == 0 else H
dx = np.zeros((N, T, DH))
dWzx = np.zeros((DH, 2 * H))
dWzh = np.zeros((H, 2 * H))
dbz = np.zeros((2 * H))
dWax = np.zeros((DH, H))
dWar = np.zeros((H, H))
dba = np.zeros((H))
dprev_h = np.zeros((N, H))
for t in range(T - 1, -1, -1):
dx[:, t, :], dprev_h, dWzx_t, dWzh_t, dbz_t, dWax_t, dWar_t, dba_t = self.gru_step_backward(
dh_prevl[:, t, :] + dprev_h,
cache[t]) # 注意此处的叠加
dWzx += dWzx_t
dWzh += dWzh_t
dbz += dbz_t
dWax += dWax_t
dWar += dWar_t
dba += dba_t
# 本层得出的dx,作为下一层的prev_l
dh_prevl = dx
dweight = (dWzx, dWzh, dbz, dWax, dWar, dba)
dweights.append(dweight)
##############################################################################
# END OF YOUR CODE #
##############################################################################
# 返回x误差和各层参数误差
return dx, dweights
def gru_step_forward(self, x, prev_h, Wzx, Wzh, bz, Wax, War, ba):
"""
Forward pass for a single timestep of an LSTM.
The input data has dimension D, the hidden state has dimension H, and we use
a minibatch size of N.
Note that a sigmoid() function has already been provided for you in this file.
Inputs:
- x: Input data, of shape (N, D)
- prev_h: Previous hidden state, of shape (N, H)
- prev_c: previous cell state, of shape (N, H)
- Wzx: Input-to-hidden weights, of shape (D, 4H)
- Wh: Hidden-to-hidden weights, of shape (H, 4H)
- b: Biases, of shape (4H,)
Returns a tuple of:
- next_h: Next hidden state, of shape (N, H)
- next_c: Next cell state, of shape (N, H)
- cache: Tuple of values needed for backward pass.
"""
next_h, cache = None, None
#############################################################################
# TODO: Implement the forward pass for a single timestep of an LSTM. #
# You may want to use the numerically stable sigmoid implementation above.
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
H = prev_h.shape[1]
# z_hat, of shape(N,4H)
z_hat = Tools.matmul(x, Wzx) + Tools.matmul(prev_h, Wzh) + bz
# of shape(N,H)
r = Tools.sigmoid(z_hat[:, :H])
z = Tools.sigmoid(z_hat[:, H:2 * H])
a = Tools.matmul(x, Wax) + Tools.matmul(r * prev_h, War) + ba
next_h = prev_h * (1. - z) + z * np.tanh(a)
cache = (x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return next_h, cache
def gru_step_backward(self, dnext_h, cache):
"""
Backward pass for a single timestep of an LSTM.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for a single timestep of an LSTM. #
# #
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a = cache
N, D = x.shape
H = dnext_h.shape[1]
z_hat_H1 = z_hat[:, :H]
z_hat_H2 = z_hat[:, H:2 * H]
# delta
tanha = np.tanh(a)
dh = dnext_h
da = dh * z * (1. - tanha ** 2)
dh_prev_1 = dh * (1. - z)
# dz = dh*(tanha-prev_h)
dz_hat_2 = dh * (tanha - prev_h) * (z * (1. - z))
dhat_a = Tools.matmul(da, War.T)
dr = dhat_a * prev_h
dx_1 = Tools.matmul(da, Wax.T)
dh_prev_2 = dhat_a * r # da* Tools.matmul(r,War.T)
dz_hat_1 = dr * (r * (1. - r))
dz_hat = np.hstack((dz_hat_1, dz_hat_2))
dx_2 = Tools.matmul(dz_hat_1, Wzx[:, :H].T)
dh_prev_3 = Tools.matmul(dz_hat_1, Wzh[:, :H].T)
dx_3 = Tools.matmul(dz_hat_2, Wzx[:, H:2 * H].T)
dh_prev_4 = Tools.matmul(dz_hat_2, Wzh[:, H:2 * H].T)
dprev_h = dh_prev_1 + dh_prev_2 + dh_prev_3 + dh_prev_4
dx = dx_1 + dx_2 + dx_3
dWax = Tools.matmul(x.T, da)
dWar = Tools.matmul((r * prev_h).T, da)
dba = np.sum(da, axis=0)
dWzx = Tools.matmul(x.T, dz_hat)
dWzh = Tools.matmul(prev_h.T, dz_hat)
dbz = np.sum(dz_hat, axis=0)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba
def gru_step_backward_succ(self, dnext_h, cache):
"""
Backward pass for a single timestep of an LSTM.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for a single timestep of an LSTM. #
# #
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a = cache
N, D = x.shape
H = dnext_h.shape[1]
z_hat_H1 = z_hat[:, :H]
z_hat_H2 = z_hat[:, H:2 * H]
# delta
tanha = np.tanh(a)
dh = dnext_h
da = dh * z * (1. - tanha ** 2)
dh_prev_1 = dh * (1. - z)
# dz = dh * (z+tanha)
# dz = dh*tanha+1.-dh*(1.-z)*prev_h
# dz = dh*tanha+1.-dh*prev_h
dz = dh * (tanha - prev_h)
# dz_hat_2 = dz*(z*(1.-z))
dz_hat_2 = dh * (tanha - prev_h) * (z * (1. - z))
# dz_hat_2 = dz*(z_hat_H2*(1.-z_hat_H2))
dhat_a = Tools.matmul(da, War.T)
# dz_hat_2 = dhat_r * r
dr = dhat_a * prev_h
dx_1 = Tools.matmul(da, Wax.T)
dh_prev_2 = dhat_a * r # da* Tools.matmul(r,War.T)
# dz_hat_1 = dh_prev_2 * (r * (1. - r))
dz_hat_1 = dr * (r * (1. - r))
# dz_hat_1 = prev_h * Tools.matmul(dh*z*(1-tanha**2), War.T)*(r*(1.-r))
dz_hat = np.hstack((dz_hat_1, dz_hat_2))
# dh_prev_3 = Tools.matmul(dz_hat_2,Wzh.T)
# dx_2 = Tools.matmul(dz_hat_2,Wzx.T)
dx_2 = Tools.matmul(dz_hat_1, Wzx[:, :H].T)
# dh_prev_3 = Tools.matmul(dz_hat,Wzh.T)
# dh_prev_3 = Tools.matmul(dz_hat_2,Wzh.T)
dh_prev_3 = Tools.matmul(dz_hat_1, Wzh[:, :H].T)
dx_23 = Tools.matmul(dz_hat, Wzx.T)
# dx_3 = Tools.matmul(dz_hat_1,Wzx.T)
dx_3 = Tools.matmul(dz_hat_2, Wzx[:, H:2 * H].T)
# dh_prev_4 =Tools.matmul(dz_hat_1, Wzh.T)
dh_prev_4 = Tools.matmul(dz_hat_2, Wzh[:, H:2 * H].T)
# dx_3 = Tools.matmul(dz_hat,Wzx.T)
# dh_prev_4 =Tools.matmul(dz_hat, Wzh.T)
# dh_prev_34 = np.hstack((dh_prev_3, dh_prev_4))
# dh_prev_34 = Tools.matmul(dh_prev_34,Wzh.T)
dh_prev_34 = Tools.matmul(dz_hat, Wzh.T)
# dprev_h = dh_prev_1+dh_prev_2+dh_prev_34 * 2. #dh_prev_3 + dh_prev_4
# dx = dx_1 + dx_2*2. # +dx_3
# dprev_h = dh_prev_1+dh_prev_2+dh_prev_34 #dh_prev_3 + dh_prev_4
dprev_h = dh_prev_1 + dh_prev_2 + dh_prev_3 + dh_prev_4
# dx = dx_1 + dx_23 # +dx_3
dx = dx_1 + dx_2 + dx_3
dWax = Tools.matmul(x.T, da)
dWar = Tools.matmul((r * prev_h).T, da)
dba = np.sum(da, axis=0)
dWzx = Tools.matmul(x.T, dz_hat)
dWzh = Tools.matmul(prev_h.T, dz_hat)
dbz = np.sum(dz_hat, axis=0)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba
def gru_step_backward_v2(self, dnext_h, cache):
"""
Backward pass for a single timestep of an LSTM.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for a single timestep of an LSTM. #
# #
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a = cache
N, D = x.shape
H = dnext_h.shape[1]
z_hat_H1 = z_hat[:, :H]
z_hat_H2 = z_hat[:, H:2 * H]
# delta
tanha = np.tanh(a)
dh = dnext_h
da = dh * z * (1. - tanha ** 2)
dh_prev_1 = dh * (1. - z)
# dz = dh * (z+tanha)
# dz = dh*tanha+1.-dh*(1.-z)*prev_h
# dz = dh*tanha+1.-dh*prev_h
dz = dh * (tanha - prev_h)
# dz_hat_2 = dz*(z*(1.-z))
dz_hat_2 = dh * (tanha - prev_h) * (z * (1. - z))
# dz_hat_2 = dz*(z_hat_H2*(1.-z_hat_H2))
dhat_a = Tools.matmul(da, War.T)
# dz_hat_2 = dhat_r * r
dr = dhat_a * prev_h
dx_1 = Tools.matmul(da, Wax.T)
dh_prev_2 = dhat_a * r # da* Tools.matmul(r,War.T)
# dz_hat_1 = dh_prev_2 * (r * (1. - r))
dz_hat_1 = dr * (r * (1. - r))
# dz_hat_1 = prev_h * Tools.matmul(dh*z*(1-tanha**2), War.T)*(r*(1.-r))
dz_hat = np.hstack((dz_hat_1, dz_hat_2))
# dh_prev_3 = Tools.matmul(dz_hat_2,Wzh.T)
# dx_2 = Tools.matmul(dz_hat_2,Wzx.T)
# dh_prev_3 = Tools.matmul(dz_hat,Wzh.T)
# dh_prev_3 = Tools.matmul(dz_hat_2,Wzh.T)
dx_23 = Tools.matmul(dz_hat, Wzx.T)
# dx_3 = Tools.matmul(dz_hat_1,Wzx.T)
# dh_prev_4 =Tools.matmul(dz_hat_1, Wzh.T)
# dx_3 = Tools.matmul(dz_hat,Wzx.T)
# dh_prev_4 =Tools.matmul(dz_hat, Wzh.T)
# dh_prev_34 = np.hstack((dh_prev_3, dh_prev_4))
# dh_prev_34 = Tools.matmul(dh_prev_34,Wzh.T)
dh_prev_34 = Tools.matmul(dz_hat, Wzh.T)
# dprev_h = dh_prev_1+dh_prev_2+dh_prev_34 * 2. #dh_prev_3 + dh_prev_4
# dx = dx_1 + dx_2*2. # +dx_3
dprev_h = dh_prev_1 + dh_prev_2 + dh_prev_34 # dh_prev_3 + dh_prev_4
dx = dx_1 + dx_23 # +dx_3
dWax = Tools.matmul(x.T, da)
dWar = Tools.matmul((r * prev_h).T, da)
dba = np.sum(da, axis=0)
dWzx = Tools.matmul(x.T, dz_hat)
dWzh = Tools.matmul(prev_h.T, dz_hat)
dbz = np.sum(dz_hat, axis=0)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba
def gru_step_backward_v1(self, dnext_h, cache):
"""
Backward pass for a single timestep of an LSTM.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
#############################################################################
# TODO: Implement the backward pass for a single timestep of an LSTM. #
# #
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a = cache
N, D = x.shape
H = dnext_h.shape[1]
z_hat_H1 = z_hat[:, :H]
z_hat_H2 = z_hat[:, H:2 * H]
# delta
tanha = np.tanh(a)
dh = dnext_h
da = dh * z * (1. - tanha * tanha)
dh_prev_1 = dh * (1. - z)
# dz = dh * (z+tanha)
# dz = dh*tanha+1.-dh*(1.-z)*prev_h
# dz = dh*tanha+1.-dh*prev_h
dz = dh * (tanha - prev_h)
dz_hat_2 = dz * (z * (1. - z))
# dz_hat_2 = dz*(z_hat_H2*(1.-z_hat_H2))
dhat_a = Tools.matmul(da, War.T)
# dz_hat_2 = dhat_r * r
dr = dhat_a * prev_h
dx_1 = Tools.matmul(da, Wax.T)
dh_prev_2 = dhat_a * r # da* Tools.matmul(r,War.T)
# dz_hat_1 = dh_prev_2 * (r * (1. - r))
dz_hat_1 = dr * (r * (1. - r))
dz_hat = np.hstack((dz_hat_1, dz_hat_2))
# dh_prev_3 = Tools.matmul(dz_hat_2,Wzh.T)
# dx_2 = Tools.matmul(dz_hat_2,Wzx.T)
# dh_prev_3 = Tools.matmul(dz_hat,Wzh.T)
# dh_prev_3 = Tools.matmul(dz_hat_2,Wzh.T)
dx_2 = Tools.matmul(dz_hat, Wzx.T)
# dx_3 = Tools.matmul(dz_hat_1,Wzx.T)
# dh_prev_4 =Tools.matmul(dz_hat_1, Wzh.T)
# dx_3 = Tools.matmul(dz_hat,Wzx.T)
# dh_prev_4 =Tools.matmul(dz_hat, Wzh.T)
# dh_prev_34 = np.hstack((dh_prev_3, dh_prev_4))
# dh_prev_34 = Tools.matmul(dh_prev_34,Wzh.T)
dh_prev_34 = Tools.matmul(dz_hat, Wzh.T)
# dprev_h = dh_prev_1+dh_prev_2+dh_prev_34 * 2. #dh_prev_3 + dh_prev_4
# dx = dx_1 + dx_2*2. # +dx_3
dprev_h = dh_prev_1 + dh_prev_2 + dh_prev_34 # dh_prev_3 + dh_prev_4
dx = dx_1 + dx_2 # +dx_3
dWax = Tools.matmul(x.T, da)
dWar = Tools.matmul((r * prev_h).T, da)
dba = np.sum(da, axis=0)
dWzx = Tools.matmul(x.T, dz_hat)
dWzh = Tools.matmul(prev_h.T, dz_hat)
dbz = np.sum(dz_hat, axis=0)
##############################################################################
# END OF YOUR CODE #
##############################################################################
return dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba
def gru_step_backward_v0(self, dnext_h, cache):
"""
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a = cache
N, D = x.shape
H = dnext_h.shape[1]
z_hat_H1 = z_hat[:, :H]
z_hat_H2 = z_hat[:, H:2 * H]
# delta
tanha = np.tanh(a)
dh = dnext_h
da = dh * z * (1. - tanha * tanha)
dh_prev_1 = dh * (1. - z)
dz = dh * (z + tanha)
dz_hat_2 = dz * (z * (1. - z))
d13 = np.matmul(da, War.T)
dr = d13 * prev_h
dx_1 = np.matmul(da, Wax.T)
dh_prev_2 = d13 * r
dz_hat_1 = dh_prev_2 * (r * (1. - r))
dz_hat = np.hstack((dz_hat_1, dz_hat_2))
dh_prev_3 = np.matmul(dz_hat, Wzh.T)
dx_2 = np.matmul(dz_hat, Wzx.T)
dx_3 = np.matmul(dz_hat, Wzx.T)
dh_prev_4 = np.matmul(dz_hat, Wzh.T)
dprev_h = dh_prev_1 + dh_prev_2 + dh_prev_3 + dh_prev_4
dx = dx_1 + dx_2 + dx_3
dWax = np.matmul(x.T, da)
dWar = np.matmul((r * prev_h).T, da)
dba = np.sum(da, axis=0)
dWzx = np.matmul(x.T, dz_hat)
dWzh = np.matmul(prev_h.T, dz_hat)
dbz = np.sum(dz_hat, axis=0)
return dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba
# concat 方式
class BiGRULayer(object):
def __init__(self, LName, miniBatchesSize, nodesNum, layersNum,
optimizerCls, optmParams, dropoutRRate, dataType, init_rng):
# 初始化超参数
self.name = LName
self.miniBatchesSize = miniBatchesSize
self.nodesNum = nodesNum
self.layersNum = layersNum
self.dataType = dataType
self.init_rng = init_rng
self.isInited = False # 初始化标志
# dropout 的保留率
self.dropoutRRate = dropoutRRate
self.dropoutMask = []
self.out = []
self.optimizerObjs = [optimizerCls(optmParams, dataType) for i in range(layersNum)]
# 初始化w,u,b 和对应偏置,维度,层次和节点个数传参进去。但是没有T,所以不能创建参数
# 返回的是一个组合结构,按层次(数组)划分的U、W,字典
# 改为放在首batch X传入时lazy init
self.gruParams = []
# 不需要保存各层中间产出的 st和f(st),已经在前反向传播中保留,用于前向和反向传播,
self.deltaPrev = [] # 上一层激活后的误差输出
# N,H,L和优化器在初始化时定义
# T作为X的一个维度传进来
# tanh和sigmoid的前反向传播在类内部定义。
def _initNnWeight(self, D, H, layersNum, dataType):
# 层次
gruParams = []
for layer in range(layersNum):
# 右向
Wzh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 2 * H)).astype(dataType)
War = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, H)).astype(dataType)
# 左向
iWzh = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, 2 * H)).astype(dataType)
iWar = np.random.uniform(-1 * self.init_rng, self.init_rng, (H, H)).astype(dataType)
DH = D if layer == 0 else H
# 右向
Wzx = np.random.uniform(-1 * self.init_rng, self.init_rng, (DH, 2 * H)).astype(dataType)
Wax = np.random.uniform(-1 * self.init_rng, self.init_rng, (DH, H)).astype(dataType)
bz = np.zeros(2 * H, dataType)
ba = np.zeros(H, dataType)
# 左向
iWzx = np.random.uniform(-1 * self.init_rng, self.init_rng, (DH, 2 * H)).astype(dataType)
iWax = np.random.uniform(-1 * self.init_rng, self.init_rng, (DH, H)).astype(dataType)
ibz = np.zeros(2 * H, dataType)
iba = np.zeros(H, dataType)
gruParams.append({'Wzx': Wzx, 'Wzh': Wzh, 'bz': bz, 'Wax': Wax, 'War': War, 'ba': ba,
'iWzx': iWzx, 'iWzh': iWzh, 'ibz': ibz, 'iWax': iWax, 'iWar': iWar, 'iba': iba
})
self.gruParams = gruParams
def fp(self, input):
out_tmp = self.inference(input)
self.out, self.dropoutMask = Tools.dropout4rnn(out_tmp, self.dropoutRRate)
return self.out
# 预测时前向传播
def inference(self, x):
N, T, D = x.shape
H = self.nodesNum
L = self.layersNum
# lazy init
if (False == self.isInited):
self._initNnWeight(D, H, L, self.dataType)
self.isInited = True
# 缓存已经存入rnnParams里了,此处只需要返回输出结果(N,T,H)
# N进 v 1出 模型,只保留时序最后的一项输出
# h = self.gru_forward(x)
# self.out = h[:,-1,:]
# N进N出模型,全部输出
self.out = self.gru_forward(x)
return self.out
# 反向传播方法(误差和权参)
def bp(self, input, delta_ori, lrt):
if self.dropoutRRate == 1:
delta = delta_ori
else:
delta = delta_ori * self.dropoutMask
# dw是一个数组,对应结构的多层,每层的dw,dh,db,dh0表示需要参数梯度
# N v 1 只有最后一个T填delta,其余的dh梯度设置为0
# N, T, D = input.shape
# H = delta.shape[1]
# dh = np.zeros((N, T, H), self.dataType)
# dh[:,-1,:] = delta
# N v N模型
dh = delta
dx, dweight = self.gru_backward(dh)
# 根据梯度更新参数
self.bpWeights(dweight, lrt)
return dx
# 计算反向传播权重梯度w,b
def bpWeights(self, dw, lrt):
L = self.layersNum
for l in range(L):
# w = (self.gruParams[l]['Wzx'], self.gruParams[l]['Wzh'], self.gruParams[l]['bz'],
# self.gruParams[l]['Wax'], self.gruParams[l]['War'], self.gruParams[l]['ba'],
# self.gruParams[l]['iWzx'], self.gruParams[l]['iWzh'], self.gruParams[l]['ibz'],
# self.gruParams[l]['iWax'], self.gruParams[l]['iWar'], self.gruParams[l]['iba']
# # ,self.gruParams[l]['U'], self.gruParams[l]['V'], self.gruParams[l]['bc']
# )
params=self.gruParams[l]
w = (params['Wzx'], params['Wzh'], params['bz'],
params['Wax'], params['War'], params['ba'],
params['iWzx'], params['iWzh'], params['ibz'],
params['iWax'], params['iWar'], params['iba']
)
# is_same0 = op.eq(w,w0)
# 梯度倒序append到dw中
self.optimizerObjs[l].getUpdWeights(w, dw[L - 1 - l], lrt)
def bpWeights_v1(self, dw, lrt):
L = self.layersNum
for l in range(L):
w = (self.gruParams[l]['Wzx'], self.gruParams[l]['Wzh'], self.gruParams[l]['bz'],
self.gruParams[l]['Wax'], self.gruParams[l]['War'], self.gruParams[l]['ba'],
self.gruParams[l]['iWzx'], self.gruParams[l]['iWzh'], self.gruParams[l]['ibz'],
self.gruParams[l]['iWax'], self.gruParams[l]['iWar'], self.gruParams[l]['iba']
# ,self.gruParams[l]['U'], self.gruParams[l]['V'], self.gruParams[l]['bc']
)
w1 = (self.gruParams[l][element] for element in self.gruParams[l])
w2 = (v for (k,v) in self.gruParams[l].items())
is_same1 = op.eq(w,w1)
is_same2 = op.eq(w, w2)
# 梯度倒序append到dw中
self.optimizerObjs[l].getUpdWeights(w, dw[L - 1 - l], lrt)
def gru_forward(self, x):
"""
Forward pass for an BiGRU over an entire sequence of data. We assume an input
sequence composed of T vectors, each of dimension D. The LSTM uses a hidden
size of H, and we work over a minibatch containing N sequences. After running
the LSTM forward, we return the hidden states for all timesteps.
Note that the initial cell state is passed as input, but the initial cell
state is set to zero. Also note that the cell state is not returned; it is
an internal variable to the LSTM and is not accessed from outside.
Inputs:
- x: Input data of shape (N, T, D)
- h0: Initial hidden state of shape (N, H)
- Wx: Weights for input-to-hidden connections, of shape (D, 4H)
- Wh: Weights for hidden-to-hidden connections, of shape (H, 4H)
- b: Biases of shape (4H,)
Returns a tuple of:
- h: Hidden states for all timesteps of all sequences, of shape (N, T, H)
- cache: Values needed for the backward pass.
"""
#############################################################################
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
N, T, D = x.shape
L = self.layersNum
H = self.gruParams[0]['ba'].shape[0] # 取整
xh = x # 首层输入是x
ixh= x # 反向
for layer in range(L):
h0 = np.zeros((N, H))
# 右向
h = np.zeros((N, T, H))
cache = []
# 左向
ih = np.zeros((N, T, H))
icache = []
for t in range(T):
# 右向
h[:, t, :], tmp_cache = self.gru_step_forward(xh[:, t, :],
h[:, t - 1, :] if t > 0 else h0,
self.gruParams[layer]['Wzx'],
self.gruParams[layer]['Wzh'],
self.gruParams[layer]['bz'],
self.gruParams[layer]['Wax'],
self.gruParams[layer]['War'],
self.gruParams[layer]['ba']
)
cache.append(tmp_cache)
# 左向
ih[:, T - 1 - t , :], tmp_icache = self.gru_step_forward(ixh[:, T - 1 - t, :],
ih[:, T - t, :] if t > 0 else h0,
self.gruParams[layer]['iWzx'],
self.gruParams[layer]['iWzh'],
self.gruParams[layer]['ibz'],
self.gruParams[layer]['iWax'],
self.gruParams[layer]['iWar'],
self.gruParams[layer]['iba']
)
# icache是下标和ih下标是返向的 )
icache.append(tmp_icache)
# 右向
self.gruParams[layer]['h'] = h
self.gruParams[layer]['cache'] = cache
# 左向
self.gruParams[layer]['ih'] = ih
self.gruParams[layer]['icache'] = icache
xh = h
ixh = ih
xh_final = np.concatenate((xh, ixh), axis=2) # 在H维度上做拼接
# self.gruParams[layer]['xh_final'] = xh_final
return xh_final
def gru_backward(self, dh_all):
"""
Backward pass for an BiLSTM over an entire sequence of data.]
Inputs:
- dh: Upstream gradients of hidden states, of shape (N, T, 2H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data of shape (N, T, D)
- dh0: Gradient of initial hidden state of shape (N, H)
- dWx: Gradient of input-to-hidden weight matrix of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weight matrix of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dh0, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
diWzx, diWzh, dibz, diWax, diWar, diba = None, None, None, None, None, None
dU, dV, dbc = None, None, None
#############################################################################
# TODO: Implement the backward pass for an LSTM over an entire timeseries. #
# You should use the lstm_step_backward function that you just defined. #
#############################################################################
N, T, H_time_2 = dh_all.shape #得到的误差是batch *T* 2H
H = int(H_time_2 / 2)
# N, T, H = dh_all.shape
x, _, _, _, _, _, _, _, _, _ = self.gruParams[0]['cache'][0]
D = x.shape[1]
dh = dh_all[:,:,0:H]
dih = dh_all[:,:,H:2*H]
dweights = []
for layer in range(self.layersNum - 1, -1, -1):
dh_prevl = dh
dih_prevl = dih
DH = D if layer == 0 else H
# 右向 得到前向传播保存的cache数组
cache = self.gruParams[layer]['cache']
dx = np.zeros((N, T, DH))
dWzx = np.zeros((DH, 2 * H))
dWzh = np.zeros((H, 2 * H))
dbz = np.zeros((2 * H))
dWax = np.zeros((DH, H))
dWar = np.zeros((H, H))
dba = np.zeros((H))
dprev_h = np.zeros((N, H))
# 左向
icache = self.gruParams[layer]['icache']
dix = np.zeros((N, T, DH))
diWzx = np.zeros((DH, 2 * H))
diWzh = np.zeros((H, 2 * H))
dibz = np.zeros((2 * H))
diWax = np.zeros((DH, H))
diWar = np.zeros((H, H))
diba = np.zeros((H))
dprev_ih = np.zeros((N, H))
for t in range(T - 1, -1, -1):
# 右向
dx[:, t, :], dprev_h, dWzx_t, dWzh_t, dbz_t, dWax_t, dWar_t, dba_t = self.gru_step_backward(
dh_prevl[:, t, :] + dprev_h,
cache[t]) # 注意此处的叠加
dWzx += dWzx_t
dWzh += dWzh_t
dbz += dbz_t
dWax += dWax_t
dWar += dWar_t
dba += dba_t
dix[:, T-1-t, :], dprev_ih, diWzx_t, diWzh_t, dibz_t, diWax_t, diWar_t, diba_t = self.gru_step_backward(
dih_prevl[:, T- 1 - t, :] + dprev_ih,
icache[t]) # 注意此处的叠加,逆序
diWzx += diWzx_t
diWzh += diWzh_t
dibz += dibz_t
diWax += diWax_t
diWar += diWar_t
diba += diba_t
dweight = (dWzx, dWzh, dbz, dWax, dWar, dba,
diWzx, diWzh, dibz, diWax, diWar, diba
#,dU, dV, dbc_final
)
dweights.append(dweight)
dh = dx
dih = dix
dh_t_all = dh + dih # 合并得到dx
return dh_t_all, dweights
def gru_step_forward(self, x, prev_h, Wzx, Wzh, bz, Wax, War, ba):
"""
Forward pass for a single timestep of an GRU&BiGRU.
The input data has dimension D, the hidden state has dimension H, and we use
a minibatch size of N.
Note that a sigmoid() function has already been provided for you in this file.
Inputs:
- x: Input data, of shape (N, D)
- prev_h: Previous hidden state, of shape (N, H)
- prev_c: previous cell state, of shape (N, H)
- Wzx: Input-to-hidden weights, of shape (D, 4H)
- Wh: Hidden-to-hidden weights, of shape (H, 4H)
- b: Biases, of shape (4H,)
Returns a tuple of:
- next_h: Next hidden state, of shape (N, H)
- next_c: Next cell state, of shape (N, H)
- cache: Tuple of values needed for backward pass.
"""
# next_h, cache = None, None
#############################################################################
# 首层,x(N,T,D), 向上变成xh(N,T,H)
# 首层 Wx(D,H), 向上变成Wxh(H,H)
#############################################################################
H = prev_h.shape[1]
# z_hat, of shape(N,4H)
z_hat = Tools.matmul(x, Wzx) + Tools.matmul(prev_h, Wzh) + bz
# of shape(N,H)
r = Tools.sigmoid(z_hat[:, :H])
z = Tools.sigmoid(z_hat[:, H:2 * H])
a = Tools.matmul(x, Wax) + Tools.matmul(r * prev_h, War) + ba
tanha = np.tanh(a)
next_h = prev_h * (1. - z) + z * tanha
# cache = (x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a, tanha)
cache = (x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, tanha)
return next_h, cache
def gru_step_backward(self, dnext_h, cache):
"""
Backward pass for a single timestep of an GRU&BiGRU.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
#############################################################################
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
# x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a, tanha = cache
x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, tanha = cache
# N, D = x.shape
H = dnext_h.shape[1]
# delta
# tanha = np.tanh(a)
dh = dnext_h
da = dh * z * (1. - tanha ** 2)
dh_prev_1 = dh * (1. - z)
# dz_hat_2_n = dh * (tanha - prev_h) * (z * (1. - z))
dz_hat_2 = (tanha - prev_h) * z * dh_prev_1
# isSame1 = np.allclose(dz_hat_2,dz_hat_2_n)
dhat_a = Tools.matmul(da, War.T)
dr = dhat_a * prev_h
dx_1 = Tools.matmul(da, Wax.T)
dh_prev_2 = dhat_a * r # da* Tools.matmul(r,War.T)
dz_hat_1 = dr * (r * (1. - r))
dz_hat = np.hstack((dz_hat_1, dz_hat_2))
dx_2 = Tools.matmul(dz_hat_1, Wzx[:, :H].T)
dh_prev_3 = Tools.matmul(dz_hat_1, Wzh[:, :H].T)
dx_3 = Tools.matmul(dz_hat_2, Wzx[:, H:2 * H].T)
dh_prev_4 = Tools.matmul(dz_hat_2, Wzh[:, H:2 * H].T)
dprev_h = dh_prev_1 + dh_prev_2 + dh_prev_3 + dh_prev_4
dx = dx_1 + dx_2 + dx_3
dWax = Tools.matmul(x.T, da)
dWar = Tools.matmul((r * prev_h).T, da)
dba = np.sum(da, axis=0)
dWzx = Tools.matmul(x.T, dz_hat)
dWzh = Tools.matmul(prev_h.T, dz_hat)
dbz = np.sum(dz_hat, axis=0)
return dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba
def gru_step_backward_succ(self, dnext_h, cache):
"""
Backward pass for a single timestep of an GRU&BiGRU.
Inputs:
- dnext_h: Gradients of next hidden state, of shape (N, H)
- dnext_c: Gradients of next cell state, of shape (N, H)
- cache: Values from the forward pass
Returns a tuple of:
- dx: Gradient of input data, of shape (N, D)
- dprev_h: Gradient of previous hidden state, of shape (N, H)
- dprev_c: Gradient of previous cell state, of shape (N, H)
- dWx: Gradient of input-to-hidden weights, of shape (D, 4H)
- dWh: Gradient of hidden-to-hidden weights, of shape (H, 4H)
- db: Gradient of biases, of shape (4H,)
"""
dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba = None, None, None, None, None, None, None, None
#############################################################################
# HINT: For sigmoid and tanh you can compute local derivatives in terms of #
# the output value from the nonlinearity. #
#############################################################################
x, prev_h, Wzx, Wzh, Wax, War, z_hat, r, z, a = cache
N, D = x.shape
H = dnext_h.shape[1]
# delta
tanha = np.tanh(a)
dh = dnext_h
da = dh * z * (1. - tanha ** 2)
dh_prev_1 = dh * (1. - z)
# dz = dh*(tanha-prev_h)
dz_hat_2 = dh * (tanha - prev_h) * (z * (1. - z))
dhat_a = Tools.matmul(da, War.T)
dr = dhat_a * prev_h
dx_1 = Tools.matmul(da, Wax.T)
dh_prev_2 = dhat_a * r # da* Tools.matmul(r,War.T)
dz_hat_1 = dr * (r * (1. - r))
dz_hat = np.hstack((dz_hat_1, dz_hat_2))
dx_2 = Tools.matmul(dz_hat_1, Wzx[:, :H].T)
dh_prev_3 = Tools.matmul(dz_hat_1, Wzh[:, :H].T)
dx_3 = Tools.matmul(dz_hat_2, Wzx[:, H:2 * H].T)
dh_prev_4 = Tools.matmul(dz_hat_2, Wzh[:, H:2 * H].T)
dprev_h = dh_prev_1 + dh_prev_2 + dh_prev_3 + dh_prev_4
dx = dx_1 + dx_2 + dx_3
dWax = Tools.matmul(x.T, da)
dWar = Tools.matmul((r * prev_h).T, da)
dba = np.sum(da, axis=0)
dWzx = Tools.matmul(x.T, dz_hat)
dWzh = Tools.matmul(prev_h.T, dz_hat)
dbz = np.sum(dz_hat, axis=0)
return dx, dprev_h, dWzx, dWzh, dbz, dWax, dWar, dba
| 41.828301
| 223
| 0.460444
| 11,426
| 92,817
| 3.626378
| 0.041134
| 0.031085
| 0.021045
| 0.015205
| 0.923664
| 0.915386
| 0.90257
| 0.888959
| 0.880367
| 0.867745
| 0
| 0.013347
| 0.366323
| 92,817
| 2,218
| 224
| 41.84716
| 0.691138
| 0.329584
| 0
| 0.81344
| 0
| 0
| 0.008165
| 0
| 0
| 0
| 0
| 0.009468
| 0
| 1
| 0.058175
| false
| 0
| 0.007021
| 0
| 0.110331
| 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
|
686b4d95e0ab4186f262c0c3d04dc05af00442cf
| 837
|
py
|
Python
|
day13/data.py
|
ogun/advent-of-code-2020
|
1dcf268f9f1f6cd7c46d442b6aaa9b19ec5b2cf1
|
[
"MIT"
] | 4
|
2020-12-03T13:22:12.000Z
|
2020-12-22T21:51:49.000Z
|
day13/data.py
|
ogun/advent-of-code-2020
|
1dcf268f9f1f6cd7c46d442b6aaa9b19ec5b2cf1
|
[
"MIT"
] | null | null | null |
day13/data.py
|
ogun/advent-of-code-2020
|
1dcf268f9f1f6cd7c46d442b6aaa9b19ec5b2cf1
|
[
"MIT"
] | 1
|
2020-12-12T13:41:12.000Z
|
2020-12-12T13:41:12.000Z
|
INPUT = (
1000066,
[
13,
"x",
"x",
41,
"x",
"x",
"x",
37,
"x",
"x",
"x",
"x",
"x",
659,
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
19,
"x",
"x",
"x",
23,
"x",
"x",
"x",
"x",
"x",
29,
"x",
409,
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
"x",
17,
],
)
| 12.308824
| 12
| 0.101553
| 64
| 837
| 1.328125
| 0.1875
| 1.058824
| 1.341176
| 1.505882
| 0.517647
| 0.4
| 0.4
| 0.4
| 0.4
| 0.4
| 0
| 0.103846
| 0.689367
| 837
| 67
| 13
| 12.492537
| 0.223077
| 0
| 0
| 0.791045
| 0
| 0
| 0.063321
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
686ca0b3f51e4795b6e3a5aeb8b229e9770e53c8
| 12,874
|
py
|
Python
|
tests/channels/test_paymentchannel.py
|
febuiles/two1-python
|
88704487dba7715f97a0980781d4c0efb2ea7fc4
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
tests/channels/test_paymentchannel.py
|
febuiles/two1-python
|
88704487dba7715f97a0980781d4c0efb2ea7fc4
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
tests/channels/test_paymentchannel.py
|
febuiles/two1-python
|
88704487dba7715f97a0980781d4c0efb2ea7fc4
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
import time
import pytest
import two1.channels.statemachine as statemachine
import two1.channels.paymentchannel as paymentchannel
import two1.channels.walletwrapper as walletwrapper
import two1.channels.database as database
import tests.channels.mock as mock
# Monkey-patch mock payment channel server protocol
paymentchannel.SupportedProtocols['mock'] = mock.MockPaymentChannelServer
def assert_paymentchannel_state(expected, actual):
for attr in expected:
if callable(expected[attr]):
assert expected[attr](actual)
else:
assert expected[attr] == getattr(actual, attr)
def test_paymentchannel_typical():
# Create mocked dependencies
bc = mock.MockBlockchain()
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), bc)
db = database.Sqlite3Database(":memory:")
# Link the mock blockchain to the mock payment channel server as it is a
# non-injected dependency.
mock.MockPaymentChannelServer.blockchain = bc
# Clear mock payment channel server channels.
mock.MockPaymentChannelServer.channels = {}
# Open a payment channel with 100000 deposit, 86400 seconds expiration, and 10000 fee
pc = paymentchannel.PaymentChannel.open(db, wallet, bc, 'mock://test', 100000, 86400, 10000, False)
# Assert payment channel properties
expected_state = {}
expected_state['url'] = "mock://test/" + pc.deposit_txid
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_DEPOSIT
expected_state['ready'] = False
expected_state['balance'] = 100000
expected_state['deposit'] = 100000
expected_state['fee'] = 10000
expected_state['creation_time'] = lambda pc: pc.creation_time > 0
expected_state['expiration_time'] = int(pc.creation_time + 86400)
expected_state['expired'] = False
expected_state['refund_tx'] = lambda pc: pc.refund_tx
expected_state['refund_txid'] = lambda pc: pc.refund_txid
expected_state['deposit_tx'] = lambda pc: pc.deposit_tx
expected_state['deposit_txid'] = lambda pc: pc.deposit_txid
expected_state['payment_tx'] = None
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_paymentchannel_state(expected_state, pc)
# Check database
with db:
assert db.list() == [pc.url]
assert db.read(pc.url)
# Check blockchain
assert bc.check_confirmed(pc.deposit_txid) is False
assert bc.lookup_tx(pc.deposit_txid) == pc.deposit_tx
# Try premature payment
with pytest.raises(paymentchannel.NotReadyError):
pc.pay(1)
# Try premature close
with pytest.raises(paymentchannel.NotReadyError):
pc.close()
# Sync payment channel
pc.sync()
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_DEPOSIT
expected_state['ready'] = False
assert_paymentchannel_state(expected_state, pc)
# Confirm deposit
bc.mock_confirm(pc.deposit_txid)
# Sync payment channel
pc.sync()
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['ready'] = True
assert_paymentchannel_state(expected_state, pc)
# Try excess payment
with pytest.raises(paymentchannel.InsufficientBalanceError):
pc.pay(pc.balance + 1)
# Try premature close
with pytest.raises(paymentchannel.NoPaymentError):
pc.close()
# Make regular payments
assert pc.pay(1500)
expected_state['payment_tx'] = lambda pc: pc.payment_tx
expected_state['balance'] = 97000
assert_paymentchannel_state(expected_state, pc)
assert pc.pay(1)
expected_state['payment_tx'] = lambda pc: pc.payment_tx
expected_state['balance'] = 96999
assert_paymentchannel_state(expected_state, pc)
assert pc.pay(15)
expected_state['payment_tx'] = lambda pc: pc.payment_tx
expected_state['balance'] = 96984
assert_paymentchannel_state(expected_state, pc)
assert pc.pay(20000)
expected_state['payment_tx'] = lambda pc: pc.payment_tx
expected_state['balance'] = 76984
assert_paymentchannel_state(expected_state, pc)
# Close payment channel
pc.close()
# Check payment channel properties
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['ready'] = False
expected_state['spend_txid'] = str(mock.MockPaymentChannelServer.channels[pc.deposit_txid]['payment_tx'].hash)
assert_paymentchannel_state(expected_state, pc)
# Sync payment channel
pc.sync()
assert_paymentchannel_state(expected_state, pc)
# Confirm spend
bc.mock_confirm(pc.spend_txid)
# Sync payment channel
pc.sync()
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
expected_state['spend_tx'] = mock.MockPaymentChannelServer.channels[pc.deposit_txid]['payment_tx'].to_hex()
assert_paymentchannel_state(expected_state, pc)
# Try payment on closed channel
with pytest.raises(paymentchannel.ClosedError):
pc.pay(1)
def test_paymentchannel_typical_zeroconf():
# Create mocked dependencies
bc = mock.MockBlockchain()
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), bc)
db = database.Sqlite3Database(":memory:")
# Link the mock blockchain to the mock payment channel server as it is a
# non-injected dependency.
mock.MockPaymentChannelServer.blockchain = bc
# Clear mock payment channel server channels.
mock.MockPaymentChannelServer.channels = {}
# Open a payment channel with 100000 deposit, 86400 seconds expiration, and 10000 fee
pc = paymentchannel.PaymentChannel.open(db, wallet, bc, 'mock://test', 100000, 86400, 10000, True)
# Assert payment channel properties
expected_state = {}
expected_state['url'] = "mock://test/" + pc.deposit_txid
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['ready'] = True
expected_state['balance'] = 100000
expected_state['deposit'] = 100000
expected_state['fee'] = 10000
expected_state['creation_time'] = lambda pc: pc.creation_time > 0
expected_state['expiration_time'] = int(pc.creation_time + 86400)
expected_state['expired'] = False
expected_state['refund_tx'] = lambda pc: pc.refund_tx
expected_state['refund_txid'] = lambda pc: pc.refund_txid
expected_state['deposit_tx'] = lambda pc: pc.deposit_tx
expected_state['deposit_txid'] = lambda pc: pc.deposit_txid
expected_state['payment_tx'] = None
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_paymentchannel_state(expected_state, pc)
# Make a few payments and close the channel
pc.pay(1)
pc.pay(1)
pc.pay(1)
pc.close()
# Check payment channel properties
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['ready'] = False
expected_state['payment_tx'] = lambda pc: pc.payment_tx
expected_state['balance'] = 96998
expected_state['spend_txid'] = lambda pc: pc.spend_txid
assert_paymentchannel_state(expected_state, pc)
def test_paymentchannel_expiration():
# Create mocked dependencies
bc = mock.MockBlockchain()
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), bc)
db = database.Sqlite3Database(":memory:")
# Link the mock blockchain to the mock payment channel server as it is a
# non-injected dependency.
mock.MockPaymentChannelServer.blockchain = bc
# Clear mock payment channel server channels.
mock.MockPaymentChannelServer.channels = {}
# Open a payment channel with 100000 deposit, 86400 seconds expiration, and 10000 fee
pc = paymentchannel.PaymentChannel.open(db, wallet, bc, 'mock://test', 100000, 86400, 10000, False)
# Confirm the deposit tx
bc.mock_confirm(pc.deposit_txid)
pc.sync()
# Assert payment channel properties
expected_state = {}
expected_state['url'] = "mock://test/" + pc.deposit_txid
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['ready'] = True
expected_state['balance'] = 100000
expected_state['deposit'] = 100000
expected_state['fee'] = 10000
expected_state['creation_time'] = lambda pc: pc.creation_time > 0
expected_state['expiration_time'] = int(pc.creation_time + 86400)
expected_state['expired'] = False
expected_state['refund_tx'] = lambda pc: pc.refund_tx
expected_state['refund_txid'] = lambda pc: pc.refund_txid
expected_state['deposit_tx'] = lambda pc: pc.deposit_tx
expected_state['deposit_txid'] = lambda pc: pc.deposit_txid
expected_state['payment_tx'] = None
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_paymentchannel_state(expected_state, pc)
# Make a few payments
pc.pay(1)
pc.pay(1)
pc.pay(1)
# Check payment channel properties
expected_state['balance'] = 96998
expected_state['expired'] = False
expected_state['payment_tx'] = lambda pc: pc.payment_tx
assert_paymentchannel_state(expected_state, pc)
# Monkey-patch time.time() for expiration
orig_time_time = time.time
time.time = lambda: pc.expiration_time + paymentchannel.PaymentChannel.REFUND_BROADCAST_TIME_OFFSET + 1
# Check payment channel properties
expected_state['expired'] = True
assert_paymentchannel_state(expected_state, pc)
# Sync to trigger a refund
pc.sync()
# Check payment channel properties
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['ready'] = False
expected_state['expired'] = True
expected_state['spend_txid'] = lambda pc: pc.refund_txid
assert_paymentchannel_state(expected_state, pc)
# Confirm refund tx
bc.mock_confirm(pc.refund_txid)
# Sync
pc.sync()
# Check payment channel properties
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
expected_state['spend_tx'] = lambda pc: pc.refund_tx
# Restore time.time()
time.time = orig_time_time
# Server-side close open(), pay(), pay(), <close>, pay(), sync()
def test_paymentchannel_serverside_close():
# Create mocked dependencies
bc = mock.MockBlockchain()
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), bc)
db = database.Sqlite3Database(":memory:")
# Link the mock blockchain to the mock payment channel server as it is a
# non-injected dependency.
mock.MockPaymentChannelServer.blockchain = bc
# Clear mock payment channel server channels.
mock.MockPaymentChannelServer.channels = {}
# Open a payment channel with 100000 deposit, 86400 seconds expiration, and 10000 fee
pc = paymentchannel.PaymentChannel.open(db, wallet, bc, 'mock://test', 100000, 86400, 10000, False)
# Confirm the deposit tx
bc.mock_confirm(pc.deposit_txid)
pc.sync()
# Assert payment channel properties
expected_state = {}
expected_state['url'] = "mock://test/" + pc.deposit_txid
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['ready'] = True
expected_state['balance'] = 100000
expected_state['deposit'] = 100000
expected_state['fee'] = 10000
expected_state['creation_time'] = lambda pc: pc.creation_time > 0
expected_state['expiration_time'] = int(pc.creation_time + 86400)
expected_state['expired'] = False
expected_state['refund_tx'] = lambda pc: pc.refund_tx
expected_state['refund_txid'] = lambda pc: pc.refund_txid
expected_state['deposit_tx'] = lambda pc: pc.deposit_tx
expected_state['deposit_txid'] = lambda pc: pc.deposit_txid
expected_state['payment_tx'] = None
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_paymentchannel_state(expected_state, pc)
# Make a few payments
pc.pay(1)
pc.pay(1)
pc.pay(1)
# Check payment channel properties
expected_state['balance'] = 96998
expected_state['expired'] = False
expected_state['payment_tx'] = lambda pc: pc.payment_tx
assert_paymentchannel_state(expected_state, pc)
# Close the channel server-side by broadcasting the last payment tx
bc.broadcast_tx(mock.MockPaymentChannelServer.channels[pc.deposit_txid]['payment_tx'].to_hex())
# Sync
pc.sync()
# Check payment channel properties
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['ready'] = False
expected_state['spend_txid'] = lambda pc: pc.spend_txid
assert_paymentchannel_state(expected_state, pc)
# Confirm payment tx
bc.mock_confirm(pc.spend_txid)
# Sync
pc.sync()
# Check payment channel properties
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
expected_state['spend_tx'] = lambda pc: pc.spend_tx
assert_paymentchannel_state(expected_state, pc)
| 36.888252
| 114
| 0.72394
| 1,557
| 12,874
| 5.786769
| 0.084136
| 0.184684
| 0.035516
| 0.076915
| 0.852386
| 0.840511
| 0.829301
| 0.776138
| 0.752608
| 0.733629
| 0
| 0.027893
| 0.175703
| 12,874
| 348
| 115
| 36.994253
| 0.821146
| 0.169411
| 0
| 0.790909
| 0
| 0
| 0.092586
| 0
| 0
| 0
| 0
| 0
| 0.140909
| 1
| 0.022727
| false
| 0
| 0.031818
| 0
| 0.054545
| 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
|
68b252c80e29ca1c2227054f33f53c702eb934d1
| 23,346
|
py
|
Python
|
dlmcol/tabuCol_numba.py
|
GoudetOlivier/DLMCOL_WVCP
|
e54d49775716d78cef25adbc85b9a40e903d7cd6
|
[
"MIT"
] | null | null | null |
dlmcol/tabuCol_numba.py
|
GoudetOlivier/DLMCOL_WVCP
|
e54d49775716d78cef25adbc85b9a40e903d7cd6
|
[
"MIT"
] | null | null | null |
dlmcol/tabuCol_numba.py
|
GoudetOlivier/DLMCOL_WVCP
|
e54d49775716d78cef25adbc85b9a40e903d7cd6
|
[
"MIT"
] | null | null | null |
import numba as nb
from numba import cuda
from numba.cuda.random import xoroshiro128p_uniform_float32
size = -1
k = -1
E = -1
N = -1
@cuda.jit
def tabuWVCP_NoRandom_AFISA(
rng_states,
D,
max_iter,
A,
W,
tColor,
vect_fit,
vect_score,
vect_conflicts,
alpha,
phi,
):
# vect_nb_vois, voisin
d = cuda.grid(1)
if d < D:
f = 0
tColor_local = nb.cuda.local.array((size), nb.int16)
gamma = nb.cuda.local.array((size, k), nb.int8)
gammaDepart = nb.cuda.local.array((size), nb.int8)
gammaArrive = nb.cuda.local.array((size, k), nb.int8)
max_weight = nb.cuda.local.array((k), nb.int8)
secondmax_weight = nb.cuda.local.array((k), nb.int8)
tabuTenure = nb.cuda.local.array((size), nb.int32)
tGroup_color = nb.cuda.local.array((k, N), nb.int16)
for c in range(k):
max_weight[c] = 0
secondmax_weight[c] = 0
for i in range(N):
tGroup_color[c, i] = -1
for x in range(size):
gammaDepart[x] = 0
for y in range(k):
gamma[x, y] = 0
gammaArrive[x, y] = 0
tColor_local[x] = int(tColor[d, x])
idx = 0
while tGroup_color[tColor_local[x], idx] != -1:
idx += 1
tGroup_color[tColor_local[x], idx] = x
tabuTenure[x] = -1
nb_conflicts = 0
score_wvcp = 0
for x in range(size):
for y in range(x):
if A[x, y] == 1:
gamma[x, tColor_local[y]] += 1
gamma[y, tColor_local[x]] += 1
if tColor_local[y] == tColor_local[x]:
nb_conflicts += 1
if W[x] >= max_weight[tColor_local[x]]:
score_wvcp += W[x] - max_weight[tColor_local[x]]
secondmax_weight[tColor_local[x]] = max_weight[tColor_local[x]]
max_weight[tColor_local[x]] = int(W[x])
elif W[x] > secondmax_weight[tColor_local[x]]:
secondmax_weight[tColor_local[x]] = int(W[x])
for x in range(size):
for c in range(k):
if W[x] > max_weight[c]:
gammaArrive[x, c] = W[x] - max_weight[c]
else:
gammaArrive[x, c] = 0
for x in range(size):
if W[x] == max_weight[tColor_local[x]]:
gammaDepart[x] = secondmax_weight[tColor_local[x]] - W[x]
else:
gammaDepart[x] = 0
f = score_wvcp + phi[d] * nb_conflicts
f_best = f
score_best = score_wvcp
nb_conflicts_best = nb_conflicts
for iter_ in range(max_iter):
best_delta = 9999
best_delta_conflicts = -1
best_delta_score = -1
best_x = -1
best_v = -1
for x in range(size):
v_x = tColor_local[x]
for v in range(k):
if v != v_x:
delta_score = gammaArrive[x, v] + gammaDepart[x]
delta_conflicts = gamma[x, v] - gamma[x, v_x]
delta = delta_score + phi[d] * delta_conflicts
if tabuTenure[x] <= iter_ or delta + f < f_best:
if delta < best_delta:
best_x = x
best_v = v
best_delta = delta
best_delta_conflicts = delta_conflicts
best_delta_score = delta_score
f += best_delta
score_wvcp += best_delta_score
nb_conflicts += best_delta_conflicts
old_color = tColor_local[best_x]
for y in range(size):
if A[best_x, y] == 1:
gamma[y, old_color] -= 1
gamma[y, best_v] += 1
tColor_local[best_x] = best_v
old_max_old_color = max_weight[old_color]
old_second_max_old_color = secondmax_weight[old_color]
max_weight[old_color] = 0
secondmax_weight[old_color] = 0
for idx in range(N):
x = tGroup_color[old_color, idx]
if x == best_x:
tGroup_color[old_color, idx] = -1
elif x != -1:
if W[x] >= max_weight[old_color]:
secondmax_weight[old_color] = max_weight[old_color]
max_weight[old_color] = int(W[x])
elif W[x] > secondmax_weight[old_color]:
secondmax_weight[old_color] = int(W[x])
idx = 0
while tGroup_color[best_v, idx] != -1:
idx += 1
tGroup_color[best_v, idx] = best_x
old_max_best_v = max_weight[best_v]
if W[best_x] >= max_weight[best_v]:
secondmax_weight[best_v] = max_weight[best_v]
max_weight[best_v] = int(W[best_x])
elif W[best_x] > secondmax_weight[best_v]:
secondmax_weight[best_v] = int(W[best_x])
if max_weight[old_color] != old_max_old_color:
for x in range(size):
if W[x] >= max_weight[old_color]:
gammaArrive[x, old_color] = W[x] - max_weight[old_color]
else:
gammaArrive[x, old_color] = 0
if max_weight[best_v] != old_max_best_v:
for x in range(size):
if W[x] >= max_weight[best_v]:
gammaArrive[x, best_v] = W[x] - max_weight[best_v]
else:
gammaArrive[x, best_v] = 0
if (
old_second_max_old_color != secondmax_weight[old_color]
or max_weight[old_color] != old_max_old_color
):
for idx in range(N):
x = tGroup_color[old_color, idx]
if x != -1:
if W[x] == max_weight[old_color]:
gammaDepart[x] = secondmax_weight[old_color] - W[x]
else:
gammaDepart[x] = 0
for idx in range(N):
x = tGroup_color[best_v, idx]
if x != -1:
if W[x] == max_weight[best_v]:
gammaDepart[x] = secondmax_weight[best_v] - W[x]
else:
gammaDepart[x] = 0
tabuTenure[best_x] = (
int(alpha * size)
+ int(10 * xoroshiro128p_uniform_float32(rng_states, d))
+ iter_
)
if f < f_best:
f_best = f
score_best = score_wvcp
nb_conflicts_best = nb_conflicts
for a in range(size):
tColor[d, a] = tColor_local[a]
vect_fit[d] = f_best
vect_score[d] = score_best
vect_conflicts[d] = nb_conflicts_best
@cuda.jit
def tabuGCP(rng_states, D, max_iter, A, tColor, vect_fit, alpha, tabuTenure):
# vect_nb_vois, voisin
d = cuda.grid(1)
if d < D:
f = 0
tColor_local = nb.cuda.local.array((size), nb.int16)
gamma = nb.cuda.local.array((size, k), nb.int8)
for x in range(size):
for y in range(k):
gamma[x, y] = 0
tabuTenure[d, x, y] = -1
tColor_local[x] = int(tColor[d, x])
f = 0
for x in range(size):
for y in range(x):
if A[x, y] == 1:
gamma[x, tColor_local[y]] += 1
gamma[y, tColor_local[x]] += 1
if tColor_local[y] == tColor_local[x]:
f += 1
f_best = f
for iter_ in range(max_iter):
best_delta = 9999
best_x = -1
best_v = -1
nbcfl = 0
for x in range(size):
v_x = tColor_local[x]
if gamma[x, v_x] > 0:
nbcfl += 1
for v in range(k):
if v != v_x:
delta = gamma[x, v] - gamma[x, v_x]
if tabuTenure[d, x, v] <= iter_ or delta + f < f_best:
if delta < best_delta:
best_x = x
best_v = v
best_delta = delta
f += best_delta
old_color = tColor_local[best_x]
for y in range(size):
if A[best_x, y] == 1:
gamma[y, old_color] -= 1
gamma[y, best_v] += 1
tColor_local[best_x] = best_v
tabuTenure[d, best_x, old_color] = (
int(alpha * nbcfl)
+ int(10 * xoroshiro128p_uniform_float32(rng_states, d))
+ iter_
)
if f < f_best:
f_best = f
for a in range(size):
tColor[d, a] = tColor_local[a]
vect_fit[d] = f_best
@cuda.jit
def tabuWVCP_NoRandom_AFISA_bigSize(
rng_states,
D,
max_iter,
A,
W,
tColor,
vect_fit,
vect_score,
vect_conflicts,
alpha,
phi,
gamma,
):
d = cuda.grid(1)
if d < D:
f = 0
tColor_local = nb.cuda.local.array((size), nb.int16)
gammaDepart = nb.cuda.local.array((size), nb.int8)
gammaArrive = nb.cuda.local.array((size, k), nb.int8)
max_weight = nb.cuda.local.array((k), nb.int8)
secondmax_weight = nb.cuda.local.array((k), nb.int8)
tabuTenure = nb.cuda.local.array((size), nb.int32)
tGroup_color = nb.cuda.local.array((k, N), nb.int16)
for c in range(k):
max_weight[c] = 0
secondmax_weight[c] = 0
for i in range(N):
tGroup_color[c, i] = -1
for x in range(size):
gammaDepart[x] = 0
for y in range(k):
gamma[d, x, y] = 0
gammaArrive[x, y] = 0
tColor_local[x] = int(tColor[d, x])
idx = 0
while tGroup_color[tColor_local[x], idx] != -1:
idx += 1
tGroup_color[tColor_local[x], idx] = x
tabuTenure[x] = -1
nb_conflicts = 0
score_wvcp = 0
for x in range(size):
for y in range(x):
if A[x, y] == 1:
gamma[d, x, tColor_local[y]] += 1
gamma[d, y, tColor_local[x]] += 1
if tColor_local[y] == tColor_local[x]:
nb_conflicts += 1
if W[x] >= max_weight[tColor_local[x]]:
score_wvcp += W[x] - max_weight[tColor_local[x]]
secondmax_weight[tColor_local[x]] = max_weight[tColor_local[x]]
max_weight[tColor_local[x]] = int(W[x])
elif W[x] > secondmax_weight[tColor_local[x]]:
secondmax_weight[tColor_local[x]] = int(W[x])
for x in range(size):
for c in range(k):
if W[x] > max_weight[c]:
gammaArrive[x, c] = W[x] - max_weight[c]
else:
gammaArrive[x, c] = 0
for x in range(size):
if W[x] == max_weight[tColor_local[x]]:
gammaDepart[x] = secondmax_weight[tColor_local[x]] - W[x]
else:
gammaDepart[x] = 0
f = score_wvcp + phi[d] * nb_conflicts
f_best = f
score_best = score_wvcp
nb_conflicts_best = nb_conflicts
for iter_ in range(max_iter):
best_delta = 9999
best_delta_conflicts = -1
best_delta_score = -1
best_x = -1
best_v = -1
for x in range(size):
v_x = tColor_local[x]
for v in range(k):
if v != v_x:
delta_score = gammaArrive[x, v] + gammaDepart[x]
delta_conflicts = gamma[d, x, v] - gamma[d, x, v_x]
delta = delta_score + phi[d] * delta_conflicts
if tabuTenure[x] <= iter_ or delta + f < f_best:
if delta < best_delta:
best_x = x
best_v = v
best_delta = delta
best_delta_conflicts = delta_conflicts
best_delta_score = delta_score
f += best_delta
score_wvcp += best_delta_score
nb_conflicts += best_delta_conflicts
old_color = tColor_local[best_x]
for y in range(size):
if A[best_x, y] == 1:
gamma[d, y, old_color] -= 1
gamma[d, y, best_v] += 1
tColor_local[best_x] = best_v
old_max_old_color = max_weight[old_color]
old_second_max_old_color = secondmax_weight[old_color]
max_weight[old_color] = 0
secondmax_weight[old_color] = 0
for idx in range(N):
x = tGroup_color[old_color, idx]
if x == best_x:
tGroup_color[old_color, idx] = -1
elif x != -1:
if W[x] >= max_weight[old_color]:
secondmax_weight[old_color] = max_weight[old_color]
max_weight[old_color] = int(W[x])
elif W[x] > secondmax_weight[old_color]:
secondmax_weight[old_color] = int(W[x])
idx = 0
while tGroup_color[best_v, idx] != -1:
idx += 1
tGroup_color[best_v, idx] = best_x
old_max_best_v = max_weight[best_v]
if W[best_x] >= max_weight[best_v]:
secondmax_weight[best_v] = max_weight[best_v]
max_weight[best_v] = int(W[best_x])
elif W[best_x] > secondmax_weight[best_v]:
secondmax_weight[best_v] = int(W[best_x])
if max_weight[old_color] != old_max_old_color:
for x in range(size):
if W[x] >= max_weight[old_color]:
gammaArrive[x, old_color] = W[x] - max_weight[old_color]
else:
gammaArrive[x, old_color] = 0
if max_weight[best_v] != old_max_best_v:
for x in range(size):
if W[x] >= max_weight[best_v]:
gammaArrive[x, best_v] = W[x] - max_weight[best_v]
else:
gammaArrive[x, best_v] = 0
if (
old_second_max_old_color != secondmax_weight[old_color]
or max_weight[old_color] != old_max_old_color
):
for idx in range(N):
x = tGroup_color[old_color, idx]
if x != -1:
if W[x] == max_weight[old_color]:
gammaDepart[x] = secondmax_weight[old_color] - W[x]
else:
gammaDepart[x] = 0
for idx in range(N):
x = tGroup_color[best_v, idx]
if x != -1:
if W[x] == max_weight[best_v]:
gammaDepart[x] = secondmax_weight[best_v] - W[x]
else:
gammaDepart[x] = 0
tabuTenure[best_x] = (
int(alpha * size)
+ int(10 * xoroshiro128p_uniform_float32(rng_states, d))
+ iter_
)
if f < f_best:
f_best = f
score_best = score_wvcp
nb_conflicts_best = nb_conflicts
for a in range(size):
tColor[d, a] = tColor_local[a]
vect_fit[d] = f_best
vect_score[d] = score_best
vect_conflicts[d] = nb_conflicts_best
@cuda.jit
def tabuWVCP_NoRandom_AFISA_heavyWeights(
rng_states,
D,
max_iter,
A,
W,
tColor,
vect_fit,
vect_score,
vect_conflicts,
alpha,
phi,
):
# vect_nb_vois, voisin
d = cuda.grid(1)
if d < D:
f = 0
tColor_local = nb.cuda.local.array((size), nb.int16)
gamma = nb.cuda.local.array((size, k), nb.int8)
gammaDepart = nb.cuda.local.array((size), nb.int16)
gammaArrive = nb.cuda.local.array((size, k), nb.int16)
max_weight = nb.cuda.local.array((k), nb.int16)
secondmax_weight = nb.cuda.local.array((k), nb.int16)
tabuTenure = nb.cuda.local.array((size), nb.int32)
tGroup_color = nb.cuda.local.array((k, N), nb.int16)
for c in range(k):
max_weight[c] = 0
secondmax_weight[c] = 0
for i in range(N):
tGroup_color[c, i] = -1
for x in range(size):
gammaDepart[x] = 0
for y in range(k):
gamma[x, y] = 0
gammaArrive[x, y] = 0
tColor_local[x] = int(tColor[d, x])
idx = 0
while tGroup_color[tColor_local[x], idx] != -1:
idx += 1
tGroup_color[tColor_local[x], idx] = x
tabuTenure[x] = -1
nb_conflicts = 0
score_wvcp = 0
for x in range(size):
# nb_vois = int(vect_nb_vois[x])
# for i in range(nb_vois):
# y = int(voisin[i])
for y in range(x):
if A[x, y] == 1:
gamma[x, tColor_local[y]] += 1
gamma[y, tColor_local[x]] += 1
if tColor_local[y] == tColor_local[x]:
nb_conflicts += 1
if W[x] >= max_weight[tColor_local[x]]:
score_wvcp += W[x] - max_weight[tColor_local[x]]
secondmax_weight[tColor_local[x]] = max_weight[tColor_local[x]]
max_weight[tColor_local[x]] = int(W[x])
elif W[x] > secondmax_weight[tColor_local[x]]:
secondmax_weight[tColor_local[x]] = int(W[x])
for x in range(size):
for c in range(k):
if W[x] > max_weight[c]:
gammaArrive[x, c] = W[x] - max_weight[c]
else:
gammaArrive[x, c] = 0
for x in range(size):
if W[x] == max_weight[tColor_local[x]]:
gammaDepart[x] = secondmax_weight[tColor_local[x]] - W[x]
else:
gammaDepart[x] = 0
f = score_wvcp + phi[d] * nb_conflicts
f_best = f
score_best = score_wvcp
nb_conflicts_best = nb_conflicts
for iter_ in range(max_iter):
best_delta = 99999
best_delta_conflicts = -1
best_delta_score = -1
best_x = -1
best_v = -1
for x in range(size):
v_x = tColor_local[x]
for v in range(k):
if v != v_x:
delta_score = gammaArrive[x, v] + gammaDepart[x]
delta_conflicts = gamma[x, v] - gamma[x, v_x]
delta = delta_score + phi[d] * delta_conflicts
if tabuTenure[x] <= iter_ or delta + f < f_best:
if delta < best_delta:
best_x = x
best_v = v
best_delta = delta
best_delta_conflicts = delta_conflicts
best_delta_score = delta_score
f += best_delta
score_wvcp += best_delta_score
nb_conflicts += best_delta_conflicts
old_color = tColor_local[best_x]
for y in range(size):
if A[best_x, y] == 1:
gamma[y, old_color] -= 1
gamma[y, best_v] += 1
tColor_local[best_x] = best_v
old_max_old_color = max_weight[old_color]
old_second_max_old_color = secondmax_weight[old_color]
max_weight[old_color] = 0
secondmax_weight[old_color] = 0
for idx in range(N):
x = tGroup_color[old_color, idx]
if x == best_x:
tGroup_color[old_color, idx] = -1
elif x != -1:
if W[x] >= max_weight[old_color]:
secondmax_weight[old_color] = max_weight[old_color]
max_weight[old_color] = int(W[x])
elif W[x] > secondmax_weight[old_color]:
secondmax_weight[old_color] = int(W[x])
idx = 0
while tGroup_color[best_v, idx] != -1:
idx += 1
tGroup_color[best_v, idx] = best_x
old_max_best_v = max_weight[best_v]
if W[best_x] >= max_weight[best_v]:
secondmax_weight[best_v] = max_weight[best_v]
max_weight[best_v] = int(W[best_x])
elif W[best_x] > secondmax_weight[best_v]:
secondmax_weight[best_v] = int(W[best_x])
if max_weight[old_color] != old_max_old_color:
for x in range(size):
if W[x] >= max_weight[old_color]:
gammaArrive[x, old_color] = W[x] - max_weight[old_color]
else:
gammaArrive[x, old_color] = 0
if max_weight[best_v] != old_max_best_v:
for x in range(size):
if W[x] >= max_weight[best_v]:
gammaArrive[x, best_v] = W[x] - max_weight[best_v]
else:
gammaArrive[x, best_v] = 0
if (
old_second_max_old_color != secondmax_weight[old_color]
or max_weight[old_color] != old_max_old_color
):
for idx in range(N):
x = tGroup_color[old_color, idx]
if x != -1:
if W[x] == max_weight[old_color]:
gammaDepart[x] = secondmax_weight[old_color] - W[x]
else:
gammaDepart[x] = 0
for idx in range(N):
x = tGroup_color[best_v, idx]
if x != -1:
if W[x] == max_weight[best_v]:
gammaDepart[x] = secondmax_weight[best_v] - W[x]
else:
gammaDepart[x] = 0
tabuTenure[best_x] = (
int(alpha * size)
+ int(10 * xoroshiro128p_uniform_float32(rng_states, d))
+ iter_
)
if f < f_best:
f_best = f
score_best = score_wvcp
nb_conflicts_best = nb_conflicts
for a in range(size):
tColor[d, a] = tColor_local[a]
vect_fit[d] = f_best
vect_score[d] = score_best
vect_conflicts[d] = nb_conflicts_best
| 40.044597
| 82
| 0.465048
| 2,884
| 23,346
| 3.511442
| 0.027393
| 0.071097
| 0.070505
| 0.039103
| 0.967216
| 0.965439
| 0.957835
| 0.948455
| 0.937988
| 0.934531
| 0
| 0.017472
| 0.436135
| 23,346
| 582
| 83
| 40.113402
| 0.751823
| 0.005868
| 0
| 0.936396
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007067
| false
| 0
| 0.0053
| 0
| 0.012367
| 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
|
d7a1f9389d7cbce8f0d0c2ac400bc2128065ce1d
| 95
|
py
|
Python
|
lg_volume_control/src/lg_volume_control/__init__.py
|
FuriousJulius/lg_ros_nodes
|
15a84c5022ab2f5b038d11a5589cd4a34010b1d6
|
[
"Apache-2.0"
] | 16
|
2015-10-10T11:55:37.000Z
|
2022-02-24T22:47:48.000Z
|
lg_volume_control/src/lg_volume_control/__init__.py
|
FuriousJulius/lg_ros_nodes
|
15a84c5022ab2f5b038d11a5589cd4a34010b1d6
|
[
"Apache-2.0"
] | 292
|
2015-09-29T21:59:53.000Z
|
2022-03-31T15:59:31.000Z
|
lg_volume_control/src/lg_volume_control/__init__.py
|
constantegonzalez/lg_ros_nodes
|
1c7b08c42e90205922602c86805285508d1b7971
|
[
"Apache-2.0"
] | 5
|
2017-05-03T06:22:43.000Z
|
2021-08-19T16:54:14.000Z
|
from .volume_control import VolumeControlMaster
from .volume_control import VolumeControlSlave
| 31.666667
| 47
| 0.894737
| 10
| 95
| 8.3
| 0.6
| 0.240964
| 0.409639
| 0.554217
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084211
| 95
| 2
| 48
| 47.5
| 0.954023
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
d7c2b37dfe0c7e9ed70f85e609289e44554a79b6
| 132
|
py
|
Python
|
grayscale/math/max.py
|
KennethanCeyer/grayscale
|
646a11ea47f2120f317e554c736d8054aa55c4c4
|
[
"MIT"
] | null | null | null |
grayscale/math/max.py
|
KennethanCeyer/grayscale
|
646a11ea47f2120f317e554c736d8054aa55c4c4
|
[
"MIT"
] | null | null | null |
grayscale/math/max.py
|
KennethanCeyer/grayscale
|
646a11ea47f2120f317e554c736d8054aa55c4c4
|
[
"MIT"
] | null | null | null |
from builtins import min as builtin_max
from typing import List
def max(nums: List[float]) -> float:
return builtin_max(nums)
| 18.857143
| 39
| 0.75
| 21
| 132
| 4.619048
| 0.619048
| 0.206186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174242
| 132
| 6
| 40
| 22
| 0.889908
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 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
|
cc1319bf092b1a26ecf583ff31d4d63af7d95021
| 82
|
py
|
Python
|
logviewer2/views/__init__.py
|
Hackerjef/logviewer2
|
54a50ed4fa13b4f7cdc4a2e2792190429f7675a2
|
[
"Unlicense"
] | null | null | null |
logviewer2/views/__init__.py
|
Hackerjef/logviewer2
|
54a50ed4fa13b4f7cdc4a2e2792190429f7675a2
|
[
"Unlicense"
] | null | null | null |
logviewer2/views/__init__.py
|
Hackerjef/logviewer2
|
54a50ed4fa13b4f7cdc4a2e2792190429f7675a2
|
[
"Unlicense"
] | null | null | null |
from logviewer2.views.auth import Auth
from logviewer2.views.fproxy import Fproxy
| 27.333333
| 42
| 0.853659
| 12
| 82
| 5.833333
| 0.5
| 0.4
| 0.542857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.027027
| 0.097561
| 82
| 2
| 43
| 41
| 0.918919
| 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
|
cc2933612a9c522a71dfa4b38ddc7a74d43afc3c
| 92
|
py
|
Python
|
parameters_9000.py
|
Ayunken/my_web2py
|
6f8ddf531b72ca5c3d6472a5ed3bd279b7be9260
|
[
"BSD-3-Clause"
] | null | null | null |
parameters_9000.py
|
Ayunken/my_web2py
|
6f8ddf531b72ca5c3d6472a5ed3bd279b7be9260
|
[
"BSD-3-Clause"
] | null | null | null |
parameters_9000.py
|
Ayunken/my_web2py
|
6f8ddf531b72ca5c3d6472a5ed3bd279b7be9260
|
[
"BSD-3-Clause"
] | null | null | null |
password="pbkdf2(1000,20,sha512)$8f8df07d60432764$a29dd4a08558d439af7858be8f81e7baf38b9fc0"
| 46
| 91
| 0.891304
| 7
| 92
| 11.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.494505
| 0.01087
| 92
| 1
| 92
| 92
| 0.406593
| 0
| 0
| 0
| 0
| 0
| 0.869565
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 1
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
f09bec685914ba08233d8cb3743259f6fbfb11bc
| 233,609
|
py
|
Python
|
msgraph-cli-extensions/beta/education_beta/azext_education_beta/generated/custom.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | null | null | null |
msgraph-cli-extensions/beta/education_beta/azext_education_beta/generated/custom.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | null | null | null |
msgraph-cli-extensions/beta/education_beta/azext_education_beta/generated/custom.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | null | null | null |
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=line-too-long
# pylint: disable=too-many-lines
def education_education_root_show_education_root(client,
select=None,
expand=None):
return client.get_education_root(select=select,
expand=expand)
def education_education_root_update_education_root(client,
id_=None,
synchronization_profiles=None,
classes=None,
me=None,
schools=None,
users=None):
body = {}
body['id'] = id_
body['synchronization_profiles'] = synchronization_profiles
body['classes'] = classes
body['me'] = me
body['schools'] = schools
body['users'] = users
return client.update_education_root(body=body)
def education_education_create_class(client,
id_=None,
class_code=None,
course=None,
description=None,
display_name=None,
external_id=None,
external_name=None,
external_source=None,
external_source_detail=None,
grade=None,
mail_nickname=None,
term=None,
assignment_categories=None,
assignments=None,
group=None,
members=None,
schools=None,
teachers=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['class_code'] = class_code
body['course'] = course
body['description'] = description
body['display_name'] = display_name
body['external_id'] = external_id
body['external_name'] = external_name
body['external_source'] = external_source
body['external_source_detail'] = external_source_detail
body['grade'] = grade
body['mail_nickname'] = mail_nickname
body['term'] = term
body['assignment_categories'] = assignment_categories
body['assignments'] = assignments
body['group'] = group
body['members'] = members
body['schools'] = schools
body['teachers'] = teachers
body['created_by'] = {}
body['created_by']['application'] = application
body['created_by']['device'] = device
body['created_by']['user'] = user
return client.create_classes(body=body)
def education_education_create_school(client,
id_=None,
description=None,
display_name=None,
external_source=None,
external_source_detail=None,
address=None,
external_id=None,
external_principal_id=None,
fax=None,
highest_grade=None,
lowest_grade=None,
phone=None,
principal_email=None,
principal_name=None,
school_number=None,
classes=None,
users=None,
microsoft_graph_entity_id=None,
deleted_date_time=None,
microsoft_graph_administrative_unit_description=None,
microsoft_graph_administrative_unit_display_name=None,
visibility=None,
members=None,
scoped_role_members=None,
extensions=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['description'] = description
body['display_name'] = display_name
body['external_source'] = external_source
body['external_source_detail'] = external_source_detail
body['address'] = address
body['external_id'] = external_id
body['external_principal_id'] = external_principal_id
body['fax'] = fax
body['highest_grade'] = highest_grade
body['lowest_grade'] = lowest_grade
body['phone'] = phone
body['principal_email'] = principal_email
body['principal_name'] = principal_name
body['school_number'] = school_number
body['classes'] = classes
body['users'] = users
body['administrative_unit'] = {}
body['administrative_unit']['id'] = microsoft_graph_entity_id
body['administrative_unit']['deleted_date_time'] = deleted_date_time
body['administrative_unit']['description'] = microsoft_graph_administrative_unit_description
body['administrative_unit']['display_name'] = microsoft_graph_administrative_unit_display_name
body['administrative_unit']['visibility'] = visibility
body['administrative_unit']['members'] = members
body['administrative_unit']['scoped_role_members'] = scoped_role_members
body['administrative_unit']['extensions'] = extensions
body['created_by'] = {}
body['created_by']['application'] = application
body['created_by']['device'] = device
body['created_by']['user'] = user
return client.create_schools(body=body)
def education_education_create_synchronization_profile(client,
id_=None,
data_provider=None,
display_name=None,
expiration_date=None,
handle_special_character_constraint=None,
identity_synchronization_configuration=None,
licenses_to_assign=None,
state=None,
errors=None,
profile_status=None):
body = {}
body['id'] = id_
body['data_provider'] = data_provider
body['display_name'] = display_name
body['expiration_date'] = expiration_date
body['handle_special_character_constraint'] = handle_special_character_constraint
body['identity_synchronization_configuration'] = identity_synchronization_configuration
body['licenses_to_assign'] = licenses_to_assign
body['state'] = state
body['errors'] = errors
body['profile_status'] = profile_status
return client.create_synchronization_profiles(body=body)
def education_education_create_user(client,
id_=None,
related_contacts=None,
account_enabled=None,
assigned_licenses=None,
assigned_plans=None,
business_phones=None,
department=None,
display_name=None,
external_source=None,
external_source_detail=None,
given_name=None,
mail=None,
mailing_address=None,
mail_nickname=None,
middle_name=None,
mobile_phone=None,
office_location=None,
password_policies=None,
password_profile=None,
preferred_language=None,
primary_role=None,
provisioned_plans=None,
refresh_tokens_valid_from_date_time=None,
residence_address=None,
show_in_address_list=None,
student=None,
surname=None,
teacher=None,
usage_location=None,
user_principal_name=None,
user_type=None,
assignments=None,
rubrics=None,
classes=None,
schools=None,
taught_classes=None,
user=None,
immutable_id=None,
application=None,
device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['related_contacts'] = related_contacts
body['account_enabled'] = account_enabled
body['assigned_licenses'] = assigned_licenses
body['assigned_plans'] = assigned_plans
body['business_phones'] = business_phones
body['department'] = department
body['display_name'] = display_name
body['external_source'] = external_source
body['external_source_detail'] = external_source_detail
body['given_name'] = given_name
body['mail'] = mail
body['mailing_address'] = mailing_address
body['mail_nickname'] = mail_nickname
body['middle_name'] = middle_name
body['mobile_phone'] = mobile_phone
body['office_location'] = office_location
body['password_policies'] = password_policies
body['password_profile'] = password_profile
body['preferred_language'] = preferred_language
body['primary_role'] = primary_role
body['provisioned_plans'] = provisioned_plans
body['refresh_tokens_valid_from_date_time'] = refresh_tokens_valid_from_date_time
body['residence_address'] = residence_address
body['show_in_address_list'] = show_in_address_list
body['student'] = student
body['surname'] = surname
body['teacher'] = teacher
body['usage_location'] = usage_location
body['user_principal_name'] = user_principal_name
body['user_type'] = user_type
body['assignments'] = assignments
body['rubrics'] = rubrics
body['classes'] = classes
body['schools'] = schools
body['taught_classes'] = taught_classes
body['user'] = user
body['on_premises_info'] = {}
body['on_premises_info']['immutable_id'] = immutable_id
body['created_by'] = {}
body['created_by']['application'] = application
body['created_by']['device'] = device
body['created_by']['user'] = microsoft_graph_identity_user
return client.create_users(body=body)
def education_education_delete_class(client,
education_class_id,
if_match=None):
return client.delete_classes(education_class_id=education_class_id,
if_match=if_match)
def education_education_delete_me(client,
if_match=None):
return client.delete_me(if_match=if_match)
def education_education_delete_school(client,
education_school_id,
if_match=None):
return client.delete_schools(education_school_id=education_school_id,
if_match=if_match)
def education_education_delete_synchronization_profile(client,
education_synchronization_profile_id,
if_match=None):
return client.delete_synchronization_profiles(education_synchronization_profile_id=education_synchronization_profile_id,
if_match=if_match)
def education_education_delete_user(client,
education_user_id,
if_match=None):
return client.delete_users(education_user_id=education_user_id,
if_match=if_match)
def education_education_list_class(client,
orderby=None,
select=None,
expand=None):
return client.list_classes(orderby=orderby,
select=select,
expand=expand)
def education_education_list_school(client,
orderby=None,
select=None,
expand=None):
return client.list_schools(orderby=orderby,
select=select,
expand=expand)
def education_education_list_synchronization_profile(client,
orderby=None,
select=None,
expand=None):
return client.list_synchronization_profiles(orderby=orderby,
select=select,
expand=expand)
def education_education_list_user(client,
orderby=None,
select=None,
expand=None):
return client.list_users(orderby=orderby,
select=select,
expand=expand)
def education_education_show_class(client,
education_class_id,
select=None,
expand=None):
return client.get_classes(education_class_id=education_class_id,
select=select,
expand=expand)
def education_education_show_me(client,
select=None,
expand=None):
return client.get_me(select=select,
expand=expand)
def education_education_show_school(client,
education_school_id,
select=None,
expand=None):
return client.get_schools(education_school_id=education_school_id,
select=select,
expand=expand)
def education_education_show_synchronization_profile(client,
education_synchronization_profile_id,
select=None,
expand=None):
return client.get_synchronization_profiles(education_synchronization_profile_id=education_synchronization_profile_id,
select=select,
expand=expand)
def education_education_show_user(client,
education_user_id,
select=None,
expand=None):
return client.get_users(education_user_id=education_user_id,
select=select,
expand=expand)
def education_education_update_class(client,
education_class_id,
id_=None,
class_code=None,
course=None,
description=None,
display_name=None,
external_id=None,
external_name=None,
external_source=None,
external_source_detail=None,
grade=None,
mail_nickname=None,
term=None,
assignment_categories=None,
assignments=None,
group=None,
members=None,
schools=None,
teachers=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['class_code'] = class_code
body['course'] = course
body['description'] = description
body['display_name'] = display_name
body['external_id'] = external_id
body['external_name'] = external_name
body['external_source'] = external_source
body['external_source_detail'] = external_source_detail
body['grade'] = grade
body['mail_nickname'] = mail_nickname
body['term'] = term
body['assignment_categories'] = assignment_categories
body['assignments'] = assignments
body['group'] = group
body['members'] = members
body['schools'] = schools
body['teachers'] = teachers
body['created_by'] = {}
body['created_by']['application'] = application
body['created_by']['device'] = device
body['created_by']['user'] = user
return client.update_classes(education_class_id=education_class_id,
body=body)
def education_education_update_me(client,
id_=None,
related_contacts=None,
account_enabled=None,
assigned_licenses=None,
assigned_plans=None,
business_phones=None,
department=None,
display_name=None,
external_source=None,
external_source_detail=None,
given_name=None,
mail=None,
mailing_address=None,
mail_nickname=None,
middle_name=None,
mobile_phone=None,
office_location=None,
password_policies=None,
password_profile=None,
preferred_language=None,
primary_role=None,
provisioned_plans=None,
refresh_tokens_valid_from_date_time=None,
residence_address=None,
show_in_address_list=None,
student=None,
surname=None,
teacher=None,
usage_location=None,
user_principal_name=None,
user_type=None,
assignments=None,
rubrics=None,
classes=None,
schools=None,
taught_classes=None,
user=None,
immutable_id=None,
application=None,
device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['related_contacts'] = related_contacts
body['account_enabled'] = account_enabled
body['assigned_licenses'] = assigned_licenses
body['assigned_plans'] = assigned_plans
body['business_phones'] = business_phones
body['department'] = department
body['display_name'] = display_name
body['external_source'] = external_source
body['external_source_detail'] = external_source_detail
body['given_name'] = given_name
body['mail'] = mail
body['mailing_address'] = mailing_address
body['mail_nickname'] = mail_nickname
body['middle_name'] = middle_name
body['mobile_phone'] = mobile_phone
body['office_location'] = office_location
body['password_policies'] = password_policies
body['password_profile'] = password_profile
body['preferred_language'] = preferred_language
body['primary_role'] = primary_role
body['provisioned_plans'] = provisioned_plans
body['refresh_tokens_valid_from_date_time'] = refresh_tokens_valid_from_date_time
body['residence_address'] = residence_address
body['show_in_address_list'] = show_in_address_list
body['student'] = student
body['surname'] = surname
body['teacher'] = teacher
body['usage_location'] = usage_location
body['user_principal_name'] = user_principal_name
body['user_type'] = user_type
body['assignments'] = assignments
body['rubrics'] = rubrics
body['classes'] = classes
body['schools'] = schools
body['taught_classes'] = taught_classes
body['user'] = user
body['on_premises_info'] = {}
body['on_premises_info']['immutable_id'] = immutable_id
body['created_by'] = {}
body['created_by']['application'] = application
body['created_by']['device'] = device
body['created_by']['user'] = microsoft_graph_identity_user
return client.update_me(body=body)
def education_education_update_school(client,
education_school_id,
id_=None,
description=None,
display_name=None,
external_source=None,
external_source_detail=None,
address=None,
external_id=None,
external_principal_id=None,
fax=None,
highest_grade=None,
lowest_grade=None,
phone=None,
principal_email=None,
principal_name=None,
school_number=None,
classes=None,
users=None,
microsoft_graph_entity_id=None,
deleted_date_time=None,
microsoft_graph_administrative_unit_description=None,
microsoft_graph_administrative_unit_display_name=None,
visibility=None,
members=None,
scoped_role_members=None,
extensions=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['description'] = description
body['display_name'] = display_name
body['external_source'] = external_source
body['external_source_detail'] = external_source_detail
body['address'] = address
body['external_id'] = external_id
body['external_principal_id'] = external_principal_id
body['fax'] = fax
body['highest_grade'] = highest_grade
body['lowest_grade'] = lowest_grade
body['phone'] = phone
body['principal_email'] = principal_email
body['principal_name'] = principal_name
body['school_number'] = school_number
body['classes'] = classes
body['users'] = users
body['administrative_unit'] = {}
body['administrative_unit']['id'] = microsoft_graph_entity_id
body['administrative_unit']['deleted_date_time'] = deleted_date_time
body['administrative_unit']['description'] = microsoft_graph_administrative_unit_description
body['administrative_unit']['display_name'] = microsoft_graph_administrative_unit_display_name
body['administrative_unit']['visibility'] = visibility
body['administrative_unit']['members'] = members
body['administrative_unit']['scoped_role_members'] = scoped_role_members
body['administrative_unit']['extensions'] = extensions
body['created_by'] = {}
body['created_by']['application'] = application
body['created_by']['device'] = device
body['created_by']['user'] = user
return client.update_schools(education_school_id=education_school_id,
body=body)
def education_education_update_synchronization_profile(client,
education_synchronization_profile_id,
id_=None,
data_provider=None,
display_name=None,
expiration_date=None,
handle_special_character_constraint=None,
identity_synchronization_configuration=None,
licenses_to_assign=None,
state=None,
errors=None,
profile_status=None):
body = {}
body['id'] = id_
body['data_provider'] = data_provider
body['display_name'] = display_name
body['expiration_date'] = expiration_date
body['handle_special_character_constraint'] = handle_special_character_constraint
body['identity_synchronization_configuration'] = identity_synchronization_configuration
body['licenses_to_assign'] = licenses_to_assign
body['state'] = state
body['errors'] = errors
body['profile_status'] = profile_status
return client.update_synchronization_profiles(education_synchronization_profile_id=education_synchronization_profile_id,
body=body)
def education_education_update_user(client,
education_user_id,
id_=None,
related_contacts=None,
account_enabled=None,
assigned_licenses=None,
assigned_plans=None,
business_phones=None,
department=None,
display_name=None,
external_source=None,
external_source_detail=None,
given_name=None,
mail=None,
mailing_address=None,
mail_nickname=None,
middle_name=None,
mobile_phone=None,
office_location=None,
password_policies=None,
password_profile=None,
preferred_language=None,
primary_role=None,
provisioned_plans=None,
refresh_tokens_valid_from_date_time=None,
residence_address=None,
show_in_address_list=None,
student=None,
surname=None,
teacher=None,
usage_location=None,
user_principal_name=None,
user_type=None,
assignments=None,
rubrics=None,
classes=None,
schools=None,
taught_classes=None,
user=None,
immutable_id=None,
application=None,
device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['related_contacts'] = related_contacts
body['account_enabled'] = account_enabled
body['assigned_licenses'] = assigned_licenses
body['assigned_plans'] = assigned_plans
body['business_phones'] = business_phones
body['department'] = department
body['display_name'] = display_name
body['external_source'] = external_source
body['external_source_detail'] = external_source_detail
body['given_name'] = given_name
body['mail'] = mail
body['mailing_address'] = mailing_address
body['mail_nickname'] = mail_nickname
body['middle_name'] = middle_name
body['mobile_phone'] = mobile_phone
body['office_location'] = office_location
body['password_policies'] = password_policies
body['password_profile'] = password_profile
body['preferred_language'] = preferred_language
body['primary_role'] = primary_role
body['provisioned_plans'] = provisioned_plans
body['refresh_tokens_valid_from_date_time'] = refresh_tokens_valid_from_date_time
body['residence_address'] = residence_address
body['show_in_address_list'] = show_in_address_list
body['student'] = student
body['surname'] = surname
body['teacher'] = teacher
body['usage_location'] = usage_location
body['user_principal_name'] = user_principal_name
body['user_type'] = user_type
body['assignments'] = assignments
body['rubrics'] = rubrics
body['classes'] = classes
body['schools'] = schools
body['taught_classes'] = taught_classes
body['user'] = user
body['on_premises_info'] = {}
body['on_premises_info']['immutable_id'] = immutable_id
body['created_by'] = {}
body['created_by']['application'] = application
body['created_by']['device'] = device
body['created_by']['user'] = microsoft_graph_identity_user
return client.update_users(education_user_id=education_user_id,
body=body)
def education_education_class_create_assignment(client,
education_class_id,
id_=None,
allow_late_submissions=None,
allow_students_to_add_resources_to_submission=None,
assign_date_time=None,
assigned_date_time=None,
assign_to=None,
class_id=None,
close_date_time=None,
created_date_time=None,
display_name=None,
due_date_time=None,
grading=None,
instructions=None,
last_modified_date_time=None,
status=None,
categories=None,
resources=None,
submissions=None,
microsoft_graph_entity_id=None,
microsoft_graph_education_rubric_created_date_time_created_date_time=None,
description=None,
microsoft_graph_education_rubric_display_name=None,
microsoft_graph_education_assignment_grade_type_grading=None,
microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['allow_late_submissions'] = allow_late_submissions
body['allow_students_to_add_resources_to_submission'] = allow_students_to_add_resources_to_submission
body['assign_date_time'] = assign_date_time
body['assigned_date_time'] = assigned_date_time
body['assign_to'] = assign_to
body['class_id'] = class_id
body['close_date_time'] = close_date_time
body['created_date_time'] = created_date_time
body['display_name'] = display_name
body['due_date_time'] = due_date_time
body['grading'] = grading
body['instructions'] = instructions
body['last_modified_date_time'] = last_modified_date_time
body['status'] = status
body['categories'] = categories
body['resources'] = resources
body['submissions'] = submissions
body['rubric'] = {}
body['rubric']['id'] = microsoft_graph_entity_id
body['rubric']['created_date_time'] = microsoft_graph_education_rubric_created_date_time_created_date_time
body['rubric']['description'] = description
body['rubric']['display_name'] = microsoft_graph_education_rubric_display_name
body['rubric']['grading'] = microsoft_graph_education_assignment_grade_type_grading
body['rubric']['last_modified_date_time'] = microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time
body['rubric']['levels'] = levels
body['rubric']['qualities'] = qualities
body['rubric']['last_modified_by'] = {}
body['rubric']['last_modified_by']['application'] = application
body['rubric']['last_modified_by']['device'] = device
body['rubric']['last_modified_by']['user'] = user
body['rubric']['created_by'] = {}
body['rubric']['created_by']['application'] = microsoft_graph_identity_application
body['rubric']['created_by']['device'] = microsoft_graph_identity_device
body['rubric']['created_by']['user'] = microsoft_graph_identity_user
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application1
body['last_modified_by']['device'] = device1
body['last_modified_by']['user'] = user1
body['created_by'] = {}
body['created_by']['application'] = application2
body['created_by']['device'] = device2
body['created_by']['user'] = user2
return client.create_assignments(education_class_id=education_class_id,
body=body)
def education_education_class_create_assignment_category(client,
education_class_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.create_assignment_categories(education_class_id=education_class_id,
body=body)
def education_education_class_create_ref_member(client,
education_class_id,
body):
return client.create_ref_members(education_class_id=education_class_id,
body=body)
def education_education_class_create_ref_school(client,
education_class_id,
body):
return client.create_ref_schools(education_class_id=education_class_id,
body=body)
def education_education_class_create_ref_teacher(client,
education_class_id,
body):
return client.create_ref_teachers(education_class_id=education_class_id,
body=body)
def education_education_class_delete_assignment(client,
education_class_id,
education_assignment_id,
if_match=None):
return client.delete_assignments(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
if_match=if_match)
def education_education_class_delete_assignment_category(client,
education_class_id,
education_category_id,
if_match=None):
return client.delete_assignment_categories(education_class_id=education_class_id,
education_category_id=education_category_id,
if_match=if_match)
def education_education_class_delete_ref_group(client,
education_class_id,
if_match=None):
return client.delete_ref_group(education_class_id=education_class_id,
if_match=if_match)
def education_education_class_delta(client):
return client.delta()
def education_education_class_list_assignment(client,
education_class_id,
orderby=None,
select=None,
expand=None):
return client.list_assignments(education_class_id=education_class_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_list_assignment_category(client,
education_class_id,
orderby=None,
select=None,
expand=None):
return client.list_assignment_categories(education_class_id=education_class_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_list_member(client,
education_class_id,
orderby=None,
select=None,
expand=None):
return client.list_members(education_class_id=education_class_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_list_ref_member(client,
education_class_id,
orderby=None):
return client.list_ref_members(education_class_id=education_class_id,
orderby=orderby)
def education_education_class_list_ref_school(client,
education_class_id,
orderby=None):
return client.list_ref_schools(education_class_id=education_class_id,
orderby=orderby)
def education_education_class_list_ref_teacher(client,
education_class_id,
orderby=None):
return client.list_ref_teachers(education_class_id=education_class_id,
orderby=orderby)
def education_education_class_list_school(client,
education_class_id,
orderby=None,
select=None,
expand=None):
return client.list_schools(education_class_id=education_class_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_list_teacher(client,
education_class_id,
orderby=None,
select=None,
expand=None):
return client.list_teachers(education_class_id=education_class_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_set_ref_group(client,
education_class_id,
body):
return client.set_ref_group(education_class_id=education_class_id,
body=body)
def education_education_class_show_assignment(client,
education_class_id,
education_assignment_id,
select=None,
expand=None):
return client.get_assignments(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
select=select,
expand=expand)
def education_education_class_show_assignment_category(client,
education_class_id,
education_category_id,
select=None,
expand=None):
return client.get_assignment_categories(education_class_id=education_class_id,
education_category_id=education_category_id,
select=select,
expand=expand)
def education_education_class_show_group(client,
education_class_id,
select=None,
expand=None):
return client.get_group(education_class_id=education_class_id,
select=select,
expand=expand)
def education_education_class_show_ref_group(client,
education_class_id):
return client.get_ref_group(education_class_id=education_class_id)
def education_education_class_update_assignment(client,
education_class_id,
education_assignment_id,
id_=None,
allow_late_submissions=None,
allow_students_to_add_resources_to_submission=None,
assign_date_time=None,
assigned_date_time=None,
assign_to=None,
class_id=None,
close_date_time=None,
created_date_time=None,
display_name=None,
due_date_time=None,
grading=None,
instructions=None,
last_modified_date_time=None,
status=None,
categories=None,
resources=None,
submissions=None,
microsoft_graph_entity_id=None,
microsoft_graph_education_rubric_created_date_time_created_date_time=None,
description=None,
microsoft_graph_education_rubric_display_name=None,
microsoft_graph_education_assignment_grade_type_grading=None,
microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['allow_late_submissions'] = allow_late_submissions
body['allow_students_to_add_resources_to_submission'] = allow_students_to_add_resources_to_submission
body['assign_date_time'] = assign_date_time
body['assigned_date_time'] = assigned_date_time
body['assign_to'] = assign_to
body['class_id'] = class_id
body['close_date_time'] = close_date_time
body['created_date_time'] = created_date_time
body['display_name'] = display_name
body['due_date_time'] = due_date_time
body['grading'] = grading
body['instructions'] = instructions
body['last_modified_date_time'] = last_modified_date_time
body['status'] = status
body['categories'] = categories
body['resources'] = resources
body['submissions'] = submissions
body['rubric'] = {}
body['rubric']['id'] = microsoft_graph_entity_id
body['rubric']['created_date_time'] = microsoft_graph_education_rubric_created_date_time_created_date_time
body['rubric']['description'] = description
body['rubric']['display_name'] = microsoft_graph_education_rubric_display_name
body['rubric']['grading'] = microsoft_graph_education_assignment_grade_type_grading
body['rubric']['last_modified_date_time'] = microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time
body['rubric']['levels'] = levels
body['rubric']['qualities'] = qualities
body['rubric']['last_modified_by'] = {}
body['rubric']['last_modified_by']['application'] = application
body['rubric']['last_modified_by']['device'] = device
body['rubric']['last_modified_by']['user'] = user
body['rubric']['created_by'] = {}
body['rubric']['created_by']['application'] = microsoft_graph_identity_application
body['rubric']['created_by']['device'] = microsoft_graph_identity_device
body['rubric']['created_by']['user'] = microsoft_graph_identity_user
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application1
body['last_modified_by']['device'] = device1
body['last_modified_by']['user'] = user1
body['created_by'] = {}
body['created_by']['application'] = application2
body['created_by']['device'] = device2
body['created_by']['user'] = user2
return client.update_assignments(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_class_update_assignment_category(client,
education_class_id,
education_category_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.update_assignment_categories(education_class_id=education_class_id,
education_category_id=education_category_id,
body=body)
def education_education_class_assignment_create_category(client,
education_class_id,
education_assignment_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.create_categories(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_class_assignment_create_resource(client,
education_class_id,
education_assignment_id,
id_=None,
distribute_for_student_work=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['distribute_for_student_work'] = distribute_for_student_work
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_class_assignment_create_submission(client,
education_class_id,
education_assignment_id,
id_=None,
recipient=None,
released_date_time=None,
resources_folder_url=None,
returned_date_time=None,
status=None,
submitted_date_time=None,
unsubmitted_date_time=None,
outcomes=None,
resources=None,
submitted_resources=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['recipient'] = recipient
body['released_date_time'] = released_date_time
body['resources_folder_url'] = resources_folder_url
body['returned_date_time'] = returned_date_time
body['status'] = status
body['submitted_date_time'] = submitted_date_time
body['unsubmitted_date_time'] = unsubmitted_date_time
body['outcomes'] = outcomes
body['resources'] = resources
body['submitted_resources'] = submitted_resources
body['unsubmitted_by'] = {}
body['unsubmitted_by']['application'] = application
body['unsubmitted_by']['device'] = device
body['unsubmitted_by']['user'] = user
body['submitted_by'] = {}
body['submitted_by']['application'] = microsoft_graph_identity_application
body['submitted_by']['device'] = microsoft_graph_identity_device
body['submitted_by']['user'] = microsoft_graph_identity_user
body['returned_by'] = {}
body['returned_by']['application'] = application1
body['returned_by']['device'] = device1
body['returned_by']['user'] = user1
body['released_by'] = {}
body['released_by']['application'] = application2
body['released_by']['device'] = device2
body['released_by']['user'] = user2
return client.create_submissions(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_class_assignment_delete_category(client,
education_class_id,
education_assignment_id,
education_category_id,
if_match=None):
return client.delete_categories(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
if_match=if_match)
def education_education_class_assignment_delete_resource(client,
education_class_id,
education_assignment_id,
education_assignment_resource_id,
if_match=None):
return client.delete_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
if_match=if_match)
def education_education_class_assignment_delete_rubric(client,
education_class_id,
education_assignment_id,
if_match=None):
return client.delete_rubric(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
if_match=if_match)
def education_education_class_assignment_delete_submission(client,
education_class_id,
education_assignment_id,
education_submission_id,
if_match=None):
return client.delete_submissions(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
if_match=if_match)
def education_education_class_assignment_list_category(client,
education_class_id,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_categories(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_assignment_list_resource(client,
education_class_id,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_assignment_list_submission(client,
education_class_id,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_submissions(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_assignment_publish(client,
education_class_id,
education_assignment_id):
return client.publish(education_class_id=education_class_id,
education_assignment_id=education_assignment_id)
def education_education_class_assignment_show_category(client,
education_class_id,
education_assignment_id,
education_category_id,
select=None,
expand=None):
return client.get_categories(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
select=select,
expand=expand)
def education_education_class_assignment_show_resource(client,
education_class_id,
education_assignment_id,
education_assignment_resource_id,
select=None,
expand=None):
return client.get_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
select=select,
expand=expand)
def education_education_class_assignment_show_resource_folder_url(client,
education_class_id,
education_assignment_id):
return client.get_resources_folder_url(education_class_id=education_class_id,
education_assignment_id=education_assignment_id)
def education_education_class_assignment_show_rubric(client,
education_class_id,
education_assignment_id,
select=None,
expand=None):
return client.get_rubric(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
select=select,
expand=expand)
def education_education_class_assignment_show_submission(client,
education_class_id,
education_assignment_id,
education_submission_id,
select=None,
expand=None):
return client.get_submissions(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
select=select,
expand=expand)
def education_education_class_assignment_update_category(client,
education_class_id,
education_assignment_id,
education_category_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.update_categories(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
body=body)
def education_education_class_assignment_update_resource(client,
education_class_id,
education_assignment_id,
education_assignment_resource_id,
id_=None,
distribute_for_student_work=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['distribute_for_student_work'] = distribute_for_student_work
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
body=body)
def education_education_class_assignment_update_rubric(client,
education_class_id,
education_assignment_id,
id_=None,
created_date_time=None,
description=None,
display_name=None,
grading=None,
last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['created_date_time'] = created_date_time
body['description'] = description
body['display_name'] = display_name
body['grading'] = grading
body['last_modified_date_time'] = last_modified_date_time
body['levels'] = levels
body['qualities'] = qualities
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
body['created_by'] = {}
body['created_by']['application'] = microsoft_graph_identity_application
body['created_by']['device'] = microsoft_graph_identity_device
body['created_by']['user'] = microsoft_graph_identity_user
return client.update_rubric(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_class_assignment_update_submission(client,
education_class_id,
education_assignment_id,
education_submission_id,
id_=None,
recipient=None,
released_date_time=None,
resources_folder_url=None,
returned_date_time=None,
status=None,
submitted_date_time=None,
unsubmitted_date_time=None,
outcomes=None,
resources=None,
submitted_resources=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['recipient'] = recipient
body['released_date_time'] = released_date_time
body['resources_folder_url'] = resources_folder_url
body['returned_date_time'] = returned_date_time
body['status'] = status
body['submitted_date_time'] = submitted_date_time
body['unsubmitted_date_time'] = unsubmitted_date_time
body['outcomes'] = outcomes
body['resources'] = resources
body['submitted_resources'] = submitted_resources
body['unsubmitted_by'] = {}
body['unsubmitted_by']['application'] = application
body['unsubmitted_by']['device'] = device
body['unsubmitted_by']['user'] = user
body['submitted_by'] = {}
body['submitted_by']['application'] = microsoft_graph_identity_application
body['submitted_by']['device'] = microsoft_graph_identity_device
body['submitted_by']['user'] = microsoft_graph_identity_user
body['returned_by'] = {}
body['returned_by']['application'] = application1
body['returned_by']['device'] = device1
body['returned_by']['user'] = user1
body['released_by'] = {}
body['released_by']['application'] = application2
body['released_by']['device'] = device2
body['released_by']['user'] = user2
return client.update_submissions(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_class_assignment_submission_create_outcome(client,
education_class_id,
education_assignment_id,
education_submission_id,
id_=None,
last_modified_date_time=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['last_modified_date_time'] = last_modified_date_time
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
return client.create_outcomes(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_class_assignment_submission_create_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_class_assignment_submission_create_submitted_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_submitted_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_class_assignment_submission_delete_outcome(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_outcome_id,
if_match=None):
return client.delete_outcomes(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
if_match=if_match)
def education_education_class_assignment_submission_delete_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
if_match=None):
return client.delete_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
if_match=if_match)
def education_education_class_assignment_submission_delete_submitted_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
if_match=None):
return client.delete_submitted_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
if_match=if_match)
def education_education_class_assignment_submission_list_outcome(client,
education_class_id,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_outcomes(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_assignment_submission_list_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_assignment_submission_list_submitted_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_submitted_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_class_assignment_submission_return(client,
education_class_id,
education_assignment_id,
education_submission_id):
return client.return_method(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_class_assignment_submission_show_outcome(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_outcome_id,
select=None,
expand=None):
return client.get_outcomes(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
select=select,
expand=expand)
def education_education_class_assignment_submission_show_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
select=None,
expand=None):
return client.get_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
select=select,
expand=expand)
def education_education_class_assignment_submission_show_submitted_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
select=None,
expand=None):
return client.get_submitted_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
select=select,
expand=expand)
def education_education_class_assignment_submission_submit(client,
education_class_id,
education_assignment_id,
education_submission_id):
return client.submit(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_class_assignment_submission_unsubmit(client,
education_class_id,
education_assignment_id,
education_submission_id):
return client.unsubmit(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_class_assignment_submission_update_outcome(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_outcome_id,
id_=None,
last_modified_date_time=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['last_modified_date_time'] = last_modified_date_time
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
return client.update_outcomes(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
body=body)
def education_education_class_assignment_submission_update_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
body=body)
def education_education_class_assignment_submission_update_submitted_resource(client,
education_class_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_submitted_resources(education_class_id=education_class_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
body=body)
def education_education_class_member_delta(client,
education_class_id):
return client.delta(education_class_id=education_class_id)
def education_education_class_school_delta(client,
education_class_id):
return client.delta(education_class_id=education_class_id)
def education_education_class_teacher_delta(client,
education_class_id):
return client.delta(education_class_id=education_class_id)
def education_education_me_create_assignment(client,
id_=None,
allow_late_submissions=None,
allow_students_to_add_resources_to_submission=None,
assign_date_time=None,
assigned_date_time=None,
assign_to=None,
class_id=None,
close_date_time=None,
created_date_time=None,
display_name=None,
due_date_time=None,
grading=None,
instructions=None,
last_modified_date_time=None,
status=None,
categories=None,
resources=None,
submissions=None,
microsoft_graph_entity_id=None,
microsoft_graph_education_rubric_created_date_time_created_date_time=None,
description=None,
microsoft_graph_education_rubric_display_name=None,
microsoft_graph_education_assignment_grade_type_grading=None,
microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['allow_late_submissions'] = allow_late_submissions
body['allow_students_to_add_resources_to_submission'] = allow_students_to_add_resources_to_submission
body['assign_date_time'] = assign_date_time
body['assigned_date_time'] = assigned_date_time
body['assign_to'] = assign_to
body['class_id'] = class_id
body['close_date_time'] = close_date_time
body['created_date_time'] = created_date_time
body['display_name'] = display_name
body['due_date_time'] = due_date_time
body['grading'] = grading
body['instructions'] = instructions
body['last_modified_date_time'] = last_modified_date_time
body['status'] = status
body['categories'] = categories
body['resources'] = resources
body['submissions'] = submissions
body['rubric'] = {}
body['rubric']['id'] = microsoft_graph_entity_id
body['rubric']['created_date_time'] = microsoft_graph_education_rubric_created_date_time_created_date_time
body['rubric']['description'] = description
body['rubric']['display_name'] = microsoft_graph_education_rubric_display_name
body['rubric']['grading'] = microsoft_graph_education_assignment_grade_type_grading
body['rubric']['last_modified_date_time'] = microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time
body['rubric']['levels'] = levels
body['rubric']['qualities'] = qualities
body['rubric']['last_modified_by'] = {}
body['rubric']['last_modified_by']['application'] = application
body['rubric']['last_modified_by']['device'] = device
body['rubric']['last_modified_by']['user'] = user
body['rubric']['created_by'] = {}
body['rubric']['created_by']['application'] = microsoft_graph_identity_application
body['rubric']['created_by']['device'] = microsoft_graph_identity_device
body['rubric']['created_by']['user'] = microsoft_graph_identity_user
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application1
body['last_modified_by']['device'] = device1
body['last_modified_by']['user'] = user1
body['created_by'] = {}
body['created_by']['application'] = application2
body['created_by']['device'] = device2
body['created_by']['user'] = user2
return client.create_assignments(body=body)
def education_education_me_create_ref_class(client,
body):
return client.create_ref_classes(body=body)
def education_education_me_create_ref_school(client,
body):
return client.create_ref_schools(body=body)
def education_education_me_create_ref_taught_class(client,
body):
return client.create_ref_taught_classes(body=body)
def education_education_me_create_rubric(client,
id_=None,
created_date_time=None,
description=None,
display_name=None,
grading=None,
last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['created_date_time'] = created_date_time
body['description'] = description
body['display_name'] = display_name
body['grading'] = grading
body['last_modified_date_time'] = last_modified_date_time
body['levels'] = levels
body['qualities'] = qualities
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
body['created_by'] = {}
body['created_by']['application'] = microsoft_graph_identity_application
body['created_by']['device'] = microsoft_graph_identity_device
body['created_by']['user'] = microsoft_graph_identity_user
return client.create_rubrics(body=body)
def education_education_me_delete_assignment(client,
education_assignment_id,
if_match=None):
return client.delete_assignments(education_assignment_id=education_assignment_id,
if_match=if_match)
def education_education_me_delete_ref_user(client,
if_match=None):
return client.delete_ref_user(if_match=if_match)
def education_education_me_delete_rubric(client,
education_rubric_id,
if_match=None):
return client.delete_rubrics(education_rubric_id=education_rubric_id,
if_match=if_match)
def education_education_me_list_assignment(client,
orderby=None,
select=None,
expand=None):
return client.list_assignments(orderby=orderby,
select=select,
expand=expand)
def education_education_me_list_class(client,
orderby=None,
select=None,
expand=None):
return client.list_classes(orderby=orderby,
select=select,
expand=expand)
def education_education_me_list_ref_class(client,
orderby=None):
return client.list_ref_classes(orderby=orderby)
def education_education_me_list_ref_school(client,
orderby=None):
return client.list_ref_schools(orderby=orderby)
def education_education_me_list_ref_taught_class(client,
orderby=None):
return client.list_ref_taught_classes(orderby=orderby)
def education_education_me_list_rubric(client,
orderby=None,
select=None,
expand=None):
return client.list_rubrics(orderby=orderby,
select=select,
expand=expand)
def education_education_me_list_school(client,
orderby=None,
select=None,
expand=None):
return client.list_schools(orderby=orderby,
select=select,
expand=expand)
def education_education_me_list_taught_class(client,
orderby=None,
select=None,
expand=None):
return client.list_taught_classes(orderby=orderby,
select=select,
expand=expand)
def education_education_me_set_ref_user(client,
body):
return client.set_ref_user(body=body)
def education_education_me_show_assignment(client,
education_assignment_id,
select=None,
expand=None):
return client.get_assignments(education_assignment_id=education_assignment_id,
select=select,
expand=expand)
def education_education_me_show_ref_user(client):
return client.get_ref_user()
def education_education_me_show_rubric(client,
education_rubric_id,
select=None,
expand=None):
return client.get_rubrics(education_rubric_id=education_rubric_id,
select=select,
expand=expand)
def education_education_me_show_user(client,
select=None,
expand=None):
return client.get_user(select=select,
expand=expand)
def education_education_me_update_assignment(client,
education_assignment_id,
id_=None,
allow_late_submissions=None,
allow_students_to_add_resources_to_submission=None,
assign_date_time=None,
assigned_date_time=None,
assign_to=None,
class_id=None,
close_date_time=None,
created_date_time=None,
display_name=None,
due_date_time=None,
grading=None,
instructions=None,
last_modified_date_time=None,
status=None,
categories=None,
resources=None,
submissions=None,
microsoft_graph_entity_id=None,
microsoft_graph_education_rubric_created_date_time_created_date_time=None,
description=None,
microsoft_graph_education_rubric_display_name=None,
microsoft_graph_education_assignment_grade_type_grading=None,
microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['allow_late_submissions'] = allow_late_submissions
body['allow_students_to_add_resources_to_submission'] = allow_students_to_add_resources_to_submission
body['assign_date_time'] = assign_date_time
body['assigned_date_time'] = assigned_date_time
body['assign_to'] = assign_to
body['class_id'] = class_id
body['close_date_time'] = close_date_time
body['created_date_time'] = created_date_time
body['display_name'] = display_name
body['due_date_time'] = due_date_time
body['grading'] = grading
body['instructions'] = instructions
body['last_modified_date_time'] = last_modified_date_time
body['status'] = status
body['categories'] = categories
body['resources'] = resources
body['submissions'] = submissions
body['rubric'] = {}
body['rubric']['id'] = microsoft_graph_entity_id
body['rubric']['created_date_time'] = microsoft_graph_education_rubric_created_date_time_created_date_time
body['rubric']['description'] = description
body['rubric']['display_name'] = microsoft_graph_education_rubric_display_name
body['rubric']['grading'] = microsoft_graph_education_assignment_grade_type_grading
body['rubric']['last_modified_date_time'] = microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time
body['rubric']['levels'] = levels
body['rubric']['qualities'] = qualities
body['rubric']['last_modified_by'] = {}
body['rubric']['last_modified_by']['application'] = application
body['rubric']['last_modified_by']['device'] = device
body['rubric']['last_modified_by']['user'] = user
body['rubric']['created_by'] = {}
body['rubric']['created_by']['application'] = microsoft_graph_identity_application
body['rubric']['created_by']['device'] = microsoft_graph_identity_device
body['rubric']['created_by']['user'] = microsoft_graph_identity_user
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application1
body['last_modified_by']['device'] = device1
body['last_modified_by']['user'] = user1
body['created_by'] = {}
body['created_by']['application'] = application2
body['created_by']['device'] = device2
body['created_by']['user'] = user2
return client.update_assignments(education_assignment_id=education_assignment_id,
body=body)
def education_education_me_update_rubric(client,
education_rubric_id,
id_=None,
created_date_time=None,
description=None,
display_name=None,
grading=None,
last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['created_date_time'] = created_date_time
body['description'] = description
body['display_name'] = display_name
body['grading'] = grading
body['last_modified_date_time'] = last_modified_date_time
body['levels'] = levels
body['qualities'] = qualities
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
body['created_by'] = {}
body['created_by']['application'] = microsoft_graph_identity_application
body['created_by']['device'] = microsoft_graph_identity_device
body['created_by']['user'] = microsoft_graph_identity_user
return client.update_rubrics(education_rubric_id=education_rubric_id,
body=body)
def education_education_me_assignment_create_category(client,
education_assignment_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.create_categories(education_assignment_id=education_assignment_id,
body=body)
def education_education_me_assignment_create_resource(client,
education_assignment_id,
id_=None,
distribute_for_student_work=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['distribute_for_student_work'] = distribute_for_student_work
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_resources(education_assignment_id=education_assignment_id,
body=body)
def education_education_me_assignment_create_submission(client,
education_assignment_id,
id_=None,
recipient=None,
released_date_time=None,
resources_folder_url=None,
returned_date_time=None,
status=None,
submitted_date_time=None,
unsubmitted_date_time=None,
outcomes=None,
resources=None,
submitted_resources=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['recipient'] = recipient
body['released_date_time'] = released_date_time
body['resources_folder_url'] = resources_folder_url
body['returned_date_time'] = returned_date_time
body['status'] = status
body['submitted_date_time'] = submitted_date_time
body['unsubmitted_date_time'] = unsubmitted_date_time
body['outcomes'] = outcomes
body['resources'] = resources
body['submitted_resources'] = submitted_resources
body['unsubmitted_by'] = {}
body['unsubmitted_by']['application'] = application
body['unsubmitted_by']['device'] = device
body['unsubmitted_by']['user'] = user
body['submitted_by'] = {}
body['submitted_by']['application'] = microsoft_graph_identity_application
body['submitted_by']['device'] = microsoft_graph_identity_device
body['submitted_by']['user'] = microsoft_graph_identity_user
body['returned_by'] = {}
body['returned_by']['application'] = application1
body['returned_by']['device'] = device1
body['returned_by']['user'] = user1
body['released_by'] = {}
body['released_by']['application'] = application2
body['released_by']['device'] = device2
body['released_by']['user'] = user2
return client.create_submissions(education_assignment_id=education_assignment_id,
body=body)
def education_education_me_assignment_delete_category(client,
education_assignment_id,
education_category_id,
if_match=None):
return client.delete_categories(education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
if_match=if_match)
def education_education_me_assignment_delete_resource(client,
education_assignment_id,
education_assignment_resource_id,
if_match=None):
return client.delete_resources(education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
if_match=if_match)
def education_education_me_assignment_delete_rubric(client,
education_assignment_id,
if_match=None):
return client.delete_rubric(education_assignment_id=education_assignment_id,
if_match=if_match)
def education_education_me_assignment_delete_submission(client,
education_assignment_id,
education_submission_id,
if_match=None):
return client.delete_submissions(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
if_match=if_match)
def education_education_me_assignment_list_category(client,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_categories(education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_me_assignment_list_resource(client,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_resources(education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_me_assignment_list_submission(client,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_submissions(education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_me_assignment_publish(client,
education_assignment_id):
return client.publish(education_assignment_id=education_assignment_id)
def education_education_me_assignment_show_category(client,
education_assignment_id,
education_category_id,
select=None,
expand=None):
return client.get_categories(education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
select=select,
expand=expand)
def education_education_me_assignment_show_resource(client,
education_assignment_id,
education_assignment_resource_id,
select=None,
expand=None):
return client.get_resources(education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
select=select,
expand=expand)
def education_education_me_assignment_show_resource_folder_url(client,
education_assignment_id):
return client.get_resources_folder_url(education_assignment_id=education_assignment_id)
def education_education_me_assignment_show_rubric(client,
education_assignment_id,
select=None,
expand=None):
return client.get_rubric(education_assignment_id=education_assignment_id,
select=select,
expand=expand)
def education_education_me_assignment_show_submission(client,
education_assignment_id,
education_submission_id,
select=None,
expand=None):
return client.get_submissions(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
select=select,
expand=expand)
def education_education_me_assignment_update_category(client,
education_assignment_id,
education_category_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.update_categories(education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
body=body)
def education_education_me_assignment_update_resource(client,
education_assignment_id,
education_assignment_resource_id,
id_=None,
distribute_for_student_work=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['distribute_for_student_work'] = distribute_for_student_work
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_resources(education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
body=body)
def education_education_me_assignment_update_rubric(client,
education_assignment_id,
id_=None,
created_date_time=None,
description=None,
display_name=None,
grading=None,
last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['created_date_time'] = created_date_time
body['description'] = description
body['display_name'] = display_name
body['grading'] = grading
body['last_modified_date_time'] = last_modified_date_time
body['levels'] = levels
body['qualities'] = qualities
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
body['created_by'] = {}
body['created_by']['application'] = microsoft_graph_identity_application
body['created_by']['device'] = microsoft_graph_identity_device
body['created_by']['user'] = microsoft_graph_identity_user
return client.update_rubric(education_assignment_id=education_assignment_id,
body=body)
def education_education_me_assignment_update_submission(client,
education_assignment_id,
education_submission_id,
id_=None,
recipient=None,
released_date_time=None,
resources_folder_url=None,
returned_date_time=None,
status=None,
submitted_date_time=None,
unsubmitted_date_time=None,
outcomes=None,
resources=None,
submitted_resources=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['recipient'] = recipient
body['released_date_time'] = released_date_time
body['resources_folder_url'] = resources_folder_url
body['returned_date_time'] = returned_date_time
body['status'] = status
body['submitted_date_time'] = submitted_date_time
body['unsubmitted_date_time'] = unsubmitted_date_time
body['outcomes'] = outcomes
body['resources'] = resources
body['submitted_resources'] = submitted_resources
body['unsubmitted_by'] = {}
body['unsubmitted_by']['application'] = application
body['unsubmitted_by']['device'] = device
body['unsubmitted_by']['user'] = user
body['submitted_by'] = {}
body['submitted_by']['application'] = microsoft_graph_identity_application
body['submitted_by']['device'] = microsoft_graph_identity_device
body['submitted_by']['user'] = microsoft_graph_identity_user
body['returned_by'] = {}
body['returned_by']['application'] = application1
body['returned_by']['device'] = device1
body['returned_by']['user'] = user1
body['released_by'] = {}
body['released_by']['application'] = application2
body['released_by']['device'] = device2
body['released_by']['user'] = user2
return client.update_submissions(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_me_assignment_submission_create_outcome(client,
education_assignment_id,
education_submission_id,
id_=None,
last_modified_date_time=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['last_modified_date_time'] = last_modified_date_time
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
return client.create_outcomes(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_me_assignment_submission_create_resource(client,
education_assignment_id,
education_submission_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_me_assignment_submission_create_submitted_resource(client,
education_assignment_id,
education_submission_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_submitted_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_me_assignment_submission_delete_outcome(client,
education_assignment_id,
education_submission_id,
education_outcome_id,
if_match=None):
return client.delete_outcomes(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
if_match=if_match)
def education_education_me_assignment_submission_delete_resource(client,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
if_match=None):
return client.delete_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
if_match=if_match)
def education_education_me_assignment_submission_delete_submitted_resource(client,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
if_match=None):
return client.delete_submitted_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
if_match=if_match)
def education_education_me_assignment_submission_list_outcome(client,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_outcomes(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_me_assignment_submission_list_resource(client,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_me_assignment_submission_list_submitted_resource(client,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_submitted_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_me_assignment_submission_return(client,
education_assignment_id,
education_submission_id):
return client.return_method(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_me_assignment_submission_show_outcome(client,
education_assignment_id,
education_submission_id,
education_outcome_id,
select=None,
expand=None):
return client.get_outcomes(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
select=select,
expand=expand)
def education_education_me_assignment_submission_show_resource(client,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
select=None,
expand=None):
return client.get_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
select=select,
expand=expand)
def education_education_me_assignment_submission_show_submitted_resource(client,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
select=None,
expand=None):
return client.get_submitted_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
select=select,
expand=expand)
def education_education_me_assignment_submission_submit(client,
education_assignment_id,
education_submission_id):
return client.submit(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_me_assignment_submission_unsubmit(client,
education_assignment_id,
education_submission_id):
return client.unsubmit(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_me_assignment_submission_update_outcome(client,
education_assignment_id,
education_submission_id,
education_outcome_id,
id_=None,
last_modified_date_time=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['last_modified_date_time'] = last_modified_date_time
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
return client.update_outcomes(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
body=body)
def education_education_me_assignment_submission_update_resource(client,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
body=body)
def education_education_me_assignment_submission_update_submitted_resource(client,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_submitted_resources(education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
body=body)
def education_education_me_class_delta(client):
return client.delta()
def education_education_me_school_delta(client):
return client.delta()
def education_education_me_taught_class_delta(client):
return client.delta()
def education_education_school_create_ref_class(client,
education_school_id,
body):
return client.create_ref_classes(education_school_id=education_school_id,
body=body)
def education_education_school_create_ref_user(client,
education_school_id,
body):
return client.create_ref_users(education_school_id=education_school_id,
body=body)
def education_education_school_delete_ref_administrative_unit(client,
education_school_id,
if_match=None):
return client.delete_ref_administrative_unit(education_school_id=education_school_id,
if_match=if_match)
def education_education_school_delta(client):
return client.delta()
def education_education_school_list_class(client,
education_school_id,
orderby=None,
select=None,
expand=None):
return client.list_classes(education_school_id=education_school_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_school_list_ref_class(client,
education_school_id,
orderby=None):
return client.list_ref_classes(education_school_id=education_school_id,
orderby=orderby)
def education_education_school_list_ref_user(client,
education_school_id,
orderby=None):
return client.list_ref_users(education_school_id=education_school_id,
orderby=orderby)
def education_education_school_list_user(client,
education_school_id,
orderby=None,
select=None,
expand=None):
return client.list_users(education_school_id=education_school_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_school_set_ref_administrative_unit(client,
education_school_id,
body):
return client.set_ref_administrative_unit(education_school_id=education_school_id,
body=body)
def education_education_school_show_administrative_unit(client,
education_school_id,
select=None,
expand=None):
return client.get_administrative_unit(education_school_id=education_school_id,
select=select,
expand=expand)
def education_education_school_show_ref_administrative_unit(client,
education_school_id):
return client.get_ref_administrative_unit(education_school_id=education_school_id)
def education_education_school_class_delta(client,
education_school_id):
return client.delta(education_school_id=education_school_id)
def education_education_school_user_delta(client,
education_school_id):
return client.delta(education_school_id=education_school_id)
def education_education_synchronization_profile_create_error(client,
education_synchronization_profile_id,
id_=None,
entry_type=None,
error_code=None,
error_message=None,
joining_value=None,
recorded_date_time=None,
reportable_identifier=None):
body = {}
body['id'] = id_
body['entry_type'] = entry_type
body['error_code'] = error_code
body['error_message'] = error_message
body['joining_value'] = joining_value
body['recorded_date_time'] = recorded_date_time
body['reportable_identifier'] = reportable_identifier
return client.create_errors(education_synchronization_profile_id=education_synchronization_profile_id,
body=body)
def education_education_synchronization_profile_delete_error(client,
education_synchronization_profile_id,
education_synchronization_error_id,
if_match=None):
return client.delete_errors(education_synchronization_profile_id=education_synchronization_profile_id,
education_synchronization_error_id=education_synchronization_error_id,
if_match=if_match)
def education_education_synchronization_profile_delete_profile_status(client,
education_synchronization_profile_id,
if_match=None):
return client.delete_profile_status(education_synchronization_profile_id=education_synchronization_profile_id,
if_match=if_match)
def education_education_synchronization_profile_list_error(client,
education_synchronization_profile_id,
orderby=None,
select=None,
expand=None):
return client.list_errors(education_synchronization_profile_id=education_synchronization_profile_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_synchronization_profile_pause(client,
education_synchronization_profile_id):
return client.pause(education_synchronization_profile_id=education_synchronization_profile_id)
def education_education_synchronization_profile_reset(client,
education_synchronization_profile_id):
return client.reset(education_synchronization_profile_id=education_synchronization_profile_id)
def education_education_synchronization_profile_resume(client,
education_synchronization_profile_id):
return client.resume(education_synchronization_profile_id=education_synchronization_profile_id)
def education_education_synchronization_profile_show_error(client,
education_synchronization_profile_id,
education_synchronization_error_id,
select=None,
expand=None):
return client.get_errors(education_synchronization_profile_id=education_synchronization_profile_id,
education_synchronization_error_id=education_synchronization_error_id,
select=select,
expand=expand)
def education_education_synchronization_profile_show_profile_status(client,
education_synchronization_profile_id,
select=None,
expand=None):
return client.get_profile_status(education_synchronization_profile_id=education_synchronization_profile_id,
select=select,
expand=expand)
def education_education_synchronization_profile_start(client,
education_synchronization_profile_id):
return client.start(education_synchronization_profile_id=education_synchronization_profile_id)
def education_education_synchronization_profile_update_error(client,
education_synchronization_profile_id,
education_synchronization_error_id,
id_=None,
entry_type=None,
error_code=None,
error_message=None,
joining_value=None,
recorded_date_time=None,
reportable_identifier=None):
body = {}
body['id'] = id_
body['entry_type'] = entry_type
body['error_code'] = error_code
body['error_message'] = error_message
body['joining_value'] = joining_value
body['recorded_date_time'] = recorded_date_time
body['reportable_identifier'] = reportable_identifier
return client.update_errors(education_synchronization_profile_id=education_synchronization_profile_id,
education_synchronization_error_id=education_synchronization_error_id,
body=body)
def education_education_synchronization_profile_update_profile_status(client,
education_synchronization_profile_id,
id_=None,
last_synchronization_date_time=None,
status=None):
body = {}
body['id'] = id_
body['last_synchronization_date_time'] = last_synchronization_date_time
body['status'] = status
return client.update_profile_status(education_synchronization_profile_id=education_synchronization_profile_id,
body=body)
def education_education_synchronization_profile_upload_url(client,
education_synchronization_profile_id):
return client.upload_url(education_synchronization_profile_id=education_synchronization_profile_id)
def education_education_user_create_assignment(client,
education_user_id,
id_=None,
allow_late_submissions=None,
allow_students_to_add_resources_to_submission=None,
assign_date_time=None,
assigned_date_time=None,
assign_to=None,
class_id=None,
close_date_time=None,
created_date_time=None,
display_name=None,
due_date_time=None,
grading=None,
instructions=None,
last_modified_date_time=None,
status=None,
categories=None,
resources=None,
submissions=None,
microsoft_graph_entity_id=None,
microsoft_graph_education_rubric_created_date_time_created_date_time=None,
description=None,
microsoft_graph_education_rubric_display_name=None,
microsoft_graph_education_assignment_grade_type_grading=None,
microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['allow_late_submissions'] = allow_late_submissions
body['allow_students_to_add_resources_to_submission'] = allow_students_to_add_resources_to_submission
body['assign_date_time'] = assign_date_time
body['assigned_date_time'] = assigned_date_time
body['assign_to'] = assign_to
body['class_id'] = class_id
body['close_date_time'] = close_date_time
body['created_date_time'] = created_date_time
body['display_name'] = display_name
body['due_date_time'] = due_date_time
body['grading'] = grading
body['instructions'] = instructions
body['last_modified_date_time'] = last_modified_date_time
body['status'] = status
body['categories'] = categories
body['resources'] = resources
body['submissions'] = submissions
body['rubric'] = {}
body['rubric']['id'] = microsoft_graph_entity_id
body['rubric']['created_date_time'] = microsoft_graph_education_rubric_created_date_time_created_date_time
body['rubric']['description'] = description
body['rubric']['display_name'] = microsoft_graph_education_rubric_display_name
body['rubric']['grading'] = microsoft_graph_education_assignment_grade_type_grading
body['rubric']['last_modified_date_time'] = microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time
body['rubric']['levels'] = levels
body['rubric']['qualities'] = qualities
body['rubric']['last_modified_by'] = {}
body['rubric']['last_modified_by']['application'] = application
body['rubric']['last_modified_by']['device'] = device
body['rubric']['last_modified_by']['user'] = user
body['rubric']['created_by'] = {}
body['rubric']['created_by']['application'] = microsoft_graph_identity_application
body['rubric']['created_by']['device'] = microsoft_graph_identity_device
body['rubric']['created_by']['user'] = microsoft_graph_identity_user
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application1
body['last_modified_by']['device'] = device1
body['last_modified_by']['user'] = user1
body['created_by'] = {}
body['created_by']['application'] = application2
body['created_by']['device'] = device2
body['created_by']['user'] = user2
return client.create_assignments(education_user_id=education_user_id,
body=body)
def education_education_user_create_ref_class(client,
education_user_id,
body):
return client.create_ref_classes(education_user_id=education_user_id,
body=body)
def education_education_user_create_ref_school(client,
education_user_id,
body):
return client.create_ref_schools(education_user_id=education_user_id,
body=body)
def education_education_user_create_ref_taught_class(client,
education_user_id,
body):
return client.create_ref_taught_classes(education_user_id=education_user_id,
body=body)
def education_education_user_create_rubric(client,
education_user_id,
id_=None,
created_date_time=None,
description=None,
display_name=None,
grading=None,
last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['created_date_time'] = created_date_time
body['description'] = description
body['display_name'] = display_name
body['grading'] = grading
body['last_modified_date_time'] = last_modified_date_time
body['levels'] = levels
body['qualities'] = qualities
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
body['created_by'] = {}
body['created_by']['application'] = microsoft_graph_identity_application
body['created_by']['device'] = microsoft_graph_identity_device
body['created_by']['user'] = microsoft_graph_identity_user
return client.create_rubrics(education_user_id=education_user_id,
body=body)
def education_education_user_delete_assignment(client,
education_user_id,
education_assignment_id,
if_match=None):
return client.delete_assignments(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
if_match=if_match)
def education_education_user_delete_ref_user(client,
education_user_id,
if_match=None):
return client.delete_ref_user(education_user_id=education_user_id,
if_match=if_match)
def education_education_user_delete_rubric(client,
education_user_id,
education_rubric_id,
if_match=None):
return client.delete_rubrics(education_user_id=education_user_id,
education_rubric_id=education_rubric_id,
if_match=if_match)
def education_education_user_delta(client):
return client.delta()
def education_education_user_list_assignment(client,
education_user_id,
orderby=None,
select=None,
expand=None):
return client.list_assignments(education_user_id=education_user_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_list_class(client,
education_user_id,
orderby=None,
select=None,
expand=None):
return client.list_classes(education_user_id=education_user_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_list_ref_class(client,
education_user_id,
orderby=None):
return client.list_ref_classes(education_user_id=education_user_id,
orderby=orderby)
def education_education_user_list_ref_school(client,
education_user_id,
orderby=None):
return client.list_ref_schools(education_user_id=education_user_id,
orderby=orderby)
def education_education_user_list_ref_taught_class(client,
education_user_id,
orderby=None):
return client.list_ref_taught_classes(education_user_id=education_user_id,
orderby=orderby)
def education_education_user_list_rubric(client,
education_user_id,
orderby=None,
select=None,
expand=None):
return client.list_rubrics(education_user_id=education_user_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_list_school(client,
education_user_id,
orderby=None,
select=None,
expand=None):
return client.list_schools(education_user_id=education_user_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_list_taught_class(client,
education_user_id,
orderby=None,
select=None,
expand=None):
return client.list_taught_classes(education_user_id=education_user_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_set_ref_user(client,
education_user_id,
body):
return client.set_ref_user(education_user_id=education_user_id,
body=body)
def education_education_user_show_assignment(client,
education_user_id,
education_assignment_id,
select=None,
expand=None):
return client.get_assignments(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
select=select,
expand=expand)
def education_education_user_show_ref_user(client,
education_user_id):
return client.get_ref_user(education_user_id=education_user_id)
def education_education_user_show_rubric(client,
education_user_id,
education_rubric_id,
select=None,
expand=None):
return client.get_rubrics(education_user_id=education_user_id,
education_rubric_id=education_rubric_id,
select=select,
expand=expand)
def education_education_user_show_user(client,
education_user_id,
select=None,
expand=None):
return client.get_user(education_user_id=education_user_id,
select=select,
expand=expand)
def education_education_user_update_assignment(client,
education_user_id,
education_assignment_id,
id_=None,
allow_late_submissions=None,
allow_students_to_add_resources_to_submission=None,
assign_date_time=None,
assigned_date_time=None,
assign_to=None,
class_id=None,
close_date_time=None,
created_date_time=None,
display_name=None,
due_date_time=None,
grading=None,
instructions=None,
last_modified_date_time=None,
status=None,
categories=None,
resources=None,
submissions=None,
microsoft_graph_entity_id=None,
microsoft_graph_education_rubric_created_date_time_created_date_time=None,
description=None,
microsoft_graph_education_rubric_display_name=None,
microsoft_graph_education_assignment_grade_type_grading=None,
microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['allow_late_submissions'] = allow_late_submissions
body['allow_students_to_add_resources_to_submission'] = allow_students_to_add_resources_to_submission
body['assign_date_time'] = assign_date_time
body['assigned_date_time'] = assigned_date_time
body['assign_to'] = assign_to
body['class_id'] = class_id
body['close_date_time'] = close_date_time
body['created_date_time'] = created_date_time
body['display_name'] = display_name
body['due_date_time'] = due_date_time
body['grading'] = grading
body['instructions'] = instructions
body['last_modified_date_time'] = last_modified_date_time
body['status'] = status
body['categories'] = categories
body['resources'] = resources
body['submissions'] = submissions
body['rubric'] = {}
body['rubric']['id'] = microsoft_graph_entity_id
body['rubric']['created_date_time'] = microsoft_graph_education_rubric_created_date_time_created_date_time
body['rubric']['description'] = description
body['rubric']['display_name'] = microsoft_graph_education_rubric_display_name
body['rubric']['grading'] = microsoft_graph_education_assignment_grade_type_grading
body['rubric']['last_modified_date_time'] = microsoft_graph_education_rubric_last_modified_date_time_last_modified_date_time
body['rubric']['levels'] = levels
body['rubric']['qualities'] = qualities
body['rubric']['last_modified_by'] = {}
body['rubric']['last_modified_by']['application'] = application
body['rubric']['last_modified_by']['device'] = device
body['rubric']['last_modified_by']['user'] = user
body['rubric']['created_by'] = {}
body['rubric']['created_by']['application'] = microsoft_graph_identity_application
body['rubric']['created_by']['device'] = microsoft_graph_identity_device
body['rubric']['created_by']['user'] = microsoft_graph_identity_user
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application1
body['last_modified_by']['device'] = device1
body['last_modified_by']['user'] = user1
body['created_by'] = {}
body['created_by']['application'] = application2
body['created_by']['device'] = device2
body['created_by']['user'] = user2
return client.update_assignments(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_user_update_rubric(client,
education_user_id,
education_rubric_id,
id_=None,
created_date_time=None,
description=None,
display_name=None,
grading=None,
last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['created_date_time'] = created_date_time
body['description'] = description
body['display_name'] = display_name
body['grading'] = grading
body['last_modified_date_time'] = last_modified_date_time
body['levels'] = levels
body['qualities'] = qualities
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
body['created_by'] = {}
body['created_by']['application'] = microsoft_graph_identity_application
body['created_by']['device'] = microsoft_graph_identity_device
body['created_by']['user'] = microsoft_graph_identity_user
return client.update_rubrics(education_user_id=education_user_id,
education_rubric_id=education_rubric_id,
body=body)
def education_education_user_assignment_create_category(client,
education_user_id,
education_assignment_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.create_categories(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_user_assignment_create_resource(client,
education_user_id,
education_assignment_id,
id_=None,
distribute_for_student_work=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['distribute_for_student_work'] = distribute_for_student_work
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_user_assignment_create_submission(client,
education_user_id,
education_assignment_id,
id_=None,
recipient=None,
released_date_time=None,
resources_folder_url=None,
returned_date_time=None,
status=None,
submitted_date_time=None,
unsubmitted_date_time=None,
outcomes=None,
resources=None,
submitted_resources=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['recipient'] = recipient
body['released_date_time'] = released_date_time
body['resources_folder_url'] = resources_folder_url
body['returned_date_time'] = returned_date_time
body['status'] = status
body['submitted_date_time'] = submitted_date_time
body['unsubmitted_date_time'] = unsubmitted_date_time
body['outcomes'] = outcomes
body['resources'] = resources
body['submitted_resources'] = submitted_resources
body['unsubmitted_by'] = {}
body['unsubmitted_by']['application'] = application
body['unsubmitted_by']['device'] = device
body['unsubmitted_by']['user'] = user
body['submitted_by'] = {}
body['submitted_by']['application'] = microsoft_graph_identity_application
body['submitted_by']['device'] = microsoft_graph_identity_device
body['submitted_by']['user'] = microsoft_graph_identity_user
body['returned_by'] = {}
body['returned_by']['application'] = application1
body['returned_by']['device'] = device1
body['returned_by']['user'] = user1
body['released_by'] = {}
body['released_by']['application'] = application2
body['released_by']['device'] = device2
body['released_by']['user'] = user2
return client.create_submissions(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_user_assignment_delete_category(client,
education_user_id,
education_assignment_id,
education_category_id,
if_match=None):
return client.delete_categories(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
if_match=if_match)
def education_education_user_assignment_delete_resource(client,
education_user_id,
education_assignment_id,
education_assignment_resource_id,
if_match=None):
return client.delete_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
if_match=if_match)
def education_education_user_assignment_delete_rubric(client,
education_user_id,
education_assignment_id,
if_match=None):
return client.delete_rubric(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
if_match=if_match)
def education_education_user_assignment_delete_submission(client,
education_user_id,
education_assignment_id,
education_submission_id,
if_match=None):
return client.delete_submissions(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
if_match=if_match)
def education_education_user_assignment_list_category(client,
education_user_id,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_categories(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_assignment_list_resource(client,
education_user_id,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_assignment_list_submission(client,
education_user_id,
education_assignment_id,
orderby=None,
select=None,
expand=None):
return client.list_submissions(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_assignment_publish(client,
education_user_id,
education_assignment_id):
return client.publish(education_user_id=education_user_id,
education_assignment_id=education_assignment_id)
def education_education_user_assignment_show_category(client,
education_user_id,
education_assignment_id,
education_category_id,
select=None,
expand=None):
return client.get_categories(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
select=select,
expand=expand)
def education_education_user_assignment_show_resource(client,
education_user_id,
education_assignment_id,
education_assignment_resource_id,
select=None,
expand=None):
return client.get_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
select=select,
expand=expand)
def education_education_user_assignment_show_resource_folder_url(client,
education_user_id,
education_assignment_id):
return client.get_resources_folder_url(education_user_id=education_user_id,
education_assignment_id=education_assignment_id)
def education_education_user_assignment_show_rubric(client,
education_user_id,
education_assignment_id,
select=None,
expand=None):
return client.get_rubric(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
select=select,
expand=expand)
def education_education_user_assignment_show_submission(client,
education_user_id,
education_assignment_id,
education_submission_id,
select=None,
expand=None):
return client.get_submissions(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
select=select,
expand=expand)
def education_education_user_assignment_update_category(client,
education_user_id,
education_assignment_id,
education_category_id,
id_=None,
display_name=None):
body = {}
body['id'] = id_
body['display_name'] = display_name
return client.update_categories(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_category_id=education_category_id,
body=body)
def education_education_user_assignment_update_resource(client,
education_user_id,
education_assignment_id,
education_assignment_resource_id,
id_=None,
distribute_for_student_work=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['distribute_for_student_work'] = distribute_for_student_work
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_assignment_resource_id=education_assignment_resource_id,
body=body)
def education_education_user_assignment_update_rubric(client,
education_user_id,
education_assignment_id,
id_=None,
created_date_time=None,
description=None,
display_name=None,
grading=None,
last_modified_date_time=None,
levels=None,
qualities=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None):
body = {}
body['id'] = id_
body['created_date_time'] = created_date_time
body['description'] = description
body['display_name'] = display_name
body['grading'] = grading
body['last_modified_date_time'] = last_modified_date_time
body['levels'] = levels
body['qualities'] = qualities
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
body['created_by'] = {}
body['created_by']['application'] = microsoft_graph_identity_application
body['created_by']['device'] = microsoft_graph_identity_device
body['created_by']['user'] = microsoft_graph_identity_user
return client.update_rubric(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
body=body)
def education_education_user_assignment_update_submission(client,
education_user_id,
education_assignment_id,
education_submission_id,
id_=None,
recipient=None,
released_date_time=None,
resources_folder_url=None,
returned_date_time=None,
status=None,
submitted_date_time=None,
unsubmitted_date_time=None,
outcomes=None,
resources=None,
submitted_resources=None,
application=None,
device=None,
user=None,
microsoft_graph_identity_application=None,
microsoft_graph_identity_device=None,
microsoft_graph_identity_user=None,
application1=None,
device1=None,
user1=None,
application2=None,
device2=None,
user2=None):
body = {}
body['id'] = id_
body['recipient'] = recipient
body['released_date_time'] = released_date_time
body['resources_folder_url'] = resources_folder_url
body['returned_date_time'] = returned_date_time
body['status'] = status
body['submitted_date_time'] = submitted_date_time
body['unsubmitted_date_time'] = unsubmitted_date_time
body['outcomes'] = outcomes
body['resources'] = resources
body['submitted_resources'] = submitted_resources
body['unsubmitted_by'] = {}
body['unsubmitted_by']['application'] = application
body['unsubmitted_by']['device'] = device
body['unsubmitted_by']['user'] = user
body['submitted_by'] = {}
body['submitted_by']['application'] = microsoft_graph_identity_application
body['submitted_by']['device'] = microsoft_graph_identity_device
body['submitted_by']['user'] = microsoft_graph_identity_user
body['returned_by'] = {}
body['returned_by']['application'] = application1
body['returned_by']['device'] = device1
body['returned_by']['user'] = user1
body['released_by'] = {}
body['released_by']['application'] = application2
body['released_by']['device'] = device2
body['released_by']['user'] = user2
return client.update_submissions(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_user_assignment_submission_create_outcome(client,
education_user_id,
education_assignment_id,
education_submission_id,
id_=None,
last_modified_date_time=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['last_modified_date_time'] = last_modified_date_time
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
return client.create_outcomes(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_user_assignment_submission_create_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_user_assignment_submission_create_submitted_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.create_submitted_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
body=body)
def education_education_user_assignment_submission_delete_outcome(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_outcome_id,
if_match=None):
return client.delete_outcomes(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
if_match=if_match)
def education_education_user_assignment_submission_delete_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
if_match=None):
return client.delete_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
if_match=if_match)
def education_education_user_assignment_submission_delete_submitted_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
if_match=None):
return client.delete_submitted_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
if_match=if_match)
def education_education_user_assignment_submission_list_outcome(client,
education_user_id,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_outcomes(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_assignment_submission_list_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_assignment_submission_list_submitted_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
orderby=None,
select=None,
expand=None):
return client.list_submitted_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
orderby=orderby,
select=select,
expand=expand)
def education_education_user_assignment_submission_return(client,
education_user_id,
education_assignment_id,
education_submission_id):
return client.return_method(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_user_assignment_submission_show_outcome(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_outcome_id,
select=None,
expand=None):
return client.get_outcomes(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
select=select,
expand=expand)
def education_education_user_assignment_submission_show_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
select=None,
expand=None):
return client.get_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
select=select,
expand=expand)
def education_education_user_assignment_submission_show_submitted_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
select=None,
expand=None):
return client.get_submitted_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
select=select,
expand=expand)
def education_education_user_assignment_submission_submit(client,
education_user_id,
education_assignment_id,
education_submission_id):
return client.submit(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_user_assignment_submission_unsubmit(client,
education_user_id,
education_assignment_id,
education_submission_id):
return client.unsubmit(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id)
def education_education_user_assignment_submission_update_outcome(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_outcome_id,
id_=None,
last_modified_date_time=None,
application=None,
device=None,
user=None):
body = {}
body['id'] = id_
body['last_modified_date_time'] = last_modified_date_time
body['last_modified_by'] = {}
body['last_modified_by']['application'] = application
body['last_modified_by']['device'] = device
body['last_modified_by']['user'] = user
return client.update_outcomes(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_outcome_id=education_outcome_id,
body=body)
def education_education_user_assignment_submission_update_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
body=body)
def education_education_user_assignment_submission_update_submitted_resource(client,
education_user_id,
education_assignment_id,
education_submission_id,
education_submission_resource_id,
id_=None,
assignment_resource_url=None,
created_by=None,
created_date_time=None,
display_name=None,
last_modified_by=None,
last_modified_date_time=None):
body = {}
body['id'] = id_
body['assignment_resource_url'] = assignment_resource_url
body['resource'] = {}
body['resource']['created_by'] = created_by
body['resource']['created_date_time'] = created_date_time
body['resource']['display_name'] = display_name
body['resource']['last_modified_by'] = last_modified_by
body['resource']['last_modified_date_time'] = last_modified_date_time
return client.update_submitted_resources(education_user_id=education_user_id,
education_assignment_id=education_assignment_id,
education_submission_id=education_submission_id,
education_submission_resource_id=education_submission_resource_id,
body=body)
def education_education_user_class_delta(client,
education_user_id):
return client.delta(education_user_id=education_user_id)
def education_education_user_school_delta(client,
education_user_id):
return client.delta(education_user_id=education_user_id)
def education_education_user_taught_class_delta(client,
education_user_id):
return client.delta(education_user_id=education_user_id)
| 56.618759
| 135
| 0.449024
| 16,625
| 233,609
| 5.849865
| 0.013113
| 0.091163
| 0.079678
| 0.067874
| 0.988926
| 0.983805
| 0.974119
| 0.961328
| 0.947262
| 0.929854
| 0
| 0.001224
| 0.496462
| 233,609
| 4,125
| 136
| 56.632485
| 0.825548
| 0.00214
| 0
| 0.875828
| 0
| 0
| 0.069677
| 0.011093
| 0
| 0
| 0
| 0
| 0
| 1
| 0.067605
| false
| 0.003311
| 0
| 0.049945
| 0.13521
| 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
|
f0c986b4d2143324e859882ee21c3edfc90c8bff
| 18,392
|
py
|
Python
|
examples/fewshot/networks/convnet.py
|
isaykatsman/hyperbolic-image-embeddings
|
df87de7e752f5207a92c6f524132445836277b06
|
[
"MIT"
] | null | null | null |
examples/fewshot/networks/convnet.py
|
isaykatsman/hyperbolic-image-embeddings
|
df87de7e752f5207a92c6f524132445836277b06
|
[
"MIT"
] | null | null | null |
examples/fewshot/networks/convnet.py
|
isaykatsman/hyperbolic-image-embeddings
|
df87de7e752f5207a92c6f524132445836277b06
|
[
"MIT"
] | null | null | null |
import torch.nn as nn
import hyptorch.nn as hypnn
import hyptorch.pmath as pmath
# Basic ConvNet with Pooling layer
def conv_block(in_channels, out_channels):
# removed batchnorm after conv: nn.BatchNorm2d(out_channels),
return nn.Sequential(
nn.Conv2d(in_channels, out_channels, 3, padding=1),
nn.ReLU(),
nn.MaxPool2d(2)
)
class ConvNet(nn.Module):
def __init__(self, x_dim=3, hid_dim=64, z_dim=64):
super().__init__()
self.encoder = nn.Sequential(
conv_block(x_dim, hid_dim),
# conv_block(hid_dim, hid_dim),
# conv_block(hid_dim, hid_dim),
# conv_block(hid_dim, z_dim),
)
def forward(self, x):
x = self.encoder(x)
x = nn.MaxPool2d(5)(x)
x = x.view(x.size(0), -1)
return x
# Basic Hyperbolic ConvNet with Pooling layer
class HypConvNetEncoder(nn.Module):
def __init__(self, c, x_dim=3, hid_dim=64, z_dim=64, normalization='perchannel'):
super().__init__()
self.c = c
self.normalization = normalization
print('refresh here')
self.c1 = hypnn.HypConv3(x_dim, hid_dim, 3, c, padding=1, normalization=normalization)
# # self.b1 = nn.BatchNorm2d(hid_dim)
# # relu and maxpool(2) on forward pass
# self.c2 = hypnn.HypConv3(hid_dim, hid_dim, 3, c, padding=1, normalization=normalization)
# # self.b2 = nn.BatchNorm2d(hid_dim)
# # relu and maxpool(2) on forward pass
# self.c3 = hypnn.HypConv3(hid_dim, hid_dim, 3, c, padding=1, normalization=normalization)
# # self.b3 = nn.BatchNorm2d(hid_dim)
# # relu and maxpool(2) on forward pass
# self.c4 = hypnn.HypConv3(hid_dim, z_dim, 3, c, padding=1, normalization=normalization)
# # self.b4 = nn.BatchNorm2d(z_dim)
def forward(self, x, c=None):
if c is None:
c = self.c
# do proper normalization of euclidean data
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# BLOCK 1
x = self.c1(x, c=c)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b1(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.ReLU()(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# xbrp = x
# print(f'norm after relu: {x.norm(dim=-1, keepdim=True, p=2)[0]}')
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# print(f'norm after projection relu: {x.norm(dim=-1, keepdim=True, p=2)[0]}')
# print(f'diff: {xbrp[0]-x[0]}')
# print(f'diff sum: {sum(sum(sum(xbrp[0]-x[0])))}')
# print(f'x after relu project the same: {xbrp.equal(x)}')
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(2)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# xbpp = x
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# print(f'x after pool project the same: {xbpp.equal(x)}')
# # BLOCK 2
# x = self.c2(x, c=c)
# # batch norm
# # x = pmath.logmap0(x, c=c)
# # x = self.b2(x)
# # x = pmath.expmap0(x, c=c)
# # x = pmath.project(x, c=c)
# # blocked relu and maxpool 2
# # x = pmath.logmap0(x, c=c)
# # x = nn.ReLU()(x)
# # x = nn.MaxPool2d(2)(x)
# # x = pmath.expmap0(x, c=c)
# # x = pmath.project(x, c=c)
# # separate relu and maxpool 2
# x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = nn.ReLU()(x)
# x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# # BLOCK 3
# x = self.c3(x, c=c)
# # batch norm
# # x = pmath.logmap0(x, c=c)
# # x = self.b3(x)
# # x = pmath.expmap0(x, c=c)
# # x = pmath.project(x, c=c)
# # blocked relu and maxpool 2
# # x = pmath.logmap0(x, c=c)
# # x = nn.ReLU()(x)
# # x = nn.MaxPool2d(2)(x)
# # x = pmath.expmap0(x, c=c)
# # x = pmath.project(x, c=c)
# # separate relu and maxpool 2
# x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = nn.ReLU()(x)
# x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# # BLOCK 4
# x = self.c4(x, c=c)
# # batch norm
# # x = pmath.logmap0(x, c=c)
# # x = self.b4(x)
# # x = pmath.expmap0(x, c=c)
# # x = pmath.project(x, c=c)
# # blocked relu and maxpool 2
# # x = pmath.logmap0(x, c=c)
# # x = nn.ReLU()(x)
# # x = nn.MaxPool2d(2)(x)
# # x = pmath.expmap0(x, c=c)
# # x = pmath.project(x, c=c)
# # separate relu and maxpool 2
# x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = nn.ReLU()(x)
# x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# final pool
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(5)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# print(x.size()), currently N x 512 x 1 x 1
# currently I believe this step may mess with the geometry
# what would be a natural replacement? A: view as eucl vector, then do expmap to go back to hyperbolic space
x = x.view(x.size(0), -1)
x = pmath.expmap0(x, c=c)
x = pmath.project(x, c=c)
return x
# Basic Hyperbolic ConvNet with Pooling layer
class HypConvNetEncoderOnlyHypBias(nn.Module):
def __init__(self, c, x_dim=3, hid_dim=64, z_dim=64, normalization='perchannel'):
super().__init__()
self.c = c
self.normalization = normalization
# print('getting here')
self.c1 = hypnn.HypConv(x_dim, hid_dim, 3, c, padding=1, normalization=normalization)
# self.b1 = nn.BatchNorm2d(hid_dim)
# relu and maxpool(2) on forward pass
self.c2 = hypnn.HypConv(hid_dim, hid_dim, 3, c, padding=1, normalization=normalization)
# self.b2 = nn.BatchNorm2d(hid_dim)
# relu and maxpool(2) on forward pass
self.c3 = hypnn.HypConv(hid_dim, hid_dim, 3, c, padding=1, normalization=normalization)
# self.b3 = nn.BatchNorm2d(hid_dim)
# relu and maxpool(2) on forward pass
self.c4 = hypnn.HypConv(hid_dim, z_dim, 3, c, padding=1, normalization=normalization)
# self.b4 = nn.BatchNorm2d(z_dim)
def forward(self, x, c=None):
if c is None:
c = self.c
# do proper normalization of euclidean data
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# BLOCK 1
x = self.c1(x, c=c)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b1(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.ReLU()(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# xbrp = x
# print(f'norm after relu: {x.norm(dim=-1, keepdim=True, p=2)[0]}')
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# print(f'norm after projection relu: {x.norm(dim=-1, keepdim=True, p=2)[0]}')
# print(f'diff: {xbrp[0]-x[0]}')
# print(f'diff sum: {sum(sum(sum(xbrp[0]-x[0])))}')
# print(f'x after relu project the same: {xbrp.equal(x)}')
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(2)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# xbpp = x
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# print(f'x after pool project the same: {xbpp.equal(x)}')
# BLOCK 2
x = self.c2(x, c=c)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b2(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.ReLU()(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(2)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# BLOCK 3
x = self.c3(x, c=c)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b3(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.ReLU()(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(2)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# BLOCK 4
x = self.c4(x, c=c)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b4(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.ReLU()(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(2)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# final pool
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(5)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# print(x.size()), currently N x 512 x 1 x 1
# currently I believe this step may mess with the geometry
# what would be a natural replacement? A: view as eucl vector, then do expmap to go back to hyperbolic space
x = x.view(x.size(0), -1)
# x = pmath.expmap0(x, c=c)
x = pmath.project(x, c=c)
return x
# Encoder with some hyperbolic layers
class EncoderWithSomeHyperbolic(nn.Module):
def __init__(self, c, x_dim=3, hid_dim=64, z_dim=64, args=None):
super().__init__()
self.c = c
print(f'encoder with some hyperbolic')
self.c1 = nn.Conv2d(x_dim, hid_dim, 3, padding=1)
# self.b1 = nn.BatchNorm2d(hid_dim)
# relu and maxpool(2) on forward pass
self.c2 = nn.Conv2d(hid_dim, hid_dim, 3, padding=1)
# self.b2 = nn.BatchNorm2d(hid_dim)
# relu and maxpool(2) on forward pass
self.c3 = nn.Conv2d(hid_dim, 10, 3, padding=1) # hid_dim
# self.b3 = nn.BatchNorm2d(hid_dim)
# relu and maxpool(2) on forward pass
self.c4 = hypnn.HypConv3(10, 10, 3, c, padding=1) # hid_dim, z_dim
# self.b4 = nn.BatchNorm2d(z_dim)
self.e2p = hypnn.ToPoincare(c=args.c, train_c=args.train_c, train_x=args.train_x)
def get_c(self):
return self.e2p.c
def forward(self, x, c=None):
if c is None:
c = self.c
# BLOCK 1
x = self.c1(x)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b1(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
# x = pmath.logmap0(x, c=c)
x = nn.ReLU()(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# x = pmath.logmap0(x, c=c)
x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# BLOCK 2
x = self.c2(x)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b2(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
# x = pmath.logmap0(x, c=c)
x = nn.ReLU()(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# x = pmath.logmap0(x, c=c)
x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# BLOCK 3
x = self.c3(x)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b3(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
# x = pmath.logmap0(x, c=c)
x = nn.ReLU()(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# x = pmath.logmap0(x, c=c)
x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# BLOCK 4, to hyperbolic
x = self.e2p(x)
x = self.c4(x, c=c)
# batch norm
# x = pmath.logmap0(x, c=c)
# x = self.b4(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# blocked relu and maxpool 2
# x = pmath.logmap0(x, c=c)
# x = nn.ReLU()(x)
# x = nn.MaxPool2d(2)(x)
# x = pmath.expmap0(x, c=c)
# x = pmath.project(x, c=c)
# separate relu and maxpool 2
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.ReLU()(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(2)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# final pool
x = pmath.logmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = nn.MaxPool2d(5)(x)
x = pmath.expmap0(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
x = pmath.project(x.view(x.size(0) * x.size(1), -1), c=c).view(x.size())
# print(x.size()), currently N x 512 x 1 x 1
# currently I believe this step may mess with the geometry
# what would be a natural replacement? A: view as eucl vector, then do expmap to go back to hyperbolic space
x = x.view(x.size(0), -1)
x = pmath.expmap0(x, c=c)
x = pmath.project(x, c=c)
return x
| 35.992172
| 116
| 0.511037
| 3,100
| 18,392
| 2.99871
| 0.043226
| 0.108649
| 0.129733
| 0.074225
| 0.923408
| 0.91932
| 0.910176
| 0.904905
| 0.904905
| 0.892857
| 0
| 0.044123
| 0.296379
| 18,392
| 511
| 117
| 35.992172
| 0.674214
| 0.538441
| 0
| 0.726027
| 0
| 0
| 0.007339
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.068493
| false
| 0
| 0.020548
| 0.013699
| 0.157534
| 0.013699
| 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
|
f0fbc87e85bb960b64d00ce3077b7280edf06134
| 18,430
|
py
|
Python
|
minos/tests/vcf_chunker_test.py
|
rmcolq/minos
|
1c5a8e178f95db63194ded75c608fe15ae059474
|
[
"MIT"
] | null | null | null |
minos/tests/vcf_chunker_test.py
|
rmcolq/minos
|
1c5a8e178f95db63194ded75c608fe15ae059474
|
[
"MIT"
] | null | null | null |
minos/tests/vcf_chunker_test.py
|
rmcolq/minos
|
1c5a8e178f95db63194ded75c608fe15ae059474
|
[
"MIT"
] | null | null | null |
import filecmp
import shutil
import os
import unittest
import cluster_vcf_records
from minos import vcf_chunker
modules_dir = os.path.dirname(os.path.abspath(vcf_chunker.__file__))
data_dir = os.path.join(modules_dir, 'tests', 'data', 'vcf_chunker')
class TestVcfChunker(unittest.TestCase):
def test_total_variants_and_alleles_in_vcf_dict(self):
'''test _total_variants_and_alleles_in_vcf_dict'''
class FakeVcf:
def __init__(self, alt):
self.ALT = alt
test_dict = {
'chrom1': [FakeVcf('123'), FakeVcf('1'), FakeVcf('123456789')],
'chrom2': [FakeVcf('12'), FakeVcf('1234')]}
expect_variants = 5
expect_alleles = 24
got_variants, got_alleles = vcf_chunker.VcfChunker._total_variants_and_alleles_in_vcf_dict(test_dict)
self.assertEqual(expect_variants, got_variants)
self.assertEqual(expect_alleles, got_alleles)
def test_chunk_end_indexes_from_vcf_record_list(self):
'''test _chunk_end_indexes_from_vcf_record_list'''
record_list = [
cluster_vcf_records.vcf_record.VcfRecord('ref\t1\t.\tA\tG\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t2\t.\tC\tT,A,G,TA\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t3\t.\tT\tA,C\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t5\t.\tAGAGTCACGTA\tG\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t18\t.\tA\tG\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t21\t.\tG\tT\t.\t.\t.\t.'),
]
self.assertEqual((0, 0, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=1))
self.assertEqual((0, 0, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=2))
self.assertEqual((0, 0, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=3))
self.assertEqual((0, 0, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=4))
self.assertEqual((0, 0, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=5))
self.assertEqual((0, 0, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=6))
self.assertEqual((0, 1, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=7))
self.assertEqual((0, 1, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=8))
self.assertEqual((0, 1, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=9))
self.assertEqual((0, 2, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=10))
self.assertEqual((0, 2, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=11))
self.assertEqual((0, 3, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_alleles=12))
self.assertEqual((0, 0, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=1))
self.assertEqual((0, 1, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=2))
self.assertEqual((0, 2, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=3))
self.assertEqual((0, 3, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=4))
self.assertEqual((0, 4, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=5))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=6))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=7))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 1, total_sites=8))
self.assertEqual((0, 0, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=1))
self.assertEqual((0, 1, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=2))
self.assertEqual((0, 2, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=3))
self.assertEqual((0, 3, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=4))
self.assertEqual((0, 4, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=5))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=6))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=7))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 2, total_sites=8))
self.assertEqual((0, 0, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=1))
self.assertEqual((0, 1, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=2))
self.assertEqual((0, 2, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=3))
self.assertEqual((0, 3, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=4))
self.assertEqual((0, 4, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=5))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=6))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=7))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 3, total_sites=8))
self.assertEqual((0, 0, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 4, total_sites=1))
self.assertEqual((0, 1, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 4, total_sites=2))
self.assertEqual((0, 2, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 4, total_sites=3))
self.assertEqual((0, 3, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 4, total_sites=4))
self.assertEqual((0, 4, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 4, total_sites=5))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 4, total_sites=6))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 4, total_sites=7))
self.assertEqual((0, 1, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 1, 1, total_sites=1))
self.assertEqual((0, 1, 2), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 1, 2, total_sites=1))
self.assertEqual((0, 1, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 1, 3, total_sites=1))
self.assertEqual((0, 1, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 1, 15, total_sites=1))
self.assertEqual((0, 1, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 1, 16, total_sites=1))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 1, 1, total_sites=6))
self.assertEqual((4, 4, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 4, 1, total_sites=1))
self.assertEqual((4, 4, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 4, 2, total_sites=1))
self.assertEqual((3, 4, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 4, 3, total_sites=1))
self.assertEqual((4, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 4, 1, total_sites=2))
self.assertEqual((5, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 1, total_sites=1))
self.assertEqual((5, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 1, total_sites=2))
self.assertEqual((5, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 2, total_sites=2))
self.assertEqual((4, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 3, total_sites=2))
self.assertEqual((4, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 4, total_sites=2))
self.assertEqual((4, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 5, total_sites=2))
self.assertEqual((3, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 6, total_sites=2))
self.assertEqual((3, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 7, total_sites=2))
self.assertEqual((3, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 17, total_sites=2))
self.assertEqual((2, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 18, total_sites=2))
self.assertEqual((1, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 19, total_sites=2))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 20, total_sites=2))
self.assertEqual((0, 5, 5), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 5, 21, total_sites=2))
# These records caused minos error because variant at 800
# was included in the last split file, but the use_end_index was at
# position of the variant at 610. So the one at 800 was not getting used.
record_list = [
cluster_vcf_records.vcf_record.VcfRecord('ref\t75\t.\tA\tG\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t150\t.\tG\tA,T\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t450\t.\tT\tC\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t610\t.\tA\tG\t.\t.\t.\t.'),
cluster_vcf_records.vcf_record.VcfRecord('ref\t800\t.\tC\tCA\t.\t.\t.\t.'),
]
self.assertEqual((0, 1, 1), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 0, 100, total_sites=2))
self.assertEqual((2, 3, 3), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 2, 100, total_sites=2))
self.assertEqual((4, 4, 4), vcf_chunker.VcfChunker._chunk_end_indexes_from_vcf_record_list(record_list, 4, 100, total_sites=2))
def test_make_split_files(self):
'''test make_split_files'''
infile = os.path.join(data_dir, 'make_split_files.in.vcf')
tmp_out = 'tmp.vcf_chunker.make_split_files'
ref_fa = os.path.join(data_dir, 'make_split_files.in.ref.fa')
if os.path.exists(tmp_out):
shutil.rmtree(tmp_out)
vcf1 = cluster_vcf_records.vcf_record.VcfRecord('ref1\t1\t.\tG\tT\t.\tPASS\t.\t.\t.')
vcf2 = cluster_vcf_records.vcf_record.VcfRecord('ref1\t2\t.\tC\tT\t.\tPASS\t.\t.\t.')
vcf3 = cluster_vcf_records.vcf_record.VcfRecord('ref1\t3\t.\tT\tA\t.\tPASS\t.\t.\t.')
vcf4 = cluster_vcf_records.vcf_record.VcfRecord('ref1\t5\t.\tAGAGTCACGTA\tG\t.\tPASS\t.\t.\t.')
vcf5 = cluster_vcf_records.vcf_record.VcfRecord('ref1\t18\t.\tA\tG\t.\tPASS\t.\t.\t.')
vcf6 = cluster_vcf_records.vcf_record.VcfRecord('ref1\t21\t.\tG\tT\t.\tPASS\t.\t.\t.')
vcf7 = cluster_vcf_records.vcf_record.VcfRecord('ref2\t42\t.\tC\tG\t.\tPASS\t.\t.\t.')
header_lines = ['##header1', '##header2', '#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tsample_name']
chunker = vcf_chunker.VcfChunker(tmp_out, vcf_infile=infile, ref_fasta=ref_fa, variants_per_split=2, flank_length=1, gramtools_kmer_size=5)
chunker.make_split_files()
self.assertTrue(os.path.exists(chunker.metadata_pickle))
got_header, got_records = cluster_vcf_records.vcf_file_read.vcf_file_to_list(os.path.join(tmp_out, 'split.0.in.vcf'))
self.assertEqual(header_lines, got_header)
self.assertEqual([vcf1, vcf2, vcf3], got_records)
got_header, got_records = cluster_vcf_records.vcf_file_read.vcf_file_to_list(os.path.join(tmp_out, 'split.1.in.vcf'))
self.assertEqual(header_lines, got_header)
self.assertEqual([vcf2, vcf3, vcf4], got_records)
got_header, got_records = cluster_vcf_records.vcf_file_read.vcf_file_to_list(os.path.join(tmp_out, 'split.2.in.vcf'))
self.assertEqual(header_lines, got_header)
self.assertEqual([vcf5, vcf6], got_records)
got_header, got_records = cluster_vcf_records.vcf_file_read.vcf_file_to_list(os.path.join(tmp_out, 'split.3.in.vcf'))
self.assertEqual(header_lines, got_header)
self.assertEqual([vcf7], got_records)
self.assertFalse(os.path.exists(os.path.join(tmp_out, 'split.4.in.vcf')))
shutil.rmtree(tmp_out)
chunker = vcf_chunker.VcfChunker(tmp_out, vcf_infile=infile, ref_fasta=ref_fa, variants_per_split=4, flank_length=3, gramtools_kmer_size=5)
chunker.make_split_files()
self.assertTrue(os.path.exists(chunker.metadata_pickle))
got_header, got_records = cluster_vcf_records.vcf_file_read.vcf_file_to_list(os.path.join(tmp_out, 'split.0.in.vcf'))
self.assertEqual(header_lines, got_header)
self.assertEqual([vcf1, vcf2, vcf3, vcf4, vcf5], got_records)
got_header, got_records = cluster_vcf_records.vcf_file_read.vcf_file_to_list(os.path.join(tmp_out, 'split.1.in.vcf'))
self.assertEqual(header_lines, got_header)
self.assertEqual([vcf4, vcf5, vcf6], got_records)
got_header, got_records = cluster_vcf_records.vcf_file_read.vcf_file_to_list(os.path.join(tmp_out, 'split.2.in.vcf'))
self.assertEqual(header_lines, got_header)
self.assertEqual([vcf7], got_records)
self.assertFalse(os.path.exists(os.path.join(tmp_out, 'split.3.in.vcf')))
chunker2 = vcf_chunker.VcfChunker(tmp_out, gramtools_kmer_size=5)
self.assertEqual(chunker.vcf_infile,chunker2.vcf_infile)
self.assertEqual(chunker.ref_fasta,chunker2.ref_fasta)
self.assertEqual(chunker.variants_per_split,chunker2.variants_per_split)
self.assertEqual(chunker.total_splits,chunker2.total_splits)
self.assertEqual(chunker.flank_length,chunker2.flank_length)
self.assertEqual(chunker.gramtools_kmer_size,chunker2.gramtools_kmer_size)
self.assertEqual(chunker.max_read_length,chunker2.max_read_length)
self.assertEqual(chunker.total_split_files,chunker2.total_split_files)
self.assertEqual(chunker.vcf_split_files,chunker2.vcf_split_files)
shutil.rmtree(tmp_out)
def test_make_split_files_2(self):
'''test make_split_files with different input from previous test'''
# These records cause a minos bug. Last record was not being used
# when merging because the index was wrong.
# They are test data from multi_sample_pipeline tests
infile = os.path.join(data_dir, 'make_split_files2.in.vcf')
tmp_out = 'tmp.vcf_chunker.make_split_files2'
ref_fa = os.path.join(data_dir, 'make_split_files2.in.ref.fa')
if os.path.exists(tmp_out):
shutil.rmtree(tmp_out)
chunker = vcf_chunker.VcfChunker(tmp_out, vcf_infile=infile, ref_fasta=ref_fa, variants_per_split=2, flank_length=200, gramtools_kmer_size=5)
chunker.make_split_files()
self.assertTrue(os.path.exists(chunker.metadata_pickle))
chunker2 = vcf_chunker.VcfChunker(tmp_out, gramtools_kmer_size=5)
self.assertEqual(1, len(chunker2.vcf_split_files))
self.assertEqual(3, len(chunker2.vcf_split_files['ref.0']))
self.assertEqual(4, chunker2.vcf_split_files['ref.0'][-1].use_end_index)
shutil.rmtree(tmp_out)
# Test with two threads
chunker = vcf_chunker.VcfChunker(tmp_out, vcf_infile=infile, ref_fasta=ref_fa, variants_per_split=2, flank_length=200, threads=2, gramtools_kmer_size=5)
chunker.make_split_files()
self.assertTrue(os.path.exists(chunker.metadata_pickle))
chunker2 = vcf_chunker.VcfChunker(tmp_out, gramtools_kmer_size=5)
self.assertEqual(1, len(chunker2.vcf_split_files))
self.assertEqual(3, len(chunker2.vcf_split_files['ref.0']))
self.assertEqual(4, chunker2.vcf_split_files['ref.0'][-1].use_end_index)
shutil.rmtree(tmp_out)
def test_merge_files(self):
'''test merge_files'''
vcf_to_split = os.path.join(data_dir, 'merge_files.in.vcf')
ref_fasta = os.path.join(data_dir, 'merge_files.in.ref.fa')
tmp_outdir = 'tmp.vcf_chunker.merge_files'
chunker = vcf_chunker.VcfChunker(tmp_outdir, vcf_infile=vcf_to_split, ref_fasta=ref_fasta, variants_per_split=4, flank_length=3, gramtools_kmer_size=5)
chunker.make_split_files()
to_merge = {}
for ref, split_list in chunker.vcf_split_files.items():
to_merge[ref] = [x.filename for x in split_list]
tmp_vcf_out = 'tmp.vcf_chunker.merge_files.out.vcf'
chunker.merge_files(to_merge, tmp_vcf_out)
self.assertTrue(filecmp.cmp(vcf_to_split, tmp_vcf_out, shallow=False))
os.unlink(tmp_vcf_out)
shutil.rmtree(tmp_outdir)
| 73.426295
| 160
| 0.734238
| 2,886
| 18,430
| 4.306306
| 0.068954
| 0.114258
| 0.125523
| 0.108545
| 0.843579
| 0.823865
| 0.804715
| 0.777599
| 0.760621
| 0.733505
| 0
| 0.037623
| 0.141888
| 18,430
| 250
| 161
| 73.72
| 0.748214
| 0.030657
| 0
| 0.218274
| 0
| 0.005076
| 0.063257
| 0.050191
| 0
| 0
| 0
| 0
| 0.543147
| 1
| 0.030457
| false
| 0.035533
| 0.030457
| 0
| 0.071066
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0b0d460a662fab8bcdf5a101a2a1c3fd1cd6c6d8
| 3,018
|
py
|
Python
|
models/loss_1.py
|
chaseshen-ai/DCL
|
d3e4a4434908f6cdf8b8590fc89402997cfb478b
|
[
"Apache-2.0"
] | null | null | null |
models/loss_1.py
|
chaseshen-ai/DCL
|
d3e4a4434908f6cdf8b8590fc89402997cfb478b
|
[
"Apache-2.0"
] | null | null | null |
models/loss_1.py
|
chaseshen-ai/DCL
|
d3e4a4434908f6cdf8b8590fc89402997cfb478b
|
[
"Apache-2.0"
] | null | null | null |
import torch
import torch.nn as nn
import torch.nn.functional as F
class Loss_2(nn.Module): # 1d and 2d
def __init__(self, gamma=2, size_average=True):
super(Loss_2, self).__init__()
self.gamma = gamma
self.size_average = size_average
def forward(self, logit, target, brand_prob=None, class_weight=None, type='softmax'):
target = target.view(-1, 1).long()
if type == 'sigmoid':
if class_weight is None:
class_weight = [1] * 2 # [0.5, 0.5]
prob = torch.sigmoid(logit)
prob = prob.view(-1, 1)
prob = torch.cat((1 - prob, prob), 1)
select = torch.FloatTensor(len(prob), 2).zero_().cuda()
select.scatter_(1, target, 1.)
elif type == 'softmax':
B, C = logit.size()
if class_weight is None:
class_weight = [1] * C # [1/C]*C
# logit = logit.permute(0, 2, 3, 1).contiguous().view(-1, C)
prob = F.softmax(logit, 1)
select = torch.FloatTensor(len(prob), C).zero_().cuda()
select.scatter_(1, target, 1.)
probs = torch.gather(prob, 1, target)
prob = (prob * select).sum(1).view(-1, 1)
prob = torch.clamp(prob, 1e-8, 1 - 1e-8)
# 前一个的概率
if brand_prob is not None:
prob = prob*brand_prob
batch_loss = - prob.log()
if self.size_average:
loss = batch_loss.mean()
else:
loss = batch_loss
return loss, prob
class Loss_1(nn.Module): #1d and 2d
def __init__(self, gamma=2, size_average=True):
super(Loss_1, self).__init__()
self.gamma = gamma
self.size_average = size_average
def forward(self, logit, target, brand_prob=None,class_weight=None, type='softmax'):
target = target.view(-1, 1).long()
if type=='sigmoid':
if class_weight is None:
class_weight = [1]*2 #[0.5, 0.5]
prob = torch.sigmoid(logit)
prob = prob.view(-1, 1)
prob = torch.cat((1-prob, prob), 1)
select = torch.FloatTensor(len(prob), 2).zero_().cuda()
select.scatter_(1, target, 1.)
elif type=='softmax':
B,C = logit.size()
if class_weight is None:
class_weight =[1]*C #[1/C]*C
#logit = logit.permute(0, 2, 3, 1).contiguous().view(-1, C)
prob = F.softmax(logit,1)
select = torch.FloatTensor(len(prob), C).zero_().cuda()
select.scatter_(1, target, 1.)
probs = torch.gather(prob, 1, target)
prob = (prob*select).sum(1).view(-1,1)
prob = torch.clamp(prob,1e-8,1-1e-8)
batch_loss = - prob.log()
if brand_prob is not None:
batch_loss=batch_loss*brand_prob
if self.size_average:
loss = batch_loss.mean()
else:
loss = batch_loss
return loss,prob
| 30.795918
| 89
| 0.530152
| 402
| 3,018
| 3.830846
| 0.159204
| 0.071429
| 0.058442
| 0.038961
| 0.918182
| 0.897403
| 0.871429
| 0.871429
| 0.871429
| 0.871429
| 0
| 0.038845
| 0.334659
| 3,018
| 97
| 90
| 31.113402
| 0.728088
| 0.060305
| 0
| 0.869565
| 0
| 0
| 0.014867
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.057971
| false
| 0
| 0.043478
| 0
| 0.15942
| 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
|
0b129649c390f2b3b414c0c7b92803b4daa9c400
| 2,094
|
py
|
Python
|
test/functions/decorators2.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1,482
|
2015-10-16T21:59:32.000Z
|
2022-03-30T11:44:40.000Z
|
test/functions/decorators2.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 226
|
2015-10-15T15:53:44.000Z
|
2022-03-25T03:08:27.000Z
|
test/functions/decorators2.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 129
|
2015-10-20T02:41:49.000Z
|
2022-03-22T01:44:36.000Z
|
@ f . bar . a . b
def foo(): pass
@ : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python, source.python
: meta.function.decorator.python, source.python
f : entity.name.function.decorator.python, meta.function.decorator.python, source.python
: meta.function.decorator.python, source.python
. : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.separator.period.python, source.python
: meta.function.decorator.python, source.python
bar : entity.name.function.decorator.python, meta.function.decorator.python, source.python
: meta.function.decorator.python, source.python
. : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.separator.period.python, source.python
: meta.function.decorator.python, source.python
a : entity.name.function.decorator.python, meta.function.decorator.python, source.python
: meta.function.decorator.python, source.python
. : entity.name.function.decorator.python, meta.function.decorator.python, punctuation.separator.period.python, source.python
: meta.function.decorator.python, source.python
b : entity.name.function.decorator.python, meta.function.decorator.python, source.python
def : meta.function.python, source.python, storage.type.function.python
: meta.function.python, source.python
foo : entity.name.function.python, meta.function.python, source.python
( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python
) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python
: : meta.function.python, punctuation.section.function.begin.python, source.python
: source.python
pass : keyword.control.flow.python, source.python
| 72.206897
| 141
| 0.699618
| 229
| 2,094
| 6.39738
| 0.117904
| 0.245734
| 0.361092
| 0.276451
| 0.892833
| 0.840273
| 0.840273
| 0.792491
| 0.792491
| 0.792491
| 0
| 0
| 0.191022
| 2,094
| 28
| 142
| 74.785714
| 0.864817
| 0
| 0
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.08
| 0
| null | null | 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 11
|
9bf634b58e11c4cb3b88fcfc9cccb9d2831a2122
| 4,211
|
py
|
Python
|
gpstrack/tracks/tests/test_views.py
|
ETinLV/gpstrack
|
21991d3977c9692b92ddd3d95d4b6cd0ed8ccd9f
|
[
"MIT"
] | null | null | null |
gpstrack/tracks/tests/test_views.py
|
ETinLV/gpstrack
|
21991d3977c9692b92ddd3d95d4b6cd0ed8ccd9f
|
[
"MIT"
] | null | null | null |
gpstrack/tracks/tests/test_views.py
|
ETinLV/gpstrack
|
21991d3977c9692b92ddd3d95d4b6cd0ed8ccd9f
|
[
"MIT"
] | null | null | null |
import json
from django.urls import reverse
from model_mommy import mommy
from test_plus.test import TestCase
from config.settings.base import GOOGLE_API_KEY
class UserMapViewTest(TestCase):
def setUp(self):
self.point = mommy.make('tracks.point')
self.url = reverse('tracks:user_map', kwargs={'map_name': self.point.track.user.username})
def test_MapView(self):
response = self.client.get(self.url)
assert 200 == response.status_code
assert response.context_data['map_name'] == self.point.track.user.username
assert response.context_data['api_key'] == GOOGLE_API_KEY
class TrackListTest(TestCase):
def setUp(self):
self.track = mommy.make('tracks.track')
self.url = reverse('tracks:api.track_list', kwargs={'map_name': self.track.user.username})
def test_track_list_get(self):
response = self.client.get(self.url)
assert 200 == response.status_code
class TrackDetailTest(TestCase):
def setUp(self):
self.user = self.make_user()
self.track = mommy.make('tracks.track', user=self.user)
self.url = reverse('tracks:api.track_detail',
kwargs={'map_name': self.user.username, 'pk': self.track.pk})
def test_track_detail_get(self):
response = self.client.get(self.url)
assert 200 == response.status_code
def test_track_detail_authorized_patch(self):
self.client.login(username=self.user.username, password='password')
request = self.client.patch(self.url, data=json.dumps({'name': 'Updated name'}),
content_type='application/json')
assert 200 == request.status_code
def test_track_detail_authorized_delete(self):
self.client.login(username=self.user.username, password='password')
request = self.client.delete(self.url)
assert 204 == request.status_code
def test_track_detail_unauthorized_patch(self):
request = self.client.patch(self.url, data=json.dumps({'name': 'Updated name'}),
content_type='application/json')
assert 403 == request.status_code
def test_track_detail_unauthorized_delete(self):
request = self.client.delete(self.url)
assert 403 == request.status_code
class PointListTest(TestCase):
def setUp(self):
self.track = mommy.make('tracks.track')
self.point = mommy.make('tracks.point', track=self.track)
self.url = reverse('tracks:api.point_list',
kwargs={'map_name': self.track.user.username, 'track_pk': self.track.pk})
def test_point_list_get(self):
response = self.client.get(self.url)
assert 200 == response.status_code
class PointDetailTest(TestCase):
def setUp(self):
self.user = self.make_user()
self.track = mommy.make('tracks.track', user=self.user)
self.point = mommy.make('tracks.point', track=self.track)
self.url = reverse('tracks:api.point_detail',
kwargs={'map_name': self.user.username, 'pk': self.point.pk})
def test_point_detail_get(self):
response = self.client.get(self.url)
assert 200 == response.status_code
def test_point_detail_authorized_patch(self):
self.client.login(username=self.user.username, password='password')
request = self.client.patch(self.url, data=json.dumps({'description': 'Updated Desc'}),
content_type='application/json')
assert 200 == request.status_code
def test_point_detail_authorized_delete(self):
self.client.login(username=self.user.username, password='password')
request = self.client.delete(self.url)
assert 204 == request.status_code
def test_point_detail_unauthorized_patch(self):
request = self.client.patch(self.url, data=json.dumps({'description': 'Updated Desc'}),
content_type='application/json')
assert 403 == request.status_code
def test_point_detail_unauthorized_delete(self):
request = self.client.delete(self.url)
assert 403 == request.status_code
| 39.35514
| 100
| 0.657326
| 524
| 4,211
| 5.120229
| 0.124046
| 0.046962
| 0.043608
| 0.05069
| 0.863958
| 0.851286
| 0.809914
| 0.777861
| 0.74208
| 0.711517
| 0
| 0.011919
| 0.222987
| 4,211
| 106
| 101
| 39.726415
| 0.808068
| 0
| 0
| 0.580247
| 0
| 0
| 0.101639
| 0.020898
| 0
| 0
| 0
| 0
| 0.185185
| 1
| 0.222222
| false
| 0.049383
| 0.061728
| 0
| 0.345679
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ac987caf3b7ccd86eac2427e3df6badd8ab4ce3b
| 5,406
|
py
|
Python
|
workflow_lib/septwq.py
|
VUB-HYDR/2018_Chawanda_etal
|
46af26916806e2f61fd48d777f88b04da7fffbbe
|
[
"MIT"
] | 14
|
2018-09-27T16:03:10.000Z
|
2021-04-15T06:09:21.000Z
|
workflow_lib/septwq.py
|
VUB-HYDR/2018_Chawanda_etal
|
46af26916806e2f61fd48d777f88b04da7fffbbe
|
[
"MIT"
] | 2
|
2019-10-24T14:03:41.000Z
|
2019-10-31T22:10:19.000Z
|
workflow_lib/septwq.py
|
VUB-HYDR/2018_Chawanda_etal
|
46af26916806e2f61fd48d777f88b04da7fffbbe
|
[
"MIT"
] | 7
|
2018-11-14T19:42:59.000Z
|
2021-08-16T07:09:50.000Z
|
import cj_function_lib as cj
import init_file as variables
septwq = """ !!Variablesinorder: idspttype (Septic type (1-conventional,2-advanced,3-failing)
Q,BOD,TSS,TN,NH4,N03,NO2,OrgN,TP,Po4,
Org P,F.Coli
1 2 3 4 5 6 7 8
1 COND Conventional Drainfield 1
0.227 170.000 75.000 60.000 58.000 0.200 0.000 14.000 10.000 9.000
1.000 10000000.0
2 SAS1 Septic w/SAS 2
0.227 170.000 75.000 70.000 60.000 0.000 0.000 10.000 10.000 8.500
1.500 10000000.0
3 SAS2 Septic w/SAS 2
0.227 170.000 75.000 70.000 0.000 0.000 0.000 0.000 10.000 9.000
1.000 10000000.0
4 SAS3 Septic w/in-tank N removal and SAS 2
0.227 170.000 80.000 20.000 0.000 20.000 0.000 0.000 10.000 8.500
1.500 1000000.0
5 SAS4 Septic tank w/effluent N removal and recycle 2
0.227 100.000 65.000 20.000 0.000 0.000 0.000 10.000 0.000 8.500
1.500 10000000.0
6 SAS5 Septic w/corrugated plastic trickling filter 2
0.227 20.000 10.000 7.700 2.400 7.100 0.000 0.000 0.000 0.000
0.000 0.0
7 SAS6 Septic w/single pass sand filter 2
0.227 18.000 17.000 11.000 5.600 4.100 0.000 1.300 0.000 0.000
0.000 0.0
8 SPF1 Single pass sand filter 2
0.227 3.500 2.000 38.000 0.000 0.000 0.000 0.000 0.000 0.000
0.000 360.0
9 SPF2 Single pass sand filter 2
0.227 3.200 9.000 30.000 0.000 0.000 0.000 0.000 0.000 0.000
0.000 407.0
10 SPF3 Single pass sand filter 2
0.227 4.000 17.000 37.500 0.000 0.000 0.000 14.100 12.000 12.000
2.100 862.0
11 SPF4 Single pass sand filter 2
0.227 75.100 29.100 15.500 10.600 0.300 0.000 4.600 0.000 0.000
0.000 0.0
12 RCF1 At grade recirculating sand filter 2
0.227 3.500 3.500 13.500 0.000 0.000 0.000 0.000 0.000 0.000
0.000 2920.0
13 RCF2 Maryland style RSF 2
0.227 5.000 6.500 30.500 0.000 0.000 0.000 0.000 0.000 0.000
0.000 3030.0
14 RCF3 Recirulating sand filter 2
0.227 11.500 13.500 26.500 5.500 29.000 0.000 0.000 0.000 0.000
0.900 57000.0
15 CWT1 Septic tank w/constructed wetland and surface water discharge 2
0.227 26.500 12.000 38.000 0.000 0.000 0.000 0.000 0.750 0.000
0.110 968.0
16 CWT2 Municipal wastewater w/constructed wetland and surface water discharge 2
0.227 27.000 15.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
0.000 0.0
17 CWT3 Municipal wastewater w/constructed wetland and surface water discharge 2
0.227 0.000 4.200 0.000 0.860 0.000 0.000 0.000 0.240 0.000
0.040 77.0
18 CWT4 Municipal wastewater w/constructed wetland 2
0.227 7.500 14.000 0.000 3.290 0.000 0.000 0.000 0.000 0.000
0.000 0.0
19 CWT5 Municipal wastewater w/lagoon and constructed wetland 2
0.227 1.700 9.500 0.000 1.980 0.000 0.000 0.000 0.000 0.000
0.000 0.0
20 BFL1 Waterloo biofilter (plastic media) 2
0.227 28.500 18.500 58.000 0.000 0.000 0.000 0.000 0.000 0.000
0.000 0.0
21 BFL2 Waterloo biofilter (plastic media) 2
0.227 16.000 5.000 0.000 10.200 5.700 0.000 0.000 0.000 0.000
0.000 190000.0
22 BFL3 Peat biofilter 2
0.227 4.500 6.500 2.500 1.000 20.000 0.000 0.000 0.000 0.000
0.450 945.0
23 TXF1 Recirulating textile filter 2
0.227 27.500 16.000 26.500 0.000 0.000 0.000 0.000 0.000 0.000
0.000 50790.0
24 TXF2 Foam or textile filter effluent 2
0.227 10.000 7.500 45.000 0.000 0.000 0.000 0.000 0.000 0.000
0.000 505.0
25 GFL1 Septic, recirculating gravel filter, UV disinfection 2
0.227 25.000 4.900 0.400 0.000 12.200 0.000 0.000 0.000 0.000
0.000 7.3
26 FSPT Texas A&M reference 3
0.227 250.000 700.000 40.000 25.000 0.000 0.000 25.000 12.000 10.000
2.000 10000000.0
"""
fileName = "septwq.dat"
cj.write_to(variables.DefaultSimDir + "TxtInOut\\" + fileName, septwq)
#print fileName
| 60.066667
| 94
| 0.469478
| 889
| 5,406
| 2.850394
| 0.206974
| 0.211523
| 0.312155
| 0.303078
| 0.5
| 0.460142
| 0.448698
| 0.3382
| 0.30663
| 0.269929
| 0
| 0.500172
| 0.460784
| 5,406
| 90
| 95
| 60.066667
| 0.369125
| 0.00259
| 0
| 0.126437
| 0
| 0.298851
| 0.971625
| 0.013724
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.057471
| 0.022989
| 0
| 0.022989
| 0
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
acb24e20795dac453f86faa02ee0ad72bf95e265
| 73,831
|
py
|
Python
|
src_dataset/dataset_hollow.py
|
jamesrchen/Combinatorial-3D-Shape-Generation
|
0f2dc9a4c6f5844cbce53fe4f2b7244cadf6231e
|
[
"MIT"
] | null | null | null |
src_dataset/dataset_hollow.py
|
jamesrchen/Combinatorial-3D-Shape-Generation
|
0f2dc9a4c6f5844cbce53fe4f2b7244cadf6231e
|
[
"MIT"
] | null | null | null |
src_dataset/dataset_hollow.py
|
jamesrchen/Combinatorial-3D-Shape-Generation
|
0f2dc9a4c6f5844cbce53fe4f2b7244cadf6231e
|
[
"MIT"
] | null | null | null |
from geometric_primitives import brick
from geometric_primitives import bricks
import dataset_common
def square_hollow(w, h):
bricks_ = bricks.Bricks(200)
list_brick_ = []
w_total = 2 * w - 1
w_last = 2 * w_total
for i in range(w_total):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(w_total):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * w_last - 1, i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(w_total):
brick_ = brick.Brick()
brick_.set_position([i * 2, w_last, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
if h != 2:
additional_ = h - 2
for i in range(w):
for j in range(2):
for k in range(additional_):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * w_last, 5 + k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(w - 1):
for j in range(2):
for k in range(additional_):
brick_ = brick.Brick()
brick_.set_position([j * w_last - 1, i * 4 + 3, 5 + k])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_1():
bricks_ = bricks.Bricks(40)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 1, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 3, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 5, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 0, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 6, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([4, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([4, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([6, 0, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([6, 6, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([7, 1, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([7, 5, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([7, 3, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
'''
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2 - 1, 1, 2])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2 - 1, 5, 2])
brick_.set_direction(0)
list_brick_.append(brick_)
'''
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_2():
bricks_ = bricks.Bricks(40)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 1, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 3, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 5, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 0, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 6, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([4, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([4, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, 1, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, 5, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, 3, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
'''
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2 - 1, 1, 2])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2 - 1, 5, 2])
brick_.set_direction(0)
list_brick_.append(brick_)
'''
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-2, 0, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-2, 4, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([1, -1, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, -1, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([6, 2, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([6, 6, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 7, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([3, 7, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_3():
bricks_ = bricks.Bricks(100)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([-2 + (i % 2 == 1), i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([1, i * 8 - 1, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([4, i * 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([5, i * 8 - 1, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([7, i * 4 + 1, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 1, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 2, j * 10 -2, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-3, i * 4 + 1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([9, i * 4 - 1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 3, 9, 6])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([-4, i * 4 - 2 , 6])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 1, -3 , 6])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([10, i * 4 - 2, 6])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_4():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([0, i * 4 + 4, 5 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, 1, 5 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 3, 9, 5 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 2, 5 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 0, 7])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 7 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 7 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 7 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 7 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([0, i * 4 + 4, 9 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, 1, 9 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 3, 9, 9 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 2, 9 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 0, 11])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 11 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 11 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 11 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 11 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_5():
bricks_ = bricks.Bricks(100)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([-2 + (i % 2 == 1), i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([1, i * 8 - 1, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([4, i * 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([5, i * 8 - 1, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([7, i * 4 + 1, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 1, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 2, j * 10 -2, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-3, i * 4 + 1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([9, i * 4 - 1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, j * 8 - 1, 2])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 2, j * 4 + 1, 2])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 2, j * 10 -2, 1])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-3, i * 4 + 1, 1])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([9, i * 4 - 1, 1])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_6():
bricks_ = bricks.Bricks(100)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1 - (i % 2 == 1), i * 2 + 1, 4 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-2, -1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2 -1, 4, 4 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([12 - (i % 2 == 1), 3 - i * 2,5 - (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([10, i * 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2 -1, -2, 4 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_7():
bricks_ = bricks.Bricks(100)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1 - (i % 2 == 1), i * 2 + 1, 4 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-2, -1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2 -1, 4, 4 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([12 - (i % 2 == 1), 3 - i * 2,5 - (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([10, i * 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
'''
brick_ = brick.Brick()
brick_.set_position([-1, -3, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
'''
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1 - (i % 2 == 1), -3 - i * 2, 4 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([11 + (i % 2 == 1), -3 - i * 2, 4 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([0, -2 - i * 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([10, -2 - i * 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2 -1, -6, 4 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_8():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 1, j * 4 + 1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 2, j * 10, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([0, i * 4 + 4, 6 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, 1, 6 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 3, 9, 6 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 2, 6 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([0, i * 4 + 4, 2 - j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, 1, 2 - j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 3, 9, 2 - j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 2, 2 - j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([4, i * 6 + 2, 0])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 + 1, j * 4 + 3, 0])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([4, i * 6 + 2, 8])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 + 1, j * 4 + 3, 8])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_9():
bricks_ = bricks.Bricks(200)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2, 14, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([13, 13 - i * 2, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(6):
brick_ = brick.Brick()
brick_.set_position([12 - i * 2, 0, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(6):
brick_ = brick.Brick()
brick_.set_position([i * 14 - 1, j * 2 + 2, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2 + 2, j * 14, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 0, 6])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 6 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2, 14, 6 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([13, 13 - i * 2, 6 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(6):
brick_ = brick.Brick()
brick_.set_position([12 - i * 2, 0, 6 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(6):
brick_ = brick.Brick()
brick_.set_position([i * 14 - 1, j * 2 + 2, 8])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2 + 2, j * 14, 8])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 0, 9])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 9 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2, 14, 9 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([13, 13 - i * 2, 9 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(6):
brick_ = brick.Brick()
brick_.set_position([12 - i * 2, 0, 9 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(6):
brick_ = brick.Brick()
brick_.set_position([i * 14 - 1, j * 2 + 2, 11])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2 + 2, j * 14, 11])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 0, 12])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 12 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2, 14, 12 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([13, 13 - i * 2, 12 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(6):
brick_ = brick.Brick()
brick_.set_position([12 - i * 2, 0, 12 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_10():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(3):
for k in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 1, j * 4 + 1, 5 + k])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 2, j * 10, 5 + k])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 0, 10])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 10 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 10 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 10 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 10 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_11():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 10, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 1, j * 4 + 3, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_12():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 6, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([5, 5 - i * 2, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([4 - i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1, j * 4 + 1, 4 - k])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(4):
brick_ = brick.Brick()
brick_.set_position([2, i * 6, 4 - j])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_13():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_13():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2, 4, 5 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, 3 - i * 2, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 0, 6])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([0, 0, 4 - i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([-1, 3, 4 - i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([2, 4, 4 - i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([3, 1, 4 - i])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_14():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 10 - 1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_15():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 6 - 1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1, 5, 7 - 3 * j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 6 + 2, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_16():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 6 - 1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 6, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 2, j * 8 - 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(3):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 3, j * 2 + 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_17():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, i * 2 + 1, 5 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2, 4, 5 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 1, j * 6 - 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 2, 2, 7 - 3 * j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([0, 0, 8 - 5 * i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, 3, 8 - 5 * i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([2, 4, 8 - 5 * i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, 1, 8 - 5 * i])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_18():
bricks_ = bricks.Bricks(100)
list_brick_ = []
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 6 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 14 - 1, i * 2 + 1, 6 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2, 14, 6 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 14, 8 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(6):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 12, j * 2 + 2, 8 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_19():
bricks_ = bricks.Bricks(100)
list_brick_ = []
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 6 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 6 - 1, i * 2 + 1, 6 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 14, 6 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_20():
bricks_ = bricks.Bricks(100)
list_brick_ = []
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([7, i * 2 + 1, 3 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 8, 3 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([7, i * 2 + 1, 5 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 8, 5 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 7 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 7 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([7, i * 2 + 1, 7 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 8, 7 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 9 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 9 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([7, i * 2 + 1, 9 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([i * 2, 8, 9 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_21():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 6 - 1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1, 5, 7 - 3 * j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 6 + 2, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 6 + 2, 8 - 5 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_22():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, i * 2 + 1, 5 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2, 4, 5 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 1, j * 6 - 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 2, 2, 7 - 3 * j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([0, 0, 8 - 5 * i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, 3, 8 - 5 * i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([2, 4, 8 - 5 * i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, 1, 8 - 5 * i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([0, 0, 9 - 7 * i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, 3, 9 - 7 * i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([2, 4, 9 - 7 * i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, 1, 9 - 7 * i])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_23():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 6 - 1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 6, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 2, j * 8 - 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(3):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 3, j * 2 + 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 , j * 6, 8])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1, 3, 8])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_24():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
brick_ = brick.Brick()
brick_.set_position([9, 9 - i * 2, 3 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([8 - i * 2, 0, 3 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 1, j * 4 + 1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 2, j * 10, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([0, i * 4 + 4, 6 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, 1, 6 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 3, 9, 6 + j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 2, 6 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([0, i * 4 + 4, 2 - j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, 1, 2 - j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 3, 9, 2 - j])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 2, 2 - j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([4, i * 6 + 2, 0])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 + 1, j * 4 + 3, 0])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([4, i * 6 + 2, 8])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 + 1, j * 4 + 3, 8])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([0, i * 4 + 4, 9])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 1, 1, 9])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 + 3, 9, 9])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([8, i * 4 + 2, 9])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_25():
bricks_ = bricks.Bricks(60)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 1, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 3, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 5, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 0, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 6, 4])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([4, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([4, 6, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, 1, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, 5, 4])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, 3, 3])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-2, 0, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-2, 4, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([1, -1, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([5, -1, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([6, 2, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([6, 6, i + 5])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-1, 7, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([3, 7, i + 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 6, 2 - k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1, 3, 2])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_26():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2, 4, 5 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, 3 - i * 2, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 0, 6])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([-1, 1, 7 + i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([2, 0, 7 + i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([0, 4, 7 + i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([3, 3, 7 + i])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_27():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(5):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 6 - 1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 10, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1, 5, 7 - 3 * j])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 6 + 2, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4, j * 6 + 2, 8 + k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1, 5, 8 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_28():
bricks_ = bricks.Bricks(150)
list_brick_ = []
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 0, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([j * 6 - 1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([i * 2, 6, 5 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 2, j * 8 - 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(3):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 10 - 3, j * 2 + 1, 7 - 3 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
for k in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 , j * 6, 8 - 5 * k])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 1 , 3, 8 - 5 * j])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_29():
bricks_ = bricks.Bricks(150)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1, i * 2 + 1, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 2, 4, 5 + (i % 2 == 0)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([3, 3 - i * 2, 5 + (i % 2 == 0)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([2, 0, 6])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([-1, 1, 7 + i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([2, 0, 7 + i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([0, 4, 7 + i])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(4):
brick_ = brick.Brick()
brick_.set_position([3, 3, 7 + i])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 4 - 1, j * 6 - 1, 11])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 6 - 2, 2, 11 + j])
brick_.set_direction(0)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
def hollow_30():
bricks_ = bricks.Bricks(100)
list_brick_ = []
brick_ = brick.Brick()
brick_.set_position([0, 0, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([-1 - (i % 2 == 1), i * 2 + 1, 4 + (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([0, 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
brick_ = brick.Brick()
brick_.set_position([-2, -1, 5])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2 -1, 4, 4 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(3):
brick_ = brick.Brick()
brick_.set_position([12 - (i % 2 == 1), 3 - i * 2,5 - (i % 2 == 1)])
brick_.set_direction(0)
list_brick_.append(brick_)
for i in range(2):
brick_ = brick.Brick()
brick_.set_position([10, i * 2, 3])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(7):
brick_ = brick.Brick()
brick_.set_position([i * 2 -1, -2, 4 + (i % 2 == 1)])
brick_.set_direction(1)
list_brick_.append(brick_)
for i in range(2):
for j in range(2):
brick_ = brick.Brick()
brick_.set_position([i * 8 + 1, j * 2, 5])
brick_.set_direction(1)
list_brick_.append(brick_)
for brick_ in list_brick_:
bricks_.add(brick_)
return bricks_
if __name__ == '__main__':
list_bricks_ = [
hollow_1(),
hollow_2(),
hollow_3(),
hollow_4(),
hollow_5(),
hollow_6(),
hollow_7(),
hollow_8(),
hollow_9(),
hollow_10(),
hollow_11(),
hollow_12(),
hollow_13(),
hollow_14(),
hollow_15(),
hollow_16(),
hollow_17(),
hollow_18(),
hollow_19(),
hollow_20(),
hollow_21(),
hollow_22(),
hollow_23(),
hollow_24(),
hollow_25(),
hollow_26(),
hollow_27(),
hollow_28(),
hollow_29(),
hollow_30(),
]
dataset_common.create_bricks(list_bricks_, dataset_common.STR_LABEL_HOLLOW)
| 28.672233
| 79
| 0.519985
| 9,899
| 73,831
| 3.547025
| 0.007172
| 0.333789
| 0.346036
| 0.255183
| 0.983595
| 0.983197
| 0.981744
| 0.981573
| 0.981288
| 0.981118
| 0
| 0.055437
| 0.351573
| 73,831
| 2,574
| 80
| 28.683372
| 0.677988
| 0
| 0
| 0.906067
| 0
| 0
| 0.00011
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.015656
| false
| 0
| 0.001468
| 0
| 0.032779
| 0
| 0
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
acbec6f0c0378f23bd7265cda601d41964069910
| 396
|
py
|
Python
|
pajbot/tests/test_fill_in_url_scheme.py
|
KasperHelsted/pajbot
|
c366dcfc5e6076f9adcfce24c7a666653068b031
|
[
"MIT"
] | null | null | null |
pajbot/tests/test_fill_in_url_scheme.py
|
KasperHelsted/pajbot
|
c366dcfc5e6076f9adcfce24c7a666653068b031
|
[
"MIT"
] | null | null | null |
pajbot/tests/test_fill_in_url_scheme.py
|
KasperHelsted/pajbot
|
c366dcfc5e6076f9adcfce24c7a666653068b031
|
[
"MIT"
] | 1
|
2020-03-11T19:37:10.000Z
|
2020-03-11T19:37:10.000Z
|
from pajbot.apiwrappers import fill_in_url_scheme
def test_fills_in_relative_url():
assert fill_in_url_scheme("//example.com") == "https://example.com"
def test_respects_passed_scheme():
assert fill_in_url_scheme("//example.com", "wss") == "wss://example.com"
def test_does_not_change_non_relative_urls():
assert fill_in_url_scheme("http://example.com") == "http://example.com"
| 28.285714
| 76
| 0.747475
| 59
| 396
| 4.59322
| 0.423729
| 0.221402
| 0.132841
| 0.221402
| 0.306273
| 0.228782
| 0.228782
| 0
| 0
| 0
| 0
| 0
| 0.103535
| 396
| 13
| 77
| 30.461538
| 0.76338
| 0
| 0
| 0
| 0
| 0
| 0.255051
| 0
| 0
| 0
| 0
| 0
| 0.428571
| 1
| 0.428571
| true
| 0.142857
| 0.142857
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 0
| 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
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
acee8e33e3b771605ab03d0ee63590482a0ce8ac
| 58,685
|
py
|
Python
|
src/pycropml/transpiler/generators/siriusGenerator.py
|
brichet/PyCrop2ML
|
7177996f72a8d95fdbabb772a16f1fd87b1d033e
|
[
"MIT"
] | 5
|
2020-06-21T18:58:04.000Z
|
2022-01-29T21:32:28.000Z
|
src/pycropml/transpiler/generators/siriusGenerator.py
|
brichet/PyCrop2ML
|
7177996f72a8d95fdbabb772a16f1fd87b1d033e
|
[
"MIT"
] | 27
|
2018-12-04T15:35:44.000Z
|
2022-03-11T08:25:03.000Z
|
src/pycropml/transpiler/generators/siriusGenerator.py
|
brichet/PyCrop2ML
|
7177996f72a8d95fdbabb772a16f1fd87b1d033e
|
[
"MIT"
] | 7
|
2019-04-20T02:25:22.000Z
|
2021-11-04T07:52:35.000Z
|
# coding: utf8
from pycropml.transpiler.codeGenerator import CodeGenerator
from pycropml.transpiler.rules.csharpRules import CsharpRules
from pycropml.transpiler.generators.docGenerator import DocGenerator
from pycropml.transpiler.pseudo_tree import Node
import os
from path import Path
from pycropml.transpiler.Parser import parser
from pycropml.transpiler.ast_transform import AstTransformer, transform_to_syntax_tree
from pycropml import code2nbk
from pycropml.transpiler.generators.csharpGenerator import CsharpGenerator, CsharpTrans,CsharpCompo
category = {"state":"s", "rate":"r", "auxiliary":"a", "exogenous":"ex"}
param_datatype ={"STRING":"String",
"INT":"Integer",
"DOUBLE":"Double",
"BOOLEAN":"Boolean",
"DATE":"Date",
"DATELIST":"ListDate",
"STRINGLIST": "ListString",
"DOUBLELIST": "ListDouble",
"INTLIST": "ListInteger",
"BOOLEANLIST": "ListBoolean"}
def getdefault(x):
if "default" in dir(x):
if x.datatype == "STRING": return '"%s"'%x.default if x.default is not None else "-1D"
elif x.datatype == "BOOLEAN": return x.default.lower() if x.default is not None else "-1D"
elif x.datatype in ("DATE", "DATELIST"): return "-1D"
elif x.datatype.endswith("LIST"): return x.default if x.default is not None else "-1D"
else: return x.default if x.default is not None else "-1D"
else: return "-1D"
class SiriusGenerator(CsharpGenerator):
""" This class contains the specific properties of
SQ components and use the NodeVisitor to generate a csharp
code source from a well formed syntax tree based on BioMa structure.
"""
def __init__(self, tree=None, model=None, name=None):
self.tree = tree
self.model=model
self.name = name
self.indent_with=' '*4
CsharpGenerator.__init__(self, tree, model, name)
self.usingBioma()
def usingBioma(self):
self.write("""
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using CRA.ModelLayer.MetadataTypes;
using CRA.ModelLayer.Core;
using CRA.ModelLayer.Strategy;
using System.Reflection;
using VarInfo=CRA.ModelLayer.Core.VarInfo;
using Preconditions=CRA.ModelLayer.Core.Preconditions;
using CRA.AgroManagement;
""")
def desc(self,node, n, inp, vartype) :
self.write("PropertyDescription pd%s = new PropertyDescription();"%n)
self.newline(node)
self.write("pd%s.DomainClassType = typeof(SiriusQuality%s.DomainClass.%s%s);"%(n, self.name,self.name,inp.variablecategory.capitalize()))
self.newline(node)
self.write('pd%s.PropertyName = "%s";'%(n,inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('pd%s.PropertyType = (SiriusQuality%s.DomainClass.%s%sVarInfo.%s).ValueType.TypeForCurrentValue;'%(n, self.name,self.name, inp.variablecategory.capitalize(),inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('pd%s.PropertyVarInfo =(SiriusQuality%s.DomainClass.%s%sVarInfo.%s);'%(n,self.name,self.name, inp.variablecategory.capitalize(),inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('%s.Add(pd%s);'%(vartype, n))
def inOutputDesc(self, node):
self.newline(node)
self.write("ModellingOptions mo0_0 = new ModellingOptions();")
self.newline(node)
self.write("//Parameters")
self.newline(node)
self.write("List<VarInfo> _parameters0_0 = new List<VarInfo>();")
self.newline(node)
n = 1
for p in self.model.parameters:
self.write("VarInfo v%s = new VarInfo();"%n)
self.newline(node)
self.write("v%s.DefaultValue = %s;"%(n, getdefault(p)))
self.newline(node)
self.write('v%s.Description = "%s";'%(n,p.description))
self.newline(node)
self.write("v%s.Id = 0;"%n)
self.newline(node)
self.write("v%s.MaxValue = %s;"%(n, p.max if p.max is not None else getdefault(p)))
self.newline(node)
self.write("v%s.MinValue = %s;"%(n, p.min if p.min is not None else getdefault(p)))
self.newline(node)
self.write('v%s.Name = "%s";'%(n, p.name))
self.newline(node)
self.write("v%s.Size = 1;"%n)
self.newline(node)
self.write('v%s.Units = "%s";'%(n, p.unit if ("unit" in dir(p) and p.unit is not None) else "dimensionless"))
self.newline(node)
self.write('v%s.URL = "%s";'%(n, p.url if ("url" in dir(p) and p.url is not None) else ""))
self.newline(node)
self.write("v%s.VarType = CRA.ModelLayer.Core.VarInfo.Type.PARAMETER;"%n)
self.newline(node)
self.write('v%s.ValueType = VarInfoValueTypes.GetInstanceForName("%s");'%(n, param_datatype[p.datatype]))
self.newline(node)
self.write("_parameters0_0.Add(v%s);"%n)
self.newline(node)
n = n+1
self.write("mo0_0.Parameters=_parameters0_0;")
n = 1
self.newline(extra=1)
self.write("//Inputs")
self.newline(node)
self.write("List<PropertyDescription> _inputs0_0 = new List<PropertyDescription>();"%())
self.newline(node)
for inp in self.model.inputs:
if inp.name not in self.modparam :
self.desc(node,n,inp, "_inputs0_0")
self.write("")
self.newline(node)
n = n+1
self.write("mo0_0.Inputs=_inputs0_0;")
self.newline(extra=1)
self.write("//Outputs")
self.newline(node)
self.write("List<PropertyDescription> _outputs0_0 = new List<PropertyDescription>();")
self.newline(node)
for out in self.model.outputs:
if out.name not in self.modparam :
self.desc(node,n,out,"_outputs0_0")
self.newline(node)
n = n+1
self.write("mo0_0.Outputs=_outputs0_0;")
self.newline(node)
self.otherDesc(node)
self.newline(extra=1)
def otherDesc(self,node):
self.write("//Associated strategies")
self.newline(node)
self.write('List<string> lAssStrat0_0 = new List<string>();')
self.newline(node)
self.write("mo0_0.AssociatedStrategies = lAssStrat0_0;")
self.newline(node)
self.write("//Adding the modeling options to the modeling options manager")
self.newline(node)
self.write("_modellingOptionsManager = new ModellingOptionsManager(mo0_0);")
self.newline(node)
self.write("SetStaticParametersVarInfoDefinitions();")
self.newline(node)
self.write("SetPublisherData();")
self.newline(extra=1)
def description(self, node):
self.write("public string Description")
self.open(node)
self.write('get { return "%s" ;}'%self.model.description.Abstract.replace("\n", ""))
self.close(node)
self.newline(extra=1)
def url(self, node):
self.write("public string URL")
self.open(node)
self.write('get { return "%s" ;}'%(self.model.description.url if "url" in dir(self.model.description) else ""))
self.close(node)
self.newline(extra=1)
def domain(self, node):
self.write("public string Domain")
self.open(node)
self.write('get { return "";}')
self.close(node)
self.newline(extra=1)
def modelType(self, node):
self.write("public string ModelType")
self.open(node)
self.write('get { return "";}')
self.close(node)
self.newline(extra=1)
def isContext(self, node):
self.write("public bool IsContext")
self.open(node)
self.write('get { return false;}')
self.close(node)
self.newline(extra=1)
def isTimeStep(self, node):
self.write("public IList<int> TimeStep")
self.open(node)
self.write("get")
self.open(node)
self.write("IList<int> ts = new List<int>();")
self.newline(node)
self.write("return ts;")
self.close(node)
self.close(node)
self.newline(extra=1)
def publisherdata(self, node):
self.write("private PublisherData _pd;")
self.newline(node)
self.write("public PublisherData PublisherData")
self.open(node)
self.write("get { return _pd;} ")
self.close(node)
self.newline(extra=1)
def SetPublisherData(self, node):
self.write("private void SetPublisherData()")
self.open(node)
self.write("_pd = new CRA.ModelLayer.MetadataTypes.PublisherData();")
self.newline(node)
self.write('_pd.Add("Creator", "%s");'%self.model.description.Authors)
self.newline(node)
self.write('_pd.Add("Date", "");')
self.newline(node)
self.write('_pd.Add("Publisher", "%s");'%self.model.description.Institution)
self.close(node)
self.newline(extra=1)
def getStrategyDomainClassesTypes(self, node):
self.write("public IEnumerable<Type> GetStrategyDomainClassesTypes()")
self.open(node)
self.write("return new List<Type>() { typeof(SiriusQuality%s.DomainClass.%sState), typeof(SiriusQuality%s.DomainClass.%sState), typeof(SiriusQuality%s.DomainClass.%sRate), typeof(SiriusQuality%s.DomainClass.%sAuxiliary), typeof(SiriusQuality%s.DomainClass.%sExogenous)};"%(self.name, self.name,self.name, self.name,self.name, self.name,self.name, self.name,self.name, self.name))
self.close(node)
self.newline(extra=1)
def setParametersDefaultValue(self, node):
self.write("public void SetParametersDefaultValue()")
self.open(node)
self.write("_modellingOptionsManager.SetParametersDefaultValue();")
self.close(node)
self.newline(extra=1)
def varinfodef(self, node, pa):
self.write('%sVarInfo.Name = "%s";'%(pa.name, pa.name)); self.newline(node)
self.write('%sVarInfo.Description = "%s";'%(pa.name, pa.description)); self.newline(node)
self.write('%sVarInfo.MaxValue = %s;'%(pa.name,pa.max if pa.max is not None else getdefault(pa))); self.newline(node)
self.write('%sVarInfo.MinValue = %s;'%(pa.name, pa.min if pa.min is not None else getdefault(pa))); self.newline(node)
self.write('%sVarInfo.DefaultValue = %s;'%(pa.name, getdefault(pa))); self.newline(node)
self.write('%sVarInfo.Units = "%s";'%(pa.name, pa.unit if ("unit" in dir(pa) and pa.unit is not None) else "dimensionless")); self.newline(node)
self.write('%sVarInfo.ValueType = VarInfoValueTypes.GetInstanceForName("%s");'%(pa.name, param_datatype[pa.datatype])); self.newline(node)
def SetStaticParametersVarInfoDefinitions(self, node):
self.write("private static void SetStaticParametersVarInfoDefinitions()")
self.open(node)
for pa in self.model.parameters:
self.newline(extra=1)
self.varinfodef(node, pa)
self.close(node)
self.newline(extra=1)
def staticVarInfo(self, node):
for pa in self.model.parameters:
self.write("private static VarInfo _%sVarInfo = new VarInfo();"%pa.name)
self.newline(node)
self.write("public static VarInfo %sVarInfo"%pa.name)
self.open(node)
self.write("get { return _%sVarInfo;} "%pa.name)
self.close(node)
self.newline(extra=1)
def TestPostConditions(self, node):
self.write("public string TestPostConditions(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex,string callID)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.open(node)
self.write("try")
self.open(node)
self.write("//Set current values of the outputs to the static VarInfo representing the output properties of the domain classes")
for out in self.model.outputs:
self.newline(node)
self.write('SiriusQuality%s.DomainClass.%s%sVarInfo.%s.CurrentValue=%s.%s;'%(self.name, self.name, out.variablecategory.capitalize(),out.name,category[out.variablecategory], out.name))
self.newline(node)
self.write('ConditionsCollection prc = new ConditionsCollection();'); self.newline(node)
self.write('Preconditions pre = new Preconditions(); ' ); self.newline(node)
n = len(self.model.inputs) + 1
for out in self.model.outputs:
self.newline(node)
self.write("RangeBasedCondition r%s = new RangeBasedCondition(SiriusQuality%s.DomainClass.%s%sVarInfo.%s);"%(n,self.name, self.name, out.variablecategory.capitalize(),out.name)); self.newline(node)
self.write("if(r%s.ApplicableVarInfoValueTypes.Contains( SiriusQuality%s.DomainClass.%s%sVarInfo.%s.ValueType)){prc.AddCondition(r%s);}"%(n, self.name, self.name, out.variablecategory.capitalize(), out.name, n)); self.newline(node)
n = n+1
self.write('string postConditionsResult = pre.VerifyPostconditions(prc, callID); if (!string.IsNullOrEmpty(postConditionsResult)) { pre.TestsOut(postConditionsResult, true, "PostConditions errors in strategy " + this.GetType().Name); } return postConditionsResult;')
self.close(node)
self.newline(node)
self.write("catch (Exception exception)");
self.open(node)
self.write('string msg = "SiriusQuality.%s, " + this.GetType().Name + ": Unhandled exception running post-condition test. ";'%self.name); self.newline(node)
self.write('throw new Exception(msg, exception);'); self.newline(node)
self.close(node)
self.close(node)
self.newline(extra=1)
def TestPreConditions(self, node):
self.write("public string TestPreConditions(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex,string callID)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.open(node)
self.write("try")
self.open(node)
self.write("//Set current values of the inputs to the static VarInfo representing the inputs properties of the domain classes")
for inp in self.model.inputs:
if "variablecategory" in dir(inp):
self.newline(node)
self.write('SiriusQuality%s.DomainClass.%s%sVarInfo.%s.CurrentValue=%s.%s;'%(self.name, self.name, inp.variablecategory.capitalize(),inp.name if not inp.name.endswith("_t1") else inp.name[:-3],category[inp.variablecategory], inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('ConditionsCollection prc = new ConditionsCollection();'); self.newline(node)
self.write('Preconditions pre = new Preconditions(); ' ); self.newline(node)
n = 1
for inp in self.model.inputs:
if "variablecategory" in dir(inp):
self.newline(node)
self.write("RangeBasedCondition r%s = new RangeBasedCondition(SiriusQuality%s.DomainClass.%s%sVarInfo.%s);"%(n,self.name, self.name,inp.variablecategory.capitalize(), inp.name if not inp.name.endswith("_t1") else inp.name[:-3])); self.newline(node)
self.write("if(r%s.ApplicableVarInfoValueTypes.Contains( SiriusQuality%s.DomainClass.%s%sVarInfo.%s.ValueType)){prc.AddCondition(r%s);}"%(n, self.name, self.name, inp.variablecategory.capitalize(), inp.name if not inp.name.endswith("_t1") else inp.name[:-3], n)); self.newline(node)
n = n+1
self.newline(node)
for p in self.model.parameters:
self.write('prc.AddCondition(new RangeBasedCondition(_modellingOptionsManager.GetParameterByName("%s")));'%p.name)
self.newline(node)
self.write('string preConditionsResult = pre.VerifyPreconditions(prc, callID); if (!string.IsNullOrEmpty(preConditionsResult)) { pre.TestsOut(preConditionsResult, true, "PreConditions errors in strategy " + this.GetType().Name); } return preConditionsResult;')
self.close(node)
self.newline(node)
self.write("catch (Exception exception)");
self.open(node)
self.write('string msg = "SiriusQuality.%s, " + this.GetType().Name + ": Unhandled exception running pre-condition test. ";'%self.name); self.newline(node)
self.write('throw new Exception(msg, exception);'); self.newline(node)
self.close(node)
self.close(node)
self.newline(extra=1)
def estimate(self, node):
self.write("public void Estimate(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.open(node)
self.write("try")
self.open(node)
self.write("CalculateModel(s, s1, r, a, ex);")
self.close(node)
self.newline(node)
self.write("catch (Exception exception)")
self.open(node)
self.write('string msg = "Error in component SiriusQuality%s, strategy: " + this.GetType().Name + ": Unhandled exception running model. "+exception.GetType().FullName+" - "+exception.Message;'%self.name)
self.newline(node)
self.write('throw new Exception(msg, exception);')
self.close(node)
self.close(node)
self.newline(extra=1)
def get_set_param(self, node):
self.write("// Getter and setters for the value of the parameters of the strategy. The actual parameters are stored into the ModelingOptionsManager of the strategy.\n")
for arg in self.node_param :
self.newline(node)
self.write("public ")
self.visit_decl(arg.pseudo_type)
self.write(' ' +arg.name)
self.open(node)
self.write("get { ")
self.newline(node)
self.indentation += 1
self.write('VarInfo vi= _modellingOptionsManager.GetParameterByName("%s");'%arg.name)
self.newline(node)
self.write("if (vi != null && vi.CurrentValue!=null) return (")
self.visit_decl(arg.pseudo_type)
self.write(")vi.CurrentValue ;")
self.newline(node)
self.write('else throw new Exception("Parameter')
self.write(" '%s' not found (or found null) in strategy '%s'"%(arg.name,self.model.name))
self.write('");')
self.newline(node)
self.indentation -= 1
self.write('} set {')
self.newline(node)
self.indentation += 1
self.write('VarInfo vi = _modellingOptionsManager.GetParameterByName("%s");'%arg.name)
self.newline(node)
self.write('if (vi != null) vi.CurrentValue=value;')
self.newline(node)
self.write('else throw new Exception("Parameter')
self.write(" '%s' not found in strategy '%s'"%(arg.name,self.model.name))
self.write('");')
self.close(node)
self.close(node)
self.newline(extra=1)
def visit_function_definition(self, node):
self.newline(node)
self.funcname = node.name
if (not node.name.startswith("model_") and not node.name.startswith("init_")) :
self.write("public static ")
self.visit_decl(node.return_type) if node.return_type else self.write("void")
self.write(" Main(") if node.name=="main" else self.write(" %s("%node.name)
for i, pa in enumerate(node.params):
self.visit_decl(pa.pseudo_type)
self.write(" %s"%pa.name)
if i!= (len(node.params)-1):
self.write(', ')
self.write(')')
self.open(node)
else:
self.write("private void CalculateModel(") if not node.name.startswith("init_") else self.write("public void Init(")
self.write('SiriusQuality%s.DomainClass.%sState s, SiriusQuality%s.DomainClass.%sState s1, SiriusQuality%s.DomainClass.%sRate r, SiriusQuality%s.DomainClass.%sAuxiliary a, SiriusQuality%s.DomainClass.%sExogenous ex)'%(self.name, self.name,self.name,self.name,self.name, self.name,self.name,self.name, self.name,self.name))
self.open(node)
for arg in self.add_features(node) :
if "feat" in dir(arg):
if arg.feat in ["IN","INOUT"] :
self.newline(node)
if self.model and arg.name not in self.modparam:
self.visit_decl(arg.pseudo_type)
self.write(" ")
self.write(arg.name)
if not node.name.startswith("init_"):
if arg.name in self.states and not arg.name.endswith("_t1") :
self.write(" = s.%s"%arg.name)
if arg.name in self.states and arg.name.endswith("_t1") :
self.write(" = s1.%s"%arg.name[:-3])
if arg.name in self.rates:
self.write(" = r.%s"%arg.name)
if arg.name in self.auxiliary:
self.write(" = a.%s"%arg.name)
if arg.name in self.exogenous:
self.write(" = ex.%s"%arg.name)
else:
if arg.pseudo_type[0] =="list":
self.write(" = new List<%s>()"%(self.types[arg.pseudo_type[1]]))
elif arg.pseudo_type[0] =="array":
self.write(" = new %s[%s]"%(self.types[arg.pseudo_type[1]], arg.elts[0].value if "value" in dir(arg.elts[0]) else arg.elts[0].name))
self.write(";")
self.indentation -= 1
self.body(node.block)
self.newline(node)
self.visit_return(node)
self.close(node)
self.newline(extra=1)
def open(self, node):
self.newline(node)
self.write("{")
self.newline(node)
self.indentation += 1
def close(self, node):
self.newline(node)
self.indentation -= 1
self.write("}")
def visit_module(self, node):
self.write("using SiriusQuality%s.DomainClass;"%self.name)
self.newline(node)
self.write("namespace SiriusQuality%s.Strategies"%self.name)
self.open(node)
self.write("public class %s : IStrategySiriusQuality%s"%(self.model.name, self.name))
self.open(node)
self.write("public %s()"%self.model.name)
self.open(node)
self.inOutputDesc(node)
self.close(node)
self.newline(extra=1)
self.description(node)
self.url(node)
self.domain(node)
self.modelType(node)
self.isContext(node)
self.isTimeStep(node)
self.publisherdata(node)
self.SetPublisherData(node)
self.write("private ModellingOptionsManager _modellingOptionsManager;")
self.newline(node)
self.write("public ModellingOptionsManager ModellingOptionsManager")
self.open(node)
self.write("get { return _modellingOptionsManager; } ")
self.close(node)
self.newline(extra=1)
self.getStrategyDomainClassesTypes(node) ###
self.get_set_param(node) ####
self.setParametersDefaultValue(node) ###
self.SetStaticParametersVarInfoDefinitions(node) ####
self.staticVarInfo(node) ###
self.TestPostConditions(node) ###
self.TestPreConditions(node) ###
self.estimate(node) ###
self.visit(node.body)
self.close(node) #class
self.close(node) #namespace
class SiriusTrans(CsharpTrans):
""" This class used to generates states, rates, auxiliary and exogenous classes
for Sirius.
"""
def __init__(self, models):
self.models = models
CsharpTrans.__init__(self, self.models)
def using(self):
self.write("""
using System;
using System.Collections.Generic;
using CRA.ModelLayer.Core;
using System.Reflection;
using CRA.ModelLayer.ParametersManagement;
""")
def open(self, node):
self.newline(node)
self.write("{")
self.newline(node)
self.indentation += 1
def close(self, node):
self.newline(node)
self.indentation -= 1
self.write("}")
def constr(self, node, typ):
self.write('private ParametersIO _parametersIO;')
self.newline(extra=1)
self.write('public %s()'%typ)
self.open(node)
self.write('_parametersIO = new ParametersIO(this);')
self.close(node)
def copyConstr(self, nodes, typ):
self.write('public %s(%s toCopy, bool copyAll) // copy constructor '%(typ, typ))
self.open(nodes)
self.write('if (copyAll)')
self.open(nodes)
self.copyconstructor(nodes)
self.close(nodes)
self.close(nodes)
self.newline(extra = 1)
def description(self, node, typ):
self.write("public string Description")
self.open(node)
self.write('get { return "%s of the component";}'%typ)
self.close(node)
self.newline(extra=1)
def url(self, node):
self.write("public string URL")
self.open(node)
self.write('get { return "http://" ;}')
self.close(node)
self.newline(extra=1)
def propertiesDescription(self, node):
self.write('public virtual IDictionary<string, PropertyInfo> PropertiesDescription')
self.open(node)
self.write('get { return _parametersIO.GetCachedProperties(typeof(IDomainClass));}')
self.close(node)
self.newline(extra=1)
def clone(self, node):
self.write("public virtual Object Clone()")
self.open(node)
self.write('IDomainClass myclass = (IDomainClass) this.MemberwiseClone();')
self.newline(node)
self.write('_parametersIO.PopulateClonedCopy(myclass);')
self.newline(node)
self.write('return myclass;')
self.close(node)
def clearValue(self, node):
self.write("public virtual Boolean ClearValues()")
self.open(node)
for arg in node:
self.newline(node)
self.write(" _")
self.write(arg.name)
if arg.pseudo_type[0] =="list":
self.write(" = new List<%s>()"%(self.types[arg.pseudo_type[1]]))
elif arg.pseudo_type=="DateTime":
self.write(" = new DateTime()")
elif arg.pseudo_type[0] =="array":
self.write(" = new %s[%s]"%(self.types[arg.pseudo_type[1]], arg.elts[0].value if "value" in dir(arg.elts[0]) else arg.elts[0].name))
elif arg.pseudo_type == "str":
self.write(" = null")
else: self.write(" = default(%s)"%(self.types[arg.pseudo_type]))
self.write(";")
self.newline(node);
self.write("return true;")
self.close(node)
self.newline(extra=1)
def generate(self, nodes, typ, name):
self.using()
self.write("namespace SiriusQuality%s.DomainClass"%name)
self.open(nodes)
self.write("public class %s : ICloneable, IDomainClass"%typ)
self.newline()
self.write("{")
self.indentation += 1
self.newline()
self.private(nodes)
self.newline()
self.constr(nodes, typ) ########### constructor
self.newline(extra = 1)
self.copyConstr(nodes, typ)###### copy constructor
self.getset(nodes)
self.newline(extra=1)
self.description(nodes, typ)
self.url(nodes)
self.propertiesDescription(nodes)
self.clearValue(nodes)
self.clone(nodes)
self.indentation -= 1
self.newline()
self.write('}')
self.close(nodes)
def staticVarInfoDef(self, node):
for n in node:
self.write('static VarInfo _%s = new VarInfo();'%n.name)
self.newline(1)
self.newline(extra = 1)
def varInfoConstrctor(self, node, typ):
self.write("static %sVarInfo()"%typ)
self.open(node)
self.write("%sVarInfo.DescribeVariables();"%typ)
self.close(node)
self.newline(extra = 1)
def infoDescription(self, node, typ):
self.write('public virtual string Description')
self.open(node)
self.write('get { return "%s Domain class of the component";}'%typ)
self.close(node)
self.newline(extra = 1)
def domainClassOfReference(self, node, typ):
self.write('public string DomainClassOfReference')
self.open(node)
self.write('get { return "%s";}'%typ)
self.close(node)
self.newline(extra = 1)
def getVarInfo(self, node):
for n in node:
self.write('public static VarInfo %s'%n.name)
self.open(node)
self.write('get { return _%s;}'%n.name)
self.close(node)
self.newline(extra = 1)
self.newline(extra = 1)
def describeVariables(self, node):
self.write('static void DescribeVariables()')
self.open(node)
for pa in node :
self.write('_%s.Name = "%s";'%(pa.name, pa.name)); self.newline(node)
self.write('_%s.Description = "%s";'%(pa.name, pa.description)); self.newline(node)
self.write('_%s.MaxValue = %s;'%(pa.name,pa.max if ("max" in dir(pa) and pa.max is not None) or pa.max=="" else getdefault(pa))); self.newline(node)
self.write('_%s.MinValue = %s;'%(pa.name, pa.min if ("min" in dir(pa) and pa.min is not None) or pa.min=="" else getdefault(pa))); self.newline(node)
self.write('_%s.DefaultValue = %s;'%(pa.name, getdefault(pa))); self.newline(node)
self.write('_%s.Units = "%s";'%(pa.name, pa.unit if ("unit" in dir(pa) and pa.unit is not None) else "dimensionless")); self.newline(node)
self.write('_%s.ValueType = VarInfoValueTypes.GetInstanceForName("%s");'%(pa.name, param_datatype[pa.datatype])); self.newline(node)
self.newline(extra=1)
self.close(node)
self.newline(extra = 1)
def generateVarInfo(self, nodes, typ, name):
self.using()
self.write("namespace SiriusQuality%s.DomainClass"%name)
self.open(nodes)
self.write('public class %sVarInfo : IVarInfoClass'%typ)
self.open(nodes)
self.staticVarInfoDef(nodes)
self.varInfoConstrctor(nodes, typ)
self.infoDescription(nodes, typ)
self.url(nodes)
self.domainClassOfReference(nodes, typ)
self.getVarInfo(nodes)
self.describeVariables(nodes)
self.close(nodes)
self.close(nodes)
def to_struct_sirius(models, rep, name):
generator = SiriusTrans(models)
generator.model2Node()
def createdc(states, catvar):
generator.result = []
generator.generate(states, "%s%s"%(name,catvar), name)
z= ''.join(generator.result)
filename = Path(os.path.join(rep, "%s%s.cs"%(name, catvar)))
with open(filename, "wb") as tg_file:
tg_file.write(z.encode('utf-8'))
states = generator.node_states
createdc(states,"State")
rates = generator.node_rates
createdc(rates,"Rate")
auxiliary = generator.node_auxiliary
createdc(auxiliary,"Auxiliary")
exogenous = generator.node_exogenous
createdc(exogenous,"Exogenous")
def varinfo(states, catvar):
generator.result = []
generator.generateVarInfo(states, "%s%s"%(name,catvar), name)
z= ''.join(generator.result)
filename = Path(os.path.join(rep, "%s%sVarInfo.cs"%(name, catvar)))
with open(filename, "wb") as tg_file:
tg_file.write(z.encode('utf-8'))
states = generator.states
varinfo(states,"State")
rates = generator.rates
varinfo(rates,"Rate")
auxiliary = generator.auxiliary
varinfo(auxiliary,"Auxiliary")
exogenous = generator.exogenous
varinfo(exogenous,"Exogenous")
''' Csharp composite'''
class SiriusCompo(CsharpCompo):
""" This class used to generates states, rates, auxiliary and exogenous classes
for C# languages.
"""
def __init__(self, tree=None, model=None, name=None):
self.model=model
self.tree = tree
self.name = name
CsharpCompo.__init__(self, tree, model, name)
def usingBioma(self):
self.write("""
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using CRA.ModelLayer.MetadataTypes;
using CRA.ModelLayer.Core;
using CRA.ModelLayer.Strategy;
using System.Reflection;
using VarInfo=CRA.ModelLayer.Core.VarInfo;
using Preconditions=CRA.ModelLayer.Core.Preconditions;
using CRA.AgroManagement;
""")
def desc(self,node, n, inp, vartype) :
self.write("PropertyDescription pd%s = new PropertyDescription();"%n)
self.newline(node)
self.write("pd%s.DomainClassType = typeof(SiriusQuality%s.DomainClass.%s%s);"%(n, self.name,self.name,inp.variablecategory.capitalize()))
self.newline(node)
self.write('pd%s.PropertyName = "%s";'%(n,inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('pd%s.PropertyType = (SiriusQuality%s.DomainClass.%s%sVarInfo.%s).ValueType.TypeForCurrentValue;'%(n, self.name,self.name, inp.variablecategory.capitalize(),inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('pd%s.PropertyVarInfo =(SiriusQuality%s.DomainClass.%s%sVarInfo.%s);'%(n,self.name,self.name, inp.variablecategory.capitalize(),inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('%s.Add(pd%s);'%(vartype, n))
def constructor(self, node):
self.write("public %sComponent()"%self.model.name)
self.open(node)
self.write("ModellingOptions mo0_0 = new ModellingOptions();")
self.newline(node)
self.write("//Parameters")
self.newline(node)
self.write("List<VarInfo> _parameters0_0 = new List<VarInfo>();")
n = 1
for p in self.node_param:
for j in self.get_mo(p.name):
self.newline(node)
self.write('VarInfo v%s = new CompositeStrategyVarInfo(_%s, "%s");'%(n,j,p.name))
self.newline(node)
self.write("_parameters0_0.Add(v%s);"%n)
n = n+1
self.newline(node)
self.write("List<PropertyDescription> _inputs0_0 = new List<PropertyDescription>();")
self.newline(node)
n=1
for inp in self.model.inputs:
if "variablecategory" in dir(inp) :
self.desc(node,n,inp, "_inputs0_0")
self.write("")
self.newline(node)
n = n+1
self.newline(node)
self.write('mo0_0.Inputs=_inputs0_0;')
self.newline(node)
self.write("List<PropertyDescription> _outputs0_0 = new List<PropertyDescription>();")
self.newline(node)
for out in self.model.outputs:
if "variablecategory" in dir(out):
self.desc(node,n,out, "_outputs0_0")
self.write("")
self.newline(node)
n = n+1
self.newline(node)
self.write('mo0_0.Outputs=_outputs0_0;')
self.newline(node)
self.write("List<string> lAssStrat0_0 = new List<string>();")
self.newline(node)
for m in self.model.model:
name = m.name
self.write("lAssStrat0_0.Add(typeof(SiriusQuality%s.Strategies.%s).FullName);"%(self.model.name, name))
self.newline(1)
self.write("mo0_0.AssociatedStrategies = lAssStrat0_0;")
self.newline(1)
self.write("_modellingOptionsManager = new ModellingOptionsManager(mo0_0);")
self.newline(1)
self.write("SetStaticParametersVarInfoDefinitions();")
self.newline(1)
self.write("SetPublisherData();")
self.close(node)
self.newline(extra=1)
def description(self, node):
self.write("public string Description")
self.open(node)
self.write('get { return "%s" ;}'%self.model.description.Abstract.replace("\n", ""))
self.close(node)
self.newline(extra=1)
def url(self, node):
self.write("public string URL")
self.open(node)
self.write('get { return "%s" ;}'%(self.model.description.url if "url" in dir(self.model.description) else ""))
self.close(node)
self.newline(extra=1)
def domain(self, node):
self.write("public string Domain")
self.open(node)
self.write('get { return "";}')
self.close(node)
self.newline(extra=1)
def modelType(self, node):
self.write("public string ModelType")
self.open(node)
self.write('get { return "";}')
self.close(node)
self.newline(extra=1)
def isContext(self, node):
self.write("public bool IsContext")
self.open(node)
self.write('get { return false;}')
self.close(node)
self.newline(extra=1)
def isTimeStep(self, node):
self.write("public IList<int> TimeStep")
self.open(node)
self.write("get")
self.open(node)
self.write("IList<int> ts = new List<int>();")
self.newline(node)
self.write("return ts;")
self.close(node)
self.close(node)
self.newline(extra=1)
def publisherdata(self, node):
self.write("private PublisherData _pd;")
self.newline(node)
self.write("public PublisherData PublisherData")
self.open(node)
self.write("get { return _pd;} ")
self.close(node)
self.newline(extra=1)
def modelingOptions(self, node):
self.write("private ModellingOptionsManager _modellingOptionsManager;")
self.newline(node)
self.write("public ModellingOptionsManager ModellingOptionsManager")
self.open(node)
self.write("get { return _modellingOptionsManager; } ")
self.close(node)
self.newline(extra=1)
def SetPublisherData(self, node):
self.write("private void SetPublisherData()")
self.open(node)
self.write("_pd = new CRA.ModelLayer.MetadataTypes.PublisherData();")
self.newline(node)
self.write('_pd.Add("Creator", "%s");'%self.model.description.Authors)
self.newline(node)
self.write('_pd.Add("Date", "");')
self.newline(node)
self.write('_pd.Add("Publisher", "%s");'%self.model.description.Institution)
self.close(node)
self.newline(extra=1)
def getStrategyDomainClassesTypes(self, node):
self.write("public IEnumerable<Type> GetStrategyDomainClassesTypes()")
self.open(node)
self.write("return new List<Type>() { typeof(SiriusQuality%s.DomainClass.%sState), typeof(SiriusQuality%s.DomainClass.%sState), typeof(SiriusQuality%s.DomainClass.%sRate), typeof(SiriusQuality%s.DomainClass.%sAuxiliary), typeof(SiriusQuality%s.DomainClass.%sExogenous)};"%(self.name, self.name,self.name, self.name,self.name, self.name,self.name, self.name, self.name, self.name))
self.close(node)
self.newline(extra=1)
def SetParametersDefaultValue(self, node):
self.write("public void SetParametersDefaultValue()")
self.open(node)
self.write("_modellingOptionsManager.SetParametersDefaultValue();")
for m in self.model.model:
self.newline(node)
self.write("_%s.SetParametersDefaultValue();"%m.name)
self.close(node)
self.newline(extra=1)
def varinfodef(self, node, pa):
self.write('%sVarInfo.Name = "%s";'%(pa.name, pa.name)); self.newline(node)
self.write('%sVarInfo.Description = "%s";'%(pa.name, pa.description)); self.newline(node)
self.write('%sVarInfo.MaxValue = %s;'%(pa.name,pa.max if pa.max is not None else getdefault(pa))); self.newline(node)
self.write('%sVarInfo.MinValue = %s;'%(pa.name, pa.min if pa.min is not None else getdefault(pa))); self.newline(node)
self.write('%sVarInfo.DefaultValue = %s;'%(pa.name, getdefault(pa))); self.newline(node)
self.write('%sVarInfo.Units = "%s";'%(pa.name, pa.unit if ("unit" in dir(pa) and pa.unit is not None) else "dimensionless")); self.newline(node)
self.write('%sVarInfo.ValueType = VarInfoValueTypes.GetInstanceForName("%s");'%(pa.name, param_datatype[pa.datatype])); self.newline(node)
def SetStaticParametersVarInfoDefinitions(self, node):
self.write("private static void SetStaticParametersVarInfoDefinitions()")
self.open(node)
for pa in self.params:
self.newline(extra=1)
self.varinfodef(node, pa)
self.close(node)
self.newline(extra=1)
def staticVarInfo(self, node):
for pa in self.node_param:
self.write("public static VarInfo %sVarInfo"%pa.name)
self.open(node)
self.write("get { return SiriusQuality%s.Strategies.%s.%sVarInfo;} "%(self.model.name,self.get_mo(pa.name)[0],pa.name))
self.close(node)
self.newline(extra=1)
def TestPostConditions(self, node):
self.write("public string TestPostConditions(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex,string callID)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.open(node)
self.write("try")
self.open(node)
self.write("//Set current values of the outputs to the static VarInfo representing the output properties of the domain classes")
for out in self.model.outputs:
self.newline(node)
self.write('SiriusQuality%s.DomainClass.%s%sVarInfo.%s.CurrentValue=%s.%s;'%(self.name, self.name, out.variablecategory.capitalize(),out.name,category[out.variablecategory], out.name))
self.newline(extra=1)
self.write('ConditionsCollection prc = new ConditionsCollection();'); self.newline(node)
self.write('Preconditions pre = new Preconditions(); ' ); self.newline(node)
self.newline(extra=1)
n = len(self.model.inputs) + 1
for out in self.model.outputs:
self.newline(node)
self.write("RangeBasedCondition r%s = new RangeBasedCondition(SiriusQuality%s.DomainClass.%s%sVarInfo.%s);"%(n,self.name, self.name, out.variablecategory.capitalize(), out.name)); self.newline(node)
self.write("if(r%s.ApplicableVarInfoValueTypes.Contains( SiriusQuality%s.DomainClass.%s%sVarInfo.%s.ValueType)){prc.AddCondition(r%s);}"%(n, self.name, self.name, out.variablecategory.capitalize(), out.name, n)); self.newline(node)
n = n+1
self.newline(extra=1)
self.write('string ret = "";')
self.newline(node)
for m in self.model.model:
self.write('ret += _%s.TestPostConditions(s, s1, r, a, ex, " strategy SiriusQuality%s.Strategies.%s");'%(m.name, self.model.name, self.name ))
self.newline(node)
self.write('if (ret != "") { pre.TestsOut(ret, true, " postconditions tests of associated classes"); }')
self.newline(extra=1)
self.write('string postConditionsResult = pre.VerifyPostconditions(prc, callID); if (!string.IsNullOrEmpty(postConditionsResult)) { pre.TestsOut(postConditionsResult, true, "PostConditions errors in strategy " + this.GetType().Name); } return postConditionsResult;')
self.close(node)
self.newline(node)
self.write("catch (Exception exception)");
self.open(node)
self.write('string msg = "Component SiriusQuality.%s, " + this.GetType().Name + ": Unhandled exception running post-condition test. ";'%self.name); self.newline(node)
self.write('throw new Exception(msg, exception);'); self.newline(node)
self.close(node)
self.close(node)
self.newline(extra=1)
def TestPreConditions(self, node):
self.write("public string TestPreConditions(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex,string callID)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.open(node)
self.write("try")
self.open(node)
self.write("//Set current values of the inputs to the static VarInfo representing the inputs properties of the domain classes")
for inp in self.model.inputs:
if "variablecategory" in dir(inp):
self.newline(node)
self.write('SiriusQuality%s.DomainClass.%s%sVarInfo.%s.CurrentValue=%s.%s;'%(self.name, self.name, inp.variablecategory.capitalize(),inp.name if not inp.name.endswith("_t1") else inp.name[:-3],category[inp.variablecategory], inp.name if not inp.name.endswith("_t1") else inp.name[:-3]))
self.newline(node)
self.write('ConditionsCollection prc = new ConditionsCollection();'); self.newline(node)
self.write('Preconditions pre = new Preconditions(); ' ); self.newline(node)
n = 1
for inp in self.model.inputs:
if "variablecategory" in dir(inp):
self.newline(node)
self.write("RangeBasedCondition r%s = new RangeBasedCondition(SiriusQuality%s.DomainClass.%s%sVarInfo.%s);"%(n,self.name, self.name, inp.variablecategory.capitalize(), inp.name if not inp.name.endswith("_t1") else inp.name[:-3])); self.newline(node)
self.write("if(r%s.ApplicableVarInfoValueTypes.Contains( SiriusQuality%s.DomainClass.%s%sVarInfo.%s.ValueType)){prc.AddCondition(r%s);}"%(n, self.name, self.name, inp.variablecategory.capitalize(), inp.name if not inp.name.endswith("_t1") else inp.name[:-3], n)); self.newline(node)
n = n+1
self.newline(extra=1)
for p in self.params:
self.write('prc.AddCondition(new RangeBasedCondition(_modellingOptionsManager.GetParameterByName("%s")));'%p.name)
self.newline(node)
self.write('string ret = "";')
self.newline(node)
for m in self.model.model:
self.write('ret += _%s.TestPreConditions(s, s1, r, a, ex, " strategy SiriusQuality%s.Strategies.%s");'%(m.name, self.model.name, self.name ))
self.newline(node)
self.write('if (ret != "") { pre.TestsOut(ret, true, " preconditions tests of associated classes"); }')
self.newline(extra=1)
self.write('string preConditionsResult = pre.VerifyPreconditions(prc, callID); if (!string.IsNullOrEmpty(preConditionsResult)) { pre.TestsOut(preConditionsResult, true, "PreConditions errors in component " + this.GetType().Name); } return preConditionsResult;')
self.close(node)
self.newline(node)
self.write("catch (Exception exception)");
self.open(node)
self.write('string msg = "Component SiriusQuality.%s, " + this.GetType().Name + ": Unhandled exception running pre-condition test. ";'%self.name); self.newline(node)
self.write('throw new Exception(msg, exception);'); self.newline(node)
self.close(node)
self.close(node)
self.newline(extra=1)
def estimate(self, node):
self.write("public void Estimate(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.open(node)
self.write("try")
self.open(node)
self.write("CalculateModel(s, s1, r, a, ex);")
self.close(node)
self.newline(node)
self.write("catch (Exception exception)")
self.open(node)
self.write('string msg = "Error in component SiriusQuality%s, strategy: " + this.GetType().Name + ": Unhandled exception running model. "+exception.GetType().FullName+" - "+exception.Message;'%self.name)
self.newline(node)
self.write('throw new Exception(msg, exception);')
self.close(node)
self.close(node)
self.newline(extra=1)
def calculateModel(self, node):
self.write("private void CalculateModel(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.open(node)
self.write("EstimateOfAssociatedClasses(s, s1, r, a, ex);")
self.close(node)
self.newline(extra=1)
def copy_Constructor(self, node):
self.write('public %sComponent(%sComponent toCopy): this() // copy constructor '%(self.model.name, self.model.name))
self.open(node)
self.copyconstructor(self.node_param)
self.close(node)
def visit_module(self, node):
self.usingBioma()
self.newline(node)
self.write("using SiriusQuality%s.DomainClass;"%self.model.name)
self.newline(node)
self.write("namespace SiriusQuality%s.Strategies"%self.model.name)
self.open(node)
self.write("public class %sComponent : IStrategySiriusQuality%s"%(self.model.name, self.model.name))
self.open(node)
self.constructor(node)
self.description(node)
self.url(node)
self.domain(node)
self.modelType(node)
self.isContext(node)
self.isTimeStep(node)
self.publisherdata(node)
self.SetPublisherData(node)
self.modelingOptions(node)
self.getStrategyDomainClassesTypes(node)
self.getsetParam(node,self.node_param)
self.SetParametersDefaultValue(node)
self.SetStaticParametersVarInfoDefinitions(node)
self.staticVarInfo(node)
self.TestPostConditions(node)
self.TestPreConditions(node)
self.estimate(node)
self.calculateModel(node)
self.createModelInstances()
self.newline(extra=1)
self.visit(node.body)
self.newline(extra=1)
self.copy_Constructor(self.node_param)
self.newline(node)
self.close(node)
self.close(node)
def visit_function_definition(self, node):
if node.name.startswith("model"):
self.write("private void EstimateOfAssociatedClasses(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
else:
self.write("public void Init(SiriusQuality%s.DomainClass.%sState s,SiriusQuality%s.DomainClass.%sState s1,SiriusQuality%s.DomainClass.%sRate r,SiriusQuality%s.DomainClass.%sAuxiliary a,SiriusQuality%s.DomainClass.%sExogenous ex)"%(self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name,self.name))
self.init=True
self.open(node)
self.visit(node.block)
self.close(node)
self.newline(extra=1)
def visit_implicit_return(self, node):
self.newline(node)
def visit_assignment(self, node):
if "function" in dir(node.value) and node.value.function.split('_')[0]=="model":
name = node.value.function.split('model_')[1]
self.write("_%s.Estimate(s,s1, r, a, ex);"%(name))
self.newline(node)
else:
self.newline(node)
self.visit(node.target)
self.write(' = ')
self.visit(node.value)
self.write(";")
self.newline(node)
def interfaceStrategy(self, node):
self.write('using System;'); self.newline(1)
self.write('using CRA.AgroManagement;'); self.newline(1)
self.write('using CRA.ModelLayer.Strategy;'); self.newline(1)
self.write('namespace SiriusQuality%s.DomainClass'%(self.model.name))
self.open(node)
self.write('public interface IStrategySiriusQuality%s : IStrategy'%self.model.name)
self.open(node)
self.write('void Estimate( %sState s, %sState s1, %sRate r, %sAuxiliary a, %sExogenous ex);'%(self.model.name, self.model.name, self.model.name, self.model.name, self.model.name))
self.newline(extra=1)
self.write('string TestPreConditions( %sState s, %sState s1, %sRate r, %sAuxiliary a, %sExogenous ex, string callID);'%(self.model.name, self.model.name, self.model.name, self.model.name, self.model.name))
self.newline(extra=1)
self.write('string TestPostConditions( %sState s, %sState s1, %sRate r, %sAuxiliary a, %sExogenous ex, string callID);'%(self.model.name, self.model.name, self.model.name, self.model.name, self.model.name))
self.newline(extra=1)
self.write('void SetParametersDefaultValue();')
self.close(node)
self.close(node)
def wrapper(self):
self.write("using SQCrop2ML_%s.DomainClass;"%self.model.name)
self.newline(1)
self.write("using SQCrop2ML_%s.Strategies;"%self.model.name)
self.newline(extra=1)
self.write("namespace SiriusModel.Model.%s"%self.model.name)
self.newline(1)
self.write("{")
self.newline(1)
self.indentation += 1
self.write("class %sWrapper : UniverseLink"%self.model.name)
self.newline(1)
self.write("{")
self.newline(1)
self.indentation += 1
self.privateWrap()
self.constrWrap()
self.newline(extra=1)
self.outputWrap()
self.newline(extra=1)
self.copyconstrWrap()
self.newline(extra=1)
self.initWrap()
self.newline(extra=1)
self.loadParamWrap()
self.newline(extra=1)
self.estimateWrap()
self.newline(extra=1)
self.indentation -= 1
self.write("}")
self.newline(extra=1)
self.indentation -= 1
self.write("}")
def constrWrap(self):
name = self.model.name
self.write("public %sWrapper(Universe universe) : base(universe)"%(name))
self.newline(1)
self.write("{")
self.newline(1)
self.indentation += 1
self.write("s = new %sState();"%(name))
self.newline(1)
self.write("r = new %sRate();"%(name))
self.newline(1)
self.write("a = new %sAuxiliary();"%(name))
self.newline(1)
self.write("ex = new %sExogenous();"%(name))
self.newline(1)
self.write("%sComponent = new %s();"%(name.lower(), name))
self.newline(1)
self.write("loadParameters();")
self.newline(1)
self.indentation -= 1
self.write("}")
def copyconstrWrap(self):
self.write("public %sWrapper(Universe universe, %sWrapper toCopy, bool copyAll) : base(universe)"%(self.model.name,self.model.name))
self.newline(1)
self.write("{")
self.newline(1)
self.indentation += 1
self.write("s = (toCopy.s != null) ? new %sState(toCopy.s, copyAll) : null;"%(self.model.name))
self.newline(1)
self.newline(1)
self.write("r = (toCopy.r != null) ? new %sRate(toCopy.r, copyAll) : null;"%(self.model.name))
self.newline(1)
self.write("a = (toCopy.a != null) ? new %sAuxiliary(toCopy.a, copyAll) : null;"%(self.model.name))
self.newline(1)
self.write("ex = (toCopy.ex != null) ? new %sExogenous(toCopy.ex, copyAll) : null;"%(self.model.name))
self.newline(1)
self.write("if (copyAll)")
self.newline(1)
self.write("{")
self.newline(1)
self.indentation += 1
self.write("%sComponent = (toCopy.%sComponent != null) ? new %s(toCopy.%sComponent) : null;"%(self.model.name.lower(),self.model.name.lower(),self.model.name,self.model.name.lower()))
self.newline(1)
self.indentation -= 1
self.write("}")
self.newline(1)
self.indentation -= 1
self.write("}")
def to_wrapper_sirius(models, rep, name):
generator = SiriusCompo(model = models)
generator.result=[u"using System;\nusing System.Collections.Generic;\nusing System.Linq;\n"]
generator.model2Node()
generator.wrapper()
z= ''.join(generator.result)
filename = Path(os.path.join(rep, "%sWrapper.cs"%name))
with open(filename, "wb") as tg2_file:
tg2_file.write(z.encode('utf-8'))
filename = Path(os.path.join(rep, "IStrategySiriusQuality%s.cs"%name))
generator2 = SiriusCompo(model = models)
generator2.interfaceStrategy(1)
z= ''.join(generator2.result)
with open(filename, "wb") as tg2_file:
tg2_file.write(z.encode('utf-8'))
return 0
| 46.686555
| 389
| 0.620397
| 7,034
| 58,685
| 5.145152
| 0.057009
| 0.079799
| 0.082258
| 0.074024
| 0.834959
| 0.801691
| 0.76146
| 0.735128
| 0.702689
| 0.675914
| 0
| 0.00695
| 0.235
| 58,685
| 1,257
| 390
| 46.686555
| 0.799194
| 0.007242
| 0
| 0.714032
| 0
| 0.036412
| 0.302319
| 0.134947
| 0
| 0
| 0
| 0
| 0
| 1
| 0.071936
| false
| 0
| 0.008881
| 0
| 0.084369
| 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
|
4a159a2173099b23d5b06695e800eee68088490c
| 87
|
py
|
Python
|
pymatex/listener/__init__.py
|
Gawaboumga/PyMatex
|
3ccc0aa23211a064aa31a9b509b108cd606a4992
|
[
"MIT"
] | 1
|
2019-03-05T09:45:04.000Z
|
2019-03-05T09:45:04.000Z
|
pymatex/listener/__init__.py
|
Gawaboumga/PyMatex
|
3ccc0aa23211a064aa31a9b509b108cd606a4992
|
[
"MIT"
] | null | null | null |
pymatex/listener/__init__.py
|
Gawaboumga/PyMatex
|
3ccc0aa23211a064aa31a9b509b108cd606a4992
|
[
"MIT"
] | null | null | null |
from pymatex.listener.MatexAST import *
from pymatex.listener.MatexASTVisitor import *
| 29
| 46
| 0.83908
| 10
| 87
| 7.3
| 0.6
| 0.30137
| 0.520548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091954
| 87
| 2
| 47
| 43.5
| 0.924051
| 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
|
c57e2ecc46bb3ae7c029406126a7eb8bead7bbc9
| 2,458
|
py
|
Python
|
tests/util/test_builtin_operators.py
|
goodrain/pycasbin
|
1a481ba1af7619e1cc7e83896581d14976927d80
|
[
"Apache-2.0"
] | 1
|
2019-12-24T17:47:37.000Z
|
2019-12-24T17:47:37.000Z
|
tests/util/test_builtin_operators.py
|
goodrain/pycasbin
|
1a481ba1af7619e1cc7e83896581d14976927d80
|
[
"Apache-2.0"
] | null | null | null |
tests/util/test_builtin_operators.py
|
goodrain/pycasbin
|
1a481ba1af7619e1cc7e83896581d14976927d80
|
[
"Apache-2.0"
] | null | null | null |
from unittest import TestCase
from casbin import util
class TestBuiltinOperators(TestCase):
def test_key_match(self):
self.assertTrue(util.key_match_func("/foo", "/foo"))
self.assertTrue(util.key_match_func("/foo", "/foo*"))
self.assertFalse(util.key_match_func("/foo", "/foo/*"))
self.assertFalse(util.key_match_func("/foo/bar", "/foo"))
self.assertTrue(util.key_match_func("/foo/bar", "/foo*"))
self.assertTrue(util.key_match_func("/foo/bar", "/foo/*"))
self.assertFalse(util.key_match_func("/foobar", "/foo"))
self.assertTrue(util.key_match_func("/foobar", "/foo*"))
self.assertFalse(util.key_match_func("/foobar", "/foo/*"))
def test_key_match2(self):
self.assertTrue(util.key_match2_func("/foo", "/foo"))
self.assertTrue(util.key_match2_func("/foo", "/foo*"))
self.assertFalse(util.key_match2_func("/foo", "/foo/*"))
self.assertTrue(util.key_match2_func("/foo/bar", "/foo")) # different with KeyMatch.
self.assertTrue(util.key_match2_func("/foo/bar", "/foo*"))
self.assertTrue(util.key_match2_func("/foo/bar", "/foo/*"))
self.assertTrue(util.key_match2_func("/foobar", "/foo")) # different with KeyMatch.
self.assertTrue(util.key_match2_func("/foobar", "/foo*"))
self.assertFalse(util.key_match2_func("/foobar", "/foo/*"))
self.assertFalse(util.key_match2_func("/", "/:resource"))
self.assertTrue(util.key_match2_func("/resource1", "/:resource"))
self.assertFalse(util.key_match2_func("/myid", "/:id/using/:resId"))
self.assertTrue(util.key_match2_func("/myid/using/myresid", "/:id/using/:resId"))
self.assertFalse(util.key_match2_func("/proxy/myid", "/proxy/:id/*"))
self.assertTrue(util.key_match2_func("/proxy/myid/", "/proxy/:id/*"))
self.assertTrue(util.key_match2_func("/proxy/myid/res", "/proxy/:id/*"))
self.assertTrue(util.key_match2_func("/proxy/myid/res/res2", "/proxy/:id/*"))
self.assertTrue(util.key_match2_func("/proxy/myid/res/res2/res3", "/proxy/:id/*"))
self.assertFalse(util.key_match2_func("/proxy/", "/proxy/:id/*"))
self.assertTrue(util.key_match2_func("/alice", "/:id"))
self.assertTrue(util.key_match2_func("/alice/all", "/:id/all"))
self.assertFalse(util.key_match2_func("/alice", "/:id/all"))
self.assertFalse(util.key_match2_func("/alice/all", "/:id"))
| 54.622222
| 93
| 0.646461
| 315
| 2,458
| 4.828571
| 0.114286
| 0.147272
| 0.196581
| 0.257068
| 0.880342
| 0.869822
| 0.808021
| 0.737673
| 0.680473
| 0.526627
| 0
| 0.01334
| 0.146054
| 2,458
| 44
| 94
| 55.863636
| 0.711291
| 0.019935
| 0
| 0
| 0
| 0
| 0.212386
| 0.010391
| 0
| 0
| 0
| 0
| 0.864865
| 1
| 0.054054
| false
| 0
| 0.054054
| 0
| 0.135135
| 0
| 0
| 0
| 0
| null | 0
| 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
| 7
|
c5b4af445927f3366ada89d007d718b47971f95d
| 66
|
py
|
Python
|
aitestflow/__init__.py
|
Wiinai/aitestflow
|
1cf40fa22f229f3c6b1088b61de40192ebe605c6
|
[
"MIT"
] | null | null | null |
aitestflow/__init__.py
|
Wiinai/aitestflow
|
1cf40fa22f229f3c6b1088b61de40192ebe605c6
|
[
"MIT"
] | null | null | null |
aitestflow/__init__.py
|
Wiinai/aitestflow
|
1cf40fa22f229f3c6b1088b61de40192ebe605c6
|
[
"MIT"
] | null | null | null |
print("aitestflow")
def ai_test_flow():
print("ai_test_flow")
| 16.5
| 25
| 0.712121
| 10
| 66
| 4.3
| 0.6
| 0.27907
| 0.465116
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 66
| 4
| 25
| 16.5
| 0.741379
| 0
| 0
| 0
| 0
| 0
| 0.328358
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0
| 0
| 0.333333
| 0.666667
| 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
| 0
| 0
| 0
| 1
|
0
| 7
|
a85f80acf1c7bf8c56444c4bdfd8238e2e3f1dbd
| 3,965
|
py
|
Python
|
test/pyaz/sql/mi/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
test/pyaz/sql/mi/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | 9
|
2021-09-24T16:37:24.000Z
|
2021-12-24T00:39:19.000Z
|
test/pyaz/sql/mi/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
import json, subprocess
from ... pyaz_utils import get_cli_name, get_params
def create(admin_user=None, admin_password=None, license_type=None, minimal_tls_version=None, subnet, capacity=None, storage=None, collation=None, proxy_override=None, public_data_endpoint_enabled=None, timezone_id=None, tags=None, backup_storage_redundancy=None, yes=None, maint_config_id=None, primary_user_assigned_identity_id=None, key_id=None, family=None, __NAME=None, tier=None, vnet_name=None, name, resource_group, location=None, assign_identity=None, __SKU=None, user_assigned_identity_id=None, identity_type=None, enable_ad_only_auth=None, external_admin_principal_type=None, external_admin_sid=None, external_admin_name=None, no_wait=None):
params = get_params(locals())
command = "az sql mi create " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def delete(resource_group, name, yes=None, no_wait=None):
params = get_params(locals())
command = "az sql mi delete " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def show(resource_group, name, expand_ad_admin=None):
params = get_params(locals())
command = "az sql mi show " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def list(resource_group=None, expand_ad_admin=None):
params = get_params(locals())
command = "az sql mi list " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def update(admin_password=None, tags=None, family=None, __NAME=None, tier=None, vnet_name=None, resource_group, name, license_type=None, capacity=None, storage=None, assign_identity=None, proxy_override=None, public_data_endpoint_enabled=None, minimal_tls_version=None, maint_config_id=None, primary_user_assigned_identity_id=None, key_id=None, identity_type=None, user_assigned_identity_id=None, subnet=None, set=None, add=None, remove=None, force_string=None, no_wait=None):
params = get_params(locals())
command = "az sql mi update " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def failover(resource_group, name, replica_type=None, no_wait=None):
params = get_params(locals())
command = "az sql mi failover " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
| 45.056818
| 652
| 0.705422
| 529
| 3,965
| 5.120983
| 0.177694
| 0.062016
| 0.044297
| 0.042082
| 0.773348
| 0.747508
| 0.72536
| 0.72536
| 0.72536
| 0.688446
| 0
| 0.003696
| 0.181084
| 3,965
| 87
| 653
| 45.574713
| 0.830613
| 0
| 0
| 0.825
| 0
| 0
| 0.040353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.025
| 0.025
| null | null | 0.225
| 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
|
a8cf41aba089cdf402a29605d2082f45b1977ada
| 183
|
py
|
Python
|
Client/__init__.py
|
Ricky-Hao/IMPK-Client
|
791150a43fff157aa439716d63d6c4fece912b85
|
[
"MIT"
] | null | null | null |
Client/__init__.py
|
Ricky-Hao/IMPK-Client
|
791150a43fff157aa439716d63d6c4fece912b85
|
[
"MIT"
] | null | null | null |
Client/__init__.py
|
Ricky-Hao/IMPK-Client
|
791150a43fff157aa439716d63d6c4fece912b85
|
[
"MIT"
] | null | null | null |
from Client.core import client
from Client.core.route import *
from Client.util import logger
from Client.logic import mainWindow, app
mainWindow.connectSignal = client.connectSignal
| 30.5
| 47
| 0.836066
| 25
| 183
| 6.12
| 0.44
| 0.261438
| 0.183007
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10929
| 183
| 6
| 47
| 30.5
| 0.93865
| 0
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.