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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
538b8acce75cdbf1ef1a2337e9462dac172b728c
| 20,780
|
py
|
Python
|
SAI-P4-BM/sai_adapter/test/ptf_tests/tests_new/sail2.py
|
bocon13/stratum-sonic
|
9be75505869ee81d30ef9b65276f7d55f495658f
|
[
"Apache-2.0"
] | null | null | null |
SAI-P4-BM/sai_adapter/test/ptf_tests/tests_new/sail2.py
|
bocon13/stratum-sonic
|
9be75505869ee81d30ef9b65276f7d55f495658f
|
[
"Apache-2.0"
] | null | null | null |
SAI-P4-BM/sai_adapter/test/ptf_tests/tests_new/sail2.py
|
bocon13/stratum-sonic
|
9be75505869ee81d30ef9b65276f7d55f495658f
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2013-present Barefoot 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.
"""
Thrift SAI interface L2 tests
"""
import socket
from switch import *
import sai_base_test
@group('l2')
class L2AccessToAccessVlanTest(sai_base_test.ThriftInterfaceDataPlane):
def runTest(self):
print
print "Sending L2 packet port 1 -> port 2 [access vlan=10])"
switch_init(self.client)
vlan_id = 10
port1 = port_list[0]
port2 = port_list[1]
mac1 = '00:11:11:11:11:11'
mac2 = '00:22:22:22:22:22'
mac_action = SAI_PACKET_ACTION_FORWARD
vlan_oid = sai_thrift_create_vlan(self.client, vlan_id)
vlan_member1 = sai_thrift_create_vlan_member(self.client, vlan_oid, port1, SAI_VLAN_TAGGING_MODE_UNTAGGED)
vlan_member2 = sai_thrift_create_vlan_member(self.client, vlan_oid, port2, SAI_VLAN_TAGGING_MODE_UNTAGGED)
attr_value = sai_thrift_attribute_value_t(u16=vlan_id)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port1, attr)
self.client.sai_thrift_set_port_attribute(port2, attr)
sai_thrift_create_fdb(self.client, vlan_id, mac1, port1, mac_action)
sai_thrift_create_fdb(self.client, vlan_id, mac2, port2, mac_action)
pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
ip_dst='10.0.0.1',
ip_id=101,
ip_ttl=64)
try:
send_packet(self, 0, str(pkt))
verify_packets(self, pkt, [1])
finally:
sai_thrift_delete_fdb(self.client, vlan_id, mac1, port1)
sai_thrift_delete_fdb(self.client, vlan_id, mac2, port2)
attr_value = sai_thrift_attribute_value_t(u16=1)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port1, attr)
self.client.sai_thrift_set_port_attribute(port2, attr)
self.client.sai_thrift_remove_vlan_member(vlan_member1)
self.client.sai_thrift_remove_vlan_member(vlan_member2)
self.client.sai_thrift_remove_vlan(vlan_oid)
@group('l2')
class L2TrunkToTrunkVlanTest(sai_base_test.ThriftInterfaceDataPlane):
def runTest(self):
print
print "Sending L2 packet - port 1 -> port 2 [trunk vlan=10])"
switch_init(self.client)
vlan_id = 10
port1 = port_list[0]
port2 = port_list[1]
mac1 = '00:11:11:11:11:11'
mac2 = '00:22:22:22:22:22'
mac_action = SAI_PACKET_ACTION_FORWARD
vlan_oid = sai_thrift_create_vlan(self.client, vlan_id)
vlan_member1 = sai_thrift_create_vlan_member(self.client, vlan_oid, port1, SAI_VLAN_TAGGING_MODE_TAGGED)
vlan_member2 = sai_thrift_create_vlan_member(self.client, vlan_oid, port2, SAI_VLAN_TAGGING_MODE_TAGGED)
sai_thrift_create_fdb(self.client, vlan_id, mac1, port1, mac_action)
sai_thrift_create_fdb(self.client, vlan_id, mac2, port2, mac_action)
pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
dl_vlan_enable=True,
vlan_vid=10,
ip_dst='10.0.0.1',
ip_id=102,
ip_ttl=64)
exp_pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
ip_dst='10.0.0.1',
ip_id=102,
dl_vlan_enable=True,
vlan_vid=10,
ip_ttl=64)
try:
send_packet(self, 0, str(pkt))
verify_packets(self, exp_pkt, [1])
finally:
sai_thrift_delete_fdb(self.client, vlan_id, mac1, port1)
sai_thrift_delete_fdb(self.client, vlan_id, mac2, port2)
self.client.sai_thrift_remove_vlan_member(vlan_member1)
self.client.sai_thrift_remove_vlan_member(vlan_member2)
self.client.sai_thrift_remove_vlan(vlan_oid)
@group('l2')
class L2AccessToTrunkVlanTest(sai_base_test.ThriftInterfaceDataPlane):
def runTest(self):
print
print "Sending L2 packet - port 1 -> port 2 [trunk vlan=10])"
switch_init(self.client)
vlan_id = 10
port1 = port_list[0]
port2 = port_list[1]
mac1 = '00:11:11:11:11:11'
mac2 = '00:22:22:22:22:22'
mac_action = SAI_PACKET_ACTION_FORWARD
vlan_oid = sai_thrift_create_vlan(self.client, vlan_id)
vlan_member1 = sai_thrift_create_vlan_member(self.client, vlan_oid, port1, SAI_VLAN_TAGGING_MODE_UNTAGGED)
vlan_member2 = sai_thrift_create_vlan_member(self.client, vlan_oid, port2, SAI_VLAN_TAGGING_MODE_TAGGED)
attr_value = sai_thrift_attribute_value_t(u16=vlan_id)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port1, attr)
sai_thrift_create_fdb(self.client, vlan_id, mac1, port1, mac_action)
sai_thrift_create_fdb(self.client, vlan_id, mac2, port2, mac_action)
pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
ip_dst='10.0.0.1',
ip_id=102,
ip_ttl=64)
exp_pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
ip_dst='10.0.0.1',
dl_vlan_enable=True,
vlan_vid=10,
ip_id=102,
ip_ttl=64,
pktlen=104)
try:
send_packet(self, 0, str(pkt))
verify_packets(self, exp_pkt, [1])
finally:
sai_thrift_delete_fdb(self.client, vlan_id, mac1, port1)
sai_thrift_delete_fdb(self.client, vlan_id, mac2, port2)
attr_value = sai_thrift_attribute_value_t(u16=1)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port2, attr)
self.client.sai_thrift_remove_vlan_member(vlan_member1)
self.client.sai_thrift_remove_vlan_member(vlan_member2)
self.client.sai_thrift_remove_vlan(vlan_oid)
@group('l2')
class L2TrunkToAccessVlanTest(sai_base_test.ThriftInterfaceDataPlane):
def runTest(self):
print
print "Sending L2 packet - port 1 -> port 2 [trunk vlan=10])"
switch_init(self.client)
vlan_id = 10
port1 = port_list[0]
port2 = port_list[1]
mac1 = '00:11:11:11:11:11'
mac2 = '00:22:22:22:22:22'
mac_action = SAI_PACKET_ACTION_FORWARD
vlan_oid = sai_thrift_create_vlan(self.client, vlan_id)
vlan_member1 = sai_thrift_create_vlan_member(self.client, vlan_oid, port1, SAI_VLAN_TAGGING_MODE_TAGGED)
vlan_member2 = sai_thrift_create_vlan_member(self.client, vlan_oid, port2, SAI_VLAN_TAGGING_MODE_UNTAGGED)
attr_value = sai_thrift_attribute_value_t(u16=vlan_id)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port1, attr)
sai_thrift_create_fdb(self.client, vlan_id, mac1, port1, mac_action)
sai_thrift_create_fdb(self.client, vlan_id, mac2, port2, mac_action)
pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
dl_vlan_enable=True,
vlan_vid=10,
ip_dst='10.0.0.1',
ip_id=102,
ip_ttl=64)
exp_pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
ip_dst='10.0.0.1',
ip_id=102,
ip_ttl=64,
pktlen=96)
try:
send_packet(self, 0, str(pkt))
verify_packets(self, exp_pkt, [1])
finally:
sai_thrift_delete_fdb(self.client, vlan_id, mac1, port1)
sai_thrift_delete_fdb(self.client, vlan_id, mac2, port2)
attr_value = sai_thrift_attribute_value_t(u16=1)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port2, attr)
self.client.sai_thrift_remove_vlan_member(vlan_member1)
self.client.sai_thrift_remove_vlan_member(vlan_member2)
self.client.sai_thrift_remove_vlan(vlan_oid)
@group('l2')
class L2FloodTest(sai_base_test.ThriftInterfaceDataPlane):
def runTest(self):
print
print 'Flood test on ports 1, 2 and 3'
switch_init(self.client)
vlan_id = 10
port1 = port_list[0]
port2 = port_list[1]
port3 = port_list[2]
mac1 = '00:11:11:11:11:11'
mac2 = '00:22:22:22:22:22'
vlan_oid = sai_thrift_create_vlan(self.client, vlan_id)
vlan_member1 = sai_thrift_create_vlan_member(self.client, vlan_oid, port1, SAI_VLAN_TAGGING_MODE_UNTAGGED)
vlan_member2 = sai_thrift_create_vlan_member(self.client, vlan_oid, port2, SAI_VLAN_TAGGING_MODE_UNTAGGED)
vlan_member3 = sai_thrift_create_vlan_member(self.client, vlan_oid, port3, SAI_VLAN_TAGGING_MODE_UNTAGGED)
attr_value = sai_thrift_attribute_value_t(u16=vlan_id)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port1, attr)
self.client.sai_thrift_set_port_attribute(port2, attr)
self.client.sai_thrift_set_port_attribute(port3, attr)
pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
ip_dst='10.0.0.1',
ip_id=107,
ip_ttl=64)
exp_pkt = simple_tcp_packet(eth_dst='00:22:22:22:22:22',
eth_src='00:11:11:11:11:11',
ip_dst='10.0.0.1',
ip_id=107,
ip_ttl=64)
try:
send_packet(self, 0, str(pkt))
verify_packets(self, exp_pkt, [1, 2])
send_packet(self, 1, str(pkt))
verify_packets(self, exp_pkt, [0, 2])
send_packet(self, 2, str(pkt))
verify_packets(self, exp_pkt, [0, 1])
finally:
# sleep(3)
sai_thrift_flush_fdb_by_vlan(self.client, vlan_id)
attr_value = sai_thrift_attribute_value_t(u16=1)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port1, attr)
self.client.sai_thrift_set_port_attribute(port2, attr)
self.client.sai_thrift_set_port_attribute(port3, attr)
self.client.sai_thrift_remove_vlan_member(vlan_member1)
self.client.sai_thrift_remove_vlan_member(vlan_member2)
self.client.sai_thrift_remove_vlan_member(vlan_member3)
self.client.sai_thrift_remove_vlan(vlan_oid)
@group('l2')
@group('lag')
class L2LagTest(sai_base_test.ThriftInterfaceDataPlane):
def runTest(self):
switch_init(self.client)
vlan_id = 10
port1 = port_list[0]
port2 = port_list[1]
port3 = port_list[2]
port4 = port_list[3]
mac1 = '00:11:11:11:11:11'
mac2 = '00:22:22:22:22:22'
mac_action = SAI_PACKET_ACTION_FORWARD
vlan_oid = sai_thrift_create_vlan(self.client, vlan_id)
lag_id1 = sai_thrift_create_lag(self.client, [])
sai_thrift_vlan_remove_all_ports(self.client, switch.default_vlan.oid)
lag_member_id1 = sai_thrift_create_lag_member(self.client, lag_id1, port1)
lag_member_id2 = sai_thrift_create_lag_member(self.client, lag_id1, port2)
lag_member_id3 = sai_thrift_create_lag_member(self.client, lag_id1, port3)
vlan_member1 = sai_thrift_create_vlan_member(self.client, vlan_oid, lag_id1, SAI_VLAN_TAGGING_MODE_UNTAGGED)
vlan_member2 = sai_thrift_create_vlan_member(self.client, vlan_oid, port4, SAI_VLAN_TAGGING_MODE_UNTAGGED)
attr_value = sai_thrift_attribute_value_t(u16=vlan_id)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(lag_id1, attr)
self.client.sai_thrift_set_port_attribute(port4, attr)
sai_thrift_create_fdb(self.client, vlan_id, mac1, lag_id1, mac_action)
sai_thrift_create_fdb(self.client, vlan_id, mac2, port4, mac_action)
try:
count = [0, 0, 0]
dst_ip = int(socket.inet_aton('10.10.10.1').encode('hex'),16)
max_itrs = 200
for i in range(0, max_itrs):
dst_ip_addr = socket.inet_ntoa(hex(dst_ip)[2:].zfill(8).decode('hex'))
pkt = simple_tcp_packet(eth_dst='00:11:11:11:11:11',
eth_src='00:22:22:22:22:22',
ip_dst=dst_ip_addr,
ip_src='192.168.8.1',
ip_id=109,
ip_ttl=64)
exp_pkt = simple_tcp_packet(eth_dst='00:11:11:11:11:11',
eth_src='00:22:22:22:22:22',
ip_dst=dst_ip_addr,
ip_src='192.168.8.1',
ip_id=109,
ip_ttl=64)
send_packet(self, 3, str(pkt))
rcv_idx = verify_any_packet_any_port(self, [exp_pkt], [0, 1, 2])
count[rcv_idx] += 1
dst_ip += 1
print count
for i in range(0, 3):
self.assertTrue((count[i] >= ((max_itrs / 3) * 0.8)),
"Not all paths are equally balanced")
pkt = simple_tcp_packet(eth_src='00:11:11:11:11:11',
eth_dst='00:22:22:22:22:22',
ip_dst='10.0.0.1',
ip_id=109,
ip_ttl=64)
exp_pkt = simple_tcp_packet(eth_src='00:11:11:11:11:11',
eth_dst='00:22:22:22:22:22',
ip_dst='10.0.0.1',
ip_id=109,
ip_ttl=64)
print "Sending packet port 1 (lag member) -> port 4"
send_packet(self, 0, str(pkt))
verify_packets(self, exp_pkt, [3])
print "Sending packet port 2 (lag member) -> port 4"
send_packet(self, 1, str(pkt))
verify_packets(self, exp_pkt, [3])
print "Sending packet port 3 (lag member) -> port 4"
send_packet(self, 2, str(pkt))
verify_packets(self, exp_pkt, [3])
finally:
sai_thrift_delete_fdb(self.client, vlan_id, mac1, lag_id1)
sai_thrift_delete_fdb(self.client, vlan_id, mac2, port4)
self.client.sai_thrift_remove_vlan_member(vlan_member1)
self.client.sai_thrift_remove_vlan_member(vlan_member2)
sai_thrift_remove_lag_member(self.client, lag_member_id1)
sai_thrift_remove_lag_member(self.client, lag_member_id2)
sai_thrift_remove_lag_member(self.client, lag_member_id3)
sai_thrift_remove_lag(self.client, lag_id1)
self.client.sai_thrift_remove_vlan(vlan_oid)
for port in sai_port_list:
sai_thrift_create_vlan_member(self.client, switch.default_vlan.oid, port, SAI_VLAN_TAGGING_MODE_UNTAGGED)
attr_value = sai_thrift_attribute_value_t(u16=1)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
self.client.sai_thrift_set_port_attribute(port4, attr)
@group('l2')
@group('sonic')
class L2VlanBcastUcastTest(sai_base_test.ThriftInterfaceDataPlane):
def runTest(self):
"""
For SONiC
Vlan broadcast and known unicast test. Verify the broacast packet reaches all ports in the vlan and unicast packet reach specific port.
Steps:
1. remove all ports from default vlan
2. create vlan 10
3. add n-1 ports to vlan 10
4. add mac for each port
5. send untagged broadcast packet from port 1, verify all n-1 ports receive the packet except the last port
6. send untagged unicast packets from port 1 to the rest of the vlan members ports. Verify only one port at a time receives the packet and port n does not.
7. clean up.
"""
switch_init(self.client)
vlan_id = 10
mac_list = []
vlan_member_list = []
ingress_port = 0
for i in range (1, len(port_list)):
mac_list.append("00:00:00:00:00:%02x" %(i+1))
mac_action = SAI_PACKET_ACTION_FORWARD
sai_thrift_vlan_remove_all_ports(self.client, switch.default_vlan.oid)
vlan_oid = sai_thrift_create_vlan(self.client, vlan_id)
for i in range (0, len(port_list)-1):
vlan_member_list.append(sai_thrift_create_vlan_member(self.client, vlan_oid, port_list[i], SAI_VLAN_TAGGING_MODE_UNTAGGED))
attr_value = sai_thrift_attribute_value_t(u16=vlan_id)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
for i in range (0, len(port_list)-1):
self.client.sai_thrift_set_port_attribute(port_list[i], attr)
sai_thrift_create_fdb(self.client, vlan_id, mac_list[i], port_list[i], mac_action)
bcast_pkt = simple_tcp_packet(eth_dst='ff:ff:ff:ff:ff:ff',
eth_src='00:00:00:00:00:01',
ip_dst='10.0.0.1',
ip_id=101,
ip_ttl=64)
try:
expected_ports = []
for i in range (1, len(port_list)-1):
expected_ports.append(i)
send_packet(self, ingress_port, str(bcast_pkt))
verify_packets(self, bcast_pkt, expected_ports)
for i in range (1, len(port_list)-1):
ucast_pkt = simple_tcp_packet(eth_dst=mac_list[i],
eth_src='00:00:00:00:00:01',
ip_dst='10.0.0.1',
ip_id=101,
ip_ttl=64)
send_packet(self, ingress_port, str(ucast_pkt))
verify_packets(self, ucast_pkt, [i])
finally:
attr_value = sai_thrift_attribute_value_t(u16=switch.default_vlan.vid)
attr = sai_thrift_attribute_t(id=SAI_PORT_ATTR_PORT_VLAN_ID, value=attr_value)
for i in range (0, len(port_list)-1):
sai_thrift_delete_fdb(self.client, vlan_id, mac_list[i], port_list[i])
self.client.sai_thrift_set_port_attribute(port_list[i], attr)
for vlan_member in vlan_member_list:
self.client.sai_thrift_remove_vlan_member(vlan_member)
self.client.sai_thrift_remove_vlan(vlan_oid)
for port in sai_port_list:
sai_thrift_create_vlan_member(self.client, switch.default_vlan.oid, port, SAI_VLAN_TAGGING_MODE_UNTAGGED)
| 45.173913
| 163
| 0.597834
| 2,859
| 20,780
| 3.996502
| 0.081147
| 0.094521
| 0.029932
| 0.068178
| 0.840364
| 0.826886
| 0.813496
| 0.795817
| 0.778838
| 0.733503
| 0
| 0.069204
| 0.312271
| 20,780
| 459
| 164
| 45.272331
| 0.73032
| 0.027719
| 0
| 0.78273
| 0
| 0
| 0.065946
| 0
| 0
| 0
| 0
| 0
| 0.002786
| 0
| null | null | 0
| 0.008357
| null | null | 0.038997
| 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
|
53f0ca75dc2e3c81ec7b0431d14457bb15f4a568
| 106
|
py
|
Python
|
pygsm/growing_string_methods/__init__.py
|
YuOZW/pyGSM
|
18459cfbc4f04061c65d4c12fa933f85c3ba97f3
|
[
"MIT"
] | 27
|
2019-09-11T15:20:46.000Z
|
2022-03-07T22:41:58.000Z
|
pygsm/growing_string_methods/__init__.py
|
YuOZW/pyGSM
|
18459cfbc4f04061c65d4c12fa933f85c3ba97f3
|
[
"MIT"
] | 27
|
2018-12-03T20:48:11.000Z
|
2022-03-17T05:38:49.000Z
|
pygsm/growing_string_methods/__init__.py
|
YuOZW/pyGSM
|
18459cfbc4f04061c65d4c12fa933f85c3ba97f3
|
[
"MIT"
] | 18
|
2019-12-24T08:05:31.000Z
|
2022-03-01T19:11:23.000Z
|
from .de_gsm import DE_GSM
from .se_gsm import SE_GSM
from .se_cross import SE_Cross
from .gsm import GSM
| 21.2
| 30
| 0.811321
| 22
| 106
| 3.636364
| 0.272727
| 0.3375
| 0.225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 106
| 4
| 31
| 26.5
| 0.888889
| 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
|
53f3ce1b9b53d0c4edca4f4d73c1f75ee4373fb8
| 18,531
|
py
|
Python
|
src/inmediag/migrations/0001_initial.py
|
TechFitU/MDSOM
|
01f58277ec99051cc857de65ce6b240a177da19c
|
[
"MIT"
] | null | null | null |
src/inmediag/migrations/0001_initial.py
|
TechFitU/MDSOM
|
01f58277ec99051cc857de65ce6b240a177da19c
|
[
"MIT"
] | null | null | null |
src/inmediag/migrations/0001_initial.py
|
TechFitU/MDSOM
|
01f58277ec99051cc857de65ce6b240a177da19c
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.1.1 on 2018-09-13 09:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import inmediag.models
import simple_history.models
import smart_selects.db_fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Cliente',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('nombre', models.CharField(max_length=150, unique=True)),
('rfc', models.CharField(blank=True, max_length=30, null=True, unique=True, verbose_name='RFC')),
('domicilio', models.TextField()),
('creado', models.DateTimeField(auto_now_add=True)),
('ultima_actualizacion', models.DateTimeField(auto_now=True, verbose_name='Última actualización')),
('creado_por', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'cliente',
'verbose_name_plural': 'clientes',
'ordering': ['-creado'],
'get_latest_by': 'creado',
},
),
migrations.CreateModel(
name='Diagnostico',
fields=[
('folio', models.CharField(default=inmediag.models.folio_generator, max_length=50, primary_key=True, serialize=False, verbose_name='Folio')),
('pendiente', models.BooleanField(default=True, verbose_name='Pendiente')),
('fecha', models.DateTimeField(default=django.utils.timezone.now)),
('diagnostico', models.TextField(blank=True, null=True, verbose_name='Diagnóstico')),
('creado', models.DateTimeField(auto_now_add=True)),
('ultima_actualizacion', models.DateTimeField(auto_now=True, verbose_name='Última actualización')),
('creado_por', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'diagnóstico',
'verbose_name_plural': 'diagnósticos',
'ordering': ['-folio'],
'get_latest_by': 'folio',
},
),
migrations.CreateModel(
name='Dictado',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('texto', models.TextField(blank=True, null=True, verbose_name='Texto')),
('creado', models.DateTimeField(auto_now_add=True)),
('ultima_actualizacion', models.DateTimeField(auto_now=True, verbose_name='Última actualización')),
('creado_por', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'dictado',
'verbose_name_plural': 'dictados',
'ordering': ['-creado'],
'get_latest_by': 'creado',
},
),
migrations.CreateModel(
name='Doctor',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('nombre', models.CharField(max_length=150, unique=True)),
('domicilio', models.TextField(blank=True, max_length=150, null=True)),
('celular', models.CharField(blank=True, max_length=50, null=True)),
('telefono_particular', models.CharField(blank=True, max_length=50, null=True)),
('creado', models.DateTimeField(auto_now_add=True)),
('ultima_actualizacion', models.DateTimeField(auto_now=True, verbose_name='Última actualización')),
('creado_por', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'doctor',
'verbose_name_plural': 'doctores',
'ordering': ['-creado'],
'get_latest_by': 'creado',
},
),
migrations.CreateModel(
name='Estado',
fields=[
('idestado', models.CharField(max_length=25, primary_key=True, serialize=False)),
('nombre', models.CharField(max_length=45)),
],
options={
'verbose_name': 'estado',
'verbose_name_plural': 'estados',
},
),
migrations.CreateModel(
name='Estudio',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('descripcion', models.CharField(max_length=75, verbose_name='Descripción')),
('costo', models.DecimalField(decimal_places=2, max_digits=6)),
('creado', models.DateTimeField(auto_now_add=True)),
('ultima_actualizacion', models.DateTimeField(auto_now=True, verbose_name='Última actualización')),
('creado_por', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'estudio',
'verbose_name_plural': 'estudios',
'ordering': ['descripcion'],
'get_latest_by': 'creado',
},
),
migrations.CreateModel(
name='Firma',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('firma', models.CharField(max_length=50)),
('creado', models.DateTimeField(auto_now_add=True)),
('ultima_actualizacion', models.DateTimeField(auto_now=True, verbose_name='Última actualización')),
('usuario', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'firma',
'verbose_name_plural': 'Firmas',
'ordering': ['-creado'],
'get_latest_by': 'creado',
},
),
migrations.CreateModel(
name='HistoricalCliente',
fields=[
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')),
('nombre', models.CharField(db_index=True, max_length=150)),
('rfc', models.CharField(blank=True, db_index=True, max_length=30, null=True, verbose_name='RFC')),
('domicilio', models.TextField()),
('creado', models.DateTimeField(blank=True, editable=False)),
('ultima_actualizacion', models.DateTimeField(blank=True, editable=False, verbose_name='Última actualización')),
('history_id', models.AutoField(primary_key=True, serialize=False)),
('history_change_reason', models.CharField(max_length=100, null=True)),
('history_date', models.DateTimeField()),
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)),
('creado_por', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
('estado', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Estado')),
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'historical cliente',
'ordering': ('-history_date', '-history_id'),
'get_latest_by': 'history_date',
},
bases=(simple_history.models.HistoricalChanges, models.Model),
),
migrations.CreateModel(
name='HistoricalDiagnostico',
fields=[
('folio', models.CharField(db_index=True, default=inmediag.models.folio_generator, max_length=50, verbose_name='Folio')),
('pendiente', models.BooleanField(default=True, verbose_name='Pendiente')),
('fecha', models.DateTimeField(default=django.utils.timezone.now)),
('diagnostico', models.TextField(blank=True, null=True, verbose_name='Diagnóstico')),
('creado', models.DateTimeField(blank=True, editable=False)),
('ultima_actualizacion', models.DateTimeField(blank=True, editable=False, verbose_name='Última actualización')),
('history_id', models.AutoField(primary_key=True, serialize=False)),
('history_change_reason', models.CharField(max_length=100, null=True)),
('history_date', models.DateTimeField()),
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)),
('creado_por', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
('dictado', smart_selects.db_fields.ChainedForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Dictado')),
('doctor', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Doctor')),
('estudio', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Estudio')),
('firma', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Firma')),
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'historical diagnóstico',
'ordering': ('-history_date', '-history_id'),
'get_latest_by': 'history_date',
},
bases=(simple_history.models.HistoricalChanges, models.Model),
),
migrations.CreateModel(
name='HistoricalDictado',
fields=[
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')),
('texto', models.TextField(blank=True, null=True, verbose_name='Texto')),
('creado', models.DateTimeField(blank=True, editable=False)),
('ultima_actualizacion', models.DateTimeField(blank=True, editable=False, verbose_name='Última actualización')),
('history_id', models.AutoField(primary_key=True, serialize=False)),
('history_change_reason', models.CharField(max_length=100, null=True)),
('history_date', models.DateTimeField()),
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)),
('creado_por', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
('estudio', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Estudio')),
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'historical dictado',
'ordering': ('-history_date', '-history_id'),
'get_latest_by': 'history_date',
},
bases=(simple_history.models.HistoricalChanges, models.Model),
),
migrations.CreateModel(
name='HistoricalPaciente',
fields=[
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')),
('nombre', models.CharField(max_length=150)),
('rfc', models.CharField(blank=True, default='Desconocido', max_length=30, null=True, verbose_name='ID')),
('creado', models.DateTimeField(blank=True, editable=False)),
('ultima_actualizacion', models.DateTimeField(blank=True, editable=False, verbose_name='Última actualización')),
('history_id', models.AutoField(primary_key=True, serialize=False)),
('history_change_reason', models.CharField(max_length=100, null=True)),
('history_date', models.DateTimeField()),
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)),
('creado_por', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)),
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'historical paciente',
'ordering': ('-history_date', '-history_id'),
'get_latest_by': 'history_date',
},
bases=(simple_history.models.HistoricalChanges, models.Model),
),
migrations.CreateModel(
name='Municipio',
fields=[
('idmunicipio', models.IntegerField(primary_key=True, serialize=False)),
('nombre', models.CharField(max_length=150)),
('idestado', models.ForeignKey(db_column='idestado', on_delete=django.db.models.deletion.CASCADE, to='inmediag.Estado')),
],
options={
'verbose_name': 'municipio',
'verbose_name_plural': 'municipios',
},
),
migrations.CreateModel(
name='Paciente',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('nombre', models.CharField(max_length=150)),
('rfc', models.CharField(blank=True, default='Desconocido', max_length=30, null=True, verbose_name='ID')),
('creado', models.DateTimeField(auto_now_add=True)),
('ultima_actualizacion', models.DateTimeField(auto_now=True, verbose_name='Última actualización')),
('creado_por', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'paciente',
'verbose_name_plural': 'pacientes',
'ordering': ['-creado'],
'get_latest_by': 'creado',
},
),
migrations.AddField(
model_name='historicaldiagnostico',
name='paciente',
field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Paciente'),
),
migrations.AddField(
model_name='historicalcliente',
name='municipio',
field=smart_selects.db_fields.ChainedForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='inmediag.Municipio'),
),
migrations.AddField(
model_name='doctor',
name='pacientes',
field=models.ManyToManyField(blank=True, db_table='inmediag_doctor_paciente', editable=False, to='inmediag.Paciente', verbose_name='Pacientes'),
),
migrations.AddField(
model_name='dictado',
name='estudio',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='inmediag.Estudio'),
),
migrations.AddField(
model_name='diagnostico',
name='dictado',
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estudio', chained_model_field='estudio', null=True, on_delete=django.db.models.deletion.CASCADE, to='inmediag.Dictado'),
),
migrations.AddField(
model_name='diagnostico',
name='doctor',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='inmediag.Doctor'),
),
migrations.AddField(
model_name='diagnostico',
name='estudio',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='inmediag.Estudio'),
),
migrations.AddField(
model_name='diagnostico',
name='firma',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='inmediag.Firma'),
),
migrations.AddField(
model_name='diagnostico',
name='paciente',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='inmediag.Paciente', verbose_name='Paciente'),
),
migrations.AddField(
model_name='cliente',
name='estado',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='inmediag.Estado'),
),
migrations.AddField(
model_name='cliente',
name='municipio',
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='idestado', on_delete=django.db.models.deletion.CASCADE, to='inmediag.Municipio'),
),
]
| 58.642405
| 213
| 0.603367
| 1,852
| 18,531
| 5.830994
| 0.084233
| 0.058061
| 0.042782
| 0.067228
| 0.834892
| 0.819798
| 0.797203
| 0.785536
| 0.769794
| 0.736272
| 0
| 0.005633
| 0.252766
| 18,531
| 315
| 214
| 58.828571
| 0.774247
| 0.002428
| 0
| 0.659091
| 1
| 0
| 0.168362
| 0.008115
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.022727
| 0
| 0.035714
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
54da2d51078e81c54b00913481d3c4348ba726d6
| 75,441
|
py
|
Python
|
plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/schema.py
|
lukaszlaszuk/insightconnect-plugins
|
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
|
[
"MIT"
] | 46
|
2019-06-05T20:47:58.000Z
|
2022-03-29T10:18:01.000Z
|
plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/schema.py
|
lukaszlaszuk/insightconnect-plugins
|
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
|
[
"MIT"
] | 386
|
2019-06-07T20:20:39.000Z
|
2022-03-30T17:35:01.000Z
|
plugins/rapid7_insightvm/komand_rapid7_insightvm/actions/get_asset/schema.py
|
lukaszlaszuk/insightconnect-plugins
|
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
|
[
"MIT"
] | 43
|
2019-07-09T14:13:58.000Z
|
2022-03-28T12:04:46.000Z
|
# GENERATED BY KOMAND SDK - DO NOT EDIT
import komand
import json
class Component:
DESCRIPTION = "Gets an asset by ID"
class Input:
ID = "id"
class Output:
ASSET = "asset"
class GetAssetInput(komand.Input):
schema = json.loads("""
{
"type": "object",
"title": "Variables",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Get an asset by ID",
"order": 1
}
},
"required": [
"id"
]
}
""")
def __init__(self):
super(self.__class__, self).__init__(self.schema)
class GetAssetOutput(komand.Output):
schema = json.loads("""
{
"type": "object",
"title": "Variables",
"properties": {
"asset": {
"$ref": "#/definitions/asset",
"title": "Asset",
"description": "Asset details",
"order": 1
}
},
"required": [
"asset"
],
"definitions": {
"address": {
"type": "object",
"title": "address",
"properties": {
"ip": {
"type": "string",
"title": "IP",
"description": "IPv4 or IPv6 address",
"order": 1
},
"mac": {
"type": "string",
"title": "MAC",
"description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48",
"order": 2
}
}
},
"asset": {
"type": "object",
"title": "asset",
"properties": {
"addresses": {
"type": "array",
"title": "Addresses",
"description": "All addresses discovered on the asset",
"items": {
"$ref": "#/definitions/address"
},
"order": 1
},
"assessedForPolicies": {
"type": "boolean",
"title": "Assessed for Policies",
"description": "Whether the asset has been assessed for policies at least once",
"order": 2
},
"assessedForVulnerabilities": {
"type": "boolean",
"title": "Assessed for Vulnerabilities",
"description": "Whether the asset has been assessed for vulnerabilities at least once",
"order": 3
},
"configurations": {
"type": "array",
"title": "Configurations",
"description": "Configuration key-values pairs enumerated on the asset",
"items": {
"$ref": "#/definitions/configuration"
},
"order": 4
},
"databases": {
"type": "array",
"title": "Databases",
"description": "Databases enumerated on the asset",
"items": {
"$ref": "#/definitions/database"
},
"order": 5
},
"files": {
"type": "array",
"title": "Files",
"description": "Files discovered with searching on the asset",
"items": {
"$ref": "#/definitions/file"
},
"order": 6
},
"history": {
"type": "array",
"title": "History",
"description": "History of changes to the asset over time",
"items": {
"$ref": "#/definitions/history"
},
"order": 7
},
"hostName": {
"type": "string",
"title": "Hostname",
"description": "Primary host name (local or FQDN) of the asset",
"order": 8
},
"hostNames": {
"type": "array",
"title": "Hostnames",
"description": "All hostnames or aliases discovered on the asset",
"items": {
"$ref": "#/definitions/hostName"
},
"order": 9
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the asset",
"order": 10
},
"ids": {
"type": "array",
"title": "IDs",
"description": "Unique identifiers found on the asset, such as hardware or operating system identifiers",
"items": {
"$ref": "#/definitions/id"
},
"order": 11
},
"ip": {
"type": "string",
"title": "IP",
"description": "Primary IPv4 or IPv6 address of the asset",
"order": 12
},
"links": {
"type": "array",
"title": "Links",
"description": "Hypermedia links to corresponding or related resources",
"items": {
"$ref": "#/definitions/link"
},
"order": 13
},
"mac": {
"type": "string",
"title": "MAC",
"description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48",
"order": 14
},
"os": {
"type": "string",
"title": "OS",
"description": "Full description of the operating system of the asset",
"order": 15
},
"osFingerprint": {
"$ref": "#/definitions/osFingerprint",
"title": "OS Fingerprint",
"description": "Details of the operating system of the asset",
"order": 16
},
"rawRiskScore": {
"type": "number",
"title": "Raw Risk Score",
"description": "Base risk score of the asset",
"order": 17
},
"riskScore": {
"type": "number",
"title": "Risk Score",
"description": "Risk score (with criticality adjustments) of the asset",
"order": 18
},
"services": {
"type": "array",
"title": "Services",
"description": "Services discovered on the asset",
"items": {
"$ref": "#/definitions/service"
},
"order": 19
},
"software": {
"type": "array",
"title": "Software",
"description": "Software discovered on the asset",
"items": {
"$ref": "#/definitions/software"
},
"order": 20
},
"type": {
"type": "string",
"title": "Type",
"description": "Type of asset e.g. unknown, guest, hypervisor, physical, mobile",
"order": 21
},
"userGroups": {
"type": "array",
"title": "User Groups",
"description": "User group accounts enumerated on the asset",
"items": {
"$ref": "#/definitions/userGroup"
},
"order": 22
},
"users": {
"type": "array",
"title": "Users",
"description": "User accounts enumerated on the asset",
"items": {
"$ref": "#/definitions/user"
},
"order": 23
},
"vulnerabilities": {
"$ref": "#/definitions/vulnerabilities",
"title": "Vulnerabilities",
"description": " Summary information for vulnerabilities on the asset",
"order": 24
}
},
"definitions": {
"address": {
"type": "object",
"title": "address",
"properties": {
"ip": {
"type": "string",
"title": "IP",
"description": "IPv4 or IPv6 address",
"order": 1
},
"mac": {
"type": "string",
"title": "MAC",
"description": "Media Access Control (MAC) address, e.g. AF:12:BC:5A:F7:48",
"order": 2
}
}
},
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"cpe": {
"type": "object",
"title": "cpe",
"properties": {
"edition": {
"type": "string",
"title": "Edition",
"description": "Edition-related terms applied by the vendor to the product",
"order": 1
},
"language": {
"type": "string",
"title": "Language",
"description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646",
"order": 2
},
"other": {
"type": "string",
"title": "Other",
"description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value",
"order": 3
},
"part": {
"type": "string",
"title": "Part",
"description": "A single letter code that designates the particular platform part that is being identified",
"order": 4
},
"product": {
"type": "string",
"title": "Product",
"description": "Most common and recognizable title or name of the product",
"order": 5
},
"swEdition": {
"type": "string",
"title": "Software Edition",
"description": "Characterizes how the product is tailored to a particular market or class of end users",
"order": 6
},
"targetHW": {
"type": "string",
"title": "Target Hardware",
"description": "Characterize the instruction set architecture on which the product operates",
"order": 7
},
"targetSW": {
"type": "string",
"title": "Target Software",
"description": "Characterizes the software computing environment within which the product operates",
"order": 8
},
"update": {
"type": "string",
"title": "Update",
"description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product",
"order": 9
},
"v2.2": {
"type": "string",
"title": "Version 2.2",
"description": "The full CPE string in the CPE 2.2 format",
"order": 10
},
"v2.3": {
"type": "string",
"title": "Version 2.3",
"description": "The full CPE string in the CPE 2.3 format",
"order": 11
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "The person or organization that manufactured or created the product",
"order": 12
},
"version": {
"type": "string",
"title": "Version",
"description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product",
"order": 13
}
}
},
"database": {
"type": "object",
"title": "database",
"properties": {
"description": {
"type": "string",
"title": "Description",
"description": "Description of the database instance",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the database",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the database instance",
"order": 3
}
}
},
"file": {
"id": "file",
"type": "object",
"title": "File",
"description": "File Object",
"properties": {
"content": {
"type": "string",
"title": "Content",
"description": "File contents",
"format": "bytes"
},
"filename": {
"type": "string",
"title": "Filename",
"description": "Name of file"
}
}
},
"history": {
"type": "object",
"title": "history",
"properties": {
"date": {
"type": "string",
"title": "Date",
"description": "Date the asset information was collected or changed",
"order": 1
},
"description": {
"type": "string",
"title": "Description",
"description": "Additional information describing the change",
"order": 2
},
"scanId": {
"type": "integer",
"title": "Scan ID",
"description": "If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in",
"order": 3
},
"type": {
"type": "string",
"title": "Type",
"description": "Type, for additional information see the help section of this plugin",
"order": 4
},
"user": {
"type": "string",
"title": "User",
"description": "User",
"order": 5
},
"version": {
"type": "integer",
"title": "Version",
"description": "Version",
"order": 6
},
"vulnerabilityExceptionId": {
"type": "integer",
"title": "Vulnerability Exception ID",
"description": "Vulnerability exception ID",
"order": 7
}
}
},
"hostName": {
"type": "object",
"title": "hostName",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name",
"order": 1
},
"source": {
"type": "string",
"title": "Source",
"description": "Source",
"order": 2
}
}
},
"id": {
"type": "object",
"title": "id",
"properties": {
"id": {
"type": "string",
"title": "ID",
"description": "ID",
"order": 1
},
"source": {
"type": "string",
"title": "Source",
"description": "Source",
"order": 2
}
}
},
"link": {
"type": "object",
"title": "link",
"properties": {
"href": {
"type": "string",
"title": "URL",
"description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)",
"order": 1
},
"rel": {
"type": "string",
"title": "Rel",
"description": "Link relation type following RFC 5988",
"order": 2
}
}
},
"osFingerprint": {
"type": "object",
"title": "osFingerprint",
"properties": {
"architecture": {
"type": "string",
"title": "Architecture",
"description": "The architecture of the operating system",
"order": 1
},
"configurations": {
"type": "array",
"title": "Configuration",
"description": "Configuration key-values pairs enumerated on the operating system",
"items": {
"$ref": "#/definitions/configuration"
},
"order": 2
},
"cpe": {
"$ref": "#/definitions/cpe",
"title": "CPE",
"description": "Common Platform Enumeration",
"order": 3
},
"description": {
"type": "string",
"title": "Description",
"description": "The description of the operating system (containing vendor, family, product, version and architecture in a single string)",
"order": 4
},
"family": {
"type": "string",
"title": "Family",
"description": "Family of the operating system",
"order": 5
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the operating system",
"order": 6
},
"product": {
"type": "string",
"title": "Product",
"description": "Name of the operating system",
"order": 7
},
"systemName": {
"type": "string",
"title": "System Name",
"description": "A combination of vendor and family (with redundancies removed), suitable for grouping",
"order": 8
},
"type": {
"type": "string",
"title": "Type",
"description": "Type of operating system",
"order": 9
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "Vendor of the operating system",
"order": 10
},
"version": {
"type": "string",
"title": "Version",
"description": "Version of the operating system",
"order": 11
}
},
"definitions": {
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"cpe": {
"type": "object",
"title": "cpe",
"properties": {
"edition": {
"type": "string",
"title": "Edition",
"description": "Edition-related terms applied by the vendor to the product",
"order": 1
},
"language": {
"type": "string",
"title": "Language",
"description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646",
"order": 2
},
"other": {
"type": "string",
"title": "Other",
"description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value",
"order": 3
},
"part": {
"type": "string",
"title": "Part",
"description": "A single letter code that designates the particular platform part that is being identified",
"order": 4
},
"product": {
"type": "string",
"title": "Product",
"description": "Most common and recognizable title or name of the product",
"order": 5
},
"swEdition": {
"type": "string",
"title": "Software Edition",
"description": "Characterizes how the product is tailored to a particular market or class of end users",
"order": 6
},
"targetHW": {
"type": "string",
"title": "Target Hardware",
"description": "Characterize the instruction set architecture on which the product operates",
"order": 7
},
"targetSW": {
"type": "string",
"title": "Target Software",
"description": "Characterizes the software computing environment within which the product operates",
"order": 8
},
"update": {
"type": "string",
"title": "Update",
"description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product",
"order": 9
},
"v2.2": {
"type": "string",
"title": "Version 2.2",
"description": "The full CPE string in the CPE 2.2 format",
"order": 10
},
"v2.3": {
"type": "string",
"title": "Version 2.3",
"description": "The full CPE string in the CPE 2.3 format",
"order": 11
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "The person or organization that manufactured or created the product",
"order": 12
},
"version": {
"type": "string",
"title": "Version",
"description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product",
"order": 13
}
}
}
}
},
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
},
"service": {
"type": "object",
"title": "service",
"properties": {
"configurations": {
"type": "array",
"title": "Configurations",
"description": "Configuration key-values pairs enumerated on the service",
"items": {
"$ref": "#/definitions/configuration"
},
"order": 1
},
"databases": {
"type": "array",
"title": "Databases",
"description": "Databases enumerated on the service",
"items": {
"$ref": "#/definitions/database"
},
"order": 2
},
"family": {
"type": "string",
"title": "Family",
"description": "Family of the service",
"order": 3
},
"links": {
"type": "array",
"title": "Links",
"description": "Hypermedia links to corresponding or related resources",
"items": {
"$ref": "#/definitions/link"
},
"order": 4
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the service",
"order": 5
},
"port": {
"type": "integer",
"title": "Port",
"description": "Port of the service",
"order": 6
},
"product": {
"type": "string",
"title": "Product",
"description": "Product running the service",
"order": 7
},
"protocol": {
"type": "string",
"title": "Protocol",
"description": "Protocol of the service",
"order": 8
},
"userGroups": {
"type": "array",
"title": "User Groups",
"description": "User groups",
"items": {
"$ref": "#/definitions/userGroup"
},
"order": 9
},
"users": {
"type": "array",
"title": "Users",
"description": "Users",
"items": {
"$ref": "#/definitions/user"
},
"order": 10
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "Vendor of the service",
"order": 11
},
"version": {
"type": "string",
"title": "Version",
"description": "Version of the service",
"order": 12
},
"webApplications": {
"type": "array",
"title": "Web Applications",
"description": "Web applications found on the service",
"items": {
"$ref": "#/definitions/webApplication"
},
"order": 13
}
},
"definitions": {
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"database": {
"type": "object",
"title": "database",
"properties": {
"description": {
"type": "string",
"title": "Description",
"description": "Description of the database instance",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the database",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the database instance",
"order": 3
}
}
},
"link": {
"type": "object",
"title": "link",
"properties": {
"href": {
"type": "string",
"title": "URL",
"description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)",
"order": 1
},
"rel": {
"type": "string",
"title": "Rel",
"description": "Link relation type following RFC 5988",
"order": 2
}
}
},
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
},
"user": {
"type": "object",
"title": "user",
"properties": {
"fullName": {
"type": "string",
"title": "Full Name",
"description": "Full name of the user account",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user account",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user account",
"order": 3
}
}
},
"userGroup": {
"type": "object",
"title": "userGroup",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user group",
"order": 1
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user group",
"order": 2
}
}
},
"webApplication": {
"type": "object",
"title": "webApplication",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the web application",
"order": 1
},
"pages": {
"type": "array",
"title": "Pages",
"description": "Pages",
"items": {
"$ref": "#/definitions/page"
},
"order": 2
},
"root": {
"type": "string",
"title": "Root",
"description": "Web root of the web application",
"order": 3
},
"virtualHost": {
"type": "string",
"title": "Virtual Host",
"description": "Virtual host of the web application",
"order": 4
}
},
"definitions": {
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
}
}
}
}
},
"software": {
"type": "object",
"title": "software",
"properties": {
"configurations": {
"type": "array",
"title": "Configurations",
"description": "Configurations",
"items": {
"$ref": "#/definitions/configuration"
},
"order": 1
},
"cpe": {
"$ref": "#/definitions/cpe",
"title": "CPE",
"description": "CPE",
"order": 2
},
"description": {
"type": "string",
"title": "Description",
"description": "Description of the software",
"order": 3
},
"family": {
"type": "string",
"title": "Family",
"description": "Family of the software",
"order": 4
},
"id": {
"type": "integer",
"title": "ID",
"description": "ID",
"order": 5
},
"product": {
"type": "string",
"title": "Product",
"description": "Product of the software",
"order": 6
},
"type": {
"type": "string",
"title": "Type",
"description": "Type of the software",
"order": 7
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "Vendor of the software",
"order": 8
},
"version": {
"type": "string",
"title": "Version",
"description": "Version of the software",
"order": 9
}
},
"definitions": {
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"cpe": {
"type": "object",
"title": "cpe",
"properties": {
"edition": {
"type": "string",
"title": "Edition",
"description": "Edition-related terms applied by the vendor to the product",
"order": 1
},
"language": {
"type": "string",
"title": "Language",
"description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646",
"order": 2
},
"other": {
"type": "string",
"title": "Other",
"description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value",
"order": 3
},
"part": {
"type": "string",
"title": "Part",
"description": "A single letter code that designates the particular platform part that is being identified",
"order": 4
},
"product": {
"type": "string",
"title": "Product",
"description": "Most common and recognizable title or name of the product",
"order": 5
},
"swEdition": {
"type": "string",
"title": "Software Edition",
"description": "Characterizes how the product is tailored to a particular market or class of end users",
"order": 6
},
"targetHW": {
"type": "string",
"title": "Target Hardware",
"description": "Characterize the instruction set architecture on which the product operates",
"order": 7
},
"targetSW": {
"type": "string",
"title": "Target Software",
"description": "Characterizes the software computing environment within which the product operates",
"order": 8
},
"update": {
"type": "string",
"title": "Update",
"description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product",
"order": 9
},
"v2.2": {
"type": "string",
"title": "Version 2.2",
"description": "The full CPE string in the CPE 2.2 format",
"order": 10
},
"v2.3": {
"type": "string",
"title": "Version 2.3",
"description": "The full CPE string in the CPE 2.3 format",
"order": 11
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "The person or organization that manufactured or created the product",
"order": 12
},
"version": {
"type": "string",
"title": "Version",
"description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product",
"order": 13
}
}
}
}
},
"user": {
"type": "object",
"title": "user",
"properties": {
"fullName": {
"type": "string",
"title": "Full Name",
"description": "Full name of the user account",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user account",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user account",
"order": 3
}
}
},
"userGroup": {
"type": "object",
"title": "userGroup",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user group",
"order": 1
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user group",
"order": 2
}
}
},
"vulnerabilities": {
"type": "object",
"title": "vulnerabilities",
"properties": {
"critical": {
"type": "integer",
"title": "Critical",
"description": "Number of critical vulnerabilities",
"order": 1
},
"exploits": {
"type": "integer",
"title": "Exploits",
"description": "Number of distinct exploits that can exploit any of the vulnerabilities on the asset",
"order": 2
},
"malwareKits": {
"type": "integer",
"title": "Malware Kits",
"description": "Number of distinct malware kits that vulnerabilities on the asset are susceptible to",
"order": 3
},
"moderate": {
"type": "integer",
"title": "Moderate",
"description": "Number of moderate vulnerabilities",
"order": 4
},
"severe": {
"type": "integer",
"title": "Severe",
"description": "Number of severe vulnerabilities",
"order": 5
},
"total": {
"type": "integer",
"title": "Total",
"description": "Total number of vulnerabilities",
"order": 6
}
}
},
"webApplication": {
"type": "object",
"title": "webApplication",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the web application",
"order": 1
},
"pages": {
"type": "array",
"title": "Pages",
"description": "Pages",
"items": {
"$ref": "#/definitions/page"
},
"order": 2
},
"root": {
"type": "string",
"title": "Root",
"description": "Web root of the web application",
"order": 3
},
"virtualHost": {
"type": "string",
"title": "Virtual Host",
"description": "Virtual host of the web application",
"order": 4
}
},
"definitions": {
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
}
}
}
}
},
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"cpe": {
"type": "object",
"title": "cpe",
"properties": {
"edition": {
"type": "string",
"title": "Edition",
"description": "Edition-related terms applied by the vendor to the product",
"order": 1
},
"language": {
"type": "string",
"title": "Language",
"description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646",
"order": 2
},
"other": {
"type": "string",
"title": "Other",
"description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value",
"order": 3
},
"part": {
"type": "string",
"title": "Part",
"description": "A single letter code that designates the particular platform part that is being identified",
"order": 4
},
"product": {
"type": "string",
"title": "Product",
"description": "Most common and recognizable title or name of the product",
"order": 5
},
"swEdition": {
"type": "string",
"title": "Software Edition",
"description": "Characterizes how the product is tailored to a particular market or class of end users",
"order": 6
},
"targetHW": {
"type": "string",
"title": "Target Hardware",
"description": "Characterize the instruction set architecture on which the product operates",
"order": 7
},
"targetSW": {
"type": "string",
"title": "Target Software",
"description": "Characterizes the software computing environment within which the product operates",
"order": 8
},
"update": {
"type": "string",
"title": "Update",
"description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product",
"order": 9
},
"v2.2": {
"type": "string",
"title": "Version 2.2",
"description": "The full CPE string in the CPE 2.2 format",
"order": 10
},
"v2.3": {
"type": "string",
"title": "Version 2.3",
"description": "The full CPE string in the CPE 2.3 format",
"order": 11
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "The person or organization that manufactured or created the product",
"order": 12
},
"version": {
"type": "string",
"title": "Version",
"description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product",
"order": 13
}
}
},
"database": {
"type": "object",
"title": "database",
"properties": {
"description": {
"type": "string",
"title": "Description",
"description": "Description of the database instance",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the database",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the database instance",
"order": 3
}
}
},
"file": {
"id": "file",
"type": "object",
"title": "File",
"description": "File Object",
"properties": {
"content": {
"type": "string",
"title": "Content",
"description": "File contents",
"format": "bytes"
},
"filename": {
"type": "string",
"title": "Filename",
"description": "Name of file"
}
}
},
"history": {
"type": "object",
"title": "history",
"properties": {
"date": {
"type": "string",
"title": "Date",
"description": "Date the asset information was collected or changed",
"order": 1
},
"description": {
"type": "string",
"title": "Description",
"description": "Additional information describing the change",
"order": 2
},
"scanId": {
"type": "integer",
"title": "Scan ID",
"description": "If a scan-oriented change, the identifier of the corresponding scan the asset was scanned in",
"order": 3
},
"type": {
"type": "string",
"title": "Type",
"description": "Type, for additional information see the help section of this plugin",
"order": 4
},
"user": {
"type": "string",
"title": "User",
"description": "User",
"order": 5
},
"version": {
"type": "integer",
"title": "Version",
"description": "Version",
"order": 6
},
"vulnerabilityExceptionId": {
"type": "integer",
"title": "Vulnerability Exception ID",
"description": "Vulnerability exception ID",
"order": 7
}
}
},
"hostName": {
"type": "object",
"title": "hostName",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name",
"order": 1
},
"source": {
"type": "string",
"title": "Source",
"description": "Source",
"order": 2
}
}
},
"id": {
"type": "object",
"title": "id",
"properties": {
"id": {
"type": "string",
"title": "ID",
"description": "ID",
"order": 1
},
"source": {
"type": "string",
"title": "Source",
"description": "Source",
"order": 2
}
}
},
"link": {
"type": "object",
"title": "link",
"properties": {
"href": {
"type": "string",
"title": "URL",
"description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)",
"order": 1
},
"rel": {
"type": "string",
"title": "Rel",
"description": "Link relation type following RFC 5988",
"order": 2
}
}
},
"osFingerprint": {
"type": "object",
"title": "osFingerprint",
"properties": {
"architecture": {
"type": "string",
"title": "Architecture",
"description": "The architecture of the operating system",
"order": 1
},
"configurations": {
"type": "array",
"title": "Configuration",
"description": "Configuration key-values pairs enumerated on the operating system",
"items": {
"$ref": "#/definitions/configuration"
},
"order": 2
},
"cpe": {
"$ref": "#/definitions/cpe",
"title": "CPE",
"description": "Common Platform Enumeration",
"order": 3
},
"description": {
"type": "string",
"title": "Description",
"description": "The description of the operating system (containing vendor, family, product, version and architecture in a single string)",
"order": 4
},
"family": {
"type": "string",
"title": "Family",
"description": "Family of the operating system",
"order": 5
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the operating system",
"order": 6
},
"product": {
"type": "string",
"title": "Product",
"description": "Name of the operating system",
"order": 7
},
"systemName": {
"type": "string",
"title": "System Name",
"description": "A combination of vendor and family (with redundancies removed), suitable for grouping",
"order": 8
},
"type": {
"type": "string",
"title": "Type",
"description": "Type of operating system",
"order": 9
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "Vendor of the operating system",
"order": 10
},
"version": {
"type": "string",
"title": "Version",
"description": "Version of the operating system",
"order": 11
}
},
"definitions": {
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"cpe": {
"type": "object",
"title": "cpe",
"properties": {
"edition": {
"type": "string",
"title": "Edition",
"description": "Edition-related terms applied by the vendor to the product",
"order": 1
},
"language": {
"type": "string",
"title": "Language",
"description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646",
"order": 2
},
"other": {
"type": "string",
"title": "Other",
"description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value",
"order": 3
},
"part": {
"type": "string",
"title": "Part",
"description": "A single letter code that designates the particular platform part that is being identified",
"order": 4
},
"product": {
"type": "string",
"title": "Product",
"description": "Most common and recognizable title or name of the product",
"order": 5
},
"swEdition": {
"type": "string",
"title": "Software Edition",
"description": "Characterizes how the product is tailored to a particular market or class of end users",
"order": 6
},
"targetHW": {
"type": "string",
"title": "Target Hardware",
"description": "Characterize the instruction set architecture on which the product operates",
"order": 7
},
"targetSW": {
"type": "string",
"title": "Target Software",
"description": "Characterizes the software computing environment within which the product operates",
"order": 8
},
"update": {
"type": "string",
"title": "Update",
"description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product",
"order": 9
},
"v2.2": {
"type": "string",
"title": "Version 2.2",
"description": "The full CPE string in the CPE 2.2 format",
"order": 10
},
"v2.3": {
"type": "string",
"title": "Version 2.3",
"description": "The full CPE string in the CPE 2.3 format",
"order": 11
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "The person or organization that manufactured or created the product",
"order": 12
},
"version": {
"type": "string",
"title": "Version",
"description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product",
"order": 13
}
}
}
}
},
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
},
"service": {
"type": "object",
"title": "service",
"properties": {
"configurations": {
"type": "array",
"title": "Configurations",
"description": "Configuration key-values pairs enumerated on the service",
"items": {
"$ref": "#/definitions/configuration"
},
"order": 1
},
"databases": {
"type": "array",
"title": "Databases",
"description": "Databases enumerated on the service",
"items": {
"$ref": "#/definitions/database"
},
"order": 2
},
"family": {
"type": "string",
"title": "Family",
"description": "Family of the service",
"order": 3
},
"links": {
"type": "array",
"title": "Links",
"description": "Hypermedia links to corresponding or related resources",
"items": {
"$ref": "#/definitions/link"
},
"order": 4
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the service",
"order": 5
},
"port": {
"type": "integer",
"title": "Port",
"description": "Port of the service",
"order": 6
},
"product": {
"type": "string",
"title": "Product",
"description": "Product running the service",
"order": 7
},
"protocol": {
"type": "string",
"title": "Protocol",
"description": "Protocol of the service",
"order": 8
},
"userGroups": {
"type": "array",
"title": "User Groups",
"description": "User groups",
"items": {
"$ref": "#/definitions/userGroup"
},
"order": 9
},
"users": {
"type": "array",
"title": "Users",
"description": "Users",
"items": {
"$ref": "#/definitions/user"
},
"order": 10
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "Vendor of the service",
"order": 11
},
"version": {
"type": "string",
"title": "Version",
"description": "Version of the service",
"order": 12
},
"webApplications": {
"type": "array",
"title": "Web Applications",
"description": "Web applications found on the service",
"items": {
"$ref": "#/definitions/webApplication"
},
"order": 13
}
},
"definitions": {
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"database": {
"type": "object",
"title": "database",
"properties": {
"description": {
"type": "string",
"title": "Description",
"description": "Description of the database instance",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the database",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the database instance",
"order": 3
}
}
},
"link": {
"type": "object",
"title": "link",
"properties": {
"href": {
"type": "string",
"title": "URL",
"description": "A hypertext reference, which is either a URI (see RFC 3986) or URI template (see RFC 6570)",
"order": 1
},
"rel": {
"type": "string",
"title": "Rel",
"description": "Link relation type following RFC 5988",
"order": 2
}
}
},
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
},
"user": {
"type": "object",
"title": "user",
"properties": {
"fullName": {
"type": "string",
"title": "Full Name",
"description": "Full name of the user account",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user account",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user account",
"order": 3
}
}
},
"userGroup": {
"type": "object",
"title": "userGroup",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user group",
"order": 1
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user group",
"order": 2
}
}
},
"webApplication": {
"type": "object",
"title": "webApplication",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the web application",
"order": 1
},
"pages": {
"type": "array",
"title": "Pages",
"description": "Pages",
"items": {
"$ref": "#/definitions/page"
},
"order": 2
},
"root": {
"type": "string",
"title": "Root",
"description": "Web root of the web application",
"order": 3
},
"virtualHost": {
"type": "string",
"title": "Virtual Host",
"description": "Virtual host of the web application",
"order": 4
}
},
"definitions": {
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
}
}
}
}
},
"software": {
"type": "object",
"title": "software",
"properties": {
"configurations": {
"type": "array",
"title": "Configurations",
"description": "Configurations",
"items": {
"$ref": "#/definitions/configuration"
},
"order": 1
},
"cpe": {
"$ref": "#/definitions/cpe",
"title": "CPE",
"description": "CPE",
"order": 2
},
"description": {
"type": "string",
"title": "Description",
"description": "Description of the software",
"order": 3
},
"family": {
"type": "string",
"title": "Family",
"description": "Family of the software",
"order": 4
},
"id": {
"type": "integer",
"title": "ID",
"description": "ID",
"order": 5
},
"product": {
"type": "string",
"title": "Product",
"description": "Product of the software",
"order": 6
},
"type": {
"type": "string",
"title": "Type",
"description": "Type of the software",
"order": 7
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "Vendor of the software",
"order": 8
},
"version": {
"type": "string",
"title": "Version",
"description": "Version of the software",
"order": 9
}
},
"definitions": {
"configuration": {
"type": "object",
"title": "configuration",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the configuration value",
"order": 1
},
"value": {
"type": "string",
"title": "Value",
"description": "Configuration value",
"order": 2
}
}
},
"cpe": {
"type": "object",
"title": "cpe",
"properties": {
"edition": {
"type": "string",
"title": "Edition",
"description": "Edition-related terms applied by the vendor to the product",
"order": 1
},
"language": {
"type": "string",
"title": "Language",
"description": "Defines the language supported in the user interface of the product being described. The format of the language tag adheres to RFC 5646",
"order": 2
},
"other": {
"type": "string",
"title": "Other",
"description": "Captures any other general descriptive or identifying information which is vendor- or product-specific and which does not logically fit in any other attribute value",
"order": 3
},
"part": {
"type": "string",
"title": "Part",
"description": "A single letter code that designates the particular platform part that is being identified",
"order": 4
},
"product": {
"type": "string",
"title": "Product",
"description": "Most common and recognizable title or name of the product",
"order": 5
},
"swEdition": {
"type": "string",
"title": "Software Edition",
"description": "Characterizes how the product is tailored to a particular market or class of end users",
"order": 6
},
"targetHW": {
"type": "string",
"title": "Target Hardware",
"description": "Characterize the instruction set architecture on which the product operates",
"order": 7
},
"targetSW": {
"type": "string",
"title": "Target Software",
"description": "Characterizes the software computing environment within which the product operates",
"order": 8
},
"update": {
"type": "string",
"title": "Update",
"description": "Vendor-specific alphanumeric strings characterizing the particular update, service pack, or point release of the product",
"order": 9
},
"v2.2": {
"type": "string",
"title": "Version 2.2",
"description": "The full CPE string in the CPE 2.2 format",
"order": 10
},
"v2.3": {
"type": "string",
"title": "Version 2.3",
"description": "The full CPE string in the CPE 2.3 format",
"order": 11
},
"vendor": {
"type": "string",
"title": "Vendor",
"description": "The person or organization that manufactured or created the product",
"order": 12
},
"version": {
"type": "string",
"title": "Version",
"description": "Vendor-specific alphanumeric strings characterizing the particular release version of the product",
"order": 13
}
}
}
}
},
"user": {
"type": "object",
"title": "user",
"properties": {
"fullName": {
"type": "string",
"title": "Full Name",
"description": "Full name of the user account",
"order": 1
},
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user account",
"order": 2
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user account",
"order": 3
}
}
},
"userGroup": {
"type": "object",
"title": "userGroup",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the user group",
"order": 1
},
"name": {
"type": "string",
"title": "Name",
"description": "Name of the user group",
"order": 2
}
}
},
"vulnerabilities": {
"type": "object",
"title": "vulnerabilities",
"properties": {
"critical": {
"type": "integer",
"title": "Critical",
"description": "Number of critical vulnerabilities",
"order": 1
},
"exploits": {
"type": "integer",
"title": "Exploits",
"description": "Number of distinct exploits that can exploit any of the vulnerabilities on the asset",
"order": 2
},
"malwareKits": {
"type": "integer",
"title": "Malware Kits",
"description": "Number of distinct malware kits that vulnerabilities on the asset are susceptible to",
"order": 3
},
"moderate": {
"type": "integer",
"title": "Moderate",
"description": "Number of moderate vulnerabilities",
"order": 4
},
"severe": {
"type": "integer",
"title": "Severe",
"description": "Number of severe vulnerabilities",
"order": 5
},
"total": {
"type": "integer",
"title": "Total",
"description": "Total number of vulnerabilities",
"order": 6
}
}
},
"webApplication": {
"type": "object",
"title": "webApplication",
"properties": {
"id": {
"type": "integer",
"title": "ID",
"description": "Identifier of the web application",
"order": 1
},
"pages": {
"type": "array",
"title": "Pages",
"description": "Pages",
"items": {
"$ref": "#/definitions/page"
},
"order": 2
},
"root": {
"type": "string",
"title": "Root",
"description": "Web root of the web application",
"order": 3
},
"virtualHost": {
"type": "string",
"title": "Virtual Host",
"description": "Virtual host of the web application",
"order": 4
}
},
"definitions": {
"page": {
"type": "object",
"title": "page",
"properties": {
"linkType": {
"type": "string",
"title": "Link Type",
"description": "Type of link used to traverse or detect the page",
"order": 1
},
"path": {
"type": "string",
"title": "Path",
"description": "Path to the page (URI)",
"order": 2
},
"response": {
"type": "integer",
"title": "Response",
"description": "HTTP response code observed with retrieving the page",
"order": 3
}
}
}
}
}
}
}
""")
def __init__(self):
super(self.__class__, self).__init__(self.schema)
| 31.618189
| 200
| 0.4025
| 5,509
| 75,441
| 5.507533
| 0.060265
| 0.070861
| 0.106292
| 0.015029
| 0.946277
| 0.941366
| 0.938268
| 0.930523
| 0.916054
| 0.914538
| 0
| 0.012783
| 0.457656
| 75,441
| 2,385
| 201
| 31.631447
| 0.728779
| 0.00049
| 0
| 0.761383
| 1
| 0.012648
| 0.994178
| 0.009496
| 0
| 0
| 0
| 0
| 0
| 1
| 0.000843
| false
| 0
| 0.000843
| 0
| 0.005902
| 0.002951
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
54fb99738905658d565efe1b2a19095148a3c067
| 1,257
|
py
|
Python
|
days/day10.py
|
Kurocon/AdventOfCode2015
|
ced591706c01e0512890782c2189ffed1df1c4d1
|
[
"BSD-3-Clause"
] | null | null | null |
days/day10.py
|
Kurocon/AdventOfCode2015
|
ced591706c01e0512890782c2189ffed1df1c4d1
|
[
"BSD-3-Clause"
] | null | null | null |
days/day10.py
|
Kurocon/AdventOfCode2015
|
ced591706c01e0512890782c2189ffed1df1c4d1
|
[
"BSD-3-Clause"
] | null | null | null |
from days import AOCDay, day
@day(10)
class Day10(AOCDay):
print_debug = "c12"
test_input = """111221"""
def common(self, input_data):
pass
def part1(self, input_data):
inp = self.input_data
for i in range(40):
prev_c = None
counter = 0
new_inp = ""
for c in inp:
if c != prev_c:
if prev_c is not None:
new_inp += str(counter) + str(prev_c)
prev_c = c
counter = 1
else:
counter += 1
new_inp += str(counter) + str(prev_c)
inp = new_inp
yield len(inp)
def part2(self, input_data):
inp = self.input_data
for i in range(50):
prev_c = None
counter = 0
new_inp = ""
for c in inp:
if c != prev_c:
if prev_c is not None:
new_inp += str(counter) + str(prev_c)
prev_c = c
counter = 1
else:
counter += 1
new_inp += str(counter) + str(prev_c)
inp = new_inp
yield len(inp)
| 26.744681
| 61
| 0.417661
| 148
| 1,257
| 3.364865
| 0.283784
| 0.120482
| 0.130522
| 0.128514
| 0.763052
| 0.763052
| 0.763052
| 0.763052
| 0.763052
| 0.763052
| 0
| 0.038217
| 0.500398
| 1,257
| 46
| 62
| 27.326087
| 0.754777
| 0
| 0
| 0.731707
| 0
| 0
| 0.00716
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.073171
| false
| 0.02439
| 0.02439
| 0
| 0.170732
| 0.02439
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 7
|
071562078fb520903786ee195600fc00db8a9d51
| 72,539
|
py
|
Python
|
results/asia_200k_DVAE/models.py
|
jojker/D-VAE
|
2ff77caae4078bbb7ac9c5e0a506d32d0180507d
|
[
"MIT"
] | null | null | null |
results/asia_200k_DVAE/models.py
|
jojker/D-VAE
|
2ff77caae4078bbb7ac9c5e0a506d32d0180507d
|
[
"MIT"
] | null | null | null |
results/asia_200k_DVAE/models.py
|
jojker/D-VAE
|
2ff77caae4078bbb7ac9c5e0a506d32d0180507d
|
[
"MIT"
] | null | null | null |
import math
import random
import torch
from torch import nn
from torch.nn import functional as F
import torch.nn.init as init
import numpy as np
import igraph
import pdb
# This file implements several VAE models for DAGs, including SVAE, GraphRNN, DVAE, GCN etc.
'''
String Variational Autoencoder (S-VAE). Treat DAGs as sequences of node descriptors.
A node descriptor is the concatenation of the node type's one-hot encoding and its
bit connections from other nodes. Nodes in a sequence are in a topological order.
'''
class SVAE(nn.Module):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False):
super(SVAE, self).__init__()
self.max_n = max_n # maximum number of vertices
self.nvt = nvt # number of vertex types
self.xs = (nvt + max_n-1) # size of input x for GRU,
# [one_hot(vertex_type), bit(connections)]
self.START_TYPE = START_TYPE
self.END_TYPE = END_TYPE
self.hs = hs # hidden state size of each vertex
self.nz = nz # size of latent representation z
self.gs = hs # graph state size
self.bidir = bidirectional # whether to use bidirectional encoding
self.device = None
# 0. encoding-related
self.grue = nn.GRU(self.xs, hs, batch_first=True, bidirectional=self.bidir) # encoder GRU
self.fc1 = nn.Linear(self.gs, nz) # latent mean
self.fc2 = nn.Linear(self.gs, nz) # latent logvar
# 1. decoding-related
self.grud = nn.GRU(hs, hs, batch_first=True) # decoder GRU
self.fc3 = nn.Linear(nz, hs) # from latent z to initial hidden state h0
self.add_vertex = nn.Sequential(
nn.Linear(self.hs, self.hs),
nn.ReLU(),
nn.Linear(self.hs, self.nvt),
)
self.add_edges = nn.Sequential(
nn.Linear(self.hs, self.hs),
nn.ReLU(),
nn.Linear(self.hs, self.max_n - 1),
)
# 2. bidir-related, to unify sizes
if self.bidir:
self.hg_unify = nn.Sequential(
nn.Linear(self.hs * 2, self.hs),
)
self.hv_unify = nn.Sequential(
nn.Linear(self.hs * 2, self.hs),
)
# 3. other
self.relu = nn.ReLU()
self.sigmoid = nn.Sigmoid()
self.tanh = nn.Tanh()
def get_device(self):
if self.device is None:
self.device = next(self.parameters()).device
return self.device
def _get_zeros(self, n, length):
return torch.zeros(n, length).to(self.get_device()) # get a zero hidden state
def _get_zero_hidden(self, n=1):
return self._get_zeros(n, self.hs) # get a zero hidden state
def _one_hot(self, idx, length):
if type(idx) in [list, range]:
if idx == []:
return None
idx = torch.LongTensor(idx).unsqueeze(0).t()
x = torch.zeros((len(idx), length)).scatter_(1, idx, 1).to(self.get_device())
else:
idx = torch.LongTensor([idx]).unsqueeze(0)
x = torch.zeros((1, length)).scatter_(1, idx, 1).to(self.get_device())
return x
def _collate_fn(self, G):
# create mini_batch of tensors from list G by padding
# each graph g is a 1 * (n_vertex - 1) * (n_types + n_vertex-1) tensor
# pad all to 1 * (max_n - 1) * (n_types + max_n-1) tensors
if type(G) != list:
G = [G]
G_new = []
for g in G:
if g.shape[1] < self.max_n - 1:
padding = torch.zeros(1, self.max_n-1-g.shape[1], g.shape[2]).to(self.get_device())
padding[0, :, self.START_TYPE] = 1 # use start type's bit to indicate padding
# nodes (since start types are never predicted)
g = torch.cat([g, padding], 1)
if g.shape[2] < self.xs:
padding = torch.zeros(1, g.shape[1], self.xs-g.shape[2]).to(self.get_device())
g = torch.cat([g, padding], 2) # pad zeros to indicate no connections to padding
# nodes
G_new.append(g)
return torch.cat(G_new, 0)
def encode(self, G):
# G: [batch_size * max_n-1 * xs]
_, Hn = self.grue(G)
Hg = Hn.view(Hn.shape[1], -1) # Hn's second dimension is "batch"
if self.bidir:
Hg = self.hg_unify(Hg)
mu, logvar = self.fc1(Hg), self.fc2(Hg)
return mu, logvar
def reparameterize(self, mu, logvar, eps_scale=0.01):
#return mu
if self.training:
std = logvar.mul(0.5).exp_()
eps = torch.randn_like(std) * eps_scale
return eps.mul(std).add_(mu)
else:
return mu
def _decode(self, z):
H0 = self.relu(self.fc3(z))
H_in = H0.unsqueeze(1).expand(-1, self.max_n - 1, -1)
H_out, _ = self.grud(H_in)
type_scores = self.add_vertex(H_out) # batch * max_n-1 * nvt
edge_scores = self.sigmoid(self.add_edges(H_out)) # batch * max_n-1 * max_n-1
return type_scores, edge_scores
def decode(self, z):
type_scores, edge_scores = self._decode(z)
return self.construct_igraph(type_scores, edge_scores)
def loss(self, mu, logvar, G_true, beta=0.005):
# G_true: [batch_size * max_n-1 * xs]
z = self.reparameterize(mu, logvar)
type_scores, edge_scores = self._decode(z)
res = 0
_, true_types = torch.max(G_true[:, :, :self.nvt], 2)
res += F.cross_entropy(type_scores.transpose(1, 2), true_types, reduction='sum')
true_edges = G_true[:, :, self.nvt:]
res += F.binary_cross_entropy(edge_scores, true_edges, reduction='sum')
kld = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar.exp())
return res + beta*kld, res, kld
def construct_igraph(self, type_scores, edge_scores, stochastic=True):
# construct igraphs from node type and edge scores
# note that when stochastic=True, type_scores should be raw scores before softmax,
# and edge_scores should probabilities between [0, 1] (after sigmoid)
assert(type_scores.shape[:2] == edge_scores.shape[:2])
if stochastic:
type_probs = F.softmax(type_scores, 2).cpu().detach().numpy()
G = []
for gi in range(len(type_scores)):
g = igraph.Graph(directed=True)
g.add_vertex(type=self.START_TYPE)
for vj in range(1, self.max_n):
if vj == self.max_n - 1:
new_type = self.END_TYPE
else:
if stochastic:
new_type = np.random.choice(range(self.nvt), p=type_probs[gi][vj-1])
else:
new_type = torch.argmax(type_scores[gi][vj-1], 0).item()
g.add_vertex(type=new_type)
if new_type == self.END_TYPE:
end_vertices = set([v.index for v in g.vs.select(_outdegree_eq=0)
if v.index != g.vcount()-1])
for v in end_vertices:
g.add_edge(v, vj)
break
else:
for ek in range(vj):
ek_score = edge_scores[gi][vj-1][ek].item()
if stochastic:
if np.random.random_sample() < ek_score:
g.add_edge(ek, vj)
else:
if ek_score > 0.5:
g.add_edge(ek, vj)
G.append(g)
return G
def forward(self, G):
mu, logvar = self.encode(G)
loss, _, _ = self.loss(mu, logvar, G)
return loss
def encode_decode(self, G):
mu, logvar = self.encode(G)
z = self.reparameterize(mu, logvar)
return self.decode(z)
def generate_sample(self, n):
sample = torch.randn(n, self.nz).to(self.get_device())
G = self.decode(sample)
return G
'''
One-shot version of S-VAE. Encode/decode the entire matrix in one shot.
'''
class SVAE_oneshot(SVAE):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=1002, nz=112, bidirectional=False):
super(SVAE_oneshot, self).__init__(max_n, nvt, START_TYPE, END_TYPE, hs, nz, bidirectional)
self.encoder_nn = nn.Sequential(
nn.Linear((max_n-1) * self.xs, 2 * (max_n-1) * self.xs),
nn.ReLU(),
nn.Linear(2 * (max_n-1) * self.xs, self.gs),
)
self.decoder_nn = nn.Sequential(
nn.Linear(hs, 2 * hs),
nn.ReLU(),
nn.Linear(2 * hs, (max_n-1) * self.xs),
)
def encode(self, G):
# G: [batch_size * max_n-1 * xs]
Hg = self.relu(self.encoder_nn(G.view(len(G), -1)))
mu, logvar = self.fc1(Hg), self.fc2(Hg)
return mu, logvar
def _decode(self, z):
H0 = self.relu(self.fc3(z))
scores = self.decoder_nn(H0).view(len(z), self.max_n-1, -1)
type_scores = scores[:, :, :self.nvt] # batch * max_n-1 * nvt
edge_scores = self.sigmoid(scores[:, :, self.nvt:]) # batch * max_n-1 * max_n-1
return type_scores, edge_scores
'''
S-VAE with GraphRNN as the decoder. Encode/decode the entries of each adjacency row using
another GRU. Use a topological order (instead of BFS) to generate nodes.
Use teacher forcing during training (use ground truth nodes/edges in each step).
'''
class SVAE_GraphRNN(SVAE):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False):
super(SVAE_GraphRNN, self).__init__(max_n, nvt, START_TYPE, END_TYPE, hs, nz, bidirectional)
self.num_dirs = 2 if self.bidir else 1
self.num_layers = 1
self.grud = nn.GRU(self.xs, hs, num_layers=self.num_layers, batch_first=True, bidirectional=self.bidir) # encoder GRU (graph level)
self.grud_edge = nn.GRU(1, hs, num_layers=self.num_layers, batch_first=True, bidirectional=self.bidir) # encoder GRU (edge level)
self.add_edge = nn.Sequential(
nn.Linear(self.hs, self.hs),
nn.ReLU(),
nn.Linear(self.hs, 1),
)
def _decode(self, z):
H0 = self.relu(self.fc3(z)) # batch * hs
H0_graph = H0.unsqueeze(0).expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
input_graph_level = self._get_zeros(len(z), self.xs).unsqueeze(1) # batch * 1 * xs
type_scores, edge_scores = [], []
for vi in range(self.max_n-1):
output_graph_level, _ = self.grud(input_graph_level, H0_graph) # batch * 1 * (hs*num_dirs)
if self.bidir:
output_graph_level = self.hg_unify(output_graph_level) # batch * 1 * hs
H0_graph = output_graph_level.permute(1, 0, 2) # 1 * batch * hs
H0_graph = H0_graph.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
type_score = self.add_vertex(output_graph_level) # batch * 1 * nvt
type_prob = F.softmax(type_score, 2).squeeze(1) # batch * nvt
new_type = torch.multinomial(type_prob, 1) # batch * 1
type_score = self._one_hot(new_type.reshape(-1).tolist(), self.nvt).unsqueeze(1) # batch * 1 * nvt
type_scores.append(type_score)
H0_edge = output_graph_level.permute(1, 0, 2) # 1 * batch * hs
H0_edge = H0_edge.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
input_edge_level = self._get_zeros(len(z), 1).unsqueeze(1) # batch * 1 * 1
edge_score = []
for ej in range(self.max_n-1):
output_edge_level, _ = self.grud_edge(input_edge_level, H0_edge) # batch * 1 * (hs*num_dirs)
if self.bidir:
output_edge_level = self.hv_unify(output_edge_level) # batch * 1 * hs
H0_edge = output_edge_level.permute(1, 0, 2)
H0_edge = H0_edge.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
edge_score_j = self.sigmoid(self.add_edge(output_edge_level)).detach() # batch * 1 * 1
# sample edge j of node i
edge_score_j = np.random.random_sample((len(z), 1, 1)) < edge_score_j
edge_score_j = edge_score_j.type(torch.FloatTensor).to(self.get_device())
edge_score.append(edge_score_j)
input_edge_level = edge_score_j
edge_score = torch.cat(edge_score, 2) # batch * 1 * max_n-1
edge_scores.append(edge_score)
input_graph_level = torch.cat([type_score, edge_score], 2) # batch * 1 * xs
type_scores = torch.cat(type_scores, 1) # batch * max_n-1 * nvt
edge_scores = torch.cat(edge_scores, 1) # batch * max_n-1 * max_n-1
return type_scores, edge_scores
def decode(self, z):
type_scores, edge_scores = self._decode(z)
return self.construct_igraph(type_scores, edge_scores, stochastic=False)
def loss(self, mu, logvar, G_true, beta=0.005):
# G_true: [batch_size * max_n-1 * xs]
# use teacher forcing to train (feed groundtruth at each step instead of prediction)
z = self.reparameterize(mu, logvar)
H0 = self.relu(self.fc3(z)) # batch * hs
Input_graph_level = G_true[:, :-1, :].contiguous()
Input_graph_level = torch.cat([self._get_zeros(len(z), self.xs).unsqueeze(1), Input_graph_level], 1) # pad initial zeros
H0_graph = H0.unsqueeze(0).expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
Output_graph_level, _ = self.grud(Input_graph_level, H0_graph) # batch * max_n-1 * (hs*num_dirs)
if self.bidir:
Output_graph_level = self.hg_unify(Output_graph_level) # batch * max_n-1 * hs
type_scores = self.add_vertex(Output_graph_level) # batch * max_n-1 * nvt
# merge node dimension with batch dimension as the "new" batch dimension for parallel computing
H0_edge = Output_graph_level
H0_edge = H0_edge.reshape(1, -1, self.hs) # 1 * (batch * max_n-1) * hs
H0_edge = H0_edge.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
Input_edge_level = G_true[:, :, self.nvt:-1]
Input_edge_level = torch.cat([self._get_zeros(len(z), self.max_n-1).unsqueeze(2), Input_edge_level], 2) # pad initial zeros
Input_edge_level = Input_edge_level.reshape(-1, self.max_n-1, 1).contiguous() # (batch * max_n-1) * max_n-1 * 1
Output_edge_level, _ = self.grud_edge(Input_edge_level, H0_edge) # (batch * max_n-1) * max_n-1 * (hs * num_dirs)
if self.bidir:
Output_edge_level = self.hv_unify(Output_edge_level) # (batch * max_n-1) * max_n-1 * hs
edge_scores = self.sigmoid(self.add_edge(Output_edge_level)) # (batch * max_n-1) * max_n-1 * 1
edge_scores = edge_scores.reshape(-1, self.max_n-1, self.max_n-1)
res = 0
_, true_types = torch.max(G_true[:, :, :self.nvt], 2)
res += F.cross_entropy(type_scores.transpose(1, 2), true_types, reduction='sum')
true_edges = G_true[:, :, self.nvt:]
res += F.binary_cross_entropy(edge_scores, true_edges, reduction='sum')
kld = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar.exp())
return res + beta*kld, res, kld
'''
GraphRNN decoder using a random BFS order
'''
from collections import deque
class SVAE_GraphRNN_BFS(SVAE):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False):
super(SVAE_GraphRNN_BFS, self).__init__(max_n, nvt, START_TYPE, END_TYPE, hs, nz, bidirectional)
self.num_dirs = 2 if self.bidir else 1
self.num_layers = 1
self.xs = (nvt + max_n) # size of input x for GRU,
# [one_hot(vertex_type), bit(connections)]
self.grue = nn.GRU(self.xs, hs, batch_first=True, bidirectional=self.bidir) # encoder GRU
self.grud = nn.GRU(self.xs, hs, num_layers=self.num_layers, batch_first=True, bidirectional=self.bidir) # decoder GRU (graph level)
self.grud_edge = nn.GRU(1, hs, num_layers=self.num_layers, batch_first=True, bidirectional=self.bidir) # decoder GRU (edge level)
self.add_edge = nn.Sequential(
nn.Linear(self.hs, self.hs),
nn.ReLU(),
nn.Linear(self.hs, 1),
)
def bfs(self, adj, feat):
n = len(adj)
queue = deque([random.randint(0, n-1)])
visited = set()
order = []
while queue:
cur = queue.popleft()
if cur in visited:
continue
order.append(cur)
visited.add(cur)
successors = adj[cur].nonzero().flatten().tolist()
predecessors = adj[:, cur].nonzero().flatten().tolist()
neis = set(successors + predecessors)
neis = neis - visited
for x in neis:
queue.append(x)
return adj[order, :][:, order], feat[order]
def G_to_adjfeat(self, G):
# convert SVAE's G tensor to adjacency matrix and node features
assert(G.shape[0]==1)
G = G[0]
pad = torch.zeros(1, self.nvt).to(G.device)
pad[:, 0] = 1
input_features = torch.cat([pad, G[:, :self.nvt]], 0) # add the start node
pad2 = torch.zeros(self.max_n-1, 1).to(G.device)
adj = torch.cat([pad2, G[:, self.nvt:].permute(1, 0)], 1)
pad3 = torch.zeros(1, self.max_n).to(G.device)
adj = torch.cat([adj, pad3], 0)
return adj, input_features
def adjfeat_to_G(self, adj, feat):
# the new G tensor contains starting node as well as connections of last node
adj = adj.permute(1, 0)
return torch.cat([feat, adj], 1).unsqueeze(0)
def _collate_fn(self, G):
# create mini_batch of tensors from list G by padding
# each graph g is a 1 * (n_vertex - 1) * (n_types + n_vertex-1) tensor
# first transform each g into its node features and adj matrix
# then each graph is permuted by a bfs node order
# pad all to 1 * (max_n) * (n_types + max_n) tensors
G_new = []
for g in G:
# apply a bfs ordering to nodes
adj, feat = self.G_to_adjfeat(g)
g = self.adjfeat_to_G(*self.bfs(adj, feat)) # 1 * n_vertex * (n_types + n_vertex)
if g.shape[1] < self.max_n:
padding = torch.zeros(1, self.max_n-g.shape[1], g.shape[2]).to(self.get_device())
padding[0, :, self.START_TYPE] = 1 # treat padding nodes as start_type
g = torch.cat([g, padding], 1) # 1 * max_n * (n_types + n_vertex)
if g.shape[2] < self.xs:
padding = torch.zeros(1, g.shape[1], self.xs-g.shape[2]).to(self.get_device())
g = torch.cat([g, padding], 2) # pad zeros to indicate no connections to padding
# nodes, g: 1 * max_n * xs
G_new.append(g)
return torch.cat(G_new, 0)
def _decode(self, z):
H0 = self.relu(self.fc3(z)) # batch * hs
H0_graph = H0.unsqueeze(0).expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
input_graph_level = self._get_zeros(len(z), self.xs).unsqueeze(1) # batch * 1 * xs
type_scores, edge_scores = [], []
for vi in range(self.max_n):
output_graph_level, _ = self.grud(input_graph_level, H0_graph) # batch * 1 * (hs*num_dirs)
if self.bidir:
output_graph_level = self.hg_unify(output_graph_level) # batch * 1 * hs
H0_graph = output_graph_level.permute(1, 0, 2) # 1 * batch * hs
H0_graph = H0_graph.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
type_score = self.add_vertex(output_graph_level) # batch * 1 * nvt
type_prob = F.softmax(type_score, 2).squeeze(1) # batch * nvt
new_type = torch.multinomial(type_prob, 1) # batch * 1
type_score = self._one_hot(new_type.reshape(-1).tolist(), self.nvt).unsqueeze(1) # batch * 1 * nvt
type_scores.append(type_score)
H0_edge = output_graph_level.permute(1, 0, 2) # 1 * batch * hs
H0_edge = H0_edge.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
input_edge_level = self._get_zeros(len(z), 1).unsqueeze(1) # batch * 1 * 1
edge_score = []
for ej in range(self.max_n):
output_edge_level, _ = self.grud_edge(input_edge_level, H0_edge) # batch * 1 * (hs*num_dirs)
if self.bidir:
output_edge_level = self.hv_unify(output_edge_level) # batch * 1 * hs
H0_edge = output_edge_level.permute(1, 0, 2)
H0_edge = H0_edge.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
edge_score_j = self.sigmoid(self.add_edge(output_edge_level)).detach() # batch * 1 * 1
# sample edge j of node i
edge_score_j = np.random.random_sample((len(z), 1, 1)) < edge_score_j
edge_score_j = edge_score_j.type(torch.FloatTensor).to(self.get_device())
edge_score.append(edge_score_j)
input_edge_level = edge_score_j
edge_score = torch.cat(edge_score, 2) # batch * 1 * max_n
edge_scores.append(edge_score)
input_graph_level = torch.cat([type_score, edge_score], 2) # batch * 1 * xs
type_scores = torch.cat(type_scores, 1) # batch * max_n * nvt
edge_scores = torch.cat(edge_scores, 1) # batch * max_n * max_n
return type_scores, edge_scores
def decode(self, z):
type_scores, edge_scores = self._decode(z)
# the _decode is already stochastic, so set stochastic=Falsle
return self.construct_igraph(type_scores, edge_scores, stochastic=False)
def loss(self, mu, logvar, G_true, beta=0.005):
# G_true: [batch_size * max_n * xs]
# use teacher forcing to train (feed groundtruth at each step instead of prediction)
z = self.reparameterize(mu, logvar)
H0 = self.relu(self.fc3(z)) # batch * hs
Input_graph_level = G_true[:, :-1, :].contiguous()
Input_graph_level = torch.cat([self._get_zeros(len(z), self.xs).unsqueeze(1), Input_graph_level], 1) # pad initial zeros
H0_graph = H0.unsqueeze(0).expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
Output_graph_level, _ = self.grud(Input_graph_level, H0_graph) # batch * max_n * (hs*num_dirs)
if self.bidir:
Output_graph_level = self.hg_unify(Output_graph_level) # batch * max_n * hs
type_scores = self.add_vertex(Output_graph_level) # batch * max_n * nvt
# merge node dimension with batch dimension as the "new" batch dimension for parallel computing
H0_edge = Output_graph_level
H0_edge = H0_edge.reshape(1, -1, self.hs) # 1 * (batch * max_n) * hs
H0_edge = H0_edge.expand(self.num_dirs*self.num_layers, -1, -1).contiguous()
Input_edge_level = G_true[:, :, self.nvt:-1]
Input_edge_level = torch.cat([self._get_zeros(len(z), self.max_n).unsqueeze(2), Input_edge_level], 2) # pad initial zeros
Input_edge_level = Input_edge_level.reshape(-1, self.max_n, 1).contiguous() # (batch * max_n) * max_n * 1
Output_edge_level, _ = self.grud_edge(Input_edge_level, H0_edge) # (batch * max_n) * max_n * (hs * num_dirs)
if self.bidir:
Output_edge_level = self.hv_unify(Output_edge_level) # (batch * max_n) * max_n * hs
edge_scores = self.sigmoid(self.add_edge(Output_edge_level)) # (batch * max_n) * max_n * 1
edge_scores = edge_scores.reshape(-1, self.max_n, self.max_n)
res = 0
_, true_types = torch.max(G_true[:, :, :self.nvt], 2)
res += F.cross_entropy(type_scores.transpose(1, 2), true_types, reduction='sum')
true_edges = G_true[:, :, self.nvt:]
res += F.binary_cross_entropy(edge_scores, true_edges, reduction='sum')
kld = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar.exp())
return res + beta*kld, res, kld
def construct_igraph(self, type_scores, edge_scores, stochastic=True):
# construct igraphs from node type and edge scores
# note that when stochastic=True, type_scores should be raw scores before softmax,
# and edge_scores should probabilities between [0, 1] (after sigmoid)
assert(type_scores.shape[:2] == edge_scores.shape[:2])
if stochastic:
type_probs = F.softmax(type_scores, 2).cpu().detach().numpy()
G = []
for gi in range(len(type_scores)):
# add vertices
g = igraph.Graph(directed=True)
for vj in range(self.max_n):
if stochastic:
new_type = np.random.choice(range(self.nvt), p=type_probs[gi][vj])
else:
new_type = torch.argmax(type_scores[gi][vj], 0).item()
g.add_vertex(type=new_type)
# add edges
output_vertex = None
for vj in range(self.max_n):
for ek in range(self.max_n):
ek_score = edge_scores[gi][vj][ek].item()
if stochastic:
if np.random.random_sample() < ek_score:
g.add_edge(ek, vj)
else:
if ek_score > 0.5:
g.add_edge(ek, vj)
# apply a topological order to g (otherwise some validity test doesn't work)
if g.is_dag():
topo_order = g.topological_sorting()
perm = [-1] * len(topo_order)
for i in range(len(perm)):
perm[topo_order[i]] = i
g = g.permute_vertices(perm)
G.append(g)
return G
'''
DAG Variational Autoencoder (D-VAE). (FOR ENAS ONLY)
'''
class DVAE(nn.Module):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False, vid=True):
super(DVAE, self).__init__()
self.max_n = max_n # maximum number of vertices
self.nvt = nvt # number of vertex types
self.START_TYPE = START_TYPE
self.END_TYPE = END_TYPE
self.hs = hs # hidden state size of each vertex
self.nz = nz # size of latent representation z
self.gs = hs # size of graph state
self.bidir = bidirectional # whether to use bidirectional encoding
self.vid = vid
self.device = None
if self.vid:
self.vs = hs + max_n # vertex state size = hidden state + vid
else:
self.vs = hs
# 0. encoding-related
self.grue_forward = nn.GRUCell(nvt, hs) # encoder GRU
self.grue_backward = nn.GRUCell(nvt, hs) # backward encoder GRU
self.fc1 = nn.Linear(self.gs, nz) # latent mean
self.fc2 = nn.Linear(self.gs, nz) # latent logvar
# 1. decoding-related
self.grud = nn.GRUCell(nvt, hs) # decoder GRU
self.fc3 = nn.Linear(nz, hs) # from latent z to initial hidden state h0
self.add_vertex = nn.Sequential(
nn.Linear(hs, hs * 2),
nn.ReLU(),
nn.Linear(hs * 2, nvt)
) # which type of new vertex to add f(h0, hg)
self.add_edge = nn.Sequential(
nn.Linear(hs * 2, hs * 4),
nn.ReLU(),
nn.Linear(hs * 4, 1)
) # whether to add edge between v_i and v_new, f(hvi, hnew)
# 2. gate-related
self.gate_forward = nn.Sequential(
nn.Linear(self.vs, hs),
nn.Sigmoid()
)
self.gate_backward = nn.Sequential(
nn.Linear(self.vs, hs),
nn.Sigmoid()
)
self.mapper_forward = nn.Sequential(
nn.Linear(self.vs, hs, bias=False),
) # disable bias to ensure padded zeros also mapped to zeros
self.mapper_backward = nn.Sequential(
nn.Linear(self.vs, hs, bias=False),
)
# 3. bidir-related, to unify sizes
if self.bidir:
self.hv_unify = nn.Sequential(
nn.Linear(hs * 2, hs),
)
self.hg_unify = nn.Sequential(
nn.Linear(self.gs * 2, self.gs),
)
# 4. other
self.relu = nn.ReLU()
self.sigmoid = nn.Sigmoid()
self.tanh = nn.Tanh()
self.logsoftmax1 = nn.LogSoftmax(1)
def get_device(self):
if self.device is None:
self.device = next(self.parameters()).device
return self.device
def _get_zeros(self, n, length):
return torch.zeros(n, length).to(self.get_device()) # get a zero hidden state
def _get_zero_hidden(self, n=1):
return self._get_zeros(n, self.hs) # get a zero hidden state
def _one_hot(self, idx, length):
if type(idx) in [list, range]:
if idx == []:
return None
idx = torch.LongTensor(idx).unsqueeze(0).t()
x = torch.zeros((len(idx), length)).scatter_(1, idx, 1).to(self.get_device())
else:
idx = torch.LongTensor([idx]).unsqueeze(0)
x = torch.zeros((1, length)).scatter_(1, idx, 1).to(self.get_device())
return x
def _gated(self, h, gate, mapper):
return gate(h) * mapper(h)
def _collate_fn(self, G):
return [g.copy() for g in G]
def _propagate_to(self, G, v, propagator, H=None, reverse=False):
""" JKJ edit 06/22/2021 I think I need another dimension (H) for the edge weights """
# propagate messages to vertex index v for all graphs in G
# return the new messages (states) at v
G = [g for g in G if g.vcount() > v]
if len(G) == 0:
return
if H is not None:
idx = [i for i, g in enumerate(G) if g.vcount() > v]
H = H[idx]
v_types = [g.vs[v]['type'] for g in G]
X = self._one_hot(v_types, self.nvt)
if reverse:
H_name = 'H_backward' # name of the hidden states attribute
H_pred = [[g.vs[x][H_name] for x in g.successors(v)] for g in G]
if self.vid:
vids = [self._one_hot(g.successors(v), self.max_n) for g in G]
gate, mapper = self.gate_backward, self.mapper_backward
else:
H_name = 'H_forward' # name of the hidden states attribute
H_pred = [[g.vs[x][H_name] for x in g.predecessors(v)] for g in G]
if self.vid:
vids = [self._one_hot(g.predecessors(v), self.max_n) for g in G]
gate, mapper = self.gate_forward, self.mapper_forward
if self.vid:
H_pred = [[torch.cat([x[i], y[i:i+1]], 1) for i in range(len(x))] for x, y in zip(H_pred, vids)]
# if h is not provided, use gated sum of v's predecessors' states as the input hidden state
if H is None:
max_n_pred = max([len(x) for x in H_pred]) # maximum number of predecessors
if max_n_pred == 0:
H = self._get_zero_hidden(len(G))
else:
H_pred = [torch.cat(h_pred +
[self._get_zeros(max_n_pred - len(h_pred), self.vs)], 0).unsqueeze(0)
for h_pred in H_pred] # pad all to same length
H_pred = torch.cat(H_pred, 0) # batch * max_n_pred * vs
H = self._gated(H_pred, gate, mapper).sum(1) # batch * hs
Hv = propagator(X, H)
for i, g in enumerate(G):
g.vs[v][H_name] = Hv[i:i+1]
return Hv
def _propagate_from(self, G, v, propagator, H0=None, reverse=False):
# perform a series of propagation_to steps starting from v following a topo order
# assume the original vertex indices are in a topological order
if reverse:
prop_order = range(v, -1, -1)
else:
prop_order = range(v, self.max_n)
Hv = self._propagate_to(G, v, propagator, H0, reverse=reverse) # the initial vertex
for v_ in prop_order[1:]:
self._propagate_to(G, v_, propagator, reverse=reverse)
return Hv
def _update_v(self, G, v, H0=None):
# perform a forward propagation step at v when decoding to update v's state
self._propagate_to(G, v, self.grud, H0, reverse=False)
return
def _get_vertex_state(self, G, v):
# get the vertex states at v
Hv = []
for g in G:
if v >= g.vcount():
hv = self._get_zero_hidden()
else:
hv = g.vs[v]['H_forward']
Hv.append(hv)
Hv = torch.cat(Hv, 0)
return Hv
def _get_graph_state(self, G, decode=False):
# get the graph states
# when decoding, use the last generated vertex's state as the graph state
# when encoding, use the ending vertex state or unify the starting and ending vertex states
Hg = []
for g in G:
hg = g.vs[g.vcount()-1]['H_forward']
if self.bidir and not decode: # decoding never uses backward propagation
hg_b = g.vs[0]['H_backward']
hg = torch.cat([hg, hg_b], 1)
Hg.append(hg)
Hg = torch.cat(Hg, 0)
if self.bidir and not decode:
Hg = self.hg_unify(Hg)
return Hg
def encode(self, G):
# encode graphs G into latent vectors
if type(G) != list:
G = [G]
self._propagate_from(G, 0, self.grue_forward, H0=self._get_zero_hidden(len(G)),
reverse=False)
if self.bidir:
self._propagate_from(G, self.max_n-1, self.grue_backward,
H0=self._get_zero_hidden(len(G)), reverse=True)
Hg = self._get_graph_state(G)
mu, logvar = self.fc1(Hg), self.fc2(Hg)
return mu, logvar
def reparameterize(self, mu, logvar, eps_scale=0.01):
# return z ~ N(mu, std)
if self.training:
std = logvar.mul(0.5).exp_()
eps = torch.randn_like(std) * eps_scale
return eps.mul(std).add_(mu)
else:
return mu
def _get_edge_score(self, Hvi, H, H0):
# compute scores for edges from vi based on Hvi, H (current vertex) and H0
# in most cases, H0 need not be explicitly included since Hvi and H contain its information
return self.sigmoid(self.add_edge(torch.cat([Hvi, H], -1)))
def decode(self, z, stochastic=True):
# decode latent vectors z back to graphs
# if stochastic=True, stochastically sample each action from the predicted distribution;
# otherwise, select argmax action deterministically.
H0 = self.tanh(self.fc3(z)) # or relu activation, similar performance
G = [igraph.Graph(directed=True) for _ in range(len(z))]
for g in G:
g.add_vertex(type=self.START_TYPE)
self._update_v(G, 0, H0)
finished = [False] * len(G)
for idx in range(1, self.max_n):
# decide the type of the next added vertex
if idx == self.max_n - 1: # force the last node to be end_type
new_types = [self.END_TYPE] * len(G)
else:
Hg = self._get_graph_state(G, decode=True)
type_scores = self.add_vertex(Hg)
if stochastic:
type_probs = F.softmax(type_scores, 1).cpu().detach().numpy()
new_types = [np.random.choice(range(self.nvt), p=type_probs[i])
for i in range(len(G))]
else:
new_types = torch.argmax(type_scores, 1)
new_types = new_types.flatten().tolist()
for i, g in enumerate(G):
if not finished[i]:
g.add_vertex(type=new_types[i])
self._update_v(G, idx)
# decide connections
edge_scores = []
for vi in range(idx-1, -1, -1):
Hvi = self._get_vertex_state(G, vi)
H = self._get_vertex_state(G, idx)
ei_score = self._get_edge_score(Hvi, H, H0)
if stochastic:
random_score = torch.rand_like(ei_score)
decisions = random_score < ei_score
else:
decisions = ei_score > 0.5
for i, g in enumerate(G):
if finished[i]:
continue
if new_types[i] == self.END_TYPE:
# if new node is end_type, connect it to all loose-end vertices (out_degree==0)
end_vertices = set([v.index for v in g.vs.select(_outdegree_eq=0)
if v.index != g.vcount()-1])
for v in end_vertices:
g.add_edge(v, g.vcount()-1)
finished[i] = True
continue
if decisions[i, 0]:
g.add_edge(vi, g.vcount()-1)
self._update_v(G, idx)
for g in G:
del g.vs['H_forward'] # delete hidden states to save GPU memory
return G
def loss(self, mu, logvar, G_true, beta=0.005):
# compute the loss of decoding mu and logvar to true graphs using teacher forcing
# ensure when computing the loss of step i, steps 0 to i-1 are correct
z = self.reparameterize(mu, logvar)
H0 = self.tanh(self.fc3(z)) # or relu activation, similar performance
G = [igraph.Graph(directed=True) for _ in range(len(z))]
for g in G:
g.add_vertex(type=self.START_TYPE)
self._update_v(G, 0, H0)
res = 0 # log likelihood
for v_true in range(1, self.max_n):
# calculate the likelihood of adding true types of nodes
# use start type to denote padding vertices since start type only appears for vertex 0
# and will never be a true type for later vertices, thus it's free to use
true_types = [g_true.vs[v_true]['type'] if v_true < g_true.vcount()
else self.START_TYPE for g_true in G_true]
Hg = self._get_graph_state(G, decode=True)
type_scores = self.add_vertex(Hg)
# vertex log likelihood
vll = self.logsoftmax1(type_scores)[np.arange(len(G)), true_types].sum()
res = res + vll
for i, g in enumerate(G):
if true_types[i] != self.START_TYPE:
g.add_vertex(type=true_types[i])
self._update_v(G, v_true)
# calculate the likelihood of adding true edges
true_edges = []
for i, g_true in enumerate(G_true):
true_edges.append(g_true.get_adjlist(igraph.IN)[v_true] if v_true < g_true.vcount()
else [])
edge_scores = []
for vi in range(v_true-1, -1, -1):
Hvi = self._get_vertex_state(G, vi)
H = self._get_vertex_state(G, v_true)
ei_score = self._get_edge_score(Hvi, H, H0)
edge_scores.append(ei_score)
for i, g in enumerate(G):
if vi in true_edges[i]:
g.add_edge(vi, v_true)
self._update_v(G, v_true)
edge_scores = torch.cat(edge_scores[::-1], 1)
ground_truth = torch.zeros_like(edge_scores)
idx1 = [i for i, x in enumerate(true_edges) for _ in range(len(x))]
idx2 = [xx for x in true_edges for xx in x]
ground_truth[idx1, idx2] = 1.0
# edges log-likelihood
ell = - F.binary_cross_entropy(edge_scores, ground_truth, reduction='sum')
res = res + ell
res = -res # convert likelihood to loss
kld = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar.exp())
return res + beta*kld, res, kld
def encode_decode(self, G):
mu, logvar = self.encode(G)
z = self.reparameterize(mu, logvar)
return self.decode(z)
def forward(self, G):
mu, logvar = self.encode(G)
loss, _, _ = self.loss(mu, logvar, G)
return loss
def generate_sample(self, n):
sample = torch.randn(n, self.nz).to(self.get_device())
G = self.decode(sample)
return G
'''
D-VAE with GCN encoder
The message passing happens at all nodes simultaneously.
'''
class DVAE_GCN(DVAE):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False, levels=3):
# bidirectional means passing messages ignoring edge directions
super(DVAE_GCN, self).__init__(max_n, nvt, START_TYPE, END_TYPE, hs, nz, bidirectional)
self.levels = levels
self.gconv = nn.ModuleList()
self.gconv.append(
nn.Sequential(
nn.Linear(nvt, hs),
nn.ReLU(),
)
)
for lv in range(1, levels):
self.gconv.append(
nn.Sequential(
nn.Linear(hs, hs),
nn.ReLU(),
)
)
def _get_feature(self, g, v, lv=0):
# get the node feature vector of v
if lv == 0: # initial level uses type features
v_type = g.vs[v]['type']
x = self._one_hot(v_type, self.nvt)
else:
x = g.vs[v]['H_forward']
return x
def _get_zero_x(self, n=1):
# get zero predecessor states X, used for padding
return torch.zeros(n, self.nvt).to(self.get_device())
def _get_graph_state(self, G, decode=False, start=0, end_offset=0):
# get the graph states
# sum all node states between start and n-end_offset as the graph state
Hg = []
max_n_nodes = max(g.vcount() for g in G)
for g in G:
hg = torch.cat([g.vs[i]['H_forward'] for i in range(start, g.vcount() - end_offset)],
0).unsqueeze(0) # 1 * n * hs
if g.vcount() < max_n_nodes:
hg = torch.cat([hg,
torch.zeros(1, max_n_nodes - g.vcount(), hg.shape[2]).to(self.get_device())],
1) # 1 * max_n * hs
Hg.append(hg)
# sum node states as the graph state
Hg = torch.cat(Hg, 0).sum(1) # batch * hs
return Hg # batch * hs
def _GCN_propagate_to(self, G, v, lv=0):
# propagate messages to vertex index v for all graphs in G
# return the new messages (states) at v
G = [g for g in G if g.vcount() > v]
if len(G) == 0:
return
if self.bidir: # ignore edge directions, accept all neighbors' messages
H_nei = [[self._get_feature(g, v, lv)/(g.degree(v)+1)] +
[self._get_feature(g, x, lv)/math.sqrt((g.degree(x)+1)*(g.degree(v)+1))
for x in g.neighbors(v)] for g in G]
else: # only accept messages from predecessors (generalizing GCN to directed cases)
H_nei = [[self._get_feature(g, v, lv)/(g.indegree(v)+1)] +
[self._get_feature(g, x, lv)/math.sqrt((g.outdegree(x)+1)*(g.indegree(v)+1))
for x in g.predecessors(v)] for g in G]
max_n_nei = max([len(x) for x in H_nei]) # maximum number of neighbors
H_nei = [torch.cat(h_nei + [self._get_zeros(max_n_nei - len(h_nei), h_nei[0].shape[1])], 0).unsqueeze(0)
for h_nei in H_nei] # pad all to same length
H_nei = torch.cat(H_nei, 0) # batch * max_n_nei * nvt
Hv = self.gconv[lv](H_nei.sum(1)) # batch * hs
for i, g in enumerate(G):
g.vs[v]['H_forward'] = Hv[i:i+1]
return Hv
def encode(self, G):
# encode graphs G into latent vectors
# GCN propagation is now implemented in a non-parallel way for consistency, but
# can definitely be parallel to speed it up. However, the major computation cost
# comes from the generation, which is not parallellizable.
if type(G) != list:
G = [G]
prop_order = range(self.max_n)
for lv in range(self.levels):
for v_ in prop_order:
self._GCN_propagate_to(G, v_, lv)
Hg = self._get_graph_state(G, start=1, end_offset=1) # does not use the dummy input
# and output nodes
mu, logvar = self.fc1(Hg), self.fc2(Hg)
return mu, logvar
'''
D-VAE for Bayesian networks.
The encoding of each node takes gated sum of X instead of H of its predecessors as input.
The decoding is the same as D-VAE, except for including H0 to predict edge scores.
jkj notes:
06/22/2021 I can encode weights by adding a read out layer to the autoencoder, but that's only for decoding. Now I need an approach for encoding
This may be as simple as duplicating the parts of the code related to choosing the type of the vertex or edge score, probably combining them. Encode by adapting the vertex types and decode by adapting the edge scores
The next step is to use the debugger to step through the encoding and decoding
Also note that the BIC is the template to use because it allows multiple input and output nodes.
'''
class DVAE_BN(DVAE):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False):
super(DVAE_BN, self).__init__(max_n, nvt, START_TYPE, END_TYPE, hs, nz, bidirectional)
self.mapper_forward = nn.Sequential(
nn.Linear(self.nvt, hs, bias=False),
) # disable bias to ensure padded zeros also mapped to zeros
self.mapper_backward = nn.Sequential(
nn.Linear(self.nvt, hs, bias=False),
)
self.gate_forward = nn.Sequential(
nn.Linear(self.nvt, hs),
nn.Sigmoid()
)
self.gate_backward = nn.Sequential(
nn.Linear(self.nvt, hs),
nn.Sigmoid()
)
self.add_edge = nn.Sequential(
nn.Linear(hs * 3, hs),
nn.ReLU(),
nn.Linear(hs, 1)
) # whether to add edge between v_i and v_new, f(hvi, hnew, h0)
def _get_zero_x(self, n=1):
# get zero predecessor states X, used for padding
return self._get_zeros(n, self.nvt)
def _get_graph_state(self, G, decode=False, start=0, end_offset=0):
# get the graph states
# sum all node states between start and n-end_offset as the graph state
Hg = []
max_n_nodes = max(g.vcount() for g in G)
for g in G:
hg = torch.cat([g.vs[i]['H_forward'] for i in range(start, g.vcount() - end_offset)],
0).unsqueeze(0) # 1 * n * hs
if self.bidir and not decode: # decoding never uses backward propagation
hg_b = torch.cat([g.vs[i]['H_backward']
for i in range(start, g.vcount() - end_offset)], 0).unsqueeze(0)
hg = torch.cat([hg, hg_b], 2)
if g.vcount() < max_n_nodes:
hg = torch.cat([hg,
torch.zeros(1, max_n_nodes - g.vcount(), hg.shape[2]).to(self.get_device())],
1) # 1 * max_n * hs
Hg.append(hg)
# sum node states as the graph state
Hg = torch.cat(Hg, 0).sum(1) # batch * hs
if self.bidir and not decode:
Hg = self.hg_unify(Hg)
return Hg # batch * hs
def _propagate_to(self, G, v, propagator, H=None, reverse=False):
""" JKJ edit 06/22/2021 I think I need another dimension (H) for the edge weights """
# propagate messages to vertex index v for all graphs in G
# return the new messages (states) at v
# the difference from original D-VAE is using predecessors' X instead of H
G = [g for g in G if g.vcount() > v]
if len(G) == 0:
return
if H is not None:
idx = [i for i, g in enumerate(G) if g.vcount() > v]
H = H[idx]
v_types = [g.vs[v]['type'] for g in G]
X = self._one_hot(v_types, self.nvt)
if reverse:
H_name = 'H_backward' # name of the hidden states attribute
H_pred = [[self._one_hot(g.vs[x]['type'], self.nvt) for x in g.successors(v)]
for g in G]
gate, mapper = self.gate_backward, self.mapper_backward
else:
H_name = 'H_forward' # name of the hidden states attribute
H_pred = [[self._one_hot(g.vs[x]['type'], self.nvt) for x in g.predecessors(v)]
for g in G]
gate, mapper = self.gate_forward, self.mapper_forward
# if h is not provided, use gated sum of v's predecessors' states as the input hidden state
if H is None:
max_n_pred = max([len(x) for x in H_pred]) # maximum number of predecessors
if max_n_pred == 0:
H = self._get_zero_hidden(len(G))
else:
H_pred = [torch.cat(h_pred +
[self._get_zero_x((max_n_pred - len(h_pred)))], 0).unsqueeze(0)
for h_pred in H_pred]
H_pred = torch.cat(H_pred, 0) # batch * max_n_pred * hs
H = self._gated(H_pred, gate, mapper).sum(1) # batch * hs
Hv = propagator(X, H)
for i, g in enumerate(G):
g.vs[v][H_name] = Hv[i:i+1]
return Hv
def encode(self, G):
# encode graphs G into latent vectors
if type(G) != list:
G = [G]
self._propagate_from(G, 0, self.grue_forward, H0=self._get_zero_hidden(len(G)),
reverse=False)
if self.bidir:
self._propagate_from(G, self.max_n-1, self.grue_backward,
H0=self._get_zero_hidden(len(G)), reverse=True)
Hg = self._get_graph_state(G, start=1, end_offset=1) # does not use the dummy input
# and output nodes
mu, logvar = self.fc1(Hg), self.fc2(Hg)
return mu, logvar
def _get_edge_score(self, Hvi, H, H0):
# when decoding BN edges, we need to include H0 since the propagation D-separates H0
# such that Hvi and H do not contain any initial H0 information
return self.sigmoid(self.add_edge(torch.cat([Hvi, H, H0], 1)))
'''
A fast D-VAE variant.
Use D-VAE's encoder + S-VAE's decoder to accelerate decoding.
'''
class DVAE_fast(DVAE):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False):
super(DVAE_fast, self).__init__(max_n, nvt, START_TYPE, END_TYPE, hs, nz, bidirectional)
self.grud = nn.GRU(hs, hs, batch_first=True) # decoder GRU
self.add_vertex = nn.Sequential(
nn.Linear(self.hs, self.hs),
nn.ReLU(),
nn.Linear(self.hs, self.nvt),
)
self.add_edges = nn.Sequential(
nn.Linear(self.hs, self.hs),
nn.ReLU(),
nn.Linear(self.hs, self.max_n - 1),
)
def _decode(self, z):
h0 = self.relu(self.fc3(z))
h_in = h0.unsqueeze(1).expand(-1, self.max_n - 1, -1)
h_out, _ = self.grud(h_in)
type_scores = self.add_vertex(h_out) # batch * max_n-1 * nvt
edge_scores = self.sigmoid(self.add_edges(h_out)) # batch * max_n-1 * max_n-1
return type_scores, edge_scores
def loss(self, mu, logvar, G_true, beta=0.005):
# g_true: [batch_size * max_n-1 * xs]
z = self.reparameterize(mu, logvar)
type_scores, edge_scores = self._decode(z)
res = 0
true_types = torch.LongTensor([[g_true.vs[v_true]['type'] if v_true < g_true.vcount()
else self.START_TYPE for v_true in range(1, self.max_n)]
for g_true in G_true]).to(self.get_device())
res += F.cross_entropy(type_scores.transpose(1, 2), true_types, reduction='sum')
true_edges = torch.FloatTensor([np.pad(np.array(g_true.get_adjacency().data).transpose()[1:, :-1],
((0, self.max_n-g_true.vcount()), (0, self.max_n-g_true.vcount())),
mode='constant', constant_values=(0, 0))
for g_true in G_true]).to(self.get_device())
res += F.binary_cross_entropy(edge_scores, true_edges, reduction='sum')
kld = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar.exp())
return res + beta*kld, res, kld
def decode(self, z):
type_scores, edge_scores = self._decode(z)
return self.construct_igraph(type_scores, edge_scores)
def construct_igraph(self, type_scores, edge_scores, stochastic=True):
# copy from S-VAE
assert(type_scores.shape[:2] == edge_scores.shape[:2])
if stochastic:
type_probs = F.softmax(type_scores, 2).cpu().detach().numpy()
G = []
for gi in range(len(type_scores)):
g = igraph.Graph(directed=True)
g.add_vertex(type=self.START_TYPE)
for vi in range(1, self.max_n):
if vi == self.max_n - 1:
new_type = self.END_TYPE
else:
if stochastic:
new_type = np.random.choice(range(self.nvt), p=type_probs[gi][vi-1])
else:
new_type = torch.argmax(type_scores[gi][vi-1], 0).item()
g.add_vertex(type=new_type)
if new_type == self.END_TYPE:
end_vertices = set([v.index for v in g.vs.select(_outdegree_eq=0)
if v.index != g.vcount()-1])
for v in end_vertices:
g.add_edge(v, vi)
break
else:
for ej in range(vi):
ej_score = edge_scores[gi][vi-1][ej].item()
if stochastic:
if np.random.random_sample() < ej_score:
g.add_edge(ej, vi)
else:
if ej_score > 0.5:
g.add_edge(ej, vi)
G.append(g)
return G
'''
A reference implementation of DeepGMG [Li et al. 2018]. Adaptations to DAGs are made.
'''
class DVAE_DeepGMG(nn.Module):
def __init__(self, max_n, nvt, START_TYPE, END_TYPE, hs=501, nz=56, bidirectional=False, Td=3, Te=3, fast=False):
super(DVAE_DeepGMG, self).__init__()
self.max_n = max_n # maximum number of vertices
self.nvt = nvt # number of vertex types
self.START_TYPE = START_TYPE
self.END_TYPE = END_TYPE
self.hs = hs # hidden state size of each vertex
self.nz = nz # size of latent representation z
self.gs = hs * 2 # size of graph state
self.bidir = bidirectional # whether to ignore edge directions
self.Td = Td # message passing rounds when decoding
self.Te = Te # message passing rounds when encoding
self.fast = fast
self.device = None
self.vs = hs
# 0. encoding-related
self.grue = nn.ModuleList() # encoder GRU
for t in range(self.Te):
self.grue.append(nn.GRUCell(hs * 2, hs))
self.fe = nn.Linear(self.hs * 2 + 1, self.hs * 2)
self.fc1 = nn.Linear(self.gs, nz) # latent mean
self.fc2 = nn.Linear(self.gs, nz) # latent logvar
# initializing hidden state
self.finit = nn.Linear(nvt + self.gs, hs)
# 1. decoding-related
self.grud = nn.ModuleList() # decoder GRU
for t in range(self.Td):
self.grud.append(nn.GRUCell(hs * 2, hs))
self.fc3 = nn.Linear(nz, self.gs) # from latent z to initial hidden state h0
self.add_vertex = nn.Sequential(
nn.Linear(self.gs, nvt),
) # which type of new vertex to add
self.add_edge = nn.Sequential(
nn.Linear(self.gs + hs, 1),
) # whether to add edge
self.select_node = nn.Sequential(
nn.Linear(hs * 2, 1),
) # select which node to connect from
# 2. gate-related
self.gate = nn.Sequential(
nn.Linear(self.vs, self.gs),
nn.Sigmoid()
)
self.mapper = nn.Sequential(
nn.Linear(self.vs, self.gs, bias=False),
) # disable bias to ensure padded zeros also mapped to zeros
self.gate_init = nn.Sequential(
nn.Linear(self.vs, self.gs),
nn.Sigmoid()
)
self.mapper_init = nn.Sequential(
nn.Linear(self.vs, self.gs, bias=False),
) # disable bias to ensure padded zeros also mapped to zeros
# 4. other
self.relu = nn.ReLU()
self.sigmoid = nn.Sigmoid()
self.tanh = nn.Tanh()
self.logsoftmax1 = nn.LogSoftmax(1)
def get_device(self):
if self.device is None:
self.device = next(self.parameters()).device
return self.device
def _get_zeros(self, n, length):
return torch.zeros(n, length).to(self.get_device()) # get a zero hidden state
def _get_zero_hidden(self, n=1):
return self._get_zeros(n, self.hs) # get a zero hidden state
def _one_hot(self, idx, length):
if type(idx) in [list, range]:
if idx == []:
return None
idx = torch.LongTensor([[i] for i in idx])
x = torch.zeros((len(idx), length)).scatter_(1, idx, 1).to(self.get_device())
else:
idx = torch.LongTensor([idx]).unsqueeze(0)
x = torch.zeros((1, length)).scatter_(1, idx, 1).to(self.get_device())
return x
def _gated(self, h, gate, mapper):
return gate(h) * mapper(h)
def _collate_fn(self, G):
return [g.copy() for g in G]
def _initialize_v(self, G, v, H=None):
G = [g for g in G if g.vcount() > v]
if len(G) == 0:
return
if H is not None:
idx = [i for i, g in enumerate(G) if g.vcount() > v]
H = H[idx]
v_types = [g.vs[v]['type'] for g in G]
X = self._one_hot(v_types, self.nvt)
if H is None:
Hg = self._get_graph_state(G, 0, 1, init=True) # exclude v itself
else:
Hg = H
Hv = self.finit(torch.cat([X, Hg], -1))
for i, g in enumerate(G):
g.vs[v]['H_forward'] = Hv[i:i+1]
return
def _propagate_to(self, G, v, propagator, t=0):
# propagate messages to vertex index v for all graphs in G
# return the new messages (states) at v
G = [g for g in G if g.vcount() > v]
if len(G) == 0:
return
Hv = self._get_vertex_state(G, v)
if self.bidir: # ignore edge directions, accept all neighbors' messages
#H_nei = [[g.vs[x]['H_forward'] for x in g.neighbors(v)] for g in G]
H_nei = [[g.vs[x]['H_forward'] for x in g.predecessors(v)] + [g.vs[x]['H_forward'] for x in g.successors(v)] for g in G]
E_nei = [[1 for x in g.predecessors(v)] + [0 for x in g.successors(v)] for g in G] # edge direction features
else: # only accept messages from predecessors (generalizing to directed cases)
H_nei = [[g.vs[x]['H_forward'] for x in g.predecessors(v)] for g in G]
E_nei = [[1 for x in g.predecessors(v)] for g in G]
max_n_nei = max([len(x) for x in H_nei]) # maximum number of neighbors
if max_n_nei == 0:
for i, g in enumerate(G):
g.vs[v]['H_tmp'] = Hv[i:i+1]
return Hv
mask = torch.ones(len(G), max_n_nei).to(self.get_device())
for i, h_nei in enumerate(H_nei):
if len(h_nei) < max_n_nei:
mask[i][len(h_nei):] = 0
H_nei = [torch.cat(h_nei + [self._get_zeros(max_n_nei - len(h_nei), self.hs)], 0).unsqueeze(0)
for h_nei in H_nei] # pad all to same length
H_nei = torch.cat(H_nei, 0) # batch * max_n_nei * hs
E_nei = [torch.FloatTensor(e_nei + [0] * (max_n_nei - len(e_nei))).unsqueeze(0).unsqueeze(2).to(self.get_device())
for e_nei in E_nei] #
E_nei = torch.cat(E_nei, 0) # batch * max_n_nei * 1
Hv_expand = Hv.unsqueeze(1).expand(-1, max_n_nei, -1)
Av = self.fe(torch.cat([H_nei, E_nei, Hv_expand], -1)) # batch * max_n_nei * 2hs+1
Av = Av * mask.unsqueeze(2).expand_as(Av)
Av = Av.sum(1) # batch * 2hs
Hv = propagator[t](Av, Hv) # batch * hs
for i, g in enumerate(G):
g.vs[v]['H_tmp'] = Hv[i:i+1]
return Hv
def _propagate(self, G, propagator, encoding=False):
# do message passing for all nodes in all graphs in G
if type(G) != list:
G = [G]
#prop_order = range(self.max_n)
prop_order = range(max([g.vcount() for g in G]))
T = self.Te if encoding else self.Td
for t in range(T):
for v_ in prop_order:
self._propagate_to(G, v_, propagator, t)
for g in G:
#for v_ in range(g.vcount()):
# g.vs[v_]['H_forward'] = g.vs[v_]['H_tmp']
g.vs['H_forward'] = g.vs['H_tmp']
for g in G:
del g.vs['H_tmp'] # delete tmp hidden states to save GPU memory
return
def encode(self, G):
# encode graphs G into latent vectors
# GCN propagation is now implemented in a non-parallel way for consistency, but
# can definitely be parallel to speed it up. However, the major computation cost
# comes from the generation, which is not parallellizable.
if type(G) != list:
G = [G]
for v in range(self.max_n):
self._initialize_v(G, v, torch.zeros(len(G), self.gs).to(self.get_device()))
self._propagate(G, self.grue, True)
Hg = self._get_graph_state(G)
mu, logvar = self.fc1(Hg), self.fc2(Hg)
return mu, logvar
def _get_vertex_state(self, G, v):
# get the vertex states at v
Hv = []
for g in G:
if v >= g.vcount():
hv = self._get_zero_hidden()
else:
hv = g.vs[v]['H_forward']
Hv.append(hv)
Hv = torch.cat(Hv, 0)
return Hv
def _get_graph_state(self, G, start=0, end_offset=0, init=False):
# get the graph states, the R function
Hg = []
max_n_nodes = max(g.vcount() for g in G)
for g in G:
hg = [g.vs[i]['H_forward'] for i in range(start, g.vcount() - end_offset)]
hg = torch.cat(hg, 0)
hg = hg.unsqueeze(0) # 1 * n * hs
if g.vcount() < max_n_nodes:
hg = torch.cat([hg,
torch.zeros(1, max_n_nodes - g.vcount(), hg.shape[2]).to(self.get_device())],
1) # 1 * max_n * hs
Hg.append(hg)
# gated sum node states as the graph state
Hg = torch.cat(Hg, 0) # batch * max_n * hs
if not init:
Hg = self._gated(Hg, self.gate, self.mapper).sum(1) # batch * gs
else:
Hg = self._gated(Hg, self.gate_init, self.mapper_init).sum(1) # batch * gs
return Hg # batch * gs
def reparameterize(self, mu, logvar, eps_scale=0.01):
# return z ~ N(mu, std)
if self.training:
std = logvar.mul(0.5).exp_()
eps = torch.randn_like(std) * eps_scale
return eps.mul(std).add_(mu)
else:
return mu
def decode(self, z, stochastic=True):
# decode latent vectors z back to graphs
# if stochastic=True, stochastically sample each action from the predicted distribution;
# otherwise, select argmax action deterministically.
H0 = self.tanh(self.fc3(z)) # or relu activation, similar performance
G = [igraph.Graph(directed=True) for _ in range(len(z))]
for g in G:
g.add_vertex(type=self.START_TYPE)
self._initialize_v(G, 0, H0)
finished = [False] * len(G)
for idx in range(1, self.max_n):
# decide the type of the next added vertex
if idx == self.max_n - 1: # force the last node to be end_type
new_types = [self.END_TYPE] * len(G)
else:
self._propagate(G, self.grud)
Hg = self._get_graph_state(G)
type_scores = self.add_vertex(Hg)
if stochastic:
type_probs = F.softmax(type_scores, 1).cpu().detach().numpy()
new_types = [np.random.choice(range(self.nvt), p=type_probs[i])
for i in range(len(G))]
else:
new_types = torch.argmax(type_scores, 1)
new_types = new_types.flatten().tolist()
for i, g in enumerate(G):
if not finished[i]:
g.add_vertex(type=new_types[i])
self._initialize_v(G, idx)
# decide connections
edge_scores = []
G_tmp = [g for i, g in enumerate(G) if not finished[i]] # the remaining graphs to add new edges
count = 0
while G_tmp:
count += 1
if not self.fast:
self._propagate(G, self.grud)
Hg = self._get_graph_state(G_tmp)
H = self._get_vertex_state(G_tmp, idx)
add_score = self.sigmoid(self.add_edge(torch.cat([Hg, H], 1))) # |G_tmp| * 1
if stochastic:
random_score = torch.rand_like(add_score)
decisions = random_score < add_score
else:
decisions = add_score > 0.5
G_tmp = [g for i, g in enumerate(G_tmp) if decisions[i, 0]] # the remaining graphs to add new edges
if not G_tmp or count > idx:
break
Hv = torch.cat([self._get_vertex_state(G_tmp, v).unsqueeze(1) for v in range(idx)], 1) # |G_tmp| * idx * hs
H = self._get_vertex_state(G_tmp, idx).unsqueeze(1).expand_as(Hv)
edge_score = self.select_node(torch.cat([Hv, H], -1)).squeeze(-1) # |G_tmp| * idx
if stochastic:
edge_prob = F.softmax(edge_score, 1).cpu().detach().numpy()
new_edge = [np.random.choice(range(idx), p=edge_prob[i])
for i in range(len(G_tmp))]
else:
new_edge = torch.argmax(edge_score, 1)
new_edge = new_edge.flatten().tolist()
for i, g in enumerate(G_tmp):
g.add_edge(new_edge[i], g.vcount()-1)
for i, g in enumerate(G):
if not finished[i]:
if new_types[i] == self.END_TYPE:
# if new node is end_type, connect it to all loose-end vertices (out_degree==0)
end_vertices = set([v.index for v in g.vs.select(_outdegree_eq=0)
if v.index != g.vcount()-1])
for v in end_vertices:
g.add_edge(v, g.vcount()-1)
finished[i] = True
for g in G:
del g.vs['H_forward'] # delete hidden states to save GPU memory
return G
def loss(self, mu, logvar, G_true, beta=0.005):
# compute the loss of decoding mu and logvar to true graphs using teacher forcing
# ensure when computing the loss of step i, steps 0 to i-1 are correct
z = self.reparameterize(mu, logvar)
H0 = self.tanh(self.fc3(z)) # or relu activation, similar performance
G = [igraph.Graph(directed=True) for _ in range(len(z))]
for g in G:
g.add_vertex(type=self.START_TYPE)
self._initialize_v(G, 0, H0)
res = 0 # log likelihood
for v_true in range(1, self.max_n):
# calculate the likelihood of adding true types of nodes
# use start type to denote padding vertices since start type only appears for vertex 0
# and will never be a true type for later vertices, thus it's free to use
true_types = [g_true.vs[v_true]['type'] if v_true < g_true.vcount()
else self.START_TYPE for g_true in G_true]
self._propagate(G, self.grud)
Hg = self._get_graph_state(G)
type_scores = self.add_vertex(Hg)
# vertex log likelihood
vll = self.logsoftmax1(type_scores)[np.arange(len(G)), true_types].sum()
res = res + vll
for i, g in enumerate(G):
if true_types[i] != self.START_TYPE:
g.add_vertex(type=true_types[i])
self._initialize_v(G, v_true)
# calculate the likelihood of adding true edges
true_edges = []
for i, g_true in enumerate(G_true):
true_edges.append(g_true.get_adjlist(igraph.IN)[v_true] if v_true < g_true.vcount()
else [])
graph_idx = range(len(G))
while graph_idx:
if not self.fast:
self._propagate(G, self.grud)
Hg = self._get_graph_state(G)
H = self._get_vertex_state(G, v_true)
add_score = self.sigmoid(self.add_edge(torch.cat([Hg, H], 1)))[graph_idx] # |graph_idx| * 1
add_truth = [1.0 if true_edges[i] else 0.0 for i in graph_idx]
add_truth = torch.tensor(add_truth).to(self.get_device())
addll = -F.binary_cross_entropy(add_score.squeeze(1), add_truth, reduction='sum')
Hv = torch.cat([self._get_vertex_state(G, v).unsqueeze(1) for v in range(v_true)], 1) # batch * v_true * hs
H = self._get_vertex_state(G, v_true).unsqueeze(1).expand_as(Hv)
edge_score = self.select_node(torch.cat([Hv, H], -1)).squeeze(-1) # batch * v_true
edge_truth = []
graph_idx = [] # graphs still having edges to add
for i, g in enumerate(G):
if true_edges[i]:
u = true_edges[i].pop()
graph_idx.append(i)
edge_truth.append(u)
g.add_edge(u, v_true)
ell = self.logsoftmax1(edge_score)[graph_idx, edge_truth].sum()
res = res + addll + ell
res = -res # convert likelihood to loss
kld = -0.5 * torch.sum(1 + logvar - mu.pow(2) - logvar.exp())
return res + beta*kld, res, kld
def encode_decode(self, G):
mu, logvar = self.encode(G)
z = self.reparameterize(mu, logvar)
return self.decode(z)
def forward(self, G):
mu, logvar = self.encode(G)
loss, _, _ = self.loss(mu, logvar, G)
return loss
def generate_sample(self, n):
sample = torch.randn(n, self.nz).to(self.get_device())
G = self.decode(sample)
return G
| 46.262117
| 236
| 0.552241
| 10,368
| 72,539
| 3.698013
| 0.054205
| 0.016901
| 0.007825
| 0.007851
| 0.819827
| 0.797345
| 0.774784
| 0.749459
| 0.731123
| 0.712736
| 0
| 0.017602
| 0.335089
| 72,539
| 1,567
| 237
| 46.29164
| 0.777326
| 0.164601
| 0
| 0.715781
| 0
| 0
| 0.00492
| 0
| 0
| 0
| 0
| 0
| 0.003221
| 1
| 0.070048
| false
| 0
| 0.008052
| 0.011272
| 0.15781
| 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
|
0729499287f1bc81cf96a5f1d6c0e75235b7fff8
| 159
|
py
|
Python
|
wq/core/physics/unit/wau.py
|
Wahlque/pywq
|
bf31a66adebb93f1e730b1f3188ec0aca5d4e147
|
[
"CC0-1.0"
] | 1
|
2015-05-12T06:58:12.000Z
|
2015-05-12T06:58:12.000Z
|
wq/core/physics/unit/wau.py
|
Wahlque/pywq
|
bf31a66adebb93f1e730b1f3188ec0aca5d4e147
|
[
"CC0-1.0"
] | null | null | null |
wq/core/physics/unit/wau.py
|
Wahlque/pywq
|
bf31a66adebb93f1e730b1f3188ec0aca5d4e147
|
[
"CC0-1.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import wq.core.physics.unit.si
import wq.core.universe.wahlque.planet as p
def fromAU_T(t):
return t * si.fromAU_T(1) / p.period
| 19.875
| 43
| 0.679245
| 29
| 159
| 3.655172
| 0.689655
| 0.150943
| 0.226415
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014925
| 0.157233
| 159
| 8
| 44
| 19.875
| 0.776119
| 0.132075
| 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 | 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
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
072cb3511d224e0d7a6f228f3fce1e38bd0d9d4d
| 3,310
|
py
|
Python
|
tests/test_usuario_get.py
|
rykehg/produtosPyFlaskJWTTests
|
a3728b353a6855e3b3bc6e5c5171549f1181e140
|
[
"MIT"
] | null | null | null |
tests/test_usuario_get.py
|
rykehg/produtosPyFlaskJWTTests
|
a3728b353a6855e3b3bc6e5c5171549f1181e140
|
[
"MIT"
] | null | null | null |
tests/test_usuario_get.py
|
rykehg/produtosPyFlaskJWTTests
|
a3728b353a6855e3b3bc6e5c5171549f1181e140
|
[
"MIT"
] | null | null | null |
import json
from tests.BaseCase import BaseCase
class TestGetUsuario(BaseCase):
def test_find_usuario_response(self):
# Given
login = "bob"
senha = "1234"
user_payload = json.dumps({
"login": login,
"senha": senha
})
response = self.app.post('/cadastro',
headers={"Content-Type": "application/json"},
data=user_payload)
response = self.app.post('/login',
headers={"Content-Type": "application/json"},
data=user_payload)
login_token = response.json['access_token']
# When
response = self.app.get('/usuarios/1',
headers={"Content-Type": "application/json",
"Authorization": f"Bearer {login_token}"})
usuario_data = response.json
# Then
self.assertEqual(1, usuario_data['usuario_id'])
self.assertEqual("bob", usuario_data['login'])
self.assertEqual(200, response.status_code)
def test_find_not_existent_usuario(self):
# Given
login = "bob"
senha = "1234"
user_payload = json.dumps({
"login": login,
"senha": senha
})
response = self.app.post('/cadastro',
headers={"Content-Type": "application/json"},
data=user_payload)
response = self.app.post('/login',
headers={"Content-Type": "application/json"},
data=user_payload)
login_token = response.json['access_token']
# When
response = self.app.get('/usuarios/2',
headers={"Content-Type": "application/json",
"Authorization": f"Bearer {login_token}"})
# Then
self.assertEqual("Usuario not found.", response.json['message'])
self.assertEqual(404, response.status_code)
def test_find_usuarios_with_logout_user(self):
# Given
login = "bob"
senha = "1234"
user_payload = json.dumps({
"login": login,
"senha": senha
})
response = self.app.post('/cadastro',
headers={"Content-Type": "application/json"},
data=user_payload)
response = self.app.post('/login',
headers={"Content-Type": "application/json"},
data=user_payload)
login_token = response.json['access_token']
response = self.app.post('/logout',
headers={"Content-Type": "application/json",
"Authorization": f"Bearer {login_token}"})
# When
response = self.app.get('/usuarios/1',
headers={"Content-Type": "application/json",
"Authorization": f"Bearer {login_token}"})
# Then
self.assertEqual("You have been logged out.", response.json['message'])
self.assertEqual(401, response.status_code)
| 36.777778
| 84
| 0.488822
| 288
| 3,310
| 5.486111
| 0.201389
| 0.083544
| 0.094937
| 0.183544
| 0.788608
| 0.74557
| 0.708861
| 0.708861
| 0.708861
| 0.708861
| 0
| 0.012432
| 0.392447
| 3,310
| 89
| 85
| 37.191011
| 0.773247
| 0.014199
| 0
| 0.753846
| 0
| 0
| 0.202582
| 0
| 0
| 0
| 0
| 0
| 0.107692
| 1
| 0.046154
| false
| 0
| 0.030769
| 0
| 0.092308
| 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
|
074146c2aaa85f1a291747ca9b4cd06278c2daba
| 4,888
|
py
|
Python
|
tests/reasoning/logic/fol/test_rv_and_2.py
|
mikulatomas/LNN
|
dfcef594a241778946a3b78b0b8390eb202821de
|
[
"Apache-2.0"
] | 41
|
2021-12-07T11:48:20.000Z
|
2022-03-29T04:16:16.000Z
|
tests/reasoning/logic/fol/test_rv_and_2.py
|
mikulatomas/LNN
|
dfcef594a241778946a3b78b0b8390eb202821de
|
[
"Apache-2.0"
] | 8
|
2022-02-16T08:50:00.000Z
|
2022-03-31T08:37:28.000Z
|
tests/reasoning/logic/fol/test_rv_and_2.py
|
mikulatomas/LNN
|
dfcef594a241778946a3b78b0b8390eb202821de
|
[
"Apache-2.0"
] | 7
|
2021-12-03T16:51:45.000Z
|
2022-03-10T07:51:29.000Z
|
##
# Copyright 2021 IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
##
import numpy as np
from lnn import Predicate, And, Or, Implies, Model, Variable
def test_and():
"""FOL upward 2-input conjunction real value truth table"""
samples = 101
steps = np.linspace(0, 1, samples)
x_grid, y_grid = np.meshgrid(steps, steps)
x = Variable("x")
model = Model()
model["A"] = Predicate()
model["B"] = Predicate()
model["AB"] = And(model["A"](x), model["B"](x))
for row in range(samples):
for col in range(samples):
# inputs
a, b = x_grid[row][col], y_grid[row][col]
# facts per model
model.add_facts(
{
"A": {
f"({row}, {col})": (a, a),
},
"B": {
f"({row}, {col})": (b, b),
},
}
)
# ground truth
GT = float(max(0, a + b - 1))
model.add_labels({"AB": {f"({row}, {col})": (GT, GT)}})
# evaluate the conjunction
model["AB"].upward()
# test the prediction
for g in model["AB"].groundings:
prediction = model["AB"].get_facts(g)[0]
label = model["AB"].get_labels(g)[0]
lower_bound = prediction[0].item()
upper_bound = prediction[1].item()
assert (
lower_bound == upper_bound
), f"Expected upper and lower bound to be the same but \
got {lower_bound}, {upper_bound}"
assert round(lower_bound, 4) == round(
label.item(), 4
), f"And({a}, {b}) expected {label}, but got {lower_bound}"
def test_or():
"""FOL upward 2-input disjunction real value truth table"""
samples = 101
steps = np.linspace(0, 1, samples)
x_grid, y_grid = np.meshgrid(steps, steps)
x = Variable("x")
model = Model()
model["A"] = Predicate()
model["B"] = Predicate()
model["AB"] = Or(model["A"](x), model["B"](x))
for row in range(samples):
for col in range(samples):
# inputs
a, b = x_grid[row][col], y_grid[row][col]
# facts per model
model.add_facts(
{
"A": {
f"({row}, {col})": (a, a),
},
"B": {
f"({row}, {col})": (b, b),
},
}
)
# ground truth
GT = float(min(1, a + b))
model.add_labels({"AB": {f"({row}, {col})": (GT, GT)}})
# evaluate the conjunction
model["AB"].upward()
# test the prediction
for g in model["AB"].groundings:
prediction = model["AB"].get_facts(g)[0]
label = model["AB"].get_labels(g)[0]
lower_bound = prediction[0].item()
upper_bound = prediction[1].item()
assert (
lower_bound == upper_bound
), f"Expected upper and lower bound to be the same but \
got {lower_bound}, {upper_bound}"
assert round(lower_bound, 4) == round(
label.item(), 4
), f"And({a}, {b}) expected {label}, but got {lower_bound}"
def test_implies():
"""FOL upward 2-input implies real value truth table"""
samples = 101
steps = np.linspace(0, 1, samples)
x_grid, y_grid = np.meshgrid(steps, steps)
x = Variable("x")
model = Model()
model["A"] = Predicate()
model["B"] = Predicate()
model["AB"] = Implies(model["A"](x), model["B"](x))
for row in range(samples):
for col in range(samples):
# inputs
a, b = x_grid[row][col], y_grid[row][col]
# facts per model
model.add_facts(
{
"A": {
f"({row}, {col})": (a, a),
},
"B": {
f"({row}, {col})": (b, b),
},
}
)
# ground truth
GT = float(min(1, 1 - a + b))
model.add_labels({"AB": {f"({row}, {col})": (GT, GT)}})
# evaluate the conjunction
model["AB"].upward()
# test the prediction
for g in model["AB"].groundings:
prediction = model["AB"].get_facts(g)[0]
label = model["AB"].get_labels(g)[0]
lower_bound = prediction[0].item()
upper_bound = prediction[1].item()
assert (
lower_bound == upper_bound
), f"Expected upper and lower bound to be the same but \
got {lower_bound}, {upper_bound}"
assert round(lower_bound, 4) == round(
label.item(), 4
), f"And({a}, {b}) expected {label}, but got {lower_bound}"
if __name__ == "__main__":
test_and()
test_or()
test_implies()
| 28.418605
| 67
| 0.474427
| 586
| 4,888
| 3.851536
| 0.148464
| 0.079752
| 0.027913
| 0.053168
| 0.8786
| 0.8786
| 0.8786
| 0.8786
| 0.8786
| 0.8786
| 0
| 0.015215
| 0.368044
| 4,888
| 171
| 68
| 28.584795
| 0.715442
| 0.098813
| 0
| 0.74359
| 0
| 0
| 0.080128
| 0
| 0
| 0
| 0
| 0
| 0.051282
| 1
| 0.025641
| false
| 0
| 0.017094
| 0
| 0.042735
| 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
|
ab09fdc6596e4d3ee37b234486a78a1a9b3978ac
| 1,076
|
py
|
Python
|
tests/plantcv/morphology/test_prune.py
|
ygarrot/plantcv
|
e934a891e0d1bf8987ca6a9f982a4ac1f420bfe7
|
[
"MIT"
] | 1
|
2022-02-03T12:08:59.000Z
|
2022-02-03T12:08:59.000Z
|
tests/plantcv/morphology/test_prune.py
|
HUISTENCOFFEE/plantcv
|
f38f7de53663522eb770870b70823d5fc46d0c0f
|
[
"MIT"
] | null | null | null |
tests/plantcv/morphology/test_prune.py
|
HUISTENCOFFEE/plantcv
|
f38f7de53663522eb770870b70823d5fc46d0c0f
|
[
"MIT"
] | null | null | null |
import cv2
import numpy as np
from plantcv.plantcv.morphology import prune, _iterative_prune
def test_prune(morphology_test_data):
"""Test for PlantCV."""
skeleton = cv2.imread(morphology_test_data.skel_img, -1)
pruned_img, _, _ = prune(skel_img=skeleton, size=1, mask=skeleton)
assert np.sum(pruned_img) < np.sum(skeleton)
def test_prune_no_mask(morphology_test_data):
"""Test for PlantCV."""
skeleton = cv2.imread(morphology_test_data.skel_img, -1)
pruned_img, _, _ = prune(skel_img=skeleton, size=100)
assert np.sum(pruned_img) < np.sum(skeleton)
def test_prune_size0(morphology_test_data):
"""Test for PlantCV."""
skeleton = cv2.imread(morphology_test_data.skel_img, -1)
pruned_img, _, _ = prune(skel_img=skeleton, size=0)
assert np.sum(pruned_img) == np.sum(skeleton)
def test_iterative_prune(morphology_test_data):
"""Test for PlantCV."""
skeleton = cv2.imread(morphology_test_data.skel_img, -1)
pruned_img = _iterative_prune(skel_img=skeleton, size=3)
assert np.sum(pruned_img) < np.sum(skeleton)
| 33.625
| 70
| 0.730483
| 157
| 1,076
| 4.687898
| 0.184713
| 0.152174
| 0.195652
| 0.119565
| 0.822011
| 0.789402
| 0.789402
| 0.789402
| 0.744565
| 0.744565
| 0
| 0.017429
| 0.14684
| 1,076
| 31
| 71
| 34.709677
| 0.784314
| 0.065985
| 0
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 1
| 0.210526
| false
| 0
| 0.157895
| 0
| 0.368421
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ab119d4c197dd2cc1ff407c06713e721607ed4f1
| 57,370
|
py
|
Python
|
python/common/calculating_blood_alcohol.py
|
agahchen/RSBC-DataHub-API
|
d3742a09851d5753809e8eb8e1f7f6ca10b121ad
|
[
"Apache-2.0"
] | 3
|
2020-02-18T20:54:13.000Z
|
2022-01-14T17:11:45.000Z
|
python/common/calculating_blood_alcohol.py
|
agahchen/RSBC-DataHub-API
|
d3742a09851d5753809e8eb8e1f7f6ca10b121ad
|
[
"Apache-2.0"
] | 41
|
2020-03-19T19:00:51.000Z
|
2022-03-05T02:12:18.000Z
|
python/common/calculating_blood_alcohol.py
|
agahchen/RSBC-DataHub-API
|
d3742a09851d5753809e8eb8e1f7f6ca10b121ad
|
[
"Apache-2.0"
] | 6
|
2020-02-20T20:05:24.000Z
|
2022-01-25T02:19:29.000Z
|
def superintendents_report_calculating_bac():
return dict(
{
"content": base64_encoded_pdf_file(),
"contentType": "string",
"encoding": "base64",
"filename": "Superintendents_Report_Calculating_BAC.pdf"
}
)
def base64_encoded_pdf_file():
"""
This function returns the base64 encoded of file titled, "Superintendents_Report_Calculating_BAC.pdf".
A PDF copy of this file can be found in the images folder in the root of this project.
"""
return "JVBERi0xLjYNJeLjz9MNCjI1NCAwIG9iag08PC9MaW5lYXJpemVkIDEvTCA0MjYyMS9PIDI1Ni9FIDIzODk3L04gMi9UIDQyMjQ3L0ggWyA0OTUgMjQ4XT4+DWVuZG9iag0gICAgICAgICAgICAgICAgDQoyNzMgMCBvYmoNPDwvRGVjb2RlUGFybXM8PC9Db2x1bW5zIDQvUHJlZGljdG9yIDEyPj4vRmlsdGVyL0ZsYXRlRGVjb2RlL0lEWzw2N0MwREEwMUEwREE4RjRGOTc1NzYwQjhGQzYwNTg3NT48OUJBQzM3Njg0MjA5RDI0NkJFODE2Q0I2MTdGREEwNzE+XS9JbmRleFsyNTQgNDFdL0luZm8gMjUzIDAgUi9MZW5ndGggOTIvUHJldiA0MjI0OC9Sb290IDI1NSAwIFIvU2l6ZSAyOTUvVHlwZS9YUmVmL1dbMSAyIDFdPj5zdHJlYW0NCmjeYmJkEGBgYmC6DiK6QMQqIMG2DkgwHwMRhiBCEERwAwmWeBCrG0T8BBHeQIJRGUhwRQEJBgsgIbANSEiA1DGtARLLvjAwMTL2gmQZGGlI/Gd49xYgwACCAg5EDQplbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0KMA0KJSVFT0YNCiAgIA0KMjk0IDAgb2JqDTw8L0MgMTQ4L0ZpbHRlci9GbGF0ZURlY29kZS9JIDE3MS9MZW5ndGggMTQ4L08gMTEwL1MgNTMvViAxMjY+PnN0cmVhbQ0KaN5iYGBgY2BgrmRgYWBQWsDAx4AAfAxMDKxAcY4NNxUYGDYwMIsycLA0gNhAwM7AUM8IpAWBWAgsYsHAyz1xbquM/sScbp+Ux8FiHC0Hry1SYLD9zfKwRJRDDWoqB1DjRSAN1MyUBKQ5GRiajKH8W3C7uRgYWnmBNDMDA48YWJaxAUgJMDAsugVRzGgGEGAA6NEYAg0KZW5kc3RyZWFtDWVuZG9iag0yNTUgMCBvYmoNPDwvQWNyb0Zvcm0gMjc0IDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4vTWV0YWRhdGEgMTQgMCBSL05hbWVzIDI3NSAwIFIvT0NQcm9wZXJ0aWVzPDwvRDw8L0FTWzw8L0NhdGVnb3J5Wy9WaWV3XS9FdmVudC9WaWV3L09DR3NbMjc2IDAgUl0+Pjw8L0NhdGVnb3J5Wy9QcmludF0vRXZlbnQvUHJpbnQvT0NHc1syNzYgMCBSXT4+PDwvQ2F0ZWdvcnlbL0V4cG9ydF0vRXZlbnQvRXhwb3J0L09DR3NbMjc2IDAgUl0+Pl0vT05bMjc2IDAgUl0vT3JkZXJbXS9SQkdyb3Vwc1tdPj4vT0NHc1syNzYgMCBSXT4+L091dGxpbmVzIDIzIDAgUi9QYWdlTGF5b3V0L09uZUNvbHVtbi9QYWdlcyAyNTEgMCBSL1N0cnVjdFRyZWVSb290IDQ0IDAgUi9UeXBlL0NhdGFsb2c+Pg1lbmRvYmoNMjU2IDAgb2JqDTw8L0Fubm90cyAyNzcgMCBSL0NvbnRlbnRzWzI1OCAwIFIgMjU5IDAgUiAyNjAgMCBSIDI2MSAwIFIgMjYyIDAgUiAyNjMgMCBSIDI2NCAwIFIgMjY1IDAgUl0vQ3JvcEJveFswLjAgMC4wIDYxMi4wIDc5Mi4wXS9Hcm91cCAyOTMgMCBSL01lZGlhQm94WzAuMCAwLjAgNjEyLjAgNzkyLjBdL1BhcmVudCAyNTEgMCBSL1Jlc291cmNlczw8L0NvbG9yU3BhY2U8PC9DUzAgMjc5IDAgUi9DUzEgMjgwIDAgUi9DUzIgMjgyIDAgUj4+L0V4dEdTdGF0ZTw8L0dTMCAyODMgMCBSPj4vRm9udDw8L1RUMCAyODUgMCBSL1RUMSAyODcgMCBSL1RUMiAyODkgMCBSL1RUMyAyOTEgMCBSPj4vWE9iamVjdDw8L0ltMCAyNzAgMCBSL0ltMSAyNzIgMCBSPj4+Pi9Sb3RhdGUgMC9TdHJ1Y3RQYXJlbnRzIDE2L1RhYnMvUy9UeXBlL1BhZ2U+Pg1lbmRvYmoNMjU3IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCAxNjYvTGVuZ3RoIDE2MTEvTiAyMC9UeXBlL09ialN0bT4+c3RyZWFtDQpo3tSYW1PbOhCA/4oe4aGRLEu+nOkwE0JpmSmQIbScOQwPJnGDpyHJ2G6Bf9/dtSTLuZWTc207i+3V7molrT4rlrFigslYs0AkcI1YIEO4xkxGAVxRh+0pUwL0iWBKSrgGTCloTyRTEbQnIVMJ2CaKaRCZaBanqId4qcYbCBhE6JmwMJQR3KQs1Bp8wE7FITilEDTFaKlkUYA2aQg30Ofbt/ykf8A/5LPvkO31F/gzZYf85Aoa3s3Hi0kxn8Lt8OT0ZDG2CqZCsLs6OuKni3kNzeQOWYOS/5Gd3MNQGgM0KfLZpLq9OzoCw/6QSW3a4PEie8wPbrI6Lx+z8ushv35Z5vxy8J5/qrJpjik8Lxdl7W5GNdjyywsIOwSDd7P8MacERt/ua/Q9fY9NZUFKunoun4v8CdR4abX47xZXA3K6wwxpknAgxyMMDP8pq+NFOclLfsMERGoebgXYiTv+gZ/xq3xc3wY66cF6K9nDdZG9SMGiiV4gRHDHR3X5bVwPsxIyZkHiUv5YzL82XfTn80UN2fCzweA4q/IJVEpEeXVU8Q7VfJI/oyahtWBQR1E7srMR+5LNKhjLOb9YwJTP+KDPgp7gl0PTcjk8ZwEf9Rkkm/PReVZ9BdN53iT47rl+38zcOCO/xbLxa9a2GtPQhIj4IFt+yIvpQ83iIOInedP0JpSan86yacVCSbVzfLx4vn0TRZramBRCUIA7aj3NHovZy0G/LLLZIWmwYDg9n1+TAmY1r8cPdjyoumk6VkLwszqbFeP+fDrLmYAVyB8/syRpBoOmmFhZLOtFyX83+eogpdHg1KKJ680WP78p5v15Vbjn06Ks6sFDVkIX3aC0a7GUPmbGQmrtFv4appgycelA6En9UN3GsK//S2nglCBFmNYRSQJUiaDQAmBJGIaNgI6ghLZh6Pysz8/E2Ru4kYA+EIGmzlBioCIKPQcBi8EBn8kRygX1lCAkQLagJz9j5/zMfQqb0sZGvU0CRUUpxcLBuEShDz9hd485gGA7XhPfxwjFEaL1g/vY+FgJEdBRc8UJCHXTH14pvokTCC8Rp8BRuAd0wSHh1bqjuPUyoRtjF9M84MSQhQlrV3Vt1SLhcohD6D42eWHyRqcB8gpjq7TtHWPBa1CHcUcXRtosoHKCo3CLtCKUtFtZT/yVlGb1bUWsCiYb+zZ+lZnK2Fa2uBX8qlgt51dtA5iYjX3YuELcdakKr4xtVI2jjVSVCbVZqgbJz6n65ngxm/wUrfEWtAZhtAdbbZ/7ATb6VQGLpa9i1akq4lqY/G2AddvOAyxWXQqnlI2Vv8pXiEFtoN+XrzZvl4fHV7sD7BX1tPU9LtudRS8g02aF5sfzo3z9+UG0gQ2eru1cdvjqcXkfvtoULUU389XEezVfk7/IV2/hd/F1tQCs/D/4uuO4YGW1GnyxfF3Tt9W2wlfpn1qjSHp8FbHlq/L4ij+xsM3yVXZPrdfFY16xi/yJXS0es7lHWmqBBtIPR/8sc5WOu8zd0vt+9E32ou+Gevk3RWphNp52W5eKPvFQZY9uGn+kGwdpkeEd33ZJuytFK6BPw3aDbcQv5mAOGRa3SA+HXw/TVNBeHLd7bdAufwOXmD1pKKXc1df7eCL+WlR5mCSfJG0xtnK+pfYU3l9S0FVL4RAYai8Px19v5jrwbPmLQ9Ktux/Chu7y1yaIiaGFMjMpVxKwgsnaHGIFvdm2uNXR4Cx/0dZOKvJXtZk1+sbfPwBob5FezV8aiCc7+RuLjfy1b3O3khsEbXCSVmXtfNueVddFbT4jbz/fAmT/JH+jLn9FvB9/9/+SIHaTVyU7ybsvdFPxK0NXiZafdKSENvwQ2dnLkdqbua44IYYVLN5UBp1N5W8EuzHskdsdeb1N5o7C5nODf4JybDZ+PnLpk4KhA6HWYNHh0SOQv7Gk3cib3il4pPXaVpGrYD4l3uNJUgUbkYt2u5Gb0Hfk7onXrpJFwhpx02QP4HoZxPiVOo5cGVjdLuAqHXaBG6wDV3lLtCr209barwv/EG1//WwRzHVrm+HeJqYq82vp1bzdJpa326Xh7Yh/ujpDOXio6+VvnD89PfWWVTXtTRffe/fj3jjj5SKbVNmXvH65Hx+S12Bkvynj9/Aym1dL/JA9fjk6+iHAAJIJttQNCmVuZHN0cmVhbQ1lbmRvYmoNMjU4IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggNjM5Pj5zdHJlYW0NCkiJtFVNb5tAEL3zK+ZW9sDCfrCwUhTJOKnUSpGSGKkHJwdi44+qAdfGSvPvOztAQi370sQXdnZ3Zt7z4w0Ob+HiIrwZf7uCCC4vs6sxeL89Y7k1ICWPDWjFoxRExK2Eben9gMrLci8cTyKY7bAIdrPKC/M8AgH5wgsiHkUa8hl0wQukHNcgwlyKEmolY64k5M/e1L9lQcoN+MWyBPaYf/euc+/uYywOIK34B9JXLP95BhTDlRmgwOegOEWF7RSV8RFFLcqnh4rWCxZI7TQFfR5FhRA81Ud+7PUNOih8d5XoXeXwVRpzk3YEhE5d8f85SxyRQaXmQIdJ56w1C2JuwZ+X2GooyIcIHcBrlCQZuiwYvP/PBdJcHtP+/BJrYXgsj0m835RbFg3FrhoWWHdQVvMSNzHX4H9hQcIF+DumeIz2vGeCUjZ1V01F7qZmghxcQdZBjLp1fK43GCvpyk+Y+o5ajbbNelHMGmfwUdMUs1U5h2mY1U1TP8NjmGX1H5giA5QKCVmutQJl3Nxhd2NtikmT/VPzuikh/FrXTbmFMKfdbbFcV0Wzrqt+aE4yp0Em5hSJxPFHEVCKd+IHoyj7rnHMExuDSXiSKsjnJ/JVn584bQmMohbM2Mghn0TTffWbp8hd0rlKyLYdru2/gUkUCtU6Kkf/gL9iIkJfAC34OUvBr38xfPv0qF+YIKs5gywpB3YM/bXqbmgD/Q5t5oqK+YSh94qup8T+jXu+otXAz9zd2CXCzFUXhEThnsKCksu2NfV4asnUtJnDoKI9WrWUsZ94O6vo3g0ENtsy40alZYQnbjTWjMYHTfDgs4R4CWf+nt0Dc6f4GQP4K8AAeE+ttA0KZW5kc3RyZWFtDWVuZG9iag0yNTkgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCA3NDY+PnN0cmVhbQ0KSImEVU1v2zAMvedX8BgBtWs5cboARYF+AeuAAjv41u6gxGrdLbWCtlm3fz+JT7LpNOguiiVRJN/jI0NE9bdJQZnOdUV1M7mbmjdV0pR4bZUuaGqxeVJ6QdNnlc3CEd84Xh9U9sW/aF7USbDyRr+VnsfP7pFtCBsy9KIW+dJ7EDb2nV2Ti54MvG8te3xV8xSpuy/LMrzgMzINnyIlBHjqbzlndmBi+n1i9j+5qozDx0yd+uE5upu23ibXNF2x7eAzppYzbTdKl8DJr0bMcswRbgQC+iNBuyWzBQWbYMfG6wDKdG8cgJ6Rm/nL3ojNrGlIum9sx48sUJmOfxsSpJlfwoBp2632OeVjXgC3e0VMB3+EjHzO9g9fCOK3bsPYRAXSq5F0mKusyAvvqX6nEWsDIx/IAPFsMBYGeL1QvlrnYbkMV3msSL32AXyUpQ8XvpqJf1D/nFzfXtLk+Dudnh7fXt5cUUVnZxdX/izTs7waUpLWX3Vvvkjmx3WtSVP9wIh8jBDQf8xC0Hk+X0p01yrzCW8i22H1zJfpuzMqqwKjOhQbZ64LfVL2KM/VTCcPazZ3LW48+WPEusirxWeQTwSGAhhC5vPggcFweTL4EShqjpumBRTkmqjNlUVbocVQIK4ZJEA2lnWYLrA0QVih4XztNyh68OdaxzvI2MCfmBFJYPFmaFYa1ExrMVMge6F6tEODhubvMT476DDlW4X6IHDSeoXZwSFIzCEr5mFU6yfqNyu42L2Jkvcdhy360TzzeCG0lOOIkbjIVwqDKi59fgWCbK0T08Yi21g1w5sGN8MoODD/W7XkwR7H5CO2bRQvxhtGnWXw8N8yMNyy5zhFKCEAxW4nmv1A8PhdJpZ5iQIE8JDN/ljZm287AETheXAc0p2sHAtCymGBRmUGOlnwBhCTIPoSmviXBIWAE3uEIR//ijHnDmjoIwMe3f74HhQgWIcvWL2qWUi691b2uhFdMgLfeUqJ/gkwAPIKy8cNCmVuZHN0cmVhbQ1lbmRvYmoNMjYwIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggNzE0Pj5zdHJlYW0NCkiJfFXLbtpQEN3zFbOp5FnY+PqBcZVGSiBSWylS1XiXZEGxeVQUIwjl9zt3zjXYTsoG7uPMzJnHuSai4vsgJN8EJqWiHDx7JgyJTUjeH/Zj8tY8Im9z/ll3V28ckbfnjLzqwAl5VKvpgv2xbH5t2AiorkvOg1wOXjwLlUitAEtdf2JZvrC9pl2lHmkFZ0fdBTYS7Ar2U/JWuq5oW+/ZZI23mXIjNZkpYrt0wA61v2ySBn0EAAm0QDVovLGJAiMBNWOg4F+zr9SCWpf8+r6m6kVcUqTwkN4lj8g2d5gXc5KfE2VSudC6EUTxexAGYZjYS9+tThQGUeYgUjLB6FWsHrA4kXAxwDxLvr6w3we9QALJ2pEeHic0GP6gm5vh4+TblMZ0e3s/lTPfJEGeaH6jPvyrOePzBj8sCkOGigWImQ6xJEhydZWA3ISN7Zzt8EZLNNf1ERtcSC3tOK31aLuke/Zle8exmKo9NTg7M4XgTKwDou2yN1Qv4IOmFr/XK/iTyUhbvheYcHtfw4MLZ8/sWMBhK+CK6n0DNE0WogF6Yt/OHKfgYo13G9UOOP3knruyYXHotSpOg9Rc65WM0qX4IYrfmRwZRvHjw1FrUrvacjq4yL8+qaJ12J2wSKqrkokaxWC0j2oADZIKY+WsnUrUDBWr3G7OZ1HOObb9OeIJgdTWnNqzentQ9XZczCAwdzbDm+RUBhJlRQqtqawArlp0kVKFnt2xTtLo7K/zXLiXApw+UHs3J8fcZoFIvZeoVBIaHlF6xY3kD3VbVfCI3D735SsExldnwlwEnAaj7EL5P/iowXffHJ0caUTezvlJZfeFx83Yg6Trikoiuyii+SpoimJqJY/i7HBZiRhGqi7Xu05R8Bn56PPRK0kejNKrJYmvpOjDvJXkQyvJB2TSiKE9RKDs+m4z3Vppn6e4cvzx2ZrxK9E/AQYAkvucTw0KZW5kc3RyZWFtDWVuZG9iag0yNjEgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCA3MDg+PnN0cmVhbQ0KSImUVdtunEAMfd+v8EslrIoJM8DASmmkZhOprRSlUlFfNn1gA7lUDUS7ufTz68sQ6KZB6guYGdtzfOw5AED1ZbGOumtcmiVE7Q4ziGDTok0gekAH0TNaTxttB1YWE6jl3TXyApeAGHcYpxBdi/0OybxA/EHJE6gugR7P4DKTpWw2iwiw+rk4PVvB4uArHB4enK0+n4DN4Ojo+IQWE5MkGQfGbDmOjjU8tsbmnGIdVRjnBOADlvSUc3XlFj3DKQg1bGS93avkAS1937QwlhmCuIaw3NPTWIiuMC75Dc2Wc4rjExJWNTstGequgZDJjuf3sskpBowbydLWAQP08h32fnHGXoMakGbUE3bvZT806SJCW+gOwyMw/Ooex5rU8VUfUm/KcrYP+dCHOHOmLEbSp/6f7Bjgh4CDqrJgobr6Vwtzs1xOG3iMMeH7iI6KWnFlQKwwGQ9KtOPqUqUxZxZ5r2Fzy8u3wuoT0gSqcyftv8ZxKr5hwmMN71FbSJx5XjhF/voNlfhepL5ASxnBJ6/YsqUp3CxbxVA8XSFP5ZKzWLYwxEBa5ib3UN29FV4O4daZrNR4NUOCwppiLsFySOBf4v0Ybsti9nxib2g2N8pK4WSkUrwb8EBBTDrKSXdCsq2jc5lJmbSbVqjfYkwfsGJ2+24XbiN7NVOHWuxwWXi372Rod/vUJ8bNUu/sZO6SN+cu1kQ8eZlO3ndGWMttegzXSRDUXbh6l3L1xEHMRzHrPb0g3CKbmuG+3ep0iUOt6qBqMIiE7PRAiblSalDqtb41HcOS0t/0cpLCkaOZSEYw1YGJ0PTdAD0Icr3Z0TAzDtUR0Zf7KWiotyIdLTRavJwzqlsQzQYEZRwYZR4F8OQGb1pVLJVWsy/4plzOts/N3hybJsaXM5ObvvwuFFMxc1T2H775377ZK+mb+A7KB38EGACA445oDQplbmRzdHJlYW0NZW5kb2JqDTI2MiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDc5Mj4+c3RyZWFtDQpIiXxVTVMbMQy951fouD6sY3nt3XWH4UDoMGXKNFN26AE4LPloaWnChLQp/76SbCcpDeRir2xJT09PDgDAwECJGn0D3XRQgOq+D95fjGAwHMPR0fBi9OEUbAPHxyenZKyhNGCgBmy0cdDUOljofr7m12a/YddZQOjmA6ONqaDbQIihQgrlrZZI1wXIT2EFslW33fnAam8auk0Qr4sLVVrdQHFPKxQLFbTLH0/KavJbrxSZnlVZ8z1YqlrXUMxhzJ50/ot8aLmLy4O4xgATdoRLVdLSK3Gfz9i2fhYgVAjGQkquBKUSHRIvssPK68buF6RK5I9UWSqJIpm9SA66CaTNBlqmRELKDmuj6xa809bFmJ8VcklLCu05dD8lzC3D7eeqDHw2W6fNs6qYoRO+QJ8jSW84n2QOnJAIQpsJBkbstCfEL4o2B+q11mi3a+ArUghvSKHkCNYynNb7qMMtVxSML9rMj1BOuWqf4fbSrQVV2UIxpaWRFsrnUs4eSBaBWyzLJK1rVoPLd1Zwplo2z1Kk2YoDa2T3xEK1ZSFiiULWGKqIZQc74o5QPbb5eEfNx/vFjy07ldljZ08VGFImDAdVgby4irUhqtiQKqhrG2qftDx9ayrUcesfs1yeaCNHcUNHX/ORZtU0e4atxn5HHW2j3U2ys05K2xr6Yb60EinRlC17iUO7KSW1NYeKWqVks5xjnQzPGSAlYfIjaZeP/WJHGmbSYj+YIUrVevyf7Z0QK5u9/hm7pCpHraLHsAlRWeM0Mp9YKTzAilDmUSKUyz8KWzZAsN5BHkEpgrAv8v1xOlgpI27MJE/XGcfFZHB53BiXz+OJ8h7EN9olWFf3dB2ZbhQBr5cqhQ/xXZTTnowkYzgZKTRcBVy1qpJ6vlBejAWlQQ/KytycMyL6trtHIs28bd2bvFav8+pJph72CuhUSTlm9PB6mbjHb8vF7F0SERBJTM5NoQS29eZGxW06qtrmBbyiZEwHHlKqHKsMvGlck+Yy+x2uxW2VRXFqeaKIaeTpoypql5/J3N+4kT8sdQvwV4ABANiSg9sNCmVuZHN0cmVhbQ1lbmRvYmoNMjYzIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggODM2Pj5zdHJlYW0NCkiJjFXbThsxEH3fr5jHtdR17F1fI4REAlRUoirNSn2APqRhS0AkC4GU9u874wssREIoDzu+nHPG4zMOALRfikpwIRS0C8BAQvsEknsFAtrL4rw8ZpXiHsr5gjVcQ/nAKikpuGaeSyhXrDLc0bDStO82fbsx07yBEuCiZIJbKGstLhiGBicbbdhP1BZBljTLirU3r3Oh4Ak8N7WN2ZRaW0vbBjCg8dHpFIqjthgdX19tNx3s7Y1OpyeHKAP7+5NDXBxNZwKmMwTBbPq1wIRqwIPCDRT3+BH4k6AkGO+407BYFTS1KnQj8ZSVgNtiVpxFoR0Vk1XuCyW58x6sdeAcF0hVWcethk1X/IA17hh9xkyuHoqwrIxSJqiHXUIIqSFyNMY1mI7ntfLOGkU5jU5WAg77nMjZgC4kKr1XPvF5rrVHGqITCpmFD6ejsPaJTUa2CZbu28t5XD6PxCs3dHqsTggDF1ijoV0Vg9oP0Eo817xtJVa1/f3mWl3wmCKmSB1CaU3gVp4+SH9ezljVkHO2dx1FaJwNqxyvg9vQc+tHMqdCs9EyenJ9+RyFJfTfRV3XBJJkXU1+cbT+PTPe9ZkzI6Bfw3SeeG4TdpHGW4Tbl+k5UWZgSuoKJnm57y8h+bzC67E+9tQBk5aWcZs0lERm75d9hsK0Xy9SjjuHyinnLIcZBN01dV2cm9AckgRRxEyxCV+3Hl6t9Tq12Lv9pOp8t4Irhw3k4BRx2ESGmr0xdBrl8H1A30tbYy7o+9muR5qXjkGkrkF6xW3Eoj+klUiUWgbNSa6RlG+VIkxavFgzhFZwX2PHa/oE+xyxqiZ3/J2vGLZVeYflpkrcMkOF6Vh8yMahHHjasw9msyMtsbJmIJ2K2O6eW+Vzf1TLc5+kQhQhjWrwyd0RetvHSg86UcROfF1J814l8UExLlbyIFUS7roNU/FvgGyWKriG62S2MA2XG6w3/Qnk6T9MBnweY4/MgcA2/YHg3v4Rr6VOpKHVgxBkbLfM6AWLvaNoewfzx3ifUDfjSCEThYVlvx0mzNPOGXYxSm5/hdlshPttl4DrRJlF/lEOOP6U8M+SQo5jhI8raiWioWSGJMSywwcB4L8AAwC56ZM+DQplbmRzdHJlYW0NZW5kb2JqDTI2NCAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDY5MD4+c3RyZWFtDQpIiZxVTW/bMAy9+1fwUsA6WLVkW7aArsD6cdiAAhtmYIe0B69xkwyt03XL1v37kRKlaEm6Arsk+iAfHx9JGQD699ksnz+JWtaQr0RRywryn0Jp2o903kAOj2ywDjfBcj5+FwoNxA0ClVAoqSoD/RxBB/jCXuPwQxiyXgJaS7QfhFIE/ODxH+8ZbgS2XEPiTsYGnSIKL3xs3sAwDQ5GQ/6bWOKZu1+Jls48zxVbTKkrx9lwnAcOOwXkEDcQgJjX3KMOcCY6aSF/6//OOR1Y34mioYRBMbgqgVYthSkMGS9YiyNR0bHkGAEjSBVyu6WIm53DwCzqtxwPlYTlDsWbGIUUUltCWx38HpVlwznsXA3PrPRrELyPMhWui6JOw67UMZEI7BVPFMWmVY3s9rs2preQrEF/C/jzCzRybRtazzPk1H/NLq/OIbvss+MPcHJyfHX+7gJqA6enZxd4/i0zjWw0KFvL1kDdKVl2oFpK5WnMPsOUnaFr3ytQ0N9lVloDRYn4buWdtcU/1P8hROx90I/ONwnbhrClLEtFnAtaGSKuSsJw0H7ZltIidlcx9iz/xJrCG9G4mVXcakkZFkc7gpg9LVJGXWBUGNdGjXXGl2RM1HQkqR1YTN+t2g60sSSc44ccrKvWtMNhL7fOSo2+KHOlt7odUKWUuq18BrM8pl0Ct/mCJsrQ6zXywMJyzZ28CS/bde6v0tHQ/x6NJunr8DaFByxp1wODNsSm9lHWEzAPd4Mn47WgrrbbJzXIhNUtlUrG2dfBqVE7K784WIemTevgxwZn95VCWNfvurH/VQhNhYh9l1aiiZUwXIk6VCLRNjx8z+ER3+q6X4Z7f/+C/KiuainYC8JX/JHBPervCTpxUHTV6b/e0B71c7lQnrWbM707Z0xj2mw/VDcAfwQYAMOAkD0NCmVuZHN0cmVhbQ1lbmRvYmoNMjY1IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggNTE2Pj5zdHJlYW0NCkiJnFRNa9wwEL37V7xLwaJ4otGXLUgD3U0KLSyk1NBDN4eQ/SChm9KlafvzO7Jlu8luCenFM9Jo3jw9zwhA+6HQaG8gn1+oiX1M7qooodq74mIxR3HRFieXOD09Wczfn8NFnJ3NzmX/exE8eQOOjuoA1zDpBlwzBezXxWfcFzNJbVsGo90UkWJApQW/8/pkYz0ZtLuhYNvX/NilTlW9Hqpq0poT4yp5IdFmTT4j926tKQq0sT30l3KhHHmUt6pyZFHeK+Z+LTdGuVNVoIjyIW2HaY2ZapJ925t5zsb1DxU6J9snMGt8y0AbVfkUwSoX3D/m8VOxIfcXry3eKJ9OgFnjtfgSxbLs02Trt+IumAsYLG2o+yiCXipxU8aIYiLS0Xpit32lbEqFuur+fcXEdfrjo0rXUiSxHq/VYf6XOCbfzYwwIs6oSma2erkqflBFjplRlSwyG2SuWZwwieOzOEkkdjUyKxHl6tEkWE1sw9FReHe7fdivp87koTOF20I6/U4mQ0zXjeBATerXECkke7MrUmBXMMsQNKlpvxafpN07+ANsM2LbQLVJM+OgBcqjEU+mbPOPTDtO6cTF1mSNc0fI+EBswnNs3IBpoiXnJzbuOTb+kI2RV0P7o2xsQ42Nz7EJA6azhppoXyBOfUjHWblSlGfsiDiegjNP6AD4I8AACkkUhg0KZW5kc3RyZWFtDWVuZG9iag0yNjYgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyMTYvTiAxPj5zdHJlYW0NCkiJYmBgnOHo4uTKJMDAkJtXUuQe5BgZERmlwH6egY2BmQEMEpOLCxwDAnxA7Lz8vFQGDPDtGgMjiL6sCzILUx4vYE0uKCoB0geA2CgltTgZSH8B4szykgKgOGMCkC2SlA1mg9SJZIcEOQPZHUA2X0lqBUiMwTm/oLIoMz2jRMHQ0tJSwTElPylVIbiyuCQ1t1jBMy85v6ggvyixJDUFqBZqBwjwuxclViq4J+bmJioY6RmR6HIiACgsIazPIeAwYhQ7jxBDgOTSojIok5HJmIEBIMAAScY4Lw0KZW5kc3RyZWFtDWVuZG9iag0yNjcgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyNTc0L04gMz4+c3RyZWFtDQpIiZyWeVRTdxbHf2/JnpCVsMNjDVuAsAaQNWxhkR0EUQhJCAESQkjYBUFEBRRFRISqlTLWbXRGT0WdLq5jrQ7WferSA/Uw6ug4tBbXjp0XOEedTmem0+8f7/c593fv793fvfed8wCgJ6WqtdUwCwCN1qDPSozFFhUUYqQJAAMKIAIRADJ5rS4tOyEH4JLGS7Ba3An8i55eB5BpvSJMysAw8P+JLdfpDQBAGTgHKJS1cpw7ca6qN+hM9hmceaWVJoZRE+vxBHG2NLFqnr3nfOY52sQKjVaBsylnnUKjMPFpnFfXGZU4I6k4d9WplfU4X8XZpcqoUeP83BSrUcpqAUDpJrtBKS/H2Q9nuj4nS4LzAgDIdNU7XPoOG5QNBtOlJNW6Rr1aVW7A3OUemCg0VIwlKeurlAaDMEMmr5TpFZikWqOTaRsBmL/znDim2mJ4kYNFocHBQn8f0TuF+q+bv1Cm3s7Tk8y5nkH8C29tP+dXPQqAeBavzfq3ttItAIyvBMDy5luby/sAMPG+Hb74zn34pnkpNxh0Yb6+9fX1Pmql3MdU0Df6nw6/QO+8z8d03JvyYHHKMpmxyoCZ6iavrqo26rFanUyuxIQ/HeJfHfjzeXhnKcuUeqUWj8jDp0ytVeHt1irUBnW1FlNr/1MTf2XYTzQ/17i4Y68Br9gHsC7yAPK3CwDl0gBStA3fgd70LZWSBzLwNd/h3vzczwn691PhPtOjVq2ai5Nk5WByo75ufs/0WQICoAIm4AErYA+cgTsQAn8QAsJBNIgHySAd5IACsBTIQTnQAD2oBy2gHXSBHrAebALDYDsYA7vBfnAQjIOPwQnwR3AefAmugVtgEkyDh2AGPAWvIAgiQQyIC1lBDpAr5AX5Q2IoEoqHUqEsqAAqgVSQFjJCLdAKqAfqh4ahHdBu6PfQUegEdA66BH0FTUEPoO+glzAC02EebAe7wb6wGI6BU+AceAmsgmvgJrgTXgcPwaPwPvgwfAI+D1+DJ+GH8CwCEBrCRxwRISJGJEg6UoiUIXqkFelGBpFRZD9yDDmLXEEmkUfIC5SIclEMFaLhaBKai8rRGrQV7UWH0V3oYfQ0egWdQmfQ1wQGwZbgRQgjSAmLCCpCPaGLMEjYSfiIcIZwjTBNeEokEvlEATGEmEQsIFYQm4m9xK3EA8TjxEvEu8RZEolkRfIiRZDSSTKSgdRF2kLaR/qMdJk0TXpOppEdyP7kBHIhWUvuIA+S95A/JV8m3yO/orAorpQwSjpFQWmk9FHGKMcoFynTlFdUNlVAjaDmUCuo7dQh6n7qGept6hMajeZEC6Vl0tS05bQh2u9on9OmaC/oHLonXUIvohvp6+gf0o/Tv6I/YTAYboxoRiHDwFjH2M04xfia8dyMa+ZjJjVTmLWZjZgdNrts9phJYboyY5hLmU3MQeYh5kXmIxaF5caSsGSsVtYI6yjrBmuWzWWL2OlsDbuXvYd9jn2fQ+K4ceI5Ck4n5wPOKc5dLsJ15kq4cu4K7hj3DHeaR+QJeFJeBa+H91veBG/GnGMeaJ5n3mA+Yv6J+SQf4bvxpfwqfh//IP86/6WFnUWMhdJijcV+i8sWzyxtLKMtlZbdlgcsr1m+tMKs4q0qrTZYjVvdsUatPa0zreutt1mfsX5kw7MJt5HbdNsctLlpC9t62mbZNtt+YHvBdtbO3i7RTme3xe6U3SN7vn20fYX9gP2n9g8cuA6RDmqHAYfPHP6KmWMxWBU2hJ3GZhxtHZMcjY47HCccXzkJnHKdOpwOON1xpjqLncucB5xPOs+4OLikubS47HW56UpxFbuWu252Pev6zE3glu+2ym3c7b7AUiAVNAn2Cm67M9yj3GvcR92vehA9xB6VHls9vvSEPYM8yz1HPC96wV7BXmqvrV6XvAneod5a71HvG0K6MEZYJ9wrnPLh+6T6dPiM+zz2dfEt9N3ge9b3tV+QX5XfmN8tEUeULOoQHRN95+/pL/cf8b8awAhICGgLOBLwbaBXoDJwW+Cfg7hBaUGrgk4G/SM4JFgfvD/4QYhLSEnIeyE3xDxxhrhX/HkoITQ2tC3049AXYcFhhrCDYX8PF4ZXhu8Jv79AsEC5YGzB3QinCFnEjojJSCyyJPL9yMkoxyhZ1GjUN9HO0YrondH3YjxiKmL2xTyO9YvVx34U+0wSJlkmOR6HxCXGdcdNxHPic+OH479OcEpQJexNmEkMSmxOPJ5ESEpJ2pB0Q2onlUt3S2eSQ5KXJZ9OoadkpwynfJPqmapPPZYGpyWnbUy7vdB1oXbheDpIl6ZvTL+TIcioyfhDJjEzI3Mk8y9ZoqyWrLPZ3Ozi7D3ZT3Nic/pybuW65xpzT+Yx84ryduc9y4/L78+fXOS7aNmi8wXWBeqCI4WkwrzCnYWzi+MXb1o8XRRU1FV0fYlgScOSc0utl1Yt/aSYWSwrPlRCKMkv2VPygyxdNiqbLZWWvlc6I5fIN8sfKqIVA4oHyghlv/JeWURZf9l9VYRqo+pBeVT5YPkjtUQ9rP62Iqlie8WzyvTKDyt/rMqvOqAha0o0R7UcbaX2dLV9dUP1JZ2Xrks3WRNWs6lmRp+i31kL1S6pPWLg4T9TF4zuxpXGqbrIupG65/V59Yca2A3ahguNno1rGu81JTT9phltljefbHFsaW+ZWhazbEcr1FraerLNua2zbXp54vJd7dT2yvY/dfh19Hd8vyJ/xbFOu87lnXdXJq7c22XWpe+6sSp81fbV6Gr16ok1AWu2rHndrej+osevZ7Dnh1557xdrRWuH1v64rmzdRF9w37b1xPXa9dc3RG3Y1c/ub+q/uzFt4+EBbKB74PtNxZvODQYObt9M3WzcPDmU+k8ApAFb/pi4mSSZkJn8mmia1ZtCm6+cHJyJnPedZJ3SnkCerp8dn4uf+qBpoNihR6G2oiailqMGo3aj5qRWpMelOKWpphqmi6b9p26n4KhSqMSpN6mpqhyqj6sCq3Wr6axcrNCtRK24ri2uoa8Wr4uwALB1sOqxYLHWskuywrM4s660JbSctRO1irYBtnm28Ldot+C4WbjRuUq5wro7urW7LrunvCG8m70VvY++Cr6Evv+/er/1wHDA7MFnwePCX8Lbw1jD1MRRxM7FS8XIxkbGw8dBx7/IPci8yTrJuco4yrfLNsu2zDXMtc01zbXONs62zzfPuNA50LrRPNG+0j/SwdNE08bUSdTL1U7V0dZV1tjXXNfg2GTY6Nls2fHadtr724DcBdyK3RDdlt4c3qLfKd+v4DbgveFE4cziU+Lb42Pj6+Rz5PzlhOYN5pbnH+ep6DLovOlG6dDqW+rl63Dr++yG7RHtnO4o7rTvQO/M8Fjw5fFy8f/yjPMZ86f0NPTC9VD13vZt9vv3ivgZ+Kj5OPnH+lf65/t3/Af8mP0p/br+S/7c/23//wIMAPeE8/sNCmVuZHN0cmVhbQ1lbmRvYmoNMjY4IDAgb2JqDTw8L0xlbmd0aCA2Pj5zdHJlYW0NCoGBgX9/fw0KZW5kc3RyZWFtDWVuZG9iag0yNjkgMCBvYmoNPDwvQml0c1BlckNvbXBvbmVudCA4L0NvbG9yU3BhY2UvRGV2aWNlR3JheS9EZWNvZGVQYXJtczw8L0JpdHNQZXJDb21wb25lbnQgOC9Db2xvcnMgMS9Db2x1bW5zIDIzMT4+L0ZpbHRlci9GbGF0ZURlY29kZS9IZWlnaHQgMjE4L0xlbmd0aCAzNzk4L05hbWUvWC9TdWJ0eXBlL0ltYWdlL1R5cGUvWE9iamVjdC9XaWR0aCAyMzE+PnN0cmVhbQ0KSInsl3lYFOcdgGfZXVjkBjlWIBEvEEVgxaNarLc0HjVGazWCmkbRWONjH0NEImgkEVPiUS3aECuLqIUnihYNChY1WFERNZFAk1VAQEDQCAHcg935dY7dZY0IC+zMt9p5/2C+a4bv3e/6fRjGwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHB0RUWfQcNHR8aGvqroQNcUPeFCQR2wxd9knGj+lHTzwqlUin/ubGh8uqxLQt9bfmou2YqeO7TtuU0QMfUnP5o4qswsE5vn6jUvMCRpq3s6Dw71N3sFQ5vpLfinTrS4E0pk21Rd7aneG4o6XwcDVEXvdcXdYd7AM8zsd6YgTQY0qpYNx7qbncTzx2Pu+VIUxP3Uo2ocG15DyRJ/hshQN15Y+GHFnZvuhqCXwiyQC1gFHY7W3osSdIYJ0Kt0DW8kF4MpXZA8/zMfSsSrGnqpSRJ/dvm7Wm7X20CSwBFvDlPXO9LJpEkwE+Z79Ey/JapLAnyfVDrvICRMhNaAtwcglqoQ35db1JLgPIA1EodEFhlYkuAUvObt36VJrcEKPZCrfULPIsYsATIc0Yt9gy22YxYAp5qTucnfx8zlgSbUbsZENHGmObTMNRyekY2MGYJcH8gaj0tNlcYtAQ4JUQtSMGLZdQS8JWoDSlGmeLq1Rl15hD1ic4xbAlw2Aym7VKccU31DNSSmP09xi0Brluh1vyA+cEE0CxBbOlRxoIlcfe0R6u5gY3BJFYn2uG0Nf0ls2NuWqLUXM6SJQDKzVbAbJhnSCYPneZ4OWuajX7oNHezZgkQhczSUcai5jVrVJqT2DlNaNoCUGmyOWcBohFZ8tmJgHRcQaTpp2RVs8UVjeZqNpcmsTjnotGUsmoJkIDEUnSbZc08JIHQgEcsa5YjWZyhGpY1W4eh0Pwjy5YAs1Bo7mBdcz0CS94x1jV3IdAUXGJdMwPBVmtZzLpmnoB9TVEt65q3hOxrWjezrllmxb6mDeuWUCviNDlNTpPTpBHVs675HYIDxaqSdc3rCDSFRaxrZvPZ1+SfYV3zH+xbYlgy65pbUWhGt/9/jVqllMvlSpVaw6TmUhSabxH/WFn7/YWUbZHzpgQFeHiI/YMmvbnqY+nF0no1E5aacSg0B6fHzg/2tnm+gmfXf/Tiz76uMLElftqJfUlSp9NavpX4t/FZlS24iSzr1iK4bRqLTXD4/quNvZds/WIQapWuEHnO+PhiU1svJOXSQARHZk8QhX5wSqbokWRZoi/q3ncLp6B3D97p5pHTenKxG+p+dx+epfucTy9UtxqlqKhOD3e1QN3lnmMfsvyvFyo6Xa1qWVb0BAfUHe09ApeBv4tOuVInV6kNzxy1StF0Kz1unq/TSzyMHeAcMG3x2piEJIKtMWvCZwS7v1p+HBzsMykqcee+dILkHZGjrFD3hjHC9hUSe+SZqPWJBUqQRVii7g9jeNQB+BFP0Vv1oNrY+Y2FwM/22fxrfRjql6m5CUDHm/OVIPckvI+ey8vLy804lp4tXeVJe0/ankASY8PLy9mRYMBOmUfAp1RqSz+yoWhm2o27Zffz9w/DMLc4qmKjNfWJWVRmewgaSQy7rNPscxfg9xgmHDo5C2C32MVjcoambhVV5TP7JMDDlaFCa3ltSuzqyKinkBUZ+X7COeVdO7cZyTg0R02yIdq5fNWw2sfFY+q/8W3E9yZuVoA8/jf0HdM3vIRYHXPEyDWxfIBwKjEXYCL5tEoFxXy6bhDAF8RjenUQOb68elhOlgo2Xyb2LfEDOE/HA2n4MurplH+CfFgXwq32fW0dgIRpmRej1xSUgsafSk0HGEclBimggL4lujwBYoCw9cvol+qBTgxKF2KY7W34J5UbrG7WXkWmplKPs1DQ/o+WAfRnzKJL9JoTW+EoPcH0mvY/wl069nZuoDT5tLRek+9CDG6fIq3mG3ibdmLw6Z3JvDSJnZZnO+1eyz57ukiv6VAORUIqpdXUodOk0GsGquG4teG3zUszbfOujO80mjjdYaHXnKDG/0wXGaVpcQPwzCEGzcxL83xi4v5LLbhCtoGOD7SavKHFmsPaLcQoTWzMQ4CGbe76mmc0l6PWpBaU69YnAJl2ZJLQjJ89e8Xh8uzZAm0r4zSxkdeJ+2ZtlHbyE5pPUg/quGEWmhhvlgI0MWSK0Mxel1AF917XtzJSE3OKIqIqPF+7E52FR3t0kcSOK+ahiVkcAPjBCaM0iTghUA5f8XWtjNXEeO57mwDueVIZM5y0BFMBVD4YpbmA6PAeUMzUtTJak3gvpBDgEJU0ry1Ip+nXDJoBmE4T618NBXbaqm5oYph3JVS5kAnz1AxSQUVfTK+JbcBhjbbKGM0hY3UlW+DxQPJpXpoTtEki6kwig1Odpr0MalzpKmM0F34r1JaEQw0V9ZmPpoUMYBOd9K+FYuo6pdPEFmlgNx2Uuz6FT9pfcvwJ1rfnHEogg3yGyDfRWxZvr3ZtnoOr7TdYYgvyYUiiSwQzm4kTPcLL2TUkrk51nDpBeH8CWEN1T3QRmsKo1GTijLHUvzX2KaS0f2N4I9xxJJ7O9xSxZATMf7O5mNppXX+ASm9dK/7nAPMY9+mY0XeeqAiePqi431C0ZzwZ8vRNuvBYpXp0/oAzkZnS3PbTyfnY3MxaotG1JBvqpYiMcqWqNecvIio3JqNMpVIUJxM+71Urf0z+cNv5ur3UpIgvUamUpan0rWfpxWaV6uHx2Ug07cU0vgPFunhHONyXLPEbQS20wRKJpB/mIfEXi70lI+g2r0uGi8U+En96OjtJRojFXoFB5J1EEPyHdbErw7Tbs59kIFEhoUMiLyIj9pe4sqr3f4OllRWv61YvNf3mJZzI/0/+6aR1U72FXTd/KeENS619lLZ2ftjSnTJcXT8FdX+YwX67vCFau0cI1zfCIrTdYQi7LLx8pH5R8laq1+mrhG7u7q/IcrX9FzweaZC3+CaRTrhFZpfe+rai5utVVMw94sAhqVR6KCmYro04cUYqPXNiCZXpfzgrVXoyw81WmpWbe0ps8LHI3NyczGnY9KxrJSUlN65cv521dRS59h23HyS/dmC8vqnoiMF7JocXg+MfPjNi4bvIv5bvVhQsIIJ21zm5mrtLiPPQNvCdJpBvCNTObjtfKcCRoXRO6LWkVf7OawL+4HFF+kCRZGwLwEcBjpjj6BgVlI7xGbbgrEaZShybgsFz74N6S7CDvmmYcjODmu4NUNX3mRJLsuvWf1MlaYWs43HlRvKHEOSAzK693UTAw/QZ0fVKOjRIq4YKG10p/2gBAB3buVbAZTKisv47wGdUSQrUeLV/zSINvnc0mdVzRAN8+Xwp73M4baHvQTK0rSATmXDboI0E8JD2XGYh/czZ1KJZriv0L4wCoKI8zEFGa2JuLVBmTSa2QonBj9a/EfCFvXTpBOLnXvF86TRlq6Q9510F1eQP35nmkTP082boKfjGWlv45fsrn9O0ugMPyNj4F5rRZc1wXoAxhHs9wP/YL9uYOIowAM8e3HFw0HIcV0SCCJQW5EJ/iF80Jm3VViEo/fCHmrSximKNJGhqjKkY6lWlGiuSJm2oTdsYiQIajFgtBSsi1rS2Smv5OL4LvRaklF6ugb27fZ2dvTt22bMh8SgxeZ8fzMzLzGaenZvZeR9URXU/QpNO1n5f2nA309wjaeq7UvN4fo0US78Qo9aMugIt7CxQaOo6N+0Fz4r/LhQYC0260lTRLCdY5e2caThLbq65W9I0DcSEtUMt8+AqdhCVJlcMYzksotDMO2/IdMP+IBgFJGcKYKkquhngRXk7fBKmDHPSTLqsIcUwzR6Z2pGo0Dy9WJeQe9BRlyWNkGtqat4mId+D/fagSKnJmARYo4paATYpAufBFT8nTUsnR2JHgX2Tyj/gFJruAVvPuMfTtE062eWaGcP0PM53C68FRUoNnRI8p4paZ60maZ6r5r1nOMJVwnAC/YTYlhOF5pmExdFLN/4A8Ae7jsg1S7+i53pUO5yVHUrBhGsFOKyKvgFQrgi0wnRkAM17ZlofSpqrf6bb8m6HQC+MO6sIUe9NonvLDV1motAM76taX1CwsQmEvCB5zaYEYDBmdjBXgEZFOjYA58hszSwQcmdanx9hxVN19I+mAc4ZbuumixlAk0S0ATxPFJr5Y0cOUWrdcDQ4VirMl8FTpIhwy/TxQzCRLAsl34CdZLZmvBte9je0re+w8pV9bNqC8MTrdeJxG0CT0CvDe0Sh+U0pK0KOw9Ty4GipKHTBSKo8kHTpLmIVFF+UEsF+B1Fq6siiXqjxX4bTJqSfWykbFtIJp7vuF2uBNLcCiO9kRjNz2HvC5nmgImhiSsIOCHDCONPWHLQZifECTGb6Q3Gdrm1i+TX86fPKPkQ01TDmf/dll6Rf/sfbWUG3wndMSq7Zppf67gLPI0Suaa32PsXwOwzNV56ir+KhzeKbv/5N1z5at/TAXz4HQ62rLISWXD0MxUmhiGP0+v3AdTgqZRjcKmeJ9IAvSliRMMI/xipFACmsEt0DI0tYLf2iUCMKV0K/mQVie/0pwHYQXponTRK6uQOufZQtXkT1OfVuJ8sBlzV4BreIi6zNabxSLFqSRBt4dmeYjEaT5YCL3mS4oin49ck7jaYs68QeaaUSO35iySlX0cKGxFYDiFkc4fKcAHuTtYaUZ23T+8U+Ma3gfEh8N5Fl8LA3TeDy6Q7KJPOF6YVm/nrvsc++7XA4jxexCZLw9Q2O3vpPPj3VXZEmzua+EwM8z0+P9ff19f/t6mbL+2gz7xq9OHT11NPsBmxpG+T5/l/ETRkr7uWUxoEpnh8/mUtS2sbpYN7eZetu2ZVNx5q+7KX/Gj25Tnu448a10fZyUbTyN/uEg7cX/ds0g8Cilc8UFhZuWBEmi0WtLNj6eLo3bdDG+zMzoonzbWbz6g1b1iZ5G6HiKmmW6H3dQuPYWH0ECY1kgeh4397gzOzF0L5msbuW7ewY1l3jH48gCIL8n3n16i1mx4Jornr3FrN2QTQRBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEWkn8EGADm14kiDQplbmRzdHJlYW0NZW5kb2JqDTI3MCAwIG9iag08PC9CaXRzUGVyQ29tcG9uZW50IDgvQ29sb3JTcGFjZSAyODEgMCBSL0ZpbHRlci9EQ1REZWNvZGUvSGVpZ2h0IDIxOC9JbnRlbnQvUmVsYXRpdmVDb2xvcmltZXRyaWMvTGVuZ3RoIDYwMzQvTmFtZS9YL1NNYXNrIDI2OSAwIFIvU3VidHlwZS9JbWFnZS9UeXBlL1hPYmplY3QvV2lkdGggMjMxPj5zdHJlYW0NCv/Y/+4ADkFkb2JlAGQAAAAAAf/bAMUADAgICAgIDAgIDBALCwsMDw4NDQ4UEg4OExMSFxQSFBQaGxcUFBseHicbFCQnJycnJDI1NTUyOzs7Ozs7Ozs7OwENCgoMCgwODAwOEQ4ODA0RFBQPDxEUEBEYERAUFBMUFRUUExQVFRUVFRUVGhoaGhoaHh4eHh4jIyMjJycnLCwsAg0KCgwKDA4MDA4RDg4MDREUFA8PERQQERgREBQUExQVFRQTFBUVFRUVFRUaGhoaGhoeHh4eHiMjIyMnJycsLCz/3QAEAA//wAARCADaAOcDACIAAREBAhEC/8QBogABAAEFAQADAQAAAAAAAAAAAAcCAwQFBgEICQoLAQEAAgIABwAAAAAAAAAAAAAAAQQCAwUGBwgJCgsQAAADAwAFBRZzCQAAAAAAAAABAgMEEQUSITFBBiJRYXETFBUyMzRCU1RzgYKRkpOhsbLB0dLhBwgJChYXGBkaIyQlJicoKSo1Njc4OTpDREVGR0hJSlJVVldYWVpiY2RlZmdoaWpydHV2d3h5eoOEhYaHiImKlJWWl5iZmqKjpKWmp6ipqrO0tba3uLm6wsPExcbHyMnK09TV1tfY2dri4+Tl5ufo6erw8fLz9PX29/j5+hEAAQEBAwYGF3kAAAAAAAAAAQACAxEhBBIiMVFhBRMjQXGxBgcICQoUFRYXGBkaJCUmJygpQkNykcEqMjM0NTY3ODk6REVGR0hJSlJTVFVWV1hZWmJjZGVmZ2hpanN0dXZ3eHl6gYKDhIWGh4iJipKTlJWWl5iZmqGio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrR0tPU1dbX2Nna4eLj5OXm5+jp6vDx8vP09fb3+Pn6/9oADAMAAAERAhEAPwCKgAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARAAARf//QioAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEX//0YqAABEAABEAABEAABEAABEABnyLkDJaTKoSPdltExgbQ6azKhYxwKjOniGmmWBHNEMgU5LwUgFovAPmcsAB3DpiGTZJJVJN7JEtNlGCZaZEysZUITS06Nu7Yh/ScZqJLVDZsRmRGa2hkfOCQKjdCcTMF59po6BZ8F5bmYkdWg+8BUnwH1GACYMa8pLQIjdVTyI8jWunmhHadQgatviH1J9rZKuzDbi5YudpWMTQo4MvRzLbL80DCNFBEjoX3iyXp58BRmA7R8xDN+JJtJGPKG5EcJRqRs1ROMCIyliM5lUOVkhIqSMi2lcpIO62CjnGoqaqsUUSO4GLDlFLi7vUW2C/TSjgi8Vrbcm3PDzJE+WMGFigADcsEAABEAABEAABEAABEAABF//SioAAEQAAEQAAEQAAEQVsGDZ5aoYO6FNGrQ5VCElFRnWAwYNXlsh3YINo0aKJKEJmmZnMIhLVI+kk7SDd0vDYiavzUoLaFaFGuaKgyhc10IaIpilmJwKdtqUzhTOWxyci6GYyJZ+lOtFSfpAu7uSXqTUGzaYZO5HFknbx2kdVOrR3LilkhFe6UkhCEnAkkRFKQgoiIqgiiVYPXlhAq7IhA7GhOm2kVUd6OYLaSUzJDyztFREdUops2qMcDdXd2bdY51JaehevmNnD6T1fYc2GWHmA8/T0788rIfWaq5y52MldOrVRJXOkmdxGIaTSlK9PEd1Ixt65JeXY65zmiKbWzCIrqlJXAxgEyl5Gm0KexbmR1iyLApB3cZKOEMc5loGbGvP8VRzbgeNM09g5XErNapIiWop0Gii6EmQ1RJphroEoiusTwA3TcoSNU2qWDI47eiR3+Nc1YKS6OqCKnt1rXCtNKU3wZxU5kvTnOO3c0GRxKxcmpc9p7BB8q47MoMCM5ktLGZ1BHFMbglKjuJDEkmxd3tKnV5ZIaIOyiFkSkxOEEzdOkRFWjbPBJdWJqnkgiSmrOZK3WVI7gY1KkGSK6rntDOVjPOpUMXcFyZZYEsAEkUz1POJKyczHktGUS8Nj9RcBSipAmzSp8kHFSSmqdTMzVchnNOsObfBxKkqSo0qIyURmRkcwyMp5CfHZ3Mk11VPOErMiZEcwjhRM7RK4jkaW9Ixm/s1SUkYgkPaYy7NM0mxFPIqlRQn0TmVAvRFFzbIZZigvgymzLEyOmif9BXd4nZJJc5Yls02xeAoxADIyOBzDKeQDiiqIAACIAACIAACIAACL/9OKgAARAAARAAARAAZ0gpGKkxJZ2kemMGrQpcynkhNOWdGbApghpoMMlpqAMgk1AUgFogCWSuypA0nyYMLDb0nI1sRk7EZWKica61VCqrR2jNotkcsmaRzFEc1JlUGMli6O6HdDFCSJkzSSUysCJJFMIiURQKsURVopW6t3c5dmUumETKFCrKbMqyiVWOXooLq7Opdi+8ZT0MazTB6YuJOQYYZDApptOVmuy2byk5WadpJOac2YcZ0Y1NGthGyTFLk8yjYourwUqZz4Ec460jmxFLu7k8nXVwVXN4TNNio59TKmc8qoxsndbGSDNbg+INk3hE0mUJpWkmI3uTFHBl94N3w3LYbNOyTTEiAgwrW2Ywl58s30L6E/YqYq3I9ktye1SPbnMVT2K6Cqm6kLjGR6snF0NJkhoaTZGZU2JyyihWHAZ7B1lWLFDzKtWjEqauE4ymEZXAZA4g5RGyGWQ1KZLTwMJDLoyQWCZz8ucFWbdy+SJZefNM+yXwRUvLWNXN5aSIQ6kmDWVZpUUSmElUZ8YDxq5GqSTqgknXF3YRjQiUSIo1M4xtAGZiRzL0JMaHMQvSnMkgSqcmFYh2aD8qEtHY2g8cFTLRPLGv8AfTYkcq7OsTbLoRnqh+akYrJjX+8KeDTKsEQShNCBTEpweHG9enImrsp2dzJiTRZGsyKeRnFVxGE9NUsISPkczro1SUIEUUoKpOhGaKbvEsa0W3SUTHF6EtNF8MsMiW8yMGSt7m6vh5mW89UCnaJlPkrDe2rNgUFTVGUxNGbMoTiqTKhMKZNGtaLW0VLrozqBQKgVUMp4Ys3RR18qru9HNNBHFCT10dE6oUIdGzU66NooKEYQKWhWTCIq2BCg7h0dG4154i+BC9gRlPzqZWHONZD7+xzagTFGlL6k+Tq2KTLomDJuqVeEkUxLQ5y6xVGrrRx4nWSsi3aSEjWzg2IiZt2ZplpkY0FEaiI1GRzpUoCDnp3aujy1dWxQaMWimayq0mZHfBxag52aac6KbL7TmBDNZMrBSlTilgBqPZDwaq6fBq2AALq0IAACIAACIAACL//UioAAEQAAEQAAEQdXSDbOTg1epJPa5VaUJZMiKao5Y5ZcCuUpo5QbuRCZV0jp5ajvhYALF2YqBcmyQy0IY2AvAiB+fKSjS4vNgAkSn5UK7N8pcv502R6SYmRzG7QktG1wiRkVxiM5wxESUYyskXMltUkZk1d1EzJSqBmgyMiOpMoDiwFtmIYmZYDmHMPCpjn5sdLf2NaDFDqWi0Wi+cFgpS7uQtKt1kvJE3d+SmR7Rooq9WzMzlSVQQuJzzoKKFWJAdkNq5pN6lDbJiUsmiVTOoiBB2VJWl+8SNlHCTBqbuhQShtYzVkVXp5N7K9DS3Qe5ubRdHFmNJEkwJRelF6U/PlrYzFLTQDLoX3jATLE5+YpPAat+pTSEke5If270g2TVMsyJmZLW0LXJFNPAURH1KPEQJISWSp1keRuTqqJHA8jllVmU4qorqIc3Ft0MAeE0qWnRlmeZikEqU8g1STsEk9oN5nQjTJadKS1iy1VEbQfH4dNIvEQZPSNYodlmze2aJia7ko2hFUSxKIzuMRtbiUh6ML80FYMu2XhglLYx3xm8rZGlzNLNbRREtZzyKE8oURz8i8RBkG+OK3l9aV5tmKYtGKqcatuQsasnjkaUlL6SEl5d1kfLObmcSOB5HNC10ZTiqiupjTYq26vsF9kSi1KIqD4Czo5lh5oPGdLwa6tUlqTEjXyvJo+oU9Wm0VLKQlVQaippHcYlUi1JalHIqRjImjVddjVTmSGRpNS9dEc0iLXUCuIi4BIoJicRoZfDLMtkU+xy6mnUWOuhffeJMozF0J0t5LG9rbkSCYrmVxKMSKqXY8akzO4Dj6VrZ3e5LG/O6VIJ4ZoU0SqExZUw4QnzEkYzxrJNpprJdQaiusDwA2O0RuLFKsMBhphl6RgBZJEBEo1MtYubu6GQaajg0X4YYZxWqAAFdbUAABEAABEAABF/9WKgAARAAARAAARBvpFwrxZ3NfxjQjYuMkWLs71zaEo1EozKVIpxwqTIbonaDDZLReEacIsHUFpmCGFbcBrFSbRaLIzrVQwBjyw3rzzr4Is2MOWXuIPgLTRTcziQtoA1yZNMTsdmoqyCsEL6JJua8/JUzoKIywwkOzmZTQ2OCrUFhoUxWUApQ0ZtCizUSi1yZGKhnLUIAAChAAARAAARBr5NWQRbzAGNgNRJd5ZNTQyZqJUoZmqE6MyA1xQQHNqes3IPtCctcAAKCsoAACIAACIAACL/9aKgAARAAARAAARAAXnNmybN0smpGZLOESOBlehIEcQJpQl4PzFZAX2hO7N4WyUg5RKzTFKqdAjhGaRkD47E7NiQSpZKkkpKjqDqRJYIBMBeLxUR0qeFYAXVuymbNDVSkyrSMqc04wn0BStg0Qgmsw0KOBKKaUaiquIgskU1NxCPhUEZkcSOB1JDIZv74zsVqZ1SqdfYi2xd2jeJM4GaSljIzIphUZo8SxNSVKJSSJBkRmZwjGM66CRHiFl8PzIJSGNMt4rOZyaalZRmlW3TNODGQiTLsqx0qSdwMr6NVXuuuddoplCVKxjRnwHhsTJFdJZJlLEmYcTqZ1wGwOzqzTvwU4plgXNg+ot2Uk3I8/IVpKLAD05IuRZ+ldDwQ0jV3aMUpWuEFlFMDI4lUjxLJRpl1GSUGcCUqM07gRmMrGXQQFkP1B8FRRTE0rcqkq5pKYo1VREeBgMdpJopzFnWGs8AWDGuWyNCSWSkqSZmUUxnlQmkRj1Tu0SxJucJRRwI4zzqITxBd3UvvPB4UwpuJUhzYE+pVbd+eXiJLXBJ2imYnDiwPUpllEmJFGpmEKmzFbBdc2kCUU8iOMKI0ktNSRfM8rMPCAQTlQAAIUoAACIAACIAACL/9eKgAARAAARAAARBkSPs8ZbewBjHGQ4QJ6QtSkpSg4majJNA6kxk54fZwIVahrDpqCqmpupPrU2xLNNdVRlYVJ3oeyQQ1NSXhSyaM2hQQpJQIiKhCgKXpianhotC2akqWpRGS0UTjUj14bor2ZObM5eUM1KVOKJxmFGtGZlNgwQvieX+JDyxF8kQzajCKpsk1OLpAyKa1KaZFPVVjxqo3V2U5KKLRSyWo7RIoFAiqZwPBEbk7oJSTUzrpLESkmZROJUQUpD06JNSiJswptOMkyyKE+E0hJll7D1Fs4KND4qUFNMjjVl5eSOsdtuHaYAYtUMuR8qlTU1qSkjYrSUsoiiZwhPMYhkZHA6FRA74MGsOM7GpGHjsSyizLFbiSv0YsThCgMoiKweaJZMtXYlyssmMIQqRikUTgDd84CEZp6lZT5ZF1tzgRUyNg9O6HZouuTRkapRR2KcscYHUDx8IjYu8qpKpRkSVElSTMjuBiytiUqlbNRKJSSMyiUsR0SMp88ZNEhowPiNAInPDChQIQIXoS8cGvG7u2dlVzalCM0jKak6shkKTLSNZTSKDVU+YKGzXJIzd1KJS0rNUw4yqYTCiKmhFYPZolkmpLRSjSSky0DqogAAWnpUZKM96BIS8/l7wVYSypxU9E8qOGF6SdnzW5b9SMZCTUsiKBTaJkRXsZEkjSt7W0QpKkqlYGkyVOIioHVDG/ZwJmqaU30Kg4RYwAAwWSAAAiAAAiAAAi//0IqAABEAABEF1g7qbSyjOUZoKK1nOLBmLQzllKSIQac/G1O51giGTDIL5Mplkl5Q0Xnp5eWKamJHBCDUVSszjeoQFSid1MDWglJaJURGkzikyOM0pkZ4sgRROFSIjpwhnI8vUs1riaSmFPM5hFWmcwVVwaypqIiURT5UyVCtgZwF+SBEyak7ImIZJK4mZRNVaLDFqti0S1QcDSccMJIDLUaX4C8SEBJD4p14zZraqlWZSyqgp48WhSFGlZQMp5DYLZIZSVZVzmJaGlZEU4oxwQwW9l2m31X0xLTEaIZYaInQKA0+Zzz6M2LVqRmzTLQmnCEwqkUGUDhhxlOGgjcK0wAxRBADLJmv8QpBhImKtTFohJLUUEnOOJQOsmzQUxapZk1NNMM4EooGUbgPVmZsGRUCNcL0Ml1MloS6KOCW7I4VBLJSpU70JDIaL0MoPVJewqgkgPz+IWEK1MGqEE0WmVSoopM4FGsBKKeZLKBIiayrKF1mDJfFGtzdVKnnXW+kIDL4aJphhQMKpJhAmnCErHJ2bKZ11IilNPRSRX0eKYtUJlzTTZ0sU1N1KJDJYpNcjWpFCyqZ5kkqFSZD1ilbBzbmZV0JoRFBBkskwtI4GcKoZUWIJcLD7+DnTlEcYZUDTzyxUMWrQjUzTLEkonChWig5kwZTlZN5twq+kMUYkABkzX+IKkGEiYvZVRpNRFMIyIzrYwvg8Gc6yqkqcFEUWqJYjoy9jJKsgMEyMjMjmGRwMgaZeAMt+XUimQF8kTKpAABipQAAEQAAEX//0YqAABEAABEGW7N2amC3NucqlRyyF0Eqq6oYgCWWiyXxMeInFQQ+ri3ZuzOagzKgpNOSdYZTB6bupmyNq1igzMiQk5ijOicJ8IC1EynC87uT6+Eo3R3atyTCWNkhTSEZ0ZUjhOAtMsvkwCeYKpSATBVBXnqD6SXhjNaSpE0ZlY0SokVEhjoYKUqn0xEacpUwiw9UMiwLJi2F5vC0wkLA0mbYXm8LXCRBdnNovlpl+nkhCgc2gHgC9UKtm1U9yRQ0Qk5RBkRVSSjPGO3dniu7TItR09UDIjMp4u2BZMWwvN4WmEhYFkxbA83haYSBd3NoPFoPlol+OFOgc2gYAZT0orx1Ind4UxbnK11ZGhRnaJqIjKIsrdHhCpU2ajqyIzSdXGcL9gWTFsDzeFphIWBpM2wvN4WuEhRzmQ9HCAl6SFOkY0++8YZxWO1IqYyTTjSU2E0pYzjAqmgQqas2zA2alJNMEpNJmUJs8XrAsmLYHm8LTCQsCyYtgebwtMJEUc5wyTNNfQpkjGphwSpfGjJqslMLGbElSyKgqdK3WaK3tm0S5OsskylSaS0ydEyhEeWBZMWwPN4WmEhYFkxbA83haYSJsYYMc+0zJCmaApwasJRbUEBgMwzHlUxYtVSMaElJmZtEqIoTTKZNIUuMs7Njatos2ZJOWJUw1VBERz5oWBZMWwPN4WmEhYFkxbC83haYSJsYcwWSGg+wMvCmUUW1CHjJGYUcma1M3lSUnBTFRFMnnGcV0FhgwaNGkJQzJMTUUDoTTKtF+wLJi2B5vC0wkWXhxfXQkm9u7VgSoyptUKZxhPhLEURAdXNqNAIJD8AaENOpjGg+YQ/OKE3eCby8MjCVGEqUY3QXZJMTS1J4SkyQ2IlVijnkdWMQBlHyJBfL5fEMoqI2EEQPBAABipQAAEQAAEX/0oqAABEAABEAABEFSGjRnGUUpMZ8DMhSAIq6+Hi1q7uPBhXw8WtXdx4MUAIeEwI+VXXw8WtXdx4MK+Hi1q7uPBigAeEwI+VXXw8WtXdx4MK+Hi1q7uPBigAeEwI+VXXw8WtXdx4MK+Hi1q7uPBigAeEwI+VXXw8WtXdx4MK+Hi1q7uPBigAeEwI+VXXw8WtXdx4MK+Hi1q7uPBigAeEwI+VXXw8WtXdx4MeLaNGkJdSlQnRMzFIA8JiPoAAJRAAARAAARAAARf/TioAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEX//1IqAABEAABEAABEAABEAABEAABEAABEAABEAABEAABEAABEAABEAABEAABEAABF//9kNCmVuZHN0cmVhbQ1lbmRvYmoNMjcxIDAgb2JqDTw8L0JpdHNQZXJDb21wb25lbnQgOC9Db2xvclNwYWNlL0RldmljZUdyYXkvRGVjb2RlUGFybXM8PC9CaXRzUGVyQ29tcG9uZW50IDgvQ29sb3JzIDEvQ29sdW1ucyAxMTA3Pj4vRmlsdGVyL0ZsYXRlRGVjb2RlL0hlaWdodCAxNjYvTGVuZ3RoIDIwMy9OYW1lL1gvU3VidHlwZS9JbWFnZS9UeXBlL1hPYmplY3QvV2lkdGggMTEwNz4+c3RyZWFtDQpIiezBMQEAAADCoPVPbQhfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABeE2AAzfAAAQ0KZW5kc3RyZWFtDWVuZG9iag0yNzIgMCBvYmoNPDwvQml0c1BlckNvbXBvbmVudCA4L0NvbG9yU3BhY2UgMjgyIDAgUi9GaWx0ZXIvRmxhdGVEZWNvZGUvSGVpZ2h0IDE2Ni9MZW5ndGggNTUwL05hbWUvWC9TTWFzayAyNzEgMCBSL1N1YnR5cGUvSW1hZ2UvVHlwZS9YT2JqZWN0L1dpZHRoIDExMDc+PnN0cmVhbQ0KSIns1EEJADAAxLCbf9MzURiMREFfPQcgsr0uAD5iKUDIUoCQpQAhSwFClgKELAUIWQoQshQgZClAyFKAkKUAIUsBQpYChCwFCFkKELIUIGQpQMhSgJClACFLAUKWAoQsBQhZChCyFCBkKUDIUoCQpQAhSwFClgKELAUIWQoQshQgZClAyFKAkKUAIUsBQpYChCwFCFkKELIUIGQpQMhSgJClACFLAUKWAoQsBQhZChCyFCBkKUDIUoCQpQAhSwFClgKELAUIWQoQshQgZClAyFKAkKUAIUsBQpYChCwFCFkKELIUIGQpQMhSgJClACFLAUKWAoQsBQhZChCyFCBkKUDIUoCQpQAhSwFClgKELAUIWQoQshQgZClAyFKAkKUAIUsBQpYChCwFCFkKELIUIGQpQMhSgJClACFLAUKWAoQsBQhZChCyFCBkKUDIUoCQpQAhSwFClgKELAUIWQoQshQgZClAyFKAkKUAIUsBQpYChCwFCFkKELIUIGQpQMhSgJClACFLAUKWAoQsBQhZChCyFCBkKUDIUoCQpQAhSwFClgKELAUIWQoQshQgZClAyFKAkKUAIUsBQpYChCwFCFkKELIUIGQpQMhSgJClACFLAUKWAoQsBQhZChCyFCBkKUDIUoCQpQAhSwFClgKELAUIWQoQshQgZClAyFKAkKUAIUsBQpYChCwFCFkKELIUIGQpQMhSgJClACFLAULbFWAAatDMpQ0KZW5kc3RyZWFtDWVuZG9iag0xIDAgb2JqDTw8L0NvbnRlbnRzIDIgMCBSL0Nyb3BCb3hbMC4wIDAuMCA2MTIuMCA3OTIuMF0vTWVkaWFCb3hbMC4wIDAuMCA2MTIuMCA3OTIuMF0vUGFyZW50IDI1MSAwIFIvUmVzb3VyY2VzPDwvQ29sb3JTcGFjZTw8L0NTMCAyNzkgMCBSPj4vRm9udDw8L0MyXzAgMjIgMCBSL1RUMCAyODUgMCBSL1RUMSAyODcgMCBSPj4+Pi9Sb3RhdGUgMC9TdHJ1Y3RQYXJlbnRzIDE3L1RhYnMvUy9UeXBlL1BhZ2U+Pg1lbmRvYmoNMiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDM5NDE+PnN0cmVhbQ0KSIm0V9ty20YSfedXzEtqiSoBwgzuKcdVkuJUklqn7BVr/SCntkASEhVLAC2Ka3m/fnu6e4DGhZQTxy+8ADPT3adPd585faNevDh9ffHLjypUL1+e/3ihZh9naREUqTImSFIVR0GYKx0GhVEP1eydqmfni9npxWWoVjvYpHarena6WIRKq8X1zA+DMIzVYqX4xyeVB/Dth7AWf2V4lEmCyKjF/exq/sbz8yBV8/KmUt7vi19nrxazt1/nxcBkoXsm57G3+OMbWEmDKBVW1N9jxSKqC0bUJBOIFgBfLBFtrj3fxBZTFX8bRLXWQR5PBPvqNTDotGOVdqyy9qMiCwzb13EOv/8ar/QECBGgoFOJwiXz6tbzk6BQ83WlTI9gX+HOwHhsosBIOHyR+7/TTBJkhyj2LcGNDX5NgLvfVg9eKGGuHz2/sA+qel3BnySI1fwfnp8FWs13XhQkQMt/eRqXbBvejZvsm8bTyNxanbOJM/6++Da5S6ASDlP5LR519vB4e12uHi2tzx4fy9WmWqur0/Pm8bG5V7+fnp83T+oKPIh1Cv4UQRxHKkpttUUmSIsih0WX++Xj522lTn9qmsfqQZ0u8N+b8ua2Lh9vm9qVykHPsXzRc/ylM0wKGMiF41iAP+u2Ak177GKhRb61a9KRTbg2dDB8U4POwsI2CEz2mWcgd0vP16FNoQ95grz5Rs23j57B1Ec2uxACtB54oOBlqHjfHbxV8xVt2zR0yh0mM0Qf0H4I2Ydf614YXR+JRBSStaY3anw8xteBTuxR1nNr9W6FzoJpoNEGP+n3nbrdDRyJA1NIR9rScOY+gTmT0ZKrebnceTHCkVmEbGhAjVtPp1gJ2ppVCNKGXqrlnYf27b9mjbvhvYXvwUttAVX4qry3J6oSF6gdVAUsB4DpJT299bByLOArWoCbKvG29WGFbuLuGreUKzYNSz+hv91xm77LCJEf21qz2MYUOqc+tZSI+WPPtskQcaF/lP26R0Y0e/zDBiku8m+tyOsNI9KUuCjAh7RygYn9jFFv0QkMp0Rw8YPenaAL5bLZU6S4OQq/8yL3x7nq53Zht99BWlNg7HiG+aVlvGDT3HnY+VQHhmJWCSpOM0UYxxeNAEgJfIgUatfmTC6kVBLEJyKhmwrPrJguGS7g2NlXG4E64hpZJ9f2N/hoM+GXR50hbj0SOLY81MjuLoRbgq2mMwLKzwi3M8/2HuGg6zk2QigIfFYSYZh9JYVNrpV4ZGF7PNcs0hI/qq4GaPVaLYk3qhce/mGyVaplqStUZDP+2XO9qR6rumJoGjZDoExmWLcpRrpxck86+vbWOyq21W3pmDokfYxboEkLa/yqRDdwKLqS5k5xuJCXXtE1q/+i08S2klhSnYg9VT9LvVMPBiA7Vq8GLdzbkasCoLJeu7xpMr994MYI4kJbaUK12/dkzD2CCfdSz+S0rR88Dc+4INA5Mr/uWoCtOrRBQMEza1kRhxU/Ze6MgiFQXLnbICg3RPBgODyLwdAaTs/YTU8fhGqWdyFOL0/c8onhFwdxMSpPLjuRSaIJZbJrz2pZTVGlQ9GVrqoJH0Jr1FO4RpnMEw26kWZUSbTY0l/CeU3pNlkQJa4x9IpWdBk6lUcJrpnqR7JqVqBzCzch9rhMzAWfrMrhUK8napsd3olCeG+M6abMuQUfM3BBNW/XMCosKlyTpfbU7HGjBLHDhGjLDLOxLrxEOlN+oB2TVung/ThJDfqDHxKIkeTg0gLdyPOtz3GrpvNjHE+PkNan3QLwOJRShGzv+0Ok6wxUesSltqXw9Jd1vIW4sb3AIvu0nVFjodEeg1CVouvb5pK5vfWHLhueldTvwFDLSz6EXaVuQaFQYeHZzgSeygWn1g0lW3GZjaZVr5apjE9oso2VYa9lcq3+geXQcUtMUCmTppXHIW5oXJA8k7mpQYAV3HBvERGUnJuC6hIIo5EwV04m9ZHxqUQ5dRMY8ZJnI2zN8Y1CIngo+qauFLdVKiSmRTSmRaeor1l2NU17K+lnUIyYCb3hSC4GL5HKTfLD7ZCpTyeUUuqUHyT39lvVuydR+PynUYPE9JAS4rQCbBrRX4YjMgmi+Fj3yNoJCYopQiPpcPXPul2ei+uoFtdR7a6j0fSsNNpWpa8jyxt7g0HioNi/8EJMFIwz+2J/j3dWhyZJTJ/GS4krYGSce+AuNmOD3XggC+IgPyoLChFFSFH0midB7tM5Ig66fDkGUXE0XeNvBIO5E3FdkAYWM31PvYnWiBscjQt66YSPxpGqbMhFNygL+fCe7ovlE+s8Hn5sq3e1Qn+Gk0z4p6ToGIwEGy8XAK2dEiJdd+pBUPL3jm8TK2raFjA6WKilY13iI03dsu7Uh+yx/VstHnQ1P6C0qY/8wp2iLVkhBwb3yYGgkvrEdYwxFnwS9YtJGUgLpCJfO2CMi6USVzsKXYy9/9GhcgqM5tNU03Y+c07pXD6FbnOU5qWclqyvuFGSW1sKhO85g1HZJeSZWjlWBz2ZKY8kD9k+BbRxVyghUZZkiR7JI0kgSo0L/cWNOmdvhCZlmWuqHYx0O6I8kPMdosPGnAVheqxHgWXXmYGfiVDNB9brIzoQukGvkcHYNK1Y+MHTuVO3hPCai4lyVEEXjp2E2hD33s9x5DV7RmxHuv+9N2zFOsiOh2mOyVfaPrx1Uc/6wbNe44MvpXYrDajbYc9UFQ9+4uC6k26kQTnU8kAP6TUEfF3V3HX4/uqk55JBpQ5Au5lBFeCms8my/beNj2PF37xRNpgJmd3WQy+ylMQ5avVedM2+XokeMk4jyIijlxAY7C1bcW3H1tquD4OkR4OJcQsqIHYXUoqXBsZvAqglz51erKOU7Qbe50GcHzRuf1njJnXGRZJrV+e2rNeDY+Mg1UcxiVtMTBjk8XQFC3EFLyfVFZQqqSvTL+aY/AUxZKXw2UU3NmMnx2KKH779EHzFXxo0QmZUFOfWqcU9XV40pAgVxCDzhnbCt44gChUlYYC7prDkRJrcYXmN7PLg5Ae8VpQgL0hdoIqmPBMHdRKq91GaeVYkqneoAoGIbXd/sussCUD0pdgELI1pi8FKNrz8iSoFvuthNHmQJkdzlnY5A9roZ7tu9oyUJEiGgpiEZPPM2KObRjtdRMmj0GPOO5Enhp3t5TroJF5CWnE0NVl/iheVNEISUMzH/Y4vMO2Vhkck3PaoB7G8GdvCEuLIVElDdy1DEvMSw7L3LRsCd022NtEhhXqkY8lvVibDWcw6jE/VKAF1hg+HEzoPoqO3CJ13Pc8Eef58fRd/rr7Tr6pvkxX268/Wt8m1rd+/XuD4pOqVOcuMiVqPXEbaeqehLIo9St3Eb3fYQkeeu0rnBlFbP9QTURJyqym5/YiNCZKjeTWt8oKSSgke/KUzC69JC9kAR7tbHSahpZ0JjMZ0sPXVYnb60+3N/qHqjmg10enFZaguLuEQdXnxG+QCBhnkW71WsxTOghNtVuMcQgLGZFGQqYdqdjl2qh3PH+3GxKgMPbI7LWNgJ7ANtr5T9ex8gUnXbdI1EgVHOAWEPzMY2MCyqLASDVn2CnII0MyfynsPCmG+BdYFJPiDCDuJthz8HhMCcb/9Qm9GpjXgmQrTDOdiHHc7gr/U1iDltMWYbNLSW7tDmkump0EHZXoMSlBOeU5QnjGU4GA44O/cd2U5OBaGYGRcXaI0R7jhOmPlaRygMtJ4bIP3VZxAtMa9AKmDC6Fvauy6mDnou9fwy6D6zAJU3H6M/+GKkNsT7B3BLq1vvh92GKjodOIO8M/zZv25gy7vOG/+w9j5ugjyAhuroW74Igyz/CWcIQGOk95Mn0I8MIlDZsGs3DAmVaU0w2C+FGoIVbctsEMaMQWlb//buyXDx18OM4stSpeG18EES/DBssJEJXR/oesLbi3ZQosy7xz+v1HJd57tAtCI7+hGgqaaDR/Q3PEOex0Z9EVLxZFO/j/t5bLbNgxE0V/RpkAD2IL40iNBFgnQfkI3XblVYBsB7KCo09/vDOchipIdy0BWtmWRojiH997JVACkv9KdfBeaZFKlJ5vaDaPOE+DsHAGu+pzq/yOOjwVv+Il3EJySHGgD5+a3vCDv3mu0UZSyFdUlNo90z67Am2DLe+Zqz+U+5INpWneuvDhkT6s7bIujlPalgCaNv8sEcE3ZSd8jJO/BLyqkyIkufMV3JsDQ03V5OwGUD/2UGQfP7ly6/bGfMxxPDDNjvB6W9yNsg4GcgcfB1EzNGkSkm3JzAZZ6FhaU9hCBqcJnAWPqa1XClXWlgix7eRKVeMvPMJeGlFeQ0/r2XGBh5bTd8YBMNspU1wUwAWqPonBIZUJLTKsg3dmJggkTM3LhStfWH5de8NDSd1J6e2Xpv4081nXLoswQtWet3cCH9R9bu9dQeL2hm+A47/38+p0xOrI6JNb6a84nnHpwSkIstggCz3TPFNxByMMY7WxJfU686xGav0A54oFvPBR4Edfg5FKMGwFzNruDDAsP5PuQszmQPCKQsZ1cU49prNyDkvmXvsNrEUkM5p8hVsRp3o4ii/3Ew/gPaGLpkU93kZCz7U+tdY3ffGixPzEBVUa7n4CSM+1+8sL5xmDJhsqd1QhwwkbRlnegijVdIfK7/RKTMLetMDbg2LVr48HAJg+kMU5xARCR9sGbeKvIotID/xq1ZUDC4m1jKOwFKPAilJMlR0LohAqvw34wOIqUkX8EBpfB4AmGIHwDCX1uf/x7ezsCTTx/0CDUNzFQGG9GsqAAaA2h/q2fr78Laf3HT/OwIvuB/ay9LVvQpivxUGcQ71dnmJGGtIymYY7mKUikIYfAizRMGIjz1oshEL8hFlJX3EqueubHLGUBercK5AA+Qr2cBV9FMbFdaezNemAKDsZzOPhR5p5xPG9udbzJ67DnmeYKw7M3GF7ltYOdALsRS5KzseFYqWF68A5mRoxRoykIQiz+QgZM25YNfFSg6nYxA7YycRJ9uVsYiOxPIvaJt2DDL/rSY9Aiiyw2fY+xDQVxy1sH1rJis3VhlRwysC3+FfMqHJed9g2jk3bK8p5kSNFeWq1pgxy7RMkcDpTn0NbDUlHPLirVppAQ+6LNCQlWDgCfklO2OA6vb3JZd2iQFllwnS24GTojzR759LC8uKWSVWQZujzaE94Pqg8Oky03zSoLQO4MxFnzZAcLGRI0aBWT3E6Qen6KocsvUD9XI/Id2v5y7etQLTqLZ2ceexSSi9jHnhd2zYJC3VVZecbPD7Fpm5HC/wIMAAciZbUNCmVuZHN0cmVhbQ1lbmRvYmoNMyAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDE1Pj5zdHJlYW0NCkiJamBAAQ0AAQYACJABAQ0KZW5kc3RyZWFtDWVuZG9iag00IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9MZW5ndGggMzczOC9MZW5ndGgxIDU5MTE+PnN0cmVhbQ0KSImMVnt0FOUV/93vm9ld8iAbEMhLme2QUEjCQxBCEsPCZsMjCHkBu7zcZRMSQDAFyqNim8KhxuUhtRywUHk1YJG2zCLYzWmFgKKeU2g5tnJ6FK0iRQ4V5ViVUshO72xCJPzR07k7M/d37/2++/juN/uBACSiCRLDplUPfdj/6y+mseQPfM8IrVyhDX7j9gaAegGqsqCxfsncwqsSsPVlvKf+iTULVmkvHOMJjrP90Ya6YO1fX3Y/CyTVMx7VwIKUvfLHjF9kPKBhyYrVqyomlTA+BYg7TzwZCqYVpxUDKa+xj3VLgqsbRbptNJA6lu21pcEldfv8RTmMH2d7b+OyusYZhw6wrncLIJeDlHO0FSoc6k51BM+Q3fGWe7FA9EqSqkqC7Dah2nHfVfOYR4P7hnYjpm6KldEIRyKdburUqXMxXJ2C/nxnyW3IBMyPO+/LMb95XV0MPbbIvDgwhY2Pdd4dVxDZmIdBmIzTuIETNBgVaDPPIwSfWIV8lj+H36ENH6IUtRDIoLXQzF9gE3KwHnsxRskwj2MKrjpS0BcDUEhPwoY+qMduuohJKOc5ijABz2IZPytZfpMKWENIwFz2vg27cAJ/wt+RzjMOwQWy003z9/CgmmN4Cq34UB2vbkRv/BQv4RBO4R80hFromvzcPG6eNf/JowZhOEZhNuYzPY99bPcS/ih0+Uszw3zK/JX5NrI4+sOc9SmcYV/fkEYzKCQOyjWx/5hLzcNchySOmaNnGsfZTMUKHGDLC7hNPZjWCU2MFaFYqtkPdvSHhlyObzqW4IdoxmbOYif24Aiu0lhqoHP0uUgWTeKkWmGfap/a42T7u+YE8xv2kQQXRzsTi7GaRz6Pn2E7j9zHvt5guoF2GkVFVEKTqIqeo5/QAfq3yBXvi9uyp0yRedIvA3KtvCRvOdT2abEdsfNmhbmaa0lc8wReSQ/nWYM5aMRyrMJa3iPN2MK0lat3mMngep5keh0f4BOmK7iKz7jjVM4xgQYzDWMqIjdNpun0ONXTctpBr1KUTtAZukZfiZFilBgjpokqUS8axQqxVRgiIk6Ky+JfHGWh9Mrl8kfysDwt35bvyPcUKJOVoLJQ+b6yTTGUd5UbyldKTIWqMw1Rg+re9v2x8thsM8csMuebm82tTFe5xg9xNjkYyPlU8KqGsIA7p5Hpe0xruHYbOKPt2M21s6r3KqK8/9u4h8/gTZzHe5zfB7iEm7jFxbHy60MuyqfhXN9HaQLTLF6nlbSWmmgL7eQ6R+g4Uxtd5CxjnOEM4RfzxEqxVmwWO8Qu0SraxAVeCVPaeCXS5ARZLmfK2XKeXCG3yxfkz+VuuUdGZZt8UxFKoVKhLFPWK1uV/coR5S3lL8pFdZhapIaZDPW4+pp6xdbLlmkbaau2Re02xxrHp44YXsFbiOD4/TufmslJEfyGPpWKbBJnhU8kigu0TvkzDeQVKCaoW7AUX3KED9I7YjTNlCGaxfVbRwtoNl6UWXK/nIyz6lKqlhVUi2plB+6oryOohsVRKdSwbKdb4jAasEUsbj9k+qknqqlFHOSOeRrFGKRk4IIYo7RSthgkTtp/S1GU2G1yjCx0pDBqkZ9wmNWOFLqGoLzE++dj3ltV4iB/E67QRfs0jq5dHmGbp1FCLbFUHFL9IkBZooWmtK9v/5vcZe6hdHEJaE9tHyc83HHTzZfFCXyBHbFbykc4Id7HdP5qhOI750vee6v4SzMDd0Qy76dq/o40ut01Y0seLS4qHFMw+pGRIx4ePmzokPy83MGDvjswJ3uA/h2X1v+hB7MyM9LT+vXt80DvXqnOlJ7JSYkJPRx2m6pIQcjz6mUBzcgJGEqOPnFivoX1IAuC9wgChsaisu42hhaIm2ndLd1sueA+S3eHpbvLkpxaMYrz8zSvrhnnSnUtSrMqfcxvLtX9mnE9zj8W55WcOEhm4HLxCM2b1lCqGRTQvEbZyoawN1DK80USEzy6py4hPw+RhERmE5kz+umNEepXQnFG9PMWRgQcyRyVkaGXeo10vdQKwZDZ3mCtUVHp85Zmulz+/DyDPCF9vgF9vJGSGzeBJ+7GsHkMe9yNttBKBxu1SF5beFPUifmB3KRavTY4x2fIoN/ykZrLfkuNfj+4nPYt5Ml7eXzP3KvNlGFv2kLNguHwM5qxt9J3r9ZlPf1+noPHiuyyQLiMXW/iKpZXa+xNbPD7DNrALjUrEyurjvzqdK8lCSzSjB76eL0hvCjAa5MRNlC1xnU0I8Pdan6EDK8WrvHpLmNspu4PlmZFHkC4as0r6W4tvbsmPy/iTO0obKRnSieTlHwvU9eli3Nxc4srr+qqLFkR6ZO4IwwtpHEkPp1zKrAedQUIhwrYjC8/8SijlldkodHDEwg7Cy25Nd5Qs526Fv4a3AH69c+6S4KdElu282tYrNUnXb3G+ru8kZtrDB5stYjdw2vKMZbE8SP5eSujYpze6NT4xeVDBdc26C8cyuV3uawF3hh1Yz4Do6nS14E1zM88CvfQXL8hApam7a6mz3RL03RX0zU8oHMnH4N1pOtjOHK6finOvr29DYUG9f0f6roOfXm1Xl45y6d5w4HO2pbXdEMd+oIuXSdn9Pb4ZKbo5ESmjGu5Ked0GVvAl2Qo2fyzxZu6Nmp3cFfGJaSVGc7AxI6nP8Hl+j8HRc0b1qj469thnWEahbndcVE33C28pLDkgJUcUV4zKxxO6KbjDT4+olNzZcRNzdWzfK1OPp821/iOChKewHh/ZADrfK0a4I5LRZfUQpqFUE7csEeFI67KbHUDTXGtEhfEcShKiMscd2WEUFR0yJxxGV/5fHTkA7ZSr/JZl//ei9wP/Zf8qouNoorC587MzkxbfrbrWheaulOWtrZjW1qUtnZDd9tdCl26QnfFblDp7nYpxcI2tDSpFYIaFEJolpAAGhONEoVizLYFsyWo9cknn5rURF80CJgYwZiKCQLrd6eDv4QHfTFxJt/9zj3nnnvu3Llz5x5ZiWPTtUhxkXJlS1wUhaU5ihRntEQtr3foQeucu/2WO2i97m633nJTk/uWm6Nmxcr84vyS4vziHoluauL0TY+FfiFNmiZjmcwIX4rvIz0oniKRnfUsylFo6UJ5yYKF14p5t3rwG+tlamr/vmYFs8uuZaWPPrJqZW2B8OXs8ROzsyeOzwreeZ41esNwz7964bsti90/qUWq8Tt+e+2FRs6ftDZYstnbq/HrzjMSEjb/tyZS824jYVA33T5zs0q9Yup/vz6SPuNzgesGUgSQMEbfWM5SVCIqkbppozxGrXIDrRVfosdgCwOVsB2BrQTtd5p8RGjIZqFvA34AHgZCgAbEgAiwHnge2Cg00HvAIfi6uT9n8TB1ctnyKdktm2gZ2CZdoqXSRSqTC2mtNEMu6EoRf6VlAQUhl1j2kF0p4j7Zb1FfL5egzVWMYYBKpQtUD99Gy34qwNhbYau3lFOz/BTiXaQC9POufIVtB7dZfNBR9ppE4hfoO4xxDANrxDnyw3edpFOr2Ibnm6FK4S1qAfthvx+okV7HM+n0EGQ+/jrIEXAv2gThq8Peivn0YqwbxB9pM7ga/W4WP6cZ9hqdBM+i/SPSdbqP3TDiuhneFnxWYa5IlmlKltkK8M/AdXUTlSuXKID+n77D4krayucOB6tec06H4b8VcbxYf9vNOeZYzmNh7VyWZoQGlbKH8eyafAzvfA9VYm6eUS6xFzFXQQPHKApu50B/9UAd0GjiMctZlgvkwR5CvU3uoDiH4qRa+FYhVpivDdhWYJwGzPGvN8dvMMZZjXn13vGX26gCPrpoo9AfQL9hDse8OaSXBrOT8NkN/9VCDT6SPcI786AW0ZY9KtqEp+eZXJBfMBi+7CQSMaLa/9kd+Y/dfD+axg5kMfYggaxUjVSW6KrlDXOHykWCdWfXemp+TyO+by9GbV6WID9ryjLk52AlKQe1DB00ZUYPMq8pC7SIbTFlEfodpixBPmTKMuTT4eH+xNZoPKGd1sLbElp7cmdyECqtJbmrP7krOtib3Kn198WrNF90MHqvRt6+Pq2jt2fb4IDWkRhI7BpKdHv9oY51IT00vCOW7GsP37tKYeSZ/ZRA5hlF3pEgjU4DYWRJXG6nJLKaJA2arTRqQW0XZF5Goe81WmjQ9MG/CpLP0Ef/cU9e9NQH7oCmB96DNGDUEuAE2g6h7EYrPzKiDlqHUgeGaQfF0EMfIoWN1j20G7UoPO7d9l9Yx8M2r10ow10qlFKSFWA1bDHKx42yySireSlUT1Q7nRmhauJNTg9PFJWDlnvyvl7qrCmzOd1lvP6Ap7Gv3PnV2BLn18CZslrnAXet8yWgGhhCnbcrGyt3JsuSO5IvJ1+R6qigAAvSlq96MuziB0/Yc+w5dakM+9jToKQ+VFKTSqpHSXUrqSeV1BoltUpJVSkpXUmVKKnlil21qVZ1kbpAzVVVVVYlVVBJtWeyX3l0/kHYZSsnWeKlZMhWgZfC/PciMFWgNkrfJwaEQKiZBdLTcQrEtPT1kCvDcnGOs7iaWdoWoEC42ZGu1wMZJduRrtMDaWXD5s5xxkYj0KaFAzhfhTszLMtV+wt5yjRFjGX3Hy40ORKhgqEmR5NtdX7DGt9dii6z1H+/HPofr8CG4QvkZLtxMHOywUnFeVTh2hC0KUOb4tqUoXUUpY8FQp3psaJIupYL2aIIm/Se84zwLKvL5U8AXelDQ9sc6X0xTRv3nDPTr9KuWHwb52gifc6V8KU9Lp827h25i3mEm70u3ziN+MOd4yOehG/C6/H6XVFfZIqCLDZeMfqncAfvhJuiChb7e48ZFuNdVvCIwdG7RBzl5iCPOMojjvKIQU/QiOjv5S9wQ+e4Ss0RHO0NnhTycvEuugqLI80F1v7VxotpLHbsLTwvETtFech0Fria0wsBbqr0Vnq5CQuGmxZBvdg0OfY2FheeZ6dMkxXqfFcz6bv1v1wD/CKHv9fHgZFMZaeFfRM2Z60e0X8VYACKH5A3DQplbmRzdHJlYW0NZW5kb2JqDTUgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0xlbmd0aCAyMzA+PnN0cmVhbQ0KSIlckMFqwzAMhu9+Ch3bQ3Hqy3YIgdExyKHdWLYHcGwlMyyyUZxD3n6KFzqYwAb5/z/xW/rSPrcUMug3jq7DDEMgzzjHhR1Cj2MgdTbgg8t7V2432aS0wN06Z5xaGqKqa9DvIs6ZVzg8+djjUelX9siBRjh8Xroj6G5J6RsnpAwVNA14HGTQ1aabnRB0wU6tFz3k9STMn+NjTQim9OffMC56nJN1yJZGVHUl1UD9ItUoJP9P36l+cF+WN/fDo7hNZUxx7+8bJ9+Deyi3MEuesoMSZIsQCO9rSjGBUNtRPwIMAKUWb6ENCmVuZHN0cmVhbQ1lbmRvYmoNNiAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgMjUvTGVuZ3RoIDMxOC9OIDQvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN5kUctqwzAQ/JU9JpSykmLnAcHgxE3rQ1KIQl0wPiiJ6ghky9gK1H9fyW4ptCexuzM7Myu6BAJ0BSEDRoCt3EMhmM1hvcbX9ipbVZeT9Cprq2w/xaMsVWfbfhJfzVlOkd+bRsvKjYFEkePE3cUXlJAQt2nCpYWZUzjiVjQvUpU3CwtCMJEj7pExgjstyg4C3JnabjbmMydDHyils2FTMYx2olK6n/C+Ohs9HVtKSwbBIODrg6gkxk/8mPKHEbc/DQNuW2kvNzyYthJ6aGWjm8C5Sa3Q6hLXpZZAkFtZvcEixFPfyAHq3baqsabF9+8QIRnzbkQnPeSfqg/fd25VWn8YoMvxCGlyMs9pshcN/hwVk8yHJH+U/Kd4Cr+frffhqB7gPbFfZ5jllJE8mJOiiKLcHc1xii8BBgCuFJJ+DQplbmRzdHJlYW0NZW5kb2JqDTcgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDUvTGVuZ3RoIDExNS9OIDEvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN4yMlIwULCx0XdKLE51y88r0Xd0DQ7yDNYOrsxNys/xDdF3SS1OTs1LScwrAUkXKxgZAjUE6bvmJeenZOal63umpOaVZJZU6nroB5cmlVQWpOqHAAkD/ZD80LxMoKJUBVOwDpCoPsgMOzuAAAMAs+gmgA0KZW5kc3RyZWFtDWVuZG9iag04IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCAxMjgvTGVuZ3RoIDUxNC9OIDE4L1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjetJJbT+MwEIX/ynlstFIb24kTS4DUZtmnvVRQwUskZIgL0SZxlKZs+eX7upO0CCPVWtAuD5EvmTnfzPhwgRA8QszBYzBGiwQXMXgCrmhJISJBW0ShgAgRswiCQTIJwSEVXQokki4jpHECSlUJJUmwMFUQCYkqBpGCcUn3CkyIQQ0sIoGTk1lmt00Plsy+lN2mH4oJcTH7qod9PO5XT62Z/dj2VdmYzdkZ5Xw3u34gDn+XujMkwMU+tuwrMzmvyrpsdF/aBnaNeXVnH2wVjLl7XvqMkw4uOSK47MzjMIYX8W9X1Elyo6IpyycsD24yW99SaUU+aSv9VDb3+FX2D1jbrtZ9HkzbYh28lE2tu5T4jWW/jh+rEm7uotLNTyz1vXFYz9FHOlJ/zU19uSJ0c+dZrXdDs9BYm1pXBqegwcQhfuM6D7Cj0zyjAx8PV/Q19LEpS1yc8uKYD/dGmEMRoZfCHcph8shss9nW7fgguilAdFeMecVcM85vN7Zrjz7qXoZ7ZaLXnUP36MvaDDpFVz4OVjvFJT5R0+fU6Yr6lmEeuOLC6wBXPNPV3bYi55HiAbQ6gD4fQOvO1lh0RpO1afqLytoCl7pu6Q0ujC4oZuO+Z3LE5vuu5AfYR8ReXPIf7SO9lPT99vFPSL3HPqlPJgr/3T7KJ87lh9jnjwADAGhQ4tANCmVuZHN0cmVhbQ1lbmRvYmoNOSAwIG9iag08PC9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgMTgvTGVuZ3RoIDYzNi9OIDMvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN58lNtu2zAMhl/FTzDmhDYFigDZ6mEBhgZYm4t22AUt0bZQ2Up1yJY9/WgxcX21Gzsk/4+kKMareTErVovidlmslsV8uSzu7+EzBvrq+gjfyJ4oGoVQ9spp0zeDalb8gEfsKIfhKVXxfCR45sc8P2FgN5tpolc81g+MVxiDsK/4UP2XfTB1TZ56ReHnYgWVpxOBQu96UMar1NWW/oB2EZUiLtGmvkGfOospgmtcT2/guSREYzUVyzt4Ty5SYJel4u4GGo8nKuaLNVTJWoqgsWnIX166skDWmmMwAajTGFqgPr9q6zgx1B5VNNxOk4zNaS3V8cPypmkjdKZPAY7kY+tSwF5LG5y+4uGMRkavhpDZ+vBPnDl9xqNHTR36N6gN9wXfgx063JfwJKN60YaHOJzhVRw8MEshGLAidQRBIn/zq5jfzKBM3vGPFajkhys4s3HDV+DeqK/Qs7WGMbFyx7M057yuiQ9sep7r7QKsa3h3bO8ifOKHpho8NSbwYUhDhyo3RI0ngqNNQWYVf7uQeGDGeYgtx0YLVYoEXSrm6yVknx6uPmdTpI21CHzvo5776TCoZHND6/UQfE/omRh+tmhrqXBxhmJ+t4BtXgzYSrXtZNm2eZVgOx59mxdsW8KXa/lS4FLgcgKXI7UTzU40u4lmN2rK2MKjlNuLfC/y/US+vwhGqks2mqM9w14u9yDoQdDDBD2MzIsEn1vneZXJd7yjlQ2AwqKEccKilMUxBeYxIP89r2MggUlgmsA0UkY0RjRmojGjhngMvZRzIncidxO5uwhGSpuTGRwyhCRgEjBNwDQSZwnGPITz1f1LPknXb99m80+AAQB4ou2xDQplbmRzdHJlYW0NZW5kb2JqDTEwIDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA4MzgvTGVuZ3RoIDE3ODEvTiAxMDAvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN7sWVtvGzcT/St87Pei5QzvQBHA7gW9pIkRp0+GHxRHTdQ4kqHKQP3n2+9weRQ7sr0Uij4UrR+8XC45Z4aHszuHlvfGGh9MTsZHkxw6ybiszvhsvA1qfDFeNJqAIUnWBDFeLVoMKeYHTNUoJni0BW0w3inaiBaTA5BdRgs8L2iB572aCDyf0AIvWGci8ILzJgIvxGAi8EKJBrc+ajIReBHGsUZarInAS/ATgZcQTKqhZ28S8LIEA2ifxzWhLcUk4BXEm4BX4DQBrxTYJSwN+CmjRRCpoC3J5LpUzaaGLvCbFS38Zoelwy9cBQVJOaDNGAdFTmJlEstwJgPPC+YDr64XpsEjiJEiGw1ch+CyKcALCL4AL1rMA150wWDpIWKxCCVExF+AlxzGgZdAitQ9SHgqtpLrBDeAzOBNQGfIMBQL0LposUAt4xBgyzgESu04lHED1sWCXAu3gqijaMEN6BVwIlL3CZGJ1I0CKyLYqbrtAqqjInjB2qMDkSJAdtheESA7rE8EyEgSIwpk7CpugAxacQPkgD0TpFyMtj4BMsxwA+RYncIypuq0pkGqTtGJqTpFlDFXp65mRHUKImKuTsFVLNWpA3KpTpFdyVanoDfZ6tQhP2Q0RwJIrlYZmVO94y9p9e6RMzWRxSNp8ArgBlnikR+CbU7YVPPll8OP9S2y5tVwMt8sVtvXm8WivlGfP3mx+H374+LGSBlerS8XP82v6utW57y+uVoMp9vN9cU48dV6vX32rMKeVc4wY6RsbJFzre9bi+W1dtcPbCPbxJZ2WFht8X7UJrenuT0MzVegKyWUEkoJpbsQCiEZoqOda9ipRZZaYKmBZfaaaW6WuRnmZlfaw9IeFj5sYKWZlwZWWmClxVVaWIVRWUZlGZVVtiTMkjDLVVqu0nKVlqu0xBPiCfGEeEI8IZ4QTxqe35kTVggrpLyhhAYSGkZoEKEhhGYZmmFodrFFE1swsaHEhhIbSmwosaHEhhIbSmQWNJQ0opwPJ/gmj/l4OpwuLloKvrj++NtZOltdX16ap8vT5b990faJPBf79EY8XZ4ueCNagTsXPZPM0pdZSjNrHlWGUGYIK7ywxAtrvLDIC6u8sMwL67yw0AsrvbDUK0u9stQrS72y1CtLvbLUK0u9stQrS72y1CtLvbLUK0u9stQrS72y1N/2ictar6z1ylqv1HKNNwo6dvRuh24o8ZQ6TKnDlDpMqcOUOkypw5Q6TKnDlBJRKRGVElEpEZUSUZtEPBd3JjsJSHki1CdCgSJUKEKJItQoQpEiVClCmSLUKUKhIlQqQqki1CpCsSJUK0K5ItQrQsEiiXiUsUKtKRSbQrUpKd7yOl4kpb0nfJwfflz27SlZhZpVKFrr6WEkL559rqn/lWqWh5COtt0/uzQC76a6MNXZ8X/LueMvHonOJZ19fgD6B2nz3XntwTPVbXbeS/f29MGUv5fxE2eyc+xs2/Pz8VBwtFqtt/Ptcr0aTq/mq+Fos13+Mr/YDifD8fLN5XL9bjO/en9TO9+stpub4av38812+Hb57nqzGL5ezjH+8VN3s776an61636zegvwxfCiXr7FSfi29/3qcrlanL6f47TM2S+vt/VZCwMn6OWHxfp6y+71m98uNsurT92rxebug9c4jx+vf6/RDz+v3i42n5B4+HYWzcs3vxptZA0n76AA4+2R/eXxD6+ePRsPTmV/wunwfLn6QCSkLN8ZJ+P0cH/6SZtr7Gfjsjcqk6P64Oh3wmE3aewnR8PkaJwcTZOjeTroMs1Hh65pvkSnh6cJk2nGJEwvTKZJk2nWJE8Pl2nnOs2bTvF2ZJqyG44ut1/88ef/6vyHiWxv6Q5zmk2dZlOnE1ArHfne8PPj9dubXfbXGHOcnFK3pJXyR6dM56Of5tVP56OfzsfdZ4j/RquRfc8vDLU3pTfVyC0YZu4w4mMYLBQPDB3jM3kW/axE6IoUZ762wedZrZ04E8+yK+fDy+H5/KZ+fU8u5xeLj4vVdji+XF98ePC7dv+7J51x7Yy7zrjvjIfOeHxk/NMrlToAuTNeeg6kS2GPQ+mRKD0WpUej9HiULpHSY1J6VErpJVOPSu2mY49K7VGpPSq1R6XG3oQek9pj0nVfu94y3fQyj5Axdq+auMcWfqeewI6i645d7NthVl0zf0h55FNhp2dU3/sV0Oshvn33K9VLCt9LCt9LCt9LCt9LCt97vYLt7Tl/HbvlL8hhex727fQwO79v5w6zc/t2/jA73bc7MKdl3y4eZrf/DoXUtxvrundupjjBxjJzcfw1GTdjN3srnbJOBJ1FEBXDTOrv/26W8O4kP7PhEHMtbpbrL8oMoAK0n20PjqBCKP1r8TNnfd///wUYAPVsNNcNCmVuZHN0cmVhbQ1lbmRvYmoNMTEgMCBvYmoNPDwvRXh0ZW5kcyAxMCAwIFIvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDgzMi9MZW5ndGggODAxL04gMTAwL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjetFXRilRJDP2VPK4vdSupVCoBEWYeloUdsFHfxAdxB5GddWAZQX9+13NadweF6e6R8aE593aSU8lJKlfdpYv6lAgAfpbAJVoOTLFQYMlQvM8uY8E+VdwRNg3I9yE+ETtdPCZwiq8BDPFE/FzAAqZ4gXuWzA6/6DLJizOmGdBkDvDGAII3XCZzAuec9AuZQb8lc4E3EgjeAF+Cd4GvwAtbdPgvk1D4I5cw8C6XQO66UC5y0BUom3FLYjEuJfY8JVGwZ5el8EcNS/lusgz2HLIG/NNlOerMKangzwAib3CkIe9MyYE8UHs68qguCQ21FAi/MkmeX0OS50PzBLeihiz6h1Sn/wLSP6UUvMitzMVgq2FAlUI/rBuwgEMKmhs0KGhn0LqggXXwoRbr4Ev6ga/oh9o6nIxFdIUnq+4GV8rXDb74V/uAMxvWnc7IuE86I6WOXpmilg7RjSJ0qGdUrUMGo/yKNwOpcpCMDedEmIGZrTWUpKzVDMxM2igiTzaqzlDjeBrzwU+N+XBgjPkMMBvzgSTKubUBZoOQxiYMownMA6NkA8wjGQVmRwXGgXMnYfEGILH9iOOCmHPWIJr5fvj4z+BUTXn8eDs/v/74UsdqHeMQ1UagHVajBaeopXd9tT3dLl5/uv5ws+2uXr+5/Ovy/c12fnX95s8nT24ZouH0mI26gm5iIpa3Pk+KjjZ57n/n7/Ox+5wf3io6h8vb/kL6ahzcEdFq1BGK31+iK9gkz9gU4qtth53Ap233VgybgI/PtxeXH29w3O25ri2rqFy1fd+rFe/VytZPydt7C0Znw+TPZQ0LY891rOrn2+47/E3vMOweKuDkwDsczvY7h0qeXd388s+/j2D59d3bD39fHuG7OL/+49OR58NJfzMkC7NKnJ5NcV9s9pZHh+QBdfp5yj80Xrx7f7j6M2yTvLunNK/TW073+JEJOQ1JPw8n64fN47DZDpv1sLkfNGNQ7zR/2SVjYAfl/1t0Jh7yPlvUh2Edja9rnHwLzT15jfOzkXr7GSGB4it2jwxIYV/PN+zy0f0en5Ef/ox9FmAAX02BdA0KZW5kc3RyZWFtDWVuZG9iag0xMiAwIG9iag08PC9FeHRlbmRzIDEwIDAgUi9GaWx0ZXIvRmxhdGVEZWNvZGUvRmlyc3QgNTMvTGVuZ3RoIDE5MC9OIDcvVHlwZS9PYmpTdG0+PnN0cmVhbQ0KaN6MkLFOA0EMRH/FXzBre23vWopSXI1EJEpEEUWpCFwTJPh7fBRQctWzJc94bDUjJjWn0EKQ6CwOkvRi1Z7FpK5SNReTDoe2LOvns/RAjYZDnKQP+HAaBvaX9tgezl/rx72dbufL9e36fm/Lbb28Ho+/6oAHC0Wib9wMWLd2GssehzBkcGVOg4SQ24DMyhqB7LnHwgQz02prQusITeQ0GmOCd+kZsakn6kc+FPXCH6//Dnhqpz9+CzAAHC5mig0KZW5kc3RyZWFtDWVuZG9iag0xMyAwIG9iag08PC9CQm94WzAuMCAwLjAgMTguMCAxOC4wXS9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDMwMC9SZXNvdXJjZXM8PC9FeHRHU3RhdGU8PC9HUzA8PC9BSVMgZmFsc2UvQk0vTm9ybWFsL0NBIDAuNi9UeXBlL0V4dEdTdGF0ZS9jYSAwLjY+Pj4+Pj4vU3VidHlwZS9Gb3JtL1R5cGUvWE9iamVjdD4+c3RyZWFtDQpIieSSTU7EMAyFr/IuUGOn+T3BSEgsEEvEhiAGUGcxsOD6vPQHGjGcAEWq/bnxS/zaM2xe70coXpl8wuOG8Y18jfsHxROuDneK4werymUoCKJFM+oJSZKHOYkWccKwxwlDFvfDpKSpkWX/TSbRF9SNh1HyaEvvzF7GGDYlUip5PWaFij1N6HZ2It0JFd0FJnS36y6+H6riBc+4pQ+H5odkK9GaMauDKlEvmnhh92HtCOXPjl9+twp9VjHvmDJxmRLKt8y9zWChGcpJSsFgUiJDkBBCKzo20pDYggmftaE63wRydM2gwkl5BK/aIHhCmYenTAwZRnMpFiUlh1Gccxt4mjt/zgWTBC1NhA4WiXzqGit2xf3mXmchjhLT0qDzqv/wx3vElwADAF6luIoNCmVuZHN0cmVhbQ1lbmRvYmoNMTQgMCBvYmoNPDwvTGVuZ3RoIDM3MjkvU3VidHlwZS9YTUwvVHlwZS9NZXRhZGF0YT4+c3RyZWFtDQo8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzAxNSA4NC4xNTk4MTAsIDIwMTYvMDkvMTAtMDI6NDE6MzAgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGRmPSJodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvIgogICAgICAgICAgICB4bWxuczpwZGZ4PSJodHRwOi8vbnMuYWRvYmUuY29tL3BkZngvMS4zLyI+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDIwLTEwLTE5VDEwOjMwOjM0LTA3OjAwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTgtMTItMzFUMDk6MTM6NTQtMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDIwLTEwLTE5VDEwOjMwOjM0LTA3OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFjcm9iYXQgUERGTWFrZXIgMTcgZm9yIFdvcmQ8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+dXVpZDo3OTI2ZTM1Ni00N2JlLTQyNjItYjA5Yy0xMmVmY2FhMzMzZGE8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnV1aWQ6ZTcwYjFkNzctNzlmMi00ZDZiLTljN2ItYTI3OTVjZTcyZDQ3PC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06c3ViamVjdD4KICAgICAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgICAgICAgIDxyZGY6bGk+MjwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgIDwveG1wTU06c3ViamVjdD4KICAgICAgICAgPGRjOmZvcm1hdD5hcHBsaWNhdGlvbi9wZGY8L2RjOmZvcm1hdD4KICAgICAgICAgPGRjOmNyZWF0b3I+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpPnBtYWNsZWxsPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC9kYzpjcmVhdG9yPgogICAgICAgICA8cGRmOlByb2R1Y2VyPkFkb2JlIFBERiBMaWJyYXJ5IDE1LjA8L3BkZjpQcm9kdWNlcj4KICAgICAgICAgPHBkZng6U291cmNlTW9kaWZpZWQ+RDoyMDE4MTIzMTE3MTMzNjwvcGRmeDpTb3VyY2VNb2RpZmllZD4KICAgICAgICAgPHBkZng6Q29tcGFueT5Qcm92aW5jZSBvZiBCcml0aXNoIENvbHVtYmlhPC9wZGZ4OkNvbXBhbnk+CiAgICAgICAgIDxwZGZ4OkNyZWF0ZWQ+RDoyMDE1MTExODwvcGRmeDpDcmVhdGVkPgogICAgICAgICA8cGRmeDpMYXN0U2F2ZWQ+RDoyMDE4MTIxMjwvcGRmeDpMYXN0U2F2ZWQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4NCmVuZHN0cmVhbQ1lbmRvYmoNMTUgMCBvYmoNPDwvRmlsdGVyL0ZsYXRlRGVjb2RlL0ZpcnN0IDEzL0xlbmd0aCAxMjgvTiAyL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeMjI1VDBQMDI1UjAxVrCx0XfOL80rUTDS985MKY42MjUDSgYpgJQExeqHVBak6gckpqcW29kBlfol5qYWR2v8+89Qx5DJkMyQz5DHoM3gDKRzgTAVyCsB8o0YTIHQCkgbMFgCaQMGXQZXBj+GUCBtoGloDDbazg4gwAD+qB57DQplbmRzdHJlYW0NZW5kb2JqDTE2IDAgb2JqDTw8L0ZpbHRlci9GbGF0ZURlY29kZS9GaXJzdCA2L0xlbmd0aCAyMTYvTiAxL1R5cGUvT2JqU3RtPj5zdHJlYW0NCmjeTM5Bb8IwDAXgv+IbzWGL3axrmRASo9oJJCQOO6dJKqK1NTIpEv9+mWDTru9Z33NZGUBYrfRmTieW4jxaN4RhUHrL49lOt+IgfI2TC8A9vEtM8XKCLQ/z2EWbryTYFHzRvpVIFRE1jyzy1ObmXjRUGsIlmerlCZsF4uJxlRc3TrizCQ7tx95+BQGqoWeBTxav9M5e0tFefxcyRKXSe/Z/eE6RloQGTcbrO56f9rMLWffchR8bdrETKzeg6hmVPvIsLmQn9vEfbohqMuZVrdffAgwAqLxTLA0KZW5kc3RyZWFtDWVuZG9iag0xNyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmxhdGVEZWNvZGUvSURbPDY3QzBEQTAxQTBEQThGNEY5NzU3NjBCOEZDNjA1ODc1Pjw5QkFDMzc2ODQyMDlEMjQ2QkU4MTZDQjYxN0ZEQTA3MT5dL0luZm8gMjUzIDAgUi9MZW5ndGggMTE0L1Jvb3QgMjU1IDAgUi9TaXplIDI1NC9UeXBlL1hSZWYvV1sxIDIgMV0+PnN0cmVhbQ0KaN5iYgACJsbYSAYmBsZ3QIJ/NYgVDGK9BbG0QcQcEHEBSDAngYhbQII9AsSaBCSYdEDETyDBdx+kDkQwmQENjf4HZDEwMKIQjH9BBBYJ6hCM71G5/2hl0SgxWAnGuaNhMBrnGATzL7ji/wABBgAsXxUPDQplbmRzdHJlYW0NZW5kb2JqDXN0YXJ0eHJlZg0KMTE2DQolJUVPRg0K"
| 2,868.5
| 56,841
| 0.974255
| 1,295
| 57,370
| 43.149035
| 0.959846
| 0.002505
| 0.002935
| 0.004009
| 0.003866
| 0.002505
| 0.002505
| 0.002505
| 0
| 0
| 0
| 0.133685
| 0.002545
| 57,370
| 19
| 56,842
| 3,019.473684
| 0.842793
| 0.003294
| 0
| 0
| 0
| 0.090909
| 0.995749
| 0.994944
| 0
| 1
| 0
| 0
| 0
| 1
| 0.181818
| true
| 0
| 0
| 0.090909
| 0.363636
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ab3b5e912ee29eb796c837d65de453f11e068bf9
| 282,116
|
py
|
Python
|
core/controllers/acl_decorators_test.py
|
yash10019coder/oppia
|
8c349c61ac723a2fd507046b20957934cba70e3a
|
[
"Apache-2.0"
] | 1
|
2021-12-17T15:21:23.000Z
|
2021-12-17T15:21:23.000Z
|
core/controllers/acl_decorators_test.py
|
yash10019coder/oppia
|
8c349c61ac723a2fd507046b20957934cba70e3a
|
[
"Apache-2.0"
] | null | null | null |
core/controllers/acl_decorators_test.py
|
yash10019coder/oppia
|
8c349c61ac723a2fd507046b20957934cba70e3a
|
[
"Apache-2.0"
] | 2
|
2022-03-22T16:57:32.000Z
|
2022-03-24T17:38:42.000Z
|
# coding: utf-8
#
# Copyright 2017 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for core.domain.acl_decorators."""
from __future__ import annotations
import json
from core import android_validation_constants
from core import feconf
from core.constants import constants
from core.controllers import acl_decorators
from core.controllers import base
from core.domain import app_feedback_report_domain
from core.domain import blog_services
from core.domain import classifier_domain
from core.domain import classifier_services
from core.domain import config_services
from core.domain import exp_domain
from core.domain import exp_services
from core.domain import feedback_services
from core.domain import question_domain
from core.domain import question_services
from core.domain import rights_domain
from core.domain import rights_manager
from core.domain import skill_services
from core.domain import state_domain
from core.domain import story_services
from core.domain import subtopic_page_domain
from core.domain import subtopic_page_services
from core.domain import suggestion_services
from core.domain import topic_domain
from core.domain import topic_fetchers
from core.domain import topic_services
from core.domain import user_services
from core.tests import test_utils
import webapp2
import webtest
class OpenAccessDecoratorTests(test_utils.GenericTestBase):
"""Tests for open access decorator."""
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.open_access
def get(self):
return self.render_json({'success': True})
def setUp(self):
super(OpenAccessDecoratorTests, self).setUp()
self.signup(self.VIEWER_EMAIL, self.VIEWER_USERNAME)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_access_with_logged_in_user(self):
self.login(self.VIEWER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock')
self.assertTrue(response['success'])
self.logout()
def test_access_with_guest_user(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock')
self.assertTrue(response['success'])
class IsSourceMailChimpDecoratorTests(test_utils.GenericTestBase):
"""Tests for is_source_mailchimp decorator."""
user_email = 'user@example.com'
username = 'user'
secret = 'webhook_secret'
invalid_secret = 'invalid'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'secret': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.is_source_mailchimp
def get(self, secret):
return self.render_json({'secret': secret})
def setUp(self):
super(IsSourceMailChimpDecoratorTests, self).setUp()
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_secret_page/<secret>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_error_when_mailchimp_webhook_secret_is_none(self):
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
with testapp_swap:
response = self.get_json(
'/mock_secret_page/%s' % self.secret,
expected_status_int=404
)
error_msg = (
'Could not find the page http://localhost'
'/mock_secret_page/%s.' % self.secret
)
self.assertEqual(response['error'], error_msg)
self.assertEqual(response['status_code'], 404)
def test_error_when_given_webhook_secret_is_invalid(self):
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
mailchimp_swap = self.swap_to_always_return(
feconf, 'MAILCHIMP_WEBHOOK_SECRET', value=self.secret)
with testapp_swap, mailchimp_swap:
response = self.get_json(
'/mock_secret_page/%s' % self.invalid_secret,
expected_status_int=404
)
error_msg = (
'Could not find the page http://localhost'
'/mock_secret_page/%s.' % self.invalid_secret
)
self.assertEqual(response['error'], error_msg)
self.assertEqual(response['status_code'], 404)
def test_no_error_when_given_webhook_secret_is_valid(self):
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
mailchimp_swap = self.swap(
feconf, 'MAILCHIMP_WEBHOOK_SECRET', self.secret)
with testapp_swap, mailchimp_swap:
response = self.get_json(
'/mock_secret_page/%s' % self.secret,
expected_status_int=200
)
self.assertEqual(response['secret'], self.secret)
class ViewSkillsDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_view_skills decorator."""
class MockHandler(base.BaseHandler):
REQUIRE_PAYLOAD_CSRF_CHECK = False
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'selected_skill_ids': {
'schema': {
'type': 'custom',
'obj_type': 'JsonEncodedInString'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_view_skills
def get(self, selected_skill_ids):
return self.render_json({'selected_skill_ids': selected_skill_ids})
def setUp(self):
super(ViewSkillsDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.admin = user_services.get_user_actions_info(self.admin_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_view_skills/<selected_skill_ids>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_can_view_skill_with_valid_skill_id(self):
skill_id = skill_services.get_new_skill_id()
self.save_new_skill(skill_id, self.admin_id, description='Description')
skill_ids = [skill_id]
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_skills/%s' % json.dumps(skill_ids))
self.assertEqual(response['selected_skill_ids'], skill_ids)
def test_invalid_input_exception_with_invalid_skill_ids(self):
skill_ids = ['abcd1234']
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_skills/%s' % json.dumps(skill_ids),
expected_status_int=400)
self.assertEqual(response['error'], 'Invalid skill id.')
def test_page_not_found_exception_with_invalid_skill_ids(self):
skill_ids = ['invalid_id12', 'invalid_id13']
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_skills/%s' % json.dumps(skill_ids),
expected_status_int=404)
error_msg = (
'Could not find the page http://localhost/mock_view_skills/'
'%5B%22invalid_id12%22,%20%22invalid_id13%22%5D.'
)
self.assertEqual(response['error'], error_msg)
class DownloadExplorationDecoratorTests(test_utils.GenericTestBase):
"""Tests for download exploration decorator."""
user_email = 'user@example.com'
username = 'user'
published_exp_id = 'exp_id_1'
private_exp_id = 'exp_id_2'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_download_exploration
def get(self, exploration_id):
return self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(DownloadExplorationDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_download_exploration/<exploration_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_download_exploration_with_disabled_exploration_ids(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_download_exploration/%s' % (
feconf.DISABLED_EXPLORATION_IDS[0]),
expected_status_int=404
)
error_msg = (
'Could not find the page '
'http://localhost/mock_download_exploration/%s.' % (
feconf.DISABLED_EXPLORATION_IDS[0]
)
)
self.assertEqual(response['error'], error_msg)
def test_guest_can_download_published_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_download_exploration/%s' % self.published_exp_id)
self.assertEqual(response['exploration_id'], self.published_exp_id)
def test_guest_cannot_download_private_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_download_exploration/%s' % self.private_exp_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_download_exploration/%s.' % (
self.private_exp_id
)
)
self.assertEqual(response['error'], error_msg)
def test_moderator_can_download_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_download_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_owner_can_download_private_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_download_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_logged_in_user_cannot_download_unowned_exploration(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_download_exploration/%s' % self.private_exp_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_download_exploration/%s.' % (
self.private_exp_id
)
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_page_not_found_exception_when_exploration_rights_is_none(self):
self.login(self.user_email)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
exp_rights_swap = self.swap_to_always_return(
rights_manager, 'get_exploration_rights', value=None)
with testapp_swap, exp_rights_swap:
response = self.get_json(
'/mock_download_exploration/%s' % self.published_exp_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_download_exploration/%s.' % (
self.published_exp_id
)
)
self.assertEqual(response['error'], error_msg)
self.logout()
class ViewExplorationStatsDecoratorTests(test_utils.GenericTestBase):
"""Tests for view exploration stats decorator."""
user_email = 'user@example.com'
username = 'user'
published_exp_id = 'exp_id_1'
private_exp_id = 'exp_id_2'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_view_exploration_stats
def get(self, exploration_id):
return self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(ViewExplorationStatsDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_view_exploration_stats/<exploration_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_view_exploration_stats_with_disabled_exploration_ids(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_exploration_stats/%s' % (
feconf.DISABLED_EXPLORATION_IDS[0]),
expected_status_int=404
)
error_msg = (
'Could not find the page '
'http://localhost/mock_view_exploration_stats/%s.' % (
feconf.DISABLED_EXPLORATION_IDS[0]
)
)
self.assertEqual(response['error'], error_msg)
def test_guest_can_view_published_exploration_stats(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_exploration_stats/%s' % self.published_exp_id)
self.assertEqual(response['exploration_id'], self.published_exp_id)
def test_guest_cannot_view_private_exploration_stats(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_exploration_stats/%s' % self.private_exp_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_view_exploration_stats/%s.' % (
self.private_exp_id
)
)
self.assertEqual(response['error'], error_msg)
def test_moderator_can_view_private_exploration_stats(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_exploration_stats/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_owner_can_view_private_exploration_stats(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_exploration_stats/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_logged_in_user_cannot_view_unowned_exploration_stats(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_exploration_stats/%s' % self.private_exp_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_view_exploration_stats/%s.' % (
self.private_exp_id
)
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_page_not_found_exception_when_exploration_rights_is_none(self):
self.login(self.user_email)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
exp_rights_swap = self.swap_to_always_return(
rights_manager, 'get_exploration_rights', value=None)
with testapp_swap, exp_rights_swap:
response = self.get_json(
'/mock_view_exploration_stats/%s' % self.published_exp_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_view_exploration_stats/%s.' % (
self.published_exp_id
)
)
self.assertEqual(response['error'], error_msg)
self.logout()
class RequireUserIdElseRedirectToHomepageTests(test_utils.GenericTestBase):
"""Tests for require_user_id_else_redirect_to_homepage decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_HTML
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.require_user_id_else_redirect_to_homepage
def get(self):
self.redirect('/access_page')
def setUp(self):
super(RequireUserIdElseRedirectToHomepageTests, self).setUp()
self.signup(self.user_email, self.username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_logged_in_user_is_redirected_to_access_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response('/mock/', expected_status_int=302)
self.assertEqual(
'http://localhost/access_page', response.headers['location'])
self.logout()
def test_guest_user_is_redirected_to_homepage(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response('/mock/', expected_status_int=302)
self.assertEqual(
'http://localhost/', response.headers['location'])
class PlayExplorationDecoratorTests(test_utils.GenericTestBase):
"""Tests for play exploration decorator."""
user_email = 'user@example.com'
username = 'user'
published_exp_id = 'exp_id_1'
private_exp_id = 'exp_id_2'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_play_exploration
def get(self, exploration_id):
return self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(PlayExplorationDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_play_exploration/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_access_exploration_with_disabled_exploration_ids(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_play_exploration/%s'
% (feconf.DISABLED_EXPLORATION_IDS[0]), expected_status_int=404)
def test_guest_can_access_published_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_play_exploration/%s' % self.published_exp_id)
self.assertEqual(response['exploration_id'], self.published_exp_id)
def test_guest_cannot_access_private_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_play_exploration/%s' % self.private_exp_id,
expected_status_int=404)
def test_moderator_can_access_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_play_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_owner_can_access_private_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_play_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_logged_in_user_cannot_access_not_owned_exploration(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_play_exploration/%s' % self.private_exp_id,
expected_status_int=404)
self.logout()
class PlayCollectionDecoratorTests(test_utils.GenericTestBase):
"""Tests for play collection decorator."""
user_email = 'user@example.com'
username = 'user'
published_exp_id = 'exp_id_1'
private_exp_id = 'exp_id_2'
published_col_id = 'col_id_1'
private_col_id = 'col_id_2'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'collection_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_play_collection
def get(self, collection_id):
return self.render_json({'collection_id': collection_id})
def setUp(self):
super(PlayCollectionDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_play_collection/<collection_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
self.save_new_valid_collection(
self.published_col_id, self.owner_id,
exploration_id=self.published_col_id)
self.save_new_valid_collection(
self.private_col_id, self.owner_id,
exploration_id=self.private_col_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
rights_manager.publish_collection(self.owner, self.published_col_id)
def test_guest_can_access_published_collection(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_play_collection/%s' % self.published_col_id)
self.assertEqual(response['collection_id'], self.published_col_id)
def test_guest_cannot_access_private_collection(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_play_collection/%s' % self.private_col_id,
expected_status_int=404)
def test_moderator_can_access_private_collection(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_play_collection/%s' % self.private_col_id)
self.assertEqual(response['collection_id'], self.private_col_id)
self.logout()
def test_owner_can_access_private_collection(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_play_collection/%s' % self.private_col_id)
self.assertEqual(response['collection_id'], self.private_col_id)
self.logout()
def test_logged_in_user_cannot_access_not_owned_private_collection(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_play_collection/%s' % self.private_col_id,
expected_status_int=404)
self.logout()
def test_cannot_access_collection_with_invalid_collection_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_play_collection/invalid_collection_id',
expected_status_int=404)
self.logout()
class EditCollectionDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_edit_collection decorator."""
user_email = 'user@example.com'
username = 'user'
published_col_id = 'col_id_1'
private_col_id = 'col_id_2'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'collection_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_edit_collection
def get(self, collection_id):
return self.render_json({'collection_id': collection_id})
def setUp(self):
super(EditCollectionDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.set_moderators([self.MODERATOR_USERNAME])
self.set_collection_editors([self.OWNER_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_edit_collection/<collection_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_collection(
self.published_col_id, self.owner_id,
exploration_id=self.published_col_id)
self.save_new_valid_collection(
self.private_col_id, self.owner_id,
exploration_id=self.private_col_id)
rights_manager.publish_collection(self.owner, self.published_col_id)
def test_cannot_edit_collection_with_invalid_collection_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_collection/invalid_col_id', expected_status_int=404)
self.logout()
def test_guest_cannot_edit_collection_via_json_handler(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_collection/%s' % self.published_col_id,
expected_status_int=401)
def test_guest_is_redirected_when_using_html_handler(self):
with self.swap(
self.MockHandler, 'GET_HANDLER_ERROR_RETURN_TYPE',
feconf.HANDLER_TYPE_HTML):
response = self.mock_testapp.get(
'/mock_edit_collection/%s' % self.published_col_id,
expect_errors=True)
self.assertEqual(response.status_int, 302)
def test_normal_user_cannot_edit_collection(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_collection/%s' % self.private_col_id,
expected_status_int=401)
self.logout()
def test_owner_can_edit_owned_collection(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_collection/%s' % self.private_col_id)
self.assertEqual(response['collection_id'], self.private_col_id)
self.logout()
def test_moderator_can_edit_private_collection(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_collection/%s' % self.private_col_id)
self.assertEqual(response['collection_id'], self.private_col_id)
self.logout()
def test_moderator_can_edit_public_collection(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_collection/%s' % self.published_col_id)
self.assertEqual(response['collection_id'], self.published_col_id)
self.logout()
def test_admin_can_edit_any_private_collection(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_collection/%s' % self.private_col_id)
self.assertEqual(response['collection_id'], self.private_col_id)
self.logout()
class ClassroomExistDecoratorTests(test_utils.GenericTestBase):
"""Tests for does_classroom_exist decorator"""
class MockDataHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {
'GET': {}
}
@acl_decorators.does_classroom_exist
def get(self, _):
self.render_json({'success': True})
class MockPageHandler(base.BaseHandler):
URL_PATH_ARGS_SCHEMAS = {
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {
'GET': {}
}
@acl_decorators.does_classroom_exist
def get(self, _):
self.render_json('oppia-root.mainpage.html')
def setUp(self):
super(ClassroomExistDecoratorTests, self).setUp()
self.signup(
self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.user_id_admin = (
self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL))
self.signup(self.EDITOR_EMAIL, self.EDITOR_USERNAME)
self.editor_id = self.get_user_id_from_email(self.EDITOR_EMAIL)
config_services.set_property(
self.user_id_admin, 'classroom_pages_data', [{
'name': 'math',
'url_fragment': 'math',
'topic_ids': [],
'course_details': '',
'topic_list_intro': ''
}])
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_classroom_data/<classroom_url_fragment>',
self.MockDataHandler),
webapp2.Route(
'/mock_classroom_page/<classroom_url_fragment>',
self.MockPageHandler
)],
debug=feconf.DEBUG
))
def test_any_user_can_access_a_valid_classroom(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_classroom_data/math', expected_status_int=200)
def test_redirects_user_to_default_classroom_if_given_not_available(
self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_classroom_data/invalid', expected_status_int=404)
def test_raises_error_if_return_type_is_not_json(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_html_response(
'/mock_classroom_page/invalid', expected_status_int=500)
class CreateExplorationDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_create_exploration decorator."""
username = 'banneduser'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_create_exploration
def get(self):
self.render_json({'success': True})
def setUp(self):
super(CreateExplorationDecoratorTests, self).setUp()
self.signup(self.EDITOR_EMAIL, self.EDITOR_USERNAME)
self.signup(self.user_email, self.username)
self.mark_user_banned(self.username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/create', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_create_exploration(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/create', expected_status_int=401)
self.logout()
def test_normal_user_can_create_exploration(self):
self.login(self.EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/create')
self.assertTrue(response['success'])
self.logout()
def test_guest_cannot_create_exploration_via_json_handler(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/create', expected_status_int=401)
def test_guest_is_redirected_when_using_html_handler(self):
with self.swap(
self.MockHandler, 'GET_HANDLER_ERROR_RETURN_TYPE',
feconf.HANDLER_TYPE_HTML):
response = self.mock_testapp.get('/mock/create', expect_errors=True)
self.assertEqual(response.status_int, 302)
class CreateCollectionDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_create_collection decorator."""
username = 'collectioneditor'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_create_collection
def get(self):
self.render_json({'success': True})
def setUp(self):
super(CreateCollectionDecoratorTests, self).setUp()
self.signup(self.EDITOR_EMAIL, self.EDITOR_USERNAME)
self.signup(self.user_email, self.username)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_collection_editors([self.username])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/create', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_create_collection_via_json_handler(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/create', expected_status_int=401)
def test_guest_is_redirected_when_using_html_handler(self):
with self.swap(
self.MockHandler, 'GET_HANDLER_ERROR_RETURN_TYPE',
feconf.HANDLER_TYPE_HTML):
response = self.mock_testapp.get('/mock/create', expect_errors=True)
self.assertEqual(response.status_int, 302)
def test_normal_user_cannot_create_collection(self):
self.login(self.EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/create', expected_status_int=401)
self.logout()
def test_collection_editor_can_create_collection(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/create')
self.assertTrue(response['success'])
self.logout()
class AccessCreatorDashboardTests(test_utils.GenericTestBase):
"""Tests for can_access_creator_dashboard decorator."""
username = 'banneduser'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_creator_dashboard
def get(self):
self.render_json({'success': True})
def setUp(self):
super(AccessCreatorDashboardTests, self).setUp()
self.signup(self.EDITOR_EMAIL, self.EDITOR_USERNAME)
self.signup(self.user_email, self.username)
self.mark_user_banned(self.username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/access', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_access_editor_dashboard(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/access', expected_status_int=401)
self.logout()
def test_normal_user_can_access_editor_dashboard(self):
self.login(self.EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/access')
self.assertTrue(response['success'])
self.logout()
def test_guest_user_cannot_access_editor_dashboard(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/access', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class CommentOnFeedbackThreadTests(test_utils.GenericTestBase):
"""Tests for can_comment_on_feedback_thread decorator."""
published_exp_id = 'exp_0'
private_exp_id = 'exp_1'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'thread_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_comment_on_feedback_thread
def get(self, thread_id):
self.render_json({'thread_id': thread_id})
def setUp(self):
super(CommentOnFeedbackThreadTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_comment_on_feedback_thread/<thread_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_comment_on_feedback_threads_with_disabled_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% feconf.DISABLED_EXPLORATION_IDS[0],
expected_status_int=404)
self.logout()
def test_viewer_cannot_comment_on_feedback_for_private_exploration(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% self.private_exp_id, expected_status_int=401)
self.assertEqual(
response['error'], 'You do not have credentials to comment on '
'exploration feedback.')
self.logout()
def test_cannot_comment_on_feedback_threads_with_invalid_thread_id(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_comment_on_feedback_thread/invalid_thread_id',
expected_status_int=400)
self.assertEqual(response['error'], 'Not a valid thread id.')
self.logout()
def test_guest_cannot_comment_on_feedback_threads_via_json_handler(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% (self.private_exp_id), expected_status_int=401)
self.get_json(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% (self.published_exp_id), expected_status_int=401)
def test_guest_is_redirected_when_using_html_handler(self):
with self.swap(
self.MockHandler, 'GET_HANDLER_ERROR_RETURN_TYPE',
feconf.HANDLER_TYPE_HTML):
response = self.mock_testapp.get(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% (self.private_exp_id), expect_errors=True)
self.assertEqual(response.status_int, 302)
response = self.mock_testapp.get(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% (self.published_exp_id), expect_errors=True)
self.assertEqual(response.status_int, 302)
def test_owner_can_comment_on_feedback_for_private_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% (self.private_exp_id))
self.logout()
def test_moderator_can_comment_on_feeback_for_public_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% (self.published_exp_id))
self.logout()
def test_moderator_can_comment_on_feeback_for_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_comment_on_feedback_thread/exploration.%s.thread1'
% (self.private_exp_id))
self.logout()
class CreateFeedbackThreadTests(test_utils.GenericTestBase):
"""Tests for can_create_feedback_thread decorator."""
published_exp_id = 'exp_0'
private_exp_id = 'exp_1'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_create_feedback_thread
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(CreateFeedbackThreadTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_create_feedback_thread/<exploration_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_create_feedback_threads_with_disabled_exp_id(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_create_feedback_thread/%s'
% (feconf.DISABLED_EXPLORATION_IDS[0]), expected_status_int=404)
def test_viewer_cannot_create_feedback_for_private_exploration(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_create_feedback_thread/%s' % self.private_exp_id,
expected_status_int=401)
self.assertEqual(
response['error'], 'You do not have credentials to create '
'exploration feedback.')
self.logout()
def test_guest_can_create_feedback_threads_for_public_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_create_feedback_thread/%s' % self.published_exp_id)
def test_owner_cannot_create_feedback_for_private_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_create_feedback_thread/%s' % self.private_exp_id)
self.logout()
def test_moderator_can_create_feeback_for_public_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_create_feedback_thread/%s' % self.published_exp_id)
self.logout()
def test_moderator_can_create_feeback_for_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_create_feedback_thread/%s' % self.private_exp_id)
self.logout()
class ViewFeedbackThreadTests(test_utils.GenericTestBase):
"""Tests for can_view_feedback_thread decorator."""
published_exp_id = 'exp_0'
private_exp_id = 'exp_1'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'thread_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_view_feedback_thread
def get(self, thread_id):
self.render_json({'thread_id': thread_id})
def setUp(self):
super(ViewFeedbackThreadTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_view_feedback_thread/<thread_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
self.public_exp_thread_id = feedback_services.create_thread(
feconf.ENTITY_TYPE_EXPLORATION, self.published_exp_id,
self.owner_id, 'public exp', 'some text')
self.private_exp_thread_id = feedback_services.create_thread(
feconf.ENTITY_TYPE_EXPLORATION, self.private_exp_id, self.owner_id,
'private exp', 'some text')
self.disabled_exp_thread_id = feedback_services.create_thread(
feconf.ENTITY_TYPE_EXPLORATION, feconf.DISABLED_EXPLORATION_IDS[0],
self.owner_id, 'disabled exp', 'some text')
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_view_feedback_threads_with_disabled_exp_id(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_view_feedback_thread/%s' % self.disabled_exp_thread_id,
expected_status_int=404)
def test_viewer_cannot_view_feedback_for_private_exploration(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_feedback_thread/%s' % self.private_exp_thread_id,
expected_status_int=401)
self.assertEqual(
response['error'], 'You do not have credentials to view '
'exploration feedback.')
self.logout()
def test_viewer_cannot_view_feedback_threads_with_invalid_thread_id(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_feedback_thread/invalid_thread_id',
expected_status_int=400)
self.assertEqual(response['error'], 'Not a valid thread id.')
self.logout()
def test_viewer_can_view_non_exploration_related_feedback(self):
self.login(self.viewer_email)
skill_thread_id = feedback_services.create_thread(
'skill', 'skillid1', None, 'unused subject', 'unused text')
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_view_feedback_thread/%s' % skill_thread_id)
def test_guest_can_view_feedback_threads_for_public_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_view_feedback_thread/%s' % self.public_exp_thread_id)
def test_owner_cannot_view_feedback_for_private_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_view_feedback_thread/%s' % self.private_exp_thread_id)
self.logout()
def test_moderator_can_view_feeback_for_public_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_view_feedback_thread/%s' % self.public_exp_thread_id)
self.logout()
def test_moderator_can_view_feeback_for_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_view_feedback_thread/%s' % self.private_exp_thread_id)
self.logout()
class ManageEmailDashboardTests(test_utils.GenericTestBase):
"""Tests for can_manage_email_dashboard decorator."""
query_id = 'query_id'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'query_id': {
'schema': {
'type': 'basestring'
},
'default_value': None
}
}
HANDLER_ARGS_SCHEMAS = {
'GET': {},
'PUT': {}
}
@acl_decorators.can_manage_email_dashboard
def get(self):
return self.render_json({'success': 1})
@acl_decorators.can_manage_email_dashboard
def put(self, query_id):
return self.render_json({'query_id': query_id})
def setUp(self):
super(ManageEmailDashboardTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.set_moderators([self.MODERATOR_USERNAME])
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[
webapp2.Route('/mock/', self.MockHandler),
webapp2.Route('/mock/<query_id>', self.MockHandler)
],
debug=feconf.DEBUG,
))
def test_moderator_cannot_access_email_dashboard(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
self.logout()
def test_super_admin_can_access_email_dashboard(self):
self.login(self.CURRICULUM_ADMIN_EMAIL, is_super_admin=True)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertEqual(response['success'], 1)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.mock_testapp.put('/mock/%s' % self.query_id)
self.assertEqual(response.status_int, 200)
self.logout()
def test_error_when_user_is_not_logged_in(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class RateExplorationTests(test_utils.GenericTestBase):
"""Tests for can_rate_exploration decorator."""
username = 'user'
user_email = 'user@example.com'
exp_id = 'exp_id'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_rate_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(RateExplorationTests, self).setUp()
self.signup(self.user_email, self.username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_give_rating(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.exp_id, expected_status_int=401)
def test_normal_user_can_give_rating(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.exp_id)
self.assertEqual(response['exploration_id'], self.exp_id)
self.logout()
class AccessModeratorPageTests(test_utils.GenericTestBase):
"""Tests for can_access_moderator_page decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_moderator_page
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(AccessModeratorPageTests, self).setUp()
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.set_moderators([self.MODERATOR_USERNAME])
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_access_moderator_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
self.logout()
def test_moderator_can_access_moderator_page(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertEqual(response['success'], 1)
self.logout()
def test_guest_cannot_access_moderator_page(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class FlagExplorationTests(test_utils.GenericTestBase):
"""Tests for can_flag_exploration decorator."""
username = 'user'
user_email = 'user@example.com'
exp_id = 'exp_id'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_flag_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(FlagExplorationTests, self).setUp()
self.signup(self.user_email, self.username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_flag_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.exp_id, expected_status_int=401)
def test_normal_user_can_flag_exploration(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.exp_id)
self.assertEqual(response['exploration_id'], self.exp_id)
self.logout()
class SubscriptionToUsersTests(test_utils.GenericTestBase):
"""Tests for can_subscribe_to_users decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_subscribe_to_users
def get(self):
self.render_json({'success': True})
def setUp(self):
super(SubscriptionToUsersTests, self).setUp()
self.signup(self.user_email, self.username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_subscribe_to_users(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
def test_normal_user_can_subscribe_to_users(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertTrue(response['success'])
self.logout()
class SendModeratorEmailsTests(test_utils.GenericTestBase):
"""Tests for can_send_moderator_emails decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_send_moderator_emails
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(SendModeratorEmailsTests, self).setUp()
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.set_moderators([self.MODERATOR_USERNAME])
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_send_moderator_emails(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
self.logout()
def test_moderator_can_send_moderator_emails(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertEqual(response['success'], 1)
self.logout()
def test_guest_cannot_send_moderator_emails(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class CanAccessReleaseCoordinatorPageDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_access_release_coordinator_page decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_release_coordinator_page
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(CanAccessReleaseCoordinatorPageDecoratorTests, self).setUp()
self.signup(feconf.SYSTEM_EMAIL_ADDRESS, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.signup(
self.RELEASE_COORDINATOR_EMAIL, self.RELEASE_COORDINATOR_USERNAME)
self.add_user_role(
self.RELEASE_COORDINATOR_USERNAME,
feconf.ROLE_ID_RELEASE_COORDINATOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/release-coordinator', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_access_release_coordinator_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/release-coordinator', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to access release coordinator page.')
self.logout()
def test_guest_user_cannot_access_release_coordinator_page(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/release-coordinator', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
self.logout()
def test_super_admin_cannot_access_release_coordinator_page(self):
self.login(feconf.SYSTEM_EMAIL_ADDRESS)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/release-coordinator', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to access release coordinator page.')
self.logout()
def test_release_coordinator_can_access_release_coordinator_page(self):
self.login(self.RELEASE_COORDINATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/release-coordinator')
self.assertEqual(response['success'], 1)
self.logout()
class CanAccessBlogAdminPageDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_access_blog_admin_page decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {
'GET': {},
}
@acl_decorators.can_access_blog_admin_page
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(CanAccessBlogAdminPageDecoratorTests, self).setUp()
self.signup(self.user_email, self.username)
self.signup(self.BLOG_EDITOR_EMAIL, self.BLOG_EDITOR_USERNAME)
self.signup(self.BLOG_ADMIN_EMAIL, self.BLOG_ADMIN_USERNAME)
self.add_user_role(
self.BLOG_ADMIN_USERNAME, feconf.ROLE_ID_BLOG_ADMIN)
self.add_user_role(
self.BLOG_EDITOR_USERNAME, feconf.ROLE_ID_BLOG_POST_EDITOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/blog-admin', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_access_blog_admin_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blog-admin', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to access blog admin page.')
self.logout()
def test_guest_user_cannot_access_blog_admin_page(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blog-admin', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
self.logout()
def test_blog_post_editor_cannot_access_blog_admin_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blog-admin', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to access blog admin page.')
self.logout()
def test_blog_admin_can_access_blog_admin_page(self):
self.login(self.BLOG_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/blog-admin')
self.assertEqual(response['success'], 1)
self.logout()
class CanManageBlogPostEditorsDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_manage_blog_post_editors decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {
'GET': {},
}
@acl_decorators.can_manage_blog_post_editors
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(CanManageBlogPostEditorsDecoratorTests, self).setUp()
self.signup(self.user_email, self.username)
self.signup(self.BLOG_ADMIN_EMAIL, self.BLOG_ADMIN_USERNAME)
self.signup(self.BLOG_EDITOR_EMAIL, self.BLOG_EDITOR_USERNAME)
self.add_user_role(
self.BLOG_ADMIN_USERNAME, feconf.ROLE_ID_BLOG_ADMIN)
self.add_user_role(
self.BLOG_EDITOR_USERNAME, feconf.ROLE_ID_BLOG_POST_EDITOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/blogadminrolehandler', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_manage_blog_post_editors(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blogadminrolehandler', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to add or remove blog post editors.')
self.logout()
def test_guest_user_cannot_manage_blog_post_editors(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blogadminrolehandler', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
self.logout()
def test_blog_post_editors_cannot_manage_blog_post_editors(self):
self.login(self.BLOG_EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blogadminrolehandler', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to add or remove blog post editors.')
self.logout()
def test_blog_admin_can_manage_blog_editors(self):
self.login(self.BLOG_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/blogadminrolehandler')
self.assertEqual(response['success'], 1)
self.logout()
class CanAccessBlogDashboardDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_access_blog_dashboard decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {
'GET': {},
}
@acl_decorators.can_access_blog_dashboard
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(CanAccessBlogDashboardDecoratorTests, self).setUp()
self.signup(self.user_email, self.username)
self.signup(self.BLOG_EDITOR_EMAIL, self.BLOG_EDITOR_USERNAME)
self.signup(self.BLOG_ADMIN_EMAIL, self.BLOG_ADMIN_USERNAME)
self.add_user_role(
self.BLOG_ADMIN_USERNAME, feconf.ROLE_ID_BLOG_ADMIN)
self.add_user_role(
self.BLOG_EDITOR_USERNAME, feconf.ROLE_ID_BLOG_POST_EDITOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/blog-dashboard', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_access_blog_dashboard(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blog-dashboard', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to access blog dashboard page.')
self.logout()
def test_guest_user_cannot_access_blog_dashboard(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/blog-dashboard', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
self.logout()
def test_blog_editors_can_access_blog_dashboard(self):
self.login(self.BLOG_EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/blog-dashboard')
self.assertEqual(response['success'], 1)
self.logout()
def test_blog_admins_can_access_blog_dashboard(self):
self.login(self.BLOG_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/blog-dashboard')
self.assertEqual(response['success'], 1)
self.logout()
class CanDeleteBlogPostTests(test_utils.GenericTestBase):
"""Tests for can_delete_blog_post decorator."""
username = 'userone'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'blog_post_id': {
'schema': {
'type': 'unicode'
}
}
}
HANDLER_ARGS_SCHEMAS = {
'GET': {},
}
@acl_decorators.can_delete_blog_post
def get(self, blog_post_id):
self.render_json({'blog_id': blog_post_id})
def setUp(self):
super(CanDeleteBlogPostTests, self).setUp()
self.signup(self.user_email, self.username)
self.signup(self.BLOG_EDITOR_EMAIL, self.BLOG_EDITOR_USERNAME)
self.signup(self.BLOG_ADMIN_EMAIL, self.BLOG_ADMIN_USERNAME)
self.add_user_role(
self.BLOG_EDITOR_USERNAME, feconf.ROLE_ID_BLOG_POST_EDITOR)
self.add_user_role(
self.BLOG_ADMIN_USERNAME, feconf.ROLE_ID_BLOG_ADMIN)
self.add_user_role(self.username, feconf.ROLE_ID_BLOG_POST_EDITOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_delete_blog_post/<blog_post_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.user_id = self.get_user_id_from_email(self.user_email)
self.blog_editor_id = (
self.get_user_id_from_email(self.BLOG_EDITOR_EMAIL))
blog_post = blog_services.create_new_blog_post(self.blog_editor_id)
self.blog_post_id = blog_post.id
def test_guest_cannot_delete_blog_post(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_blog_post/%s' % self.blog_post_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
def test_blog_editor_can_delete_owned_blog_post(self):
self.login(self.BLOG_EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_blog_post/%s' % self.blog_post_id)
self.assertEqual(response['blog_id'], self.blog_post_id)
self.logout()
def test_blog_admin_can_delete_any_blog_post(self):
self.login(self.BLOG_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_blog_post/%s' % self.blog_post_id)
self.assertEqual(response['blog_id'], self.blog_post_id)
self.logout()
def test_blog_editor_cannot_delete_not_owned_blog_post(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_blog_post/%s' % self.blog_post_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'User %s does not have permissions to delete blog post %s'
% (self.user_id, self.blog_post_id))
self.logout()
def test_error_with_invalid_blog_post_id(self):
self.login(self.user_email)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
blog_post_rights_swap = self.swap_to_always_return(
blog_services, 'get_blog_post_rights', value=None)
with testapp_swap, blog_post_rights_swap:
response = self.get_json(
'/mock_delete_blog_post/%s' % self.blog_post_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_delete_blog_post/%s.' % self.blog_post_id
)
self.assertEqual(response['error'], error_msg)
self.logout()
class CanEditBlogPostTests(test_utils.GenericTestBase):
"""Tests for can_edit_blog_post decorator."""
username = 'userone'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'blog_post_id': {
'schema': {
'type': 'unicode'
}
}
}
HANDLER_ARGS_SCHEMAS = {
'GET': {},
}
@acl_decorators.can_edit_blog_post
def get(self, blog_post_id):
self.render_json({'blog_id': blog_post_id})
def setUp(self):
super(CanEditBlogPostTests, self).setUp()
self.signup(
self.BLOG_EDITOR_EMAIL, self.BLOG_EDITOR_USERNAME)
self.signup(self.BLOG_ADMIN_EMAIL, self.BLOG_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.add_user_role(
self.BLOG_EDITOR_USERNAME, feconf.ROLE_ID_BLOG_POST_EDITOR)
self.add_user_role(
self.BLOG_ADMIN_USERNAME, feconf.ROLE_ID_BLOG_ADMIN)
self.add_user_role(self.username, feconf.ROLE_ID_BLOG_POST_EDITOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_edit_blog_post/<blog_post_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.blog_editor_id = self.get_user_id_from_email(
self.BLOG_EDITOR_EMAIL)
self.user_id = self.get_user_id_from_email(self.user_email)
blog_post = blog_services.create_new_blog_post(self.blog_editor_id)
self.blog_post_id = blog_post.id
def test_guest_cannot_edit_blog_post(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_blog_post/%s' % self.blog_post_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
def test_blog_editor_can_edit_owned_blog_post(self):
self.login(self.BLOG_EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_blog_post/%s' % self.blog_post_id)
self.assertEqual(response['blog_id'], self.blog_post_id)
self.logout()
def test_blog_admin_can_edit_any_blog_post(self):
self.login(self.BLOG_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_blog_post/%s' % self.blog_post_id)
self.assertEqual(response['blog_id'], self.blog_post_id)
self.logout()
def test_blog_editor_cannot_edit_not_owned_blog_post(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_blog_post/%s' % self.blog_post_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'User %s does not have permissions to edit blog post %s'
% (self.user_id, self.blog_post_id))
self.logout()
def test_error_with_invalid_blog_post_id(self):
self.login(self.user_email)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
blog_post_rights_swap = self.swap_to_always_return(
blog_services, 'get_blog_post_rights', value=None)
with testapp_swap, blog_post_rights_swap:
response = self.get_json(
'/mock_edit_blog_post/%s' % self.blog_post_id,
expected_status_int=404)
error_msg = (
'Could not find the page '
'http://localhost/mock_edit_blog_post/%s.' % self.blog_post_id
)
self.assertEqual(response['error'], error_msg)
self.logout()
class CanRunAnyJobDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_run_any_job decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_run_any_job
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(CanRunAnyJobDecoratorTests, self).setUp()
self.signup(feconf.SYSTEM_EMAIL_ADDRESS, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.signup(
self.RELEASE_COORDINATOR_EMAIL, self.RELEASE_COORDINATOR_USERNAME)
self.add_user_role(
self.RELEASE_COORDINATOR_USERNAME,
feconf.ROLE_ID_RELEASE_COORDINATOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/run-anny-job', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_access_release_coordinator_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/run-anny-job', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to run jobs.')
self.logout()
def test_guest_user_cannot_access_release_coordinator_page(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/run-anny-job', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
self.logout()
def test_super_admin_cannot_access_release_coordinator_page(self):
self.login(feconf.SYSTEM_EMAIL_ADDRESS)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/run-anny-job', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to run jobs.')
self.logout()
def test_release_coordinator_can_run_any_job(self):
self.login(self.RELEASE_COORDINATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/run-anny-job')
self.assertEqual(response['success'], 1)
self.logout()
class CanManageMemcacheDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_manage_memcache decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_manage_memcache
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(CanManageMemcacheDecoratorTests, self).setUp()
self.signup(feconf.SYSTEM_EMAIL_ADDRESS, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.signup(
self.RELEASE_COORDINATOR_EMAIL, self.RELEASE_COORDINATOR_USERNAME)
self.add_user_role(
self.RELEASE_COORDINATOR_USERNAME,
feconf.ROLE_ID_RELEASE_COORDINATOR)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/manage-memcache', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_access_release_coordinator_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/manage-memcache', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to manage memcache.')
self.logout()
def test_guest_user_cannot_access_release_coordinator_page(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/manage-memcache', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
self.logout()
def test_super_admin_cannot_access_release_coordinator_page(self):
self.login(feconf.SYSTEM_EMAIL_ADDRESS)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/manage-memcache', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to manage memcache.')
self.logout()
def test_release_coordinator_can_run_any_job(self):
self.login(self.RELEASE_COORDINATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/manage-memcache')
self.assertEqual(response['success'], 1)
self.logout()
class CanManageContributorsRoleDecoratorTests(test_utils.GenericTestBase):
"""Tests for can_manage_contributors_role decorator."""
username = 'user'
user_email = 'user@example.com'
QUESTION_ADMIN_EMAIL = 'questionExpert@app.com'
QUESTION_ADMIN_USERNAME = 'questionExpert'
TRANSLATION_ADMIN_EMAIL = 'translatorExpert@app.com'
TRANSLATION_ADMIN_USERNAME = 'translationExpert'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'category': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {
'GET': {}
}
@acl_decorators.can_manage_contributors_role
def get(self, unused_category):
return self.render_json({'success': 1})
def setUp(self):
super(CanManageContributorsRoleDecoratorTests, self).setUp()
self.signup(self.user_email, self.username)
self.signup(
self.TRANSLATION_ADMIN_EMAIL, self.TRANSLATION_ADMIN_USERNAME)
self.signup(self.QUESTION_ADMIN_EMAIL, self.QUESTION_ADMIN_USERNAME)
self.add_user_role(
self.TRANSLATION_ADMIN_USERNAME, feconf.ROLE_ID_TRANSLATION_ADMIN)
self.add_user_role(
self.QUESTION_ADMIN_USERNAME, feconf.ROLE_ID_QUESTION_ADMIN)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication([
webapp2.Route(
'/can_manage_contributors_role/<category>', self.MockHandler)
], debug=feconf.DEBUG))
def test_normal_user_cannot_access_release_coordinator_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/can_manage_contributors_role/translation',
expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to modify contributor\'s role.')
self.logout()
def test_guest_user_cannot_manage_contributors_role(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/can_manage_contributors_role/translation',
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
self.logout()
def test_translation_admin_can_manage_translation_role(self):
self.login(self.TRANSLATION_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/can_manage_contributors_role/translation')
self.assertEqual(response['success'], 1)
self.logout()
def test_translation_admin_cannot_manage_question_role(self):
self.login(self.TRANSLATION_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/can_manage_contributors_role/question',
expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to modify contributor\'s role.')
self.logout()
def test_question_admin_can_manage_question_role(self):
self.login(self.QUESTION_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/can_manage_contributors_role/question')
self.assertEqual(response['success'], 1)
self.logout()
def test_question_admin_cannot_manage_translation_role(self):
self.login(self.QUESTION_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/can_manage_contributors_role/translation',
expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to modify contributor\'s role.')
self.logout()
def test_invalid_category_raise_error(self):
self.login(self.QUESTION_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/can_manage_contributors_role/invalid',
expected_status_int=400)
self.assertEqual(response['error'], 'Invalid category: invalid')
self.logout()
class DeleteAnyUserTests(test_utils.GenericTestBase):
"""Tests for can_delete_any_user decorator."""
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_delete_any_user
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(DeleteAnyUserTests, self).setUp()
self.signup(feconf.SYSTEM_EMAIL_ADDRESS, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_normal_user_cannot_delete_any_user(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
self.logout()
def test_not_logged_user_cannot_delete_any_user(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
def test_primary_admin_can_delete_any_user(self):
self.login(feconf.SYSTEM_EMAIL_ADDRESS)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertEqual(response['success'], 1)
self.logout()
class VoiceoverExplorationTests(test_utils.GenericTestBase):
"""Tests for can_voiceover_exploration decorator."""
role = rights_domain.ROLE_VOICE_ARTIST
username = 'user'
user_email = 'user@example.com'
banned_username = 'banneduser'
banned_user_email = 'banneduser@example.com'
published_exp_id_1 = 'exp_1'
published_exp_id_2 = 'exp_2'
private_exp_id_1 = 'exp_3'
private_exp_id_2 = 'exp_4'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_voiceover_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(VoiceoverExplorationTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.signup(self.banned_user_email, self.banned_username)
self.signup(self.VOICE_ARTIST_EMAIL, self.VOICE_ARTIST_USERNAME)
self.signup(self.VOICEOVER_ADMIN_EMAIL, self.VOICEOVER_ADMIN_USERNAME)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.voice_artist_id = self.get_user_id_from_email(
self.VOICE_ARTIST_EMAIL)
self.voiceover_admin_id = self.get_user_id_from_email(
self.VOICEOVER_ADMIN_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.banned_username)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.add_user_role(
self.VOICEOVER_ADMIN_USERNAME, feconf.ROLE_ID_VOICEOVER_ADMIN)
self.voiceover_admin = user_services.get_user_actions_info(
self.voiceover_admin_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id_1, self.owner_id)
self.save_new_valid_exploration(
self.published_exp_id_2, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id_1, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id_2, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id_1)
rights_manager.publish_exploration(self.owner, self.published_exp_id_2)
rights_manager.assign_role_for_exploration(
self.voiceover_admin, self.published_exp_id_1, self.voice_artist_id,
self.role)
def test_banned_user_cannot_voiceover_exploration(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.private_exp_id_1, expected_status_int=401)
self.logout()
def test_owner_can_voiceover_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id_1)
self.assertEqual(response['exploration_id'], self.private_exp_id_1)
self.logout()
def test_moderator_can_voiceover_public_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.published_exp_id_1)
self.assertEqual(response['exploration_id'], self.published_exp_id_1)
self.logout()
def test_moderator_can_voiceover_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id_1)
self.assertEqual(response['exploration_id'], self.private_exp_id_1)
self.logout()
def test_admin_can_voiceover_private_exploration(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id_1)
self.assertEqual(response['exploration_id'], self.private_exp_id_1)
self.logout()
def test_voice_artist_can_only_voiceover_assigned_public_exploration(self):
self.login(self.VOICE_ARTIST_EMAIL)
# Checking voice artist can voiceover assigned public exploration.
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.published_exp_id_1)
self.assertEqual(response['exploration_id'], self.published_exp_id_1)
# Checking voice artist cannot voiceover public exploration which he/she
# is not assigned for.
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.published_exp_id_2, expected_status_int=401)
self.logout()
def test_user_without_voice_artist_role_of_exploration_cannot_voiceover_public_exploration(self): # pylint: disable=line-too-long
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.published_exp_id_1, expected_status_int=401)
self.logout()
def test_user_without_voice_artist_role_of_exploration_cannot_voiceover_private_exploration(self): # pylint: disable=line-too-long
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.private_exp_id_1, expected_status_int=401)
self.logout()
def test_guest_cannot_voiceover_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.private_exp_id_1, expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
def test_error_with_invalid_voiceover_exploration_id(self):
self.login(self.user_email)
invalid_id = 'invalid'
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % invalid_id, expected_status_int=404)
error_msg = (
'Could not find the page http://localhost/mock/%s.' % invalid_id)
self.assertEqual(response['error'], error_msg)
self.logout()
class VoiceArtistManagementTests(test_utils.GenericTestBase):
"""Tests for can_add_voice_artist and can_remove_voice_artist decorator."""
role = rights_domain.ROLE_VOICE_ARTIST
username = 'user'
user_email = 'user@example.com'
banned_username = 'banneduser'
banned_user_email = 'banneduser@example.com'
published_exp_id_1 = 'exp_1'
published_exp_id_2 = 'exp_2'
private_exp_id_1 = 'exp_3'
private_exp_id_2 = 'exp_4'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'entity_type': {
'schema': {
'type': 'basestring'
}
},
'entity_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {
'POST': {},
'DELETE': {}
}
@acl_decorators.can_add_voice_artist
def post(self, entity_type, entity_id):
self.render_json({
'entity_type': entity_type,
'entity_id': entity_id
})
@acl_decorators.can_remove_voice_artist
def delete(self, entity_type, entity_id):
self.render_json({
'entity_type': entity_type,
'entity_id': entity_id
})
def setUp(self):
super(VoiceArtistManagementTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.VOICEOVER_ADMIN_EMAIL, self.VOICEOVER_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.signup(self.banned_user_email, self.banned_username)
self.signup(self.VOICE_ARTIST_EMAIL, self.VOICE_ARTIST_USERNAME)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.voiceover_admin_id = self.get_user_id_from_email(
self.VOICEOVER_ADMIN_EMAIL)
self.voice_artist_id = self.get_user_id_from_email(
self.VOICE_ARTIST_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.banned_username)
user_services.add_user_role(
self.voiceover_admin_id, feconf.ROLE_ID_VOICEOVER_ADMIN)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.voiceover_admin = user_services.get_user_actions_info(
self.voiceover_admin_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock/<entity_type>/<entity_id>', self.MockHandler)],
debug=feconf.DEBUG,))
self.save_new_valid_exploration(
self.published_exp_id_1, self.owner_id)
self.save_new_valid_exploration(
self.published_exp_id_2, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id_1, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id_2, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id_1)
rights_manager.publish_exploration(self.owner, self.published_exp_id_2)
rights_manager.assign_role_for_exploration(
self.voiceover_admin, self.published_exp_id_1, self.voice_artist_id,
self.role)
def test_voiceover_admin_can_add_voice_artist_to_public_exp(self):
self.login(self.VOICEOVER_ADMIN_EMAIL)
csrf_token = self.get_new_csrf_token()
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/mock/exploration/%s' % self.published_exp_id_1,
{}, csrf_token=csrf_token)
self.logout()
def test_voiceover_admin_can_remove_voice_artist_from_public_exp(self):
self.login(self.VOICEOVER_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.delete_json(
'/mock/exploration/%s' % self.published_exp_id_1, {})
self.logout()
def test_adding_voice_artist_to_unsupported_entity_type_raises_400(self):
unsupported_entity_type = 'topic'
self.login(self.VOICEOVER_ADMIN_EMAIL)
csrf_token = self.get_new_csrf_token()
with self.swap(self, 'testapp', self.mock_testapp):
response = self.post_json(
'/mock/%s/abc' % unsupported_entity_type,
{}, csrf_token=csrf_token, expected_status_int=400)
self.assertEqual(
response['error'],
'Unsupported entity_type: topic')
self.logout()
def test_removing_voice_artist_from_unsupported_entity_type_raises_400(
self
):
unsupported_entity_type = 'topic'
self.login(self.VOICEOVER_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.delete_json(
'/mock/%s/abc' % unsupported_entity_type,
{}, expected_status_int=400
)
self.assertEqual(
response['error'],
'Unsupported entity_type: topic')
self.logout()
def test_voiceover_admin_cannot_add_voice_artist_to_private_exp(self):
self.login(self.VOICEOVER_ADMIN_EMAIL)
csrf_token = self.get_new_csrf_token()
with self.swap(self, 'testapp', self.mock_testapp):
response = self.post_json(
'/mock/exploration/%s' % self.private_exp_id_1, {},
csrf_token=csrf_token, expected_status_int=400
)
self.assertEqual(
response['error'],
'Could not assign voice artist to private activity.')
self.logout()
def test_voiceover_admin_can_remove_voice_artist_from_private_exp(self):
self.login(self.VOICEOVER_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.delete_json('/mock/exploration/%s' % self.private_exp_id_1, {})
self.logout()
def test_owner_cannot_add_voice_artist_to_public_exp(self):
self.login(self.OWNER_EMAIL)
csrf_token = self.get_new_csrf_token()
with self.swap(self, 'testapp', self.mock_testapp):
response = self.post_json(
'/mock/exploration/%s' % self.published_exp_id_1, {},
csrf_token=csrf_token, expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to manage voice artists.')
self.logout()
def test_owner_cannot_remove_voice_artist_in_public_exp(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.delete_json(
'/mock/exploration/%s' % self.private_exp_id_1, {},
expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to manage voice artists.')
self.logout()
def test_random_user_cannot_add_voice_artist_to_public_exp(self):
self.login(self.user_email)
csrf_token = self.get_new_csrf_token()
with self.swap(self, 'testapp', self.mock_testapp):
response = self.post_json(
'/mock/exploration/%s' % self.published_exp_id_1, {},
csrf_token=csrf_token, expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to manage voice artists.')
self.logout()
def test_random_user_cannot_remove_voice_artist_from_public_exp(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.delete_json(
'/mock/exploration/%s' % self.published_exp_id_1, {},
expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to manage voice artists.')
self.logout()
def test_voiceover_admin_cannot_add_voice_artist_to_invalid_exp(self):
self.login(self.VOICEOVER_ADMIN_EMAIL)
csrf_token = self.get_new_csrf_token()
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/mock/exploration/invalid_exp_id', {},
csrf_token=csrf_token, expected_status_int=404)
self.logout()
def test_voiceover_admin_cannot_remove_voice_artist_to_invalid_exp(self):
self.login(self.VOICEOVER_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.delete_json(
'/mock/exploration/invalid_exp_id', {},
expected_status_int=404)
self.logout()
def test_voiceover_admin_cannot_add_voice_artist_without_login(self):
csrf_token = self.get_new_csrf_token()
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/mock/exploration/%s' % self.private_exp_id_1, {},
csrf_token=csrf_token, expected_status_int=401)
def test_voiceover_admin_cannot_remove_voice_artist_without_login(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.delete_json(
'/mock/exploration/%s' % self.private_exp_id_1, {},
expected_status_int=401)
class EditExplorationTests(test_utils.GenericTestBase):
"""Tests for can_edit_exploration decorator."""
username = 'banneduser'
user_email = 'user@example.com'
published_exp_id = 'exp_0'
private_exp_id = 'exp_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_edit_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(EditExplorationTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.username)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_edit_exploration/<exploration_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_edit_exploration_with_invalid_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_exploration/invalid_exp_id',
expected_status_int=404)
self.logout()
def test_banned_user_cannot_edit_exploration(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_exploration/%s' % self.private_exp_id,
expected_status_int=401)
self.logout()
def test_owner_can_edit_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_moderator_can_edit_public_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_exploration/%s' % self.published_exp_id)
self.assertEqual(response['exploration_id'], self.published_exp_id)
self.logout()
def test_moderator_can_edit_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_admin_can_edit_private_exploration(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_guest_cannot_cannot_edit_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_exploration/%s' % self.private_exp_id,
expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class ManageOwnAccountTests(test_utils.GenericTestBase):
"""Tests for decorator can_manage_own_account."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_manage_own_account
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(ManageOwnAccountTests, self).setUp()
self.signup(self.banned_user_email, self.banned_user)
self.signup(self.user_email, self.username)
self.mark_user_banned(self.banned_user)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_update_preferences(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
self.logout()
def test_normal_user_can_manage_preferences(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertEqual(response['success'], 1)
self.logout()
def test_guest_cannot_update_preferences(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class AccessAdminPageTests(test_utils.GenericTestBase):
"""Tests for decorator can_access_admin_page."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_admin_page
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(AccessAdminPageTests, self).setUp()
self.signup(self.banned_user_email, self.banned_user)
self.signup(self.user_email, self.username)
self.mark_user_banned(self.banned_user)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_access_admin_page(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/', expected_status_int=401)
self.logout()
def test_normal_user_cannot_access_admin_page(self):
self.login(self.user_email)
user_id = user_services.get_user_id_from_username(self.username)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = '%s is not a super admin of this application' % user_id
self.assertEqual(response['error'], error_msg)
self.logout()
def test_super_admin_can_access_admin_page(self):
self.login(self.user_email, is_super_admin=True)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertEqual(response['success'], 1)
self.logout()
def test_guest_cannot_access_admin_page(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class AccessContributorDashboardAdminPageTests(test_utils.GenericTestBase):
"""Tests for decorator can_access_contributor_dashboard_admin_page."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
username = 'user'
user_email = 'user@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_contributor_dashboard_admin_page
def get(self):
return self.render_json({'success': 1})
def setUp(self):
super(AccessContributorDashboardAdminPageTests, self).setUp()
self.signup(self.banned_user_email, self.banned_user)
self.signup(self.user_email, self.username)
self.mark_user_banned(self.banned_user)
self.user = user_services.get_user_actions_info(
user_services.get_user_id_from_username(self.username))
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_access_contributor_dashboard_admin_page(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = (
'You do not have credentials to access contributor dashboard '
'admin page.'
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_question_admin_can_access_contributor_dashboard_admin_page(self):
self.add_user_role(
self.username, feconf.ROLE_ID_QUESTION_ADMIN)
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertEqual(response['success'], 1)
self.logout()
def test_guest_cannot_access_contributor_dashboard_admin_page(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
def test_normal_user_cannot_access_contributor_dashboard_admin_page(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = (
'You do not have credentials to access contributor dashboard '
'admin page.'
)
self.assertEqual(response['error'], error_msg)
self.logout()
class UploadExplorationTests(test_utils.GenericTestBase):
"""Tests for can_upload_exploration decorator."""
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_upload_exploration
def get(self):
return self.render_json({})
def setUp(self):
super(UploadExplorationTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.EDITOR_EMAIL, self.EDITOR_USERNAME)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_upload_exploration/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_super_admin_can_upload_explorations(self):
self.login(self.CURRICULUM_ADMIN_EMAIL, is_super_admin=True)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_upload_exploration/')
self.logout()
def test_normal_user_cannot_upload_explorations(self):
self.login(self.EDITOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_upload_exploration/', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to upload explorations.')
self.logout()
def test_guest_cannot_upload_explorations(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_upload_exploration/', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
class DeleteExplorationTests(test_utils.GenericTestBase):
"""Tests for can_delete_exploration decorator."""
private_exp_id = 'exp_0'
published_exp_id = 'exp_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_delete_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(DeleteExplorationTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.set_moderators([self.MODERATOR_USERNAME])
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.moderator_id = self.get_user_id_from_email(self.MODERATOR_EMAIL)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_delete_exploration/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_guest_cannot_delete_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_exploration/%s' % self.private_exp_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
def test_owner_can_delete_owned_private_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_moderator_can_delete_published_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_exploration/%s' % self.published_exp_id)
self.assertEqual(response['exploration_id'], self.published_exp_id)
self.logout()
def test_owner_cannot_delete_published_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_exploration/%s' % self.published_exp_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'User %s does not have permissions to delete exploration %s'
% (self.owner_id, self.published_exp_id))
self.logout()
def test_moderator_can_delete_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
class SuggestChangesToExplorationTests(test_utils.GenericTestBase):
"""Tests for can_suggest_changes_to_exploration decorator."""
username = 'user'
user_email = 'user@example.com'
banned_username = 'banneduser'
banned_user_email = 'banned@example.com'
exploration_id = 'exp_id'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_suggest_changes_to_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(SuggestChangesToExplorationTests, self).setUp()
self.signup(self.user_email, self.username)
self.signup(self.banned_user_email, self.banned_username)
self.mark_user_banned(self.banned_username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_suggest_changes(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.exploration_id, expected_status_int=401)
self.logout()
def test_normal_user_can_suggest_changes(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.exploration_id)
self.assertEqual(response['exploration_id'], self.exploration_id)
self.logout()
class SuggestChangesDecoratorsTests(test_utils.GenericTestBase):
"""Tests for can_suggest_changes decorator."""
username = 'user'
user_email = 'user@example.com'
banned_username = 'banneduser'
banned_user_email = 'banned@example.com'
exploration_id = 'exp_id'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_suggest_changes
def get(self):
self.render_json({})
def setUp(self):
super(SuggestChangesDecoratorsTests, self).setUp()
self.signup(self.user_email, self.username)
self.signup(self.banned_user_email, self.banned_username)
self.mark_user_banned(self.banned_username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_suggest_changes(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock', expected_status_int=401)
self.logout()
def test_normal_user_can_suggest_changes(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock')
self.logout()
class ResubmitSuggestionDecoratorsTests(test_utils.GenericTestBase):
"""Tests for can_resubmit_suggestion decorator."""
owner_username = 'owner'
owner_email = 'owner@example.com'
author_username = 'author'
author_email = 'author@example.com'
username = 'user'
user_email = 'user@example.com'
TARGET_TYPE = 'exploration'
SUGGESTION_TYPE = 'edit_exploration_state_content'
exploration_id = 'exp_id'
target_version_id = 1
change_dict = {
'cmd': 'edit_state_property',
'property_name': 'content',
'state_name': 'Introduction',
'new_value': ''
}
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'suggestion_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_resubmit_suggestion
def get(self, suggestion_id):
self.render_json({'suggestion_id': suggestion_id})
def setUp(self):
super(ResubmitSuggestionDecoratorsTests, self).setUp()
self.signup(self.author_email, self.author_username)
self.signup(self.user_email, self.username)
self.signup(self.owner_email, self.owner_username)
self.author_id = self.get_user_id_from_email(self.author_email)
self.owner_id = self.get_user_id_from_email(self.owner_email)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<suggestion_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_default_exploration(self.exploration_id, self.owner_id)
suggestion_services.create_suggestion(
self.SUGGESTION_TYPE, self.TARGET_TYPE,
self.exploration_id, self.target_version_id,
self.author_id,
self.change_dict, '')
suggestion = suggestion_services.query_suggestions(
[('author_id', self.author_id),
('target_id', self.exploration_id)])[0]
self.suggestion_id = suggestion.suggestion_id
def test_author_can_resubmit_suggestion(self):
self.login(self.author_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.suggestion_id)
self.assertEqual(response['suggestion_id'], self.suggestion_id)
self.logout()
def test_non_author_cannot_resubmit_suggestion(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.suggestion_id, expected_status_int=401)
self.logout()
def test_error_with_invalid_suggestion_id(self):
invalid_id = 'invalid'
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % invalid_id, expected_status_int=400)
error_msg = 'No suggestion found with given suggestion id'
self.assertEqual(response['error'], error_msg)
self.logout()
class DecoratorForAcceptingSuggestionTests(test_utils.GenericTestBase):
"""Tests for get_decorator_for_accepting_suggestion decorator."""
AUTHOR_USERNAME = 'author'
AUTHOR_EMAIL = 'author@example.com'
VIEWER_USERNAME = 'user'
VIEWER_EMAIL = 'user@example.com'
TARGET_TYPE = feconf.ENTITY_TYPE_EXPLORATION
SUGGESTION_TYPE_1 = feconf.SUGGESTION_TYPE_EDIT_STATE_CONTENT
SUGGESTION_TYPE_2 = feconf.SUGGESTION_TYPE_TRANSLATE_CONTENT
SUGGESTION_TYPE_3 = feconf.SUGGESTION_TYPE_ADD_QUESTION
EXPLORATION_ID = 'exp_id'
SKILL_ID = 'skill_id'
TARGET_VERSION_ID = 1
CHANGE_DICT_1 = {
'cmd': 'edit_state_property',
'property_name': 'content',
'state_name': 'Introduction',
'new_value': ''
}
CHANGE_DICT_2 = {
'cmd': 'add_translation',
'state_name': 'Introduction',
'language_code': constants.DEFAULT_LANGUAGE_CODE,
'content_id': feconf.DEFAULT_NEW_STATE_CONTENT_ID,
'content_html': '',
'translation_html': ''
}
CHANGE_DICT_3 = {
'cmd': question_domain.CMD_CREATE_NEW_FULLY_SPECIFIED_QUESTION,
'question_dict': {
'question_state_data': {},
'language_code': 'en',
'question_state_data_schema_version': (
feconf.CURRENT_STATE_SCHEMA_VERSION),
'linked_skill_ids': ['skill_1'],
'inapplicable_skill_misconception_ids': ['skillid12345-1']
},
'skill_id': SKILL_ID,
'skill_difficulty': 0.3
}
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'suggestion_id': {
'schema': {
'type': 'basestring'
}
},
'target_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.get_decorator_for_accepting_suggestion(
acl_decorators.open_access)
def get(self, target_id, suggestion_id):
self.render_json({
'target_id': target_id,
'suggestion_id': suggestion_id
})
def setUp(self):
super(DecoratorForAcceptingSuggestionTests, self).setUp()
self.signup(self.AUTHOR_EMAIL, self.AUTHOR_USERNAME)
self.signup(self.VIEWER_EMAIL, self.VIEWER_USERNAME)
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.EDITOR_EMAIL, self.EDITOR_USERNAME)
self.signup(
self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.author_id = self.get_user_id_from_email(self.AUTHOR_EMAIL)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_accept_suggestion/<target_id>/<suggestion_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_default_exploration(self.EXPLORATION_ID, self.owner_id)
rights_manager.publish_exploration(self.owner, self.EXPLORATION_ID)
self.save_new_skill(self.SKILL_ID, self.author_id)
self.CHANGE_DICT_3['question_dict']['question_state_data'] = (
self._create_valid_question_data('default_state').to_dict())
self.suggestion_1 = suggestion_services.create_suggestion(
self.SUGGESTION_TYPE_1, self.TARGET_TYPE,
self.EXPLORATION_ID, self.TARGET_VERSION_ID,
self.author_id,
self.CHANGE_DICT_1, '')
self.suggestion_2 = suggestion_services.create_suggestion(
self.SUGGESTION_TYPE_2, self.TARGET_TYPE,
self.EXPLORATION_ID, self.TARGET_VERSION_ID,
self.author_id,
self.CHANGE_DICT_2, '')
self.suggestion_3 = suggestion_services.create_suggestion(
self.SUGGESTION_TYPE_3, self.TARGET_TYPE,
self.EXPLORATION_ID, self.TARGET_VERSION_ID,
self.author_id,
self.CHANGE_DICT_3, '')
self.suggestion_id_1 = self.suggestion_1.suggestion_id
self.suggestion_id_2 = self.suggestion_2.suggestion_id
self.suggestion_id_3 = self.suggestion_3.suggestion_id
def test_guest_cannot_accept_suggestion(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, self.suggestion_id_1),
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
def test_owner_can_accept_suggestion(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, self.suggestion_id_1))
self.assertEqual(response['suggestion_id'], self.suggestion_id_1)
self.assertEqual(response['target_id'], self.EXPLORATION_ID)
self.logout()
def test_user_with_review_rights_can_accept_suggestion(self):
self.login(self.EDITOR_EMAIL)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
review_swap = self.swap_to_always_return(
suggestion_services, 'can_user_review_category', value=True)
with testapp_swap, review_swap:
response = self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, self.suggestion_id_1))
self.assertEqual(response['suggestion_id'], self.suggestion_id_1)
self.assertEqual(response['target_id'], self.EXPLORATION_ID)
self.logout()
def test_user_with_review_rights_can_accept_translation_suggestion(self):
self.login(self.EDITOR_EMAIL)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
translation_review_swap = self.swap_to_always_return(
user_services, 'can_review_translation_suggestions', value=True)
with testapp_swap, translation_review_swap:
response = self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, self.suggestion_id_2))
self.assertEqual(response['suggestion_id'], self.suggestion_id_2)
self.assertEqual(response['target_id'], self.EXPLORATION_ID)
self.logout()
def test_user_with_review_rights_can_accept_question_suggestion(self):
self.login(self.EDITOR_EMAIL)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
question_review_swap = self.swap_to_always_return(
user_services, 'can_review_question_suggestions', value=True)
with testapp_swap, question_review_swap:
response = self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, self.suggestion_id_3))
self.assertEqual(response['suggestion_id'], self.suggestion_id_3)
self.assertEqual(response['target_id'], self.EXPLORATION_ID)
self.logout()
def test_curriculum_admin_can_accept_suggestions(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, self.suggestion_id_1))
self.assertEqual(response['suggestion_id'], self.suggestion_id_1)
self.assertEqual(response['target_id'], self.EXPLORATION_ID)
self.logout()
def test_error_when_format_of_suggestion_id_is_invalid(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, 'invalid_suggestion_id'),
expected_status_int=400)
error_msg = (
'Invalid format for suggestion_id.'
' It must contain 3 parts separated by \'.\''
)
self.assertEqual(response['error'], error_msg)
def test_page_not_found_exception_when_suggestion_id_is_invalid(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_accept_suggestion/%s/%s'
% (self.EXPLORATION_ID, 'invalid.suggestion.id'),
expected_status_int=404)
class ViewReviewableSuggestionsTests(test_utils.GenericTestBase):
"""Tests for can_view_reviewable_suggestions decorator."""
TARGET_TYPE = feconf.ENTITY_TYPE_EXPLORATION
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'target_type': {
'schema': {
'type': 'basestring'
}
},
'suggestion_type': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_view_reviewable_suggestions
def get(self, target_type, suggestion_type):
self.render_json({
'target_type': target_type,
'suggestion_type': suggestion_type
})
def setUp(self):
super(ViewReviewableSuggestionsTests, self).setUp()
self.signup(self.VIEWER_EMAIL, self.VIEWER_USERNAME)
self.signup(
self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_review_suggestion/<target_type>/<suggestion_type>',
self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_review_suggestion(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_review_suggestion/%s/%s' % (
self.TARGET_TYPE, feconf.SUGGESTION_TYPE_ADD_QUESTION),
expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
def test_error_when_suggestion_type_is_invalid(self):
self.login(self.VIEWER_EMAIL)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
with testapp_swap:
response = self.get_json(
'/mock_review_suggestion/%s/%s' % (
self.TARGET_TYPE, 'invalid'),
expected_status_int=404)
error_msg = (
'Could not find the page http://localhost/'
'mock_review_suggestion/%s/%s.' % (self.TARGET_TYPE, 'invalid')
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_user_with_review_rights_can_review_translation_suggestions(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
translation_review_swap = self.swap_to_always_return(
user_services, 'can_review_translation_suggestions', value=True)
with testapp_swap, translation_review_swap:
response = self.get_json(
'/mock_review_suggestion/%s/%s' % (
self.TARGET_TYPE, feconf.SUGGESTION_TYPE_TRANSLATE_CONTENT))
self.assertEqual(response['target_type'], self.TARGET_TYPE)
self.assertEqual(
response['suggestion_type'],
feconf.SUGGESTION_TYPE_TRANSLATE_CONTENT
)
self.logout()
def test_user_with_review_rights_can_review_question_suggestions(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
question_review_swap = self.swap_to_always_return(
user_services, 'can_review_question_suggestions', value=True)
with testapp_swap, question_review_swap:
response = self.get_json(
'/mock_review_suggestion/%s/%s' % (
self.TARGET_TYPE, feconf.SUGGESTION_TYPE_ADD_QUESTION))
self.assertEqual(response['target_type'], self.TARGET_TYPE)
self.assertEqual(
response['suggestion_type'],
feconf.SUGGESTION_TYPE_ADD_QUESTION
)
self.logout()
class PublishExplorationTests(test_utils.GenericTestBase):
"""Tests for can_publish_exploration decorator."""
private_exp_id = 'exp_0'
public_exp_id = 'exp_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_publish_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(PublishExplorationTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_publish_exploration/<exploration_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.public_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.public_exp_id)
def test_cannot_publish_exploration_with_invalid_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_publish_exploration/invalid_exp_id',
expected_status_int=404)
self.logout()
def test_owner_can_publish_owned_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_publish_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_already_published_exploration_cannot_be_published(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_publish_exploration/%s' % self.public_exp_id,
expected_status_int=401)
self.logout()
def test_moderator_cannot_publish_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_publish_exploration/%s' % self.private_exp_id,
expected_status_int=401)
self.logout()
def test_admin_can_publish_any_exploration(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_publish_exploration/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
class ModifyExplorationRolesTests(test_utils.GenericTestBase):
"""Tests for can_modify_exploration_roles decorator."""
private_exp_id = 'exp_0'
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_modify_exploration_roles
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(ModifyExplorationRolesTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.banned_user_email, self.banned_user)
self.mark_user_banned(self.banned_user)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
def test_banned_user_cannot_modify_exploration_roles(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.private_exp_id, expected_status_int=401)
error_msg = (
'You do not have credentials to change rights '
'for this exploration.'
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_owner_can_modify_exploration_roles(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
def test_moderator_can_modify_roles_of_unowned_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock/%s' % self.private_exp_id)
self.logout()
def test_admin_can_modify_roles_of_any_exploration(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id)
self.assertEqual(response['exploration_id'], self.private_exp_id)
self.logout()
class CollectionPublishStatusTests(test_utils.GenericTestBase):
"""Tests can_publish_collection and can_unpublish_collection decorators."""
user_email = 'user@example.com'
username = 'user'
published_exp_id = 'exp_id_1'
private_exp_id = 'exp_id_2'
published_col_id = 'col_id_1'
private_col_id = 'col_id_2'
class MockPublishHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'collection_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_publish_collection
def get(self, collection_id):
return self.render_json({'collection_id': collection_id})
class MockUnpublishHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'collection_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_unpublish_collection
def get(self, collection_id):
return self.render_json({'collection_id': collection_id})
def setUp(self):
super(CollectionPublishStatusTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.set_moderators([self.MODERATOR_USERNAME])
self.set_collection_editors([self.OWNER_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[
webapp2.Route(
'/mock_publish_collection/<collection_id>',
self.MockPublishHandler),
webapp2.Route(
'/mock_unpublish_collection/<collection_id>',
self.MockUnpublishHandler)
],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
self.save_new_valid_collection(
self.published_col_id, self.owner_id,
exploration_id=self.published_col_id)
self.save_new_valid_collection(
self.private_col_id, self.owner_id,
exploration_id=self.private_col_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
rights_manager.publish_collection(self.owner, self.published_col_id)
def test_cannot_publish_collection_with_invalid_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_publish_collection/invalid_col_id',
expected_status_int=404)
self.logout()
def test_cannot_unpublish_collection_with_invalid_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_unpublish_collection/invalid_col_id',
expected_status_int=404)
self.logout()
def test_owner_can_publish_collection(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_publish_collection/%s' % self.private_col_id)
self.assertEqual(response['collection_id'], self.private_col_id)
self.logout()
def test_owner_cannot_unpublish_public_collection(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_unpublish_collection/%s' % self.published_col_id,
expected_status_int=401)
self.logout()
def test_moderator_can_unpublish_public_collection(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_unpublish_collection/%s' % self.published_col_id)
self.assertEqual(response['collection_id'], self.published_col_id)
self.logout()
def test_admin_can_publish_any_collection(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_publish_collection/%s' % self.private_col_id)
self.assertEqual(response['collection_id'], self.private_col_id)
self.logout()
def test_admin_cannot_publish_already_published_collection(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_publish_collection/%s' % self.published_col_id,
expected_status_int=401)
self.logout()
class AccessLearnerDashboardDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_access_learner_dashboard."""
user = 'user'
user_email = 'user@example.com'
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_learner_dashboard
def get(self):
return self.render_json({'success': True})
def setUp(self):
super(AccessLearnerDashboardDecoratorTests, self).setUp()
self.signup(self.user_email, self.user)
self.signup(self.banned_user_email, self.banned_user)
self.mark_user_banned(self.banned_user)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_banned_user_cannot_access_learner_dashboard(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You do not have the credentials to access this page.'
self.assertEqual(response['error'], error_msg)
self.logout()
def test_exploration_editor_can_access_learner_dashboard(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/')
self.assertTrue(response['success'])
self.logout()
def test_guest_user_cannot_access_learner_dashboard(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class EditTopicDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_edit_topic."""
manager_username = 'topicmanager'
manager_email = 'topicmanager@example.com'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
topic_id = 'topic_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_edit_topic
def get(self, topic_id):
self.render_json({'topic_id': topic_id})
def setUp(self):
super(EditTopicDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.manager_email, self.manager_username)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.viewer_id = self.get_user_id_from_email(self.viewer_email)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_edit_topic/<topic_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.viewer_id)
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
self.set_topic_managers([self.manager_username], self.topic_id)
def test_cannot_edit_topic_with_invalid_topic_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_topic/invalid_topic_id', expected_status_int=404)
self.logout()
def test_admin_can_edit_topic(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_topic/%s' % self.topic_id)
self.assertEqual(response['topic_id'], self.topic_id)
self.logout()
def test_topic_manager_can_edit_topic(self):
self.login(self.manager_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_topic/%s' % self.topic_id)
self.assertEqual(response['topic_id'], self.topic_id)
self.logout()
def test_normal_user_cannot_edit_topic(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_topic/%s' % self.topic_id, expected_status_int=401)
self.logout()
def test_guest_user_cannot_edit_topic(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_topic/%s' % self.topic_id, expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class DeleteTopicDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_delete_topic."""
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
topic_id = 'topic_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_delete_topic
def get(self, topic_id):
self.render_json({'topic_id': topic_id})
def setUp(self):
super(DeleteTopicDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.viewer_id = self.get_user_id_from_email(self.viewer_email)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_delete_topic/<topic_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.viewer_id)
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
def test_cannot_delete_topic_with_invalid_topic_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_delete_topic/invalid_topic_id', expected_status_int=404)
self.logout()
def test_admin_can_delete_topic(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_delete_topic/%s' % self.topic_id)
self.assertEqual(response['topic_id'], self.topic_id)
self.logout()
def test_normal_user_cannot_delete_topic(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_topic/%s' % self.topic_id,
expected_status_int=401)
error_msg = (
'%s does not have enough rights to delete the'
' topic.' % self.viewer_id
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_guest_user_cannot_delete_topic(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_topic/%s' % self.topic_id,
expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class ViewAnyTopicEditorDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_view_any_topic_editor."""
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
topic_id = 'topic_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_view_any_topic_editor
def get(self, topic_id):
self.render_json({'topic_id': topic_id})
def setUp(self):
super(ViewAnyTopicEditorDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.viewer_id = self.get_user_id_from_email(self.viewer_email)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_view_topic_editor/<topic_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.viewer_id)
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
def test_cannot_delete_topic_with_invalid_topic_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_view_topic_editor/invalid_topic_id',
expected_status_int=404)
self.logout()
def test_admin_can_view_topic_editor(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_view_topic_editor/%s' % (
self.topic_id))
self.assertEqual(response['topic_id'], self.topic_id)
self.logout()
def test_normal_user_cannot_view_topic_editor(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_topic_editor/%s' % self.topic_id,
expected_status_int=401)
error_msg = (
'%s does not have enough rights to view any'
' topic editor.' % self.viewer_id
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_guest_user_cannot_view_topic_editor(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_topic_editor/%s' % self.topic_id,
expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class EditStoryDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_edit_story."""
manager_username = 'topicmanager'
manager_email = 'topicmanager@example.com'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'story_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_edit_story
def get(self, story_id):
self.render_json({'story_id': story_id})
def setUp(self):
super(EditStoryDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_edit_story/<story_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.story_id = story_services.get_new_story_id()
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_story(self.story_id, self.admin_id, self.topic_id)
self.topic = self.save_new_topic(
self.topic_id, self.admin_id, canonical_story_ids=[self.story_id])
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
def test_cannot_edit_story_with_invalid_story_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_story/story_id_new', expected_status_int=404)
self.logout()
def test_cannot_edit_story_with_invalid_topic_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
story_id = story_services.get_new_story_id()
topic_id = topic_fetchers.get_new_topic_id()
self.save_new_story(story_id, self.admin_id, topic_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_story/%s' % story_id, expected_status_int=404)
self.logout()
def test_cannot_edit_story_with_invalid_canonical_story_ids(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
canonical_story_ids_swap = self.swap_to_always_return(
topic_domain.Topic, 'get_canonical_story_ids', value=[])
with testapp_swap, canonical_story_ids_swap:
response = self.get_json(
'/mock_edit_story/%s' % self.story_id, expected_status_int=404)
error_msg = (
'Could not find the page http://localhost/mock_edit_story/%s.' % (
self.story_id)
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_admin_can_edit_story(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_story/%s' % self.story_id)
self.assertEqual(response['story_id'], self.story_id)
self.logout()
def test_topic_manager_can_edit_story(self):
self.signup(self.manager_email, self.manager_username)
self.set_topic_managers([self.manager_username], self.topic_id)
self.login(self.manager_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_story/%s' % self.story_id)
self.assertEqual(response['story_id'], self.story_id)
self.logout()
def test_normal_user_cannot_edit_story(self):
self.signup(self.viewer_email, self.viewer_username)
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_story/%s' % self.story_id, expected_status_int=401)
self.logout()
def test_guest_user_cannot_edit_story(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_story/%s' % self.story_id, expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class DeleteStoryDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_delete_story."""
manager_username = 'topicmanager'
manager_email = 'topicmanager@example.com'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'story_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_delete_story
def get(self, story_id):
self.render_json({'story_id': story_id})
def setUp(self):
super(DeleteStoryDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_delete_story/<story_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.story_id = story_services.get_new_story_id()
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_story(self.story_id, self.admin_id, self.topic_id)
self.topic = self.save_new_topic(
self.topic_id, self.admin_id, canonical_story_ids=[self.story_id])
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
def test_cannot_delete_story_with_invalid_story_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_delete_story/story_id_new', expected_status_int=404)
self.logout()
def test_cannot_delete_story_with_invalid_topic_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
story_id = story_services.get_new_story_id()
topic_id = topic_fetchers.get_new_topic_id()
self.save_new_story(story_id, self.admin_id, topic_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_delete_story/%s' % story_id, expected_status_int=404)
self.logout()
def test_admin_can_delete_story(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_delete_story/%s' % self.story_id)
self.assertEqual(response['story_id'], self.story_id)
self.logout()
def test_topic_manager_can_delete_story(self):
self.signup(self.manager_email, self.manager_username)
self.set_topic_managers([self.manager_username], self.topic_id)
self.login(self.manager_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_delete_story/%s' % self.story_id)
self.assertEqual(response['story_id'], self.story_id)
self.logout()
def test_normal_user_cannot_delete_story(self):
self.signup(self.viewer_email, self.viewer_username)
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_story/%s' % self.story_id,
expected_status_int=401)
error_msg = 'You do not have credentials to delete this story.'
self.assertEqual(response['error'], error_msg)
self.logout()
def test_guest_user_cannot_delete_story(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_story/%s' % self.story_id,
expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class AccessTopicsAndSkillsDashboardDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_access_topics_and_skills_dashboard."""
manager_username = 'topicmanager'
manager_email = 'topicmanager@example.com'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
topic_id = 'topic_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_topics_and_skills_dashboard
def get(self):
self.render_json({'success': True})
def setUp(self):
super(AccessTopicsAndSkillsDashboardDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.manager_email, self.manager_username)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.viewer_id = self.get_user_id_from_email(self.viewer_email)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_access_dashboard/', self.MockHandler)],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.viewer_id)
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
self.set_topic_managers([self.manager_username], self.topic_id)
def test_admin_can_access_dashboard(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_access_dashboard/')
self.assertTrue(response['success'])
self.logout()
def test_topic_manager_can_access_dashboard(self):
self.login(self.manager_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_access_dashboard/')
self.assertTrue(response['success'])
self.logout()
def test_normal_user_cannot_access_dashboard(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_access_dashboard/', expected_status_int=401)
error_msg = (
'%s does not have enough rights to access the topics and skills'
' dashboard.' % self.viewer_id
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_guest_user_cannot_access_dashboard(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_access_dashboard/', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class AddStoryToTopicTests(test_utils.GenericTestBase):
"""Tests for decorator can_add_new_story_to_topic."""
manager_username = 'topicmanager'
manager_email = 'topicmanager@example.com'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
topic_id = 'topic_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_add_new_story_to_topic
def get(self, topic_id):
self.render_json({'topic_id': topic_id})
def setUp(self):
super(AddStoryToTopicTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.manager_email, self.manager_username)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.viewer_id = self.get_user_id_from_email(self.viewer_email)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_add_story_to_topic/<topic_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.viewer_id)
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
self.set_topic_managers([self.manager_username], self.topic_id)
def test_cannot_add_story_to_topic_with_invalid_topic_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_add_story_to_topic/invalid_topic_id',
expected_status_int=404)
self.logout()
def test_admin_can_add_story_to_topic(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_add_story_to_topic/%s' % self.topic_id)
self.assertEqual(response['topic_id'], self.topic_id)
self.logout()
def test_topic_manager_cannot_add_story_to_topic_with_invalid_topic_id(
self):
self.login(self.manager_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_add_story_to_topic/incorrect_id',
expected_status_int=404)
self.logout()
def test_topic_manager_can_add_story_to_topic(self):
self.login(self.manager_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_add_story_to_topic/%s' % self.topic_id)
self.assertEqual(response['topic_id'], self.topic_id)
self.logout()
def test_normal_user_cannot_add_story_to_topic(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_add_story_to_topic/%s' % self.topic_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to add a story to this topic.')
self.logout()
def test_guest_cannot_add_story_to_topic(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_add_story_to_topic/%s' % self.topic_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
class StoryViewerTests(test_utils.GenericTestBase):
"""Tests for decorator can_access_story_viewer_page."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockDataHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'story_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_story_viewer_page
def get(self, story_url_fragment):
self.render_json({'story_url_fragment': story_url_fragment})
class MockPageHandler(base.BaseHandler):
URL_PATH_ARGS_SCHEMAS = {
'topic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'story_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_story_viewer_page
def get(self, _):
self.render_template('oppia-root.mainpage.html')
def setUp(self):
super(StoryViewerTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.admin = user_services.get_user_actions_info(self.admin_id)
self.signup(self.banned_user_email, self.banned_user)
self.mark_user_banned(self.banned_user)
story_data_url = (
'/mock_story_data/<classroom_url_fragment>/'
'<topic_url_fragment>/<story_url_fragment>')
story_page_url = (
'/mock_story_page/<classroom_url_fragment>/'
'<topic_url_fragment>/story/<story_url_fragment>')
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[
webapp2.Route(story_data_url, self.MockDataHandler),
webapp2.Route(story_page_url, self.MockPageHandler)
],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
self.story_id = story_services.get_new_story_id()
self.story_url_fragment = 'story-frag'
self.save_new_story(
self.story_id, self.admin_id, self.topic_id,
url_fragment=self.story_url_fragment)
subtopic_1 = topic_domain.Subtopic.create_default_subtopic(
1, 'Subtopic Title 1')
subtopic_1.skill_ids = ['skill_id_1']
subtopic_1.url_fragment = 'sub-one-frag'
self.save_new_topic(
self.topic_id, self.admin_id, name='Name',
description='Description', canonical_story_ids=[self.story_id],
additional_story_ids=[], uncategorized_skill_ids=[],
subtopics=[subtopic_1], next_subtopic_id=2)
def test_cannot_access_non_existent_story(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_story_data/staging/topic/non-existent-frag',
expected_status_int=404)
def test_cannot_access_story_when_topic_is_not_published(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_story_data/staging/topic/%s'
% self.story_url_fragment,
expected_status_int=404)
def test_cannot_access_story_when_story_is_not_published(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_story_data/staging/topic/%s'
% self.story_url_fragment,
expected_status_int=404)
def test_can_access_story_when_story_and_topic_are_published(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
topic_services.publish_story(
self.topic_id, self.story_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_story_data/staging/topic/%s'
% self.story_url_fragment,
expected_status_int=200)
def test_can_access_story_when_all_url_fragments_are_valid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
topic_services.publish_story(
self.topic_id, self.story_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_html_response(
'/mock_story_page/staging/topic/story/%s'
% self.story_url_fragment,
expected_status_int=200)
def test_redirect_to_story_page_if_story_url_fragment_is_invalid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
topic_services.publish_story(
self.topic_id, self.story_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_story_page/staging/topic/story/000',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic/story',
response.headers['location'])
def test_redirect_to_correct_url_if_abbreviated_topic_is_invalid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
topic_services.publish_story(
self.topic_id, self.story_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_story_page/staging/invalid-topic/story/%s'
% self.story_url_fragment,
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic/story/%s'
% self.story_url_fragment,
response.headers['location'])
def test_redirect_with_correct_classroom_name_in_url(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
topic_services.publish_story(
self.topic_id, self.story_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_story_page/math/topic/story/%s'
% self.story_url_fragment,
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic/story/%s'
% self.story_url_fragment,
response.headers['location'])
def test_redirect_lowercase_story_url_fragment(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
topic_services.publish_story(
self.topic_id, self.story_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_story_page/staging/topic/story/Story-frag',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic/story/story-frag',
response.headers['location'])
class SubtopicViewerTests(test_utils.GenericTestBase):
"""Tests for decorator can_access_subtopic_viewer_page."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockDataHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'subtopic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_subtopic_viewer_page
def get(self, unused_topic_url_fragment, subtopic_url_fragment):
self.render_json({'subtopic_url_fragment': subtopic_url_fragment})
class MockPageHandler(base.BaseHandler):
URL_PATH_ARGS_SCHEMAS = {
'topic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'subtopic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_subtopic_viewer_page
def get(self, unused_topic_url_fragment, unused_subtopic_url_fragment):
self.render_template('subtopic-viewer-page.mainpage.html')
def setUp(self):
super(SubtopicViewerTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.admin = user_services.get_user_actions_info(self.admin_id)
self.signup(self.banned_user_email, self.banned_user)
self.mark_user_banned(self.banned_user)
subtopic_data_url = (
'/mock_subtopic_data/<classroom_url_fragment>/'
'<topic_url_fragment>/<subtopic_url_fragment>')
subtopic_page_url = (
'/mock_subtopic_page/<classroom_url_fragment>/'
'<topic_url_fragment>/revision/<subtopic_url_fragment>')
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[
webapp2.Route(subtopic_data_url, self.MockDataHandler),
webapp2.Route(subtopic_page_url, self.MockPageHandler)
],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
subtopic_1 = topic_domain.Subtopic.create_default_subtopic(
1, 'Subtopic Title 1')
subtopic_1.skill_ids = ['skill_id_1']
subtopic_1.url_fragment = 'sub-one-frag'
subtopic_2 = topic_domain.Subtopic.create_default_subtopic(
2, 'Subtopic Title 2')
subtopic_2.skill_ids = ['skill_id_2']
subtopic_2.url_fragment = 'sub-two-frag'
self.subtopic_page_1 = (
subtopic_page_domain.SubtopicPage.create_default_subtopic_page(
1, self.topic_id))
subtopic_page_services.save_subtopic_page(
self.admin_id, self.subtopic_page_1, 'Added subtopic',
[topic_domain.TopicChange({
'cmd': topic_domain.CMD_ADD_SUBTOPIC,
'subtopic_id': 1,
'title': 'Sample'
})]
)
self.save_new_topic(
self.topic_id, self.admin_id, name='topic name',
description='Description', canonical_story_ids=[],
additional_story_ids=[], uncategorized_skill_ids=[],
subtopics=[subtopic_1, subtopic_2], next_subtopic_id=3,
url_fragment='topic-frag')
def test_cannot_access_non_existent_subtopic(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_subtopic_data/staging/topic-frag/non-existent-frag',
expected_status_int=404)
def test_cannot_access_subtopic_when_topic_is_not_published(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_subtopic_data/staging/topic-frag/sub-one-frag',
expected_status_int=404)
def test_can_access_subtopic_when_topic_is_published(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_subtopic_data/staging/topic-frag/sub-one-frag',
expected_status_int=200)
def test_redirect_to_classroom_if_user_is_banned(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_subtopic_page/staging/topic-frag/revision/000',
expected_status_int=302)
self.assertEqual(
response.headers['location'], 'http://localhost/learn/staging')
self.logout()
def test_can_access_subtopic_when_all_url_fragments_are_valid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_html_response(
'/mock_subtopic_page/staging/topic-frag/revision/sub-one-frag',
expected_status_int=200)
def test_fall_back_to_revision_page_if_subtopic_url_frag_is_invalid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_subtopic_page/staging/topic-frag/revision/000',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic-frag/revision',
response.headers['location'])
def test_fall_back_to_revision_page_when_subtopic_page_does_not_exist(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
testapp_swap = self.swap(self, 'testapp', self.mock_testapp)
subtopic_swap = self.swap_to_always_return(
subtopic_page_services, 'get_subtopic_page_by_id', None)
with testapp_swap, subtopic_swap:
response = self.get_html_response(
'/mock_subtopic_page/staging/topic-frag/revision/sub-one-frag',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic-frag/revision',
response.headers['location'])
def test_redirect_to_classroom_if_abbreviated_topic_is_invalid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_subtopic_page/math/invalid-topic/revision/sub-one-frag',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/math',
response.headers['location'])
def test_redirect_with_correct_classroom_name_in_url(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_subtopic_page/math/topic-frag/revision/sub-one-frag',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic-frag/revision'
'/sub-one-frag',
response.headers['location'])
def test_redirect_with_lowercase_subtopic_url_fragment(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_subtopic_page/staging/topic-frag/revision/Sub-One-Frag',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic-frag/revision'
'/sub-one-frag',
response.headers['location'])
class TopicViewerTests(test_utils.GenericTestBase):
"""Tests for decorator can_access_topic_viewer_page."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockDataHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_topic_viewer_page
def get(self, topic_name):
self.render_json({'topic_name': topic_name})
class MockPageHandler(base.BaseHandler):
URL_PATH_ARGS_SCHEMAS = {
'topic_url_fragment': {
'schema': {
'type': 'basestring'
}
},
'classroom_url_fragment': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_access_topic_viewer_page
def get(self, unused_topic_name):
self.render_template('topic-viewer-page.mainpage.html')
def setUp(self):
super(TopicViewerTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.admin = user_services.get_user_actions_info(self.admin_id)
self.signup(self.banned_user_email, self.banned_user)
self.mark_user_banned(self.banned_user)
topic_data_url = (
'/mock_topic_data/<classroom_url_fragment>/<topic_url_fragment>')
topic_page_url = (
'/mock_topic_page/<classroom_url_fragment>/<topic_url_fragment>')
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[
webapp2.Route(topic_data_url, self.MockDataHandler),
webapp2.Route(topic_page_url, self.MockPageHandler)
],
debug=feconf.DEBUG,
))
self.topic_id = topic_fetchers.get_new_topic_id()
subtopic_1 = topic_domain.Subtopic.create_default_subtopic(
1, 'Subtopic Title 1')
subtopic_1.skill_ids = ['skill_id_1']
subtopic_1.url_fragment = 'sub-one-frag'
self.save_new_topic(
self.topic_id, self.admin_id, name='Name',
description='Description', canonical_story_ids=[],
additional_story_ids=[], uncategorized_skill_ids=[],
subtopics=[subtopic_1], next_subtopic_id=2)
def test_cannot_access_non_existent_topic(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_topic_data/staging/invalid-topic',
expected_status_int=404)
def test_cannot_access_unpublished_topic(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_topic_data/staging/topic',
expected_status_int=404)
def test_can_access_published_topic(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_topic_data/staging/topic',
expected_status_int=200)
def test_can_access_topic_when_all_url_fragments_are_valid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_html_response(
'/mock_topic_page/staging/topic',
expected_status_int=200)
def test_redirect_to_classroom_if_abbreviated_topic_is_invalid(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_topic_page/math/invalid-topic',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/math',
response.headers['location'])
def test_redirect_with_correct_classroom_name_in_url(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_topic_page/math/topic',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic',
response.headers['location'])
def test_redirect_with_lowercase_topic_url_fragment(self):
topic_services.publish_topic(self.topic_id, self.admin_id)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_html_response(
'/mock_topic_page/staging/TOPIC',
expected_status_int=302)
self.assertEqual(
'http://localhost/learn/staging/topic',
response.headers['location'])
class CreateSkillTests(test_utils.GenericTestBase):
"""Tests for decorator can_create_skill."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_create_skill
def get(self):
self.render_json({})
def setUp(self):
super(CreateSkillTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.admin = user_services.get_user_actions_info(self.admin_id)
self.signup(self.banned_user_email, self.banned_user)
self.mark_user_banned(self.banned_user)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_create_skill', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_admin_can_create_skill(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_create_skill')
self.logout()
def test_banned_user_cannot_create_skill(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_create_skill', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to create a skill.')
self.logout()
def test_guest_cannot_add_create_skill(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_create_skill', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
class ManageQuestionSkillStatusTests(test_utils.GenericTestBase):
"""Tests for decorator can_manage_question_skill_status."""
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
skill_id = '1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'skill_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_manage_question_skill_status
def get(self, skill_id):
self.render_json({'skill_id': skill_id})
def setUp(self):
super(ManageQuestionSkillStatusTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_manage_question_skill_status/<skill_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.question_id = question_services.get_new_question_id()
self.question = self.save_new_question(
self.question_id, self.admin_id,
self._create_valid_question_data('ABC'), [self.skill_id])
question_services.create_new_question_skill_link(
self.admin_id, self.question_id, self.skill_id, 0.5)
def test_admin_can_manage_question_skill_status(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_manage_question_skill_status/%s' % self.skill_id)
self.assertEqual(response['skill_id'], self.skill_id)
self.logout()
def test_viewer_cannot_manage_question_skill_status(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_manage_question_skill_status/%s' % self.skill_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have credentials to publish a question.')
self.logout()
def test_guest_cannot_manage_question_skill_status(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_manage_question_skill_status/%s' % self.skill_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
class CreateTopicTests(test_utils.GenericTestBase):
"""Tests for decorator can_create_topic."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_create_topic
def get(self):
self.render_json({})
def setUp(self):
super(CreateTopicTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.banned_user_email, self.banned_user)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.banned_user)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_create_topic', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_admin_can_create_topic(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_create_topic')
self.logout()
def test_banned_user_cannot_create_topic(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_create_topic', expected_status_int=401)
self.assertIn(
'does not have enough rights to create a topic.',
response['error'])
self.logout()
def test_guest_cannot_create_topic(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_create_topic', expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
class ManageRightsForTopicTests(test_utils.GenericTestBase):
"""Tests for decorator can_manage_rights_for_topic."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
topic_id = 'topic_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_manage_rights_for_topic
def get(self, topic_id):
self.render_json({'topic_id': topic_id})
def setUp(self):
super(ManageRightsForTopicTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.banned_user_email, self.banned_user)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.banned_user)
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_manage_rights_for_topic/<topic_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
topic_services.create_new_topic_rights(self.topic_id, self.admin_id)
def test_admin_can_manage_rights(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_manage_rights_for_topic/%s' % self.topic_id)
self.logout()
def test_banned_user_cannot_manage_rights(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_manage_rights_for_topic/%s' % self.topic_id,
expected_status_int=401)
self.assertIn(
'does not have enough rights to assign roles for the topic.',
response['error'])
self.logout()
def test_guest_cannot_manage_rights(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_manage_rights_for_topic/%s' % self.topic_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
class ChangeTopicPublicationStatusTests(test_utils.GenericTestBase):
"""Tests for decorator can_change_topic_publication_status."""
banned_user = 'banneduser'
banned_user_email = 'banned@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'topic_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_change_topic_publication_status
def get(self, topic_id):
self.render_json({
topic_id: topic_id
})
def setUp(self):
super(ChangeTopicPublicationStatusTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.banned_user_email, self.banned_user)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.banned_user)
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.admin_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_change_publication_status/<topic_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
def test_admin_can_change_topic_publication_status(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_change_publication_status/%s' % self.topic_id)
self.logout()
def test_cannot_change_topic_publication_status_with_invalid_topic_id(
self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_change_publication_status/invalid_topic_id',
expected_status_int=404)
self.logout()
def test_banned_user_cannot_change_topic_publication_status(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_change_publication_status/%s' % self.topic_id,
expected_status_int=401)
self.assertIn(
'does not have enough rights to publish or unpublish the '
'topic.', response['error'])
self.logout()
def test_guest_cannot_change_topic_publication_status(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_change_publication_status/%s' % self.topic_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
class PerformTasksInTaskqueueTests(test_utils.GenericTestBase):
"""Tests for decorator can_perform_tasks_in_taskqueue."""
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_perform_tasks_in_taskqueue
def get(self):
self.render_json({})
def setUp(self):
super(PerformTasksInTaskqueueTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_perform_tasks_in_taskqueue', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_super_admin_can_perform_tasks_in_taskqueue(self):
self.login(self.CURRICULUM_ADMIN_EMAIL, is_super_admin=True)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_perform_tasks_in_taskqueue')
self.logout()
def test_normal_user_cannot_perform_tasks_in_taskqueue(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_perform_tasks_in_taskqueue', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have the credentials to access this page.')
self.logout()
def test_request_with_appropriate_header_can_perform_tasks_in_taskqueue(
self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_perform_tasks_in_taskqueue',
headers={'X-AppEngine-QueueName': 'name'})
class PerformCronTaskTests(test_utils.GenericTestBase):
"""Tests for decorator can_perform_cron_tasks."""
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_perform_cron_tasks
def get(self):
self.render_json({})
def setUp(self):
super(PerformCronTaskTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.signup(self.viewer_email, self.viewer_username)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_perform_cron_task', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_super_admin_can_perform_cron_tasks(self):
self.login(self.CURRICULUM_ADMIN_EMAIL, is_super_admin=True)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_perform_cron_task')
self.logout()
def test_normal_user_cannot_perform_cron_tasks(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_perform_cron_task', expected_status_int=401)
self.assertEqual(
response['error'],
'You do not have the credentials to access this page.')
self.logout()
def test_request_with_appropriate_header_can_perform_cron_tasks(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_perform_cron_task', headers={'X-AppEngine-Cron': 'true'})
class EditSkillDecoratorTests(test_utils.GenericTestBase):
"""Tests permissions for accessing the skill editor."""
manager_username = 'topicmanager'
manager_email = 'topicmanager@example.com'
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
skill_id = '1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'skill_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_edit_skill
def get(self, skill_id):
self.render_json({'skill_id': skill_id})
def setUp(self):
super(EditSkillDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.manager_email, self.manager_username)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.admin_id)
self.set_topic_managers([self.manager_username], self.topic_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_edit_skill/<skill_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_cannot_edit_skill_with_invalid_skill_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_custom_response(
'/mock_edit_skill/', 'text/plain', expected_status_int=404)
self.logout()
def test_admin_can_edit_skill(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_skill/%s' % self.skill_id)
self.assertEqual(response['skill_id'], self.skill_id)
self.logout()
def test_topic_manager_can_edit_public_skill(self):
self.login(self.manager_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_skill/%s' % self.skill_id)
self.assertEqual(response['skill_id'], self.skill_id)
self.logout()
def test_normal_user_cannot_edit_public_skill(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_skill/%s' % self.skill_id, expected_status_int=401)
self.logout()
def test_guest_cannot_edit_public_skill(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_skill/%s' % self.skill_id, expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class DeleteSkillDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_delete_skill."""
viewer_username = 'viewer'
viewer_email = 'viewer@example.com'
skill_id = '1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_delete_skill
def get(self):
self.render_json({'success': True})
def setUp(self):
super(DeleteSkillDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.viewer_email, self.viewer_username)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock_delete_skill', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_admin_can_delete_skill(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_delete_skill')
self.assertTrue(response['success'])
self.logout()
def test_normal_user_cannot_delete_public_skill(self):
self.login(self.viewer_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_delete_skill', expected_status_int=401)
self.logout()
def test_guest_cannot_delete_public_skill(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_skill', expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
class EditQuestionDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_edit_question."""
question_id = 'question_id'
user_a = 'A'
user_a_email = 'a@example.com'
user_b = 'B'
user_b_email = 'b@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'question_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_edit_question
def get(self, question_id):
self.render_json({'question_id': question_id})
def setUp(self):
super(EditQuestionDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.user_a_email, self.user_a)
self.signup(self.user_b_email, self.user_b)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.admin_id)
self.save_new_question(
self.question_id, self.owner_id,
self._create_valid_question_data('ABC'), ['skill_1'])
self.set_topic_managers([self.user_a], self.topic_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_edit_question/<question_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_edit_question(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_question/%s' % self.question_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
def test_cannot_edit_question_with_invalid_question_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_question/invalid_question_id',
expected_status_int=404)
self.logout()
def test_admin_can_edit_question(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_question/%s' % self.question_id)
self.assertEqual(response['question_id'], self.question_id)
self.logout()
def test_topic_manager_can_edit_question(self):
self.login(self.user_a_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_question/%s' % self.question_id)
self.assertEqual(response['question_id'], self.question_id)
self.logout()
def test_any_user_cannot_edit_question(self):
self.login(self.user_b_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_question/%s' % self.question_id,
expected_status_int=401)
self.logout()
class ViewQuestionEditorDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_view_question_editor."""
question_id = 'question_id'
user_a = 'A'
user_a_email = 'a@example.com'
user_b = 'B'
user_b_email = 'b@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'question_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_view_question_editor
def get(self, question_id):
self.render_json({'question_id': question_id})
def setUp(self):
super(ViewQuestionEditorDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.user_a_email, self.user_a)
self.signup(self.user_b_email, self.user_b)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.admin_id)
self.save_new_question(
self.question_id, self.owner_id,
self._create_valid_question_data('ABC'), ['skill_1'])
self.set_topic_managers([self.user_a], self.topic_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_view_question_editor/<question_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_view_question_editor(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_question_editor/%s' % self.question_id,
expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
def test_cannot_view_question_editor_with_invalid_question_id(self):
invalid_id = 'invalid_question_id'
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_question_editor/%s' % invalid_id,
expected_status_int=404)
error_msg = (
'Could not find the page http://localhost/'
'mock_view_question_editor/%s.' % invalid_id
)
self.assertEqual(response['error'], error_msg)
self.logout()
def test_curriculum_admin_can_view_question_editor(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_question_editor/%s' % self.question_id)
self.assertEqual(response['question_id'], self.question_id)
self.logout()
def test_topic_manager_can_view_question_editor(self):
self.login(self.user_a_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_question_editor/%s' % self.question_id)
self.assertEqual(response['question_id'], self.question_id)
self.logout()
def test_normal_user_cannot_view_question_editor(self):
self.login(self.user_b_email)
user_id_b = self.get_user_id_from_email(self.user_b_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_view_question_editor/%s' % self.question_id,
expected_status_int=401)
error_msg = (
'%s does not have enough rights to access the questions editor'
% user_id_b)
self.assertEqual(response['error'], error_msg)
self.logout()
class DeleteQuestionDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_delete_question."""
question_id = 'question_id'
user_a = 'A'
user_a_email = 'a@example.com'
user_b = 'B'
user_b_email = 'b@example.com'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'question_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_delete_question
def get(self, question_id):
self.render_json({'question_id': question_id})
def setUp(self):
super(DeleteQuestionDecoratorTests, self).setUp()
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_a_email, self.user_a)
self.signup(self.user_b_email, self.user_b)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.manager_id = self.get_user_id_from_email(self.user_a_email)
self.topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(self.topic_id, self.admin_id)
self.set_topic_managers([self.user_a], self.topic_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_delete_question/<question_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_guest_cannot_delete_question(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_question/%s' % self.question_id,
expected_status_int=401)
error_msg = 'You must be logged in to access this resource.'
self.assertEqual(response['error'], error_msg)
def test_curriculum_admin_can_delete_question(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_question/%s' % self.question_id)
self.assertEqual(response['question_id'], self.question_id)
self.logout()
def test_topic_manager_can_delete_question(self):
self.login(self.user_a_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_question/%s' % self.question_id)
self.assertEqual(response['question_id'], self.question_id)
self.logout()
def test_normal_user_cannot_delete_question(self):
self.login(self.user_b_email)
user_id_b = self.get_user_id_from_email(self.user_b_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_delete_question/%s' % self.question_id,
expected_status_int=401)
error_msg = (
'%s does not have enough rights to delete the question.'
% user_id_b)
self.assertEqual(response['error'], error_msg)
self.logout()
class PlayQuestionDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_play_question."""
question_id = 'question_id'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'question_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_play_question
def get(self, question_id):
self.render_json({'question_id': question_id})
def setUp(self):
super(PlayQuestionDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_play_question/<question_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_question(
self.question_id, self.owner_id,
self._create_valid_question_data('ABC'), ['skill_1'])
def test_can_play_question_with_valid_question_id(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_play_question/%s' % (
self.question_id))
self.assertEqual(response['question_id'], self.question_id)
class PlayEntityDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_play_entity."""
user_email = 'user@example.com'
username = 'user'
published_exp_id = 'exp_id_1'
private_exp_id = 'exp_id_2'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'entity_type': {
'schema': {
'type': 'basestring'
}
},
'entity_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_play_entity
def get(self, entity_type, entity_id):
self.render_json(
{'entity_type': entity_type, 'entity_id': entity_id})
def setUp(self):
super(PlayEntityDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_play_entity/<entity_type>/<entity_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.question_id = question_services.get_new_question_id()
self.save_new_question(
self.question_id, self.owner_id,
self._create_valid_question_data('ABC'), ['skill_1'])
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_cannot_play_exploration_on_disabled_exploration_ids(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_play_entity/%s/%s' % (
feconf.ENTITY_TYPE_EXPLORATION,
feconf.DISABLED_EXPLORATION_IDS[0]), expected_status_int=404)
def test_guest_can_play_exploration_on_published_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_play_entity/%s/%s' % (
feconf.ENTITY_TYPE_EXPLORATION, self.published_exp_id))
self.assertEqual(
response['entity_type'], feconf.ENTITY_TYPE_EXPLORATION)
self.assertEqual(
response['entity_id'], self.published_exp_id)
def test_guest_cannot_play_exploration_on_private_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_play_entity/%s/%s' % (
feconf.ENTITY_TYPE_EXPLORATION,
self.private_exp_id), expected_status_int=404)
def test_cannot_play_exploration_with_none_exploration_rights(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_play_entity/%s/%s'
% (feconf.ENTITY_TYPE_EXPLORATION, 'fake_exp_id'),
expected_status_int=404)
def test_can_play_question_for_valid_question_id(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_play_entity/%s/%s' % (
feconf.ENTITY_TYPE_QUESTION, self.question_id))
self.assertEqual(
response['entity_type'], feconf.ENTITY_TYPE_QUESTION)
self.assertEqual(response['entity_id'], self.question_id)
self.assertEqual(response['entity_type'], 'question')
def test_cannot_play_question_invalid_question_id(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_play_entity/%s/%s' % (
feconf.ENTITY_TYPE_QUESTION, 'question_id'),
expected_status_int=404)
def test_cannot_play_entity_for_invalid_entity(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_play_entity/%s/%s' % (
'fake_entity_type', 'fake_entity_id'), expected_status_int=404)
class EditEntityDecoratorTests(test_utils.GenericTestBase):
"""Tests the decorator can_edit_entity."""
username = 'banneduser'
user_email = 'user@example.com'
published_exp_id = 'exp_0'
private_exp_id = 'exp_1'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'entity_type': {
'schema': {
'type': 'basestring'
}
},
'entity_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_edit_entity
def get(self, entity_type, entity_id):
return self.render_json(
{'entity_type': entity_type, 'entity_id': entity_id})
def setUp(self):
super(EditEntityDecoratorTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.signup(self.BLOG_ADMIN_EMAIL, self.BLOG_ADMIN_USERNAME)
self.add_user_role(
self.BLOG_ADMIN_USERNAME, feconf.ROLE_ID_BLOG_ADMIN)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.admin_id = self.get_user_id_from_email(self.CURRICULUM_ADMIN_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.username)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/mock_edit_entity/<entity_type>/<entity_id>',
self.MockHandler)],
debug=feconf.DEBUG,
))
self.question_id = question_services.get_new_question_id()
self.save_new_question(
self.question_id, self.owner_id,
self._create_valid_question_data('ABC'), ['skill_1'])
self.save_new_valid_exploration(
self.published_exp_id, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id)
def test_can_edit_exploration_with_valid_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock_edit_entity/exploration/%s' % (
self.published_exp_id))
self.assertEqual(
response['entity_type'], feconf.ENTITY_TYPE_EXPLORATION)
self.assertEqual(
response['entity_id'], self.published_exp_id)
self.logout()
def test_cannot_edit_exploration_with_invalid_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_entity/exploration/invalid_exp_id',
expected_status_int=404)
self.logout()
def test_banned_user_cannot_edit_exploration(self):
self.login(self.user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_entity/%s/%s' % (
feconf.ENTITY_TYPE_EXPLORATION, self.private_exp_id),
expected_status_int=401)
self.logout()
def test_can_edit_question_with_valid_question_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_entity/%s/%s' % (
feconf.ENTITY_TYPE_QUESTION, self.question_id))
self.assertEqual(response['entity_id'], self.question_id)
self.assertEqual(response['entity_type'], 'question')
self.logout()
def test_can_edit_topic(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
topic_id = topic_fetchers.get_new_topic_id()
self.save_new_topic(
topic_id, self.admin_id, name='Name',
description='Description', canonical_story_ids=[],
additional_story_ids=[], uncategorized_skill_ids=[],
subtopics=[], next_subtopic_id=1)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_entity/%s/%s' % (
feconf.ENTITY_TYPE_TOPIC, topic_id))
self.assertEqual(response['entity_id'], topic_id)
self.assertEqual(response['entity_type'], 'topic')
self.logout()
def test_cannot_edit_topic_with_invalid_topic_id(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
topic_id = 'incorrect_id'
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock_edit_entity/%s/%s' % (
feconf.ENTITY_TYPE_TOPIC, topic_id),
expected_status_int=404)
self.logout()
def test_can_edit_skill(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
skill_id = skill_services.get_new_skill_id()
self.save_new_skill(skill_id, self.admin_id, description='Description')
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_entity/%s/%s' % (
feconf.ENTITY_TYPE_SKILL, skill_id))
self.assertEqual(response['entity_id'], skill_id)
self.assertEqual(response['entity_type'], 'skill')
self.logout()
def test_can_submit_images_to_questions(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
skill_id = skill_services.get_new_skill_id()
self.save_new_skill(skill_id, self.admin_id, description='Description')
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_entity/%s/%s' % (
feconf.IMAGE_CONTEXT_QUESTION_SUGGESTIONS, skill_id))
self.assertEqual(response['entity_id'], skill_id)
self.assertEqual(response['entity_type'], 'question_suggestions')
self.logout()
def test_unauthenticated_users_cannot_submit_images_to_questions(self):
skill_id = skill_services.get_new_skill_id()
self.save_new_skill(skill_id, self.admin_id, description='Description')
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_edit_entity/%s/%s' % (
feconf.IMAGE_CONTEXT_QUESTION_SUGGESTIONS, skill_id),
expected_status_int=401)
def test_cannot_submit_images_to_questions_without_having_permissions(self):
self.login(self.user_email)
skill_id = skill_services.get_new_skill_id()
self.save_new_skill(skill_id, self.admin_id, description='Description')
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_entity/%s/%s' % (
feconf.IMAGE_CONTEXT_QUESTION_SUGGESTIONS, skill_id),
expected_status_int=401)
self.assertEqual(
response['error'], 'You do not have credentials to submit'
' images to questions.')
self.logout()
def test_can_edit_blog_post(self):
self.login(self.BLOG_ADMIN_EMAIL)
blog_admin_id = (
self.get_user_id_from_email(self.BLOG_ADMIN_EMAIL))
blog_post = blog_services.create_new_blog_post(blog_admin_id)
blog_post_id = blog_post.id
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_entity/%s/%s' % (
feconf.ENTITY_TYPE_BLOG_POST, blog_post_id))
self.assertEqual(response['entity_id'], blog_post_id)
self.assertEqual(response['entity_type'], 'blog_post')
self.logout()
def test_can_edit_story(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
story_id = story_services.get_new_story_id()
topic_id = topic_fetchers.get_new_topic_id()
self.save_new_story(story_id, self.admin_id, topic_id)
self.save_new_topic(
topic_id, self.admin_id, name='Name',
description='Description', canonical_story_ids=[story_id],
additional_story_ids=[], uncategorized_skill_ids=[],
subtopics=[], next_subtopic_id=1)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock_edit_entity/%s/%s' % (
feconf.ENTITY_TYPE_STORY, story_id))
self.assertEqual(response['entity_id'], story_id)
self.assertEqual(response['entity_type'], 'story')
self.logout()
def test_cannot_edit_entity_invalid_entity(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json('/mock_edit_entity/%s/%s' % (
'invalid_entity_type', 'q_id'), expected_status_int=404)
class SaveExplorationTests(test_utils.GenericTestBase):
"""Tests for can_save_exploration decorator."""
role = rights_domain.ROLE_VOICE_ARTIST
username = 'user'
user_email = 'user@example.com'
banned_username = 'banneduser'
banned_user_email = 'banneduser@example.com'
published_exp_id_1 = 'exp_1'
published_exp_id_2 = 'exp_2'
private_exp_id_1 = 'exp_3'
private_exp_id_2 = 'exp_4'
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'exploration_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_save_exploration
def get(self, exploration_id):
self.render_json({'exploration_id': exploration_id})
def setUp(self):
super(SaveExplorationTests, self).setUp()
self.signup(self.OWNER_EMAIL, self.OWNER_USERNAME)
self.signup(self.MODERATOR_EMAIL, self.MODERATOR_USERNAME)
self.signup(self.CURRICULUM_ADMIN_EMAIL, self.CURRICULUM_ADMIN_USERNAME)
self.signup(self.user_email, self.username)
self.signup(self.banned_user_email, self.banned_username)
self.signup(self.VOICE_ARTIST_EMAIL, self.VOICE_ARTIST_USERNAME)
self.signup(self.VOICEOVER_ADMIN_EMAIL, self.VOICEOVER_ADMIN_USERNAME)
self.owner_id = self.get_user_id_from_email(self.OWNER_EMAIL)
self.voice_artist_id = self.get_user_id_from_email(
self.VOICE_ARTIST_EMAIL)
self.voiceover_admin_id = self.get_user_id_from_email(
self.VOICEOVER_ADMIN_EMAIL)
self.set_moderators([self.MODERATOR_USERNAME])
self.set_curriculum_admins([self.CURRICULUM_ADMIN_USERNAME])
self.mark_user_banned(self.banned_username)
self.add_user_role(
self.VOICEOVER_ADMIN_USERNAME, feconf.ROLE_ID_VOICEOVER_ADMIN)
self.owner = user_services.get_user_actions_info(self.owner_id)
self.voiceover_admin = user_services.get_user_actions_info(
self.voiceover_admin_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<exploration_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
self.save_new_valid_exploration(
self.published_exp_id_1, self.owner_id)
self.save_new_valid_exploration(
self.published_exp_id_2, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id_1, self.owner_id)
self.save_new_valid_exploration(
self.private_exp_id_2, self.owner_id)
rights_manager.publish_exploration(self.owner, self.published_exp_id_1)
rights_manager.publish_exploration(self.owner, self.published_exp_id_2)
rights_manager.assign_role_for_exploration(
self.voiceover_admin, self.published_exp_id_1, self.voice_artist_id,
self.role)
def test_unautheticated_user_cannot_save_exploration(self):
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.private_exp_id_1, expected_status_int=401)
def test_cannot_save_exploration_with_invalid_exp_id(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/invalid_exp_id', expected_status_int=404)
self.logout()
def test_banned_user_cannot_save_exploration(self):
self.login(self.banned_user_email)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.private_exp_id_1, expected_status_int=401)
self.logout()
def test_owner_can_save_exploration(self):
self.login(self.OWNER_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id_1)
self.assertEqual(response['exploration_id'], self.private_exp_id_1)
self.logout()
def test_moderator_can_save_public_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.published_exp_id_1)
self.assertEqual(response['exploration_id'], self.published_exp_id_1)
self.logout()
def test_moderator_can_save_private_exploration(self):
self.login(self.MODERATOR_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id_1)
self.assertEqual(response['exploration_id'], self.private_exp_id_1)
self.logout()
def test_admin_can_save_private_exploration(self):
self.login(self.CURRICULUM_ADMIN_EMAIL)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.private_exp_id_1)
self.assertEqual(response['exploration_id'], self.private_exp_id_1)
self.logout()
def test_voice_artist_can_only_save_assigned_exploration(self):
self.login(self.VOICE_ARTIST_EMAIL)
# Checking voice artist can only save assigned public exploration.
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.published_exp_id_1)
self.assertEqual(response['exploration_id'], self.published_exp_id_1)
# Checking voice artist cannot save public exploration which he/she
# is not assigned for.
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % self.published_exp_id_2, expected_status_int=401)
self.logout()
class OppiaMLAccessDecoratorTest(test_utils.GenericTestBase):
"""Tests for oppia_ml_access decorator."""
class MockHandler(base.OppiaMLVMHandler):
REQUIRE_PAYLOAD_CSRF_CHECK = False
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {
'POST': {
'vm_id': {
'schema': {
'type': 'basestring'
}
},
'message': {
'schema': {
'type': 'basestring'
}
},
'signature': {
'schema': {
'type': 'basestring'
}
}
}
}
def extract_request_message_vm_id_and_signature(self):
"""Returns message, vm_id and signature retrived from incoming
request.
Returns:
tuple(str). Message at index 0, vm_id at index 1 and signature
at index 2.
"""
signature = self.normalized_payload.get('signature')
vm_id = self.normalized_payload.get('vm_id')
message = self.normalized_payload.get('message')
return classifier_domain.OppiaMLAuthInfo(message, vm_id, signature)
@acl_decorators.is_from_oppia_ml
def post(self):
self.render_json({'job_id': 'new_job'})
def setUp(self):
super(OppiaMLAccessDecoratorTest, self).setUp()
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/ml/nextjobhandler', self.MockHandler)],
debug=feconf.DEBUG,
))
def test_unauthorized_vm_cannot_fetch_jobs(self):
payload = {}
payload['vm_id'] = 'fake_vm'
secret = 'fake_secret'
payload['message'] = json.dumps('malicious message')
payload['signature'] = classifier_services.generate_signature(
secret.encode('utf-8'),
payload['message'].encode('utf-8'),
payload['vm_id'])
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/ml/nextjobhandler', payload,
expected_status_int=401)
def test_default_vm_id_raises_exception_in_prod_mode(self):
payload = {}
payload['vm_id'] = feconf.DEFAULT_VM_ID
secret = feconf.DEFAULT_VM_SHARED_SECRET
payload['message'] = json.dumps('malicious message')
payload['signature'] = classifier_services.generate_signature(
secret.encode('utf-8'),
payload['message'].encode('utf-8'),
payload['vm_id'])
with self.swap(self, 'testapp', self.mock_testapp):
with self.swap(constants, 'DEV_MODE', False):
self.post_json(
'/ml/nextjobhandler', payload, expected_status_int=401)
def test_that_invalid_signature_raises_exception(self):
payload = {}
payload['vm_id'] = feconf.DEFAULT_VM_ID
secret = feconf.DEFAULT_VM_SHARED_SECRET
payload['message'] = json.dumps('malicious message')
payload['signature'] = classifier_services.generate_signature(
secret.encode('utf-8'), 'message'.encode('utf-8'), payload['vm_id'])
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/ml/nextjobhandler', payload, expected_status_int=401)
def test_that_no_excpetion_is_raised_when_valid_vm_access(self):
payload = {}
payload['vm_id'] = feconf.DEFAULT_VM_ID
secret = feconf.DEFAULT_VM_SHARED_SECRET
payload['message'] = json.dumps('message')
payload['signature'] = classifier_services.generate_signature(
secret.encode('utf-8'),
payload['message'].encode('utf-8'),
payload['vm_id'])
with self.swap(self, 'testapp', self.mock_testapp):
json_response = self.post_json('/ml/nextjobhandler', payload)
self.assertEqual(json_response['job_id'], 'new_job')
class DecoratorForUpdatingSuggestionTests(test_utils.GenericTestBase):
"""Tests for can_update_suggestion decorator."""
curriculum_admin_username = 'adn'
curriculum_admin_email = 'admin@example.com'
author_username = 'author'
author_email = 'author@example.com'
hi_language_reviewer = 'reviewer1@example.com'
en_language_reviewer = 'reviewer2@example.com'
username = 'user'
user_email = 'user@example.com'
TARGET_TYPE = 'exploration'
exploration_id = 'exp_id'
target_version_id = 1
change_dict = {
'cmd': 'add_written_translation',
'content_id': 'content',
'language_code': 'hi',
'content_html': '<p>old content html</p>',
'state_name': 'State 1',
'translation_html': '<p>Translation for content.</p>',
'data_format': 'html'
}
class MockHandler(base.BaseHandler):
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {
'suggestion_id': {
'schema': {
'type': 'basestring'
}
}
}
HANDLER_ARGS_SCHEMAS = {'GET': {}}
@acl_decorators.can_update_suggestion
def get(self, suggestion_id):
self.render_json({'suggestion_id': suggestion_id})
def setUp(self):
super(DecoratorForUpdatingSuggestionTests, self).setUp()
self.signup(self.author_email, self.author_username)
self.signup(self.user_email, self.username)
self.signup(self.curriculum_admin_email, self.curriculum_admin_username)
self.signup(self.hi_language_reviewer, 'reviewer1')
self.signup(self.en_language_reviewer, 'reviewer2')
self.author_id = self.get_user_id_from_email(self.author_email)
self.admin_id = self.get_user_id_from_email(self.curriculum_admin_email)
self.hi_language_reviewer_id = self.get_user_id_from_email(
self.hi_language_reviewer)
self.en_language_reviewer_id = self.get_user_id_from_email(
self.en_language_reviewer)
self.admin = user_services.get_user_actions_info(self.admin_id)
self.author = user_services.get_user_actions_info(self.author_id)
user_services.add_user_role(
self.admin_id, feconf.ROLE_ID_CURRICULUM_ADMIN)
user_services.allow_user_to_review_translation_in_language(
self.hi_language_reviewer_id, 'hi')
user_services.allow_user_to_review_translation_in_language(
self.en_language_reviewer_id, 'en')
user_services.allow_user_to_review_question(
self.hi_language_reviewer_id)
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route('/mock/<suggestion_id>', self.MockHandler)],
debug=feconf.DEBUG,
))
exploration = (
self.save_new_linear_exp_with_state_names_and_interactions(
self.exploration_id, self.author_id, [
'State 1', 'State 2', 'State 3'],
['TextInput'], category='Algebra'))
self.old_content = state_domain.SubtitledHtml(
'content', '<p>old content html</p>').to_dict()
exploration.states['State 1'].update_content(
state_domain.SubtitledHtml.from_dict(self.old_content))
exploration.states['State 2'].update_content(
state_domain.SubtitledHtml.from_dict(self.old_content))
exploration.states['State 3'].update_content(
state_domain.SubtitledHtml.from_dict(self.old_content))
exp_services._save_exploration(self.author_id, exploration, '', []) # pylint: disable=protected-access
rights_manager.publish_exploration(self.author, self.exploration_id)
self.new_content = state_domain.SubtitledHtml(
'content', '<p>new content html</p>').to_dict()
self.resubmit_change_content = state_domain.SubtitledHtml(
'content', '<p>resubmit change content html</p>').to_dict()
self.save_new_skill('skill_123', self.admin_id)
add_question_change_dict = {
'cmd': question_domain.CMD_CREATE_NEW_FULLY_SPECIFIED_QUESTION,
'question_dict': {
'question_state_data': self._create_valid_question_data(
'default_state').to_dict(),
'language_code': 'en',
'question_state_data_schema_version': (
feconf.CURRENT_STATE_SCHEMA_VERSION),
'linked_skill_ids': ['skill_1'],
'inapplicable_skill_misconception_ids': ['skillid12345-1']
},
'skill_id': 'skill_123',
'skill_difficulty': 0.3
}
suggestion_services.create_suggestion(
feconf.SUGGESTION_TYPE_TRANSLATE_CONTENT, self.TARGET_TYPE,
self.exploration_id, self.target_version_id,
self.author_id,
self.change_dict, '')
suggestion_services.create_suggestion(
feconf.SUGGESTION_TYPE_ADD_QUESTION,
feconf.ENTITY_TYPE_SKILL,
'skill_123', feconf.CURRENT_STATE_SCHEMA_VERSION,
self.author_id, add_question_change_dict,
'test description')
suggestion_services.create_suggestion(
feconf.SUGGESTION_TYPE_EDIT_STATE_CONTENT,
feconf.ENTITY_TYPE_EXPLORATION,
self.exploration_id, exploration.version,
self.author_id, {
'cmd': exp_domain.CMD_EDIT_STATE_PROPERTY,
'property_name': exp_domain.STATE_PROPERTY_CONTENT,
'state_name': 'State 2',
'old_value': self.old_content,
'new_value': self.new_content
},
'change to state 1')
translation_suggestions = suggestion_services.get_submitted_suggestions(
self.author_id, feconf.SUGGESTION_TYPE_TRANSLATE_CONTENT)
question_suggestions = suggestion_services.get_submitted_suggestions(
self.author_id, feconf.SUGGESTION_TYPE_ADD_QUESTION)
edit_state_suggestions = suggestion_services.get_submitted_suggestions(
self.author_id, feconf.SUGGESTION_TYPE_EDIT_STATE_CONTENT)
self.assertEqual(len(translation_suggestions), 1)
self.assertEqual(len(question_suggestions), 1)
self.assertEqual(len(edit_state_suggestions), 1)
translation_suggestion = translation_suggestions[0]
question_suggestion = question_suggestions[0]
edit_state_suggestion = edit_state_suggestions[0]
self.translation_suggestion_id = translation_suggestion.suggestion_id
self.question_suggestion_id = question_suggestion.suggestion_id
self.edit_state_suggestion_id = edit_state_suggestion.suggestion_id
def test_authors_cannot_update_suggestion_that_they_created(self):
self.login(self.author_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.translation_suggestion_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'The user, %s is not allowed to update self-created'
'suggestions.' % self.author_username)
self.logout()
def test_admin_can_update_any_given_translation_suggestion(self):
self.login(self.curriculum_admin_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.translation_suggestion_id)
self.assertEqual(
response['suggestion_id'], self.translation_suggestion_id)
self.logout()
def test_admin_can_update_any_given_question_suggestion(self):
self.login(self.curriculum_admin_email)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.question_suggestion_id)
self.assertEqual(response['suggestion_id'], self.question_suggestion_id)
self.logout()
def test_reviewer_can_update_translation_suggestion(self):
self.login(self.hi_language_reviewer)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.translation_suggestion_id)
self.assertEqual(
response['suggestion_id'], self.translation_suggestion_id)
self.logout()
def test_reviewer_can_update_question_suggestion(self):
self.login(self.hi_language_reviewer)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json('/mock/%s' % self.question_suggestion_id)
self.assertEqual(
response['suggestion_id'], self.question_suggestion_id)
self.logout()
def test_guest_cannot_update_any_suggestion(self):
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.translation_suggestion_id,
expected_status_int=401)
self.assertEqual(
response['error'],
'You must be logged in to access this resource.')
def test_reviewers_without_permission_cannot_update_any_suggestion(self):
self.login(self.en_language_reviewer)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.translation_suggestion_id,
expected_status_int=401)
self.assertEqual(
response['error'], 'You are not allowed to update the suggestion.')
self.logout()
def test_suggestions_with_invalid_suggestion_id_cannot_be_updated(self):
self.login(self.hi_language_reviewer)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % 'suggestion-id',
expected_status_int=400)
self.assertEqual(
response['error'], 'Invalid format for suggestion_id. ' +
'It must contain 3 parts separated by \'.\'')
self.logout()
def test_non_existent_suggestions_cannot_be_updated(self):
self.login(self.hi_language_reviewer)
with self.swap(self, 'testapp', self.mock_testapp):
self.get_json(
'/mock/%s' % 'exploration.exp1.' +
'WzE2MTc4NzExNzExNDEuOTE0XQ==WzQ5NTs',
expected_status_int=404)
self.logout()
def test_not_allowed_suggestions_cannot_be_updated(self):
self.login(self.en_language_reviewer)
with self.swap(self, 'testapp', self.mock_testapp):
response = self.get_json(
'/mock/%s' % self.edit_state_suggestion_id,
expected_status_int=400)
self.assertEqual(
response['error'], 'Invalid suggestion type.')
self.logout()
class OppiaAndroidDecoratorTest(test_utils.GenericTestBase):
"""Tests for is_from_oppia_android decorator."""
class MockHandler(base.BaseHandler):
REQUIRE_PAYLOAD_CSRF_CHECK = False
GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON
URL_PATH_ARGS_SCHEMAS = {}
HANDLER_ARGS_SCHEMAS = {
'POST': {
'report': {
'schema': {
'type': 'object_dict',
'object_class': (
app_feedback_report_domain.AppFeedbackReport)
}
}
}
}
@acl_decorators.is_from_oppia_android
def post(self):
return self.render_json({})
REPORT_JSON = {
'platform_type': 'android',
'android_report_info_schema_version': 1,
'app_context': {
'entry_point': {
'entry_point_name': 'navigation_drawer',
'entry_point_exploration_id': None,
'entry_point_story_id': None,
'entry_point_topic_id': None,
'entry_point_subtopic_id': None,
},
'text_size': 'large_text_size',
'text_language_code': 'en',
'audio_language_code': 'en',
'only_allows_wifi_download_and_update': True,
'automatically_update_topics': False,
'account_is_profile_admin': False,
'event_logs': ['example', 'event'],
'logcat_logs': ['example', 'log']
},
'device_context': {
'android_device_model': 'example_model',
'android_sdk_version': 23,
'build_fingerprint': 'example_fingerprint_id',
'network_type': 'wifi'
},
'report_submission_timestamp_sec': 1615519337,
'report_submission_utc_offset_hrs': 0,
'system_context': {
'platform_version': '0.1-alpha-abcdef1234',
'package_version_code': 1,
'android_device_country_locale_code': 'in',
'android_device_language_locale_code': 'en'
},
'user_supplied_feedback': {
'report_type': 'suggestion',
'category': 'language_suggestion',
'user_feedback_selected_items': [],
'user_feedback_other_text_input': 'french'
}
}
ANDROID_APP_VERSION_NAME = '1.0.0-flavor-commithash'
ANDROID_APP_VERSION_CODE = '2'
def setUp(self):
super(OppiaAndroidDecoratorTest, self).setUp()
self.mock_testapp = webtest.TestApp(webapp2.WSGIApplication(
[webapp2.Route(
'/appfeedbackreporthandler/incoming_android_report',
self.MockHandler)],
debug=feconf.DEBUG,
))
def test_that_no_exception_is_raised_when_valid_oppia_android_headers(self):
headers = {
'api_key': android_validation_constants.ANDROID_API_KEY,
'app_package_name': (
android_validation_constants.ANDROID_APP_PACKAGE_NAME),
'app_version_name': self.ANDROID_APP_VERSION_NAME,
'app_version_code': self.ANDROID_APP_VERSION_CODE
}
payload = {}
payload['report'] = self.REPORT_JSON
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/appfeedbackreporthandler/incoming_android_report', payload,
headers=headers)
def test_invalid_api_key_raises_exception(self):
invalid_headers = {
'api_key': 'bad_key',
'app_package_name': (
android_validation_constants.ANDROID_APP_PACKAGE_NAME),
'app_version_name': self.ANDROID_APP_VERSION_NAME,
'app_version_code': self.ANDROID_APP_VERSION_CODE
}
payload = {}
payload['report'] = self.REPORT_JSON
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/appfeedbackreporthandler/incoming_android_report', payload,
headers=invalid_headers, expected_status_int=401)
def test_invalid_package_name_raises_exception(self):
invalid_headers = {
'api_key': android_validation_constants.ANDROID_API_KEY,
'app_package_name': 'bad_package_name',
'app_version_name': self.ANDROID_APP_VERSION_NAME,
'app_version_code': self.ANDROID_APP_VERSION_CODE
}
payload = {}
payload['report'] = self.REPORT_JSON
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/appfeedbackreporthandler/incoming_android_report', payload,
headers=invalid_headers, expected_status_int=401)
def test_invalid_version_name_raises_exception(self):
invalid_headers = {
'api_key': android_validation_constants.ANDROID_API_KEY,
'app_package_name': (
android_validation_constants.ANDROID_APP_PACKAGE_NAME),
'app_version_name': 'bad_version_name',
'app_version_code': self.ANDROID_APP_VERSION_CODE
}
payload = {}
payload['report'] = self.REPORT_JSON
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/appfeedbackreporthandler/incoming_android_report', payload,
headers=invalid_headers, expected_status_int=401)
def test_invalid_version_code_raises_exception(self):
invalid_headers = {
'api_key': android_validation_constants.ANDROID_API_KEY,
'app_package_name': (
android_validation_constants.ANDROID_APP_PACKAGE_NAME),
'app_version_name': self.ANDROID_APP_VERSION_NAME,
'app_version_code': 'bad_version_code'
}
payload = {}
payload['report'] = self.REPORT_JSON
with self.swap(self, 'testapp', self.mock_testapp):
self.post_json(
'/appfeedbackreporthandler/incoming_android_report', payload,
headers=invalid_headers, expected_status_int=401)
| 40.435144
| 134
| 0.649924
| 32,918
| 282,116
| 5.207546
| 0.019533
| 0.024921
| 0.040602
| 0.042118
| 0.909037
| 0.888807
| 0.8692
| 0.847003
| 0.82343
| 0.812253
| 0
| 0.0061
| 0.25034
| 282,116
| 6,976
| 135
| 40.44094
| 0.804441
| 0.016894
| 0
| 0.732888
| 0
| 0
| 0.121547
| 0.041533
| 0
| 0
| 0
| 0
| 0.047228
| 1
| 0.093258
| false
| 0
| 0.005476
| 0.004962
| 0.178816
| 0.000171
| 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
|
db7e9b82d983ec0794c4c5e5d46cda5bf60556dd
| 66,615
|
py
|
Python
|
test/integration/component/test_reset_ssh_keypair.py
|
serbaut/cloudstack
|
9513053f4256375e892df27d0c26644d1fe41725
|
[
"Apache-2.0"
] | 14
|
2015-01-12T13:46:12.000Z
|
2021-07-19T19:33:28.000Z
|
test/integration/component/test_reset_ssh_keypair.py
|
serbaut/cloudstack
|
9513053f4256375e892df27d0c26644d1fe41725
|
[
"Apache-2.0"
] | 20
|
2020-12-19T22:32:23.000Z
|
2022-02-01T01:07:06.000Z
|
test/integration/component/test_reset_ssh_keypair.py
|
serbaut/cloudstack
|
9513053f4256375e892df27d0c26644d1fe41725
|
[
"Apache-2.0"
] | 8
|
2015-07-17T12:36:51.000Z
|
2018-08-09T16:23:40.000Z
|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
""" P1 tests for reset SSH keypair
"""
#Import Local Modules
from marvin.lib.base import (VirtualMachine,
SSHKeyPair,
Account,
Template,
ServiceOffering,
EgressFireWallRule,
Volume)
from marvin.lib.common import (get_domain,
get_zone,
get_template)
from marvin.lib.utils import (cleanup_resources,
random_gen,
validateList)
from marvin.cloudstackTestCase import cloudstackTestCase, unittest
from marvin.codes import PASS, RUNNING
#Import System modules
import tempfile
import os
from nose.plugins.attrib import attr
import time
class Services:
"""Test remote SSH client Services """
def __init__(self):
self.services = {
"account": {
"email": "test@test.com",
"firstname": "Test",
"lastname": "User",
"username": "test",
# Random characters are appended in create account to
# ensure unique username generated each time
"password": "password",
},
"virtual_machine": {
"displayname": "VM",
"username": "root",
# VM creds for SSH
"password": "password",
"ssh_port": 22,
"hypervisor": 'XenServer',
"privateport": 22,
"publicport": 22,
"protocol": 'TCP',
},
"service_offering": {
"name": "Tiny Instance",
"displaytext": "Tiny Instance",
"cpunumber": 1,
"cpuspeed": 100,
"memory": 128,
},
"egress": {
"name": 'web',
"protocol": 'TCP',
"startport": 80,
"endport": 80,
"cidrlist": '0.0.0.0/0',
},
"template": {
"displaytext": "Cent OS Template",
"name": "Cent OS Template",
"passwordenabled": True,
"ispublic": True,
},
"ostype": 'CentOS 5.3 (64-bit)',
# Cent OS 5.3 (64 bit)
"SSHEnabledTemplate": "SSHkey",
"SSHPasswordEnabledTemplate": "SSHKeyPassword",
"sleep": 60,
"timeout": 20,
"mode": '',
}
def wait_vm_start(apiclient, vmid, timeout, sleep):
while timeout:
vms = VirtualMachine.list(apiclient, id=vmid)
vm_list_validation_result = validateList(vms)
if vm_list_validation_result[0] == PASS and vm_list_validation_result[1].state == RUNNING:
return timeout
time.sleep(sleep)
timeout = timeout - 1
return timeout
def SetPublicIpForVM(apiclient, vm):
""" List VM and set the publicip (if available) of VM
to ssh_ip attribute"""
vms = VirtualMachine.list(apiclient, id=vm.id, listall=True)
virtual_machine = vms[0]
if hasattr(vm, "publicip"):
vm.ssh_ip = virtual_machine.publicip
return vm
class TestResetSSHKeypair(cloudstackTestCase):
@classmethod
def setUpClass(cls):
cls.testClient = super(TestResetSSHKeypair, cls).getClsTestClient()
cls.api_client = cls.testClient.getApiClient()
cls.services = Services().services
# Get Zone, Domain and templates
domain = get_domain(cls.api_client)
cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
cls.services['mode'] = cls.zone.networktype
# Set Zones and disk offerings
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
# Create Account, VMs, NAT Rules etc
template = get_template(
cls.api_client,
cls.zone.id,
cls.services["ostype"]
)
# Set Zones and disk offerings
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.services["virtual_machine"]["template"] = template.id
cls._cleanup = []
try:
# Create VMs, NAT Rules etc
cls.account = Account.create(
cls.api_client,
cls.services["account"],
domainid=domain.id)
cls._cleanup.append(cls.account)
cls.service_offering = ServiceOffering.create(
cls.api_client,
cls.services["service_offering"])
cls._cleanup.append(cls.service_offering)
cls.virtual_machine = VirtualMachine.create(
cls.api_client,
cls.services["virtual_machine"],
accountid=cls.account.name,
domainid=cls.account.domainid,
serviceofferingid=cls.service_offering.id,
mode=cls.services["mode"])
networkid = cls.virtual_machine.nic[0].networkid
# create egress rule to allow wget of my cloud-set-guest-password script
if cls.zone.networktype.lower() == 'advanced':
EgressFireWallRule.create(cls.api_client,
networkid=networkid,
protocol=cls.services["egress"]["protocol"],
startport=cls.services["egress"]["startport"],
endport=cls.services["egress"]["endport"],
cidrlist=cls.services["egress"]["cidrlist"])
cls.virtual_machine.password = cls.services["virtual_machine"]["password"]
ssh = cls.virtual_machine.get_ssh_client()
# below steps are required to get the new password from VR(reset password)
# http://cloudstack.org/dl/cloud-set-guest-password
# Copy this file to /etc/init.d
# chmod +x /etc/init.d/cloud-set-guest-password
# chkconfig --add cloud-set-guest-password
# similar steps to get SSH key from web so as to make it ssh enabled
cmds = [
"cd /etc/init.d;wget http://people.apache.org/~tsp/cloud-set-guest-password",
"chmod +x /etc/init.d/cloud-set-guest-password",
"chkconfig --add cloud-set-guest-password",
"cd /etc/init.d;wget http://downloads.sourceforge.net/project/cloudstack/SSH%20Key%20Gen%20Script/" + \
"cloud-set-guest-sshkey.in?r=http%3A%2F%2Fsourceforge" + \
".net%2Fprojects%2Fcloudstack%2Ffiles%2FSSH%2520Key%2520Gen%2520Script%2F&ts=1331225219&use_mirror=iweb",
"chmod +x /etc/init.d/cloud-set-guest-sshkey.in",
"chkconfig --add cloud-set-guest-sshkey.in"
]
for c in cmds:
ssh.execute(c)
# Adding delay of 120 sec to avoid data loss due to timing issue
time.sleep(120)
#Stop virtual machine
cls.virtual_machine.stop(cls.api_client)
list_volume = Volume.list(
cls.api_client,
virtualmachineid=cls.virtual_machine.id,
type='ROOT',
listall=True)
if isinstance(list_volume, list):
cls.volume = list_volume[0]
else:
raise Exception(
"Exception: Unable to find root volume for VM: %s" %
cls.virtual_machine.id)
cls.services["template"]["ostype"] = cls.services["ostype"]
#Create templates for Edit, Delete & update permissions testcases
cls.pw_ssh_enabled_template = Template.create(
cls.api_client,
cls.services["template"],
cls.volume.id,
account=cls.account.name,
domainid=cls.account.domainid
)
cls._cleanup.append(cls.pw_ssh_enabled_template)
# Delete the VM - No longer needed
cls.virtual_machine.delete(cls.api_client, expunge=True)
except Exception as e:
cls.tearDownClass()
raise unittest.SkipTest("Exception in setUpClass: %s" % e)
@classmethod
def tearDownClass(cls):
# Cleanup VMs, templates etc.
cleanup_resources(cls.api_client, cls._cleanup)
return
def setUp(self):
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
self.keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
# Cleanup
self.cleanup = []
self.tmp_files = []
def tearDown(self):
try:
#Clean up, terminate the created accounts, domains etc
#cleanup_resources(self.apiclient, self.cleanup)
for tmp_file in self.tmp_files:
os.remove(tmp_file)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags=["simulator", "basic", "advanced"])
def test_01_reset_ssh_keys(self):
"""Test Reset SSH keys for VM already having SSH key"""
# Validate the following
# 1. Create a VM having SSH keyPair
# 2. Stop the VM
# 3. Reset SSH key pair. Verify VM is not restarted automatically as
# result of API execution. User should be able to ssh into the VM
# using new keypair when VM is restarted
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
keypair=self.keypair.name,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Stopping the virtual machine")
try:
virtual_machine.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop virtual machine: %s, %s" %
(virtual_machine.id, e))
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
# Clenaup at end of execution
self.tmp_files.append(keyPairFilePath)
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
try:
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
except Exception as e:
self.fail("Failed to reset SSH key: %s, %s" %
(virtual_machine.name, e))
self.debug("Starting the virtual machine after resetting the keypair")
try:
virtual_machine.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(virtual_machine.name, e))
timeout = wait_vm_start(self.apiclient, virtual_machine.id, self.services["timeout"],
self.services["sleep"])
if timeout == 0:
self.fail("The virtual machine %s failed to start even after %s minutes"
% (virtual_machine.name, self.services["timeout"]))
self.debug("SSH key path: %s" % str(keyPairFilePath))
# In case of EIP setup, public IP changes after VM start operation
# Assign the new publicip of the VM to its ssh_ip attribute
# so that correct IP address is used for getting the ssh client of VM
virtual_machine = SetPublicIpForVM(self.apiclient, virtual_machine)
try:
virtual_machine.get_ssh_client(keyPairFileLocation=str(keyPairFilePath))
except Exception as e:
self.fail("Failed to SSH into VM with new keypair: %s, %s" %
(virtual_machine.name, e))
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["simulator", "basic", "advanced"])
def test_02_reset_ssh_key_password_enabled_template(self):
"""Reset SSH keys for VM created from password enabled template and
already having SSH key """
# Validate the following
# 1. Create VM from password enabled template and having SSH keyPair
# 2. Stop the VM
# 3. Reset SSH key pair. Verify VM is not restarted automatically
# as a result of API execution
# User should be able to ssh into the VM using new keypair
# User should be able to login into VM using new password
# returned by the API
self.debug("Deploying the virtual machine in default network offering")
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
keypair=self.keypair.name,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Stopping the virtual machine")
try:
virtual_machine.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop virtual machine: %s, %s" %
(virtual_machine.id, e))
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
try:
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
except Exception as e:
self.fail("Failed to reset SSH key: %s, %s" %
(virtual_machine.name, e))
self.debug("Starting the virtual machine after resetting the keypair")
try:
virtual_machine.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(virtual_machine.name, e))
timeout = wait_vm_start(self.apiclient, virtual_machine.id, self.services["timeout"],
self.services["sleep"])
if timeout == 0:
self.fail("The virtual machine %s failed to start even after %s minutes"
% (virtual_machine.name, self.services["timeout"]))
# In case of EIP setup, public IP changes after VM start operation
# Assign the new publicip of the VM to its ssh_ip attribute
# so that correct IP address is used for getting the ssh client of VM
virtual_machine = SetPublicIpForVM(self.apiclient, virtual_machine)
self.debug("SSHing with new keypair")
try:
virtual_machine.get_ssh_client(
keyPairFileLocation=str(keyPairFilePath))
except Exception as e:
self.fail("Failed to SSH into VM with new keypair: %s, %s" %
(virtual_machine.name, e))
try:
self.debug("SSHing using password")
virtual_machine.get_ssh_client()
except Exception as e:
self.fail("Failed to SSH into VM with password: %s, %s" %
(virtual_machine.name, e))
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["simulator", "basic", "advanced"])
def test_03_reset_ssh_with_no_key(self):
"""Reset SSH key for VM having no SSH key"""
# Validate the following
# 1.Create a VM
# 2. Stop the VM
# 3. Reset SSH key pair
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Stopping the virtual machine")
try:
virtual_machine.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop virtual machine: %s, %s" %
(virtual_machine.id, e))
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
try:
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
except Exception as e:
self.fail("Failed to reset SSH key: %s, %s" %
(virtual_machine.name, e))
self.debug("Starting the virtual machine after resetting the keypair")
try:
virtual_machine.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(virtual_machine.name, e))
timeout = wait_vm_start(self.apiclient, virtual_machine.id, self.services["timeout"],
self.services["sleep"])
if timeout == 0:
self.fail("The virtual machine %s failed to start even after %s minutes"
% (virtual_machine.name, self.services["timeout"]))
# In case of EIP setup, public IP changes after VM start operation
# Assign the new publicip of the VM to its ssh_ip attribute
# so that correct IP address is used for getting the ssh client of VM
virtual_machine = SetPublicIpForVM(self.apiclient, virtual_machine)
self.debug("SSHing with new keypair")
try:
virtual_machine.get_ssh_client(
keyPairFileLocation=str(keyPairFilePath))
except Exception as e:
self.fail("Failed to SSH into VM with new keypair: %s, %s" %
(virtual_machine.name, e))
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["simulator", "basic", "advanced"])
def test_04_reset_key_passwd_enabled_no_key(self):
"""Reset SSH keys for VM created from password enabled template and
have no previous SSH key"""
# Validate the following
# 1.Create a VM from password enabled template
# 2. Stop the VM
# 3. Reset SSH key pair. Verify VM is not restarted automatically as a
# result of API execution
# User should be able to ssh into the VM using new keypair when
# VM is restarted
# User should be able to login into VM using new password returned
# by the API
self.debug("Deploying the virtual machine in default network offering")
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Stopping the virtual machine")
try:
virtual_machine.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop virtual machine: %s, %s" %
(virtual_machine.id, e))
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
try:
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
except Exception as e:
self.fail("Failed to reset SSH key: %s, %s" %
(virtual_machine.name, e))
self.debug("Starting the virtual machine after resetting the keypair")
try:
virtual_machine.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(virtual_machine.name, e))
timeout = wait_vm_start(self.apiclient, virtual_machine.id, self.services["timeout"],
self.services["sleep"])
if timeout == 0:
self.fail("The virtual machine %s failed to start even after %s minutes"
% (virtual_machine.name, self.services["timeout"]))
# In case of EIP setup, public IP changes after VM start operation
# Assign the new publicip of the VM to its ssh_ip attribute
# so that correct IP address is used for getting the ssh client of VM
virtual_machine = SetPublicIpForVM(self.apiclient, virtual_machine)
self.debug("SSHing with new keypair")
try:
virtual_machine.get_ssh_client(
keyPairFileLocation=str(keyPairFilePath))
except Exception as e:
self.fail("Failed to SSH into VM with new keypair: %s, %s" %
(virtual_machine.name, e))
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["simulator", "basic", "advanced"])
def test_05_reset_key_in_running_state(self):
"""Reset SSH keys for VM already having SSH key when VM is in running
state"""
# Validate the following
# 1.Create a VM having SSH keyPair
# 2. Reset SSH key pair. Api returns error message VM is running
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
keypair=self.keypair.name,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
with self.assertRaises(Exception):
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["simulator", "basic", "advanced"])
def test_06_reset_key_passwd_enabled_vm_running(self):
"""Reset SSH keys for VM created from password enabled template and
already having SSH key and VM is in running state"""
# Validate the following
# 1. Reset SSH keys for VM created from password enabled template
# and already having SSH key and VM is in running state
# 2. APi returns error message Vm is running
self.debug("Deploying the virtual machine in default network offering")
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
keypair=self.keypair.name,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
with self.assertRaises(Exception):
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["simulator", "basic", "advanced"])
def test_07_reset_keypair_invalid_params(self):
"""Verify API resetSSHKeyForVirtualMachine with incorrect parameters"""
# Validate the following
# 1. Create the VM
# 2. Stop the VM
# 3. Call resetSSHKeyForVirtualMachine API with incorrect parameter
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
keypair=self.keypair.name,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
with self.assertRaises(Exception):
virtual_machine.resetSshKey(
self.apiclient,
keypair=random_gen() + ".pem",
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Reset SSH key pair failed due to invalid parameters")
virtual_machine.delete(self.apiclient, expunge=True)
return
class TestResetSSHKeyUserRights(cloudstackTestCase):
@classmethod
def setUpClass(cls):
cls.testClient = super(TestResetSSHKeyUserRights, cls).getClsTestClient()
cls.api_client = cls.testClient.getApiClient()
cls.services = Services().services
# Get Zone, Domain and templates
cls.domain = get_domain(cls.api_client)
cls.zone = get_zone(cls.api_client, cls.testClient.getZoneForTests())
cls.services['mode'] = cls.zone.networktype
# Set Zones and disk offerings
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
# Create Account, VMs, NAT Rules etc
template = get_template(
cls.api_client,
cls.zone.id,
cls.services["ostype"]
)
# Set Zones and disk offerings
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.services["virtual_machine"]["template"] = template.id
# Create VMs, NAT Rules etc
cls.account = Account.create(
cls.api_client,
cls.services["account"],
domainid=cls.domain.id
)
cls.service_offering = ServiceOffering.create(
cls.api_client,
cls.services["service_offering"]
)
cls.virtual_machine = VirtualMachine.create(
cls.api_client,
cls.services["virtual_machine"],
accountid=cls.account.name,
domainid=cls.account.domainid,
serviceofferingid=cls.service_offering.id,
mode=cls.services["mode"]
)
networkid = cls.virtual_machine.nic[0].networkid
# create egress rule to allow wget of my cloud-set-guest-password script
if cls.zone.networktype.lower() == 'advanced':
EgressFireWallRule.create(cls.api_client,
networkid=networkid,
protocol=cls.services["egress"]["protocol"],
startport=cls.services["egress"]["startport"],
endport=cls.services["egress"]["endport"],
cidrlist=cls.services["egress"]["cidrlist"])
cls.virtual_machine.password = cls.services["virtual_machine"]["password"]
ssh = cls.virtual_machine.get_ssh_client()
#below steps are required to get the new password from VR(reset password)
#http://cloudstack.org/dl/cloud-set-guest-password
#Copy this file to /etc/init.d
#chmod +x /etc/init.d/cloud-set-guest-password
#chkconfig --add cloud-set-guest-password
# Do similar steps to get SSH key from web so as to make it ssh enabled
cmds = [
"cd /etc/init.d;wget http://downloads.sourceforge.net/project/cloudstack/SSH%20Key%20Gen%20Script/" + \
"cloud-set-guest-sshkey.in?r=http%3A%2F%2Fsourceforge" + \
".net%2Fprojects%2Fcloudstack%2Ffiles%2FSSH%2520Key%2520Gen%2520Script%2F&ts=1331225219&use_mirror=iweb",
"chmod +x /etc/init.d/cloud-set-guest-sshkey.in",
"chkconfig --add cloud-set-guest-sshkey.in"
]
for c in cmds:
ssh.execute(c)
# Adding delay of 120 sec to avoid data loss due to timing issue
time.sleep(120)
try:
#Stop virtual machine
cls.virtual_machine.stop(cls.api_client)
except Exception as e:
cls.tearDownClass()
raise unittest.SkipTest("Exception in setUpClass: %s" % e)
list_volume = Volume.list(
cls.api_client,
virtualmachineid=cls.virtual_machine.id,
type='ROOT',
listall=True
)
if isinstance(list_volume, list):
cls.volume = list_volume[0]
else:
raise Exception(
"Exception: Unable to find root volume for VM: %s" %
cls.virtual_machine.id)
cls.services["template"]["ostype"] = cls.services["ostype"]
#Create templates for Edit, Delete & update permissions testcases
cls.pw_ssh_enabled_template = Template.create(
cls.api_client,
cls.services["template"],
cls.volume.id
)
# Delete the VM - No longer needed
cls.virtual_machine.delete(cls.api_client, expunge=True)
cls._cleanup = [
cls.service_offering,
cls.pw_ssh_enabled_template,
cls.account
]
@classmethod
def tearDownClass(cls):
# Cleanup VMs, templates etc.
cleanup_resources(cls.api_client, cls._cleanup)
return
def setUp(self):
self.apiclient = self.testClient.getApiClient()
self.dbclient = self.testClient.getDbConnection()
# Set Zones and disk offerings
self.services["virtual_machine"]["zoneid"] = self.zone.id
self.service_offering = ServiceOffering.create(
self.apiclient,
self.services["service_offering"]
)
# Cleanup
self.cleanup = [self.service_offering]
def tearDown(self):
try:
#Clean up, terminate the created accounts, domains etc
cleanup_resources(self.apiclient, self.cleanup)
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return
@attr(tags=["basic", "advanced"], required_hardware="true")
def test_01_reset_keypair_normal_user(self):
"""Verify API resetSSHKeyForVirtualMachine for non admin non root
domain user"""
# Validate the following
# 1. Create a VM for non admin non root domain user
# 2. Stop the VM
# 3. Reset SSH key pair for non admin non root domain user. Verify VM
# is not restarted automatically as a result of API execution
# User should be able to ssh into the VM using new keypair when
# VM is restarted
# Create account, SSH key pair etc.
self.debug("Creating a normal user account")
self.user_account = Account.create(
self.apiclient,
self.services["account"],
admin=False
)
self.cleanup.append(self.user_account)
self.debug("Account created: %s" % self.user_account.name)
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.user_account.name,
domainid=self.user_account.domainid,
zoneid=self.zone.id,
serviceofferingid=self.service_offering.id,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Stopping the virtual machine")
try:
virtual_machine.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop virtual machine: %s, %s" %
(virtual_machine.id, e))
self.debug("Creating a new SSH keypair for account: %s" %
self.user_account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.user_account.name,
domainid=self.user_account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
try:
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.user_account.name,
domainid=self.user_account.domainid
)
except Exception as e:
self.fail("Failed to reset SSH key: %s, %s" %
(virtual_machine.name, e))
self.debug("Starting the virtual machine after resetting the keypair")
try:
virtual_machine.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(virtual_machine.name, e))
timeout = wait_vm_start(self.apiclient, virtual_machine.id, self.services["timeout"],
self.services["sleep"])
if timeout == 0:
self.fail("The virtual machine %s failed to start even after %s minutes"
% (vms[0].name, self.services["timeout"]))
# In case of EIP setup, public IP changes after VM start operation
# Assign the new publicip of the VM to its ssh_ip attribute
# so that correct IP address is used for getting the ssh client of VM
virtual_machine = SetPublicIpForVM(self.apiclient, virtual_machine)
self.debug("SSHing with new keypair")
try:
virtual_machine.get_ssh_client(
keyPairFileLocation=str(keyPairFilePath))
except Exception as e:
self.fail("Failed to SSH into VM with new keypair: %s, %s" %
(virtual_machine.name, e))
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["basic", "advanced"], required_hardware="true")
def test_02_reset_keypair_domain_admin(self):
"""Verify API resetSSHKeyForVirtualMachine for domain admin non root
domain user"""
# Validate the following
# 1.Create a VM for domain admin non root domain user
# 2. Stop the VM
# 3. Reset SSH key pair for domain admin non root domain user. Verify
# VM is not restarted automatically as a result of API execution
# User should be able to ssh into the VM using new keypair when
# VM is restarted
# Create account, SSH key pair etc.
self.debug("Creating a domain admin account")
self.account = Account.create(
self.apiclient,
self.services["account"],
admin=True,
domainid=self.domain.id
)
self.cleanup.append(self.account)
self.debug("Account created: %s" % self.account.name)
self.debug("Generating SSH keypair for the account: %s" %
self.account.name)
self.keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + self.keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(self.keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
serviceofferingid=self.service_offering.id,
keypair=self.keypair.name,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Stopping the virtual machine")
try:
virtual_machine.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop virtual machine: %s, %s" %
(virtual_machine.id, e))
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
try:
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
except Exception as e:
self.fail("Failed to reset SSH key: %s, %s" %
(virtual_machine.name, e))
self.debug("Starting the virtual machine after resetting the keypair")
try:
virtual_machine.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(virtual_machine.name, e))
timeout = wait_vm_start(self.apiclient, virtual_machine.id, self.services["timeout"],
self.services["sleep"])
if timeout == 0:
self.fail("The virtual machine %s failed to start even after %s minutes"
% (virtual_machine.name, self.services["timeout"]))
# In case of EIP setup, public IP changes after VM start operation
# Assign the new publicip of the VM to its ssh_ip attribute
# so that correct IP address is used for getting the ssh client of VM
virtual_machine = SetPublicIpForVM(self.apiclient, virtual_machine)
self.debug("SSHing with new keypair")
try:
virtual_machine.get_ssh_client(
keyPairFileLocation=str(keyPairFilePath))
except Exception as e:
self.fail("Failed to SSH into VM with new keypair: %s, %s" %
(virtual_machine.name, e))
virtual_machine.delete(self.apiclient, expunge=True)
return
@attr(tags=["basic", "advanced"], required_hardware="true")
def test_03_reset_keypair_root_admin(self):
"""Verify API resetSSHKeyForVirtualMachine for domain admin root
domain user"""
# Validate the following
# 1.Create a VM for domain admin, root domain user
# 2. Stop the VM
# 3. Reset SSH key pair for domain admin non root domain user. Verify
# VM is not restarted automatically as a result of API execution
# User should be able to ssh into the VM using new keypair when
# VM is restarted
# Create account, SSH key pair etc.
self.debug("Creating a ROOT admin account")
self.account = Account.create(
self.apiclient,
self.services["account"],
admin=True
)
self.cleanup.append(self.account)
self.debug("Account created: %s" % self.account.name)
self.debug("Generating SSH keypair for the account: %s" %
self.account.name)
self.keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + self.keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(self.keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Deploying the virtual machine in default network offering")
# Spawn an instance
virtual_machine = VirtualMachine.create(
self.apiclient,
self.services["virtual_machine"],
templateid=self.pw_ssh_enabled_template.id,
accountid=self.account.name,
domainid=self.account.domainid,
serviceofferingid=self.service_offering.id,
keypair=self.keypair.name,
mode=self.services["mode"]
)
self.debug("Check if the VM is properly deployed or not?")
vms = VirtualMachine.list(
self.apiclient,
id=virtual_machine.id,
listall=True
)
self.assertEqual(
isinstance(vms, list),
True,
"List VMs should return the valid list"
)
vm = vms[0]
self.assertEqual(
vm.state,
"Running",
"VM state should be running after deployment"
)
self.debug("Stopping the virtual machine")
try:
virtual_machine.stop(self.apiclient)
except Exception as e:
self.fail("Failed to stop virtual machine: %s, %s" %
(virtual_machine.id, e))
self.debug("Creating a new SSH keypair for account: %s" %
self.account.name)
new_keypair = SSHKeyPair.create(
self.apiclient,
name=random_gen() + ".pem",
account=self.account.name,
domainid=self.account.domainid
)
self.debug("Created a new keypair with name: %s" % new_keypair.name)
self.debug("Writing the private key to local file")
keyPairFilePath = tempfile.gettempdir() + os.sep + new_keypair.name
self.debug("File path: %s" % keyPairFilePath)
f = open(keyPairFilePath, "w+")
f.write(new_keypair.privatekey)
f.close()
os.system("chmod 400 " + keyPairFilePath)
self.debug("Resetting the SSH key pair for instance: %s" %
virtual_machine.name)
try:
virtual_machine.resetSshKey(
self.apiclient,
keypair=new_keypair.name,
name=new_keypair.name,
account=self.account.name,
domainid=self.account.domainid
)
except Exception as e:
self.fail("Failed to reset SSH key: %s, %s" %
(virtual_machine.name, e))
self.debug("Starting the virtual machine after resetting the keypair")
try:
virtual_machine.start(self.apiclient)
except Exception as e:
self.fail("Failed to start virtual machine: %s, %s" %
(virtual_machine.name, e))
timeout = wait_vm_start(self.apiclient, virtual_machine.id, self.services["timeout"],
self.services["sleep"])
if timeout == 0:
self.fail("The virtual machine %s failed to start even after %s minutes"
% (virtual_machine.name, self.services["timeout"]))
# In case of EIP setup, public IP changes after VM start operation
# Assign the new publicip of the VM to its ssh_ip attribute
# so that correct IP address is used for getting the ssh client of VM
virtual_machine = SetPublicIpForVM(self.apiclient, virtual_machine)
self.debug("SSHing with new keypair")
try:
virtual_machine.get_ssh_client(
keyPairFileLocation=str(keyPairFilePath))
except Exception as e:
self.fail("Failed to SSH into VM with new keypair: %s, %s" %
(virtual_machine.name, e))
virtual_machine.delete(self.apiclient, expunge=True)
return
| 43.999339
| 121
| 0.487863
| 6,236
| 66,615
| 5.132136
| 0.070237
| 0.091426
| 0.020154
| 0.01856
| 0.897388
| 0.88617
| 0.885639
| 0.880859
| 0.87086
| 0.860736
| 0
| 0.006193
| 0.435187
| 66,615
| 1,513
| 122
| 44.02842
| 0.844412
| 0.112602
| 0
| 0.802667
| 0
| 0.004444
| 0.149032
| 0.008809
| 0
| 0
| 0
| 0
| 0.020444
| 1
| 0.018667
| false
| 0.014222
| 0.008
| 0
| 0.044444
| 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
|
db81ab42aac284015f2f66e3f121f84d1967675f
| 6,683
|
py
|
Python
|
loldib/getratings/models/NA/na_drmundo/na_drmundo_sup.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_drmundo/na_drmundo_sup.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_drmundo/na_drmundo_sup.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
from getratings.models.ratings import Ratings
class NA_DrMundo_Sup_Aatrox(Ratings):
pass
class NA_DrMundo_Sup_Ahri(Ratings):
pass
class NA_DrMundo_Sup_Akali(Ratings):
pass
class NA_DrMundo_Sup_Alistar(Ratings):
pass
class NA_DrMundo_Sup_Amumu(Ratings):
pass
class NA_DrMundo_Sup_Anivia(Ratings):
pass
class NA_DrMundo_Sup_Annie(Ratings):
pass
class NA_DrMundo_Sup_Ashe(Ratings):
pass
class NA_DrMundo_Sup_AurelionSol(Ratings):
pass
class NA_DrMundo_Sup_Azir(Ratings):
pass
class NA_DrMundo_Sup_Bard(Ratings):
pass
class NA_DrMundo_Sup_Blitzcrank(Ratings):
pass
class NA_DrMundo_Sup_Brand(Ratings):
pass
class NA_DrMundo_Sup_Braum(Ratings):
pass
class NA_DrMundo_Sup_Caitlyn(Ratings):
pass
class NA_DrMundo_Sup_Camille(Ratings):
pass
class NA_DrMundo_Sup_Cassiopeia(Ratings):
pass
class NA_DrMundo_Sup_Chogath(Ratings):
pass
class NA_DrMundo_Sup_Corki(Ratings):
pass
class NA_DrMundo_Sup_Darius(Ratings):
pass
class NA_DrMundo_Sup_Diana(Ratings):
pass
class NA_DrMundo_Sup_Draven(Ratings):
pass
class NA_DrMundo_Sup_DrMundo(Ratings):
pass
class NA_DrMundo_Sup_Ekko(Ratings):
pass
class NA_DrMundo_Sup_Elise(Ratings):
pass
class NA_DrMundo_Sup_Evelynn(Ratings):
pass
class NA_DrMundo_Sup_Ezreal(Ratings):
pass
class NA_DrMundo_Sup_Fiddlesticks(Ratings):
pass
class NA_DrMundo_Sup_Fiora(Ratings):
pass
class NA_DrMundo_Sup_Fizz(Ratings):
pass
class NA_DrMundo_Sup_Galio(Ratings):
pass
class NA_DrMundo_Sup_Gangplank(Ratings):
pass
class NA_DrMundo_Sup_Garen(Ratings):
pass
class NA_DrMundo_Sup_Gnar(Ratings):
pass
class NA_DrMundo_Sup_Gragas(Ratings):
pass
class NA_DrMundo_Sup_Graves(Ratings):
pass
class NA_DrMundo_Sup_Hecarim(Ratings):
pass
class NA_DrMundo_Sup_Heimerdinger(Ratings):
pass
class NA_DrMundo_Sup_Illaoi(Ratings):
pass
class NA_DrMundo_Sup_Irelia(Ratings):
pass
class NA_DrMundo_Sup_Ivern(Ratings):
pass
class NA_DrMundo_Sup_Janna(Ratings):
pass
class NA_DrMundo_Sup_JarvanIV(Ratings):
pass
class NA_DrMundo_Sup_Jax(Ratings):
pass
class NA_DrMundo_Sup_Jayce(Ratings):
pass
class NA_DrMundo_Sup_Jhin(Ratings):
pass
class NA_DrMundo_Sup_Jinx(Ratings):
pass
class NA_DrMundo_Sup_Kalista(Ratings):
pass
class NA_DrMundo_Sup_Karma(Ratings):
pass
class NA_DrMundo_Sup_Karthus(Ratings):
pass
class NA_DrMundo_Sup_Kassadin(Ratings):
pass
class NA_DrMundo_Sup_Katarina(Ratings):
pass
class NA_DrMundo_Sup_Kayle(Ratings):
pass
class NA_DrMundo_Sup_Kayn(Ratings):
pass
class NA_DrMundo_Sup_Kennen(Ratings):
pass
class NA_DrMundo_Sup_Khazix(Ratings):
pass
class NA_DrMundo_Sup_Kindred(Ratings):
pass
class NA_DrMundo_Sup_Kled(Ratings):
pass
class NA_DrMundo_Sup_KogMaw(Ratings):
pass
class NA_DrMundo_Sup_Leblanc(Ratings):
pass
class NA_DrMundo_Sup_LeeSin(Ratings):
pass
class NA_DrMundo_Sup_Leona(Ratings):
pass
class NA_DrMundo_Sup_Lissandra(Ratings):
pass
class NA_DrMundo_Sup_Lucian(Ratings):
pass
class NA_DrMundo_Sup_Lulu(Ratings):
pass
class NA_DrMundo_Sup_Lux(Ratings):
pass
class NA_DrMundo_Sup_Malphite(Ratings):
pass
class NA_DrMundo_Sup_Malzahar(Ratings):
pass
class NA_DrMundo_Sup_Maokai(Ratings):
pass
class NA_DrMundo_Sup_MasterYi(Ratings):
pass
class NA_DrMundo_Sup_MissFortune(Ratings):
pass
class NA_DrMundo_Sup_MonkeyKing(Ratings):
pass
class NA_DrMundo_Sup_Mordekaiser(Ratings):
pass
class NA_DrMundo_Sup_Morgana(Ratings):
pass
class NA_DrMundo_Sup_Nami(Ratings):
pass
class NA_DrMundo_Sup_Nasus(Ratings):
pass
class NA_DrMundo_Sup_Nautilus(Ratings):
pass
class NA_DrMundo_Sup_Nidalee(Ratings):
pass
class NA_DrMundo_Sup_Nocturne(Ratings):
pass
class NA_DrMundo_Sup_Nunu(Ratings):
pass
class NA_DrMundo_Sup_Olaf(Ratings):
pass
class NA_DrMundo_Sup_Orianna(Ratings):
pass
class NA_DrMundo_Sup_Ornn(Ratings):
pass
class NA_DrMundo_Sup_Pantheon(Ratings):
pass
class NA_DrMundo_Sup_Poppy(Ratings):
pass
class NA_DrMundo_Sup_Quinn(Ratings):
pass
class NA_DrMundo_Sup_Rakan(Ratings):
pass
class NA_DrMundo_Sup_Rammus(Ratings):
pass
class NA_DrMundo_Sup_RekSai(Ratings):
pass
class NA_DrMundo_Sup_Renekton(Ratings):
pass
class NA_DrMundo_Sup_Rengar(Ratings):
pass
class NA_DrMundo_Sup_Riven(Ratings):
pass
class NA_DrMundo_Sup_Rumble(Ratings):
pass
class NA_DrMundo_Sup_Ryze(Ratings):
pass
class NA_DrMundo_Sup_Sejuani(Ratings):
pass
class NA_DrMundo_Sup_Shaco(Ratings):
pass
class NA_DrMundo_Sup_Shen(Ratings):
pass
class NA_DrMundo_Sup_Shyvana(Ratings):
pass
class NA_DrMundo_Sup_Singed(Ratings):
pass
class NA_DrMundo_Sup_Sion(Ratings):
pass
class NA_DrMundo_Sup_Sivir(Ratings):
pass
class NA_DrMundo_Sup_Skarner(Ratings):
pass
class NA_DrMundo_Sup_Sona(Ratings):
pass
class NA_DrMundo_Sup_Soraka(Ratings):
pass
class NA_DrMundo_Sup_Swain(Ratings):
pass
class NA_DrMundo_Sup_Syndra(Ratings):
pass
class NA_DrMundo_Sup_TahmKench(Ratings):
pass
class NA_DrMundo_Sup_Taliyah(Ratings):
pass
class NA_DrMundo_Sup_Talon(Ratings):
pass
class NA_DrMundo_Sup_Taric(Ratings):
pass
class NA_DrMundo_Sup_Teemo(Ratings):
pass
class NA_DrMundo_Sup_Thresh(Ratings):
pass
class NA_DrMundo_Sup_Tristana(Ratings):
pass
class NA_DrMundo_Sup_Trundle(Ratings):
pass
class NA_DrMundo_Sup_Tryndamere(Ratings):
pass
class NA_DrMundo_Sup_TwistedFate(Ratings):
pass
class NA_DrMundo_Sup_Twitch(Ratings):
pass
class NA_DrMundo_Sup_Udyr(Ratings):
pass
class NA_DrMundo_Sup_Urgot(Ratings):
pass
class NA_DrMundo_Sup_Varus(Ratings):
pass
class NA_DrMundo_Sup_Vayne(Ratings):
pass
class NA_DrMundo_Sup_Veigar(Ratings):
pass
class NA_DrMundo_Sup_Velkoz(Ratings):
pass
class NA_DrMundo_Sup_Vi(Ratings):
pass
class NA_DrMundo_Sup_Viktor(Ratings):
pass
class NA_DrMundo_Sup_Vladimir(Ratings):
pass
class NA_DrMundo_Sup_Volibear(Ratings):
pass
class NA_DrMundo_Sup_Warwick(Ratings):
pass
class NA_DrMundo_Sup_Xayah(Ratings):
pass
class NA_DrMundo_Sup_Xerath(Ratings):
pass
class NA_DrMundo_Sup_XinZhao(Ratings):
pass
class NA_DrMundo_Sup_Yasuo(Ratings):
pass
class NA_DrMundo_Sup_Yorick(Ratings):
pass
class NA_DrMundo_Sup_Zac(Ratings):
pass
class NA_DrMundo_Sup_Zed(Ratings):
pass
class NA_DrMundo_Sup_Ziggs(Ratings):
pass
class NA_DrMundo_Sup_Zilean(Ratings):
pass
class NA_DrMundo_Sup_Zyra(Ratings):
pass
| 16.026379
| 46
| 0.77151
| 972
| 6,683
| 4.878601
| 0.151235
| 0.203712
| 0.407423
| 0.494728
| 0.808941
| 0.808941
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166243
| 6,683
| 416
| 47
| 16.064904
| 0.851041
| 0
| 0
| 0.498195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498195
| 0.00361
| 0
| 0.501805
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 8
|
db85b5e9bfe8004ad6fd6f3de3cbd84311de3109
| 3,224
|
py
|
Python
|
jogo-da-forca/interface.py
|
gustavo-mendel/jogos-com-python
|
4619cb7af5d0bd29e0447711e76d5e9f90e162ac
|
[
"MIT"
] | null | null | null |
jogo-da-forca/interface.py
|
gustavo-mendel/jogos-com-python
|
4619cb7af5d0bd29e0447711e76d5e9f90e162ac
|
[
"MIT"
] | null | null | null |
jogo-da-forca/interface.py
|
gustavo-mendel/jogos-com-python
|
4619cb7af5d0bd29e0447711e76d5e9f90e162ac
|
[
"MIT"
] | null | null | null |
def imprimeVitoria():
print(" Parabéns, você ganhou!")
print(" ___________ ")
print(" '._==_==_=_.' ")
print(" .-\\: /-. ")
print(" | (|:. |) | ")
print(" '-|:. |-' ")
print(" \\::. / ")
print(" '::. .' ")
print(" ) ( ")
print(" _.' '._ ")
print(" '-------' \n")
def imprimeDerrota():
print(" Puxa, você foi enforcado! ")
print(" _______________ ")
print(" / \\ ")
print(" / \\ ")
print(" // \\/\\ ")
print(" \\| XXXX XXXX | / ")
print(" | XXXX XXXX |/ ")
print(" | XXX XXX | ")
print(" | | ")
print(" \\__ XXX __/ ")
print(" |\\ XXX /| ")
print(" | | | | ")
print(" | I I I I I I I | ")
print(" | I I I I I I | ")
print(" \\_ _/ ")
print(" \\_ _/ ")
print(" \\_______/ ")
print(" \n")
def imprimeForca(erros):
if erros == 0:
print(" _______ ")
print(" |/ | ")
print(" | ")
print(" | ")
print(" | ")
print(" | ")
print(" | ")
print("_|___ ")
print("\n")
elif erros == 1:
print(" _______ ")
print(" |/ | ")
print(" | (_) ")
print(" | ")
print(" | ")
print(" | ")
print(" | ")
print("_|___ ")
print("\n")
elif erros == 2:
print(" _______ ")
print(" |/ | ")
print(" | (_) ")
print(" | | ")
print(" | | ")
print(" | ")
print(" | ")
print("_|___ ")
print("\n")
elif erros == 3:
print(" _______ ")
print(" |/ | ")
print(" | (_) ")
print(" | \\| ")
print(" | | ")
print(" | ")
print(" | ")
print("_|___ ")
print("\n")
elif erros == 4:
print(" _______ ")
print(" |/ | ")
print(" | (_) ")
print(" | \\|/ ")
print(" | | ")
print(" | ")
print(" | ")
print("_|___ ")
print("\n")
elif erros == 5:
print(" _______ ")
print(" |/ | ")
print(" | (_) ")
print(" | \\|/ ")
print(" | | ")
print(" | / ")
print(" | ")
print("_|___ ")
print("\n")
elif erros == 6:
print(" _______ ")
print(" |/ | ")
print(" | (_) ")
print(" | \\|/ ")
print(" | | ")
print(" | / \\ ")
print(" | ")
print("_|___ ")
print("\n")
| 28.280702
| 54
| 0.248139
| 157
| 3,224
| 4.267516
| 0.159236
| 1.104478
| 1.38806
| 1.552239
| 0.749254
| 0.71194
| 0.679104
| 0.637313
| 0.637313
| 0.629851
| 0
| 0.004926
| 0.559243
| 3,224
| 114
| 55
| 28.280702
| 0.466573
| 0
| 0
| 0.647059
| 0
| 0
| 0.574884
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.029412
| false
| 0
| 0
| 0
| 0.029412
| 0.901961
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
dba22aac4c640de24e3ecadd67a80bfbb89bed58
| 13,328
|
py
|
Python
|
wisdem/test/test_towerse/test_tower_struct.py
|
johnjasa/WISDEM
|
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
|
[
"Apache-2.0"
] | null | null | null |
wisdem/test/test_towerse/test_tower_struct.py
|
johnjasa/WISDEM
|
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
|
[
"Apache-2.0"
] | null | null | null |
wisdem/test/test_towerse/test_tower_struct.py
|
johnjasa/WISDEM
|
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import numpy as np
import numpy.testing as npt
import wisdem.towerse.tower_struct as tow
from wisdem.towerse import RIGID
class TestStruct(unittest.TestCase):
def setUp(self):
self.inputs = {}
self.outputs = {}
self.discrete_inputs = {}
self.discrete_outputs = {}
# Store analysis options
self.modeling_options = {}
self.modeling_options["materials"] = {}
self.modeling_options["materials"]["n_mat"] = 1
self.modeling_options["flags"] = {}
self.modeling_options["flags"]["monopile"] = False
self.modeling_options["WISDEM"] = {}
self.modeling_options["WISDEM"]["TowerSE"] = {}
self.modeling_options["WISDEM"]["TowerSE"]["buckling_method"] = "eurocode"
self.modeling_options["WISDEM"]["TowerSE"]["buckling_length"] = 30.0
self.modeling_options["WISDEM"]["TowerSE"]["n_height_tower"] = 3
self.modeling_options["WISDEM"]["TowerSE"]["n_layers_tower"] = 1
self.modeling_options["WISDEM"]["TowerSE"]["n_height_monopile"] = 0
self.modeling_options["WISDEM"]["TowerSE"]["n_layers_monopile"] = 0
self.modeling_options["WISDEM"]["TowerSE"]["n_height"] = 3
self.modeling_options["WISDEM"]["TowerSE"]["n_refine"] = 3
self.modeling_options["WISDEM"]["TowerSE"]["wind"] = "PowerWind"
self.modeling_options["WISDEM"]["TowerSE"]["nLC"] = 1
self.modeling_options["WISDEM"]["TowerSE"]["soil_springs"] = False
self.modeling_options["WISDEM"]["TowerSE"]["gravity_foundation"] = False
self.modeling_options["WISDEM"]["TowerSE"]["gamma_f"] = 1.0
self.modeling_options["WISDEM"]["TowerSE"]["gamma_m"] = 1.0
self.modeling_options["WISDEM"]["TowerSE"]["gamma_n"] = 1.0
self.modeling_options["WISDEM"]["TowerSE"]["gamma_b"] = 1.0
self.modeling_options["WISDEM"]["TowerSE"]["gamma_fatigue"] = 1.0
# Simplified the options available to the user
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"] = {}
# self.modeling_options['TowerSE']['frame3dd']['DC'] = 80.0
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"]["shear"] = True
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"]["geom"] = True
# self.modeling_options['TowerSE']['frame3dd']['dx'] = -1
# self.modeling_options['TowerSE']['frame3dd']['nM'] = 6
# self.modeling_options['TowerSE']['frame3dd']['Mmethod'] = 1
# self.modeling_options['TowerSE']['frame3dd']['lump'] = 0
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"]["tol"] = 1e-9
# self.modeling_options['TowerSE']['frame3dd']['shift'] = 0.0
# self.modeling_options['TowerSE']['frame3dd']['add_gravity'] = True
def testPreFrame(self):
# Test Land
self.inputs["z_param"] = 10.0 * np.array([0.0, 3.0, 6.0])
self.inputs["z_full"] = 10.0 * np.arange(0, 7)
self.inputs["d_full"] = 6.0 * np.ones(self.inputs["z_full"].shape)
self.inputs["mass"] = 1e5
self.inputs["mI"] = np.r_[1e5, 1e5, 2e5, np.zeros(3)]
self.inputs["mrho"] = np.array([-3.0, 0.0, 1.0])
self.inputs["transition_piece_mass"] = 0.0
self.inputs["transition_piece_cost"] = 0.0
self.inputs["transition_piece_height"] = 0.0
self.inputs["transition_piece_I"] = np.zeros(6)
self.inputs["gravity_foundation_I"] = np.zeros(6)
self.inputs["gravity_foundation_mass"] = 0.0
self.inputs["suctionpile_depth"] = 0.0
self.inputs["rna_F"] = 1e5 * np.arange(2,5)
self.inputs["rna_M"] = 1e6 * np.arange(2,5)
self.inputs["E"] = 1e9 * np.ones(2)
self.inputs["G"] = 1e8 * np.ones(2)
self.inputs["sigma_y"] = 1e8 * np.ones(2)
myobj = tow.TowerPreFrame(n_height=3, n_refine=3, monopile=False)
myobj.compute(self.inputs, self.outputs)
npt.assert_equal(self.outputs["kidx"], np.array([0]))
npt.assert_equal(self.outputs["kx"], np.array([RIGID]))
npt.assert_equal(self.outputs["ky"], np.array([RIGID]))
npt.assert_equal(self.outputs["kz"], np.array([RIGID]))
npt.assert_equal(self.outputs["ktx"], np.array([RIGID]))
npt.assert_equal(self.outputs["kty"], np.array([RIGID]))
npt.assert_equal(self.outputs["ktz"], np.array([RIGID]))
npt.assert_equal(self.outputs["midx"], np.zeros(2))
npt.assert_equal(self.outputs["m"], np.zeros(2))
npt.assert_equal(self.outputs["mrhox"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoy"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoz"], np.zeros(2))
npt.assert_equal(self.outputs["mIxx"], np.zeros(2))
npt.assert_equal(self.outputs["mIyy"], np.zeros(2))
npt.assert_equal(self.outputs["mIzz"], np.zeros(2))
npt.assert_equal(self.outputs["mIxy"], np.zeros(2))
npt.assert_equal(self.outputs["mIxz"], np.zeros(2))
npt.assert_equal(self.outputs["mIyz"], np.zeros(2))
npt.assert_equal(self.outputs["plidx"], np.array([6]))
npt.assert_equal(self.outputs["Fx"], np.array([2e5]))
npt.assert_equal(self.outputs["Fy"], np.array([3e5]))
npt.assert_equal(self.outputs["Fz"], np.array([4e5]))
npt.assert_equal(self.outputs["Mxx"], np.array([2e6]))
npt.assert_equal(self.outputs["Myy"], np.array([3e6]))
npt.assert_equal(self.outputs["Mzz"], np.array([4e6]))
# Test Monopile no springs, no GBF
self.inputs["z_full"] = 10.0 * np.arange(-6, 7)
self.inputs["d_full"] = 6.0 * np.ones(self.inputs["z_full"].shape)
self.inputs["transition_piece_mass"] = 1e3
self.inputs["transition_piece_cost"] = 1e4
self.inputs["transition_piece_I"] = 1e3 * 9 * np.r_[0.5, 0.5, 1.0, np.zeros(3)]
self.inputs["transition_piece_height"] = 10.0
self.inputs["gravity_foundation_mass"] = 0.0 # 1e4
self.inputs["suctionpile_depth"] = 30.0
self.inputs["rna_F"] = 1e5 * np.arange(2,5)
self.inputs["rna_M"] = 1e6 * np.arange(2,5)
self.inputs["k_soil"] = (20.0 + np.arange(6))[np.newaxis, :] * np.ones((2, 6))
self.inputs["z_soil"] = np.r_[-30.0, 0.0]
myobj = tow.TowerPreFrame(n_height=5, n_refine=3, monopile=True, soil_springs=False)
myobj.compute(self.inputs, self.outputs)
npt.assert_equal(self.outputs["kidx"], np.arange(4))
npt.assert_equal(self.outputs["kx"], RIGID)
npt.assert_equal(self.outputs["ky"], RIGID)
npt.assert_equal(self.outputs["kz"], RIGID)
npt.assert_equal(self.outputs["ktx"], RIGID)
npt.assert_equal(self.outputs["kty"], RIGID)
npt.assert_equal(self.outputs["ktz"], RIGID)
npt.assert_equal(self.outputs["midx"], np.array([7, 0]))
npt.assert_equal(self.outputs["m"], np.array([1e3, 0.0]))
npt.assert_equal(self.outputs["mrhox"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoy"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoz"], np.zeros(2))
npt.assert_equal(self.outputs["mIxx"], np.array([1e3 * 9 * 0.5, 0]))
npt.assert_equal(self.outputs["mIyy"], np.array([1e3 * 9 * 0.5, 0]))
npt.assert_equal(self.outputs["mIzz"], np.array([1e3 * 9, 0]))
npt.assert_equal(self.outputs["mIxy"], np.zeros(2))
npt.assert_equal(self.outputs["mIxz"], np.zeros(2))
npt.assert_equal(self.outputs["mIyz"], np.zeros(2))
npt.assert_equal(self.outputs["plidx"], np.array([12]))
npt.assert_equal(self.outputs["Fx"], np.array([2e5]))
npt.assert_equal(self.outputs["Fy"], np.array([3e5]))
npt.assert_equal(self.outputs["Fz"], np.array([4e5]))
npt.assert_equal(self.outputs["Mxx"], np.array([2e6]))
npt.assert_equal(self.outputs["Myy"], np.array([3e6]))
npt.assert_equal(self.outputs["Mzz"], np.array([4e6]))
# Test Monopile springs, no GBF
self.inputs["z_full"] = 10.0 * np.arange(-6, 7)
self.inputs["d_full"] = 6.0 * np.ones(self.inputs["z_full"].shape)
self.inputs["transition_piece_mass"] = 1e3
self.inputs["transition_piece_cost"] = 1e4
self.inputs["transition_piece_I"] = 1e3 * 9 * np.r_[0.5, 0.5, 1.0, np.zeros(3)]
self.inputs["transition_piece_height"] = 10.0
self.inputs["gravity_foundation_mass"] = 0.0 # 1e4
self.inputs["suctionpile_depth"] = 30.0
self.inputs["rna_F"] = 1e5 * np.arange(2,5)
self.inputs["rna_M"] = 1e6 * np.arange(2,5)
self.inputs["k_soil"] = (20.0 + np.arange(6))[np.newaxis, :] * np.ones((2, 6))
self.inputs["z_soil"] = np.r_[-30.0, 0.0]
myobj = tow.TowerPreFrame(n_height=5, n_refine=3, monopile=True, soil_springs=True)
myobj.compute(self.inputs, self.outputs)
npt.assert_equal(self.outputs["kidx"], np.arange(4))
npt.assert_equal(self.outputs["kx"], 20.0)
npt.assert_equal(self.outputs["ky"], 22.0)
npt.assert_equal(self.outputs["kz"], np.r_[24.0, np.zeros(3)])
npt.assert_equal(self.outputs["ktx"], 21.0)
npt.assert_equal(self.outputs["kty"], 23.0)
npt.assert_equal(self.outputs["ktz"], 25.0)
npt.assert_equal(self.outputs["midx"], np.array([7, 0]))
npt.assert_equal(self.outputs["m"], np.array([1e3, 0.0]))
npt.assert_equal(self.outputs["mrhox"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoy"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoz"], np.zeros(2))
npt.assert_equal(self.outputs["mIxx"], np.array([1e3 * 9 * 0.5, 0]))
npt.assert_equal(self.outputs["mIyy"], np.array([1e3 * 9 * 0.5, 0]))
npt.assert_equal(self.outputs["mIzz"], np.array([1e3 * 9, 0]))
npt.assert_equal(self.outputs["mIxy"], np.zeros(2))
npt.assert_equal(self.outputs["mIxz"], np.zeros(2))
npt.assert_equal(self.outputs["mIyz"], np.zeros(2))
npt.assert_equal(self.outputs["plidx"], np.array([12]))
npt.assert_equal(self.outputs["Fx"], np.array([2e5]))
npt.assert_equal(self.outputs["Fy"], np.array([3e5]))
npt.assert_equal(self.outputs["Fz"], np.array([4e5]))
npt.assert_equal(self.outputs["Mxx"], np.array([2e6]))
npt.assert_equal(self.outputs["Myy"], np.array([3e6]))
npt.assert_equal(self.outputs["Mzz"], np.array([4e6]))
# Test Monopile with GBF- TODO: THESE REACTIONS NEED THOUGHT
self.inputs["z_full"] = 10.0 * np.arange(-6, 7)
self.inputs["d_full"] = 6.0 * np.ones(self.inputs["z_full"].shape)
self.inputs["transition_piece_mass"] = 1e3
self.inputs["transition_piece_cost"] = 1e4
self.inputs["transition_piece_height"] = 10.0
self.inputs["transition_piece_I"] = 1e3 * 9 * np.r_[0.5, 0.5, 1.0, np.zeros(3)]
self.inputs["gravity_foundation_I"] = 0.5 * 1e4 * 9 * np.r_[0.5, 0.5, 1.0, np.zeros(3)]
self.inputs["gravity_foundation_mass"] = 1e4
self.inputs["suctionpile_depth"] = 0.0
self.inputs["rna_F"] = 1e5 * np.arange(2,5)
self.inputs["rna_M"] = 1e6 * np.arange(2,5)
self.inputs["k_soil"] = (20.0 + np.arange(6))[np.newaxis, :] * np.ones((2, 6))
self.inputs["z_soil"] = np.r_[-30.0, 0.0]
myobj = tow.TowerPreFrame(n_height=5, n_refine=3, monopile=True, gravity_foundation=True)
myobj.compute(self.inputs, self.outputs)
npt.assert_equal(self.outputs["kidx"], np.array([0]))
npt.assert_equal(self.outputs["kx"], np.array([RIGID]))
npt.assert_equal(self.outputs["ky"], np.array([RIGID]))
npt.assert_equal(self.outputs["kz"], np.array([RIGID]))
npt.assert_equal(self.outputs["ktx"], np.array([RIGID]))
npt.assert_equal(self.outputs["kty"], np.array([RIGID]))
npt.assert_equal(self.outputs["ktz"], np.array([RIGID]))
npt.assert_equal(self.outputs["midx"], np.array([7, 0]))
npt.assert_equal(self.outputs["m"], np.array([1e3, 1e4]))
npt.assert_equal(self.outputs["mrhox"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoy"], np.zeros(2))
npt.assert_equal(self.outputs["mrhoz"], np.zeros(2))
npt.assert_equal(self.outputs["mIxx"], np.array([1e3 * 9 * 0.5, 1e4 * 9 * 0.25]))
npt.assert_equal(self.outputs["mIyy"], np.array([1e3 * 9 * 0.5, 1e4 * 9 * 0.25]))
npt.assert_equal(self.outputs["mIzz"], np.array([1e3 * 9, 1e4 * 9 * 0.5]))
npt.assert_equal(self.outputs["mIxy"], np.zeros(2))
npt.assert_equal(self.outputs["mIxz"], np.zeros(2))
npt.assert_equal(self.outputs["mIyz"], np.zeros(2))
npt.assert_equal(self.outputs["plidx"], np.array([12]))
npt.assert_equal(self.outputs["Fx"], np.array([2e5]))
npt.assert_equal(self.outputs["Fy"], np.array([3e5]))
npt.assert_equal(self.outputs["Fz"], np.array([4e5]))
npt.assert_equal(self.outputs["Mxx"], np.array([2e6]))
npt.assert_equal(self.outputs["Myy"], np.array([3e6]))
npt.assert_equal(self.outputs["Mzz"], np.array([4e6]))
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestStruct))
return suite
if __name__ == "__main__":
result = unittest.TextTestRunner().run(suite())
if result.wasSuccessful():
exit(0)
else:
exit(1)
| 50.870229
| 97
| 0.614046
| 1,896
| 13,328
| 4.177743
| 0.095464
| 0.145815
| 0.176745
| 0.227244
| 0.877541
| 0.828052
| 0.755713
| 0.704204
| 0.641712
| 0.640576
| 0
| 0.042528
| 0.190201
| 13,328
| 261
| 98
| 51.065134
| 0.691374
| 0.048019
| 0
| 0.57277
| 0
| 0
| 0.128314
| 0.027778
| 0
| 0
| 0
| 0.003831
| 0.469484
| 1
| 0.014085
| false
| 0
| 0.023474
| 0
| 0.046948
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dbc169ed3975f7b51c1c923a2614c99342128afa
| 2,860
|
py
|
Python
|
2019/Day 3.py
|
Grffiin/AdventOfCode2
|
7bfec1c43f80cd74ac25eebebf4bc1f8d38c4664
|
[
"MIT"
] | null | null | null |
2019/Day 3.py
|
Grffiin/AdventOfCode2
|
7bfec1c43f80cd74ac25eebebf4bc1f8d38c4664
|
[
"MIT"
] | null | null | null |
2019/Day 3.py
|
Grffiin/AdventOfCode2
|
7bfec1c43f80cd74ac25eebebf4bc1f8d38c4664
|
[
"MIT"
] | null | null | null |
def manhattan(p1: tuple, p2: tuple) -> int:
return abs(p1[0] - p2[0]) + abs(p1[1] - p2[1])
class wireSolver:
def solve(self, file):
# Read lines from the file
lines = file.readlines()
wire1 = self.tracer(lines[0])
wire2 = self.tracer(lines[1])
crosses = set(wire1) & set(wire2)
crosses.discard((0, 0))
print("Answer is: " + str(min(manhattan(cross, (0, 0)) for cross in crosses)))
def tracer(self, instrStr: str):
points = [(0, 0)]
instrList = instrStr.split(",")
for instr in instrList:
points = points + self.instructionParser(instr, points[-1])
return points
def instructionParser(self, instr: str, start: tuple):
magnitude = int(instr[1:])
direction = instr[0]
startX = start[0]
startY = start[1]
if direction == "L":
line = [(startX - i, startY) for i in range(1, magnitude + 1)]
if direction == "R":
line = [(startX + i, startY) for i in range(1, magnitude + 1)]
if direction == "U":
line = [(startX, startY + i) for i in range(1, magnitude + 1)]
if direction == "D":
line = [(startX, startY - i) for i in range(1, magnitude + 1)]
return line
w = wireSolver()
# with open("C:\\Users\\gmilas\\PycharmProjects\\Advent\\Data\\day3.txt", "r") as file:
# wireSolver.solve(w, file)
## PART 2
class wireSolver2:
def solve(self, file):
# Read lines from the file
lines = file.readlines()
wire1 = self.tracer(lines[0])
wire2 = self.tracer(lines[1])
crosses = set(wire1) & set(wire2)
crosses.discard((0, 0))
crossesDistanceSet = {pt: wire1.index(pt) + wire2.index(pt) for pt in crosses}
print(crossesDistanceSet)
print(str(min(x for x in crossesDistanceSet.values())))
def tracer(self, instrStr: str):
points = [(0, 0)]
instrList = instrStr.split(",")
for instr in instrList:
points = points + self.instructionParser(instr, points[-1])
return points
def instructionParser(self, instr: str, start: tuple):
magnitude = int(instr[1:])
direction = instr[0]
startX = start[0]
startY = start[1]
if direction == "L":
line = [(startX - i, startY) for i in range(1, magnitude + 1)]
if direction == "R":
line = [(startX + i, startY) for i in range(1, magnitude + 1)]
if direction == "U":
line = [(startX, startY + i) for i in range(1, magnitude + 1)]
if direction == "D":
line = [(startX, startY - i) for i in range(1, magnitude + 1)]
return line
with open("C:\\Users\\gmilas\\PycharmProjects\\Advent\\Data\\day3.txt", "r") as file:
wireSolver2.solve(w, file)
| 31.428571
| 87
| 0.555944
| 362
| 2,860
| 4.392265
| 0.201657
| 0.015094
| 0.060377
| 0.055346
| 0.801258
| 0.801258
| 0.801258
| 0.801258
| 0.801258
| 0.801258
| 0
| 0.032403
| 0.298601
| 2,860
| 90
| 88
| 31.777778
| 0.760219
| 0.06014
| 0
| 0.825397
| 0
| 0
| 0.02984
| 0.021634
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0
| 0.015873
| 0.222222
| 0.047619
| 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
|
dbdcdbca6659431601850092a151101655b259f3
| 2,964
|
py
|
Python
|
prog_praxis/sliding_window_min.py
|
genos/online_problems
|
324597e8b64d74ad96dbece551a8220a1b61e615
|
[
"MIT"
] | 1
|
2020-07-17T13:15:21.000Z
|
2020-07-17T13:15:21.000Z
|
prog_praxis/sliding_window_min.py
|
genos/online_problems
|
324597e8b64d74ad96dbece551a8220a1b61e615
|
[
"MIT"
] | null | null | null |
prog_praxis/sliding_window_min.py
|
genos/online_problems
|
324597e8b64d74ad96dbece551a8220a1b61e615
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
def obvious(k, xs):
mins = []
for i in xrange(len(xs) - k + 1):
mins.append(min(xs[i:i + k]))
return mins
def _init_queue(k, xs):
q = []
for i in xrange(k):
m = min(xs[i:k])
d = xs.index(m, i, k) + k
if q == [] or q[-1] != (m, d):
q.append((m, d))
return q
def harter(k, xs):
q = _init_queue(k, xs)
mins = []
for i in xrange(1, len(xs) - k + 2):
mins.append(q[0][0])
m = min(xs[i:i + k])
d = xs.index(m, i, i + k) + k
q = [p for p in q if p[0] <= m]
if q != [] and q[0][1] > i + 1:
q.pop(0)
if q == [] or q[-1] != (m, d):
q.append((m, d))
return mins
### Added later: testing
from random import randrange
def comp_methods(k, xs):
os = obvious(k, xs)
hs = harter(k, xs)
return all(map(lambda (o, h): o == h, zip(os, hs))) and len(os) == len(hs)
def n_tests(n):
for _ in xrange(n):
l = randrange(10, 1001)
k = randrange(5, l // 2 + 1)
xs = [randrange(10, 1001) for _ in xrange(l)]
if not comp_methods(k, xs):
print k
print xs
print obvious(k, xs)
print harter(k, xs)
return False
return True
if __name__ == "__main__":
xs = [4, 3, 2, 1, 5, 7, 6, 8, 9]
print obvious(3, xs)
print harter(3, xs)
print n_tests(100)
"""
Congrats on two great years, and here's to many more!
[sourcecode lang="python"]
#!/usr/bin/env python
def obvious(k, xs):
mins = []
for i in xrange(len(xs) - k + 1):
mins.append(min(xs[i:i + k]))
return mins
def _init_queue(k, xs):
q = []
for i in xrange(k):
m = min(xs[i:k])
d = xs.index(m, i, k) + k
if q == [] or q[-1] != (m, d):
q.append((m, d))
return q
def harter(k, xs):
q = _init_queue(k, xs)
mins = []
for i in xrange(1, len(xs) - k + 2):
mins.append(q[0][0])
m = min(xs[i:i + k])
d = xs.index(m, i, i + k) + k
q = [p for p in q if p[0] <= m]
if q != [] and q[0][1] > i + 1:
q.pop(0)
if q == [] or q[-1] != (m, d):
q.append((m, d))
return mins
### Added later: testing
from random import randrange
def comp_methods(k, xs):
os = obvious(k, xs)
hs = harter(k, xs)
return all(map(lambda (o, h): o == h, zip(os, hs))) and len(os) == len(hs)
def n_tests(n):
for _ in xrange(n):
l = randrange(10, 1001)
k = randrange(5, l // 2 + 1)
xs = [randrange(10, 1001) for _ in xrange(l)]
if not comp_methods(k, xs):
print k
print xs
print obvious(k, xs)
print harter(k, xs)
return False
return True
if __name__ == "__main__":
xs = [4, 3, 2, 1, 5, 7, 6, 8, 9]
print obvious(3, xs)
print harter(3, xs)
print n_tests(100)
[/sourcecode]
"""
| 21.955556
| 78
| 0.471997
| 501
| 2,964
| 2.720559
| 0.159681
| 0.044021
| 0.044021
| 0.052825
| 0.947909
| 0.947909
| 0.947909
| 0.947909
| 0.947909
| 0.947909
| 0
| 0.042977
| 0.356275
| 2,964
| 134
| 79
| 22.119403
| 0.671384
| 0.013833
| 0
| 0.166667
| 0
| 0
| 0.005768
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.020833
| null | null | 0.145833
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dbdd8daaa11179969e84616bddc43579489fb690
| 420
|
py
|
Python
|
torchero/utils/text/transforms/__init__.py
|
juancruzsosa/torchero
|
d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797
|
[
"MIT"
] | 10
|
2020-07-06T13:35:26.000Z
|
2021-08-10T09:46:53.000Z
|
torchero/utils/text/transforms/__init__.py
|
juancruzsosa/torchero
|
d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797
|
[
"MIT"
] | 6
|
2020-07-07T20:52:16.000Z
|
2020-07-14T04:05:02.000Z
|
torchero/utils/text/transforms/__init__.py
|
juancruzsosa/torchero
|
d1440b7a9c3ab2c1d3abbb282abb9ee1ea240797
|
[
"MIT"
] | 1
|
2021-06-28T17:56:11.000Z
|
2021-06-28T17:56:11.000Z
|
from torch import LongTensor as ToTensor
from torchero.utils.text.transforms.vocab import Vocab, OutOfVocabularyError
from torchero.utils.text.transforms.compose import Compose
from torchero.utils.text.transforms.tokenizers import *
from torchero.utils.text.transforms.truncate import *
from torchero.utils.text.transforms.defaults import basic_text_transform
from torchero.utils.text.transforms.preprocessing import *
| 46.666667
| 76
| 0.857143
| 54
| 420
| 6.62963
| 0.351852
| 0.201117
| 0.284916
| 0.351955
| 0.553073
| 0.206704
| 0
| 0
| 0
| 0
| 0
| 0
| 0.07619
| 420
| 8
| 77
| 52.5
| 0.92268
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
91968067c06bf3b41a959f3a20708686d09ce129
| 85,956
|
py
|
Python
|
tests/test_cube.py
|
andfranklin/ErnosCube
|
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
|
[
"MIT"
] | null | null | null |
tests/test_cube.py
|
andfranklin/ErnosCube
|
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
|
[
"MIT"
] | 4
|
2020-10-28T19:27:47.000Z
|
2020-11-04T00:12:25.000Z
|
tests/test_cube.py
|
andfranklin/ErnosCube
|
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
|
[
"MIT"
] | null | null | null |
from ErnosCube.cube import Cube
from ErnosCube.face import Face
from ErnosCube.sticker import Sticker
from ErnosCube.face_enum import FaceEnum
from ErnosCube.orient_enum import OrientEnum
from ErnosCube.axis_enum import AxisEnum
from ErnosCube.rotation_enum import RotationEnum
from ErnosCube.cube_mutation import CubeMutation
from utils import N_and_flatten
from strategies import cubes, cubes_2
from hypothesis import given
from pytest import raises, mark, fixture
from copy import deepcopy
class TestCube:
"""Collection of all tests run on instances of the Cube Class."""
@mark.dependency(name="construction")
def test_construction(self):
Cube(N=1)
Cube(N=2)
Cube(N=3)
def test_construction_failure(self):
with raises(AssertionError):
Cube(N=0)
with raises(AssertionError):
Cube(N=-1)
@mark.dependency(name="from_faces", depends=["construction"])
def test_from_faces(self):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
assert cube.N == 2
assert len(cube.faces) == 6
assert len(cube.stickers) == 24
@mark.dependency(depends=["construction"])
@given(cubes)
def test_get_face(self, cube):
front_face = cube.get_face("front")
assert all(
sticker.init_face_enum == FaceEnum.FRONT for sticker in front_face.stickers
)
back_face = cube.get_face(FaceEnum.BACK)
assert all(
sticker.init_face_enum == FaceEnum.BACK for sticker in back_face.stickers
)
@mark.dependency(depends=["construction"])
@given(cubes)
def test_str(self, cube):
assert str(cube) == f"Cube(N={cube.N})"
@fixture
def cube_1(self):
return Cube(N=1)
@fixture
def cube_2(self):
return Cube(N=2)
@fixture
def cube_3(self):
return Cube(N=3)
@mark.dependency(depends=["construction"])
def test_repr(self, cube_3):
gold = " \x1b[7m\x1b[1m\x1b[37m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[37m ↑ "
gold += (
"\x1b[0m\x1b[7m\x1b[1m\x1b[37m ↑ \x1b[0m\n \x1b[7m\x1b[1m\x1b[37m"
)
gold += " ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[37m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[37m ↑ \x1b[0m\n"
gold += " \x1b[7m\x1b[1m\x1b[37m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[37m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[37m ↑ \x1b[0m\n\x1b[7m\x1b[1m\x1b[35m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[35m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[35m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ \x1b[0m\n\x1b[7m\x1b[1m\x1b[35m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[35m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[35m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ \x1b[0m\n\x1b[7m\x1b[1m\x1b[35m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[35m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[35m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[32m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[31m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ "
gold += (
"\x1b[0m\x1b[7m\x1b[1m\x1b[33m ↑ \x1b[0m\n \x1b[7m\x1b[1m\x1b[34m"
)
gold += " ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[34m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[34m ↑ "
gold += (
"\x1b[0m\n \x1b[7m\x1b[1m\x1b[34m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[34m"
)
gold += " ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[34m ↑ \x1b[0m\n "
gold += "\x1b[7m\x1b[1m\x1b[34m ↑ \x1b[0m\x1b[7m\x1b[1m\x1b[34m ↑ "
gold += "\x1b[0m\x1b[7m\x1b[1m\x1b[34m ↑ \x1b[0m"
assert (
repr(cube_3) == gold
), f"{cube_3}:\n{repr(cube_3)}\n\n{repr(repr(cube_3))}"
@mark.dependency(depends=["construction"])
def test_get_raw_repr_size(self, cube_3):
width, height = cube_3.get_raw_repr_size()
assert width == 36
assert height == 9
@mark.dependency(name="deepcopy", depends=["construction"])
@given(cubes)
def test_deepcopy(self, cube):
cube_copy = deepcopy(cube)
for face, face_copy in zip(cube.faces.values(), cube_copy.faces.values()):
stickers = face.stickers
stickers_copy = face_copy.stickers
for sticker, sticker_copy in zip(stickers, stickers_copy):
assert sticker == sticker_copy
assert sticker is not sticker_copy
@mark.dependency(name="equality", depends=["deepcopy"])
@given(cubes)
def test_equality(self, cube):
assert cube == cube
cube_copy = deepcopy(cube)
assert cube is not cube_copy
assert cube == cube_copy
@mark.dependency(name="inequality", depends=["equality"])
@given(cubes, cubes)
def test_inequality(self, a, b):
if a == b:
assert not (a != b)
else:
assert a != b
@mark.dependency(name="cw_rotation_x_0", depends=["equality", "from_faces"])
def test_cw_rotation_x_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
],
[
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._cw_rotation_x(0)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(name="cw_rotation_x_1", depends=["equality", "from_faces"])
def test_cw_rotation_x_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._cw_rotation_x(1)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(
name="cw_rotation_x_arbitrary",
depends=["inequality", "cw_rotation_x_0", "cw_rotation_x_1"],
)
@given(cubes)
def test_cw_rotation_x_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._cw_rotation_x(i)
err_str = f"{cube}._cw_rotation_x({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="ccw_rotation_x_0", depends=["equality", "from_faces"])
def test_ccw_rotation_x_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
],
[
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
Sticker(FaceEnum.BACK, OrientEnum.RIGHT),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube._ccw_rotation_x(0)
assert cube == cube_2, f"{cube}\n{repr(cube)}"
@mark.dependency(name="ccw_rotation_x_1", depends=["equality", "from_faces"])
def test_ccw_rotation_x_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
Sticker(FaceEnum.FRONT, OrientEnum.LEFT),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
Sticker(FaceEnum.LEFT, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube._ccw_rotation_x(1)
assert cube_2 == cube, f"{cube}\n{repr(cube)}"
@mark.dependency(
name="ccw_rotation_x_arbitrary",
depends=["inequality", "ccw_rotation_x_0", "ccw_rotation_x_1"],
)
@given(cubes)
def test_ccw_rotation_x_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._ccw_rotation_x(i)
err_str = f"{cube}._ccw_rotation_x({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="ht_rotation_x_0", depends=["equality", "from_faces"])
def test_ht_rotation_x_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.UP, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.DOWN),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._ht_rotation_x(0)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(name="ht_rotation_x_1", depends=["equality", "from_faces"])
def test_ht_rotation_x_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._ht_rotation_x(1)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(
name="ht_rotation_x_arbitrary",
depends=["inequality", "ht_rotation_x_0", "ht_rotation_x_1"],
)
@given(cubes)
def test_ht_rotation_x_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._ht_rotation_x(i)
err_str = f"{cube}._ht_rotation_x({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="cw_rotation_y_0", depends=["equality", "from_faces"])
def test_cw_rotation_y_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._cw_rotation_y(0)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(name="cw_rotation_y_1", depends=["equality", "from_faces"])
def test_cw_rotation_y_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._cw_rotation_y(1)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(
name="cw_rotation_y_arbitrary",
depends=["inequality", "cw_rotation_y_0", "cw_rotation_y_1"],
)
@given(cubes)
def test_cw_rotation_y_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._cw_rotation_y(i)
err_str = f"{cube}._cw_rotation_y({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="ccw_rotation_y_0", depends=["equality", "from_faces"])
def test_ccw_rotation_y_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
Sticker(FaceEnum.LEFT, OrientEnum.RIGHT),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube._ccw_rotation_y(0)
assert cube_2 == cube, f"{cube}\n{repr(cube)}"
@mark.dependency(name="ccw_rotation_y_1", depends=["equality", "from_faces"])
def test_ccw_rotation_y_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
Sticker(FaceEnum.RIGHT, OrientEnum.LEFT),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube._ccw_rotation_y(1)
assert cube_2 == cube, f"{cube}\n{repr(cube)}"
@mark.dependency(
name="ccw_rotation_y_arbitrary",
depends=["inequality", "ccw_rotation_y_0", "ccw_rotation_y_1"],
)
@given(cubes)
def test_ccw_rotation_y_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._ccw_rotation_y(i)
err_str = f"{cube}._ccw_rotation_y({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="ht_rotation_y_0", depends=["equality", "from_faces"])
def test_ht_rotation_y_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
Sticker(FaceEnum.LEFT, OrientEnum.DOWN),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._ht_rotation_y(0)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(name="ht_rotation_y_1", depends=["equality", "from_faces"])
def test_ht_rotation_y_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.DOWN),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.DOWN),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
Sticker(FaceEnum.RIGHT, OrientEnum.DOWN),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.UP, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.UP, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._ht_rotation_y(1)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(
name="ht_rotation_y_arbitrary",
depends=["inequality", "ht_rotation_y_0", "ht_rotation_y_1"],
)
@given(cubes)
def test_ht_rotation_y_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._ht_rotation_y(i)
err_str = f"{cube}._ht_rotation_y({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="cw_rotation_z_0", depends=["equality", "from_faces"])
def test_cw_rotation_z_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._cw_rotation_z(0)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(name="cw_rotation_z_1", depends=["equality", "from_faces"])
def test_cw_rotation_z_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
gold_cube = Cube.from_faces(faces)
cube_2._cw_rotation_z(1)
assert cube_2 == gold_cube, f"{cube_2}\n{repr(cube_2)}"
@mark.dependency(
name="cw_rotation_z_arbitrary",
depends=["inequality", "cw_rotation_z_0", "cw_rotation_z_1"],
)
@given(cubes)
def test_cw_rotation_z_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._cw_rotation_z(i)
err_str = f"{cube}._cw_rotation_z({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="ccw_rotation_z_0", depends=["equality", "from_faces"])
def test_ccw_rotation_z_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
Sticker(FaceEnum.DOWN, OrientEnum.RIGHT),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube._ccw_rotation_z(0)
assert cube_2 == cube, f"{cube}\n{repr(cube)}"
@mark.dependency(name="ccw_rotation_z_1", depends=["equality", "from_faces"])
def test_ccw_rotation_z_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
[
Sticker(FaceEnum.UP, OrientEnum.LEFT),
Sticker(FaceEnum.UP, OrientEnum.LEFT),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube._ccw_rotation_z(1)
assert cube_2 == cube, f"{cube}\n{repr(cube)}"
@mark.dependency(
name="ccw_rotation_z_arbitrary",
depends=["inequality", "ccw_rotation_z_0", "ccw_rotation_z_1"],
)
@given(cubes)
def test_ccw_rotation_z_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._ccw_rotation_z(i)
err_str = f"{cube}._ccw_rotation_z({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="ht_rotation_z_0", depends=["equality", "from_faces"])
def test_ht_rotation_z_0(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
[Sticker(FaceEnum.UP, OrientEnum.UP), Sticker(FaceEnum.UP, OrientEnum.UP)],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
Sticker(FaceEnum.DOWN, OrientEnum.DOWN),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube_2._ht_rotation_z(0)
assert cube_2 == cube, f"{cube}\n{repr(cube)}"
@mark.dependency(name="ht_rotation_z_1", depends=["equality", "from_faces"])
def test_ht_rotation_z_1(self, cube_2):
faces = {}
stickers = [
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
]
faces[FaceEnum.FRONT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.FRONT, OrientEnum.UP),
Sticker(FaceEnum.FRONT, OrientEnum.UP),
],
[
Sticker(FaceEnum.BACK, OrientEnum.UP),
Sticker(FaceEnum.BACK, OrientEnum.UP),
],
]
faces[FaceEnum.BACK] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
]
faces[FaceEnum.LEFT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.LEFT, OrientEnum.UP),
Sticker(FaceEnum.LEFT, OrientEnum.UP),
],
[
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
Sticker(FaceEnum.RIGHT, OrientEnum.UP),
],
]
faces[FaceEnum.RIGHT] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.UP, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.DOWN),
],
[
Sticker(FaceEnum.UP, OrientEnum.DOWN),
Sticker(FaceEnum.UP, OrientEnum.DOWN),
],
]
faces[FaceEnum.UP] = Face(*N_and_flatten(stickers))
stickers = [
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
[
Sticker(FaceEnum.DOWN, OrientEnum.UP),
Sticker(FaceEnum.DOWN, OrientEnum.UP),
],
]
faces[FaceEnum.DOWN] = Face(*N_and_flatten(stickers))
cube = Cube.from_faces(faces)
cube_2._ht_rotation_z(1)
assert cube_2 == cube, f"{cube}\n{repr(cube)}"
@mark.dependency(
name="ht_rotation_z_arbitrary",
depends=["inequality", "ht_rotation_z_0", "ht_rotation_z_1"],
)
@given(cubes)
def test_ht_rotation_z_arbitrary(self, cube):
rotated_cubes = []
for i in range(cube.N):
cube_copy = deepcopy(cube)
cube_copy._ht_rotation_z(i)
err_str = f"{cube}._ht_rotation_z({i}):\n{repr(cube)}\n\n{repr(cube_copy)}"
assert cube != cube_copy, err_str
for rotated_cube in rotated_cubes:
assert cube_copy != rotated_cube, err_str
rotated_cubes.append(cube_copy)
@mark.dependency(name="cw_rotation_x", depends=["equality", "from_faces"])
def test_cw_rotation_x(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.LEFT)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.BACK, OrientEnum.RIGHT)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.LEFT)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.LEFT)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.LEFT)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.LEFT)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._cw_all_rotation_x()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["cw_rotation_x_arbitrary", "cw_rotation_x"])
@given(cubes)
def test_cw_rotation_x_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._cw_rotation_x(i)
cube._cw_all_rotation_x()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="ccw_rotation_x", depends=["equality", "from_faces"])
def test_ccw_rotation_x(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.RIGHT)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.BACK, OrientEnum.LEFT)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.RIGHT)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.RIGHT)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.RIGHT)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.RIGHT)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._ccw_all_rotation_x()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["ccw_rotation_x_arbitrary", "ccw_rotation_x"])
@given(cubes)
def test_ccw_rotation_x_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._ccw_rotation_x(i)
cube._ccw_all_rotation_x()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="ht_rotation_x", depends=["equality", "from_faces"])
def test_ht_rotation_x(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.DOWN)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.BACK, OrientEnum.DOWN)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.DOWN)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.DOWN)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.DOWN)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.DOWN)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._ht_all_rotation_x()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["ht_rotation_x_arbitrary", "ht_rotation_x"])
@given(cubes)
def test_ht_rotation_x_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._ht_rotation_x(i)
cube._ht_all_rotation_x()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="cw_rotation_y", depends=["equality", "from_faces"])
def test_cw_rotation_y(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.UP, OrientEnum.UP)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.DOWN)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.RIGHT)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.LEFT)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.BACK, OrientEnum.DOWN)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.UP)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._cw_all_rotation_y()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["cw_rotation_y_arbitrary", "cw_rotation_y"])
@given(cubes)
def test_cw_rotation_y_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._cw_rotation_y(i)
cube._cw_all_rotation_y()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="ccw_rotation_y", depends=["equality", "from_faces"])
def test_ccw_rotation_y(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.UP)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.DOWN)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.LEFT)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.RIGHT)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.UP)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.BACK, OrientEnum.DOWN)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._ccw_all_rotation_y()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["ccw_rotation_y_arbitrary", "ccw_rotation_y"])
@given(cubes)
def test_ccw_rotation_y_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._ccw_rotation_y(i)
cube._ccw_all_rotation_y()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="ht_rotation_y", depends=["equality", "from_faces"])
def test_ht_rotation_y(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.BACK, OrientEnum.DOWN)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.DOWN)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.DOWN)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.DOWN)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.UP)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.UP)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._ht_all_rotation_y()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["ht_rotation_y_arbitrary", "ht_rotation_y"])
@given(cubes)
def test_ht_rotation_y_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._ht_rotation_y(i)
cube._ht_all_rotation_y()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="cw_rotation_z", depends=["equality", "from_faces"])
def test_cw_rotation_z(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.UP)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.UP)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.BACK, OrientEnum.UP)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.UP)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.LEFT)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.RIGHT)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._cw_all_rotation_z()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["cw_rotation_z_arbitrary", "cw_rotation_z"])
@given(cubes)
def test_cw_rotation_z_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._cw_rotation_z(i)
cube._cw_all_rotation_z()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="ccw_rotation_z", depends=["equality", "from_faces"])
def test_ccw_rotation_z(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.UP)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.UP)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.UP)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.BACK, OrientEnum.UP)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.RIGHT)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.LEFT)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._ccw_all_rotation_z()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["ccw_rotation_z_arbitrary", "ccw_rotation_z"])
@given(cubes)
def test_ccw_rotation_z_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._ccw_rotation_z(i)
cube._ccw_all_rotation_z()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(name="ht_rotation_z", depends=["equality", "from_faces"])
def test_ht_rotation_z(self, cube_1):
faces = {}
stickers = [Sticker(FaceEnum.BACK, OrientEnum.UP)]
faces[FaceEnum.FRONT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.FRONT, OrientEnum.UP)]
faces[FaceEnum.BACK] = Face(1, stickers)
stickers = [Sticker(FaceEnum.RIGHT, OrientEnum.UP)]
faces[FaceEnum.LEFT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.LEFT, OrientEnum.UP)]
faces[FaceEnum.RIGHT] = Face(1, stickers)
stickers = [Sticker(FaceEnum.UP, OrientEnum.DOWN)]
faces[FaceEnum.UP] = Face(1, stickers)
stickers = [Sticker(FaceEnum.DOWN, OrientEnum.DOWN)]
faces[FaceEnum.DOWN] = Face(1, stickers)
gold_cube = Cube.from_faces(faces)
cube_1._ht_all_rotation_z()
assert cube_1 == gold_cube, f"{cube_1}\n{repr(cube_1)}"
@mark.dependency(depends=["ht_rotation_z_arbitrary", "ht_rotation_z"])
@given(cubes)
def test_ht_rotation_z_equiv(self, cube):
cube_copy = deepcopy(cube)
for i in range(cube.N):
cube_copy._ht_rotation_z(i)
cube._ht_all_rotation_z()
assert cube == cube_copy, f"{cube}: {repr(cube)}"
@mark.dependency(
name="mutate",
depends=[
"equality",
"deepcopy",
"cw_rotation_x_arbitrary",
"ccw_rotation_x_arbitrary",
"ht_rotation_x_arbitrary",
"cw_rotation_y_arbitrary",
"ccw_rotation_y_arbitrary",
"ht_rotation_y_arbitrary",
"cw_rotation_z_arbitrary",
"ccw_rotation_z_arbitrary",
"ht_rotation_z_arbitrary",
],
)
@given(cubes_2)
def test_mutate(self, a):
b = deepcopy(a)
# cw x -1
axis_enum = AxisEnum.get_enum("x")
rotation_enum = RotationEnum.get_enum("cw")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_all_rotation_x()
a.mutate(mutation)
assert a == b
# cw x 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_rotation_x(layer)
a.mutate(mutation)
assert a == b
# cw x 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_rotation_x(layer)
a.mutate(mutation)
assert a == b
# cw y -1
axis_enum = AxisEnum.get_enum("y")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_all_rotation_y()
a.mutate(mutation)
assert a == b
# cw y 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_rotation_y(layer)
a.mutate(mutation)
assert a == b
# cw y 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_rotation_y(layer)
a.mutate(mutation)
assert a == b
# cw z -1
axis_enum = AxisEnum.get_enum("z")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_all_rotation_z()
a.mutate(mutation)
assert a == b
# cw z 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_rotation_z(layer)
a.mutate(mutation)
assert a == b
# cw z 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ccw_rotation_z(layer)
a.mutate(mutation)
assert a == b
# ccw x -1
axis_enum = AxisEnum.get_enum("x")
rotation_enum = RotationEnum.get_enum("ccw")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_all_rotation_x()
a.mutate(mutation)
assert a == b
# ccw x 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_rotation_x(layer)
a.mutate(mutation)
assert a == b
# ccw x 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_rotation_x(layer)
a.mutate(mutation)
assert a == b
# ccw y -1
axis_enum = AxisEnum.get_enum("y")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_all_rotation_y()
a.mutate(mutation)
assert a == b
# ccw y 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_rotation_y(layer)
a.mutate(mutation)
assert a == b
# ccw y 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_rotation_y(layer)
a.mutate(mutation)
assert a == b
# ccw z -1
axis_enum = AxisEnum.get_enum("z")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_all_rotation_z()
a.mutate(mutation)
assert a == b
# ccw z 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_rotation_z(layer)
a.mutate(mutation)
assert a == b
# ccw z 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._cw_rotation_z(layer)
a.mutate(mutation)
assert a == b
# ht x -1
axis_enum = AxisEnum.get_enum("x")
rotation_enum = RotationEnum.get_enum("ht")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_all_rotation_x()
a.mutate(mutation)
assert a == b
# ht x 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_rotation_x(layer)
a.mutate(mutation)
assert a == b
# ht x 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_rotation_x(layer)
a.mutate(mutation)
assert a == b
# ht y -1
axis_enum = AxisEnum.get_enum("y")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_all_rotation_y()
a.mutate(mutation)
assert a == b
# ht y 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_rotation_y(layer)
a.mutate(mutation)
assert a == b
# ht y 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_rotation_y(layer)
a.mutate(mutation)
assert a == b
# ht z -1
axis_enum = AxisEnum.get_enum("z")
layer = -1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_all_rotation_z()
a.mutate(mutation)
assert a == b
# ht z 0
layer = 0
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_rotation_z(layer)
a.mutate(mutation)
assert a == b
# ht z 1
layer = 1
mutation = CubeMutation(axis_enum, rotation_enum, layer)
a._ht_rotation_z(layer)
a.mutate(mutation)
assert a == b
@mark.dependency(name="mutate_fail", depends=["mutate"])
@given(cubes_2)
def test_mutate_fail(self, cube):
with raises(AssertionError):
cube.mutate(None)
with raises(Exception):
cube.mutate(12)
invalid_mutation = CubeMutation(AxisEnum.X, RotationEnum.CW, 3)
with raises(AssertionError):
cube.mutate(invalid_mutation)
@mark.dependency(name="get_isomorphic_mutations", depends=["construction"])
def test_get_isomorphic_mutations(self):
for N in range(1, 6):
cube = Cube(N=N)
manipulations = cube.get_isomorphic_mutations()
assert len(manipulations) == 10
@mark.dependency(name="get_nonisomorphic_mutations", depends=["construction"])
def test_get_nonisomorphic_mutations(self):
for N in range(1, 6):
cube = Cube(N=N)
manipulations = cube.get_nonisomorphic_mutations()
assert len(manipulations) == (9 * N)
@mark.dependency(name="get_face_mutations", depends=["construction"])
def test_get_face_mutations(self):
for N in range(2, 6):
cube = Cube(N=N)
mutations = cube.get_face_mutations()
assert len(mutations) == 18
@mark.dependency(name="get_all_mutations", depends=["construction"])
def test_get_all_mutations(self):
for N in range(1, 6):
cube = Cube(N=N)
mutations = cube.get_all_mutations()
assert len(mutations) == (9 * (N + 1)) + 1
@mark.dependency(name="scramble", depends=["mutate"])
@given(cubes)
def test_scramble(self, cube):
original = deepcopy(cube)
seq = cube.scramble(N=10, seed=42)
assert len(seq) == 10
assert cube != original
@mark.dependency(name="apply_mutation_seq", depends=["scramble"])
@given(cubes)
def test_apply_mutation_seq(self, cube):
original = deepcopy(cube)
seq = cube.scramble(N=10, seed=42)
assert len(seq) == 10
assert cube != original
original.apply_mutation_seq(seq)
assert cube == original
@mark.dependency(name="undo_mutation_seq", depends=["scramble"])
@given(cubes)
def test_undo_mutation_seq(self, cube):
original = deepcopy(cube)
seq = cube.scramble(N=10, seed=42)
assert len(seq) == 10
assert cube != original
cube.undo_mutation_seq(seq)
assert cube == original
@mark.dependency(name="get_iso_transform", depends=["mutate"])
@given(cubes_2)
def test_get_iso_transform(self, original):
transformed = deepcopy(original)
# the no-rotation rotation
mutation = CubeMutation(AxisEnum.NOTHING, RotationEnum.NOTHING, -1)
transformed.mutate(mutation)
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
# all 1-off rotations
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CCW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.HT, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CCW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.HT, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.CW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.CCW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.HT, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
# a few 2-off mutations
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.HT, -1))
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CCW, -1))
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, -1))
return_mutation = transformed.get_iso_transform(original)
transformed.apply_mutation_seq(return_mutation)
assert transformed == original
# non-isomorphic transformations
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, 0))
return_mutation = transformed.get_iso_transform(original)
assert return_mutation is None
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CCW, 1))
return_mutation = transformed.get_iso_transform(original)
assert return_mutation is None
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.HT, 0))
return_mutation = transformed.get_iso_transform(original)
assert return_mutation is None
@mark.dependency(name="is_isomorphic", depends=["mutate"])
@given(cubes_2)
def test_is_isomorphic(self, original):
transformed = deepcopy(original)
# the no-rotation rotation
mutation = CubeMutation(AxisEnum.NOTHING, RotationEnum.NOTHING, -1)
transformed.mutate(mutation)
assert transformed.is_isomorphic(original)
# all 1-off mutations
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CCW, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.HT, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CW, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CCW, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.HT, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.CW, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.CCW, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.HT, -1))
assert transformed.is_isomorphic(original)
# a few 2-off mutations
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.HT, -1))
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, -1))
assert transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CCW, -1))
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, -1))
assert transformed.is_isomorphic(original)
# non-isomorphic transformations
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.X, RotationEnum.CW, 0))
assert not transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Y, RotationEnum.CCW, 1))
assert not transformed.is_isomorphic(original)
transformed = deepcopy(original)
transformed.mutate(CubeMutation(AxisEnum.Z, RotationEnum.HT, 0))
assert not transformed.is_isomorphic(original)
| 33.840945
| 94
| 0.554865
| 9,036
| 85,956
| 5.109562
| 0.016047
| 0.165692
| 0.096296
| 0.136842
| 0.951679
| 0.937319
| 0.92259
| 0.903227
| 0.896794
| 0.862118
| 0
| 0.015265
| 0.326272
| 85,956
| 2,539
| 95
| 33.854273
| 0.781061
| 0.005386
| 0
| 0.707295
| 0
| 0.017082
| 0.066177
| 0.038349
| 0
| 0
| 0
| 0
| 0.06602
| 1
| 0.031856
| false
| 0
| 0.006002
| 0.001385
| 0.039705
| 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
|
91b2c492ae10ad230833359a4033335e1b22b119
| 84
|
py
|
Python
|
extra/models/__init__.py
|
icoxfog417/python_training
|
074333617805acc05d7f9d9f82458e3cbdacd499
|
[
"MIT"
] | 5
|
2016-02-06T06:53:02.000Z
|
2019-03-14T15:08:58.000Z
|
extra/models/__init__.py
|
icoxfog417/python_training
|
074333617805acc05d7f9d9f82458e3cbdacd499
|
[
"MIT"
] | null | null | null |
extra/models/__init__.py
|
icoxfog417/python_training
|
074333617805acc05d7f9d9f82458e3cbdacd499
|
[
"MIT"
] | 3
|
2016-02-04T01:31:17.000Z
|
2021-10-12T04:40:05.000Z
|
from extra.models.restaurant import Restaurant
from extra.models.cheer import Cheer
| 28
| 46
| 0.857143
| 12
| 84
| 6
| 0.5
| 0.25
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 84
| 2
| 47
| 42
| 0.947368
| 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
|
91cb1053109db3f1babd6b3fa25b63a06658138a
| 10,519
|
py
|
Python
|
asim/models/MXGSCZTDAU3FullHousekeepingTM.py
|
garethcmurphy/mysite
|
21a8247dbed3d3196ab22c5cdd10b0c79dccb991
|
[
"MIT"
] | null | null | null |
asim/models/MXGSCZTDAU3FullHousekeepingTM.py
|
garethcmurphy/mysite
|
21a8247dbed3d3196ab22c5cdd10b0c79dccb991
|
[
"MIT"
] | null | null | null |
asim/models/MXGSCZTDAU3FullHousekeepingTM.py
|
garethcmurphy/mysite
|
21a8247dbed3d3196ab22c5cdd10b0c79dccb991
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.utils import timezone
from django.contrib.postgres.fields import ArrayField
import datetime
from django.contrib import admin
class MXGSCZT3DAUFullHousekeepingTM (models.Model):
packet_length = models.IntegerField('Packet length')
utc_year = models.IntegerField('UTC year')
utc_msec = models.IntegerField('UTC msec')
utc_seconds = models.IntegerField('UTC seconds')
tcp_count_dpu = models.IntegerField()
acquisition_start_time_current = models.IntegerField()
grey_mode_data_reduc_factor = models.IntegerField()
dau_czt_1_ratemeter_count = models.IntegerField()
dau_czt_1_tmon_channel_1 = models.IntegerField()
dau_czt_1_tmon_channel_2 = models.IntegerField()
dau_czt_1_high_voltage_mon = models.IntegerField()
dau_xa_cfg_1_cr0_start_readback = models.BooleanField()
dau_xa_cfg_1_cr0_reset_status = models.BooleanField()
dau_xa_cfg_1_cr0_start_config = models.BooleanField()
dau_xa_cfg_1_cr1_serial_clock_div = models.IntegerField()
dau_xa_cfg_1_cr2_err_inj_mask_1 = models.BooleanField()
dau_xa_cfg_1_cr2_err_inj_mask_2 = models.BooleanField()
dau_xa_cfg_1_cr2_err_inj_mask_3 = models.BooleanField()
dau_xa_cfg_1_cr2_err_inj_mask_4 = models.BooleanField()
dau_xa_cfg_1_cr2_err_inj_mask_5 = models.BooleanField()
dau_xa_cfg_1_cr2_err_inj_mask_6 = models.BooleanField()
dau_xa_cfg_1_cr2_err_inj_mask_7 = models.BooleanField()
dau_xa_cfg_1_cr2_err_inj_mask_8 = models.BooleanField()
dau_xa_cfg_1_sr0_now_scrub = models.BooleanField()
dau_xa_cfg_1_sr0_rfail = models.BooleanField()
dau_xa_cfg_1_sr0_rpass = models.BooleanField()
dau_xa_cfg_2_cr0_start_readback = models.BooleanField()
dau_xa_cfg_2_cr0_reset_status = models.BooleanField()
dau_xa_cfg_2_cr0_start_config = models.BooleanField()
dau_xa_cfg_2_cr1_serial_clock_div= models.IntegerField()
dau_xa_cfg_2_cr2_err_inj_mask_1 = models.BooleanField()
dau_xa_cfg_2_cr2_err_inj_mask_2 = models.BooleanField()
dau_xa_cfg_2_cr2_err_inj_mask_3 = models.BooleanField()
dau_xa_cfg_2_cr2_err_inj_mask_4 = models.BooleanField()
dau_xa_cfg_2_cr2_err_inj_mask_5 = models.BooleanField()
dau_xa_cfg_2_cr2_err_inj_mask_6 = models.BooleanField()
dau_xa_cfg_2_cr2_err_inj_mask_7 = models.BooleanField()
dau_xa_cfg_2_cr2_err_inj_mask_8 = models.BooleanField()
dau_xa_cfg_2_sr0_now_scrub = models.BooleanField()
dau_xa_cfg_2_sr0_rfail = models.BooleanField()
dau_xa_cfg_2_sr0_rpass = models.BooleanField()
dau_xa_cfg_3_cr0_start_readback = models.BooleanField()
dau_xa_cfg_3_cr0_reset_status = models.BooleanField()
dau_xa_cfg_3_cr0_start_config = models.BooleanField()
dau_xa_cfg_3_cr1_serial_clock_div= models.IntegerField()
dau_xa_cfg_3_cr2_err_inj_mask_1 = models.BooleanField()
dau_xa_cfg_3_cr2_err_inj_mask_2 = models.BooleanField()
dau_xa_cfg_3_cr2_err_inj_mask_3 = models.BooleanField()
dau_xa_cfg_3_cr2_err_inj_mask_4 = models.BooleanField()
dau_xa_cfg_3_cr2_err_inj_mask_5 = models.BooleanField()
dau_xa_cfg_3_cr2_err_inj_mask_6 = models.BooleanField()
dau_xa_cfg_3_cr2_err_inj_mask_7 = models.BooleanField()
dau_xa_cfg_3_cr2_err_inj_mask_8 = models.BooleanField()
dau_xa_cfg_3_sr0_now_scrub = models.BooleanField()
dau_xa_cfg_3_sr0_rfail = models.BooleanField()
dau_xa_cfg_3_sr0_rpass = models.BooleanField()
dau_xa_cfg_4_cr0_start_readback = models.BooleanField()
dau_xa_cfg_4_cr0_reset_status = models.BooleanField()
dau_xa_cfg_4_cr0_start_config = models.BooleanField()
dau_xa_cfg_4_cr1_serial_clock_div= models.IntegerField()
dau_xa_cfg_4_cr2_err_inj_mask_1 = models.BooleanField()
dau_xa_cfg_4_cr2_err_inj_mask_2 = models.BooleanField()
dau_xa_cfg_4_cr2_err_inj_mask_3 = models.BooleanField()
dau_xa_cfg_4_cr2_err_inj_mask_4 = models.BooleanField()
dau_xa_cfg_4_cr2_err_inj_mask_5 = models.BooleanField()
dau_xa_cfg_4_cr2_err_inj_mask_6 = models.BooleanField()
dau_xa_cfg_4_cr2_err_inj_mask_7 = models.BooleanField()
dau_xa_cfg_4_cr2_err_inj_mask_8 = models.BooleanField()
dau_xa_cfg_4_sr0_now_scrub = models.BooleanField()
dau_xa_cfg_4_sr0_rfail = models.BooleanField()
dau_xa_cfg_4_sr0_rpass = models.BooleanField()
dau_dm_if_1_cr0_snap = models.BooleanField()
dau_dm_if_1_cr1_timeout = models.IntegerField()
dau_dm_if_1_cr1_snapen = models.BooleanField()
dau_dm_if_1_cr1_offs_baseline_corr = models.BooleanField()
dau_dm_if_1_cr1_hit_artificial_trigs = models.BooleanField()
dau_dm_if_1_cr1_disable_module = models.BooleanField()
dau_dm_if_1_cr2_decf_data_reduc_factor = models.IntegerField()
dau_dm_if_1_cr3_adc_delayed_sample_time= models.IntegerField()
dau_dm_if_1_cr3_adrtime_pixel_address = models.IntegerField()
dau_dm_if_1_sr0_depends_snapen = models.IntegerField()
dau_dm_if_1_sr1_depends_snapen_0 = models.IntegerField()
dau_dm_if_1_sr1_depends_snapen_1 = models.IntegerField()
dau_dm_if_1_sr2_depends_snapen = models.IntegerField()
dau_dm_if_1_sr3_depends_snapen = models.IntegerField()
dau_dm_if_2_cr0_snapshot_address_en = models.IntegerField()
dau_dm_if_2_cr1_timeout = models.IntegerField()
dau_dm_if_2_cr1_snapen = models.BooleanField()
dau_dm_if_2_cr1_offs_baseline_corr = models.BooleanField()
dau_dm_if_2_cr1_hit_artificial_trigs = models.BooleanField()
dau_dm_if_2_cr1_disable_module = models.BooleanField()
dau_dm_if_2_cr2_decf_data_reduc_factor = models.IntegerField()
dau_dm_if_2_cr3_adc_delayed_sample_time= models.IntegerField()
dau_dm_if_2_cr3_adrtime_pixel_address = models.IntegerField()
dau_dm_if_2_sr0_depends_snapen = models.IntegerField()
dau_dm_if_2_sr1_depends_snapen_0 = models.IntegerField()
dau_dm_if_2_sr1_depends_snapen_1 = models.IntegerField()
dau_dm_if_2_sr2_depends_snapen = models.IntegerField()
dau_dm_if_2_sr3_depends_snapen = models.IntegerField()
dau_dm_if_3_cr0_snapshot_address_en = models.IntegerField()
dau_dm_if_3_cr1_timeout = models.IntegerField()
dau_dm_if_3_cr1_snapen = models.BooleanField()
dau_dm_if_3_cr1_offs_baseline_corr = models.BooleanField()
dau_dm_if_3_cr1_hit_artificial_trigs = models.BooleanField()
dau_dm_if_3_cr1_disable_module = models.BooleanField()
dau_dm_if_3_cr2_decf_data_reduc_factor = models.IntegerField()
dau_dm_if_3_cr3_adc_delayed_sample_time= models.IntegerField()
dau_dm_if_3_cr3_adrtime_pixel_address = models.IntegerField()
dau_dm_if_3_sr0_depends_snapen = models.IntegerField()
dau_dm_if_3_sr1_depends_snapen_0 = models.IntegerField()
dau_dm_if_3_sr1_depends_snapen_1 = models.IntegerField()
dau_dm_if_3_sr2_depends_snapen = models.IntegerField()
dau_dm_if_3_sr3_depends_snapen = models.IntegerField()
dau_dm_if_4_cr0_snapshot_address_en = models.IntegerField()
dau_dm_if_4_cr1_timeout = models.IntegerField()
dau_dm_if_4_cr1_snapen = models.BooleanField()
dau_dm_if_4_cr1_offs_baseline_corr = models.BooleanField()
dau_dm_if_4_cr1_hit_artificial_trigs = models.BooleanField()
dau_dm_if_4_cr1_disable_module = models.BooleanField()
dau_dm_if_4_cr2_decf_data_reduc_factor = models.IntegerField()
dau_dm_if_4_cr3_adc_delayed_sample_time= models.IntegerField()
dau_dm_if_4_cr3_adrtime_pixel_address = models.IntegerField()
dau_dm_if_4_sr0_depends_snapen = models.IntegerField()
dau_dm_if_4_sr1_depends_snapen_0 = models.IntegerField()
dau_dm_if_4_sr1_depends_snapen_1 = models.IntegerField()
dau_dm_if_4_sr2_depends_snapen = models.IntegerField()
dau_dm_if_4_sr3_depends_snapen = models.IntegerField()
dau_rcu_master_cr0_startscrub = models.BooleanField()
dau_rcu_master_cr0_edacerst = models.BooleanField()
dau_rcu_master_cr0_sdctest = models.BooleanField()
dau_rcu_master_cr0_mrst_master_reset = models.BooleanField()
dau_rcu_master_cr1_scrubstop = models.BooleanField()
dau_rcu_master_cr1_asic_set_version = models.BooleanField()
dau_rcu_master_cr1_test_mode_enable = models.BooleanField()
dau_rcu_master_cr2_mtest_multihit = models.BooleanField()
dau_rcu_master_cr2_ttest_timetag = models.BooleanField()
dau_rcu_master_cr2_atest_address_test = models.BooleanField()
dau_rcu_master_cr2_etest_energy_test = models.BooleanField()
dau_rcu_master_cr3_noblink_inhibit_led = models.BooleanField()
dau_rcu_master_cr3_debugsel = models.IntegerField()
dau_rcu_master_sr0_firmware_version_low_byte = models.IntegerField()
dau_rcu_master_sr1_firmware_version_high_byte = models.IntegerField()
dau_rcu_master_sr2_err_uncorrectable_double = models.IntegerField()
dau_rcu_master_sr3_corr_correctable_single = models.IntegerField()
dau_bcm_cr1_mhfilt_4_or_more = models.BooleanField()
dau_bcm_cr1_mhfilt_3_simultaneous = models.BooleanField()
dau_bcm_cr1_mhfilt_2_simultaneous = models.BooleanField()
dau_bcm_cr1_mhfilt_1_simultaneous = models.BooleanField()
dau_bcm_sr0_hitcntl_total_hit_low = models.IntegerField()
dau_bcm_sr1_hitcntl_total_hit_middle = models.IntegerField()
dau_bcm_sr2_hitcntl_total_hit_high = models.IntegerField()
dau_bcm_cr_spectral_boundary_low = models.IntegerField()
dau_bcm_cr_spectral_boundary_1 = models.IntegerField()
dau_bcm_cr_spectral_boundary_2 = models.IntegerField()
dau_bcm_cr_spectral_boundary_3 = models.IntegerField()
dau_bcm_cr_spectral_boundary_4 = models.IntegerField()
dau_bcm_cr_spectral_boundary_5 = models.IntegerField()
dau_bcm_cr_spectral_boundary_6 = models.IntegerField()
dau_bcm_cr_spectral_boundary_7 = models.IntegerField()
dau_bcm_cr_spectral_boundary_8 = models.IntegerField()
dau_bcm_cr_spectral_boundary_9 = models.IntegerField()
dau_bcm_cr_spectral_boundary_high = models.IntegerField()
dau_bcm_cr_temporal_bin_size = models.IntegerField()
spare_sr0_multi_hit_counter_low_byte = models.IntegerField()
spare_sr1_multi_hit_counter_middle_byte = models.IntegerField()
spare_sr2_multi_hit_counter_high_byte = models.IntegerField()
| 57.168478
| 74
| 0.78477
| 1,561
| 10,519
| 4.630365
| 0.094811
| 0.221638
| 0.258578
| 0.175014
| 0.859989
| 0.836608
| 0.742252
| 0.585639
| 0.413254
| 0.233536
| 0
| 0.035694
| 0.150395
| 10,519
| 183
| 75
| 57.480874
| 0.773078
| 0
| 0
| 0
| 0
| 0
| 0.003803
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.023256
| 0.02907
| 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
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
91d919b593d3a855ce63b272cf8ecb85fb0fb509
| 14,906
|
py
|
Python
|
deepDegron/simulation.py
|
ctokheim/deepDegron
|
753687f92fbff22f1a3044c5dc398aa1a19373ce
|
[
"MIT"
] | 13
|
2019-10-29T05:01:35.000Z
|
2021-11-28T10:54:38.000Z
|
deepDegron/simulation.py
|
ctokheim/deepDegron
|
753687f92fbff22f1a3044c5dc398aa1a19373ce
|
[
"MIT"
] | 1
|
2021-02-24T02:09:59.000Z
|
2021-02-24T02:09:59.000Z
|
deepDegron/simulation.py
|
ctokheim/deepDegron
|
753687f92fbff22f1a3044c5dc398aa1a19373ce
|
[
"MIT"
] | 4
|
2021-03-06T15:08:27.000Z
|
2021-12-30T12:53:46.000Z
|
import varcode
from deepDegron import sequence_context as sc
import collections
import numpy as np
from deepDegron import variants
from deepDegron import utils
from deepDegron import degron_pred
def degron(variant_list,
tx, deg_intervals,
nuc_context=3,
num_simulations=10000):
# interpet variant context
var_sub, dna_change_sub, trinuc_context = sc.get_substitution_trinuc_context(variant_list, tx)
#trinuc_context = [sc.get_chasm_context(nc) for nc in trinuc_context]
trinuc_count = collections.Counter(trinuc_context).items() # count the trinucleotides
# return if no substitution
if not var_sub:
return None
# create sequence context obj
seq_context = sc.SequenceContext(tx, nuc_context)
# figure out how many affect lysines
num_deg_mut = 0
for myvariant in var_sub:
num_deg_mut += utils.overlap_with_intervals(myvariant, deg_intervals)
# return p-value of 1 if no degrons affected
if num_deg_mut == 0:
return 0, 1
# simulate new mutations
random_sub = seq_context.random_pos(trinuc_count, num_simulations)
# evaluate the simulations
deg_ct_list = []
tmp_mut_pos = np.hstack([abs_pos for ctxt, cds_pos, abs_pos in random_sub])
for sim_pos in tmp_mut_pos:
# get the variant effect for simulated mutations
sim_variant_subs = variants.get_mutation_info(sim_pos, tx, dna_change_sub)
# count the degron mutations
sim_num_mut = 0
for sim_variant in sim_variant_subs:
sim_num_mut += utils.overlap_with_intervals(sim_variant, deg_intervals)
deg_ct_list.append(sim_num_mut)
# calculate p-value
deg_pval = np.sum(1 for x in deg_ct_list if x>=num_deg_mut) / float(num_simulations)
return num_deg_mut, deg_pval
def degron_with_indel(variant_list,
tx, deg_intervals,
nuc_context=3,
num_simulations=10000):
# interpet variant context
var_sub, dna_change_sub, trinuc_context = sc.get_substitution_trinuc_context(variant_list, tx)
#trinuc_context = [sc.get_chasm_context(nc) for nc in trinuc_context]
trinuc_count = collections.Counter(trinuc_context).items() # count the trinucleotides
var_sub_no_nmd = utils.filter_nmd_subs(var_sub, tx)
# filter for indel variants
var_indel = [x for x in variant_list
if x.__class__ in utils.indels
and x.variant.is_indel]
dna_change_indel = [[v.variant.contig, v.variant.start, v.variant.ref, v.variant.alt]
for v in var_indel]
var_indel = utils.nmd(var_indel, tx, drop=True)
# return if no substitution
if not var_sub and not var_indel:
return None
# create sequence context obj
seq_context = sc.SequenceContext(tx, nuc_context)
seq_context_indel = sc.SequenceContext(tx, 0)
# figure out how many affect lysines
num_deg_mut = 0
for myvariant in var_sub_no_nmd + var_indel:
num_deg_mut += utils.overlap_with_intervals(myvariant, deg_intervals)
# return p-value of 1 if no degrons affected
if num_deg_mut == 0:
return 0, 1
# simulate new mutations
if var_sub:
random_sub = seq_context.random_pos(trinuc_count, num_simulations)
tmp_mut_pos = np.hstack([abs_pos for ctxt, cds_pos, abs_pos in random_sub])
if var_indel:
tmp_input = [('None', len(dna_change_indel))]
random_indel = seq_context_indel.random_pos(tmp_input, num_simulations)
tmp_mut_pos_indel = random_indel[0][2]
# evaluate the simulations
num_sub, num_indel = len(dna_change_sub), len(dna_change_indel)
degron_ct, iter_sim = 0, 0
#for sim_pos in tmp_mut_pos:
for i in range(num_simulations):
# get the variant effect for simulated mutations
if var_sub_no_nmd:
sim_pos = tmp_mut_pos[i,:]
sim_variant_subs = variants.get_mutation_info(sim_pos, tx, dna_change_sub)
num_sim_subs = len(sim_variant_subs)
sim_variant_subs = utils.filter_nmd_subs(sim_variant_subs, tx)
else:
num_sim_subs = 0
sim_variant_subs = []
# get infor for indel
if var_indel:
sim_pos_indel = tmp_mut_pos_indel[i, :]
sim_variant_indel = variants.get_mutation_info(sim_pos_indel, tx, dna_change_indel)
num_sim_indels = len(sim_variant_indel)
sim_variant_indel = utils.nmd(sim_variant_indel, tx, drop=True)
else:
num_sim_indels = 0
sim_variant_indel = []
# combine together simulated variants
sim_combined = sim_variant_subs + sim_variant_indel
if not sim_combined:
degron_ct += 1
else:
# count the degron mutations
sim_num_mut = 0
for sim_var in sim_combined:
sim_num_mut += utils.overlap_with_intervals(sim_var, deg_intervals)
if sim_num_mut >= num_deg_mut:
degron_ct += 1
# update number of iterations
iter_sim += 1
# stop if sufficient number of simulations reached
if degron_ct>=100:
break
# compute p-value
deg_pval = degron_ct / float(iter_sim)
return num_deg_mut, deg_pval
def site(variant_list,
tx, ub_intervals,
nuc_context=3,
num_simulations=10000):
# interpet variant context
var_sub, dna_change_sub, trinuc_context = sc.get_substitution_trinuc_context(variant_list, tx)
#trinuc_context = [sc.get_chasm_context(nc) for nc in trinuc_context]
trinuc_count = collections.Counter(trinuc_context).items() # count the trinucleotides
# return if no substitution
if not var_sub:
return None
# create sequence context obj
seq_context = sc.SequenceContext(tx, nuc_context)
# figure out how many overlap sites of interest
num_ub_mut = 0
for myvariant in var_sub:
num_ub_mut += utils.overlap_with_intervals(myvariant, ub_intervals)
# return p-value of 1 if no degrons affected
if num_ub_mut == 0:
return 0, 1
# simulate new mutations
random_sub = seq_context.random_pos(trinuc_count, num_simulations)
# evaluate the simulations
ub_ct, iter_sim = 0, 0
tmp_mut_pos = np.hstack([abs_pos for ctxt, cds_pos, abs_pos in random_sub])
for sim_pos in tmp_mut_pos:
# get the variant effect for simulated mutations
sim_variant_subs = variants.get_mutation_info(sim_pos, tx, dna_change_sub)
# count the degron mutations
sim_num_mut = 0
for sim_variant in sim_variant_subs:
sim_num_mut += utils.overlap_with_intervals(sim_variant, ub_intervals)
# count if exceeds observed statistic
if sim_num_mut >= num_ub_mut:
ub_ct += 1
# update iteration counter
iter_sim += 1
# stop if sufficient number of simulations reached
if ub_ct>=100:
break
# calculate p-value
ub_pval = ub_ct / float(iter_sim)
return num_ub_mut, ub_pval
def terminal_degron(variant_list,
tx, clf1, clf2,
model='cterm',
nuc_context=1.5,
num_simulations=10000):
"""Simulate the effect of mutations on terminal degrons. Handles both c-terminal and and n-terminal degrons.
"""
# interpet variant context
var_sub, dna_change_sub, trinuc_context = sc.get_substitution_trinuc_context(variant_list, tx)
trinuc_context = [sc.get_chasm_context(nc) for nc in trinuc_context]
trinuc_count = collections.Counter(trinuc_context).items() # count the trinucleotides
var_sub_no_nmd = utils.filter_nmd_subs(var_sub, tx)
# filter for indel variants
var_indel = [x for x in variant_list
if x.__class__ in utils.indels
and x.variant.is_indel]
dna_change_indel = [[v.variant.contig, v.variant.start, v.variant.ref, v.variant.alt]
for v in var_indel]
var_indel = utils.nmd(var_indel, tx, drop=True)
# return if no substitution
if not var_sub and not var_indel:
return None
# figure out the affect on cterminal degrons
delta_prob = degron_pred.delta_prob(var_sub_no_nmd+var_indel, tx, clf1, clf2, model=model)
seqs, _ = utils.process_var_seq(var_sub_no_nmd+var_indel, model=model)
num_impactful_muts = len(seqs)
# skip if no terminal variants
if not delta_prob:
return 0, 1, 0
# create sequence context obj
seq_context = sc.SequenceContext(tx, nuc_context)
seq_context_indel = sc.SequenceContext(tx, 0)
# simulate new mutations
if var_sub:
random_sub = seq_context.random_pos(trinuc_count, num_simulations)
tmp_mut_pos = np.hstack([abs_pos for ctxt, cds_pos, abs_pos in random_sub])
# there is no sequence context for indels
if var_indel:
#tmp_input = [('None', len(var_indel))]
tmp_input = [('None', len(dna_change_indel))]
random_indel = seq_context_indel.random_pos(tmp_input, num_simulations)
tmp_mut_pos_indel = random_indel[0][2]
# evaluate the simulations
num_sub, num_indel = len(dna_change_sub), len(dna_change_indel)
delta_prob_ct, iter_sim = 0, 0
for i in range(num_simulations):
# get info for substitutions
if var_sub_no_nmd:
sim_pos = tmp_mut_pos[i, :]
sim_variant_subs = variants.get_mutation_info(sim_pos, tx, dna_change_sub)
num_sim_subs = len(sim_variant_subs)
# filter based on nmd
sim_variant_subs = utils.filter_nmd_subs(sim_variant_subs, tx)
else:
num_sim_subs = 0
sim_variant_subs = []
# get info for indel
if var_indel:
sim_pos_indel = tmp_mut_pos_indel[i, :]
sim_variant_indel = variants.get_mutation_info(sim_pos_indel, tx, dna_change_indel)
num_sim_indels = len(sim_variant_indel)
# filter based on nmd
sim_variant_indel = utils.nmd(sim_variant_indel, tx, drop=True)
else:
num_sim_indels = 0
sim_variant_indel = []
# combine together the simulated variants
sim_combined = sim_variant_subs + sim_variant_indel
if not sim_combined:
delta_prob_ct += 1
else:
# get scores from simulations
sim_delta_prob = degron_pred.delta_prob(sim_combined, tx, clf1, clf2, model=model)
# count if exceeds observed statistic
adjust_factor = (num_sub + num_indel) / (num_sim_subs + num_sim_indels)
#if abs(sim_delta_prob*adjust_factor) >= abs(delta_prob):
if (sim_delta_prob*adjust_factor) <= delta_prob:
delta_prob_ct += 1
# update number of iterations
iter_sim += 1
# stop if sufficient number of simulations reached
if delta_prob_ct>=100:
break
# compute p-value
delta_prob_pval = delta_prob_ct / float(iter_sim)
return delta_prob, delta_prob_pval, num_impactful_muts
def clustered_truncation(variant_list,
tx,
nuc_context=3,
num_simulations=10000,
side='lesser'):
# interpet variant context
var_sub, dna_change_sub, trinuc_context = sc.get_substitution_trinuc_context(variant_list, tx)
#trinuc_context = [sc.get_chasm_context(nc) for nc in trinuc_context]
trinuc_count = collections.Counter(trinuc_context).items() # count the trinucleotides
var_sub_no_nmd = utils.filter_nmd_subs(var_sub, tx)
# filter for indel variants
var_indel = [x for x in variant_list
if x.__class__ in utils.indels
and x.variant.is_indel]
dna_change_indel = [[v.variant.contig, v.variant.start, v.variant.ref, v.variant.alt]
for v in var_indel]
var_indel = utils.nmd(var_indel, tx, drop=True)
# return if no substitution
if not var_sub and not var_indel:
return None
# create sequence context obj
seq_context = sc.SequenceContext(tx, nuc_context)
seq_context_indel = sc.SequenceContext(tx, 0)
# figure out how many are trunc muts
num_trunc = 0
for myvariant in var_sub_no_nmd + var_indel:
is_trunc = myvariant.__class__ in utils.trunc_types
if is_trunc:
num_trunc += 1
# return p-value of 1 if no degrons affected
if num_trunc == 0:
return 0, 1
# simulate new mutations
if var_sub:
random_sub = seq_context.random_pos(trinuc_count, num_simulations)
tmp_mut_pos = np.hstack([abs_pos for ctxt, cds_pos, abs_pos in random_sub])
if var_indel:
tmp_input = [('None', len(dna_change_indel))]
random_indel = seq_context_indel.random_pos(tmp_input, num_simulations)
tmp_mut_pos_indel = random_indel[0][2]
# evaluate the simulations
num_sub, num_indel = len(dna_change_sub), len(dna_change_indel)
trunc_ct, iter_sim = 0, 0
#for sim_pos in tmp_mut_pos:
for i in range(num_simulations):
# get the variant effect for simulated mutations
if var_sub_no_nmd:
sim_pos = tmp_mut_pos[i,:]
sim_variant_subs = variants.get_mutation_info(sim_pos, tx, dna_change_sub)
num_sim_subs = len(sim_variant_subs)
sim_variant_subs = utils.filter_nmd_subs(sim_variant_subs, tx)
else:
num_sim_subs = 0
sim_variant_subs = []
# get infor for indel
if var_indel:
sim_pos_indel = tmp_mut_pos_indel[i, :]
sim_variant_indel = variants.get_mutation_info(sim_pos_indel, tx, dna_change_indel)
num_sim_indels = len(sim_variant_indel)
sim_variant_indel = utils.nmd(sim_variant_indel, tx, drop=True)
else:
num_sim_indels = 0
sim_variant_indel = []
# combine together simulated variants
sim_combined = sim_variant_subs + sim_variant_indel
if not sim_combined:
trunc_ct += 1
else:
# count the degron mutations
sim_num_mut = 0
for sim_var in sim_combined:
is_trunc = sim_var.__class__ in utils.trunc_types
if is_trunc:
sim_num_mut += 1
if side=="greater" and sim_num_mut >= num_trunc:
trunc_ct += 1
elif side=="lesser" and sim_num_mut <= num_trunc:
trunc_ct += 1
# update number of iterations
iter_sim += 1
# stop if sufficient number of simulations reached
if trunc_ct>=100:
break
# compute p-value
trunc_pval = trunc_ct / float(iter_sim)
return num_trunc, trunc_pval
| 36.09201
| 112
| 0.656447
| 2,094
| 14,906
| 4.332856
| 0.080707
| 0.048496
| 0.033947
| 0.019839
| 0.858922
| 0.835887
| 0.799184
| 0.787832
| 0.773945
| 0.768103
| 0
| 0.010565
| 0.27613
| 14,906
| 412
| 113
| 36.179612
| 0.830306
| 0.189722
| 0
| 0.752941
| 0
| 0
| 0.003003
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.019608
| false
| 0
| 0.027451
| 0
| 0.105882
| 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
|
37d9f0e6ac703309575ed07bbf0511b89dc7b5b1
| 70
|
py
|
Python
|
sandbox/apps/shipping/admin.py
|
izi-core/izi-core
|
21176be2d41f0cf54ca954f294209c585f643dba
|
[
"BSD-3-Clause"
] | null | null | null |
sandbox/apps/shipping/admin.py
|
izi-core/izi-core
|
21176be2d41f0cf54ca954f294209c585f643dba
|
[
"BSD-3-Clause"
] | null | null | null |
sandbox/apps/shipping/admin.py
|
izi-core/izi-core
|
21176be2d41f0cf54ca954f294209c585f643dba
|
[
"BSD-3-Clause"
] | null | null | null |
from izi_shipping.admin import *
from izi.apps.shipping.admin import *
| 35
| 37
| 0.814286
| 11
| 70
| 5.090909
| 0.545455
| 0.25
| 0.678571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 70
| 2
| 37
| 35
| 0.888889
| 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
|
37ed94247604577971d385710e75eba4d08757e6
| 14,648
|
py
|
Python
|
scraper/src/tests/default_strategy/get_records_from_dom_test.py
|
coliff/docsearch-scraper
|
d8e72b812ea418e99671bebd5a9d454e003d161e
|
[
"MIT"
] | 2
|
2020-08-19T10:15:51.000Z
|
2021-02-20T14:15:25.000Z
|
scraper/src/tests/default_strategy/get_records_from_dom_test.py
|
coliff/docsearch-scraper
|
d8e72b812ea418e99671bebd5a9d454e003d161e
|
[
"MIT"
] | 5
|
2021-03-29T23:36:48.000Z
|
2022-03-06T00:20:01.000Z
|
scraper/src/tests/default_strategy/get_records_from_dom_test.py
|
coliff/docsearch-scraper
|
d8e72b812ea418e99671bebd5a9d454e003d161e
|
[
"MIT"
] | 2
|
2021-05-20T19:34:48.000Z
|
2021-12-31T05:22:25.000Z
|
# coding: utf-8
from .abstract import get_strategy
import lxml.html
from scrapy.http import TextResponse
class TestGetRecordsFromDom:
def test_simple(self):
# Given
strategy = get_strategy()
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1>Foo</h1>
<h2>Bar</h2>
<h3>Baz</h3>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 3
assert actual[0]['hierarchy']['lvl0'] == 'Foo'
assert actual[0]['hierarchy']['lvl1'] is None
assert actual[0]['hierarchy']['lvl2'] is None
assert actual[1]['hierarchy']['lvl0'] == 'Foo'
assert actual[1]['hierarchy']['lvl1'] == 'Bar'
assert actual[1]['hierarchy']['lvl2'] is None
assert actual[2]['hierarchy']['lvl0'] == 'Foo'
assert actual[2]['hierarchy']['lvl1'] == 'Bar'
assert actual[2]['hierarchy']['lvl2'] == 'Baz'
def test_text(self):
# Given
strategy = get_strategy()
strategy.dom = lxml.html.fromstring("""
<html><body>
<p>text</p>
<h1>Foo</h1>
<h2>Bar</h2>
<h3>Baz</h3>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 4
assert actual[0]['type'] == 'content'
assert actual[0]['hierarchy']['lvl0'] is None
assert actual[0]['hierarchy']['lvl1'] is None
assert actual[0]['hierarchy']['lvl2'] is None
def test_text_with_utf8(self):
# Given
strategy = get_strategy()
strategy.dom = lxml.html.fromstring(u"""
<html><body>
<p>UTF8 ‽✗✓ Madness</p>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert actual[0]['type'] == 'content'
assert actual[0]['content'] == u"UTF8 ‽✗✓ Madness"
def test_different_wrappers(self):
# Given
strategy = get_strategy()
strategy.dom = lxml.html.fromstring("""
<html><body>
<header>
<h1>Foo</h1>
<p>text</p>
</header>
<div>
<div>
<div>
<h2>Bar</h2>
<p>text</p>
</div>
</div>
<div>
<p>text</p>
<div>
<h3>Baz</h3>
</div>
</div>
</div>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 6
assert actual[0]['hierarchy']['lvl0'] == 'Foo'
assert actual[0]['hierarchy']['lvl1'] is None
assert actual[0]['hierarchy']['lvl2'] is None
assert actual[2]['hierarchy']['lvl0'] == 'Foo'
assert actual[2]['hierarchy']['lvl1'] == 'Bar'
assert actual[2]['hierarchy']['lvl2'] is None
assert actual[5]['hierarchy']['lvl0'] == 'Foo'
assert actual[5]['hierarchy']['lvl1'] == 'Bar'
assert actual[5]['hierarchy']['lvl2'] == 'Baz'
def test_selector_contains_elements(self):
# Given
strategy = get_strategy()
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1><a href="#">Foo</a><span></span></h1>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert actual[0]['hierarchy']['lvl0'] == 'Foo'
assert actual[0]['hierarchy']['lvl1'] is None
assert actual[0]['hierarchy']['lvl2'] is None
def test_text_with_only_three_levels(self):
# Given
strategy = get_strategy({
'selectors': {
'lvl0': 'h1',
'lvl1': 'h2',
'lvl2': 'h3',
'text': 'p'
}
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<p>text</p>
<h1>Foo</h1>
<h2>Bar</h2>
<h3>Baz</h3>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 4
assert actual[0]['type'] == 'content'
assert actual[0]['hierarchy']['lvl0'] is None
assert actual[0]['hierarchy']['lvl1'] is None
assert actual[0]['hierarchy']['lvl2'] is None
def test_backward_compatibility_selectors(self):
# Given
strategy = get_strategy({
'selectors': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"text": "p"
},
'strip_chars': ',.'
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1>Foo</h1>
<h2>Bar</h2>
<h3>Baz</h3>
<p>text</p>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 4
assert actual[3]['type'] == 'content'
assert actual[3]['hierarchy']['lvl0'] == 'Foo'
assert actual[3]['hierarchy']['lvl1'] == 'Bar'
assert actual[3]['hierarchy']['lvl2'] == 'Baz'
assert actual[3]['content'] == 'text'
def test_xpath_text_feature(self):
# Given
strategy = get_strategy({
'selectors': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"text": {
"selector": "//*[@class=\"content\"]/text()[normalize-space()]",
"type": "xpath"
}
},
'strip_chars': ',.'
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<div class="content">
<h1>Foo</h1>
<h2>Bar</h2>
<h3>Baz</h3>
text
</div>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 4
assert actual[3]['type'] == 'content'
assert actual[3]['hierarchy']['lvl0'] == 'Foo'
assert actual[3]['hierarchy']['lvl1'] == 'Bar'
assert actual[3]['hierarchy']['lvl2'] == 'Baz'
assert actual[3]['content'] == 'text'
def test_multiple_selectors_set(self):
# Given
strategy = get_strategy({
'selectors': {
'api': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"content": "p"
},
'guide': {
"lvl0": "h1",
},
},
'start_urls': [
{
'url': 'http://test.com/docs/guide',
'selectors_key': 'guide'
},
{
'url': 'http://test.com/docs/api',
'selectors_key': 'api'
}
]
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1>.Foo;</h1>
<h2>!Bar.</h2>
<h3>,Baz!</h3>
<p>,text,</p>
</body></html>
""")
# When
actual = strategy.get_records_from_dom(
'http://test.com/docs/api/methods')
# Then
assert len(actual) == 4
assert actual[3]['type'] == 'content'
assert actual[3]['hierarchy']['lvl0'] == 'Foo'
assert actual[3]['hierarchy']['lvl1'] == '!Bar'
assert actual[3]['hierarchy']['lvl2'] == 'Baz!'
assert actual[3]['content'] == 'text'
def test_multiple_selectors_set_2(self):
# Given
strategy = get_strategy({
'selectors': {
'api': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"content": "p"
},
'guides': {
"lvl0": "h1",
},
},
'start_urls': [
{
'url': 'http://test.com/docs/guides',
'selectors_key': 'guides'
},
{
'url': 'http://test.com/docs/api',
'selectors_key': 'api'
}
]
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1>.Foo;</h1>
<h2>!Bar.</h2>
<h3>,Baz!</h3>
<p>,text,</p>
</body></html>
""")
# When
actual = strategy.get_records_from_dom(
'http://test.com/docs/guides/tutorial1')
# Then
assert len(actual) == 1
assert actual[0]['type'] == 'lvl0'
assert actual[0]['hierarchy']['lvl0'] == 'Foo'
def test_keep_tags(self):
# Given
strategy = get_strategy({
'selectors': {
'api': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"content": "p"
},
'guides': {
"lvl0": "h1",
},
},
"keep_tags": [
"code"
],
'start_urls': [
{
'url': 'http://test.com/docs/guides',
'selectors_key': 'guides'
},
{
'url': 'http://test.com/docs/api',
'selectors_key': 'api'
}
]
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1><code>Foo</code></h1>
<h2>!Bar.</h2>
<h3>,Baz!</h3>
<p>text</p>
</body></html>
""")
# When
actual = strategy.get_records_from_dom(
'http://test.com/docs/guides/tutorial1')
# Then
assert len(actual) == 1
assert actual[0]['type'] == 'lvl0'
assert actual[0]['hierarchy']['lvl0'] == '<code>Foo</code>'
def test_stop_content(self):
# Given
strategy = get_strategy({
'selectors': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"content": "p"
},
'start_urls': [
'http://test.com/docs/guides'
],
'stop_content': '404'
})
html = """
<html><body>
<h1><code>Foo</code></h1>
<h2>!Bar.</h2>
<h3>,Baz!</h3>
<p>404 Page Not Found</p>
</body></html>
"""
response = TextResponse('http://test.com/docs/guides', body=html,
encoding='utf-8')
# When
actual = strategy.get_records_from_response(response)
# Then
assert len(actual) == 0
def test_selectors_exclude_tail(self):
# Given
strategy = get_strategy({
'selectors': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"text": "p"
},
'selectors_exclude': ['.test'],
'start_urls': [
'http://test.com/docs/guides'
],
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1><code>Foo</code></h1>
<h2>Bar<a class="test" href="/lol">test</a></h2>
</body></html>
""")
strategy.dom = strategy.remove_from_dom(strategy.dom,
strategy.config.selectors_exclude)
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 2
assert actual[1]['type'] == 'lvl1'
assert actual[1]['hierarchy']['lvl1'] == 'Bar'
def test_selectors_exclude_tail2(self):
# Given
strategy = get_strategy({
'selectors': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"text": "p"
},
'selectors_exclude': ['.test'],
'start_urls': [
'http://test.com/docs/guides'
],
})
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1><code>Foo</code></h1>
<h2><a class="test" href="/lol">test</a>Bar</h2>
</body></html>
""")
strategy.dom = strategy.remove_from_dom(strategy.dom,
strategy.config.selectors_exclude)
# When
actual = strategy.get_records_from_dom()
# Then
assert len(actual) == 2
assert actual[1]['type'] == 'lvl1'
assert actual[1]['hierarchy']['lvl1'] == 'Bar'
def test_objectID(self):
# Given
strategy = get_strategy()
strategy.dom = lxml.html.fromstring("""
<html><body>
<h1>Foo</h1>
<h2>Bar</h2>
<h3>Baz</h3>
</body></html>
""")
# When
actual = strategy.get_records_from_dom()
# Then
assert actual[0]['objectID'] is not None
assert actual[0][
'objectID'] == '9d2d056ef5f45585b2ed5121e6487c8e04c63da4'
assert actual[1]['objectID'] is not None
assert actual[1][
'objectID'] == '5f6c974da7435f903a7f3e8d441b42107c5ddb23'
assert actual[2]['objectID'] is not None
assert actual[2][
'objectID'] == '71980d31d18995da99751933a79075e35b1a68bc'
def test_current_level(self):
# Given
strategy = get_strategy({
'selectors': {
"lvl0": "h1",
"lvl1": "h2",
"lvl2": "h3",
"content": "p"
},
'start_urls': [
'http://test.com/docs/guides'
]
})
html = """
<html><body>
<h1>Title</h1>
<h2>Chapter</h2>
<h3></h3>
<p>Bim</p>
</body></html>
"""
response = TextResponse('http://test.com/docs/guides', body=html,
encoding='utf-8')
# When
actual = strategy.get_records_from_response(response)
# Then
assert len(actual) == 3
| 27.847909
| 84
| 0.421559
| 1,341
| 14,648
| 4.511559
| 0.087248
| 0.119008
| 0.053719
| 0.061818
| 0.855868
| 0.835702
| 0.813058
| 0.805785
| 0.801818
| 0.783471
| 0
| 0.042308
| 0.414255
| 14,648
| 525
| 85
| 27.900952
| 0.662121
| 0.018364
| 0
| 0.748166
| 0
| 0
| 0.337428
| 0.023309
| 0
| 0
| 0
| 0
| 0.178484
| 1
| 0.03912
| false
| 0
| 0.007335
| 0
| 0.0489
| 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
|
5324935c01703427c6e471fa54bdc18b8ff8cfd3
| 30,327
|
py
|
Python
|
src/transformers/utils/dummy_tf_objects.py
|
HatsuneMiku4/transformers
|
ee5a5b6be825a9e3ac539485e7dea7601ad57653
|
[
"Apache-2.0"
] | 2
|
2019-12-01T06:35:51.000Z
|
2021-05-07T13:57:59.000Z
|
src/transformers/utils/dummy_tf_objects.py
|
HatsuneMiku4/transformers
|
ee5a5b6be825a9e3ac539485e7dea7601ad57653
|
[
"Apache-2.0"
] | 3
|
2021-06-08T23:15:29.000Z
|
2022-01-13T03:40:10.000Z
|
src/transformers/utils/dummy_tf_objects.py
|
HatsuneMiku4/transformers
|
ee5a5b6be825a9e3ac539485e7dea7601ad57653
|
[
"Apache-2.0"
] | 1
|
2020-03-19T06:01:53.000Z
|
2020-03-19T06:01:53.000Z
|
# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..file_utils import requires_tf
class TensorFlowBenchmarkArguments:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TensorFlowBenchmark:
def __init__(self, *args, **kwargs):
requires_tf(self)
def tf_top_k_top_p_filtering(*args, **kwargs):
requires_tf(tf_top_k_top_p_filtering)
class TFPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFSequenceSummary:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFSharedEmbeddings:
def __init__(self, *args, **kwargs):
requires_tf(self)
def shape_list(*args, **kwargs):
requires_tf(shape_list)
TF_ALBERT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFAlbertForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAlbertForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAlbertForPreTraining:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFAlbertForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAlbertForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAlbertForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAlbertMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFAlbertModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAlbertPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_MODEL_FOR_CAUSAL_LM_MAPPING = None
TF_MODEL_FOR_MASKED_LM_MAPPING = None
TF_MODEL_FOR_MULTIPLE_CHOICE_MAPPING = None
TF_MODEL_FOR_NEXT_SENTENCE_PREDICTION_MAPPING = None
TF_MODEL_FOR_PRETRAINING_MAPPING = None
TF_MODEL_FOR_QUESTION_ANSWERING_MAPPING = None
TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING = None
TF_MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING = None
TF_MODEL_FOR_TOKEN_CLASSIFICATION_MAPPING = None
TF_MODEL_MAPPING = None
TF_MODEL_WITH_LM_HEAD_MAPPING = None
class TFAutoModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForCausalLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForPreTraining:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForSeq2SeqLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFAutoModelWithLMHead:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBartForConditionalGeneration:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBartModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_BERT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFBertEmbeddings:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFBertForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBertForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBertForNextSentencePrediction:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFBertForPreTraining:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFBertForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBertForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBertForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBertLMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBertMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFBertModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBertPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFBlenderbotForConditionalGeneration:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_CAMEMBERT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFCamembertForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFCamembertForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFCamembertForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFCamembertForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFCamembertForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFCamembertModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_CTRL_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFCTRLLMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFCTRLModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFCTRLPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_DISTILBERT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFDistilBertForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFDistilBertForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFDistilBertForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFDistilBertForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFDistilBertForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFDistilBertMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFDistilBertModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFDistilBertPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_DPR_CONTEXT_ENCODER_PRETRAINED_MODEL_ARCHIVE_LIST = None
TF_DPR_QUESTION_ENCODER_PRETRAINED_MODEL_ARCHIVE_LIST = None
TF_DPR_READER_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFDPRContextEncoder:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFDPRPretrainedContextEncoder:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFDPRPretrainedQuestionEncoder:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFDPRPretrainedReader:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFDPRQuestionEncoder:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFDPRReader:
def __init__(self, *args, **kwargs):
requires_tf(self)
TF_ELECTRA_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFElectraForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFElectraForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFElectraForPreTraining:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFElectraForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFElectraForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFElectraForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFElectraModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFElectraPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_FLAUBERT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFFlaubertForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFlaubertForQuestionAnsweringSimple:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFlaubertForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFlaubertForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFlaubertModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFlaubertWithLMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_FUNNEL_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFFunnelBaseModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFunnelForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFunnelForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFunnelForPreTraining:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFFunnelForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFunnelForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFunnelForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFFunnelModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_GPT2_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFGPT2DoubleHeadsModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFGPT2LMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFGPT2MainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFGPT2Model:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFGPT2PreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_LONGFORMER_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFLongformerForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLongformerForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLongformerForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLongformerForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLongformerForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLongformerModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLongformerSelfAttention:
def __init__(self, *args, **kwargs):
requires_tf(self)
TF_LXMERT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFLxmertForPreTraining:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFLxmertMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFLxmertModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLxmertPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFLxmertVisualFeatureEncoder:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFMarianMTModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMBartForConditionalGeneration:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_MOBILEBERT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFMobileBertForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertForNextSentencePrediction:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertForPreTraining:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMobileBertPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMT5EncoderModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMT5ForConditionalGeneration:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFMT5Model:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_OPENAI_GPT_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFOpenAIGPTDoubleHeadsModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFOpenAIGPTLMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFOpenAIGPTMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFOpenAIGPTModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFOpenAIGPTPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFPegasusForConditionalGeneration:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_ROBERTA_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFRobertaForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFRobertaForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFRobertaForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFRobertaForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFRobertaForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFRobertaMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFRobertaModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFRobertaPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_T5_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFT5EncoderModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFT5ForConditionalGeneration:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFT5Model:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFT5PreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_TRANSFO_XL_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFAdaptiveEmbedding:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFTransfoXLLMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFTransfoXLMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFTransfoXLModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFTransfoXLPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_XLM_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFXLMForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMForQuestionAnsweringSimple:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFXLMModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMWithLMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFXLMRobertaForMaskedLM:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMRobertaForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMRobertaForQuestionAnswering:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMRobertaForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMRobertaForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLMRobertaModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
TF_XLNET_PRETRAINED_MODEL_ARCHIVE_LIST = None
class TFXLNetForMultipleChoice:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLNetForQuestionAnsweringSimple:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLNetForSequenceClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLNetForTokenClassification:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLNetLMHeadModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLNetMainLayer:
def __init__(self, *args, **kwargs):
requires_tf(self)
class TFXLNetModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class TFXLNetPreTrainedModel:
def __init__(self, *args, **kwargs):
requires_tf(self)
@classmethod
def from_pretrained(self, *args, **kwargs):
requires_tf(self)
class AdamWeightDecay:
def __init__(self, *args, **kwargs):
requires_tf(self)
class GradientAccumulator:
def __init__(self, *args, **kwargs):
requires_tf(self)
class WarmUp:
def __init__(self, *args, **kwargs):
requires_tf(self)
def create_optimizer(*args, **kwargs):
requires_tf(create_optimizer)
class TFTrainer:
def __init__(self, *args, **kwargs):
requires_tf(self)
| 20.900758
| 75
| 0.673163
| 3,223
| 30,327
| 5.939187
| 0.076326
| 0.155156
| 0.278341
| 0.309268
| 0.771654
| 0.763766
| 0.727667
| 0.720249
| 0.714032
| 0.639432
| 0
| 0.000633
| 0.21832
| 30,327
| 1,450
| 76
| 20.915172
| 0.806842
| 0.002407
| 0
| 0.776931
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.322089
| false
| 0
| 0.001088
| 0
| 0.50272
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 11
|
536ee0416ee141c69295e9e93bd07d47a8a8c7fa
| 19,802
|
py
|
Python
|
mpf/tests/test_ScoreReels.py
|
Wolfmarsh/mpf
|
ad71f381ce8a0e65f28958e51cf8a8b38a6154fb
|
[
"MIT"
] | null | null | null |
mpf/tests/test_ScoreReels.py
|
Wolfmarsh/mpf
|
ad71f381ce8a0e65f28958e51cf8a8b38a6154fb
|
[
"MIT"
] | null | null | null |
mpf/tests/test_ScoreReels.py
|
Wolfmarsh/mpf
|
ad71f381ce8a0e65f28958e51cf8a8b38a6154fb
|
[
"MIT"
] | null | null | null |
"""Test score reels."""
from unittest.mock import MagicMock
from mpf.tests.MpfFakeGameTestCase import MpfFakeGameTestCase
from mpf.tests.MpfGameTestCase import MpfGameTestCase
class TestScoreReels(MpfGameTestCase):
def get_config_file(self):
return 'config.yaml'
def get_machine_path(self):
return 'tests/machine_files/score_reels/'
def _synchronise_to_reel(self):
pass
def start_game(self):
# shots only work in games so we have to do this a lot
self.machine.playfield.add_ball = MagicMock()
self.machine.ball_controller.num_balls_known = 3
super().start_game()
def testOvershooting(self):
player1_10k = self.machine.coils["player1_10k"].hw_driver
player1_1k = self.machine.coils["player1_1k"].hw_driver
player1_100 = self.machine.coils["player1_100"].hw_driver
player1_10 = self.machine.coils["player1_10"].hw_driver
chime1 = self.machine.coils["chime1"].hw_driver
player1_10k.pulse = MagicMock(return_value=10)
player1_1k.pulse = MagicMock(return_value=10)
player1_100.pulse = MagicMock(return_value=10)
player1_10.pulse = MagicMock(return_value=10)
chime1.pulse = MagicMock(return_value=10)
self._synchronise_to_reel()
# reel desyncs while idle
self.release_switch_and_run("score_1p_10_0", 0)
self.advance_time_and_run(.1)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(0, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# resynced
self.hit_switch_and_run("score_1p_10_0", 0)
self.advance_time_and_run(10)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(0, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# advance one position
self.machine.score_reels["score_1p_100"].set_destination_value(1)
self.advance_time_and_run(.02)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# success
self.release_switch_and_run("score_1p_100_0", 0)
self.advance_time_and_run(10)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# the reel jumps back (for some reason)
self.hit_switch_and_run("score_1p_100_0", 0)
self.advance_time_and_run(.1)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(2, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# resync
self.release_switch_and_run("score_1p_100_0", 0)
self.advance_time_and_run(10)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(2, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
def testScoring(self):
player1_10k = self.machine.coils["player1_10k"].hw_driver
player1_1k = self.machine.coils["player1_1k"].hw_driver
player1_100 = self.machine.coils["player1_100"].hw_driver
player1_10 = self.machine.coils["player1_10"].hw_driver
chime1 = self.machine.coils["chime1"].hw_driver
player1_10k.pulse = MagicMock(return_value=10)
player1_1k.pulse = MagicMock(return_value=10)
player1_100.pulse = MagicMock(return_value=10)
player1_10.pulse = MagicMock(return_value=10)
chime1.pulse = MagicMock(return_value=10)
self.start_game()
self.assertGameIsRunning()
self.assertPlayerNumber(1)
self.assertBallNumber(1)
self.advance_time_and_run()
self._synchronise_to_reel()
self.machine.game.player.score = 110
self.advance_time_and_run(.1)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.hit_switch_and_run("score_1p_10k_0", 0)
self.hit_switch_and_run("score_1p_1k_0", 0)
self.release_switch_and_run("score_1p_100_0", 0)
self.release_switch_and_run("score_1p_10_0", 0)
self.advance_time_and_run(10)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.assertEqual(0, chime1.pulse.call_count)
player1_10k.pulse = MagicMock(return_value=10)
player1_1k.pulse = MagicMock(return_value=10)
player1_100.pulse = MagicMock(return_value=10)
player1_10.pulse = MagicMock(return_value=10)
self._synchronise_to_reel()
self.machine.game.player.score = 11207
self.advance_time_and_run(.005)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(0, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.advance_time_and_run(.02)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.advance_time_and_run(.02)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(1, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.advance_time_and_run(.02)
self.assertEqual(1, player1_10k.pulse.call_count)
self.assertEqual(1, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.release_switch_and_run("score_1p_10k_0", 0)
self.release_switch_and_run("score_1p_1k_0", 0)
self.advance_time_and_run(.17)
self.assertEqual(2, player1_10.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.advance_time_and_run(.2)
self.assertEqual(1, chime1.pulse.call_count)
self.assertEqual(3, player1_10.pulse.call_count)
self.advance_time_and_run(.2)
self.assertEqual(4, player1_10.pulse.call_count)
self.advance_time_and_run(.2)
self.assertEqual(5, player1_10.pulse.call_count)
self.advance_time_and_run(.2)
self.assertEqual(6, player1_10.pulse.call_count)
self.advance_time_and_run(.2)
self.assertEqual(7, player1_10.pulse.call_count)
self.advance_time_and_run(.2)
self.assertEqual(1, player1_10k.pulse.call_count)
self.assertEqual(1, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(8, player1_10.pulse.call_count)
# it was stuck somewhere before 9
self.advance_time_and_run(.2)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(9, player1_10.pulse.call_count)
self.advance_time_and_run(.1)
self.hit_switch_and_run("score_1p_10_9", 0)
self.advance_time_and_run(.1)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(10, player1_10.pulse.call_count)
self.advance_time_and_run(.1)
self.release_switch_and_run("score_1p_10_9", 0)
self.hit_switch_and_run("score_1p_10_0", 0)
self.advance_time_and_run(.1)
# no more changes
self.advance_time_and_run(10)
self.assertEqual(1, player1_10k.pulse.call_count)
self.assertEqual(1, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(10, player1_10.pulse.call_count)
self.assertEqual(1, chime1.pulse.call_count)
def testAdvanceingFailure(self):
player1_10k = self.machine.coils["player1_10k"].hw_driver
player1_1k = self.machine.coils["player1_1k"].hw_driver
player1_100 = self.machine.coils["player1_100"].hw_driver
player1_10 = self.machine.coils["player1_10"].hw_driver
player1_10k.pulse = MagicMock(return_value=10)
player1_1k.pulse = MagicMock(return_value=10)
player1_100.pulse = MagicMock(return_value=10)
player1_10.pulse = MagicMock(return_value=10)
self.start_game()
self._synchronise_to_reel()
self.machine.game.player.score += 110
self.advance_time_and_run(.1)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.release_switch_and_run("score_1p_10_0", 0)
# switch for pos 0 stays on
# it retries
self.advance_time_and_run(.25)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(2, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# and again
self.advance_time_and_run(.25)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(3, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# finally
self.release_switch_and_run("score_1p_100_0", 0)
# no more retries
self.advance_time_and_run(10)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(3, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
def testThreePlayers(self):
player1_10k = self.machine.coils["player1_10k"].hw_driver
player1_1k = self.machine.coils["player1_1k"].hw_driver
player1_100 = self.machine.coils["player1_100"].hw_driver
player1_10 = self.machine.coils["player1_10"].hw_driver
player2_10 = self.machine.coils["player2_10"].hw_driver
player1_10k.pulse = MagicMock(return_value=10)
player1_1k.pulse = MagicMock(return_value=10)
player1_100.pulse = MagicMock(return_value=10)
player1_10.pulse = MagicMock(return_value=10)
player2_10.pulse = MagicMock(return_value=10)
self.start_game()
# add two more players
self.hit_and_release_switch("s_start")
self.advance_time_and_run()
self.hit_and_release_switch("s_start")
self.advance_time_and_run()
self.assertEqual(3, self.machine.game.num_players)
self._synchronise_to_reel()
self.machine.game.player.score += 110
self.advance_time_and_run(.1)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.release_switch_and_run("score_1p_10_0", 0)
self.release_switch_and_run("score_1p_100_0", 0)
# no more fires
self.advance_time_and_run(10)
self.machine_run()
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
# drain ball
self.machine.game.balls_in_play = 0
self.advance_time_and_run(.1)
self.assertEqual(2, self.machine.game.player.number)
self.machine.game.player.score += 20
self.advance_time_and_run(.1)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.assertEqual(1, player2_10.pulse.call_count)
self.release_switch_and_run("score_2p_10_0", 0)
self.advance_time_and_run(.3)
self.machine_run()
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.assertEqual(2, player2_10.pulse.call_count)
# no more changes
self.advance_time_and_run(10)
self.machine_run()
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(1, player1_100.pulse.call_count)
self.assertEqual(1, player1_10.pulse.call_count)
self.assertEqual(2, player2_10.pulse.call_count)
# drain ball
self.machine.game.balls_in_play = 0
self.advance_time_and_run(.15)
self.assertEqual(3, self.machine.game.player.number)
# player3 reuses the reels from player 1. machine resets them
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(2, player1_100.pulse.call_count)
self.assertEqual(2, player1_10.pulse.call_count)
self.assertEqual(2, player2_10.pulse.call_count)
for i in range(7):
self.advance_time_and_run(.2)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(9, player1_100.pulse.call_count)
self.assertEqual(9, player1_10.pulse.call_count)
self.assertEqual(2, player2_10.pulse.call_count)
self.hit_switch_and_run("score_1p_10_9", 0)
self.hit_switch_and_run("score_1p_100_9", 0)
self.advance_time_and_run(.2)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(10, player1_100.pulse.call_count)
self.assertEqual(10, player1_10.pulse.call_count)
self.assertEqual(2, player2_10.pulse.call_count)
self.hit_switch_and_run("score_1p_10_0", 0)
self.hit_switch_and_run("score_1p_100_0", 0)
self.release_switch_and_run("score_1p_10_9", 0)
self.release_switch_and_run("score_1p_100_9", 0)
self.advance_time_and_run(10)
self.assertEqual(0, player1_10k.pulse.call_count)
self.assertEqual(0, player1_1k.pulse.call_count)
self.assertEqual(10, player1_100.pulse.call_count)
self.assertEqual(10, player1_10.pulse.call_count)
self.assertEqual(2, player2_10.pulse.call_count)
class TestScoreReelsVirtual(MpfFakeGameTestCase):
def get_config_file(self):
return 'config.yaml'
def get_platform(self):
return "smart_virtual"
def get_machine_path(self):
return 'tests/machine_files/score_reels/'
def testScoringVirtual(self):
self.machine.playfield.add_ball = MagicMock()
self.machine.ball_controller.num_balls_known = 3
self.assertGameIsNotRunning()
self.hit_and_release_switch("s_start")
# wait for reset of score reels
self.advance_time_and_run(4)
self.assertGameIsRunning()
self.assertPlayerNumber(1)
self.advance_time_and_run()
self.assertSwitchState("score_1p_10_0", 1)
self.assertSwitchState("score_1p_100_0", 1)
self.assertSwitchState("score_1p_10_9", 0)
self.assertSwitchState("score_1p_100_9", 0)
self.machine.game.player.score += 110
self.advance_time_and_run(10)
self.assertSwitchState("score_1p_10_0", 0)
self.assertSwitchState("score_1p_100_0", 0)
self.assertSwitchState("score_1p_10_9", 0)
self.assertSwitchState("score_1p_100_9", 0)
self.machine.game.player.score = 990
self.advance_time_and_run(10)
self.assertSwitchState("score_1p_10_0", 0)
self.assertSwitchState("score_1p_100_0", 0)
self.assertSwitchState("score_1p_10_9", 1)
self.assertSwitchState("score_1p_100_9", 1)
self.machine.game.player.score = 1900
self.advance_time_and_run(10)
self.assertSwitchState("score_1p_10_0", 1)
self.assertSwitchState("score_1p_100_0", 0)
self.assertSwitchState("score_1p_10_9", 0)
self.assertSwitchState("score_1p_100_9", 1)
def test_inactive_player_scoring(self):
self.start_two_player_game()
self.assertGameIsRunning()
self.assertPlayerNumber(1)
self.advance_time_and_run()
self.assertEqual([None, 0, 0, 0, 0], self.machine.score_reel_groups["player1"].desired_value_list)
self.assertEqual([None, 0], self.machine.score_reel_groups["player2"].desired_value_list)
# increasing score for player two should only affect score of that player
self.machine.game.player_list[1].score = 3333
self.advance_time_and_run()
self.assertEqual([None, 0, 0, 0, 0], self.machine.score_reel_groups["player1"].desired_value_list)
self.assertEqual([None, 3], self.machine.score_reel_groups["player2"].desired_value_list)
self.machine.game.player_list[0].score = 2222
self.advance_time_and_run()
self.assertEqual([None, 2, 2, 2, 0], self.machine.score_reel_groups["player1"].desired_value_list)
self.assertEqual([None, 3], self.machine.score_reel_groups["player2"].desired_value_list)
self.drain_all_balls()
self.assertPlayerNumber(2)
self.assertBallNumber(1)
self.machine.game.player_list[0].score = 4444
self.advance_time_and_run()
self.assertEqual([None, 4, 4, 4, 0], self.machine.score_reel_groups["player1"].desired_value_list)
self.assertEqual([None, 3], self.machine.score_reel_groups["player2"].desired_value_list)
self.drain_all_balls()
self.assertPlayerNumber(1)
self.assertBallNumber(2)
self.drain_all_balls()
self.assertPlayerNumber(2)
self.assertBallNumber(2)
self.drain_all_balls()
self.assertPlayerNumber(1)
self.assertBallNumber(3)
self.drain_all_balls()
self.assertPlayerNumber(2)
self.assertBallNumber(3)
self.drain_all_balls()
self.assertGameIsNotRunning()
# start game. we cannot use start_two_player_game because score reels block the start for some seconds
self.hit_and_release_switch("s_start")
self.advance_time_and_run()
self.assertGameIsRunning()
self.assertEqual(0, self.machine.game.num_players)
self.advance_time_and_run()
self.assertEqual(1, self.machine.game.num_players)
self.hit_and_release_switch("s_start")
self.advance_time_and_run(1)
self.assertEqual(2, self.machine.game.num_players)
self.assertPlayerNumber(1)
self.assertEqual([None, 0, 0, 0, 0], self.machine.score_reel_groups["player1"].desired_value_list)
self.assertEqual([None, 0], self.machine.score_reel_groups["player2"].desired_value_list)
| 40.99793
| 110
| 0.694829
| 2,731
| 19,802
| 4.724277
| 0.063713
| 0.168579
| 0.139978
| 0.156255
| 0.910557
| 0.896373
| 0.885599
| 0.861262
| 0.851186
| 0.816385
| 0
| 0.07175
| 0.202555
| 19,802
| 482
| 111
| 41.082988
| 0.745298
| 0.031966
| 0
| 0.832432
| 0
| 0
| 0.05005
| 0.003344
| 0
| 0
| 0
| 0
| 0.491892
| 1
| 0.035135
| false
| 0.002703
| 0.008108
| 0.013514
| 0.062162
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7254ccfb45c10334abdc7b9a1d93ea15c3d88198
| 9,805
|
py
|
Python
|
tests/merge/test_epic_merge_with_regions.py
|
palmercd/epic
|
33ca5290490596864260410b20a625e99139cdb1
|
[
"MIT"
] | 26
|
2017-02-09T04:13:19.000Z
|
2021-05-07T11:53:14.000Z
|
tests/merge/test_epic_merge_with_regions.py
|
palmercd/epic
|
33ca5290490596864260410b20a625e99139cdb1
|
[
"MIT"
] | 50
|
2017-03-15T10:42:24.000Z
|
2021-05-07T11:59:05.000Z
|
tests/merge/test_epic_merge_with_regions.py
|
palmercd/epic
|
33ca5290490596864260410b20a625e99139cdb1
|
[
"MIT"
] | 5
|
2017-04-22T07:26:37.000Z
|
2018-04-11T16:57:05.000Z
|
import pytest
from collections import OrderedDict
from io import StringIO
import pandas as pd
from epic.merge.merge import main
@pytest.fixture
def regions(tmpdir):
fs = []
for i, c in enumerate(["""chr1 10000 10599 2.2761062711783457e-05 67.49046260339546 .
chr1 11400 17599 1.5475486939203985e-14 121.35954730992889 .""",
"""chr1 9800 15199 0.0048446172754557214 33.652547110032025 .""",
"""chr1 9800 10599 3.239383152206723e-79 204.30687218918862 ."""]):
name = str(i)
f = tmpdir.mkdir(name).join(name)
f.write(c)
fs.append(str(f))
return fs
@pytest.fixture
def files(tmpdir):
od = OrderedDict()
for n, c in [("fibroblast.matrix",u"""Chromosome Bin Enriched chrX/ChIP_1_fibroblast.bed.gz chrX/ChIP_2_fibroblast.bed.gz chrX/ChIP_3_fibroblast.bed.gz chrX/Input_1_fibroblast.bed.gz chrX/Input_2_fibroblast.bed.gz chrX/Input_3_fibroblast.bed.gz
chr1 10000 1 4 14 13 2 4 14
chr1 10200 1 17 24 14 9 9 16
chr1 10400 1 3 1 1 1 0 2
chr1 11400 1 0 0 1 0 0 0
chr1 11600 1 0 0 0 0 0 0
chr1 11800 1 1 0 1 0 0 0
chr1 12000 1 0 0 0 0 0 0
chr1 12200 1 0 0 1 0 0 0
chr1 12400 1 0 0 0 0 0 0
chr1 12600 1 0 0 0 1 0 0
chr1 12800 1 0 0 0 0 0 0
chr1 13000 1 3 6 4 1 3 2
chr1 13200 1 0 1 0 1 1 0
chr1 13400 1 7 4 5 1 1 3
chr1 13600 1 0 0 0 0 0 0
chr1 13800 1 0 0 1 0 0 0
chr1 14000 1 0 0 0 0 0 0
chr1 14200 1 0 0 0 0 0 0
chr1 14400 1 0 0 0 0 0 0
chr1 14600 1 2 4 0 0 0 0
chr1 14800 1 0 4 6 2 2 4
chr1 15000 1 2 4 2 0 1 1
chr1 15200 1 0 0 1 0 0 1
chr1 15400 1 0 0 0 0 0 0
chr1 15600 1 0 0 2 0 0 1
chr1 15800 1 0 1 1 0 0 0
chr1 16000 1 1 8 3 1 0 0
chr1 16200 1 0 6 5 1 3 2
chr1 16400 1 3 5 3 4 7 0
chr1 16600 1 1 1 1 0 0 0
chr1 16800 1 0 0 0 0 0 0
chr1 17000 1 0 0 0 0 0 0
chr1 17200 1 0 0 0 0 0 0
chr1 17400 1 3 2 3 0 2 2"""),
("keratinocyte.matrix", u"""Chromosome Bin Enriched chrX/ChIP_1_keratinocyte.bed.gz chrX/ChIP_2_keratinocyte.bed.gz chrX/ChIP_3_keratinocyte.bed.gz chrX/Input_1_keratinocyte.bed.gz chrX/Input_2_keratinocyte.bed.gz chrX/Input_3_keratinocyte.bed.gz
chr1 9800 1 1 0 0 2 0 0
chr1 10000 1 13 15 17 11 2 17
chr1 10200 1 13 25 23 16 2 24
chr1 10400 1 2 0 2 10 0 3
chr1 10600 1 0 0 0 0 0 0
chr1 10800 1 0 0 1 0 0 0
chr1 11000 1 0 0 0 0 0 0
chr1 11200 1 0 0 0 0 0 0
chr1 11400 1 0 0 0 0 0 0
chr1 11600 1 0 0 1 0 0 0
chr1 11800 1 0 0 0 0 0 0
chr1 12000 1 0 0 2 0 0 0
chr1 12200 1 0 0 0 0 0 0
chr1 12400 1 0 0 0 0 0 0
chr1 12600 1 0 0 0 0 0 1
chr1 12800 1 0 1 1 0 0 0
chr1 13000 1 0 0 6 7 1 3
chr1 13200 1 0 2 0 2 1 1
chr1 13400 1 1 1 6 4 0 2
chr1 13600 1 0 0 0 0 0 0
chr1 13800 1 1 0 1 0 0 0
chr1 14000 1 0 0 0 0 0 0
chr1 14200 1 0 0 0 0 0 0
chr1 14400 1 0 0 0 0 0 0
chr1 14600 1 0 0 3 1 1 0
chr1 14800 1 1 2 4 6 0 0
chr1 15000 1 1 0 3 2 0 0"""),
("melanocyte.matrix", u"""Chromosome Bin Enriched chrX/ChIP_1_melanocyte.bed.gz chrX/ChIP_2_melanocyte.bed.gz chrX/ChIP_3_melanocyte.bed.gz chrX/Input_1_melanocyte.bed.gz chrX/Input_2_melanocyte.bed.gz chrX/Input_3_melanocyte.bed.gz
chr1 9800 1 0 0 2 0 0 0
chr1 10000 1 13 3 128 2 2 21
chr1 10200 1 15 8 96 5 3 23
chr1 10400 1 3 0 4 3 0 7""")]:
f = tmpdir.mkdir(n).join(n)
f.write(c)
od[str(f)] = str(f)
return od
@pytest.fixture
def expected_result():
c = u"""Chromosome Bin TotalEnriched chrX/ChIP_1_fibroblast.bed.gz chrX/ChIP_1_keratinocyte.bed.gz chrX/ChIP_1_melanocyte.bed.gz chrX/ChIP_2_fibroblast.bed.gz chrX/ChIP_2_keratinocyte.bed.gz chrX/ChIP_2_melanocyte.bed.gz chrX/ChIP_3_fibroblast.bed.gz chrX/ChIP_3_keratinocyte.bed.gz chrX/ChIP_3_melanocyte.bed.gz chrX/Input_1_fibroblast.bed.gz chrX/Input_1_keratinocyte.bed.gz chrX/Input_1_melanocyte.bed.gz chrX/Input_2_fibroblast.bed.gz chrX/Input_2_keratinocyte.bed.gz chrX/Input_2_melanocyte.bed.gz chrX/Input_3_fibroblast.bed.gz chrX/Input_3_keratinocyte.bed.gz chrX/Input_3_melanocyte.bed.gz
chr1 9800 2.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0 0.0 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 10000 3.0 4.0 13.0 13.0 14.0 15.0 3.0 13.0 17.0 128.0 2.0 11.0 2.0 4.0 2.0 2.0 14.0 17.0 21.0
chr1 10200 3.0 17.0 13.0 15.0 24.0 25.0 8.0 14.0 23.0 96.0 9.0 16.0 5.0 9.0 2.0 3.0 16.0 24.0 23.0
chr1 10400 3.0 3.0 2.0 3.0 1.0 0.0 0.0 1.0 2.0 4.0 1.0 10.0 3.0 0.0 0.0 0.0 2.0 3.0 7.0
chr1 10600 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
chr1 10800 1.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
chr1 11000 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
chr1 11200 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
chr1 11400 2.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
chr1 11600 2.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
chr1 11800 2.0 1.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
chr1 12000 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 12200 2.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
chr1 12400 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 12600 2.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
chr1 12800 2.0 0.0 0.0 0.0 0.0 1.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
chr1 13000 2.0 3.0 0.0 0.0 6.0 0.0 0.0 4.0 6.0 0.0 1.0 7.0 0.0 3.0 1.0 0.0 2.0 3.0 0.0
chr1 13200 2.0 0.0 0.0 0.0 1.0 2.0 0.0 0.0 0.0 0.0 1.0 2.0 0.0 1.0 1.0 0.0 0.0 1.0 0.0
chr1 13400 2.0 7.0 1.0 0.0 4.0 1.0 0.0 5.0 6.0 0.0 1.0 4.0 0.0 1.0 0.0 0.0 3.0 2.0 0.0
chr1 13600 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 13800 2.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 14000 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 14200 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 14400 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 14600 2.0 2.0 0.0 0.0 4.0 0.0 0.0 0.0 3.0 0.0 0.0 1.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0
chr1 14800 2.0 0.0 1.0 0.0 4.0 2.0 0.0 6.0 4.0 0.0 2.0 6.0 0.0 2.0 0.0 0.0 4.0 0.0 0.0
chr1 15000 2.0 2.0 1.0 0.0 4.0 0.0 0.0 2.0 3.0 0.0 0.0 2.0 0.0 1.0 0.0 0.0 1.0 0.0 0.0
chr1 15200 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 1.0 0.0 0.0
chr1 15400 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
chr1 15600 1.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
chr1 15800 1.0 0.0 0.0 0.0 1.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
chr1 16000 1.0 1.0 0.0 0.0 8.0 0.0 0.0 3.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 16200 1.0 0.0 0.0 0.0 6.0 0.0 0.0 5.0 0.0 0.0 1.0 0.0 0.0 3.0 0.0 0.0 2.0 0.0 0.0
chr1 16400 1.0 3.0 0.0 0.0 5.0 0.0 0.0 3.0 0.0 0.0 4.0 0.0 0.0 7.0 0.0 0.0 0.0 0.0 0.0
chr1 16600 1.0 1.0 0.0 0.0 1.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
chr1 16800 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
chr1 17000 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
chr1 17200 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
chr1 17400 1.0 3.0 0.0 0.0 2.0 0.0 0.0 3.0 0.0 0.0 0.0 0.0 0.0 2.0 0.0 0.0 2.0 0.0 0.0"""
return pd.read_table(StringIO(c), sep=" ", index_col=[0, 1, 2])
@pytest.mark.integration
def test_epic_merge_with(regions, files, expected_result):
result_regions = main(files, regions, False, False, 1, )
print("with")
print(result_regions.to_csv(sep=" "))
assert expected_result.equals(result_regions)
# assert result_regions.equals(result_without)
@pytest.fixture
def simple_regions(tmpdir):
fs = []
for n, c in zip(["melanocyte.matrix", "fibroblast.matrix"], [
u"""chr1 600 1200 2.2761062711783457e-05 67.49046260339546 .""",
u"""chr1 400 1600 0.0048446172754557214 33.652547110032025 ."""]):
n = "regions_" + n
f = tmpdir.mkdir(n).join(n)
f.write(c)
fs.append(str(f))
return fs
@pytest.fixture
def simple_files(tmpdir):
od = OrderedDict()
for n, c in [("melanocyte.matrix", """Chromosome Bin Enriched chrX/ChIP_1_melanocyte.bed.gz chrX/ChIP_2_melanocyte.bed.gz chrX/Input_1_melanocyte.bed.gz chrX/Input_2_melanocyte.bed.gz
chr1 200 1 0 2 0 0
chr1 1200 1 13 128 2 2"""),
("fibroblast.matrix", """Chromosome Bin Enriched chrX/ChIP_1_fibroblast.bed.gz chrX/ChIP_2_fibroblast.bed.gz chrX/Input_1_fibroblast.bed.gz chrX/Input_2_fibroblast.bed.gz
chr1 200 1 0 2 0 0
chr1 1200 1 13 128 2 2""")]:
n = n
f = tmpdir.mkdir(n).join(n)
f.write(c)
od[str(f)] = str(f)
return od
@pytest.fixture
def expected_result_simple():
c = u"""Chromosome Bin TotalEnriched chrX/ChIP_1_fibroblast.bed.gz chrX/ChIP_1_melanocyte.bed.gz chrX/ChIP_2_fibroblast.bed.gz chrX/ChIP_2_melanocyte.bed.gz chrX/Input_1_fibroblast.bed.gz chrX/Input_1_melanocyte.bed.gz chrX/Input_2_fibroblast.bed.gz chrX/Input_2_melanocyte.bed.gz
chr1 400 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 600 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 800 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 1000 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 1200 2.0 13.0 13.0 128.0 128.0 2.0 2.0 2.0 2.0
chr1 1400 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
chr1 1600 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0"""
return pd.read_table(StringIO(c), sep=" ", index_col=[0, 1, 2])
def test_simple_epic_merge_with_regions(simple_regions, simple_files, expected_result_simple):
result_simple_regions = main(simple_files, simple_regions, False, False, 1)
print("result")
print(result_simple_regions.to_csv(sep=" "))
print("expected_result")
print(expected_result_simple.to_csv(sep=" "))
assert result_simple_regions.equals(expected_result_simple)
| 43.004386
| 601
| 0.645793
| 2,978
| 9,805
| 2.076226
| 0.052384
| 0.446709
| 0.587094
| 0.685751
| 0.74996
| 0.71179
| 0.692868
| 0.68381
| 0.605046
| 0.578522
| 0
| 0.410347
| 0.217338
| 9,805
| 227
| 602
| 43.193833
| 0.395361
| 0.004488
| 0
| 0.211957
| 0
| 0.288043
| 0.792469
| 0.168507
| 0
| 0
| 0
| 0
| 0.01087
| 1
| 0.043478
| false
| 0
| 0.027174
| 0
| 0.103261
| 0.032609
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
72636c262fb3fbd9ea91aab66ef2e0d18e26941d
| 2,526
|
py
|
Python
|
auth0/v3/test/authentication/test_database.py
|
mdornseif/auth0-python
|
e87afb3754a1a10fef2c9197df1e3a7681c9eb61
|
[
"MIT"
] | null | null | null |
auth0/v3/test/authentication/test_database.py
|
mdornseif/auth0-python
|
e87afb3754a1a10fef2c9197df1e3a7681c9eb61
|
[
"MIT"
] | null | null | null |
auth0/v3/test/authentication/test_database.py
|
mdornseif/auth0-python
|
e87afb3754a1a10fef2c9197df1e3a7681c9eb61
|
[
"MIT"
] | null | null | null |
import unittest
import mock
from ...authentication.database import Database
class TestDatabase(unittest.TestCase):
@mock.patch('auth0.v3.authentication.database.Database.post')
def test_login(self, mock_post):
d = Database('my.domain.com')
d.login(client_id='cid',
username='usrnm',
password='pswd',
id_token='idt',
connection='conn',
device='dev',
grant_type='gt',
scope='openid profile')
args, kwargs = mock_post.call_args
self.assertEqual(args[0], 'https://my.domain.com/oauth/ro')
self.assertEqual(kwargs['data'], {
'client_id': 'cid',
'username': 'usrnm',
'password': 'pswd',
'id_token': 'idt',
'connection': 'conn',
'device': 'dev',
'grant_type': 'gt',
'scope': 'openid profile',
})
self.assertEqual(kwargs['headers'], {
'Content-Type': 'application/json'
})
@mock.patch('auth0.v3.authentication.database.Database.post')
def test_signup(self, mock_post):
d = Database('my.domain.com')
d.signup(client_id='cid',
email='a@b.com',
password='pswd',
connection='conn')
args, kwargs = mock_post.call_args
self.assertEqual(args[0], 'https://my.domain.com/dbconnections/signup')
self.assertEqual(kwargs['data'], {
'client_id': 'cid',
'email': 'a@b.com',
'password': 'pswd',
'connection': 'conn',
})
self.assertEqual(kwargs['headers'], {
'Content-Type': 'application/json'
})
@mock.patch('auth0.v3.authentication.database.Database.post')
def test_change_password(self, mock_post):
d = Database('my.domain.com')
d.change_password(client_id='cid',
email='a@b.com',
password='pswd',
connection='conn')
args, kwargs = mock_post.call_args
self.assertEqual(args[0],
'https://my.domain.com/dbconnections/change_password')
self.assertEqual(kwargs['data'], {
'client_id': 'cid',
'email': 'a@b.com',
'password': 'pswd',
'connection': 'conn',
})
self.assertEqual(kwargs['headers'], {
'Content-Type': 'application/json'
})
| 29.717647
| 79
| 0.515439
| 247
| 2,526
| 5.17004
| 0.238866
| 0.105717
| 0.051684
| 0.050117
| 0.863743
| 0.863743
| 0.863743
| 0.844166
| 0.844166
| 0.766641
| 0
| 0.005341
| 0.332937
| 2,526
| 84
| 80
| 30.071429
| 0.752522
| 0
| 0
| 0.626866
| 0
| 0
| 0.274347
| 0.054632
| 0
| 0
| 0
| 0
| 0.134328
| 1
| 0.044776
| false
| 0.134328
| 0.044776
| 0
| 0.104478
| 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
|
72aba41b4812fcf5b543239d4ef363bfafabecd9
| 13,815
|
py
|
Python
|
blue_st_sdk/utils/number_conversion.py
|
Higgcz/BlueSTSDK_Python
|
fdd2de0e891b901d35e94901ae06023ee2ab65a3
|
[
"BSD-3-Clause"
] | 1
|
2020-02-18T16:50:42.000Z
|
2020-02-18T16:50:42.000Z
|
blue_st_sdk/utils/number_conversion.py
|
Higgcz/BlueSTSDK_Python
|
fdd2de0e891b901d35e94901ae06023ee2ab65a3
|
[
"BSD-3-Clause"
] | null | null | null |
blue_st_sdk/utils/number_conversion.py
|
Higgcz/BlueSTSDK_Python
|
fdd2de0e891b901d35e94901ae06023ee2ab65a3
|
[
"BSD-3-Clause"
] | null | null | null |
################################################################################
# COPYRIGHT(c) 2018 STMicroelectronics #
# #
# Redistribution and use in source and binary forms, with or without #
# modification, are permitted provided that the following conditions are met: #
# 1. Redistributions of source code must retain the above copyright notice, #
# this list of conditions and the following disclaimer. #
# 2. 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. #
# 3. Neither the name of STMicroelectronics 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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. #
################################################################################
"""number_conversion
The number_conversion module contains tools to convert features' data to
numbers.
"""
# IMPORT
import struct
# CLASSES
class NumberConversion(object):
"""This class helps to convert array of bytes to different formats, and
viceversa.
"""
@classmethod
def byteToUInt8(self, data, index = 0):
"""Returns the short value of the unsigned byte value in position
"index".
Args:
data (str): Array of bytes that contains the value to convert.
index (int): Position of the value to convert.
Returns:
int: The corresponding numerical value.
"""
return struct.unpack('B', data[index])[0]
class LittleEndian(object):
"""This class implements the conversion from array of bytes to different
formats, and viceversa, in Little Endian base order.
"""
@classmethod
def bytesToInt16(self, data, start = 0):
"""Return the signed short value of two bytes of the array in Little
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ByteBuffer.wrap(data, start, 2).order(ByteOrder.LITTLE_ENDIAN).getShort()
return struct.unpack('<h', struct.pack('cc', *data[start : start + 2]))[0]
@classmethod
def bytesToInt32(self, data, start = 0):
"""Return the signed integer value of four bytes of the array in Little
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ByteBuffer.wrap(data, start, 4).order(ByteOrder.LITTLE_ENDIAN).getInt()
return struct.unpack('<i', struct.pack('cccc', *data[start : start + 4]))[0]
@classmethod
def bytesToUInt16(self, data, start = 0):
"""Return the unsigned short value of two bytes of the array in Little
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ByteBuffer.wrap(data, start, 2).order(ByteOrder.LITTLE_ENDIAN).getShort() & 0xFFFF
return struct.unpack('<H', struct.pack('cc', *data[start : start + 2]))[0]
@classmethod
def bytesToUInt32(self, data, start = 0):
"""Return the unsigned integer value of four bytes of the array in
Little Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ((long(ByteBuffer.wrap(data, start, 4).order(ByteOrder.LITTLE_ENDIAN).getInt())) & 0xFFFFFFFFL)
return struct.unpack('<I', struct.pack('cccc', *data[start : start + 4]))[0]
@classmethod
def bytesToFloat(self, data, start = 0):
"""Return the floating point value of four bytes of the array in Little
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return Float.intBitsToFloat(self.bytesToInt32(data, start))
return struct.unpack('<f', struct.pack('cccc', *data[start : start + 4]))[0]
@classmethod
def int16ToBytes(self, value):
"""Return the two bytes array corresponding to the signed short value in
Little Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN).putShort(value).array()
return struct.pack("<i", value)[0:2]
@classmethod
def int32ToBytes(self, value):
"""Return the four bytes array corresponding to the signed integer value
in Little Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(value).array()
return struct.pack("<q", value)[0:4]
@classmethod
def uint16ToBytes(self, value):
"""Return the two bytes array corresponding to the unsigned short value
in Little Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN).putShort(int((value & 0xFFFF))).array()
return struct.pack("<I", value)[0:2]
@classmethod
def uint32ToBytes(self, value):
"""Return the four bytes array corresponding to the unsigned integer
value in Little Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(int((value & 0xFFFFFFFFL))).array()
return struct.pack("<Q", value)[0:4]
@classmethod
def floatToBytes(self, value):
"""Return the four bytes array corresponding to the floating point value
in Little Endian base order.
Args:
value (float): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putFloat(value).array()
return struct.pack("<f", value)
class BigEndian(object):
"""This class implements the conversion from array of bytes to different
formats, and viceversa, in Big Endian base order.
"""
@classmethod
def bytesToInt16(self, data, start = 0):
"""Return the signed short value of two bytes of the array in Big
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ByteBuffer.wrap(data, start, 2).order(ByteOrder.BIG_ENDIAN).getShort()
return struct.unpack('>h', struct.pack('cc', *data[start : start + 2]))[0]
@classmethod
def bytesToInt32(self, data, start = 0):
"""Return the signed integer value of four bytes of the array in Big
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ByteBuffer.wrap(data, start, 4).order(ByteOrder.BIG_ENDIAN).getInt()
return struct.unpack('>i', struct.pack('cccc', *data[start : start + 4]))[0]
@classmethod
def bytesToUInt16(self, data, start = 0):
"""Return the unsigned short value of two bytes of the array in Big
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ByteBuffer.wrap(data, start, 2).order(ByteOrder.BIG_ENDIAN).getShort() & 0xFFFF
return struct.unpack('>H', struct.pack('cc', *data[start : start + 2]))[0]
@classmethod
def bytesToUInt32(self, data, start = 0):
"""Return the unsigned integer value of four bytes of the array in Big
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return ((long(ByteBuffer.wrap(data, start, 4).order(ByteOrder.BIG_ENDIAN).getInt())) & 0xFFFFFFFFL)
return struct.unpack('>I', struct.pack('cccc', *data[start : start + 4]))[0]
@classmethod
def bytesToFloat(self, data, start = 0):
"""Return the floating point value of four bytes of the array in Big
Endian base order.
Args:
data (str): Input array of bytes that contains the value to convert.
start (int): Start index in the array of the value to convert.
Returns:
The corresponding numerical value.
"""
#return Float.intBitsToFloat(self.bytesToInt32(data, start))
return struct.unpack('>f', struct.pack('cccc', *data[start : start + 4]))[0]
@classmethod
def int16ToBytes(self, value):
"""Return the two bytes array corresponding to the signed short value in
Big Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(2).order(ByteOrder.BIG_ENDIAN).putShort(value).array()
return struct.pack(">i", value)[2:4]
@classmethod
def int32ToBytes(self, value):
"""Return the four bytes array corresponding to the signed integer value
in Big Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(value).array()
return struct.pack(">q", value)[4:8]
@classmethod
def uint16ToBytes(self, value):
"""Return the two bytes array corresponding to the unsigned short value
in Big Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(2).order(ByteOrder.BIG_ENDIAN).putShort(int((value & 0xFFFF))).array()
return struct.pack(">I", value)[2:4]
@classmethod
def uint32ToBytes(self, value):
"""Return the four bytes array corresponding to the unsigned integer
value in Big Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(int((value & 0xFFFFFFFFL))).array()
return struct.pack(">Q", value)[4:8]
@classmethod
def floatToBytes(self, value):
"""Return the four bytes array corresponding to the floating point value
in Big Endian base order.
Args:
value (int): Value to convert.
Returns:
The corresponding array of bytes.
"""
#return ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putFloat(value).array()
return struct.pack(">f", value)
| 38.057851
| 112
| 0.597467
| 1,621
| 13,815
| 5.079581
| 0.130167
| 0.037163
| 0.054409
| 0.045421
| 0.834588
| 0.823294
| 0.820136
| 0.820136
| 0.811392
| 0.794268
| 0
| 0.012272
| 0.304017
| 13,815
| 362
| 113
| 38.162983
| 0.844098
| 0.648353
| 0
| 0.61194
| 0
| 0
| 0.023655
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.313433
| false
| 0
| 0.014925
| 0
| 0.686567
| 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
| 1
| 0
|
0
| 8
|
f483da94d1eda0531b08dd5e05fe7ebf18ec1c2d
| 897
|
py
|
Python
|
src/libs/Math.py
|
TheDudeFromCI/TrainableClassicalFunctions
|
fa94a78184086576b383dc736e8c92606b5ab2ea
|
[
"MIT"
] | null | null | null |
src/libs/Math.py
|
TheDudeFromCI/TrainableClassicalFunctions
|
fa94a78184086576b383dc736e8c92606b5ab2ea
|
[
"MIT"
] | null | null | null |
src/libs/Math.py
|
TheDudeFromCI/TrainableClassicalFunctions
|
fa94a78184086576b383dc736e8c92606b5ab2ea
|
[
"MIT"
] | null | null | null |
from Function import *
from Port import *
from ObjectType import *
from libs.Core import *
def AddFunction():
def handler(inputs):
return [inputs[0] + inputs[1]]
return Function([NumberType, NumberType], [NumberType], handler, 'Add')
def SubtractFunction():
def handler(inputs):
return [inputs[0] - inputs[1]]
return Function([NumberType, NumberType], [NumberType], handler, 'Subtract')
def MultiplyFunction():
def handler(inputs):
return [inputs[0] * inputs[1]]
return Function([NumberType, NumberType], [NumberType], handler, 'Multiply')
def DivideFunction():
def handler(inputs):
return [inputs[0] / inputs[1]]
return Function([NumberType, NumberType], [NumberType], handler, 'Divide')
def PowerFunction():
def handler(inputs):
return [inputs[0] ** inputs[1]]
return Function([NumberType, NumberType], [NumberType], handler, 'Power')
| 25.628571
| 78
| 0.691193
| 98
| 897
| 6.326531
| 0.244898
| 0.322581
| 0.129032
| 0.177419
| 0.701613
| 0.701613
| 0.701613
| 0.701613
| 0.701613
| 0.701613
| 0
| 0.013316
| 0.162765
| 897
| 34
| 79
| 26.382353
| 0.81225
| 0
| 0
| 0.208333
| 0
| 0
| 0.033445
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.416667
| false
| 0
| 0.166667
| 0.208333
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 9
|
f48cc8bbba4083df48479665bf9bfb606f874ad7
| 16,147
|
py
|
Python
|
lang/python/github/com/metaprov/modelaapi/services/predictor/v1/predictor_pb2_grpc.py
|
metaprov/modeldapi
|
ee05693832051dcd990ee4f061715d7ae0787340
|
[
"Apache-2.0"
] | 5
|
2022-02-18T03:40:10.000Z
|
2022-03-01T16:11:24.000Z
|
lang/python/github/com/metaprov/modelaapi/services/predictor/v1/predictor_pb2_grpc.py
|
metaprov/modeldapi
|
ee05693832051dcd990ee4f061715d7ae0787340
|
[
"Apache-2.0"
] | 1
|
2022-01-07T19:59:25.000Z
|
2022-02-04T01:21:14.000Z
|
lang/python/github/com/metaprov/modelaapi/services/predictor/v1/predictor_pb2_grpc.py
|
metaprov/modeldapi
|
ee05693832051dcd990ee4f061715d7ae0787340
|
[
"Apache-2.0"
] | 1
|
2022-03-25T10:21:43.000Z
|
2022-03-25T10:21:43.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from github.com.metaprov.modelaapi.services.predictor.v1 import predictor_pb2 as github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2
class PredictorServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.ListPredictors = channel.unary_unary(
'/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/ListPredictors',
request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.ListPredictorsRequest.SerializeToString,
response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.ListPredictorsResponse.FromString,
)
self.CreatePredictor = channel.unary_unary(
'/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/CreatePredictor',
request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.CreatePredictorRequest.SerializeToString,
response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.CreatePredictorResponse.FromString,
)
self.GetPredictor = channel.unary_unary(
'/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/GetPredictor',
request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.GetPredictorRequest.SerializeToString,
response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.GetPredictorResponse.FromString,
)
self.UpdatePredictor = channel.unary_unary(
'/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/UpdatePredictor',
request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.UpdatePredictorRequest.SerializeToString,
response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.UpdatePredictorResponse.FromString,
)
self.RollBack = channel.unary_unary(
'/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/RollBack',
request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.RollbackRequest.SerializeToString,
response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.RollbackResponse.FromString,
)
self.DeletePredictor = channel.unary_unary(
'/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/DeletePredictor',
request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.DeletePredictorRequest.SerializeToString,
response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.DeletePredictorResponse.FromString,
)
self.PredictOne = channel.unary_unary(
'/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/PredictOne',
request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.PredictOneRequest.SerializeToString,
response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.PredictOneResponse.FromString,
)
class PredictorServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
def ListPredictors(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePredictor(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetPredictor(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def UpdatePredictor(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def RollBack(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeletePredictor(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def PredictOne(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_PredictorServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'ListPredictors': grpc.unary_unary_rpc_method_handler(
servicer.ListPredictors,
request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.ListPredictorsRequest.FromString,
response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.ListPredictorsResponse.SerializeToString,
),
'CreatePredictor': grpc.unary_unary_rpc_method_handler(
servicer.CreatePredictor,
request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.CreatePredictorRequest.FromString,
response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.CreatePredictorResponse.SerializeToString,
),
'GetPredictor': grpc.unary_unary_rpc_method_handler(
servicer.GetPredictor,
request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.GetPredictorRequest.FromString,
response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.GetPredictorResponse.SerializeToString,
),
'UpdatePredictor': grpc.unary_unary_rpc_method_handler(
servicer.UpdatePredictor,
request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.UpdatePredictorRequest.FromString,
response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.UpdatePredictorResponse.SerializeToString,
),
'RollBack': grpc.unary_unary_rpc_method_handler(
servicer.RollBack,
request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.RollbackRequest.FromString,
response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.RollbackResponse.SerializeToString,
),
'DeletePredictor': grpc.unary_unary_rpc_method_handler(
servicer.DeletePredictor,
request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.DeletePredictorRequest.FromString,
response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.DeletePredictorResponse.SerializeToString,
),
'PredictOne': grpc.unary_unary_rpc_method_handler(
servicer.PredictOne,
request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.PredictOneRequest.FromString,
response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.PredictOneResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'github.com.metaprov.modelaapi.services.predictor.v1.PredictorService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class PredictorService(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def ListPredictors(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/ListPredictors',
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.ListPredictorsRequest.SerializeToString,
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.ListPredictorsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def CreatePredictor(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/CreatePredictor',
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.CreatePredictorRequest.SerializeToString,
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.CreatePredictorResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetPredictor(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/GetPredictor',
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.GetPredictorRequest.SerializeToString,
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.GetPredictorResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def UpdatePredictor(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/UpdatePredictor',
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.UpdatePredictorRequest.SerializeToString,
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.UpdatePredictorResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def RollBack(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/RollBack',
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.RollbackRequest.SerializeToString,
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.RollbackResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def DeletePredictor(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/DeletePredictor',
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.DeletePredictorRequest.SerializeToString,
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.DeletePredictorResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def PredictOne(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/github.com.metaprov.modelaapi.services.predictor.v1.PredictorService/PredictOne',
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.PredictOneRequest.SerializeToString,
github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictor_dot_v1_dot_predictor__pb2.PredictOneResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 60.932075
| 177
| 0.745154
| 1,673
| 16,147
| 6.684997
| 0.069337
| 0.092275
| 0.046137
| 0.057672
| 0.903076
| 0.903076
| 0.903076
| 0.875268
| 0.864986
| 0.838877
| 0
| 0.007922
| 0.194835
| 16,147
| 264
| 178
| 61.162879
| 0.852319
| 0.049545
| 0
| 0.504505
| 1
| 0
| 0.107274
| 0.080341
| 0
| 0
| 0
| 0
| 0
| 1
| 0.072072
| false
| 0
| 0.009009
| 0.031532
| 0.126126
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
be2eed1287c7dfd585b2f3ee706f90ec7dc1ea73
| 3,429
|
py
|
Python
|
tests/test_setting_output.py
|
tolstislon/pytest-bug
|
8e926de4b943167f5f869b72e212f67d5943d6bb
|
[
"MIT"
] | null | null | null |
tests/test_setting_output.py
|
tolstislon/pytest-bug
|
8e926de4b943167f5f869b72e212f67d5943d6bb
|
[
"MIT"
] | 5
|
2020-04-19T14:52:44.000Z
|
2020-11-04T18:24:34.000Z
|
tests/test_setting_output.py
|
tolstislon/pytest-bug
|
8e926de4b943167f5f869b72e212f67d5943d6bb
|
[
"MIT"
] | null | null | null |
import re
pytest_plugins = ("pytester",)
TESTS = """
import pytest
@pytest.mark.bug
def test_one():
assert Fail
@pytest.mark.bug(run=True)
def test_two():
assert Fail
@pytest.mark.bug(run=True)
def test_three():
assert True
"""
def test_set_options_letter(testdir):
testdir.makepyfile(TESTS)
result = testdir.runpytest('--bug-skip-letter=q', '--bug-fail-letter=z', '--bug-pass-letter=r')
assert result.ret == 0
stdout = result.stdout.str()
assert re.search(r'\w+\.py qzr', stdout)
assert re.search(r'-\sBugs skipped: 1 Bugs passed: 1 Bugs failed: 1\s-', stdout)
def test_set_options_word(testdir):
testdir.makepyfile(TESTS)
result = testdir.runpytest('-v', '--bug-skip-word=FORGET', '--bug-fail-word=FUCK', '--bug-pass-word=YAHOO')
assert result.ret == 0
stdout = result.stdout.str()
assert re.search(r'\w+\.py::test_one FORGET', stdout)
assert re.search(r'\w+\.py::test_two FUCK', stdout)
assert re.search(r'\w+\.py::test_three YAHOO', stdout)
assert re.search(r'-\sBugs skipped: 1 Bugs passed: 1 Bugs failed: 1\s-', stdout)
def test_set_ini_letter(testdir):
testdir.makeini(
"""
[pytest]
bug_skip_letter = q
bug_fail_letter = z
bug_pass_letter = r
"""
)
testdir.makepyfile(TESTS)
result = testdir.runpytest()
assert result.ret == 0
stdout = result.stdout.str()
assert re.search(r'\w+\.py qzr', stdout)
assert re.search(r'-\sBugs skipped: 1 Bugs passed: 1 Bugs failed: 1\s-', stdout)
def test_set_ini_word(testdir):
testdir.makeini(
"""
[pytest]
bug_skip_word = FORGET
bug_fail_word = FUCK
bug_pass_word = YAHOO
"""
)
testdir.makepyfile(TESTS)
result = testdir.runpytest('-v')
assert result.ret == 0
stdout = result.stdout.str()
assert re.search(r'\w+\.py::test_one FORGET', stdout)
assert re.search(r'\w+\.py::test_two FUCK', stdout)
assert re.search(r'\w+\.py::test_three YAHOO', stdout)
assert re.search(r'-\sBugs skipped: 1 Bugs passed: 1 Bugs failed: 1\s-', stdout)
def test_set_option_priority_letter(testdir):
testdir.makeini(
"""
[pytest]
bug_skip_letter = g
bug_fail_letter = y
bug_pass_letter = w
"""
)
testdir.makepyfile(TESTS)
result = testdir.runpytest('--bug-skip-letter=q', '--bug-fail-letter=z', '--bug-pass-letter=r')
assert result.ret == 0
stdout = result.stdout.str()
assert re.search(r'\w+\.py qzr', stdout)
assert re.search(r'-\sBugs skipped: 1 Bugs passed: 1 Bugs failed: 1\s-', stdout)
def test_set_option_priority_word(testdir):
testdir.makeini(
"""
[pytest]
bug_skip_word = SKIP_TEST
bug_fail_word = FAIL_TEST
bug_pass_word = PASS_TEST
"""
)
testdir.makepyfile(TESTS)
result = testdir.runpytest('-v', '--bug-skip-word=FORGET', '--bug-fail-word=FUCK', '--bug-pass-word=YAHOO')
assert result.ret == 0
stdout = result.stdout.str()
assert re.search(r'\w+\.py::test_one FORGET', stdout)
assert re.search(r'\w+\.py::test_two FUCK', stdout)
assert re.search(r'\w+\.py::test_three YAHOO', stdout)
assert re.search(r'-\sBugs skipped: 1 Bugs passed: 1 Bugs failed: 1\s-', stdout)
| 30.616071
| 111
| 0.61009
| 476
| 3,429
| 4.268908
| 0.115546
| 0.070866
| 0.124016
| 0.132874
| 0.903543
| 0.903543
| 0.88189
| 0.852854
| 0.778051
| 0.741634
| 0
| 0.009188
| 0.238262
| 3,429
| 111
| 112
| 30.891892
| 0.76876
| 0
| 0
| 0.685714
| 0
| 0
| 0.375723
| 0.046923
| 0
| 0
| 0
| 0
| 0.385714
| 1
| 0.085714
| false
| 0.142857
| 0.028571
| 0
| 0.114286
| 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
|
be3c8bbf8fd2424383d7efd01b63c39c60aa79e7
| 217
|
py
|
Python
|
src/amuse/support/codes/stopping_conditions.py
|
rknop/amuse
|
85d5bdcc29cfc87dc69d91c264101fafd6658aec
|
[
"Apache-2.0"
] | 131
|
2015-06-04T09:06:57.000Z
|
2022-02-01T12:11:29.000Z
|
src/amuse/support/codes/stopping_conditions.py
|
rknop/amuse
|
85d5bdcc29cfc87dc69d91c264101fafd6658aec
|
[
"Apache-2.0"
] | 690
|
2015-10-17T12:18:08.000Z
|
2022-03-31T16:15:58.000Z
|
src/amuse/support/codes/stopping_conditions.py
|
rieder/amuse
|
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
|
[
"Apache-2.0"
] | 102
|
2015-01-22T10:00:29.000Z
|
2022-02-09T13:29:43.000Z
|
import warnings
from amuse.community.interface.stopping_conditions import *
warnings.warn("amuse.support.codes.stopping_conditions has moved to amuse.community.interface.stopping_conditions ", DeprecationWarning)
| 27.125
| 136
| 0.847926
| 25
| 217
| 7.24
| 0.6
| 0.298343
| 0.254144
| 0.342541
| 0.453039
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078341
| 217
| 7
| 137
| 31
| 0.905
| 0
| 0
| 0
| 0
| 0
| 0.460465
| 0.390698
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
be59234342be091d30dce31d7a0edba96ed9f97f
| 1,404
|
py
|
Python
|
tests/regressiontests/mail/tests.py
|
hugs/django
|
3690ab217e3a65d01bd2f9d25f05fb2e54815693
|
[
"BSD-3-Clause"
] | 2
|
2015-12-04T12:05:26.000Z
|
2016-05-08T11:26:55.000Z
|
tests/regressiontests/mail/tests.py
|
hugs/django
|
3690ab217e3a65d01bd2f9d25f05fb2e54815693
|
[
"BSD-3-Clause"
] | null | null | null |
tests/regressiontests/mail/tests.py
|
hugs/django
|
3690ab217e3a65d01bd2f9d25f05fb2e54815693
|
[
"BSD-3-Clause"
] | null | null | null |
# coding: utf-8
r"""
# Tests for the django.core.mail.
>>> from django.core.mail import EmailMessage
>>> from django.utils.translation import ugettext_lazy
# Test normal ascii character case:
>>> email = EmailMessage('Subject', 'Content', 'from@example.com', ['to@example.com'])
>>> message = email.message()
>>> message['Subject']
'Subject'
>>> message.get_payload()
'Content'
>>> message['From']
'from@example.com'
>>> message['To']
'to@example.com'
# Test multiple-recipient case
>>> email = EmailMessage('Subject', 'Content', 'from@example.com', ['to@example.com','other@example.com'])
>>> message = email.message()
>>> message['Subject']
'Subject'
>>> message.get_payload()
'Content'
>>> message['From']
'from@example.com'
>>> message['To']
'to@example.com, other@example.com'
# Test for header injection
>>> email = EmailMessage('Subject\nInjection Test', 'Content', 'from@example.com', ['to@example.com'])
>>> message = email.message()
Traceback (most recent call last):
...
BadHeaderError: Header values can't contain newlines (got u'Subject\nInjection Test' for header 'Subject')
>>> email = EmailMessage(ugettext_lazy('Subject\nInjection Test'), 'Content', 'from@example.com', ['to@example.com'])
>>> message = email.message()
Traceback (most recent call last):
...
BadHeaderError: Header values can't contain newlines (got u'Subject\nInjection Test' for header 'Subject')
"""
| 28.653061
| 117
| 0.695869
| 174
| 1,404
| 5.591954
| 0.287356
| 0.143885
| 0.086331
| 0.086331
| 0.764645
| 0.764645
| 0.74409
| 0.74409
| 0.74409
| 0.74409
| 0
| 0.000803
| 0.113248
| 1,404
| 48
| 118
| 29.25
| 0.780723
| 0.991453
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
be5f192988e8e8f78d55504dea797d4941010601
| 123
|
py
|
Python
|
tests/test_d.py
|
bmoscon/yapic.json
|
bcecf28c1f25f1aa65a5ad63bcc42a06230395af
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
tests/test_d.py
|
bmoscon/yapic.json
|
bcecf28c1f25f1aa65a5ad63bcc42a06230395af
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
tests/test_d.py
|
bmoscon/yapic.json
|
bcecf28c1f25f1aa65a5ad63bcc42a06230395af
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
import json as py_json
from yapic import json
def test_d():
assert json.loads('"D\\u00C1"'.encode("utf-8")) == "DÁ"
| 15.375
| 59
| 0.650407
| 21
| 123
| 3.714286
| 0.761905
| 0.25641
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039216
| 0.170732
| 123
| 7
| 60
| 17.571429
| 0.72549
| 0
| 0
| 0
| 0
| 0
| 0.139344
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
be71eac04f5940f77a29a1bceec870ca629a1846
| 4,199
|
py
|
Python
|
setup.py
|
Dhs92/TheDivisionTab-Py
|
229db5fd68a136e8fa0f6081f13b8beb6297841b
|
[
"MIT"
] | null | null | null |
setup.py
|
Dhs92/TheDivisionTab-Py
|
229db5fd68a136e8fa0f6081f13b8beb6297841b
|
[
"MIT"
] | null | null | null |
setup.py
|
Dhs92/TheDivisionTab-Py
|
229db5fd68a136e8fa0f6081f13b8beb6297841b
|
[
"MIT"
] | null | null | null |
from setuptools import setup
setup(
name='thedivisiontab-py',
version='0.1.1',
packages=['', 'venv.Lib.site-packages.idna', 'venv.Lib.site-packages.certifi', 'venv.Lib.site-packages.chardet',
'venv.Lib.site-packages.chardet.cli', 'venv.Lib.site-packages.urllib3',
'venv.Lib.site-packages.urllib3.util', 'venv.Lib.site-packages.urllib3.contrib',
'venv.Lib.site-packages.urllib3.contrib._securetransport', 'venv.Lib.site-packages.urllib3.packages',
'venv.Lib.site-packages.urllib3.packages.backports',
'venv.Lib.site-packages.urllib3.packages.ssl_match_hostname', 'venv.Lib.site-packages.requests',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.idna',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.pytoml',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.certifi',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.chardet',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.chardet.cli',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.distlib',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.distlib._backport',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.msgpack',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.urllib3',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.urllib3.util',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.urllib3.contrib',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.urllib3.contrib._securetransport',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.urllib3.packages',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.urllib3.packages.backports',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.urllib3.packages.ssl_match_hostname',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.colorama',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.html5lib',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.html5lib._trie',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.html5lib.filters',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.html5lib.treewalkers',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.html5lib.treeadapters',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.html5lib.treebuilders',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.lockfile',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.progress',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.requests',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.packaging',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.cachecontrol',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.cachecontrol.caches',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.webencodings',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._vendor.pkg_resources',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._internal',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._internal.req',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._internal.vcs',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._internal.utils',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._internal.models',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._internal.commands',
'venv.Lib.site-packages.pip-10.0.1-py3.7.egg.pip._internal.operations', 'thedivisiontab_py'],
url='https://github.com/Dhs92/thedivisiontab-py',
license='MIT',
author='Dhs92',
author_email='',
description='A Python wrapper for the TDT API'
)
| 73.666667
| 116
| 0.642772
| 670
| 4,199
| 3.955224
| 0.113433
| 0.134717
| 0.211698
| 0.36566
| 0.868679
| 0.816226
| 0.766038
| 0.722642
| 0.722642
| 0.697736
| 0
| 0.075043
| 0.171708
| 4,199
| 56
| 117
| 74.982143
| 0.686889
| 0
| 0
| 0
| 0
| 0.709091
| 0.763277
| 0.734461
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.018182
| 0
| 0.018182
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
fe24dcb428230d8de236136e159bca07fae1fd29
| 12,354
|
py
|
Python
|
musabox.py
|
mfneirae/MUSA-PS
|
8349a96464586adf0b301097bcc46a8b63799d29
|
[
"MIT"
] | null | null | null |
musabox.py
|
mfneirae/MUSA-PS
|
8349a96464586adf0b301097bcc46a8b63799d29
|
[
"MIT"
] | null | null | null |
musabox.py
|
mfneirae/MUSA-PS
|
8349a96464586adf0b301097bcc46a8b63799d29
|
[
"MIT"
] | null | null | null |
#
# #############################################################################
# Copyright (c) 2019 mfneirae.com All Rights Reserved.
#
# This work is licensed under a Creative Commons
# Attribution-NonCommercial - ShareAlike 4.0 International
# License and MIT Licence.
#
# by Manuel Neira Embus.
#
# For more information write me to jai@mfneirae.com
# Or visit my webpage at https://mfneirae.com/
# #############################################################################
#
# *****************************************************************************
# SVG for page
# *****************************************************************************
def createbox(ID,EST,EFT,CODE,DURATION,LST,LFT,ATTRIBUTES,OPERATIONS):
MUSABOX = []
MUSABOXWB = []
MUSABOX.append('\
<svg xmlns:dc="http://purl.org/dc/elements/1.1/"\n \
xmlns:cc="http://creativecommons.org/ns#"\n \
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n \
xmlns:svg="http://www.w3.org/2000/svg"\n \
xmlns="http://www.w3.org/2000/svg"\n \
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"\n \
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"\n \
viewBox="0 0 211 221" \n \
version="1.1" \n \
sodipodi:docname="MUSA-BOX.svg" \n \
width="210.96037" \n \
height="220.96036"> \n \
<g \n \
inkscape:label="Layer 1" \n \
inkscape:groupmode="layer" \n \
id="layer1" \n \
transform="translate(0.00112024,26.467552)"> \n \
<!-- ID BOX --> \n \
<rect \n \
id="ID-0001" \n \
width="210" \n \
height="20" \n \
x="0.47907066" \n \
y="-25.98737" /> \n \
<text \n \
id="IDTEXT-0001" \n \
y="-12" \n \
transform="translate(100)"> \n \
<tspan x="0" text-anchor="middle"> \n' \
+ str(ID) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- EARLY START TIME BOX --> \n \
<rect \n \
id="EST-0001" \n \
width="70" \n \
height="20" \n \
x="0.47907066" \n \
y="-5.9873705" \n \
/> \n \
<text \n \
id="ESTTEXT-0001" \n \
y="10" \n \
transform="translate(33)"> \n \
<tspan x="0" text-anchor="middle"> \n' \
+ str(EST) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- EARLY FINISH TIME BOX --> \n \
<rect \n \
id="EFT-0001" \n \
width="70" \n \
height="20" \n \
x="0.47906977" \n \
y="14.01263"/> \n \
<text \n \
id="EFTTEXT-0001" \n \
y="30" \n \
transform="translate(33)"> \n \
<tspan x="0%" text-anchor="middle"> \n' \
+ str(EFT) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- CODE BOX --> \n \
<rect \n \
id="CODE-0001" \n \
width="70" \n \
height="20" \n \
x="70.479073" \n \
y="-5.9873705" \n \
/> \n \
<text \n \
id="CODETEXT-0001" \n \
y="10" \n \
transform="translate(33)"> \n \
<tspan x="33.3%" text-anchor="middle"> \n' \
+ str(CODE) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- DURATION --> \n \
<rect \n \
id="DURATION-0001" \n \
width="70" \n \
height="20" \n \
x="70.479073" \n \
y="14.01263" \n \
/> \n \
<text \n \
id="DURATIONTEXT-0001" \n \
y="30" \n \
transform="translate(33)"> \n \
<tspan x="33.3%" text-anchor="middle"> \n' \
+ str(DURATION) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- LATE START TIME --> \n \
<rect \n \
id="LST-0001" \n \
width="70" \n \
height="20" \n \
x="140.47906" \n \
y="-5.9873743" \n \
/> \n \
<text \n \
id="LSTTEXT-0001" \n \
y="10" \n \
transform="translate(33)"> \n \
<tspan x="66.6%" text-anchor="middle"> \n' \
+ str(LST) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- LATE FINISH TIME --> \n \
<rect \n \
id="LFT-0001" \n \
width="70" \n \
height="20" \n \
x="140.47903" \n \
y="14.012629" \n \
/> \n \
<text \n \
id="LFTTEXT-0001" \n \
y="30" \n \
transform="translate(33)"> \n \
<tspan x="66.6%" text-anchor="middle"> \n' \
+ str(LST) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- ATTRIBUTES BOX --> \n \
<rect \n \
id="ATTRIBUTES-0001" \n \
width="210" \n \
height="80" \n \
x="0.47906977" \n \
y="34.01263" /> \n \
<text \n \
id="ATTRIBUTESTEXT-0001" \n \
y="60" \n \
transform="translate(0)"> \n \
<tspan x="10" text-anchor="start"> \n' \
+ str(ATTRIBUTES) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<rect \n \
id="OPERATIONS-0001" \n \
width="210" \n \
height="80" \n \
x="0.47906214" \n \
y="114.01263" /> \n \
<text \n \
id="OPERATIONSTEXT-0001" \n \
y="140" \n \
transform="translate(0)"> \n \
<tspan x="10" text-anchor="start"> \n' \
+ str(OPERATIONS) + '\n ' \
+ ' </tspan> \n \
<tspan x="10" y="160" text-anchor="start"> \n' \
+ str(OPERATIONS) + '\n ' \
+ ' </tspan> \n \
<tspan x="10" y="180" text-anchor="start"> \n' \
+ str(OPERATIONS) + '\n ' \
+ ' </tspan> \n \
</text> \n \
</g> \n '\
+'</svg>')
# *****************************************************************************
# Withe background
# *****************************************************************************
MUSABOXWB.append('\
<svg xmlns:dc="http://purl.org/dc/elements/1.1/"\n \
xmlns:cc="http://creativecommons.org/ns#"\n \
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\n \
xmlns:svg="http://www.w3.org/2000/svg"\n \
xmlns="http://www.w3.org/2000/svg"\n \
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"\n \
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"\n \
viewBox="0 0 211 221" \n \
version="1.1" \n \
sodipodi:docname="MUSA-BOX.svg" \n \
width="210.96037" \n \
height="220.96036"> \n \
<g \n \
inkscape:label="Layer 1" \n \
inkscape:groupmode="layer" \n \
id="layer1" \n \
transform="translate(0.00112024,26.467552)"> \n \
<!-- ID BOX --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="ID-0001" \n \
width="210" \n \
height="20" \n \
x="0.47907066" \n \
y="-25.98737" /> \n \
<text \n \
id="IDTEXT-0001" \n \
y="-12" \n \
transform="translate(100)"> \n \
<tspan x="0" text-anchor="middle"> \n' \
+ str(ID) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- EARLY START TIME BOX --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="EST-0001" \n \
width="70" \n \
height="20" \n \
x="0.47907066" \n \
y="-5.9873705" \n \
/> \n \
<text \n \
id="ESTTEXT-0001" \n \
y="10" \n \
transform="translate(33)"> \n \
<tspan x="0" text-anchor="middle"> \n' \
+ str(EST) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- EARLY FINISH TIME BOX --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="EFT-0001" \n \
width="70" \n \
height="20" \n \
x="0.47906977" \n \
y="14.01263"/> \n \
<text \n \
id="EFTTEXT-0001" \n \
y="30" \n \
transform="translate(33)"> \n \
<tspan x="0%" text-anchor="middle"> \n' \
+ str(EFT) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- CODE BOX --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="CODE-0001" \n \
width="70" \n \
height="20" \n \
x="70.479073" \n \
y="-5.9873705" \n \
/> \n \
<text \n \
id="CODETEXT-0001" \n \
y="10" \n \
transform="translate(33)"> \n \
<tspan x="33.3%" text-anchor="middle"> \n' \
+ str(CODE) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- DURATION --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="DURATION-0001" \n \
width="70" \n \
height="20" \n \
x="70.479073" \n \
y="14.01263" \n \
/> \n \
<text \n \
id="DURATIONTEXT-0001" \n \
y="30" \n \
transform="translate(33)"> \n \
<tspan x="33.3%" text-anchor="middle"> \n' \
+ str(DURATION) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- LATE START TIME --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="LST-0001" \n \
width="70" \n \
height="20" \n \
x="140.47906" \n \
y="-5.9873743" \n \
/> \n \
<text \n \
id="LSTTEXT-0001" \n \
y="10" \n \
transform="translate(33)"> \n \
<tspan x="66.6%" text-anchor="middle"> \n' \
+ str(LST) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- LATE FINISH TIME --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="LFT-0001" \n \
width="70" \n \
height="20" \n \
x="140.47903" \n \
y="14.012629" \n \
/> \n \
<text \n \
id="LFTTEXT-0001" \n \
y="30" \n \
transform="translate(33)"> \n \
<tspan x="66.6%" text-anchor="middle"> \n' \
+ str(LST) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<!-- ATTRIBUTES BOX --> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="ATTRIBUTES-0001" \n \
width="210" \n \
height="80" \n \
x="0.47906977" \n \
y="34.01263" /> \n \
<text \n \
id="ATTRIBUTESTEXT-0001" \n \
y="60" \n \
transform="translate(0)"> \n \
<tspan x="10" text-anchor="start"> \n' \
+ str(ATTRIBUTES) + '\n ' \
+ ' </tspan> \n \
</text> \n \
<rect \n \
fill="none" \n \
stroke="black" \n \
id="OPERATIONS-0001" \n \
width="210" \n \
height="80" \n \
x="0.47906214" \n \
y="114.01263" /> \n \
<text \n \
id="OPERATIONSTEXT-0001" \n \
y="140" \n \
transform="translate(0)"> \n \
<tspan x="10" text-anchor="start"> \n' \
+ str(OPERATIONS) + '\n ' \
+ ' </tspan> \n \
<tspan x="10" y="160" text-anchor="start"> \n' \
+ str(OPERATIONS) + '\n ' \
+ ' </tspan> \n \
<tspan x="10" y="180" text-anchor="start"> \n' \
+ str(OPERATIONS) + '\n ' \
+ ' </tspan> \n \
</text> \n \
</g> \n '\
+'</svg>')
# *****************************************************************************
# Write File
# *****************************************************************************
f = open ("images/MUSA-BOXTEST.svg", "w")
for item in MUSABOX:
try:
f.write(item)
except UnicodeEncodeError:
pass
f.close()
f = open ("images/MUSA-BOXTESTWB.svg", "w")
for item in MUSABOXWB:
try:
f.write(item)
except UnicodeEncodeError:
pass
f.close()
| 31.676923
| 79
| 0.377206
| 1,375
| 12,354
| 3.389091
| 0.131636
| 0.056652
| 0.046352
| 0.030901
| 0.90794
| 0.902361
| 0.902361
| 0.902361
| 0.902361
| 0.882189
| 0
| 0.101585
| 0.376882
| 12,354
| 389
| 80
| 31.758355
| 0.503767
| 0.069208
| 0
| 0.975342
| 0
| 0.016438
| 0.195775
| 0.009722
| 0
| 0
| 0
| 0
| 0
| 1
| 0.00274
| false
| 0.005479
| 0
| 0
| 0.00274
| 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
|
fe256923d532c3fdc00880d4afcca55c33fe2a3e
| 92
|
py
|
Python
|
FUNDAMENTALS_MODULE/Functions/EXERCISE/12_Factorial_Division.py
|
sleepychild/ProgramingBasicsPython
|
d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16
|
[
"MIT"
] | null | null | null |
FUNDAMENTALS_MODULE/Functions/EXERCISE/12_Factorial_Division.py
|
sleepychild/ProgramingBasicsPython
|
d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16
|
[
"MIT"
] | 1
|
2022-01-15T10:33:56.000Z
|
2022-01-15T10:33:56.000Z
|
FUNDAMENTALS_MODULE/Functions/EXERCISE/12_Factorial_Division.py
|
sleepychild/ProgramingBasicsPython
|
d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16
|
[
"MIT"
] | null | null | null |
from math import factorial
print(f'{factorial(int(input()))/factorial(int(input())):.2f}')
| 23
| 63
| 0.706522
| 13
| 92
| 5
| 0.692308
| 0.369231
| 0.523077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011628
| 0.065217
| 92
| 3
| 64
| 30.666667
| 0.744186
| 0
| 0
| 0
| 0
| 0
| 0.576087
| 0.576087
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 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
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 8
|
fe34b1b74417a3091c4bf4a345795bfa04c6a937
| 14,243
|
py
|
Python
|
tests/test_language_model.py
|
lantunes/nlg-mcts
|
91afe0fe7eeed96cf10686c7f555df91fbdd3112
|
[
"MIT"
] | 1
|
2018-10-29T20:43:45.000Z
|
2018-10-29T20:43:45.000Z
|
tests/test_language_model.py
|
lantunes/nlg-mcts
|
91afe0fe7eeed96cf10686c7f555df91fbdd3112
|
[
"MIT"
] | null | null | null |
tests/test_language_model.py
|
lantunes/nlg-mcts
|
91afe0fe7eeed96cf10686c7f555df91fbdd3112
|
[
"MIT"
] | 1
|
2021-05-11T12:08:29.000Z
|
2021-05-11T12:08:29.000Z
|
import unittest
from nlgmcts import ShakespeareCharLanguageModel
class TestLanguageModel(unittest.TestCase):
def test_shakespeare_tokenize(self):
lm = ShakespeareCharLanguageModel(n=3)
tokenized = lm.tokenize(None)
self.assertIsNone(tokenized)
tokenized = lm.tokenize("")
self.assertEqual([], tokenized)
tokenized = lm.tokenize("The cat in the hat.")
self.assertEqual(
['T', 'h', 'e', ' ', 'c', 'a', 't', ' ', 'i', 'n', ' ', 't', 'h', 'e', ' ', 'h', 'a', 't', '.'], tokenized)
tokenized = lm.tokenize("<L>The cat in the hat.</L>")
self.assertEqual(
['<L>', 'T', 'h', 'e', ' ', 'c', 'a', 't', ' ', 'i', 'n', ' ', 't', 'h', 'e', ' ', 'h', 'a', 't', '.', '</L>'], tokenized)
tokenized = lm.tokenize("A world <L>apart.</L>")
self.assertEqual(['A', ' ', 'w', 'o', 'r', 'l', 'd', ' ', '<L>', 'a', 'p', 'a', 'r', 't', '.', '</L>'], tokenized)
def test_shakespeare_generate(self):
lm = ShakespeareCharLanguageModel(n=3)
generated = lm.generate(num_chars=5, text_seed="ab", random_seed=1)
self.assertEqual("hold ", generated)
generated = lm.generate(num_chars=5, text_seed=["a", "b"], random_seed=1)
self.assertEqual("hold ", generated)
def test_shakespeare_perplexity(self):
lm = ShakespeareCharLanguageModel(n=3)
line = "A dog and a cat"
self.assertAlmostEqual(13.296, lm.perplexity(line), places=3)
line = "A dog and a ggg"
self.assertAlmostEqual(20.414, lm.perplexity(line), places=3)
line = "A dog and a tac"
self.assertAlmostEqual(15.579, lm.perplexity(line), places=3)
line = "Adfsd ew xczv sq"
self.assertAlmostEqual(122.858, lm.perplexity(line), places=3)
line = "To be or not to be"
self.assertAlmostEqual(9.099, lm.perplexity(line), places=3)
line = "<L>To be, or not to be</L>"
self.assertAlmostEqual(10.785, lm.perplexity(line), places=3)
line = "<L>To be, or not to be, that is the question:</L>"
self.assertAlmostEqual(9.985, lm.perplexity(line), places=3)
line = ['A', ' ', 'd', 'o', 'g', ' ', 'a', 'n', 'd', ' ', 'a', ' ', 'c', 'a', 't']
self.assertAlmostEqual(13.296, lm.perplexity(line), places=3)
def test_shakespeare_entropy(self):
lm = ShakespeareCharLanguageModel(n=3)
line = "A dog and a cat"
self.assertAlmostEqual(3.733, lm.entropy(line), places=3)
line = "A dog and a ggg"
self.assertAlmostEqual(4.351, lm.entropy(line), places=3)
line = "A dog and a tac"
self.assertAlmostEqual(3.962, lm.entropy(line), places=3)
line = "Adfsd ew xczv sq"
self.assertAlmostEqual(6.941, lm.entropy(line), places=3)
line = "To be or not to be"
self.assertAlmostEqual(3.186, lm.entropy(line), places=3)
line = "<L>To be, or not to be</L>"
self.assertAlmostEqual(3.431, lm.entropy(line), places=3)
line = "<L>To be, or not to be, that is the question:</L>"
self.assertAlmostEqual(3.320, lm.entropy(line), places=3)
line = ['A', ' ', 'd', 'o', 'g', ' ', 'a', 'n', 'd', ' ', 'a', ' ', 'c', 'a', 't']
self.assertAlmostEqual(3.733, lm.entropy(line), places=3)
def test_vocab(self):
lm = ShakespeareCharLanguageModel(n=3)
self.assertEqual(['<L>', 'N', 'a', 'y', ',', ' ', 'b', 'u', 't', 'h', 'i', 's', 'd', 'o', 'g', 'e', 'f',
'r', 'n', 'l', "'", '</L>', 'O', 'w', 'm', ':', 'T', 'H', 'v', 'k', 'p', 'M', 'c', 'U',
'W', 'A', '.', 'L', 'I', 'R', 'G', 'F', ';', '-', 'C', 'D', 'P', '!', 'Y', '?', 'E',
'q', 'K', 'x', 'B', 'z', 'S', 'V', 'J', 'j', 'Q', '&', 'Z', '<UNK>'], lm.vocab())
self.assertEqual(['<L>', 'N', 'a', 'y', ',', ' ', 'b', 'u', 't', 'h', 'i', 's', 'd', 'o', 'g', 'e', 'f',
'r', 'n', 'l', "'", '</L>', 'O', 'w', 'm', ':', 'T', 'H', 'v', 'k', 'p', 'M', 'c', 'U',
'W', 'A', '.', 'L', 'I', 'R', 'G', 'F', ';', '-', 'C', 'D', 'P', '!', 'Y', '?', 'E',
'q', 'K', 'x', 'B', 'z', 'S', 'V', 'J', 'j', 'Q', '&', 'Z'], lm.vocab(with_unk=False))
def test_score(self):
lm = ShakespeareCharLanguageModel(n=3)
score = lm.score("u", context="q")
self.assertAlmostEqual(0.90, score, places=2)
score = lm.score("l", context="ab")
self.assertAlmostEqual(0.30, score, places=2)
score = lm.score("u", context=["q"])
self.assertAlmostEqual(0.90, score, places=2)
score = lm.score("l", context=["a", "b"])
self.assertAlmostEqual(0.30, score, places=2)
def test_vocab_scores(self):
lm = ShakespeareCharLanguageModel(n=3)
scores = lm.vocab_scores("ab")
v = next(scores)
self.assertEqual("l", v[0])
self.assertAlmostEqual(0.3016, v[1], places=4)
v = next(scores)
self.assertEqual("o", v[0])
self.assertAlmostEqual(0.2597, v[1], places=4)
v = next(scores)
self.assertEqual("s", v[0])
self.assertAlmostEqual(0.0645, v[1], places=4)
v = next(scores)
self.assertEqual("i", v[0])
self.assertAlmostEqual(0.0645, v[1], places=4)
v = next(scores)
self.assertEqual("u", v[0])
self.assertAlmostEqual(0.0468, v[1], places=4)
v = next(scores)
self.assertEqual("e", v[0])
self.assertAlmostEqual(0.0355, v[1], places=4)
v = next(scores)
self.assertEqual("r", v[0])
self.assertAlmostEqual(0.0339, v[1], places=4)
v = next(scores)
self.assertEqual("a", v[0])
self.assertAlmostEqual(0.0274, v[1], places=4)
v = next(scores)
self.assertEqual("b", v[0])
self.assertAlmostEqual(0.0226, v[1], places=4)
v = next(scores)
self.assertEqual("y", v[0])
self.assertAlmostEqual(0.0210, v[1], places=4)
v = next(scores)
self.assertEqual("h", v[0])
self.assertAlmostEqual(0.0129, v[1], places=4)
v = next(scores)
self.assertEqual(",", v[0])
self.assertAlmostEqual(0.0097, v[1], places=4)
v = next(scores)
self.assertEqual("j", v[0])
self.assertAlmostEqual(0.0081, v[1], places=4)
v = next(scores)
self.assertEqual("</L>", v[0])
self.assertAlmostEqual(0.0048, v[1], places=4)
v = next(scores)
self.assertEqual(" ", v[0])
self.assertAlmostEqual(0.0048, v[1], places=4)
v = next(scores)
self.assertEqual("-", v[0])
self.assertAlmostEqual(0.0032, v[1], places=4)
v = next(scores)
self.assertEqual(":", v[0])
self.assertAlmostEqual(0.0032, v[1], places=4)
v = next(scores)
self.assertEqual("<UNK>", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("Z", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("&", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("Q", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("J", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("V", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("S", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("z", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("B", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("x", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("K", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("q", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("E", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("?", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("Y", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("!", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("P", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("D", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("C", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual(";", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("F", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("G", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("R", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("I", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("L", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual(".", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("A", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("W", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("U", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("c", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("M", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("p", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("k", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("v", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("H", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("T", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("m", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("w", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("O", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("'", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("n", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("f", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("g", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("d", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("t", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("N", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
v = next(scores)
self.assertEqual("<L>", v[0])
self.assertAlmostEqual(0.0016, v[1], places=4)
scores = lm.vocab_scores(["a", "b"])
v = next(scores)
self.assertEqual("l", v[0])
self.assertAlmostEqual(0.3016, v[1], places=4)
def test_top_n_vocab(self):
lm = ShakespeareCharLanguageModel(n=3)
top_n = lm.top_n_vocab(3, "ab")
self.assertEqual(["l", "o", "s"], top_n)
top_n = lm.top_n_vocab(3, "e a g")
self.assertEqual(['Z', '&', 'Q'], top_n)
top_n = lm.top_n_vocab(3, ["a", "b"])
self.assertEqual(["l", "o", "s"], top_n)
top_n = lm.top_n_vocab(3, ["e", " ", "a", " ", "g"])
self.assertEqual(['Z', '&', 'Q'], top_n)
def test_top_n_vocab_with_weights(self):
lm = ShakespeareCharLanguageModel(n=3)
top_n = lm.top_n_vocab_with_weights(3, "ab")
self.assertEqual(["l", "o", "s"], top_n[0])
self.assertEqual(3, len(top_n[1]))
self.assertAlmostEqual(0.4820, top_n[1][0], places=4)
self.assertAlmostEqual(0.4149, top_n[1][1], places=4)
self.assertAlmostEqual(0.1031, top_n[1][2], places=4)
top_n = lm.top_n_vocab_with_weights(3, "e a g")
self.assertEqual(["Z", "&", "Q"], top_n[0])
self.assertEqual(3, len(top_n[1]))
self.assertAlmostEqual(0.3333, top_n[1][0], places=4)
self.assertAlmostEqual(0.3333, top_n[1][1], places=4)
self.assertAlmostEqual(0.3333, top_n[1][2], places=4)
top_n = lm.top_n_vocab_with_weights(3, ["a", "b"])
self.assertEqual(["l", "o", "s"], top_n[0])
self.assertEqual(3, len(top_n[1]))
self.assertAlmostEqual(0.4820, top_n[1][0], places=4)
self.assertAlmostEqual(0.4149, top_n[1][1], places=4)
self.assertAlmostEqual(0.1031, top_n[1][2], places=4)
def test_order(self):
lm = ShakespeareCharLanguageModel(n=2)
self.assertEqual(2, lm.order())
| 33.434272
| 134
| 0.533244
| 1,944
| 14,243
| 3.867798
| 0.071502
| 0.262535
| 0.228222
| 0.129672
| 0.903977
| 0.874185
| 0.862482
| 0.839207
| 0.829632
| 0.806889
| 0
| 0.069647
| 0.268132
| 14,243
| 425
| 135
| 33.512941
| 0.651669
| 0
| 0
| 0.578778
| 0
| 0
| 0.053149
| 0
| 0
| 0
| 0
| 0
| 0.575563
| 1
| 0.032154
| false
| 0
| 0.006431
| 0
| 0.041801
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
fe43721218bd42a196cf2f24ccabe65434ed2451
| 244
|
py
|
Python
|
src/zipline/data/__init__.py
|
jasonstrimpel/zipline-tradeblotter
|
8b510ce149ec00fbbe85a0fd8f8b6209b87b2c58
|
[
"Apache-2.0"
] | null | null | null |
src/zipline/data/__init__.py
|
jasonstrimpel/zipline-tradeblotter
|
8b510ce149ec00fbbe85a0fd8f8b6209b87b2c58
|
[
"Apache-2.0"
] | null | null | null |
src/zipline/data/__init__.py
|
jasonstrimpel/zipline-tradeblotter
|
8b510ce149ec00fbbe85a0fd8f8b6209b87b2c58
|
[
"Apache-2.0"
] | null | null | null |
from . import loader
from .loader import (
load_prices_from_csv,
load_prices_from_csv_folder,
get_data_filepath
)
__all__ = [
"load_prices_from_csv",
"load_prices_from_csv_folder",
"get_data_filepath",
"loader",
]
| 16.266667
| 34
| 0.709016
| 32
| 244
| 4.71875
| 0.34375
| 0.264901
| 0.370861
| 0.450331
| 0.728477
| 0.728477
| 0.728477
| 0.728477
| 0.728477
| 0.728477
| 0
| 0
| 0.204918
| 244
| 14
| 35
| 17.428571
| 0.778351
| 0
| 0
| 0
| 0
| 0
| 0.286885
| 0.110656
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 0
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
feb1f1bf173eb1daa1a950e75a460683c1114eae
| 50
|
py
|
Python
|
instance/config.py
|
Wakarende/NewsBits
|
27dc8110f4af73300e95d17afb4101d1ed30a49a
|
[
"MIT"
] | null | null | null |
instance/config.py
|
Wakarende/NewsBits
|
27dc8110f4af73300e95d17afb4101d1ed30a49a
|
[
"MIT"
] | null | null | null |
instance/config.py
|
Wakarende/NewsBits
|
27dc8110f4af73300e95d17afb4101d1ed30a49a
|
[
"MIT"
] | null | null | null |
NEWS_API_KEY='6335023d9b70450b9a2924739e948c0c'
| 12.5
| 47
| 0.88
| 4
| 50
| 10.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.531915
| 0.06
| 50
| 3
| 48
| 16.666667
| 0.361702
| 0
| 0
| 0
| 0
| 0
| 0.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 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
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
22929981554e39634914b892cbccb40ea4a9577b
| 36,202
|
py
|
Python
|
userPortal/appName/route/neutron_api.py
|
luqitao/WebPOS
|
441df2d01d2a35ee1f240bd55e97c1b46b01d04b
|
[
"MIT"
] | null | null | null |
userPortal/appName/route/neutron_api.py
|
luqitao/WebPOS
|
441df2d01d2a35ee1f240bd55e97c1b46b01d04b
|
[
"MIT"
] | null | null | null |
userPortal/appName/route/neutron_api.py
|
luqitao/WebPOS
|
441df2d01d2a35ee1f240bd55e97c1b46b01d04b
|
[
"MIT"
] | null | null | null |
import urllib2
import json
from urllib2 import URLError, HTTPError
from appName.api.common.config import configs
from appName.api import nova as nova_api
# from datetime import datetime
from ..models import Opcache
service_ip = 'http://10.89.151.12:'
neutron_url = service_ip + '9696'
NOVAL_URL = configs.get('nova')
# urlib2 get token
def gettoken_new():
data = {
"auth": {
"identity": {
"methods": [
"password"
],
"password": {
"user": {
"domain": {
"name": "Default"
},
"name": "yzq",
"password": "yzq"
}
}
},
"scope": {
"project": {
"domain": {
"name": "Default"
},
"name": "admin"
}
}
}
}
req = urllib2.Request(service_ip + '35357/v3/auth/tokens')
req.add_header('Content-Type', 'application/json')
try:
response = urllib2.urlopen(req, json.dumps(data))
return response.headers['X-Subject-Token']
except HTTPError:
raise 'not found server'
# 15.2.2 create network
def create_network(**network):
# data = {
# "network": {
# "name": "tcx",
# "admin_state_up": "true"
# }
# }
req = urllib2.Request(neutron_url+'/v2.0/networks')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(network))
code = response.getcode()
content = json.loads(response.read())
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError:
raise 'not found server'
except URLError, e:
raise 'URLError', e.reason
# 12.2.5 update network
def update_network(id, **network):
# data = {
# "network": {
# "name": "tcx_update_update",
# "shared": "true"
# }
# }
req = urllib2.Request(neutron_url+'/v2.0/networks/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, json.dumps(network))
code = response.getcode()
content = json.loads(response.read())
if code == 200:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError:
raise 'not found server'
# 15.2.1 list network parameter:network name
def list_all_network():
req = urllib2.Request(neutron_url+'/v2.0/networks')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
# networklist = content['networks']
#
# for network in networklist:
# for k, v in network.iteritems():
# pass
# if k == 'admin_state_up':
# network['admin_state_up'] = 'UP' if network['admin_state_up'] == 'true' else 'DOWN'
# if k == 'shared':
# network['shared'] = 'YES' if network['shared'] == 'true' else 'NO'
return content, code
# network_id = ''
# if name != '':
# for network in networklist:
# for k, v in network.iteritems():
# if v == name:
# network_id = network.get('id', '')
# break
# return network_id
except HTTPError:
raise 'not found server'
# 15.2.1 list network parameter:project id
def list_network(user,projectid, isext):
req = urllib2.Request(neutron_url+'/v2.0/networks')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
# json.dump(user, open('user.json', 'w'), indent=4)
try:
opcache = []
params = ''
if isext is False :
params = " ".join((projectid, "False"))
else:
params = " ".join((projectid, "True"))
opcache = Opcache.objects.filter(user=user.get('username')).filter(params=params).filter(category='list_network')
content = ''
if opcache is not None and len(opcache) >0:
code = 200
data = opcache[0].content
content = json.loads(data)
else:
response = urllib2.urlopen(req)
code = response.getcode()
data = response.read();
content = json.loads(data)
if code == 200:
o = Opcache()
o.user = user
o.category = 'list_network'
o.params = params
o.content = data
o.save()
networklist = content['networks']
syslist = []
newlist = []
extlist = []
for network in networklist:
if(len(network['tenant_id']) != 0):
syslist.append(network)
if(len(projectid) != 0):
if network['tenant_id'] == projectid or network['shared']:
newlist.append(network)
if network['router:external']:
extlist.append(network)
# for k, v in network.iteritems():
# if k == 'admin_state_up':
# print network['admin_state_up']
# print network['admin_state_up'] == "True"
# network['admin_state_up'] = 'UP' if network['admin_state_up'] == 'True' else 'DOWN'
# if k == 'shared':
# network['shared']
# network['shared'] = 'YES' if network['shared'] == 'True' else 'NO'
content = {"networks": syslist}
if (len(projectid) != 0):
content = {"networks": newlist}
if isext:
content = {"networks": extlist}
# json.dump(content, open('network.json', 'w'), indent=4)
return content, code
# network_id = ''
# if name != '':
# for network in networklist:
# for k, v in network.iteritems():
# if v == name:
# network_id = network.get('id', '')
# break
# return network_id
except HTTPError:
raise 'not found server'
# # 15.2.1 list network parameter: field, value
# def list_network(field,value):
#
# req = urllib2.Request(neutron_url+'/v2.0/networks')
# req.add_header('Content-Type', 'application/json')
# req.add_header('X-Auth-Token', gettoken_new())
#
# try:
# response = urllib2.urlopen(req)
# code = response.getcode()
# content = json.loads(response.read())
# networklist = content['networks']
#
# print len(networklist)
# newlist = []
# for network in networklist:
# if(len(value) != 0):
# print len(network['tenant_id'])
# if network['tenant_id'] == value:
# newlist.append(network)
#
# # for k, v in network.iteritems():
# # if k == 'admin_state_up':
# # print network['admin_state_up']
# # print network['admin_state_up'] == "True"
# # network['admin_state_up'] = 'UP' if network['admin_state_up'] == 'True' else 'DOWN'
# # if k == 'shared':
# # network['shared']
# # network['shared'] = 'YES' if network['shared'] == 'True' else 'NO'
#
# if(len(value) != 0):
# content = {"networks": newlist}
# return content, code
#
# # network_id = ''
# # if name != '':
# # for network in networklist:
# # for k, v in network.iteritems():
# # if v == name:
# # network_id = network.get('id', '')
# # break
# # return network_id
# except HTTPError:
# raise 'not found server'
# 15.3.2 create subnet
def create_subnet(**subnet):
req = urllib2.Request(neutron_url+'/v2.0/subnets')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(subnet))
code = response.getcode()
content = json.loads(response.read())
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# list subnet
def list_subnet():
req = urllib2.Request(neutron_url+'/v2.0/subnets')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
subnetlist = content['subnets']
syslist = []
for subnet in subnetlist:
if(subnet['tenant_id'] == 'd04021d5a4144b4c9f579fdc1d1c2a9a'):
syslist.append(subnet)
content = {'subnets': syslist}
return content, code
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# delete subnet
def delete_subnet():
req = urllib2.Request(neutron_url+'/v2.0/subnets/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
return code
except HTTPError:
raise 'not found server'
except URLError,e:
raise 'URLError:', e.reason
# 15.2.6 delete network parameter: network name
def delete_network(id):
req = urllib2.Request(neutron_url+'/v2.0/networks/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
if 204 == code:
data = {"status": "ok"}
return data
except HTTPError:
raise 'not found server'
# 16.9.8 list floating ip
def list_floatingip(status):
req = urllib2.Request(neutron_url+'/v2.0/floatingips')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
# print content
iplist = content['floatingips']
active_list = []
down_list = []
for ip in iplist:
if(ip['status'] == 'ACTIVE'):
active_list.append(ip)
if(ip['status'] == 'DOWN'):
down_list.append(ip)
if status == 'ACTIVE':
content = {'floatingips': active_list}
if status == 'DOWN':
content = {'floatingips': down_list}
# print content
return content, code
except HTTPError:
raise 'not found server'
# 16.9.12 delete floating ip parameter:floating ip id
def delete_floatingip(id):
req = urllib2.Request(neutron_url+'/v2.0/floatingips/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
return code
except HTTPError:
raise 'not found server'
# 16.9.9 create floating ip
def create_floatingip():
data = {
"floatingip": {
"floating_network_id": "8467c174-2e3d-4661-8030-bcff99f749b5"
}
}
req = urllib2.Request(neutron_url+'/v2.0/floatingips')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(data))
code = response.getcode()
content = json.loads(response.read())
return code
except HTTPError:
raise 'not found server'
# 12.2.5 associate or disassociate ip to port
def update_floatingip(id, **port):
if '.' in id:
ipdic = list_floatingip('ACTIVE')
iplist = ipdic[0]['floatingips']
for ip in iplist:
if ip['floating_ip_address'] == id:
id = ip['id']
break
req = urllib2.Request(neutron_url+'/v2.0/floatingips/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, json.dumps(port))
code = response.getcode()
# content = json.loads(response.read())
if code == 200:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError:
raise 'not found server'
# 16.7.1 list security group
def list_securitygroup():
req = urllib2.Request(neutron_url+'/v2.0/security-groups')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
return content, code
except HTTPError:
raise 'not found server'
# 16.7.2 create security group
def create_securitygroup(**group):
req = urllib2.Request(neutron_url+'/v2.0/security-groups')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(group))
code = response.getcode()
content = json.loads(response.read())
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# 12.2.5 update securitygroup
def update_securitygroup(id, **group):
req = urllib2.Request(neutron_url+'/v2.0/security-groups/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, json.dumps(group))
code = response.getcode()
content = json.loads(response.read())
# print code, content
if code == 200:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError:
raise 'not found server'
# 16.7.5
def delete_securitygroup(id):
req = urllib2.Request(neutron_url+'/v2.0/security-groups/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
if 204 == code:
data = {"status": "ok"}
return data
except HTTPError:
raise 'not found server'
# list security group rules
def list_secgrouprules():
req = urllib2.Request(neutron_url+'/v2.0/security-group-rules')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
newcontent = content.values()
return newcontent
except HTTPError:
raise 'not found server'
# create ecurity group rules
def create_secgourprules(rule_list):
req = urllib2.Request(neutron_url+'/v2.0/security-group-rules')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
codes = []
contents = []
for rule in rule_list:
response = urllib2.urlopen(req, json.dumps(rule))
code = response.getcode()
content = json.loads(response.read())
codes.append(code)
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# list projects
def list_project():
req = urllib2.Request(service_ip+'35357/v3/projects')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
newcontent = content.values()
# print code
return newcontent, code
except HTTPError:
raise 'not found server'
# list pool
def list_pool():
req = urllib2.Request(service_ip+'8774/v2/d04021d5a4144b4c9f579fdc1d1c2a9a/os-floating-ip-pools')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
newcontent = content['floating_ip_pools']
# print 'newcontent', newcontent
return newcontent, code
except HTTPError:
raise 'not found server'
# allocate ip
def allocate_ip(**ip):
req = urllib2.Request(service_ip+'8774/v2/d04021d5a4144b4c9f579fdc1d1c2a9a/os-floating-ip-pools')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(ip))
code = response.getcode()
content = json.loads(response.read())
# print code, content
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
def list_routers(user):
req = urllib2.Request(neutron_url+'/v2.0/routers')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
opcache = []
params = ''
opcache = Opcache.objects.filter(user=user).filter(params=params).filter(category='list_routers')
content = ''
if opcache is not None and len(opcache) >0:
code = 200
content = json.loads(opcache[0].content)
else:
response = urllib2.urlopen(req)
code = response.getcode()
data = response.read()
content = json.loads(data)
if code == 200:
o = Opcache()
o.user = user
o.category = 'list_routers'
o.params = params
o.content = data
o.save()
return content, code
except HTTPError:
raise 'not found server'
def list_routers(tetantid = None):
req = urllib2.Request(neutron_url+'/v2.0/routers')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
if(tetantid != None):
newcontent = []
routerlist = content['routers']
for router in routerlist:
if router['tenant_id'] == tetantid:
newcontent.append(router)
content = {'routers': newcontent}
return content, code
except HTTPError:
raise 'not found server'
#add port_list_bynobind to get the port list that not bind to any instance
def list_ports_by_nobind(**network):
req = urllib2.Request(neutron_url+'/v2.0/ports?network_id='+network.get('network_id'))
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
ports = content['ports']
port_list = []
if code == 200 and ports is not None:
print 'network.get(network_id):----',network.get('network_id')
for port in ports:
if port.get('device_id') is None or port.get('device_id') =='':#if not binded then record
port_dict = {}
port_dict['id'] = port.get('id')
for ip in port.get('fixed_ips'):
port_dict['ip_address'] = ip.get('ip_address')
port_list.append(port_dict)
print 'port_list:',port_list
return port_list
except HTTPError:
raise 'not found port'
def list_ports():
tenantid = 'd04021d5a4144b4c9f579fdc1d1c2a9a'
req = urllib2.Request(neutron_url+'/v2.0/ports?tenant_id='+tenantid)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
ports = content['ports']
# json.dump(content, open('list_network.json', 'w'), indent=4)
portslist = []
for port in ports:
if 'compute:' in port['device_owner']:
deviceid = port['device_id']
devicename = list_server(tenantid, deviceid)
newname = devicename + ":" + port['fixed_ips'][0]['ip_address']
dict = {"id": port['id'], "name": newname}
portslist.append(dict)
# print portslist
newcontent = {'ports': portslist}
return newcontent, code
except HTTPError:
raise 'not found server'
def list_server(tenantid, serviceid):
req = urllib2.Request(NOVAL_URL+'v2/' + tenantid + '/servers/' + serviceid)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
content = json.loads(response.read())
servername = content['server']['name']
return servername
except HTTPError:
raise 'not found server'
def create_router(**router):
req = urllib2.Request(neutron_url+'/v2.0/routers')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(router))
code = response.getcode()
content = json.loads(response.read())
# print code, content
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
def add_interface(routerid, **subnet):
req = urllib2.Request(neutron_url+'/v2.0/routers/'+routerid+'/add_router_interface')
# print neutron_url+'/v2.0/routers/'+routerid+'/add_router_interface'
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, json.dumps(subnet))
code = response.getcode()
content = json.loads(response.read())
if code == 200:
return {"Success": "OK"}
else:
return {"Error": "add failed"}
except HTTPError:
raise 'not found server'
# 15.2.6 delete router parameter: router id
def delete_router(id):
req = urllib2.Request(neutron_url+'/v2.0/routers/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
if 204 == code:
data = {"status": "ok"}
return data
except HTTPError:
raise 'not found server'
# 12.2.5 update router
def update_router(id, **router):
req = urllib2.Request(neutron_url+'/v2.0/routers/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, json.dumps(router))
code = response.getcode()
content = json.loads(response.read())
if code == 200:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError:
raise 'not found server'
# 16.7.1 list load balancers
def list_lbpools():
req = urllib2.Request(neutron_url+'/v2.0/lb/pools')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
return content, code
except HTTPError:
raise 'not found server'
# 16.7.1 list loadbalancers
def list_lbmonitors():
req = urllib2.Request(neutron_url+'/v2.0/lb/health_monitors')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
return content, code
except HTTPError:
raise 'not found server'
# create lb member
def create_lbmember(**member):
req = urllib2.Request(neutron_url+'/v2.0/lb/members')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(member))
code = response.getcode()
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# create lb pool
def create_lbpool(**pool):
req = urllib2.Request(neutron_url+'/v2.0/lb/pools')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(pool))
code = response.getcode()
content = json.loads(response.read())
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# update lb pool
def update_lbpool(id, **pool):
req = urllib2.Request(neutron_url+'/v2.0/lb/pools/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, json.dumps(pool))
code = response.getcode()
content = json.loads(response.read())
print code, content
if code == 200:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError:
raise 'not found server'
# 15.2.6 delete firewall parameter: router id
def delete_lbpool(id):
req = urllib2.Request(neutron_url+'/v2.0/lb/pools/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
if 204 == code:
data = {"status": "ok"}
return data
except HTTPError:
raise 'not found server'
# associate monitor to pool
def associate_monitor(id, **monitor):
req = urllib2.Request(neutron_url+'/v2.0/lb/pools/'+id+'/health_monitors')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(monitor))
code = response.getcode()
content = json.loads(response.read())
print code, content
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# 15.2.6 disassociate monitor
def disassociate_monitor(poolid, monitorid):
req = urllib2.Request(neutron_url+'/v2.0/lb/pools/'+poolid+'/health_monitors/'+monitorid)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
if 204 == code:
data = {"status": "ok"}
return data
except HTTPError:
raise 'not found server'
# add lb monitor
def add_lbmonitor(**monitor):
req = urllib2.Request(neutron_url+'/v2.0/lb/health_monitors')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(monitor))
code = response.getcode()
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# 16.7.1 list firewall
def list_firewalls():
req = urllib2.Request(neutron_url+'/v2.0/fw/firewalls')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
return content, code
except HTTPError:
raise 'not found server'
# 16.7.1 list firewall policy
def list_policys():
req = urllib2.Request(neutron_url+'/v2.0/fw/firewall_policies')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
return content, code
except HTTPError:
raise 'not found server'
def create_firewall(**fw):
req = urllib2.Request(neutron_url+'/v2.0/fw/firewalls')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(fw))
code = response.getcode()
# content = json.loads(response.read())
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# 15.2.6 delete firewall parameter: router id
def delete_firewall(id):
req = urllib2.Request(neutron_url+'/v2.0/fw/firewalls/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'DELETE'
try:
response = urllib2.urlopen(req)
code = response.getcode()
if 204 == code:
data = {"status": "ok"}
return data
except HTTPError:
raise 'not found server'
# firewall policy
def create_fwpolicy(**policy):
req = urllib2.Request(neutron_url+'/v2.0/fw/firewall_policies')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
# print json.dumps(policy)
response = urllib2.urlopen(req, json.dumps(policy))
code = response.getcode()
# content = json.loads(response.read())
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# 16.7.1 list firewall rules /v2.0/fw/firewall_rules
def list_fwrules():
req = urllib2.Request(neutron_url+'/v2.0/fw/firewall_rules')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req)
code = response.getcode()
content = json.loads(response.read())
return content, code
except HTTPError:
raise 'not found server'
# firewall rule
def create_fwrule(**rule):
req = urllib2.Request(neutron_url+'/v2.0/fw/firewall_rules')
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
try:
response = urllib2.urlopen(req, json.dumps(rule))
code = response.getcode()
# content = json.loads(response.read())
if code == 201:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError, e:
if 404 == e.code:
raise 'not found the server'
except URLError, e:
raise 'URLError: ', e.reason
# 12.2.5 update firewall
def update_firewall(id, **fw):
req = urllib2.Request(neutron_url+'/v2.0/fw/firewalls/'+id)
req.add_header('Content-Type', 'application/json')
req.add_header('X-Auth-Token', gettoken_new())
req.get_method = lambda: 'PUT'
try:
response = urllib2.urlopen(req, json.dumps(fw))
code = response.getcode()
content = json.loads(response.read())
# print code, content
if code == 200:
return {"Success": "OK"}
else:
return {"Error": "create failed"}
except HTTPError:
raise 'not found server'
# create_secgourprules_test()
# user = {'projectid': 'd04021d5a4144b4c9f579fdc1d1c2a9a', 'username': 'admin', 'password':'Abc12345'}
# content = nova_api.list_server_detail(user)
# print content
# list_server('d04021d5a4144b4c9f579fdc1d1c2a9a', '1abbd2eb-c4f2-4992-842c-613ec510e107')
# list_ports()
# list_routers()
# list_pool()
# list_secgrouprules()
# create_network()
# create_subnet('5a9fb3a8-ab4e-44eb-80c5-c7fda17b3a0f')
# list_subnet()
# list_subnet()
# delete_network('tcx')
# list_network()
# create_floatingip()
# delete_floatingip('7b9efbd8-496e-46a1-85e4-a8c04df2b966')
# create_securitygroup()
# delete_securitygroup('153a8423-d27b-44e0-8452-c68f4c6baf22')
# list_securitygroup()
# list_floatingip()
# update_network()
# user={"username":"admin","password":"Abc12345","projectid":"d04021d5a4144b4c9f579fdc1d1c2a9a"}
# network_id={'network_id':'52ea0274-692b-4ef2-a37b-d56fc2561af4'}
# list_ports_by_nobind(**network_id)
| 31.952339
| 121
| 0.57472
| 4,106
| 36,202
| 4.9698
| 0.068193
| 0.028521
| 0.057042
| 0.045624
| 0.777761
| 0.760855
| 0.745173
| 0.736058
| 0.718955
| 0.692688
| 0
| 0.028906
| 0.290951
| 36,202
| 1,133
| 122
| 31.952339
| 0.76606
| 0.155378
| 0
| 0.772215
| 0
| 0
| 0.174494
| 0.019747
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.003755
| 0.007509
| null | null | 0.005006
| 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
|
fe0aad22e16e5476c86b83984e9addcadb199aeb
| 170
|
py
|
Python
|
shadowhand_gym/envs/shadowhand_tasks/__init__.py
|
szahlner/shadowhand-gym
|
a7fbbe8ddcc2ecbead9349b0f377a3066ca94233
|
[
"MIT"
] | 11
|
2021-08-30T12:09:16.000Z
|
2021-12-13T15:10:27.000Z
|
shadowhand_gym/envs/shadowhand_tasks/__init__.py
|
szahlner/shadowhand-gym
|
a7fbbe8ddcc2ecbead9349b0f377a3066ca94233
|
[
"MIT"
] | null | null | null |
shadowhand_gym/envs/shadowhand_tasks/__init__.py
|
szahlner/shadowhand-gym
|
a7fbbe8ddcc2ecbead9349b0f377a3066ca94233
|
[
"MIT"
] | null | null | null |
from shadowhand_gym.envs.shadowhand_tasks.shadowhand_reach import ShadowHandReachEnv
from shadowhand_gym.envs.shadowhand_tasks.shadowhand_block import ShadowHandBlockEnv
| 56.666667
| 84
| 0.917647
| 20
| 170
| 7.5
| 0.5
| 0.186667
| 0.226667
| 0.28
| 0.613333
| 0.613333
| 0.613333
| 0
| 0
| 0
| 0
| 0
| 0.047059
| 170
| 2
| 85
| 85
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 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
|
a3a96cbea7b7580f47f2ed396c2f7de7dd668bb0
| 7,125
|
py
|
Python
|
tests/test_models/test_common_modules/test_pointnet_modules.py
|
Guangyun-Xu/mmdetection3d
|
75c5c6cd590386bd1539a686c5fd2cc45c5480d5
|
[
"Apache-2.0"
] | 2,216
|
2020-07-09T19:10:11.000Z
|
2022-03-31T12:39:26.000Z
|
tests/test_models/test_common_modules/test_pointnet_modules.py
|
Guangyun-Xu/mmdetection3d
|
75c5c6cd590386bd1539a686c5fd2cc45c5480d5
|
[
"Apache-2.0"
] | 1,174
|
2020-07-10T07:02:28.000Z
|
2022-03-31T12:38:56.000Z
|
tests/test_models/test_common_modules/test_pointnet_modules.py
|
Guangyun-Xu/mmdetection3d
|
75c5c6cd590386bd1539a686c5fd2cc45c5480d5
|
[
"Apache-2.0"
] | 681
|
2020-07-09T19:40:06.000Z
|
2022-03-31T11:02:24.000Z
|
# Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import pytest
import torch
def test_pointnet_sa_module_msg():
if not torch.cuda.is_available():
pytest.skip()
from mmdet3d.ops import PointSAModuleMSG
self = PointSAModuleMSG(
num_point=16,
radii=[0.2, 0.4],
sample_nums=[4, 8],
mlp_channels=[[12, 16], [12, 32]],
norm_cfg=dict(type='BN2d'),
use_xyz=False,
pool_mod='max').cuda()
assert self.mlps[0].layer0.conv.in_channels == 12
assert self.mlps[0].layer0.conv.out_channels == 16
assert self.mlps[1].layer0.conv.in_channels == 12
assert self.mlps[1].layer0.conv.out_channels == 32
xyz = np.fromfile('tests/data/sunrgbd/points/000001.bin', np.float32)
# (B, N, 3)
xyz = torch.from_numpy(xyz).view(1, -1, 3).cuda()
# (B, C, N)
features = xyz.repeat([1, 1, 4]).transpose(1, 2).contiguous().cuda()
# test forward
new_xyz, new_features, inds = self(xyz, features)
assert new_xyz.shape == torch.Size([1, 16, 3])
assert new_features.shape == torch.Size([1, 48, 16])
assert inds.shape == torch.Size([1, 16])
# test D-FPS mod
self = PointSAModuleMSG(
num_point=16,
radii=[0.2, 0.4],
sample_nums=[4, 8],
mlp_channels=[[12, 16], [12, 32]],
norm_cfg=dict(type='BN2d'),
use_xyz=False,
pool_mod='max',
fps_mod=['D-FPS'],
fps_sample_range_list=[-1]).cuda()
# test forward
new_xyz, new_features, inds = self(xyz, features)
assert new_xyz.shape == torch.Size([1, 16, 3])
assert new_features.shape == torch.Size([1, 48, 16])
assert inds.shape == torch.Size([1, 16])
# test F-FPS mod
self = PointSAModuleMSG(
num_point=16,
radii=[0.2, 0.4],
sample_nums=[4, 8],
mlp_channels=[[12, 16], [12, 32]],
norm_cfg=dict(type='BN2d'),
use_xyz=False,
pool_mod='max',
fps_mod=['F-FPS'],
fps_sample_range_list=[-1]).cuda()
# test forward
new_xyz, new_features, inds = self(xyz, features)
assert new_xyz.shape == torch.Size([1, 16, 3])
assert new_features.shape == torch.Size([1, 48, 16])
assert inds.shape == torch.Size([1, 16])
# test FS mod
self = PointSAModuleMSG(
num_point=8,
radii=[0.2, 0.4],
sample_nums=[4, 8],
mlp_channels=[[12, 16], [12, 32]],
norm_cfg=dict(type='BN2d'),
use_xyz=False,
pool_mod='max',
fps_mod=['FS'],
fps_sample_range_list=[-1]).cuda()
# test forward
new_xyz, new_features, inds = self(xyz, features)
assert new_xyz.shape == torch.Size([1, 16, 3])
assert new_features.shape == torch.Size([1, 48, 16])
assert inds.shape == torch.Size([1, 16])
# test using F-FPS mod and D-FPS mod simultaneously
self = PointSAModuleMSG(
num_point=[8, 12],
radii=[0.2, 0.4],
sample_nums=[4, 8],
mlp_channels=[[12, 16], [12, 32]],
norm_cfg=dict(type='BN2d'),
use_xyz=False,
pool_mod='max',
fps_mod=['F-FPS', 'D-FPS'],
fps_sample_range_list=[64, -1]).cuda()
# test forward
new_xyz, new_features, inds = self(xyz, features)
assert new_xyz.shape == torch.Size([1, 20, 3])
assert new_features.shape == torch.Size([1, 48, 20])
assert inds.shape == torch.Size([1, 20])
# length of 'fps_mod' should be same as 'fps_sample_range_list'
with pytest.raises(AssertionError):
PointSAModuleMSG(
num_point=8,
radii=[0.2, 0.4],
sample_nums=[4, 8],
mlp_channels=[[12, 16], [12, 32]],
norm_cfg=dict(type='BN2d'),
use_xyz=False,
pool_mod='max',
fps_mod=['F-FPS', 'D-FPS'],
fps_sample_range_list=[-1]).cuda()
# length of 'num_point' should be same as 'fps_sample_range_list'
with pytest.raises(AssertionError):
PointSAModuleMSG(
num_point=[8, 8],
radii=[0.2, 0.4],
sample_nums=[4, 8],
mlp_channels=[[12, 16], [12, 32]],
norm_cfg=dict(type='BN2d'),
use_xyz=False,
pool_mod='max',
fps_mod=['F-FPS'],
fps_sample_range_list=[-1]).cuda()
def test_pointnet_sa_module():
if not torch.cuda.is_available():
pytest.skip()
from mmdet3d.ops import build_sa_module
sa_cfg = dict(
type='PointSAModule',
num_point=16,
radius=0.2,
num_sample=8,
mlp_channels=[12, 32],
norm_cfg=dict(type='BN2d'),
use_xyz=True,
pool_mod='max')
self = build_sa_module(sa_cfg).cuda()
assert self.mlps[0].layer0.conv.in_channels == 15
assert self.mlps[0].layer0.conv.out_channels == 32
xyz = np.fromfile('tests/data/sunrgbd/points/000001.bin', np.float32)
# (B, N, 3)
xyz = torch.from_numpy(xyz[..., :3]).view(1, -1, 3).cuda()
# (B, C, N)
features = xyz.repeat([1, 1, 4]).transpose(1, 2).contiguous().cuda()
# test forward
new_xyz, new_features, inds = self(xyz, features)
assert new_xyz.shape == torch.Size([1, 16, 3])
assert new_features.shape == torch.Size([1, 32, 16])
assert inds.shape == torch.Size([1, 16])
# can't set normalize_xyz when radius is None
with pytest.raises(AssertionError):
sa_cfg = dict(
type='PointSAModule',
num_point=16,
radius=None,
num_sample=8,
mlp_channels=[12, 32],
norm_cfg=dict(type='BN2d'),
use_xyz=True,
pool_mod='max',
normalize_xyz=True)
self = build_sa_module(sa_cfg)
# test kNN sampling when radius is None
sa_cfg['normalize_xyz'] = False
self = build_sa_module(sa_cfg).cuda()
xyz = np.fromfile('tests/data/sunrgbd/points/000001.bin', np.float32)
xyz = torch.from_numpy(xyz[..., :3]).view(1, -1, 3).cuda()
features = xyz.repeat([1, 1, 4]).transpose(1, 2).contiguous().cuda()
new_xyz, new_features, inds = self(xyz, features)
assert new_xyz.shape == torch.Size([1, 16, 3])
assert new_features.shape == torch.Size([1, 32, 16])
assert inds.shape == torch.Size([1, 16])
def test_pointnet_fp_module():
if not torch.cuda.is_available():
pytest.skip()
from mmdet3d.ops import PointFPModule
self = PointFPModule(mlp_channels=[24, 16]).cuda()
assert self.mlps.layer0.conv.in_channels == 24
assert self.mlps.layer0.conv.out_channels == 16
xyz = np.fromfile('tests/data/sunrgbd/points/000001.bin',
np.float32).reshape((-1, 6))
# (B, N, 3)
xyz1 = torch.from_numpy(xyz[0::2, :3]).view(1, -1, 3).cuda()
# (B, C1, N)
features1 = xyz1.repeat([1, 1, 4]).transpose(1, 2).contiguous().cuda()
# (B, M, 3)
xyz2 = torch.from_numpy(xyz[1::3, :3]).view(1, -1, 3).cuda()
# (B, C2, N)
features2 = xyz2.repeat([1, 1, 4]).transpose(1, 2).contiguous().cuda()
fp_features = self(xyz1, xyz2, features1, features2)
assert fp_features.shape == torch.Size([1, 16, 50])
| 32.239819
| 74
| 0.583018
| 1,031
| 7,125
| 3.873909
| 0.124151
| 0.055083
| 0.077116
| 0.082624
| 0.866299
| 0.820981
| 0.805208
| 0.78668
| 0.762894
| 0.696545
| 0
| 0.069264
| 0.254316
| 7,125
| 220
| 75
| 32.386364
| 0.682477
| 0.070877
| 0
| 0.742331
| 0
| 0
| 0.042905
| 0.021831
| 0
| 0
| 0
| 0
| 0.202454
| 1
| 0.018405
| false
| 0
| 0.03681
| 0
| 0.055215
| 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
|
a3afd24e7665e5af1735c9aad2736a53f1a5ee94
| 31,954
|
py
|
Python
|
ENV/lib/python3.6/site-packages/pyramid/tests/test_config/test_settings.py
|
captain-c00keys/pyramid-stocks
|
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
|
[
"MIT"
] | null | null | null |
ENV/lib/python3.6/site-packages/pyramid/tests/test_config/test_settings.py
|
captain-c00keys/pyramid-stocks
|
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
|
[
"MIT"
] | null | null | null |
ENV/lib/python3.6/site-packages/pyramid/tests/test_config/test_settings.py
|
captain-c00keys/pyramid-stocks
|
0acf3363a6a7ee61cd41b855f43c9d6f9582ae6a
|
[
"MIT"
] | null | null | null |
import unittest
class TestSettingsConfiguratorMixin(unittest.TestCase):
def _makeOne(self, *arg, **kw):
from pyramid.config import Configurator
config = Configurator(*arg, **kw)
return config
def test__set_settings_as_None(self):
config = self._makeOne()
settings = config._set_settings(None)
self.assertTrue(settings)
def test__set_settings_does_not_uses_original_dict(self):
config = self._makeOne()
dummy = {}
result = config._set_settings(dummy)
self.assertTrue(dummy is not result)
self.assertNotIn('pyramid.debug_all', dummy)
def test__set_settings_as_dictwithvalues(self):
config = self._makeOne()
settings = config._set_settings({'a':'1'})
self.assertEqual(settings['a'], '1')
def test_get_settings_nosettings(self):
from pyramid.registry import Registry
reg = Registry()
config = self._makeOne(reg)
self.assertEqual(config.get_settings(), None)
def test_get_settings_withsettings(self):
settings = {'a':1}
config = self._makeOne()
config.registry.settings = settings
self.assertEqual(config.get_settings(), settings)
def test_add_settings_settings_already_registered(self):
from pyramid.registry import Registry
reg = Registry()
config = self._makeOne(reg)
config._set_settings({'a':1})
config.add_settings({'b':2})
settings = reg.settings
self.assertEqual(settings['a'], 1)
self.assertEqual(settings['b'], 2)
def test_add_settings_settings_not_yet_registered(self):
from pyramid.registry import Registry
from pyramid.interfaces import ISettings
reg = Registry()
config = self._makeOne(reg)
config.add_settings({'a':1})
settings = reg.getUtility(ISettings)
self.assertEqual(settings['a'], 1)
def test_add_settings_settings_None(self):
from pyramid.registry import Registry
from pyramid.interfaces import ISettings
reg = Registry()
config = self._makeOne(reg)
config.add_settings(None, a=1)
settings = reg.getUtility(ISettings)
self.assertEqual(settings['a'], 1)
def test_settings_parameter_dict_is_never_updated(self):
class ReadOnlyDict(dict):
def __readonly__(self, *args, **kwargs): # pragma: no cover
raise RuntimeError("Cannot modify ReadOnlyDict")
__setitem__ = __readonly__
__delitem__ = __readonly__
pop = __readonly__
popitem = __readonly__
clear = __readonly__
update = __readonly__
setdefault = __readonly__
del __readonly__
initial = ReadOnlyDict()
config = self._makeOne(settings=initial)
config._set_settings({'a': '1'})
class TestSettings(unittest.TestCase):
def _getTargetClass(self):
from pyramid.config.settings import Settings
return Settings
def _makeOne(self, d=None, environ=None):
if environ is None:
environ = {}
klass = self._getTargetClass()
return klass(d, _environ_=environ)
def test_noargs(self):
settings = self._makeOne()
self.assertEqual(settings['debug_authorization'], False)
self.assertEqual(settings['debug_notfound'], False)
self.assertEqual(settings['debug_routematch'], False)
self.assertEqual(settings['reload_templates'], False)
self.assertEqual(settings['reload_resources'], False)
self.assertEqual(settings['pyramid.debug_authorization'], False)
self.assertEqual(settings['pyramid.debug_notfound'], False)
self.assertEqual(settings['pyramid.debug_routematch'], False)
self.assertEqual(settings['pyramid.reload_templates'], False)
self.assertEqual(settings['pyramid.reload_resources'], False)
def test_prevent_http_cache(self):
settings = self._makeOne({})
self.assertEqual(settings['prevent_http_cache'], False)
self.assertEqual(settings['pyramid.prevent_http_cache'], False)
result = self._makeOne({'prevent_http_cache':'false'})
self.assertEqual(result['prevent_http_cache'], False)
self.assertEqual(result['pyramid.prevent_http_cache'], False)
result = self._makeOne({'prevent_http_cache':'t'})
self.assertEqual(result['prevent_http_cache'], True)
self.assertEqual(result['pyramid.prevent_http_cache'], True)
result = self._makeOne({'prevent_http_cache':'1'})
self.assertEqual(result['prevent_http_cache'], True)
self.assertEqual(result['pyramid.prevent_http_cache'], True)
result = self._makeOne({'pyramid.prevent_http_cache':'t'})
self.assertEqual(result['prevent_http_cache'], True)
self.assertEqual(result['pyramid.prevent_http_cache'], True)
result = self._makeOne({}, {'PYRAMID_PREVENT_HTTP_CACHE':'1'})
self.assertEqual(result['prevent_http_cache'], True)
self.assertEqual(result['pyramid.prevent_http_cache'], True)
result = self._makeOne({'prevent_http_cache':'false',
'pyramid.prevent_http_cache':'1'})
self.assertEqual(result['prevent_http_cache'], True)
self.assertEqual(result['pyramid.prevent_http_cache'], True)
result = self._makeOne({'prevent_http_cache':'false',
'pyramid.prevent_http_cache':'f'},
{'PYRAMID_PREVENT_HTTP_CACHE':'1'})
self.assertEqual(result['prevent_http_cache'], True)
self.assertEqual(result['pyramid.prevent_http_cache'], True)
def test_prevent_cachebust(self):
settings = self._makeOne({})
self.assertEqual(settings['prevent_cachebust'], False)
self.assertEqual(settings['pyramid.prevent_cachebust'], False)
result = self._makeOne({'prevent_cachebust':'false'})
self.assertEqual(result['prevent_cachebust'], False)
self.assertEqual(result['pyramid.prevent_cachebust'], False)
result = self._makeOne({'prevent_cachebust':'t'})
self.assertEqual(result['prevent_cachebust'], True)
self.assertEqual(result['pyramid.prevent_cachebust'], True)
result = self._makeOne({'prevent_cachebust':'1'})
self.assertEqual(result['prevent_cachebust'], True)
self.assertEqual(result['pyramid.prevent_cachebust'], True)
result = self._makeOne({'pyramid.prevent_cachebust':'t'})
self.assertEqual(result['prevent_cachebust'], True)
self.assertEqual(result['pyramid.prevent_cachebust'], True)
result = self._makeOne({}, {'PYRAMID_PREVENT_CACHEBUST':'1'})
self.assertEqual(result['prevent_cachebust'], True)
self.assertEqual(result['pyramid.prevent_cachebust'], True)
result = self._makeOne({'prevent_cachebust':'false',
'pyramid.prevent_cachebust':'1'})
self.assertEqual(result['prevent_cachebust'], True)
self.assertEqual(result['pyramid.prevent_cachebust'], True)
result = self._makeOne({'prevent_cachebust':'false',
'pyramid.prevent_cachebust':'f'},
{'PYRAMID_PREVENT_CACHEBUST':'1'})
self.assertEqual(result['prevent_cachebust'], True)
self.assertEqual(result['pyramid.prevent_cachebust'], True)
def test_reload_templates(self):
settings = self._makeOne({})
self.assertEqual(settings['reload_templates'], False)
self.assertEqual(settings['pyramid.reload_templates'], False)
result = self._makeOne({'reload_templates':'false'})
self.assertEqual(result['reload_templates'], False)
self.assertEqual(result['pyramid.reload_templates'], False)
result = self._makeOne({'reload_templates':'t'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
result = self._makeOne({'reload_templates':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
result = self._makeOne({'pyramid.reload_templates':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
result = self._makeOne({}, {'PYRAMID_RELOAD_TEMPLATES':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
result = self._makeOne({'reload_templates':'false',
'pyramid.reload_templates':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
result = self._makeOne({'reload_templates':'false'},
{'PYRAMID_RELOAD_TEMPLATES':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
def test_reload_resources(self):
# alias for reload_assets
result = self._makeOne({})
self.assertEqual(result['reload_resources'], False)
self.assertEqual(result['reload_assets'], False)
self.assertEqual(result['pyramid.reload_resources'], False)
self.assertEqual(result['pyramid.reload_assets'], False)
result = self._makeOne({'reload_resources':'false'})
self.assertEqual(result['reload_resources'], False)
self.assertEqual(result['reload_assets'], False)
self.assertEqual(result['pyramid.reload_resources'], False)
self.assertEqual(result['pyramid.reload_assets'], False)
result = self._makeOne({'reload_resources':'t'})
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'reload_resources':'1'})
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'pyramid.reload_resources':'1'})
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({}, {'PYRAMID_RELOAD_RESOURCES':'1'})
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'reload_resources':'false',
'pyramid.reload_resources':'1'})
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'reload_resources':'false',
'pyramid.reload_resources':'false'},
{'PYRAMID_RELOAD_RESOURCES':'1'})
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
def test_reload_assets(self):
# alias for reload_resources
result = self._makeOne({})
self.assertEqual(result['reload_assets'], False)
self.assertEqual(result['reload_resources'], False)
self.assertEqual(result['pyramid.reload_assets'], False)
self.assertEqual(result['pyramid.reload_resources'], False)
result = self._makeOne({'reload_assets':'false'})
self.assertEqual(result['reload_resources'], False)
self.assertEqual(result['reload_assets'], False)
self.assertEqual(result['pyramid.reload_assets'], False)
self.assertEqual(result['pyramid.reload_resources'], False)
result = self._makeOne({'reload_assets':'t'})
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
result = self._makeOne({'reload_assets':'1'})
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
result = self._makeOne({'pyramid.reload_assets':'1'})
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
result = self._makeOne({}, {'PYRAMID_RELOAD_ASSETS':'1'})
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
result = self._makeOne({'reload_assets':'false',
'pyramid.reload_assets':'1'})
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
result = self._makeOne({'reload_assets':'false',
'pyramid.reload_assets':'false'},
{'PYRAMID_RELOAD_ASSETS':'1'})
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
def test_reload_all(self):
result = self._makeOne({})
self.assertEqual(result['reload_templates'], False)
self.assertEqual(result['reload_resources'], False)
self.assertEqual(result['reload_assets'], False)
self.assertEqual(result['pyramid.reload_templates'], False)
self.assertEqual(result['pyramid.reload_resources'], False)
self.assertEqual(result['pyramid.reload_assets'], False)
result = self._makeOne({'reload_all':'false'})
self.assertEqual(result['reload_templates'], False)
self.assertEqual(result['reload_resources'], False)
self.assertEqual(result['reload_assets'], False)
self.assertEqual(result['pyramid.reload_templates'], False)
self.assertEqual(result['pyramid.reload_resources'], False)
self.assertEqual(result['pyramid.reload_assets'], False)
result = self._makeOne({'reload_all':'t'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'reload_all':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'pyramid.reload_all':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({}, {'PYRAMID_RELOAD_ALL':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'reload_all':'false',
'pyramid.reload_all':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
result = self._makeOne({'reload_all':'false',
'pyramid.reload_all':'false'},
{'PYRAMID_RELOAD_ALL':'1'})
self.assertEqual(result['reload_templates'], True)
self.assertEqual(result['reload_resources'], True)
self.assertEqual(result['reload_assets'], True)
self.assertEqual(result['pyramid.reload_templates'], True)
self.assertEqual(result['pyramid.reload_resources'], True)
self.assertEqual(result['pyramid.reload_assets'], True)
def test_debug_authorization(self):
result = self._makeOne({})
self.assertEqual(result['debug_authorization'], False)
self.assertEqual(result['pyramid.debug_authorization'], False)
result = self._makeOne({'debug_authorization':'false'})
self.assertEqual(result['debug_authorization'], False)
self.assertEqual(result['pyramid.debug_authorization'], False)
result = self._makeOne({'debug_authorization':'t'})
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
result = self._makeOne({'debug_authorization':'1'})
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
result = self._makeOne({'pyramid.debug_authorization':'1'})
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
result = self._makeOne({}, {'PYRAMID_DEBUG_AUTHORIZATION':'1'})
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
result = self._makeOne({'debug_authorization':'false',
'pyramid.debug_authorization':'1'})
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
result = self._makeOne({'debug_authorization':'false',
'pyramid.debug_authorization':'false'},
{'PYRAMID_DEBUG_AUTHORIZATION':'1'})
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
def test_debug_notfound(self):
result = self._makeOne({})
self.assertEqual(result['debug_notfound'], False)
self.assertEqual(result['pyramid.debug_notfound'], False)
result = self._makeOne({'debug_notfound':'false'})
self.assertEqual(result['debug_notfound'], False)
self.assertEqual(result['pyramid.debug_notfound'], False)
result = self._makeOne({'debug_notfound':'t'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
result = self._makeOne({'debug_notfound':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
result = self._makeOne({'pyramid.debug_notfound':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
result = self._makeOne({}, {'PYRAMID_DEBUG_NOTFOUND':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
result = self._makeOne({'debug_notfound':'false',
'pyramid.debug_notfound':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
result = self._makeOne({'debug_notfound':'false',
'pyramid.debug_notfound':'false'},
{'PYRAMID_DEBUG_NOTFOUND':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
def test_debug_routematch(self):
result = self._makeOne({})
self.assertEqual(result['debug_routematch'], False)
self.assertEqual(result['pyramid.debug_routematch'], False)
result = self._makeOne({'debug_routematch':'false'})
self.assertEqual(result['debug_routematch'], False)
self.assertEqual(result['pyramid.debug_routematch'], False)
result = self._makeOne({'debug_routematch':'t'})
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
result = self._makeOne({'debug_routematch':'1'})
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
result = self._makeOne({'pyramid.debug_routematch':'1'})
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
result = self._makeOne({}, {'PYRAMID_DEBUG_ROUTEMATCH':'1'})
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
result = self._makeOne({'debug_routematch':'false',
'pyramid.debug_routematch':'1'})
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
result = self._makeOne({'debug_routematch':'false',
'pyramid.debug_routematch':'false'},
{'PYRAMID_DEBUG_ROUTEMATCH':'1'})
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
def test_debug_templates(self):
result = self._makeOne({})
self.assertEqual(result['debug_templates'], False)
self.assertEqual(result['pyramid.debug_templates'], False)
result = self._makeOne({'debug_templates':'false'})
self.assertEqual(result['debug_templates'], False)
self.assertEqual(result['pyramid.debug_templates'], False)
result = self._makeOne({'debug_templates':'t'})
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'debug_templates':'1'})
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'pyramid.debug_templates':'1'})
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({}, {'PYRAMID_DEBUG_TEMPLATES':'1'})
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'debug_templates':'false',
'pyramid.debug_templates':'1'})
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'debug_templates':'false',
'pyramid.debug_templates':'false'},
{'PYRAMID_DEBUG_TEMPLATES':'1'})
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
def test_debug_all(self):
result = self._makeOne({})
self.assertEqual(result['debug_notfound'], False)
self.assertEqual(result['debug_routematch'], False)
self.assertEqual(result['debug_authorization'], False)
self.assertEqual(result['debug_templates'], False)
self.assertEqual(result['pyramid.debug_notfound'], False)
self.assertEqual(result['pyramid.debug_routematch'], False)
self.assertEqual(result['pyramid.debug_authorization'], False)
self.assertEqual(result['pyramid.debug_templates'], False)
result = self._makeOne({'debug_all':'false'})
self.assertEqual(result['debug_notfound'], False)
self.assertEqual(result['debug_routematch'], False)
self.assertEqual(result['debug_authorization'], False)
self.assertEqual(result['debug_templates'], False)
self.assertEqual(result['pyramid.debug_notfound'], False)
self.assertEqual(result['pyramid.debug_routematch'], False)
self.assertEqual(result['pyramid.debug_authorization'], False)
self.assertEqual(result['pyramid.debug_templates'], False)
result = self._makeOne({'debug_all':'t'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'debug_all':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'pyramid.debug_all':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({}, {'PYRAMID_DEBUG_ALL':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'debug_all':'false',
'pyramid.debug_all':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
result = self._makeOne({'debug_all':'false',
'pyramid.debug_all':'false'},
{'PYRAMID_DEBUG_ALL':'1'})
self.assertEqual(result['debug_notfound'], True)
self.assertEqual(result['debug_routematch'], True)
self.assertEqual(result['debug_authorization'], True)
self.assertEqual(result['debug_templates'], True)
self.assertEqual(result['pyramid.debug_notfound'], True)
self.assertEqual(result['pyramid.debug_routematch'], True)
self.assertEqual(result['pyramid.debug_authorization'], True)
self.assertEqual(result['pyramid.debug_templates'], True)
def test_default_locale_name(self):
result = self._makeOne({})
self.assertEqual(result['default_locale_name'], 'en')
self.assertEqual(result['pyramid.default_locale_name'], 'en')
result = self._makeOne({'default_locale_name':'abc'})
self.assertEqual(result['default_locale_name'], 'abc')
self.assertEqual(result['pyramid.default_locale_name'], 'abc')
result = self._makeOne({'pyramid.default_locale_name':'abc'})
self.assertEqual(result['default_locale_name'], 'abc')
self.assertEqual(result['pyramid.default_locale_name'], 'abc')
result = self._makeOne({}, {'PYRAMID_DEFAULT_LOCALE_NAME':'abc'})
self.assertEqual(result['default_locale_name'], 'abc')
self.assertEqual(result['pyramid.default_locale_name'], 'abc')
result = self._makeOne({'default_locale_name':'def',
'pyramid.default_locale_name':'abc'})
self.assertEqual(result['default_locale_name'], 'abc')
self.assertEqual(result['pyramid.default_locale_name'], 'abc')
result = self._makeOne({'default_locale_name':'def',
'pyramid.default_locale_name':'ghi'},
{'PYRAMID_DEFAULT_LOCALE_NAME':'abc'})
self.assertEqual(result['default_locale_name'], 'abc')
self.assertEqual(result['pyramid.default_locale_name'], 'abc')
def test_csrf_trusted_origins(self):
result = self._makeOne({})
self.assertEqual(result['pyramid.csrf_trusted_origins'], [])
result = self._makeOne({'pyramid.csrf_trusted_origins': 'example.com'})
self.assertEqual(result['pyramid.csrf_trusted_origins'], ['example.com'])
result = self._makeOne({'pyramid.csrf_trusted_origins': ['example.com']})
self.assertEqual(result['pyramid.csrf_trusted_origins'], ['example.com'])
result = self._makeOne({'pyramid.csrf_trusted_origins': (
'example.com foo.example.com\nasdf.example.com')})
self.assertEqual(result['pyramid.csrf_trusted_origins'], [
'example.com', 'foo.example.com', 'asdf.example.com'])
def test_originals_kept(self):
result = self._makeOne({'a':'i am so a'})
self.assertEqual(result['a'], 'i am so a')
| 54.809605
| 81
| 0.660324
| 3,277
| 31,954
| 6.205371
| 0.035398
| 0.237522
| 0.308778
| 0.207917
| 0.928055
| 0.915023
| 0.892402
| 0.873568
| 0.85493
| 0.835112
| 0
| 0.002546
| 0.200945
| 31,954
| 582
| 82
| 54.90378
| 0.793875
| 0.002097
| 0
| 0.644689
| 0
| 0
| 0.285907
| 0.160315
| 0
| 0
| 0
| 0
| 0.595238
| 1
| 0.051282
| false
| 0
| 0.016484
| 0
| 0.078755
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
a3c59903dccfe2adb9aeb86906200fcf48d5f520
| 202
|
py
|
Python
|
nearby/storage.py
|
gorkemarslan/nearby
|
bce1ac6597a1a8bfeb472918f0af155a3d00ff4f
|
[
"MIT"
] | null | null | null |
nearby/storage.py
|
gorkemarslan/nearby
|
bce1ac6597a1a8bfeb472918f0af155a3d00ff4f
|
[
"MIT"
] | null | null | null |
nearby/storage.py
|
gorkemarslan/nearby
|
bce1ac6597a1a8bfeb472918f0af155a3d00ff4f
|
[
"MIT"
] | null | null | null |
from pipeline.storage import PipelineMixin
from whitenoise.storage import CompressedStaticFilesStorage
class WhitenoiseCompressedPipelineStorage(PipelineMixin, CompressedStaticFilesStorage):
pass
| 28.857143
| 87
| 0.881188
| 15
| 202
| 11.866667
| 0.666667
| 0.146067
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089109
| 202
| 6
| 88
| 33.666667
| 0.967391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
a3df9bef61831db10771ad4aff43e6e202d25bd9
| 49
|
py
|
Python
|
simnav/opus/__init__.py
|
Julioocz/SIMNAV2
|
51a5320b4f0d957afddb26e06ed055d9f89e4933
|
[
"MIT"
] | 2
|
2020-07-20T09:11:18.000Z
|
2021-05-26T19:15:12.000Z
|
simnav/opus/__init__.py
|
julionav/SIMNAV
|
51a5320b4f0d957afddb26e06ed055d9f89e4933
|
[
"MIT"
] | null | null | null |
simnav/opus/__init__.py
|
julionav/SIMNAV
|
51a5320b4f0d957afddb26e06ed055d9f89e4933
|
[
"MIT"
] | 1
|
2018-06-01T20:50:25.000Z
|
2018-06-01T20:50:25.000Z
|
from .destilacion import DestilacionSemiRigurosa
| 24.5
| 48
| 0.897959
| 4
| 49
| 11
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081633
| 49
| 1
| 49
| 49
| 0.977778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
a3ebc9fc09245be9b35e347f965caaf513224611
| 4,254
|
py
|
Python
|
tests/commands/test_iotdevice.py
|
juanmagal/iot-slice-orchestrator
|
9fc0df4f74b2788ea116549c001bcb8c6b663280
|
[
"Apache-2.0"
] | 2
|
2019-08-16T13:05:39.000Z
|
2019-12-24T16:57:29.000Z
|
tests/commands/test_iotdevice.py
|
juanmagal/iot-slice-orchestrator
|
9fc0df4f74b2788ea116549c001bcb8c6b663280
|
[
"Apache-2.0"
] | null | null | null |
tests/commands/test_iotdevice.py
|
juanmagal/iot-slice-orchestrator
|
9fc0df4f74b2788ea116549c001bcb8c6b663280
|
[
"Apache-2.0"
] | null | null | null |
"""Tests for our `iotorch IoT Device` subcommand."""
from subprocess import PIPE, Popen as popen
from unittest import TestCase
class TestIoTDevice(TestCase):
def test_returns_iotdevice_get(self):
name='test'
operation='get'
configfile='./tests/conf/iotorch.toml'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(name.encode('utf-8') in output)
def test_returns_iotdevice_get_file_does_not_exist(self):
name='test'
operation='get'
configfile='./tests/conf/ghost.toml'
text='Nothing to get'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
def test_returns_iotdevice_create(self):
name='device1'
gateway='gateway1'
operation='create'
configfile='./tests/conf/iotorch.toml'
text= "IoT Device " + name + " created"
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--gateway='+gateway, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
operation='get'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(gateway.encode('utf-8') in output)
def test_returns_iotdevice_create_file_does_not_exist(self):
name='device1'
gateway='gateway1'
operation='create'
configfile='./tests/conf/iotorch_test.toml'
text= "IoT Device " + name + " created"
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--gateway='+gateway, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
operation='get'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(gateway.encode('utf-8') in output)
def test_returns_iotdevice_delete(self):
name='device1'
operation='delete'
text= "IoT Device " + name + " deleted"
configfile='./tests/conf/iotorch.toml'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
operation='get'
text='Nothing to get'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
def test_returns_iotdevice_delete_device_does_not_exist(self):
name='ghost'
operation='delete'
text='Nothing to delete'
configfile='./tests/conf/iotorch.toml'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
def test_returns_iotdevice_delete_file_does_not_exist(self):
name='device1'
operation='delete'
text='Nothing to delete'
configfile='./tests/conf/iotorch_not_exist.toml'
output = popen(['iotorch', 'iotdevice', operation, '--name='+name, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
def test_returns_iotdevice_list(self):
name='test'
operation='list'
configfile='./tests/conf/iotorch.toml'
output = popen(['iotorch', 'iotdevice', operation, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(name.encode('utf-8') in output)
def test_returns_iotdevice_list_file_does_not_exist(self):
name='test'
operation='list'
configfile='./tests/conf/ghost.toml'
text='Nothing to list'
output = popen(['iotorch', 'iotdevice', operation, '--configfile='+configfile], stdout=PIPE).communicate()[0]
self.assertTrue(text.encode('utf-8') in output)
| 46.747253
| 155
| 0.643865
| 476
| 4,254
| 5.64916
| 0.111345
| 0.049089
| 0.080327
| 0.120491
| 0.936036
| 0.917813
| 0.905169
| 0.887691
| 0.813685
| 0.813685
| 0
| 0.008701
| 0.189469
| 4,254
| 90
| 156
| 47.266667
| 0.771172
| 0.010813
| 0
| 0.776316
| 0
| 0
| 0.23465
| 0.056164
| 0
| 0
| 0
| 0
| 0.157895
| 1
| 0.118421
| false
| 0
| 0.026316
| 0
| 0.157895
| 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
|
a3eda578cf644eb152204f88775f3a4e3af5d8e2
| 83,755
|
py
|
Python
|
nebu/flaptor/indextank/rpc/Indexer.py
|
linkedin/indextank-service
|
880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e
|
[
"Apache-2.0"
] | 26
|
2015-06-15T11:21:09.000Z
|
2020-12-27T19:42:14.000Z
|
nebu/flaptor/indextank/rpc/Indexer.py
|
LinkedInAttic/indextank-service
|
880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e
|
[
"Apache-2.0"
] | 1
|
2020-09-15T19:34:38.000Z
|
2020-09-15T19:34:38.000Z
|
nebu/flaptor/indextank/rpc/Indexer.py
|
LinkedInAttic/indextank-service
|
880c6295ce8e7a3a55bf9b3777cc35c7680e0d7e
|
[
"Apache-2.0"
] | 12
|
2015-03-17T17:14:19.000Z
|
2019-12-21T13:26:23.000Z
|
#
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from thrift.Thrift import *
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
try:
from thrift.protocol import fastbinary
except:
fastbinary = None
class Iface:
def addDoc(self, docid, doc, timestamp_boost, boosts):
"""
Parameters:
- docid
- doc
- timestamp_boost
- boosts
"""
pass
def updateTimestampBoost(self, docid, timestamp_boost):
"""
Parameters:
- docid
- timestamp_boost
"""
pass
def updateBoost(self, docid, boosts):
"""
Parameters:
- docid
- boosts
"""
pass
def updateCategories(self, docid, categories):
"""
Parameters:
- docid
- categories
"""
pass
def delDoc(self, docid):
"""
Parameters:
- docid
"""
pass
def promoteResult(self, docid, query):
"""
Parameters:
- docid
- query
"""
pass
def dump(self, ):
pass
def addScoreFunction(self, functionIndex, definition):
"""
Parameters:
- functionIndex
- definition
"""
pass
def removeScoreFunction(self, functionIndex):
"""
Parameters:
- functionIndex
"""
pass
def listScoreFunctions(self, ):
pass
def stats(self, ):
pass
def get_stats(self, ):
pass
def force_gc(self, ):
pass
def getStatus(self, ):
pass
def ping(self, ):
pass
def startFullRecovery(self, ):
pass
class Client(Iface):
def __init__(self, iprot, oprot=None):
self._iprot = self._oprot = iprot
if oprot != None:
self._oprot = oprot
self._seqid = 0
def addDoc(self, docid, doc, timestamp_boost, boosts):
"""
Parameters:
- docid
- doc
- timestamp_boost
- boosts
"""
self.send_addDoc(docid, doc, timestamp_boost, boosts)
self.recv_addDoc()
def send_addDoc(self, docid, doc, timestamp_boost, boosts):
self._oprot.writeMessageBegin('addDoc', TMessageType.CALL, self._seqid)
args = addDoc_args()
args.docid = docid
args.doc = doc
args.timestamp_boost = timestamp_boost
args.boosts = boosts
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_addDoc(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = addDoc_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def updateTimestampBoost(self, docid, timestamp_boost):
"""
Parameters:
- docid
- timestamp_boost
"""
self.send_updateTimestampBoost(docid, timestamp_boost)
self.recv_updateTimestampBoost()
def send_updateTimestampBoost(self, docid, timestamp_boost):
self._oprot.writeMessageBegin('updateTimestampBoost', TMessageType.CALL, self._seqid)
args = updateTimestampBoost_args()
args.docid = docid
args.timestamp_boost = timestamp_boost
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_updateTimestampBoost(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = updateTimestampBoost_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def updateBoost(self, docid, boosts):
"""
Parameters:
- docid
- boosts
"""
self.send_updateBoost(docid, boosts)
self.recv_updateBoost()
def send_updateBoost(self, docid, boosts):
self._oprot.writeMessageBegin('updateBoost', TMessageType.CALL, self._seqid)
args = updateBoost_args()
args.docid = docid
args.boosts = boosts
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_updateBoost(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = updateBoost_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def updateCategories(self, docid, categories):
"""
Parameters:
- docid
- categories
"""
self.send_updateCategories(docid, categories)
self.recv_updateCategories()
def send_updateCategories(self, docid, categories):
self._oprot.writeMessageBegin('updateCategories', TMessageType.CALL, self._seqid)
args = updateCategories_args()
args.docid = docid
args.categories = categories
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_updateCategories(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = updateCategories_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def delDoc(self, docid):
"""
Parameters:
- docid
"""
self.send_delDoc(docid)
self.recv_delDoc()
def send_delDoc(self, docid):
self._oprot.writeMessageBegin('delDoc', TMessageType.CALL, self._seqid)
args = delDoc_args()
args.docid = docid
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_delDoc(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = delDoc_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def promoteResult(self, docid, query):
"""
Parameters:
- docid
- query
"""
self.send_promoteResult(docid, query)
self.recv_promoteResult()
def send_promoteResult(self, docid, query):
self._oprot.writeMessageBegin('promoteResult', TMessageType.CALL, self._seqid)
args = promoteResult_args()
args.docid = docid
args.query = query
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_promoteResult(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = promoteResult_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def dump(self, ):
self.send_dump()
self.recv_dump()
def send_dump(self, ):
self._oprot.writeMessageBegin('dump', TMessageType.CALL, self._seqid)
args = dump_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_dump(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = dump_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def addScoreFunction(self, functionIndex, definition):
"""
Parameters:
- functionIndex
- definition
"""
self.send_addScoreFunction(functionIndex, definition)
self.recv_addScoreFunction()
def send_addScoreFunction(self, functionIndex, definition):
self._oprot.writeMessageBegin('addScoreFunction', TMessageType.CALL, self._seqid)
args = addScoreFunction_args()
args.functionIndex = functionIndex
args.definition = definition
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_addScoreFunction(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = addScoreFunction_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def removeScoreFunction(self, functionIndex):
"""
Parameters:
- functionIndex
"""
self.send_removeScoreFunction(functionIndex)
self.recv_removeScoreFunction()
def send_removeScoreFunction(self, functionIndex):
self._oprot.writeMessageBegin('removeScoreFunction', TMessageType.CALL, self._seqid)
args = removeScoreFunction_args()
args.functionIndex = functionIndex
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_removeScoreFunction(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = removeScoreFunction_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def listScoreFunctions(self, ):
self.send_listScoreFunctions()
return self.recv_listScoreFunctions()
def send_listScoreFunctions(self, ):
self._oprot.writeMessageBegin('listScoreFunctions', TMessageType.CALL, self._seqid)
args = listScoreFunctions_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_listScoreFunctions(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = listScoreFunctions_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.success != None:
return result.success
if result.ite != None:
raise result.ite
raise TApplicationException(TApplicationException.MISSING_RESULT, "listScoreFunctions failed: unknown result");
def stats(self, ):
self.send_stats()
return self.recv_stats()
def send_stats(self, ):
self._oprot.writeMessageBegin('stats', TMessageType.CALL, self._seqid)
args = stats_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_stats(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = stats_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.success != None:
return result.success
if result.ite != None:
raise result.ite
raise TApplicationException(TApplicationException.MISSING_RESULT, "stats failed: unknown result");
def get_stats(self, ):
self.send_get_stats()
return self.recv_get_stats()
def send_get_stats(self, ):
self._oprot.writeMessageBegin('get_stats', TMessageType.CALL, self._seqid)
args = get_stats_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_get_stats(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = get_stats_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.success != None:
return result.success
if result.ite != None:
raise result.ite
raise TApplicationException(TApplicationException.MISSING_RESULT, "get_stats failed: unknown result");
def force_gc(self, ):
self.send_force_gc()
self.recv_force_gc()
def send_force_gc(self, ):
self._oprot.writeMessageBegin('force_gc', TMessageType.CALL, self._seqid)
args = force_gc_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_force_gc(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = force_gc_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.ite != None:
raise result.ite
return
def getStatus(self, ):
self.send_getStatus()
return self.recv_getStatus()
def send_getStatus(self, ):
self._oprot.writeMessageBegin('getStatus', TMessageType.CALL, self._seqid)
args = getStatus_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_getStatus(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = getStatus_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
if result.success != None:
return result.success
raise TApplicationException(TApplicationException.MISSING_RESULT, "getStatus failed: unknown result");
def ping(self, ):
self.send_ping()
self.recv_ping()
def send_ping(self, ):
self._oprot.writeMessageBegin('ping', TMessageType.CALL, self._seqid)
args = ping_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_ping(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = ping_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
def startFullRecovery(self, ):
self.send_startFullRecovery()
self.recv_startFullRecovery()
def send_startFullRecovery(self, ):
self._oprot.writeMessageBegin('startFullRecovery', TMessageType.CALL, self._seqid)
args = startFullRecovery_args()
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_startFullRecovery(self, ):
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(self._iprot)
self._iprot.readMessageEnd()
raise x
result = startFullRecovery_result()
result.read(self._iprot)
self._iprot.readMessageEnd()
return
class Processor(Iface, TProcessor):
def __init__(self, handler):
self._handler = handler
self._processMap = {}
self._processMap["addDoc"] = Processor.process_addDoc
self._processMap["updateTimestampBoost"] = Processor.process_updateTimestampBoost
self._processMap["updateBoost"] = Processor.process_updateBoost
self._processMap["updateCategories"] = Processor.process_updateCategories
self._processMap["delDoc"] = Processor.process_delDoc
self._processMap["promoteResult"] = Processor.process_promoteResult
self._processMap["dump"] = Processor.process_dump
self._processMap["addScoreFunction"] = Processor.process_addScoreFunction
self._processMap["removeScoreFunction"] = Processor.process_removeScoreFunction
self._processMap["listScoreFunctions"] = Processor.process_listScoreFunctions
self._processMap["stats"] = Processor.process_stats
self._processMap["get_stats"] = Processor.process_get_stats
self._processMap["force_gc"] = Processor.process_force_gc
self._processMap["getStatus"] = Processor.process_getStatus
self._processMap["ping"] = Processor.process_ping
self._processMap["startFullRecovery"] = Processor.process_startFullRecovery
def process(self, iprot, oprot):
(name, type, seqid) = iprot.readMessageBegin()
if name not in self._processMap:
iprot.skip(TType.STRUCT)
iprot.readMessageEnd()
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
x.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
return
else:
self._processMap[name](self, seqid, iprot, oprot)
return True
def process_addDoc(self, seqid, iprot, oprot):
args = addDoc_args()
args.read(iprot)
iprot.readMessageEnd()
result = addDoc_result()
try:
self._handler.addDoc(args.docid, args.doc, args.timestamp_boost, args.boosts)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("addDoc", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_updateTimestampBoost(self, seqid, iprot, oprot):
args = updateTimestampBoost_args()
args.read(iprot)
iprot.readMessageEnd()
result = updateTimestampBoost_result()
try:
self._handler.updateTimestampBoost(args.docid, args.timestamp_boost)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("updateTimestampBoost", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_updateBoost(self, seqid, iprot, oprot):
args = updateBoost_args()
args.read(iprot)
iprot.readMessageEnd()
result = updateBoost_result()
try:
self._handler.updateBoost(args.docid, args.boosts)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("updateBoost", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_updateCategories(self, seqid, iprot, oprot):
args = updateCategories_args()
args.read(iprot)
iprot.readMessageEnd()
result = updateCategories_result()
try:
self._handler.updateCategories(args.docid, args.categories)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("updateCategories", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_delDoc(self, seqid, iprot, oprot):
args = delDoc_args()
args.read(iprot)
iprot.readMessageEnd()
result = delDoc_result()
try:
self._handler.delDoc(args.docid)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("delDoc", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_promoteResult(self, seqid, iprot, oprot):
args = promoteResult_args()
args.read(iprot)
iprot.readMessageEnd()
result = promoteResult_result()
try:
self._handler.promoteResult(args.docid, args.query)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("promoteResult", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_dump(self, seqid, iprot, oprot):
args = dump_args()
args.read(iprot)
iprot.readMessageEnd()
result = dump_result()
try:
self._handler.dump()
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("dump", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_addScoreFunction(self, seqid, iprot, oprot):
args = addScoreFunction_args()
args.read(iprot)
iprot.readMessageEnd()
result = addScoreFunction_result()
try:
self._handler.addScoreFunction(args.functionIndex, args.definition)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("addScoreFunction", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_removeScoreFunction(self, seqid, iprot, oprot):
args = removeScoreFunction_args()
args.read(iprot)
iprot.readMessageEnd()
result = removeScoreFunction_result()
try:
self._handler.removeScoreFunction(args.functionIndex)
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("removeScoreFunction", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_listScoreFunctions(self, seqid, iprot, oprot):
args = listScoreFunctions_args()
args.read(iprot)
iprot.readMessageEnd()
result = listScoreFunctions_result()
try:
result.success = self._handler.listScoreFunctions()
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("listScoreFunctions", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_stats(self, seqid, iprot, oprot):
args = stats_args()
args.read(iprot)
iprot.readMessageEnd()
result = stats_result()
try:
result.success = self._handler.stats()
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("stats", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_get_stats(self, seqid, iprot, oprot):
args = get_stats_args()
args.read(iprot)
iprot.readMessageEnd()
result = get_stats_result()
try:
result.success = self._handler.get_stats()
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("get_stats", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_force_gc(self, seqid, iprot, oprot):
args = force_gc_args()
args.read(iprot)
iprot.readMessageEnd()
result = force_gc_result()
try:
self._handler.force_gc()
except IndextankException, ite:
result.ite = ite
oprot.writeMessageBegin("force_gc", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_getStatus(self, seqid, iprot, oprot):
args = getStatus_args()
args.read(iprot)
iprot.readMessageEnd()
result = getStatus_result()
result.success = self._handler.getStatus()
oprot.writeMessageBegin("getStatus", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_ping(self, seqid, iprot, oprot):
args = ping_args()
args.read(iprot)
iprot.readMessageEnd()
result = ping_result()
self._handler.ping()
oprot.writeMessageBegin("ping", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_startFullRecovery(self, seqid, iprot, oprot):
args = startFullRecovery_args()
args.read(iprot)
iprot.readMessageEnd()
result = startFullRecovery_result()
self._handler.startFullRecovery()
oprot.writeMessageBegin("startFullRecovery", TMessageType.REPLY, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
# HELPER FUNCTIONS AND STRUCTURES
class addDoc_args:
"""
Attributes:
- docid
- doc
- timestamp_boost
- boosts
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'docid', None, None, ), # 1
(2, TType.STRUCT, 'doc', (Document, Document.thrift_spec), None, ), # 2
(3, TType.I32, 'timestamp_boost', None, None, ), # 3
(4, TType.MAP, 'boosts', (TType.I32,None,TType.DOUBLE,None), None, ), # 4
)
def __init__(self, docid=None, doc=None, timestamp_boost=None, boosts=None,):
self.docid = docid
self.doc = doc
self.timestamp_boost = timestamp_boost
self.boosts = boosts
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.docid = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.doc = Document()
self.doc.read(iprot)
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.timestamp_boost = iprot.readI32();
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.MAP:
self.boosts = {}
(_ktype207, _vtype208, _size206 ) = iprot.readMapBegin()
for _i210 in xrange(_size206):
_key211 = iprot.readI32();
_val212 = iprot.readDouble();
self.boosts[_key211] = _val212
iprot.readMapEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('addDoc_args')
if self.docid != None:
oprot.writeFieldBegin('docid', TType.STRING, 1)
oprot.writeString(self.docid)
oprot.writeFieldEnd()
if self.doc != None:
oprot.writeFieldBegin('doc', TType.STRUCT, 2)
self.doc.write(oprot)
oprot.writeFieldEnd()
if self.timestamp_boost != None:
oprot.writeFieldBegin('timestamp_boost', TType.I32, 3)
oprot.writeI32(self.timestamp_boost)
oprot.writeFieldEnd()
if self.boosts != None:
oprot.writeFieldBegin('boosts', TType.MAP, 4)
oprot.writeMapBegin(TType.I32, TType.DOUBLE, len(self.boosts))
for kiter213,viter214 in self.boosts.items():
oprot.writeI32(kiter213)
oprot.writeDouble(viter214)
oprot.writeMapEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class addDoc_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('addDoc_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateTimestampBoost_args:
"""
Attributes:
- docid
- timestamp_boost
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'docid', None, None, ), # 1
(2, TType.I32, 'timestamp_boost', None, None, ), # 2
)
def __init__(self, docid=None, timestamp_boost=None,):
self.docid = docid
self.timestamp_boost = timestamp_boost
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.docid = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.I32:
self.timestamp_boost = iprot.readI32();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('updateTimestampBoost_args')
if self.docid != None:
oprot.writeFieldBegin('docid', TType.STRING, 1)
oprot.writeString(self.docid)
oprot.writeFieldEnd()
if self.timestamp_boost != None:
oprot.writeFieldBegin('timestamp_boost', TType.I32, 2)
oprot.writeI32(self.timestamp_boost)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateTimestampBoost_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('updateTimestampBoost_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateBoost_args:
"""
Attributes:
- docid
- boosts
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'docid', None, None, ), # 1
(2, TType.MAP, 'boosts', (TType.I32,None,TType.DOUBLE,None), None, ), # 2
)
def __init__(self, docid=None, boosts=None,):
self.docid = docid
self.boosts = boosts
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.docid = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.MAP:
self.boosts = {}
(_ktype216, _vtype217, _size215 ) = iprot.readMapBegin()
for _i219 in xrange(_size215):
_key220 = iprot.readI32();
_val221 = iprot.readDouble();
self.boosts[_key220] = _val221
iprot.readMapEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('updateBoost_args')
if self.docid != None:
oprot.writeFieldBegin('docid', TType.STRING, 1)
oprot.writeString(self.docid)
oprot.writeFieldEnd()
if self.boosts != None:
oprot.writeFieldBegin('boosts', TType.MAP, 2)
oprot.writeMapBegin(TType.I32, TType.DOUBLE, len(self.boosts))
for kiter222,viter223 in self.boosts.items():
oprot.writeI32(kiter222)
oprot.writeDouble(viter223)
oprot.writeMapEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateBoost_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('updateBoost_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateCategories_args:
"""
Attributes:
- docid
- categories
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'docid', None, None, ), # 1
(2, TType.MAP, 'categories', (TType.STRING,None,TType.STRING,None), None, ), # 2
)
def __init__(self, docid=None, categories=None,):
self.docid = docid
self.categories = categories
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.docid = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.MAP:
self.categories = {}
(_ktype225, _vtype226, _size224 ) = iprot.readMapBegin()
for _i228 in xrange(_size224):
_key229 = iprot.readString();
_val230 = iprot.readString();
self.categories[_key229] = _val230
iprot.readMapEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('updateCategories_args')
if self.docid != None:
oprot.writeFieldBegin('docid', TType.STRING, 1)
oprot.writeString(self.docid)
oprot.writeFieldEnd()
if self.categories != None:
oprot.writeFieldBegin('categories', TType.MAP, 2)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.categories))
for kiter231,viter232 in self.categories.items():
oprot.writeString(kiter231)
oprot.writeString(viter232)
oprot.writeMapEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class updateCategories_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('updateCategories_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class delDoc_args:
"""
Attributes:
- docid
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'docid', None, None, ), # 1
)
def __init__(self, docid=None,):
self.docid = docid
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.docid = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('delDoc_args')
if self.docid != None:
oprot.writeFieldBegin('docid', TType.STRING, 1)
oprot.writeString(self.docid)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class delDoc_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('delDoc_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class promoteResult_args:
"""
Attributes:
- docid
- query
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'docid', None, None, ), # 1
(2, TType.STRING, 'query', None, None, ), # 2
)
def __init__(self, docid=None, query=None,):
self.docid = docid
self.query = query
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.docid = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.query = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('promoteResult_args')
if self.docid != None:
oprot.writeFieldBegin('docid', TType.STRING, 1)
oprot.writeString(self.docid)
oprot.writeFieldEnd()
if self.query != None:
oprot.writeFieldBegin('query', TType.STRING, 2)
oprot.writeString(self.query)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class promoteResult_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('promoteResult_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class dump_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('dump_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class dump_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('dump_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class addScoreFunction_args:
"""
Attributes:
- functionIndex
- definition
"""
thrift_spec = (
None, # 0
(1, TType.I32, 'functionIndex', None, None, ), # 1
(2, TType.STRING, 'definition', None, None, ), # 2
)
def __init__(self, functionIndex=None, definition=None,):
self.functionIndex = functionIndex
self.definition = definition
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.functionIndex = iprot.readI32();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.definition = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('addScoreFunction_args')
if self.functionIndex != None:
oprot.writeFieldBegin('functionIndex', TType.I32, 1)
oprot.writeI32(self.functionIndex)
oprot.writeFieldEnd()
if self.definition != None:
oprot.writeFieldBegin('definition', TType.STRING, 2)
oprot.writeString(self.definition)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class addScoreFunction_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('addScoreFunction_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class removeScoreFunction_args:
"""
Attributes:
- functionIndex
"""
thrift_spec = (
None, # 0
(1, TType.I32, 'functionIndex', None, None, ), # 1
)
def __init__(self, functionIndex=None,):
self.functionIndex = functionIndex
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.functionIndex = iprot.readI32();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('removeScoreFunction_args')
if self.functionIndex != None:
oprot.writeFieldBegin('functionIndex', TType.I32, 1)
oprot.writeI32(self.functionIndex)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class removeScoreFunction_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('removeScoreFunction_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class listScoreFunctions_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('listScoreFunctions_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class listScoreFunctions_result:
"""
Attributes:
- success
- ite
"""
thrift_spec = (
(0, TType.MAP, 'success', (TType.I32,None,TType.STRING,None), None, ), # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, success=None, ite=None,):
self.success = success
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.MAP:
self.success = {}
(_ktype234, _vtype235, _size233 ) = iprot.readMapBegin()
for _i237 in xrange(_size233):
_key238 = iprot.readI32();
_val239 = iprot.readString();
self.success[_key238] = _val239
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('listScoreFunctions_result')
if self.success != None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.I32, TType.STRING, len(self.success))
for kiter240,viter241 in self.success.items():
oprot.writeI32(kiter240)
oprot.writeString(viter241)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class stats_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('stats_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class stats_result:
"""
Attributes:
- success
- ite
"""
thrift_spec = (
(0, TType.STRUCT, 'success', (IndexerStats, IndexerStats.thrift_spec), None, ), # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, success=None, ite=None,):
self.success = success
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = IndexerStats()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('stats_result')
if self.success != None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class get_stats_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('get_stats_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class get_stats_result:
"""
Attributes:
- success
- ite
"""
thrift_spec = (
(0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, success=None, ite=None,):
self.success = success
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.MAP:
self.success = {}
(_ktype243, _vtype244, _size242 ) = iprot.readMapBegin()
for _i246 in xrange(_size242):
_key247 = iprot.readString();
_val248 = iprot.readString();
self.success[_key247] = _val248
iprot.readMapEnd()
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('get_stats_result')
if self.success != None:
oprot.writeFieldBegin('success', TType.MAP, 0)
oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
for kiter249,viter250 in self.success.items():
oprot.writeString(kiter249)
oprot.writeString(viter250)
oprot.writeMapEnd()
oprot.writeFieldEnd()
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class force_gc_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('force_gc_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class force_gc_result:
"""
Attributes:
- ite
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'ite', (IndextankException, IndextankException.thrift_spec), None, ), # 1
)
def __init__(self, ite=None,):
self.ite = ite
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.ite = IndextankException()
self.ite.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('force_gc_result')
if self.ite != None:
oprot.writeFieldBegin('ite', TType.STRUCT, 1)
self.ite.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getStatus_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('getStatus_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class getStatus_result:
"""
Attributes:
- success
"""
thrift_spec = (
(0, TType.I32, 'success', None, None, ), # 0
)
def __init__(self, success=None,):
self.success = success
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I32:
self.success = iprot.readI32();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('getStatus_result')
if self.success != None:
oprot.writeFieldBegin('success', TType.I32, 0)
oprot.writeI32(self.success)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ping_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('ping_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ping_result:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('ping_result')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class startFullRecovery_args:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('startFullRecovery_args')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class startFullRecovery_result:
thrift_spec = (
)
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('startFullRecovery_result')
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
| 30.701979
| 188
| 0.667602
| 9,441
| 83,755
| 5.652473
| 0.022667
| 0.032793
| 0.03358
| 0.021924
| 0.861951
| 0.833505
| 0.818982
| 0.802174
| 0.776989
| 0.770674
| 0
| 0.006388
| 0.21502
| 83,755
| 2,727
| 189
| 30.713238
| 0.805296
| 0.002651
| 0
| 0.828506
| 1
| 0
| 0.025123
| 0.003479
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.007356
| 0.002759
| 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
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
4a3646a66b2079802efaf585034ca1113c2ddfca
| 99
|
py
|
Python
|
calculator.py
|
techno-hacker/calculatorApp
|
75ba21bd97fa39b4e8bbabc0b022667f85ac91b9
|
[
"Apache-2.0"
] | null | null | null |
calculator.py
|
techno-hacker/calculatorApp
|
75ba21bd97fa39b4e8bbabc0b022667f85ac91b9
|
[
"Apache-2.0"
] | null | null | null |
calculator.py
|
techno-hacker/calculatorApp
|
75ba21bd97fa39b4e8bbabc0b022667f85ac91b9
|
[
"Apache-2.0"
] | null | null | null |
def add(first, second):
return first + second
def subtract(first, second):
return first + second
| 19.8
| 28
| 0.737374
| 14
| 99
| 5.214286
| 0.428571
| 0.60274
| 0.465753
| 0.60274
| 0.767123
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161616
| 99
| 5
| 29
| 19.8
| 0.879518
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
4a55a904d6829fc47da059b765f55ee78ff5fbf8
| 69
|
py
|
Python
|
devolearn/embryo_generator_model/__init__.py
|
sparkingdark/devolearn
|
4dfaa2c97b1b928fcebc111a16dc1813c9ee78b1
|
[
"MIT"
] | 35
|
2020-08-03T06:36:18.000Z
|
2022-02-27T13:53:48.000Z
|
devolearn/embryo_generator_model/__init__.py
|
sparkingdark/devolearn
|
4dfaa2c97b1b928fcebc111a16dc1813c9ee78b1
|
[
"MIT"
] | 42
|
2020-08-02T17:17:31.000Z
|
2021-09-16T06:13:48.000Z
|
devolearn/embryo_generator_model/__init__.py
|
sparkingdark/devolearn
|
4dfaa2c97b1b928fcebc111a16dc1813c9ee78b1
|
[
"MIT"
] | 40
|
2020-08-02T16:45:42.000Z
|
2022-02-15T07:30:14.000Z
|
from .embryo_generator_model import Generator, embryo_generator_model
| 69
| 69
| 0.913043
| 9
| 69
| 6.555556
| 0.555556
| 0.508475
| 0.677966
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057971
| 69
| 1
| 69
| 69
| 0.907692
| 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
|
4a78914f2456103e5aa234938ba34331954f55f0
| 47,472
|
py
|
Python
|
tests/channels/test_statemachine.py
|
febuiles/two1-python
|
88704487dba7715f97a0980781d4c0efb2ea7fc4
|
[
"BSD-2-Clause-FreeBSD"
] | 415
|
2016-06-10T00:46:55.000Z
|
2021-10-16T00:56:06.000Z
|
tests/channels/test_statemachine.py
|
febuiles/two1-python
|
88704487dba7715f97a0980781d4c0efb2ea7fc4
|
[
"BSD-2-Clause-FreeBSD"
] | 25
|
2016-06-11T13:48:59.000Z
|
2021-01-05T11:19:30.000Z
|
tests/channels/test_statemachine.py
|
febuiles/two1-python
|
88704487dba7715f97a0980781d4c0efb2ea7fc4
|
[
"BSD-2-Clause-FreeBSD"
] | 109
|
2016-06-11T05:17:05.000Z
|
2021-12-22T11:02:22.000Z
|
import codecs
import pytest
import two1.bitcoin as bitcoin
import two1.channels.statemachine as statemachine
import two1.channels.walletwrapper as walletwrapper
import tests.channels.mock as mock
def test_redeem_script():
# Redeem script parmaeters
merchant_public_key = mock.MockPaymentChannelServer.PRIVATE_KEY.public_key
customer_public_key = mock.MockTwo1Wallet.PRIVATE_KEY.public_key
expiration_time = 1450223410
serialized_redeem_script = "63210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac" # nopep8
# Test construction
redeem_script = statemachine.PaymentChannelRedeemScript(merchant_public_key, customer_public_key, expiration_time)
assert redeem_script.to_hex() == serialized_redeem_script
assert redeem_script.merchant_public_key.compressed_bytes == merchant_public_key.compressed_bytes
assert redeem_script.customer_public_key.compressed_bytes == customer_public_key.compressed_bytes
assert redeem_script.expiration_time == expiration_time
# Test deserialization
redeem_script = statemachine.PaymentChannelRedeemScript.from_bytes(
codecs.decode(serialized_redeem_script, "hex_codec"))
assert redeem_script.to_hex() == serialized_redeem_script
assert redeem_script.merchant_public_key.compressed_bytes == merchant_public_key.compressed_bytes
assert redeem_script.customer_public_key.compressed_bytes == customer_public_key.compressed_bytes
assert redeem_script.expiration_time == expiration_time
# Test invalid deserialization
with pytest.raises(ValueError):
# Invalid length
scr = bitcoin.Script(["OP_NOP"])
statemachine.PaymentChannelRedeemScript.from_bytes(bytes(scr))
with pytest.raises(ValueError):
# Invalid opcode
scr = bitcoin.Script.from_hex(serialized_redeem_script)
scr[-1] = "OP_NOP"
statemachine.PaymentChannelRedeemScript.from_bytes(bytes(scr))
def assert_statemachine_state(expected, actual):
for attr in expected:
if callable(expected[attr]):
assert expected[attr](actual)
else:
assert expected[attr] == getattr(actual, attr)
def test_statemachine_create():
"""Test state machine transitions from initial state OPENING.
Valid transitions:
OPENING -> CONFIRMING_DEPOSIT via create()
OPENING -> READY via create()
Invalid transitions:
OPENING -> OUTSTANDING via pay()
OPENING -> READY via pay_ack() or pay_nack()
OPENING -> CONFIRMING_SPEND via close()
OPENING -> CLOSED via finalize()
"""
# Create state machine
model_data = {
'url': 'test',
}
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), mock.MockBlockchain())
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Expected state machine state
expected_state = {}
expected_state['state'] = statemachine.PaymentChannelState.OPENING
expected_state['balance_amount'] = None
expected_state['deposit_amount'] = None
expected_state['fee_amount'] = None
expected_state['creation_time'] = None
expected_state['expiration_time'] = None
expected_state['deposit_tx_utxo_index'] = None
expected_state['deposit_tx'] = None
expected_state['deposit_txid'] = None
expected_state['deposit_txid_signature'] = None
expected_state['refund_tx'] = None
expected_state['refund_txid'] = None
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
# Assert state machine state
assert_statemachine_state(expected_state, sm)
# Check invalid transition OPENING -> READY via confirm()
with pytest.raises(statemachine.StateTransitionError):
sm.confirm()
# Check invalid transition OPENING -> OUTSTANDING via pay()
with pytest.raises(statemachine.StateTransitionError):
sm.pay(1)
# Check invalid transition OPENING -> READY via pay_ack()
with pytest.raises(statemachine.StateTransitionError):
sm.pay_ack()
# Check invalid transition OPENING -> READY via pay_nack()
with pytest.raises(statemachine.StateTransitionError):
sm.pay_nack()
# Check invalid transition OPENING -> CONFIRMING_SPEND via close()
with pytest.raises(statemachine.StateTransitionError):
sm.close(None)
# Check invalid transition OPENING -> CLOSED via finalize()
with pytest.raises(statemachine.StateTransitionError):
sm.finalize("")
# Channel parameters
merchant_public_key = mock.MockPaymentChannelServer.PRIVATE_KEY.public_key.to_hex()
deposit_amount = 100000
expiration_time = 1450223410
fee_amount = 10000
# Check valid transition OPENING -> CONFIRMING_DEPOSIT via create()
(deposit_tx, redeem_script) = sm.create(
merchant_public_key, deposit_amount, expiration_time, fee_amount, zeroconf=False)
assert deposit_tx == "010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100efbcffe9c800c517232c5f4417482a650c8e23a5171a3d02f94961355a8c232a022070bef91a8c956e70b673631806971994e8d0745977961c3972bbbaebc0254957012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0168b901000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000" # nopep8
assert redeem_script == "63210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_DEPOSIT
expected_state['balance_amount'] = 100000
expected_state['deposit_amount'] = 100000
expected_state['fee_amount'] = 10000
expected_state['creation_time'] = lambda sm: sm.creation_time > 0
expected_state['expiration_time'] = 1450223410
expected_state['deposit_tx_utxo_index'] = 0
expected_state['deposit_tx'] = "010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100efbcffe9c800c517232c5f4417482a650c8e23a5171a3d02f94961355a8c232a022070bef91a8c956e70b673631806971994e8d0745977961c3972bbbaebc0254957012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0168b901000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000" # nopep8
expected_state['deposit_txid'] = "ec822c4539a8b12f80fe921669b79adf6439ede3669ee4d42d1199d1f9868e72"
expected_state['deposit_txid_signature'] = "3045022100fa23cba0e65d48ddf2e98fa64bb578f9ae3642f416462f3f991162b56dca428702205dbcf1f067034cf31564fa6c665397c2fb1c99a47afe1105fc1847e07c5ceb41" # nopep8
expected_state['refund_tx'] = "0100000001728e86f9d199112dd4e49e66e3ed3964df9ab7691692fe802fb1a839452c82ec000000009c473044022025a91aed42aa97486a5592face6e17f0249c90d8ca16d8fcf9db1bf3201e6e4002206374bb2fa72f424afa702e23fc161961c7ba539727093abf0caf079eef38686f0101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacfeffffff0158920100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['refund_txid'] = "5efe2f7db01b74efc71054ead6ad96203d55f6cbf8172039b718c244200f7127"
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Check valid transition OPENING -> READY via create() with zeroconf=True
(deposit_tx, redeem_script) = sm.create(
merchant_public_key, deposit_amount, expiration_time, fee_amount, zeroconf=True)
assert deposit_tx == "010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100efbcffe9c800c517232c5f4417482a650c8e23a5171a3d02f94961355a8c232a022070bef91a8c956e70b673631806971994e8d0745977961c3972bbbaebc0254957012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0168b901000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000" # nopep8
assert redeem_script == "63210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.READY
assert_statemachine_state(expected_state, sm)
def test_statemachine_confirm():
"""Test state machine transitions from state CONFIRMING_DEPOSIT.
Valid transitions:
CONFIRMING_DEPOSIT -> READY via confirm()
CONFIRMING_DEPOSIT -> CONFIRMING_SPEND via close()
CONFIRMING_DEPOSIT -> CLOSED via finalize()
Invalid transitions:
CONFIRMING_DEPOSIT -> READY via pay_ack() or pay_nack()
CONFIRMING_DEPOSIT -> OUTSTANDING via pay()
"""
# Create state machine
model_data = {
'url': 'test',
'state': statemachine.PaymentChannelState.CONFIRMING_DEPOSIT,
'creation_time': 42,
'deposit_tx': bitcoin.Transaction.from_hex("010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000"), # nopep8
'refund_tx': bitcoin.Transaction.from_hex("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056"), # nopep8
'payment_tx': None,
'spend_tx': None,
'spend_txid': None,
'min_output_amount': 1000,
}
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), mock.MockBlockchain())
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Assert state machine state
expected_state = {}
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_DEPOSIT
expected_state['balance_amount'] = 100000
expected_state['deposit_amount'] = 100000
expected_state['fee_amount'] = 10000
expected_state['creation_time'] = lambda sm: sm.creation_time > 0
expected_state['expiration_time'] = 1450223410
expected_state['deposit_tx_utxo_index'] = 0
expected_state['deposit_tx'] = "010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000" # nopep8
expected_state['deposit_txid'] = "7e1a558c84abd5aaf57999557f4a7205d4b69241b7c9cab6c0795fdd663a51ef"
expected_state['deposit_txid_signature'] = "30450221008f51b6565a8ee67c32529ed840116c44e1f60a628c51ac59720cc8c6df1b5eab02204ccc32c89f81425f483c64c6f8dd77e57eefd3b6a5b7548d1875f5ef3f86cf27" # nopep8
expected_state['refund_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['refund_txid'] = "e49cef2fbaf7b6590eb502e4b143f24d5d95ca2e255b166f3b40bef786a32bba"
expected_state['payment_tx'] = None
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_statemachine_state(expected_state, sm)
# Check invalid transition CONFIRMING_DEPOSIT -> OUTSTANDING via pay()
with pytest.raises(statemachine.StateTransitionError):
sm.pay(1)
# Check invalid transition CONFIRMING_DEPOSIT -> READY via pay_ack()
with pytest.raises(statemachine.StateTransitionError):
sm.pay_ack()
# Check invalid transition CONFIRMING_DEPOSIT -> READY via pay_nack()
with pytest.raises(statemachine.StateTransitionError):
sm.pay_nack()
# Check valid transition CONFIRMING_DEPOSIT -> READY via confirm()
sm.confirm()
expected_state['state'] = statemachine.PaymentChannelState.READY
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Check valid transition CONFIRMING_DEPOSIT -> CONFIRMING_SPEND via close()
sm.close("2654e56291a542e99d26e1d2ba34d455031517453b6c7ae256c62e151ddc41cc")
expected_state['spend_txid'] = "2654e56291a542e99d26e1d2ba34d455031517453b6c7ae256c62e151ddc41cc"
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Check valid transition OPENING -> CLOSED via finalize()
sm.finalize("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056") # nopep8
expected_state['spend_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['spend_txid'] = "e49cef2fbaf7b6590eb502e4b143f24d5d95ca2e255b166f3b40bef786a32bba"
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
assert_statemachine_state(expected_state, sm)
def test_statemachine_pay():
"""Test state machine paying, transitions from
READY -> OUTSTANDING -> READY.
"""
# Create state machine
model_data = {
'url': 'test',
'state': statemachine.PaymentChannelState.READY,
'creation_time': 42,
'deposit_tx': bitcoin.Transaction.from_hex("010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000"), # nopep8
'refund_tx': bitcoin.Transaction.from_hex("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056"), # nopep8
'payment_tx': None,
'spend_tx': None,
'spend_txid': None,
'min_output_amount': 1000,
}
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), mock.MockBlockchain())
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Assert state machine state
expected_state = {}
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['balance_amount'] = 100000
expected_state['deposit_amount'] = 100000
expected_state['fee_amount'] = 10000
expected_state['creation_time'] = lambda sm: sm.creation_time > 0
expected_state['expiration_time'] = 1450223410
expected_state['deposit_tx_utxo_index'] = 0
expected_state['deposit_tx'] = "010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000" # nopep8
expected_state['deposit_txid'] = "7e1a558c84abd5aaf57999557f4a7205d4b69241b7c9cab6c0795fdd663a51ef"
expected_state['deposit_txid_signature'] = "30450221008f51b6565a8ee67c32529ed840116c44e1f60a628c51ac59720cc8c6df1b5eab02204ccc32c89f81425f483c64c6f8dd77e57eefd3b6a5b7548d1875f5ef3f86cf27" # nopep8
expected_state['refund_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['refund_txid'] = "e49cef2fbaf7b6590eb502e4b143f24d5d95ca2e255b166f3b40bef786a32bba"
expected_state['payment_tx'] = None
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_statemachine_state(expected_state, sm)
# Test initial payment with amount 1
payment_tx = sm.pay(1)
assert payment_tx == "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100e0758baae39dfb1c4402c37a3382ae96a34786734265ea2bc94977299dfd2573022047957838a067ad0bbd575ec219e71c1c750685f6a70da3baa9d294c8a8202d7b01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff02e8030000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488aca0860100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
# But nack it
sm.pay_nack()
expected_state['state'] = statemachine.PaymentChannelState.READY
assert_statemachine_state(expected_state, sm)
# Test initial payment with amount 1, and acknowledge it
payment_tx = sm.pay(1)
assert payment_tx == "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100e0758baae39dfb1c4402c37a3382ae96a34786734265ea2bc94977299dfd2573022047957838a067ad0bbd575ec219e71c1c750685f6a70da3baa9d294c8a8202d7b01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff02e8030000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488aca0860100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
# Acknowledge it
sm.pay_ack()
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['balance_amount'] = 99000
expected_state['payment_tx'] = payment_tx
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
expected_state['balance_amount'] = 100000
expected_state['payment_tx'] = None
# Test initial payment with amount PAYMENT_TX_MIN_OUTPUT_AMOUNT + 2
payment_tx = sm.pay(1001)
assert payment_tx == "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009b47304402201638d4ca0760ce75d9aaf514f870076f2d68c43bcfcbed308ffe983b9d6f062e022036a5b377f2e32810bc235aaab2a885055fb6ff0348e25a8720b1c48ec228d3a301514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff02e9030000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac9f860100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
# Acknowledge it
sm.pay_ack()
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['balance_amount'] = 98999
expected_state['payment_tx'] = payment_tx
assert_statemachine_state(expected_state, sm)
# Test subsequent payment of 20000
payment_tx = sm.pay(20000)
assert payment_tx == "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c4830450221009d19b49f540af728a3ce978bad1c4bf6d162a6f24f74dd11bde72e706521c08a02200ce0dd828018741434f74ee7a4c7bfb9e74c56d20246966b3a893d8bb13c871101514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff0209520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7f380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
# But nack it
sm.pay_nack()
expected_state['state'] = statemachine.PaymentChannelState.READY
assert_statemachine_state(expected_state, sm)
# Test subsequent payment of 20000
payment_tx = sm.pay(20000)
assert payment_tx == "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c4830450221009d19b49f540af728a3ce978bad1c4bf6d162a6f24f74dd11bde72e706521c08a02200ce0dd828018741434f74ee7a4c7bfb9e74c56d20246966b3a893d8bb13c871101514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff0209520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7f380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
# Acknowledge it
sm.pay_ack()
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['balance_amount'] = 78999
expected_state['payment_tx'] = payment_tx
assert_statemachine_state(expected_state, sm)
# Test excess payment of 80000
with pytest.raises(statemachine.InsufficientBalanceError):
payment_tx = sm.pay(80000)
# Test excess payment of 79000
with pytest.raises(statemachine.InsufficientBalanceError):
payment_tx = sm.pay(79000)
# Test subsequent payment of 1
payment_tx = sm.pay(1)
assert payment_tx == "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
# Acknowledge it
sm.pay_ack()
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['balance_amount'] = 78998
expected_state['payment_tx'] = payment_tx
assert_statemachine_state(expected_state, sm)
# Test remainder payment
payment_tx = sm.pay(78998)
assert payment_tx == "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009b4730440220064f50737f894e97d8f1c49b07f9206caacfeeb5f6fd0ff4a0fe1cce5668cdbf02207bbe2a71627d38c1c524c7b68b4c77ffb7b5edb78c0cb1dd8516ddf7d766acfc01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff02a0860100000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ace8030000000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
# Acknowledge it
sm.pay_ack()
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['balance_amount'] = 0
expected_state['payment_tx'] = payment_tx
assert_statemachine_state(expected_state, sm)
def test_statemachine_close():
"""Test state machine close.
Valid transitions:
READY -> CONFIRMING_SPEND via close()
OUTSTANDING -> CONFIRMING_SPEND via close()
"""
# Create state machine
model_data = {
'url': 'test',
'state': statemachine.PaymentChannelState.READY,
'creation_time': 42,
'deposit_tx': bitcoin.Transaction.from_hex("010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000"), # nopep8
'refund_tx': bitcoin.Transaction.from_hex("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056"), # nopep8
'payment_tx': bitcoin.Transaction.from_hex("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000"), # nopep8
'spend_tx': None,
'spend_txid': None,
'min_output_amount': 1000,
}
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), mock.MockBlockchain())
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Assert state machine state
expected_state = {}
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['balance_amount'] = 78998
expected_state['deposit_amount'] = 100000
expected_state['fee_amount'] = 10000
expected_state['creation_time'] = lambda sm: sm.creation_time > 0
expected_state['expiration_time'] = 1450223410
expected_state['deposit_tx_utxo_index'] = 0
expected_state['deposit_tx'] = "010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000" # nopep8
expected_state['deposit_txid'] = "7e1a558c84abd5aaf57999557f4a7205d4b69241b7c9cab6c0795fdd663a51ef"
expected_state['deposit_txid_signature'] = "30450221008f51b6565a8ee67c32529ed840116c44e1f60a628c51ac59720cc8c6df1b5eab02204ccc32c89f81425f483c64c6f8dd77e57eefd3b6a5b7548d1875f5ef3f86cf27" # nopep8
expected_state['refund_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['refund_txid'] = "e49cef2fbaf7b6590eb502e4b143f24d5d95ca2e255b166f3b40bef786a32bba"
expected_state['payment_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_statemachine_state(expected_state, sm)
# Valid transition READY -> CONFIRMING_SPEND via close(None)
sm.close(None)
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['spend_txid'] = None
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Valid transition READY -> CONFIRMING_SPEND via close(<txid>)
sm.close("afb48fb7c8f09a846b44df91f0704464785e61ef14da34e8a9b95cb0c1866968")
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['spend_txid'] = "afb48fb7c8f09a846b44df91f0704464785e61ef14da34e8a9b95cb0c1866968"
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
expected_state['state'] = statemachine.PaymentChannelState.READY
expected_state['spend_txid'] = None
# Valid transition OUTSTANDING -> CONFIRMING_SPEND via close(<txid>)
sm.pay(1)
expected_state['state'] = statemachine.PaymentChannelState.OUTSTANDING
assert_statemachine_state(expected_state, sm)
sm.close("afb48fb7c8f09a846b44df91f0704464785e61ef14da34e8a9b95cb0c1866968")
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['spend_txid'] = "afb48fb7c8f09a846b44df91f0704464785e61ef14da34e8a9b95cb0c1866968"
assert_statemachine_state(expected_state, sm)
def test_statemachine_finalize():
"""Test state machine finalize.
Valid transitions:
CONFIRMING_SPEND -> CLOSED via finalize()
READY -> CLOSED via finalize()
"""
# Create state machine
model_data = {
'url': 'test',
'state': statemachine.PaymentChannelState.CONFIRMING_SPEND,
'creation_time': 42,
'deposit_tx': bitcoin.Transaction.from_hex("010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000"), # nopep8
'refund_tx': bitcoin.Transaction.from_hex("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056"), # nopep8
'payment_tx': bitcoin.Transaction.from_hex("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000"), # nopep8
'spend_tx': None,
'spend_txid': None,
'min_output_amount': 1000,
}
wallet = walletwrapper.Two1WalletWrapper(mock.MockTwo1Wallet(), mock.MockBlockchain())
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Assert state machine state
expected_state = {}
expected_state['state'] = statemachine.PaymentChannelState.CONFIRMING_SPEND
expected_state['balance_amount'] = 78998
expected_state['deposit_amount'] = 100000
expected_state['fee_amount'] = 10000
expected_state['creation_time'] = lambda sm: sm.creation_time > 0
expected_state['expiration_time'] = 1450223410
expected_state['deposit_tx_utxo_index'] = 0
expected_state['deposit_tx'] = "010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000" # nopep8
expected_state['deposit_txid'] = "7e1a558c84abd5aaf57999557f4a7205d4b69241b7c9cab6c0795fdd663a51ef"
expected_state['deposit_txid_signature'] = "30450221008f51b6565a8ee67c32529ed840116c44e1f60a628c51ac59720cc8c6df1b5eab02204ccc32c89f81425f483c64c6f8dd77e57eefd3b6a5b7548d1875f5ef3f86cf27" # nopep8
expected_state['refund_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['refund_txid'] = "e49cef2fbaf7b6590eb502e4b143f24d5d95ca2e255b166f3b40bef786a32bba"
expected_state['payment_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['spend_tx'] = None
expected_state['spend_txid'] = None
assert_statemachine_state(expected_state, sm)
# Valid finalize with refund tx
sm.finalize("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056") # nopep8
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
expected_state['balance_amount'] = 100000
expected_state['spend_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['spend_txid'] = "e49cef2fbaf7b6590eb502e4b143f24d5d95ca2e255b166f3b40bef786a32bba"
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Valid finalize with payment tx
sm.finalize("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e00000000e5483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01483045022100ee02cd312b33e78d7dd6d9044f47577a224038fa731ad34ca0ea4870575d6223022073124ecd6c63042ec6a99b34ba6d926524c6491fb1440eaa21177329f542e97501514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000") # nopep8
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
expected_state['balance_amount'] = 78998
expected_state['spend_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e00000000e5483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01483045022100ee02cd312b33e78d7dd6d9044f47577a224038fa731ad34ca0ea4870575d6223022073124ecd6c63042ec6a99b34ba6d926524c6491fb1440eaa21177329f542e97501514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['spend_txid'] = "247412297242f1849a9fd8ef7b1acabdb07465da32ab5240d8ba425876a43104"
assert_statemachine_state(expected_state, sm)
# Reset state machine
model = statemachine.PaymentChannelModel(**model_data)
sm = statemachine.PaymentChannelStateMachine(model, wallet)
# Invalid finalize with wrong refund tx
with pytest.raises(statemachine.InvalidTransactionError):
sm.finalize("010000000191efdfed621ebd3b3ad4044097086c5df75589f424261bfec6371e186a86725d010000009c47304402204ececbed85c20f3bae5393d68d1717cb258a9532e9976bf1e75103b1876427010220273c1440fff7b330d41407f83f871fcaf178ea0a413045424a48825821736aae0101004c50632102f1fff97def324ddea032fed4c8249113b8dce12aaf614d11bb833e587072c8a9ad6704a9a07056b1756821026179020dba5ad8275cf6389a85a00c08f3597bb8617af8148f249a4cd719ab39ac0000000001888a0100000000001976a914314d768ce14fc1f5dffdac1e4a0ed13705d4a4a688aca9a07056") # nopep8
# Invalid finalize with wrong payment tx
with pytest.raises(statemachine.InvalidTransactionError):
sm.finalize("010000000191efdfed621ebd3b3ad4044097086c5df75589f424261bfec6371e186a86725d01000000e4473044022049d1f41a867aa84266a1f5d2f6283d2b1e6ee07d068a098615d7a7868a96ed78022060c798cbb4740277cb095c399fb10ebd2716894c203527b0e6e3ed797400d10701483045022100de7c4c35c263cc2e1df1f2b06925225a72b9cb28e3b8bae4db7b078a1e4ac25c022031103dbe8993e94daa119d4c78e0bf52d3513e152d8b5bc192f8cb26ac3c683901514c50632102f1fff97def324ddea032fed4c8249113b8dce12aaf614d11bb833e587072c8a9ad6704a9a07056b1756821026179020dba5ad8275cf6389a85a00c08f3597bb8617af8148f249a4cd719ab39acffffffff02a0860100000000001976a914ffffb9d45c6cb46133f55a83c2fde9edb1c5f50688ace8030000000000001976a914314d768ce14fc1f5dffdac1e4a0ed13705d4a4a688ac00000000") # nopep8
# Invalid finalize with half-signed payment tx
with pytest.raises(statemachine.InvalidTransactionError):
sm.finalize("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000") # nopep8
# Invalid finalize with invalid tx
with pytest.raises(statemachine.InvalidTransactionError):
sm.finalize("010000000119de54dd7043927219cca4c06cc8b94c7c862b6486b0f989ea4c6569fb34383d010000006b483045022100c45e5bd8d00caa1cd3ad46e078ec132c9c505b3168d1d1ffe6285cf054f54ed302203ea12c4203ccee8a9de616cc22f081eed47a78660ce0a01cb3a97e302178a573012103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dffffffff0198b101000000000017a9149bc3354ccfd998cf16628449b940e6914210f1098700000000") # nopep8
# Valid transition CLOSED -> CLOSED via finalize()
# Finalize with valid payment
sm.finalize("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e00000000e5483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01483045022100ee02cd312b33e78d7dd6d9044f47577a224038fa731ad34ca0ea4870575d6223022073124ecd6c63042ec6a99b34ba6d926524c6491fb1440eaa21177329f542e97501514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000") # nopep8
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
expected_state['balance_amount'] = 78998
expected_state['spend_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e00000000e5483045022100bd2a89446c9d5985ee711747f35b8e367a90eb13970aec1b3a3ad11e01da7ac602205405fe99d5fe590fb13f0b7698e306e3bbcdd83855e156eb8e9a8901f887229f01483045022100ee02cd312b33e78d7dd6d9044f47577a224038fa731ad34ca0ea4870575d6223022073124ecd6c63042ec6a99b34ba6d926524c6491fb1440eaa21177329f542e97501514c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dacffffffff020a520000000000001976a914a5f30391271dfccc133d321960ffe1dccc88e1b488ac7e380100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac00000000" # nopep8
expected_state['spend_txid'] = "247412297242f1849a9fd8ef7b1acabdb07465da32ab5240d8ba425876a43104"
assert_statemachine_state(expected_state, sm)
# Finalize with refund
sm.finalize("0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056") # nopep8
expected_state['state'] = statemachine.PaymentChannelState.CLOSED
expected_state['balance_amount'] = 100000
expected_state['spend_tx'] = "0100000001ef513a66dd5f79c0b6cac9b74192b6d405724a7f559979f5aad5ab848c551a7e000000009c47304402207c866a5d8d46c767975c95b9fa65051578898445c85f367c4d6b56c6b795491102202db45315bfd27aa19bd7156aa70aed48ebe331c88297711ff675da5ff069f7b90101004c5063210316f5d704b828c3252432886a843649730e08ae01bbbd5c6bde63756d7f54f961ad670432a77056b175682103ee071c95cb772e57a6d8f4f987e9c61b857e63d9f3b5be7a84bdba0b5847099dac0000000001888a0100000000001976a914b42fb00f78266bba89feee86036df44401320fba88ac32a77056" # nopep8
expected_state['spend_txid'] = "e49cef2fbaf7b6590eb502e4b143f24d5d95ca2e255b166f3b40bef786a32bba"
assert_statemachine_state(expected_state, sm)
# Invalid transition CLOSED -> OUTSTANDING via pay()
with pytest.raises(statemachine.StateTransitionError):
sm.pay(1)
# Invalid transition CLOSED -> READY via pay_ack()
with pytest.raises(statemachine.StateTransitionError):
sm.pay_ack()
# Invalid transition CLOSED -> READY via pay_nack()
with pytest.raises(statemachine.StateTransitionError):
sm.pay_nack()
# Invalid transition CLOSED -> CONFIRMING_DEPOSIT via close()
with pytest.raises(statemachine.StateTransitionError):
sm.close(None)
| 83.724868
| 741
| 0.862845
| 2,463
| 47,472
| 16.37434
| 0.066585
| 0.058666
| 0.018745
| 0.025366
| 0.831366
| 0.810241
| 0.774907
| 0.769154
| 0.760873
| 0.745202
| 0
| 0.403365
| 0.089695
| 47,472
| 566
| 742
| 83.872792
| 0.529898
| 0.08742
| 0
| 0.805774
| 0
| 0
| 0.623561
| 0.584781
| 0
| 1
| 0
| 0
| 0.141732
| 1
| 0.018373
| false
| 0
| 0.015748
| 0
| 0.034121
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
4a7f093fbcf6c679cd5530c576c50e1298a9ca8b
| 54,357
|
py
|
Python
|
L1TriggerConfig/CSCTFConfigProducers/python/CSCTFConfigProducer_cfi.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 852
|
2015-01-11T21:03:51.000Z
|
2022-03-25T21:14:00.000Z
|
L1TriggerConfig/CSCTFConfigProducers/python/CSCTFConfigProducer_cfi.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 30,371
|
2015-01-02T00:14:40.000Z
|
2022-03-31T23:26:05.000Z
|
L1TriggerConfig/CSCTFConfigProducers/python/CSCTFConfigProducer_cfi.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 3,240
|
2015-01-02T05:53:18.000Z
|
2022-03-31T17:24:21.000Z
|
import FWCore.ParameterSet.Config as cms
l1CSCTFConfig = cms.ESProducer("CSCTFConfigProducer",
registersSP9 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP8 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP1 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP3 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP2 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP5 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP4 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP7 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP6 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP11 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP10 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
registersSP12 = cms.vstring('CSR_LQE F1 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F1 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F2 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F3 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F4 M3 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M1 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M2 0xFFFF # Allow LCT of any quality',
'CSR_LQE F5 M3 0xFFFF # Allow LCT of any quality',
'CSR_KFL SP MA 0x0000 # Kill no fiber link',
'CSR_REQ SP MA 0x8003 # Triggering on singles in ME1 only and running the core',
'DAT_FTR SP MA 0xFF # Charge Quality and Rank of fake track, produced from singles',
'CSR_SFC SP MA 0x1000 # Output muon pT to spy on',
'CSR_SCC SP MA 0x02e2 # Core settings Pre-Trigger=2, DT input to core, WPHI on, Halo delay=2, BXA=2',
'CNT_ETA SP MA 0x0 # Reset ETA counter to set EtaMin, EtaMax, and EtaWin',
'DAT_ETA SP MA 0x000f #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x000a #',
'DAT_ETA SP MA 0x0016 #',
'DAT_ETA SP MA 0x0008 #',
'DAT_ETA SP MA 0x000d #',
'DAT_ETA SP MA 0x000e #',
'DAT_ETA SP MA 0x0015 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x0018 #',
'DAT_ETA SP MA 0x007f #',
'DAT_ETA SP MA 0x0011 #',
'DAT_ETA SP MA 0x001b #',
'DAT_ETA SP MA 0x001d #',
'DAT_ETA SP MA 0x0026 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0006 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x0040 #',
'DAT_ETA SP MA 0x02d0 #',
'DAT_ETA SP MA 0x0080 #',
'DAT_ETA SP MA 0x003c #',
'DAT_ETA SP MA 0x00c8 #',
'DAT_ETA SP MA 0x0000 #',
'DAT_ETA SP MA 0x07be #',
'FIRMWARE SP SP 20100629',
'FIRMWARE SP FA 20090521',
'FIRMWARE SP DD 20090521',
'FIRMWARE SP VM 20090521'),
# ptLUT_path = cms.string('/afs/cern.ch/cms/MUON/csc/fast1/track_finder/luts/CMSSW_1_6_0/PtLUT.dat'),
ptLUT_path = cms.string('PtLUT_version4.dat'),
alignment = cms.vdouble(0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0,
0.0)
)
| 65.569361
| 132
| 0.382287
| 5,700
| 54,357
| 3.509649
| 0.024211
| 0.117571
| 0.184754
| 0.257936
| 0.982354
| 0.982354
| 0.982354
| 0.982354
| 0.982354
| 0.982354
| 0
| 0.149167
| 0.553912
| 54,357
| 828
| 133
| 65.648551
| 0.67585
| 0.001821
| 0
| 0.978155
| 0
| 0.014563
| 0.479125
| 0
| 0
| 0
| 0.083833
| 0
| 0
| 1
| 0
| false
| 0
| 0.001214
| 0
| 0.001214
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
4a92451b93f37707587cfd70c6ba35032e396c7d
| 75,664
|
py
|
Python
|
src/model/matrixmodel.py
|
EomapCompany/HAN
|
2f8e828ae9ae86d6a3b232eef622462f240d7bc6
|
[
"Apache-2.0"
] | 130
|
2020-09-21T04:20:41.000Z
|
2022-03-26T03:14:20.000Z
|
src/model/matrixmodel.py
|
LyWangPX/HAN
|
4a39d7a6a794568a1c761b84b7f4489e808925b9
|
[
"Apache-2.0"
] | 10
|
2020-10-11T21:25:27.000Z
|
2021-11-10T05:48:11.000Z
|
src/model/matrixmodel.py
|
LyWangPX/HAN
|
4a39d7a6a794568a1c761b84b7f4489e808925b9
|
[
"Apache-2.0"
] | 23
|
2020-10-01T06:11:14.000Z
|
2022-03-03T02:01:26.000Z
|
# ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import logging
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
from model import ops
import pdb
try:
from model.dcn.deform_conv import ModulatedDeformConvPack as DCN
except ImportError:
raise ImportError('Failed to import DCNv2 module.')
BN_MOMENTUM = 0.1
logger = logging.getLogger(__name__)
def initialize_weights(net_l, scale=1):
if not isinstance(net_l, list):
net_l = [net_l]
for net in net_l:
for m in net.modules():
if isinstance(m, nn.Conv2d):
init.kaiming_normal_(m.weight, a=0, mode='fan_in')
m.weight.data *= scale # for residual block
if m.bias is not None:
m.bias.data.zero_()
elif isinstance(m, nn.Linear):
init.kaiming_normal_(m.weight, a=0, mode='fan_in')
m.weight.data *= scale
if m.bias is not None:
m.bias.data.zero_()
elif isinstance(m, nn.BatchNorm2d):
init.constant_(m.weight, 1)
init.constant_(m.bias.data, 0.0)
class ResBlock(nn.Module):
def __init__(
self, num_channels, kernel_size=3,
bias=True, bn=False, act=nn.ReLU(True), res_scale=1,**kwargs):
super(ResBlock, self).__init__()
m = []
for i in range(2):
m.append(nn.Conv2d(num_channels, num_channels, kernel_size, stride=1, padding=1, bias=bias))
if bn: m.append(nn.BatchNorm2d(num_channels))
if i == 0: m.append(act)
self.body = nn.Sequential(*m)
self.res_scale = res_scale
initialize_weights([self.body], 0.1)
def forward(self, x):
res = self.body(x).mul(self.res_scale)
res += x
return res
class BFN(nn.Module):
def __init__(self, num_channels, kernel_size, reduction, n_blocks, block):
super(BFN, self).__init__()
branch1=[]
branch1.append(self._make_blocks(num_channels[0], num_channels[0], kernel_size, reduction, n_blocks, block))
branch1.append(nn.Conv2d(num_channels[0], num_channels[0], kernel_size, stride=1, padding=1, bias=True))
branch2=[]
branch2.append(self._make_blocks(num_channels[1], num_channels[1], kernel_size, reduction, n_blocks, block))
branch2.append(nn.Conv2d(num_channels[1], num_channels[1], kernel_size, stride=1, padding=1, bias=True))
branch3=[]
branch3.append(self._make_blocks(num_channels[2], num_channels[2], kernel_size, reduction, n_blocks, block))
branch3.append(nn.Conv2d(num_channels[2], num_channels[2], kernel_size, stride=1, padding=1, bias=True))
self.branch1 = nn.Sequential(*branch1)
self.branch2 = nn.Sequential(*branch2)
self.branch3 = nn.Sequential(*branch3)
#self.act=nn.ReLU(True)
def _make_blocks(self, in_channels, num_channels, kernel_size, reduction, n_blocks, block):
blocks = []
blocks = [block(in_channels=in_channels, num_channels=num_channels, reduction=reduction) \
for _ in range(n_blocks)]
blocks.append(nn.Conv2d(num_channels, num_channels, kernel_size, stride=1, padding=1, bias=True))
return nn.Sequential(*blocks)
def forward(self, x):
assert type(x) is tuple and len(x)==3
#branch1
res1 = x[0]
out1 = self.branch1(x[0])
out1 += res1
#branch2
res2 = x[1]
out2 = self.branch2(x[1])
out2 += res2
#branch3
res3 = x[2]
out3 = self.branch3(x[2])
out3 += res3
return (out1,out2,out3)
class BFN1(nn.Module):
def __init__(self, num_channels, kernel_size, reduction, n_blocks, block):
super(BFN1, self).__init__()
branch1=[]
branch1.append(self._make_blocks(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
branch1.append(nn.Conv2d(num_channels, num_channels, kernel_size, stride=1, padding=1, bias=True))
self.branch1 = nn.Sequential(*branch1)
#self.act=nn.ReLU(True)
def _make_blocks(self, in_channels, num_channels, kernel_size, reduction, n_blocks, block):
blocks = []
blocks = [block(in_channels=in_channels, num_channels=num_channels, reduction=reduction) \
for _ in range(n_blocks)]
blocks.append(nn.Conv2d(num_channels, num_channels, kernel_size, stride=1, padding=1, bias=True))
return nn.Sequential(*blocks)
def forward(self, x):
#branch1
res1 = x
out1 = self.branch1(x)
out1 += res1
return out1
class BFN2(nn.Module):
def __init__(self, num_channels, kernel_size, reduction, n_blocks, block):
super(BFN2, self).__init__()
branch1=[]
branch1.append(self._make_blocks(num_channels[0], num_channels[0], kernel_size, reduction, n_blocks, block))
branch1.append(nn.Conv2d(num_channels[0], num_channels[0], kernel_size, stride=1, padding=1, bias=True))
branch2=[]
branch2.append(self._make_blocks(num_channels[1], num_channels[1], kernel_size, reduction, n_blocks, block))
branch2.append(nn.Conv2d(num_channels[1], num_channels[1], kernel_size, stride=1, padding=1, bias=True))
self.branch1 = nn.Sequential(*branch1)
self.branch2 = nn.Sequential(*branch2)
#self.act=nn.ReLU(True)
def _make_blocks(self, in_channels, num_channels, kernel_size, reduction, n_blocks, block):
blocks = []
blocks = [block(in_channels=in_channels, num_channels=num_channels, reduction=reduction) \
for _ in range(n_blocks)]
blocks.append(nn.Conv2d(num_channels, num_channels, kernel_size, stride=1, padding=1, bias=True))
return nn.Sequential(*blocks)
def forward(self, x):
assert type(x) is tuple and len(x)==2
#branch1
res1 = x[0]
out1 = self.branch1(x[0])
out1 += res1
#branch2
res2 = x[1]
out2 = self.branch2(x[1])
out2 += res2
return (out1,out2)
class EoctResBlock(nn.Module):
expansion = 1
def __init__(self, in_channels, num_channels, stride=1, downsample=None, res_scale=1, **kwargs):
super(EoctResBlock, self).__init__()
self.num_channels = num_channels # (64,64,64)
self.stride = stride
self.downsample = downsample
self.res_scale = res_scale
self.conv1 = ops.EoctConv(in_channels, num_channels, stride=stride)
self.conv2 = ops.EoctConv(num_channels, num_channels)
def forward(self, x):
residual = x
out = self.conv1(x)
#out = ops.bn(out, self.num_channels)
out = ops.relu(out)
out = self.conv2(out)
#out = ops.bn(out, self.num_channels)
if self.downsample is not None:
residual = self.downsample(x)
#out = out * self.res_scale + residual
out = ops.tupleSum(out,residual)
#pdb.set_trace()
out = ops.relu(out)
return out
class EoctBottleneck(nn.Module):
def __init__(self, in_channels, num_channels, stride=1, downsample=None, res_scale=1, **kwargs):
super(EoctBottleneck, self).__init__()
self.num_channels = num_channels
self.stride = stride
self.downsample = downsample
self.res_scale = res_scale
expand = 6
linear = 0.8
self.conv1 = ops.EoctConv(in_channels, ops.tupleMultiply(num_channels,expand), kernel_size=1, padding=1//2)
#self.bn1 = nn.BatchNorm2d(num_channels*expand, momentum=BN_MOMENTUM)
self.conv2 = ops.EoctConv(ops.tupleMultiply(num_channels,expand), int(ops.tupleMultiply(num_channels,linear)), kernel_size=1, padding=1//2)
self.conv3 = ops.EoctConv(int(ops.tupleMultiply(num_channels,linear)), num_channels, kernel_size=3, padding=kernel_size//2)
def forward(self, x):
residual = x
out = self.conv1(x)
#out = ops.bn(out, self.num_channels)
out = ops.relu(out)
out = self.conv2(out)
#out = ops.bn(out, self.num_channels)
out = self.conv3(out)
#out = ops.bn(out, self.num_channels)
if self.downsample is not None:
residual = self.downsample(x)
#out = out * self.res_scale + residual
out = ops.tupleSum(out,residual)
out = ops.relu(out)
return out
class CALayer(nn.Module):
def __init__(self, in_channels, num_channels, reduction=16):
super(CALayer, self).__init__()
# feature channel downscale and upscale --> channel weight
self.conv1 = ops.EoctConv(in_channels, num_channels // reduction, 1, padding=0, bias=True),
self.conv2 = ops.EoctConv(num_channels // reduction, num_channels, 1, padding=0, bias=True),
def forward(self, x):
out = ops.avg_pool2d(x)
out = self.conv1(out)
out = ops.relu(out)
out = self.conv2(out)
out = ops.sigmoid(out)
return x * out
class CAEoctResBlock(nn.Module):
def __init__(self, in_channels, num_channels, reduction, bias=True, res_scale=1, **kwargs):
super(CAEoctResBlock, self).__init__()
self.num_channels = num_channels # [64,64,64,64]
self.res_scale = res_scale
self.conv1 = ops.EoctConv(in_channels, num_channels, stride=stride)
self.conv2 = ops.EoctConv(num_channels, num_channels)
self.caLayer = CAEctBlock(num_channels, num_channels, reduction)
def forward(self, x):
res = x
out = self.conv1(x)
out = ops.relu(out)
out = self.conv2(out)
out = self.caLayer(out)
out = ops.tupleSum(out,res)
#out = out * self.res_scale + res
out = ops.relu(out)
return out
blocks_dict = {
'BASIC':ResBlock,
'EctBASIC': EoctResBlock,
'EctBOTTLENECK': EoctBottleneck,
'CAEctBASIC':CAEoctResBlock
}
def make_model(args, parent=False):
return MatrixModelG2(args)
class MatrixModel(nn.Module):
def __init__(self, args):
super(MatrixModel, self).__init__()
n_groups = args.n_resgroups
n_blocks = args.n_resblocks
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = EoctResBlock
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = ops.EoctConv(3, 64)
modules_body1 = []
modules_body1.append(self._make_blocks(64, 64, kernel_size, reduction, n_blocks, block))
modules_body1.append(ops.EoctConv(64, (64,64), kernel_size))
modules_body2 = []
modules_body2.append(self._make_blocks((64,64), (64,64), kernel_size, reduction, n_blocks, block))
modules_body2.append(ops.EoctConv((64,64), num_channels, kernel_size))
modules_body3 = []
modules_body3.append(self._make_blocks(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body3.append(ops.EoctConv(num_channels, 64, kernel_size))
modules_tail = [
ops._UpsampleBlock(num_channels[0], scale=scale),
nn.Conv2d(num_channels[0], 3, kernel_size, 1, 1)]
self.body = nn.Sequential(*modules_body)
self.tail = nn.Sequential(*modules_tail)
def _make_blocks(self, in_channels, num_channels, kernel_size, reduction, n_blocks, block):
blocks = []
blocks = [block(in_channels=in_channels, num_channels=num_channels, reduction=reduction) \
for _ in range(n_blocks)]
blocks.append(ops.EoctConv(num_channels, num_channels, kernel_size))
return nn.Sequential(*blocks)
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
res = x
x = self.body1(x)
x = self.body2(x)
x = self.body3(x)
x += res
#pdb.set_trace()
out = self.tail(x)
out = self.add_mean(out)
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class RERB(nn.Module):
def __init__(self, in_channels, num_channels, kernel_size, reduction, n_blocks, block):
super(RERB, self).__init__()
blocks = []
blocks.append(self._make_blocks(in_channels, num_channels, kernel_size, reduction, n_blocks, block))
blocks.append(ops.EoctConv(num_channels, num_channels, kernel_size))
self.body = nn.Sequential(*blocks)
def _make_blocks(self, in_channels, num_channels, kernel_size, reduction, n_blocks, block):
blocks = []
blocks = [block(in_channels=in_channels, num_channels=num_channels, reduction=reduction) \
for _ in range(n_blocks)]
blocks.append(ops.EoctConv(num_channels, num_channels, kernel_size))
return nn.Sequential(*blocks)
def forward(self, x):
res = x
x = self.body(x)
x = ops.tupleSum(x,res)
x = ops.relu(x)
return x
class MatrixModelB(nn.Module):
def __init__(self, args):
super(MatrixModelB, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
self.fusion_conv1 = ops.EoctConv(num_channels, num_channels, kernel_size)
self.fusion_conv2 = ops.EoctConv(num_channels, num_channels, kernel_size)
self.fusion_conv3 = ops.EoctConv(num_channels, num_channels, kernel_size)
self.conv_last = ops.EoctConv(num_channels, 64, kernel_size)
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
#pdb.set_trace()
L1_fea = x[0]
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
L2_fea = x[1]
#stage3
x = self.stage3(x)
out = self.stage3_conv(x)
L3_fea = x[2]
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
x = (L1_fea, L2_fea, L3_fea)
res1 = x
x = self.fusion_conv1(x)
x = ops.tupleSum(x,res1)
res2 = x
x = self.fusion_conv2(x)
x = ops.tupleSum(x,res2)
res3 = x
x = self.fusion_conv3(x)
x = ops.tupleSum(x,res3)
out = self.conv_last(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail2(x[2])
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class PDF(nn.Module):
''' Alignment module using Pyramid, Deformable convolution and Fusion.
with 3 pyramid levels.
Bottom-Up.
'''
def __init__(self, nf=64, groups=8):
super(PDF, self).__init__()
# L1: level 1, original spatial size
#self.L1_offset_conv1 = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for diff
self.L1_offset_conv2 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True)
self.L1_dcnpack = DCN(nf, nf, 3, stride=1, padding=1, dilation=1, deformable_groups=groups,
extra_offset_mask=True)
# L2: level 2, 1/2 spatial size
self.L2_offset_conv1 = nn.Conv2d(nf, nf, 3, 2, 1, bias=True) # concat for diff
self.L2_offset_conv2 = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for offset
self.L2_offset_conv3 = nn.Conv2d(nf, nf, 3, 2, 1, bias=True)
self.L2_dcnpack = DCN(nf, nf, 3, stride=1, padding=1, dilation=1, deformable_groups=groups,
extra_offset_mask=True)
self.L2_fea_conv = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for fea
# L3: level 3, 1/4 spatial size
self.L3_offset_conv1 = nn.Conv2d(nf, nf, 3, 2, 1, bias=True) # concat for diff
self.L3_offset_conv2 = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for offset
self.L3_offset_conv3 = nn.Conv2d(nf, nf, 3, 2, 1, bias=True)
self.L3_dcnpack = DCN(nf, nf, 3, stride=1, padding=1, dilation=1, deformable_groups=groups,
extra_offset_mask=True)
self.L3_fea_conv = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for fea
self.lrelu = nn.LeakyReLU(negative_slope=0.1, inplace=False)
self.upsample = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=False)
self.upsample2 = nn.Upsample(scale_factor=4, mode='bilinear', align_corners=False)
self.conv_last = nn.Conv2d(nf * 3, nf, 3, 1, 1, bias=True)
def forward(self, nbr_fea_l):
'''align other neighboring frames to the reference frame in the feature level
nbr_fea_l, ref_fea_l: [L1, L2, L3], each with [B,C,H,W] features
'''
# L1
L1_offset = nbr_fea_l[0]
#L1_offset = self.lrelu(self.L1_offset_conv1(L1_offset))
L1_offset = self.lrelu(self.L1_offset_conv2(L1_offset))
L1_fea = self.lrelu(self.L1_dcnpack([nbr_fea_l[0], L1_offset]))
L1_f = L1_fea
# L2
L2_offset = nbr_fea_l[1]
L1_offset = self.lrelu(self.L2_offset_conv1(L1_offset))
#L1_offset = F.interpolate(L1_offset, scale_factor=1/2, mode='bilinear', align_corners=False)
L2_offset = self.lrelu(self.L2_offset_conv2(torch.cat([L2_offset, L1_offset * 2], dim=1)))
#L2_offset = self.lrelu(self.L2_offset_conv3(L2_offset))
L2_fea = self.L2_dcnpack([nbr_fea_l[1], L2_offset])
L1_fea = self.lrelu(self.L2_offset_conv3(L1_fea))
L2_fea = self.lrelu(self.L2_fea_conv(torch.cat([L2_fea, L1_fea], dim=1)))
L2_f = L2_fea
# L3
L3_offset = nbr_fea_l[2]
#L3_offset = self.lrelu(self.L3_offset_conv1(L3_offset))
L2_offset = self.L3_offset_conv1(L2_offset)
L3_offset = self.lrelu(self.L3_offset_conv2(torch.cat([L3_offset, L2_offset * 2], dim=1)))
#L3_offset = self.lrelu(self.L3_offset_conv3(L3_offset))
L3_fea = self.L3_dcnpack([nbr_fea_l[2], L3_offset])
L2_fea = self.lrelu(self.L3_offset_conv3(L2_fea))
L3_fea = self.L3_fea_conv(torch.cat([L3_fea, L2_fea], dim=1))
# Fusion
L3_fea = self.upsample2(L3_fea)
L2_f = self.upsample(L2_f)
L_fea = torch.cat([torch.cat([L1_f, L2_f], dim=1),L3_fea],dim=1)
L_fea = self.lrelu(self.conv_last(L_fea))
return L_fea
class PD(nn.Module):
''' module using Pyramid, Deformable convolution
with 3 pyramid levels.
Top-down.
'''
def __init__(self, nf=64, groups=8):
super(PD, self).__init__()
# L3: level 3, 1/4 spatial size
#self.L3_offset_conv1 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True) # concat for diff
self.L3_offset_conv2 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True)
self.L3_dcnpack = DCN(nf, nf, 3, stride=1, padding=1, dilation=1, deformable_groups=groups,
extra_offset_mask=True)
# L2: level 2, 1/2 spatial size
#self.L2_offset_conv1 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True) # concat for diff
self.L2_offset_conv2 = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for offset
self.L2_offset_conv3 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True)
self.L2_dcnpack = DCN(nf, nf, 3, stride=1, padding=1, dilation=1, deformable_groups=groups,
extra_offset_mask=True)
self.L2_fea_conv = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for fea
# L1: level 1, original spatial size
#self.L1_offset_conv1 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True) # concat for diff
self.L1_offset_conv2 = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for offset
self.L1_offset_conv3 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True)
self.L1_dcnpack = DCN(nf, nf, 3, stride=1, padding=1, dilation=1, deformable_groups=groups,
extra_offset_mask=True)
self.L1_fea_conv = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for fea
# Cascading DCN
#self.cas_offset_conv1 = nn.Conv2d(nf * 2, nf, 3, 1, 1, bias=True) # concat for diff
#self.cas_offset_conv2 = nn.Conv2d(nf, nf, 3, 1, 1, bias=True)
#self.cas_dcnpack = DCN(nf, nf, 3, stride=1, padding=1, dilation=1, deformable_groups=groups,extra_offset_mask=True)
self.lrelu = nn.LeakyReLU(negative_slope=0.1, inplace=False)
self.upsample = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=False)
#self.upsample2 = nn.Upsample(scale_factor=4, mode='bilinear', align_corners=False)
#self.conv_last = nn.Conv2d(nf * 3, nf, 3, 1, 1, bias=True)
def forward(self, nbr_fea_l):
'''align other neighboring frames to the reference frame in the feature level
nbr_fea_l, ref_fea_l: [L1, L2, L3], each with [B,C,H,W] features
'''
# L3
L3_offset = nbr_fea_l[2]
#L3_offset = self.lrelu(self.L3_offset_conv1(L3_offset))
L3_offset = self.lrelu(self.L3_offset_conv2(L3_offset))
L3_fea = self.lrelu(self.L3_dcnpack([nbr_fea_l[2], L3_offset]))
L3_f = L3_fea
# L2
L2_offset = nbr_fea_l[1]
#L2_offset = self.lrelu(self.L2_offset_conv1(L2_offset))
L3_offset = self.upsample(L3_offset)
L2_offset = self.lrelu(self.L2_offset_conv2(torch.cat([L2_offset, L3_offset * 2], dim=1)))
L2_offset = self.lrelu(self.L2_offset_conv3(L2_offset))
L2_fea = self.L2_dcnpack([nbr_fea_l[1], L2_offset])
L3_fea = self.upsample(L3_fea)
#pdb.set_trace()
L2_fea = self.lrelu(self.L2_fea_conv(torch.cat([L2_fea, L3_fea], dim=1)))
L2_f = L2_fea
# L1
L1_offset = nbr_fea_l[0]
#L1_offset = self.lrelu(self.L1_offset_conv1(L1_offset))
L2_offset = self.upsample(L2_offset)
L1_offset = self.lrelu(self.L1_offset_conv2(torch.cat([L1_offset, L2_offset * 2], dim=1)))
L1_offset = self.lrelu(self.L1_offset_conv3(L1_offset))
L1_fea = self.L1_dcnpack([nbr_fea_l[0], L1_offset])
L2_fea = self.upsample(L2_fea)
L1_fea = self.L1_fea_conv(torch.cat([L1_fea, L2_fea], dim=1))
# Cascading
#offset = L1_fea
#offset = self.lrelu(self.cas_offset_conv1(offset))
#offset = self.lrelu(self.cas_offset_conv2(offset))
#L1_fea = self.lrelu(self.cas_dcnpack([L1_fea, offset]))
#L3_f = self.upsample2(L3_f)
#L2_f = self.upsample(L2_f)
#L_fea = torch.cat([torch.cat([L1_fea, L2_f], dim=1),L3_f],dim=1)
#L_fea = self.lrelu(self.conv_last(L_fea))
return (L1_fea, L2_f, L3_f)
class MatrixModelC(nn.Module):
def __init__(self, args):
super(MatrixModelC, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
'''
self.pd = PD()
self.pdf = PDF()
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
self.tail1 = nn.Sequential(*modules_tail1)
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
#pdb.set_trace()
L1_fea = x[0]
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
L2_fea = x[1]
#stage3
x = self.stage3(x)
x = self.stage3_conv(x)
L3_fea = x[2]
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
#pdf-Two_way
x = (L1_fea, L2_fea, L3_fea)
x = self.pd(x)
out = self.pdf(x)
#long skip
out += residual
out = self.tail1(out)
out = self.add_mean(out)
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class MatrixModelD(nn.Module):
def __init__(self, args):
super(MatrixModelD, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
#pdb.set_trace()
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
#stage3
x = self.stage3(x)
x = self.stage3_conv(x)
out = x[0]
#out3 = x[2]
#pdb.set_trace()
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail3(out3)
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class MatrixModelE(nn.Module):
def __init__(self, args):
super(MatrixModelE, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, 64, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
#pdb.set_trace()
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
#stage3
x = self.stage3(x)
out = self.stage3_conv(x)
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail2(x[2])
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class MatrixModelF(nn.Module):
def __init__(self, args):
super(MatrixModelF, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, 64, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
#pdb.set_trace()
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
#stage3
x = self.stage3(x)
out = self.stage3_conv(x)
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail2(x[2])
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class MatrixModelG(nn.Module):
def __init__(self, args):
super(MatrixModelG, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, 64, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
self.last_conv = nn.Conv2d(64*3, 64, kernel_size, 1, 1)
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
out1 = x[0]
#pdb.set_trace()
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
out2 = x[0]
#stage3
x = self.stage3(x)
out = self.stage3_conv(x)
out2 = torch.cat([out1,out2], dim=1)
out = torch.cat([out2,out], dim=1)
out = self.last_conv(out)
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail2(x[2])
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class MatrixModelG2(nn.Module):
def __init__(self, args):
super(MatrixModelG2, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, 64, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
self.da = DAM_Module(64)
#self.da_conv = nn.Conv2d(64*3, 64, 3, 1, 1)
self.last_conv = nn.Conv2d(64*3, 64, kernel_size, 1, 1)
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
out1 = x[0].unsqueeze(1)
#pdb.set_trace()
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
out2 = x[0].unsqueeze(1)
#stage3
x = self.stage3(x)
out = self.stage3_conv(x).unsqueeze(1)
out2 = torch.cat([out1,out2], dim=1)
out = torch.cat([out2,out], dim=1)
out = self.da(out)
out = self.last_conv(out)
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail2(x[2])
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class MatrixModelF2(nn.Module):
def __init__(self, args):
super(MatrixModelF2, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, 64, kernel_size)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
inter_channels = 64 #// 4
self.conv5a = nn.Sequential(nn.Conv2d(64, inter_channels, 3, padding=1, bias=False),
nn.BatchNorm2d(inter_channels),
nn.ReLU())
self.conv5c = nn.Sequential(nn.Conv2d(64, inter_channels, 3, padding=1, bias=False),
nn.BatchNorm2d(inter_channels),
nn.ReLU())
self.pa = PAM_Module(inter_channels)
self.ca = CAM_Module(inter_channels)
self.conv51 = nn.Sequential(nn.Conv2d(inter_channels, inter_channels, 3, padding=1, bias=False),
nn.BatchNorm2d(inter_channels),
nn.ReLU())
self.conv52 = nn.Sequential(nn.Conv2d(inter_channels, inter_channels, 3, padding=1, bias=False),
nn.BatchNorm2d(inter_channels),
nn.ReLU())
#self.conv6 = nn.Sequential(nn.Conv2d(192, 64, 1))
#self.da_conv = nn.Conv2d(64*3, 64, 3, 1, 1)
self.last_conv = nn.Conv2d(64*3, 64, kernel_size, 1, 1)
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
#pdb.set_trace()
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
#stage3
x = self.stage3(x)
out1 = self.stage3_conv(x)
feat1 = self.conv5a(out1)
pa_feat = self.pa(feat1)
pa_conv = self.conv51(pa_feat)
#pa_output = self.conv6(pa_conv)
feat2 = self.conv5c(out1)
ca_feat = self.ca(feat2)
ca_conv = self.conv52(ca_feat)
#ca_output = self.conv7(ca_conv)
feat_sum = torch.cat([pa_conv,ca_conv],dim=1)
paca_output = torch.cat([feat_sum,out1],dim=1)
out = self.last_conv(paca_output)
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail2(x[2])
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
class PAM_Module(nn.Module):
""" Position attention module"""
#Ref from SAGAN
def __init__(self, in_dim):
super(PAM_Module, self).__init__()
self.chanel_in = in_dim
self.query_conv = nn.Conv2d(in_channels=in_dim, out_channels=in_dim//8, kernel_size=1)
self.key_conv = nn.Conv2d(in_channels=in_dim, out_channels=in_dim//8, kernel_size=1)
self.value_conv = nn.Conv2d(in_channels=in_dim, out_channels=in_dim, kernel_size=1)
self.gamma = nn.Parameter(torch.zeros(1))
self.softmax = nn.Softmax(dim=-1)
def forward(self, x):
"""
inputs :
x : input feature maps( B X C X H X W)
returns :
out : attention value + input feature
attention: B X (HxW) X (HxW)
"""
m_batchsize, C, height, width = x.size()
proj_query = self.query_conv(x).view(m_batchsize, -1, width*height).permute(0, 2, 1)
proj_key = self.key_conv(x).view(m_batchsize, -1, width*height)
energy = torch.bmm(proj_query, proj_key)
attention = self.softmax(energy)
proj_value = self.value_conv(x).view(m_batchsize, -1, width*height)
out = torch.bmm(proj_value, attention.permute(0, 2, 1))
out = out.view(m_batchsize, C, height, width)
out = self.gamma*out + x
return out
class CAM_Module(nn.Module):
""" Channel attention module"""
def __init__(self, in_dim):
super(CAM_Module, self).__init__()
self.chanel_in = in_dim
self.gamma = nn.Parameter(torch.zeros(1))
self.softmax = nn.Softmax(dim=-1)
def forward(self,x):
"""
inputs :
x : input feature maps( B X C X H X W)
returns :
out : attention value + input feature
attention: B X C X C
"""
m_batchsize, C, height, width = x.size()
proj_query = x.view(m_batchsize, C, -1)
proj_key = x.view(m_batchsize, C, -1).permute(0, 2, 1)
energy = torch.bmm(proj_query, proj_key)
energy_new = torch.max(energy, -1, keepdim=True)[0].expand_as(energy)-energy
attention = self.softmax(energy_new)
proj_value = x.view(m_batchsize, C, -1)
out = torch.bmm(attention, proj_value)
out = out.view(m_batchsize, C, height, width)
out = self.gamma*out + x
return out
class GAM_Module(nn.Module):
""" Global attention module"""
def __init__(self, in_dim):
super(GAM_Module, self).__init__()
self.chanel_in = in_dim
self.gamma = nn.Parameter(torch.zeros(1))
self.softmax = nn.Softmax(dim=-1)
def forward(self,x):
"""
inputs :
x : input feature maps( B X C X H X W)
returns :
out : attention value + input feature
attention: B X (C*H*W) X (C*H*W)
"""
m_batchsize, C, height, width = x.size()
proj_query = x.view(m_batchsize, -1).unsqueeze(-1)
proj_key = x.view(m_batchsize, -1).unsqueeze(-1).permute(0, 2, 1)
#pdb.set_trace()
energy = torch.bmm(proj_query, proj_key)
#energy_new = torch.max(energy, -1, keepdim=True)[0].expand_as(energy)-energy
attention = self.softmax(energy)
proj_value = x.view(m_batchsize, -1).unsqueeze(-1)
out = torch.bmm(attention, proj_value)
out = out.view(m_batchsize, C, height, width)
out = self.gamma*out + x
return out
class DAM_Module(nn.Module):
""" Deep attention module"""
def __init__(self, in_dim):
super(DAM_Module, self).__init__()
self.chanel_in = in_dim
self.gamma = nn.Parameter(torch.zeros(1))
self.softmax = nn.Softmax(dim=-1)
def forward(self,x):
"""
inputs :
x : input feature maps( B X N X C X H X W)
returns :
out : attention value + input feature
attention: B X N X N
"""
m_batchsize, N, C, height, width = x.size()
proj_query = x.view(m_batchsize, N, -1)
proj_key = x.view(m_batchsize, N, -1).permute(0, 2, 1)
energy = torch.bmm(proj_query, proj_key)
energy_new = torch.max(energy, -1, keepdim=True)[0].expand_as(energy)-energy
attention = self.softmax(energy_new)
proj_value = x.view(m_batchsize, N, -1)
out = torch.bmm(attention, proj_value)
out = out.view(m_batchsize, N, C, height, width)
out = self.gamma*out + x
out = out.view(m_batchsize, -1, height, width)
return out
class MatrixModelH(nn.Module):
def __init__(self, args):
super(MatrixModelH, self).__init__()
num_channels = (64, 64, 64)
kernel_size = 3
reduction = args.reduction
scale = args.scale
block = blocks_dict[args.block]
# RGB mean for DIV2K
rgb_mean = (0.4488, 0.4371, 0.4040)
rgb_std = (1.0, 1.0, 1.0)
self.sub_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std)
self.add_mean = ops.MeanShift(args.rgb_range, rgb_mean, rgb_std, 1)
self.first_conv = nn.Conv2d(3, 64, kernel_size, stride=1, padding=1, bias=True)
modules_stage1 = []
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
modules_stage1.append(BFN1(64, kernel_size, reduction, 5, block))
self.stage1 = nn.Sequential(*modules_stage1)
self.stage1_conv = ops.EoctConv(64, (64,64), kernel_size)
modules_stage2 = []
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
modules_stage2.append(BFN2((64,64), kernel_size, reduction, 5, block))
self.stage2 = nn.Sequential(*modules_stage2)
self.stage2_conv = ops.EoctConv((64,64), num_channels, kernel_size)
modules_stage3 = []
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
modules_stage3.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage3 = nn.Sequential(*modules_stage3)
self.stage3_conv = ops.EoctConv(num_channels, 64, kernel_size)
self.pa = PAM_Module(64)
self.pa_conv = nn.Conv2d(64, 64, 3, 1, 1)
self.ca = CAM_Module(64)
self.ca_conv = nn.Conv2d(64, 64, 3, 1, 1)
'''
modules_stage4 = []
modules_stage4.append(BFN(num_channels, kernel_size, reduction, 5, block))
self.stage4 = nn.Sequential(*modules_stage4)
self.stage4_conv = ops.EoctConv(num_channels, num_channels, kernel_size)
modules_body = []
for i in range(n_groups):
modules_body.append(RERB(num_channels, num_channels, kernel_size, reduction, n_blocks, block))
modules_body.append(ops.EoctConv(num_channels, num_channels, kernel_size))
'''
modules_tail1 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail1 = nn.Sequential(*modules_tail1)
'''
modules_tail2 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail2 = nn.Sequential(*modules_tail2)
modules_tail3 = [
ops._UpsampleBlock(64, scale=scale),
nn.Conv2d(64, 3, kernel_size, 1, 1)]
#self.body = nn.Sequential(*modules_body)
self.tail3 = nn.Sequential(*modules_tail3)
'''
def forward(self, x):
x = self.sub_mean(x)
x = self.first_conv(x)
residual = x
#pdb.set_trace()
#stage1
x = self.stage1(x)
x = self.stage1_conv(x)
#pdb.set_trace()
#stage2
x = self.stage2(x)
x = self.stage2_conv(x)
#stage3
x = self.stage3(x)
out = self.stage3_conv(x)
#atten
pa_out = self.pa(out)
pa_out = self.pa_conv(pa_out)
ca_out = self.ca(out)
ca_out = self.ca_conv(ca_out)
out = pa_out + ca_out
#stage4
#x = self.stage4(x)
#x = self.stage4_conv(x)
out += residual
out = self.tail1(out)
out = self.add_mean(out)
#out2 = self.tail1(x[1])
#out2 = self.add_mean(out2)
#out3 = self.tail2(x[2])
#out3 = self.add_mean(out3)
#pdb.set_trace()
return out
def load_state_dict(self, state_dict, strict=False):
own_state = self.state_dict()
for name, param in state_dict.items():
if name in own_state:
if isinstance(param, nn.Parameter):
param = param.data
try:
own_state[name].copy_(param)
except Exception:
if name.find('tail') >= 0:
print('Replace pre-trained upsampler to new one...')
else:
raise RuntimeError('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(), param.size()))
elif strict:
if name.find('tail') == -1:
raise KeyError('unexpected key "{}" in state_dict'
.format(name))
if strict:
missing = set(own_state.keys()) - set(state_dict.keys())
if len(missing) > 0:
raise KeyError('missing keys in state_dict: "{}"'.format(missing))
| 37.907816
| 147
| 0.570403
| 9,596
| 75,664
| 4.293143
| 0.036265
| 0.054616
| 0.048426
| 0.048426
| 0.908804
| 0.893512
| 0.876787
| 0.858096
| 0.843702
| 0.828847
| 0
| 0.045202
| 0.310557
| 75,664
| 1,996
| 148
| 37.907816
| 0.744527
| 0.086065
| 0
| 0.765306
| 0
| 0
| 0.041089
| 0
| 0
| 0
| 0
| 0
| 0.001701
| 1
| 0.056973
| false
| 0
| 0.011905
| 0.00085
| 0.117347
| 0.009354
| 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
|
4397787f0c0f354897c9364dbb055a75b4248c01
| 1,455
|
py
|
Python
|
tests/test_observatory.py
|
drgmk/ni
|
4a1d4ed7aec77e0b6730f723a91f27245d4e40f8
|
[
"MIT"
] | null | null | null |
tests/test_observatory.py
|
drgmk/ni
|
4a1d4ed7aec77e0b6730f723a91f27245d4e40f8
|
[
"MIT"
] | null | null | null |
tests/test_observatory.py
|
drgmk/ni
|
4a1d4ed7aec77e0b6730f723a91f27245d4e40f8
|
[
"MIT"
] | null | null | null |
import pytest
import numpy as np
from .context import ni
def test_lbti_mirror_spacing():
observatory = "lbti"
obs = ni.observatory.Observatory(observatory=observatory)
assert(obs.mirror_spacing == 14.4)
def test_keck_mirror_spacing():
observatory = "keck"
obs = ni.observatory.Observatory(observatory=observatory)
assert(obs.mirror_spacing == 85.0)
def test_lbti_lattitude():
observatory = "lbti"
obs = ni.observatory.Observatory(observatory=observatory)
assert(obs.lat == 32.7016)
def test_keck_lattitude():
observatory = "keck"
obs = ni.observatory.Observatory(observatory=observatory)
assert(obs.lat == 19.286)
def test_Tarray_single_orientation_shape():
obs = ni.observatory.Observatory()
Tarray = obs.transmission(phi=np.array([1,2,3,4,5]),n_theta=100,
inc=np.array([0]),omegalbti=np.array([0]))
radii_length = len(Tarray[:,0])
orientation_length = len(Tarray[0,:])
assert(radii_length == 5)
assert(orientation_length == 1)
def test_Tarray_multiple_orientation_shape():
obs = ni.observatory.Observatory()
Tarray = obs.transmission(phi=np.array([1,2,3,4,5]),n_theta=100,
inc=np.array([1,2,3,4]),omegalbti=np.array([1,2,3,4]))
radii_length = len(Tarray[:,0])
orientation_length = len(Tarray[0,:])
assert(radii_length == 5)
assert(orientation_length == 4)
| 29.693878
| 84
| 0.661856
| 188
| 1,455
| 4.962766
| 0.25
| 0.330118
| 0.282958
| 0.173633
| 0.764202
| 0.764202
| 0.748124
| 0.748124
| 0.748124
| 0.741693
| 0
| 0.04389
| 0.201375
| 1,455
| 48
| 85
| 30.3125
| 0.759036
| 0
| 0
| 0.514286
| 0
| 0
| 0.010997
| 0
| 0
| 0
| 0
| 0
| 0.228571
| 1
| 0.171429
| false
| 0
| 0.085714
| 0
| 0.257143
| 0
| 0
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
60056e941d1e2fd6a6e324e74024d0c50d68808b
| 2,903
|
py
|
Python
|
StreamDeck-Server/routes/command.py
|
philliphqs/StreamDeck
|
0edc20cc5dd35238c0a6ec8988c92934c3c613b0
|
[
"MIT"
] | null | null | null |
StreamDeck-Server/routes/command.py
|
philliphqs/StreamDeck
|
0edc20cc5dd35238c0a6ec8988c92934c3c613b0
|
[
"MIT"
] | 9
|
2021-08-14T01:27:36.000Z
|
2021-08-24T18:10:18.000Z
|
StreamDeck-Server/routes/command.py
|
philliphqs/StreamDeck
|
0edc20cc5dd35238c0a6ec8988c92934c3c613b0
|
[
"MIT"
] | null | null | null |
import os
from flask import Blueprint, request
command = Blueprint('cmd', __name__, url_prefix='/cmd')
"""
␣ ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] { | }
%20 %21 %22 %23 %24 %25 %26 %27 %28 %29 %2A %2B %2C %2D %2E %2F %3A %3B %3C %3D %3E %3F %40 %5B %5C %5D %7B %7C %7D
https://de.wikipedia.org/wiki/URL-Encoding#Relevante_ASCII-Zeichen_in_Prozentdarstellung
"""
@command.route('/run')
def cmd():
run_cmd = request.args.get('cmd', None)
try:
run_cmd = run_cmd.replace('%20', ' ')
except:
pass
try:
run_cmd = run_cmd.replace('%20', ' ')
except:
pass
try:
run_cmd = run_cmd.replace('%21', '!')
except:
pass
try:
run_cmd = run_cmd.replace('%22', '"')
except:
pass
try:
run_cmd = run_cmd.replace('%23', '#')
except:
pass
try:
run_cmd = run_cmd.replace('%24', '$')
except:
pass
try:
run_cmd = run_cmd.replace('%25', '%')
except:
pass
try:
run_cmd = run_cmd.replace('%26', '&')
except:
pass
try:
run_cmd = run_cmd.replace('%27', "'")
except:
pass
try:
run_cmd = run_cmd.replace('%28', '(')
except:
pass
try:
run_cmd = run_cmd.replace('%29', ')')
except:
pass
try:
run_cmd = run_cmd.replace('%2A', '*')
except:
pass
try:
run_cmd = run_cmd.replace('%2B', '+')
except:
pass
try:
run_cmd = run_cmd.replace('%2C', ',')
except:
pass
try:
run_cmd = run_cmd.replace('%2D', '-')
except:
pass
try:
run_cmd = run_cmd.replace('%2E', '.')
except:
pass
try:
run_cmd = run_cmd.replace('%2F', '/')
except:
pass
try:
run_cmd = run_cmd.replace('%3A', ':')
except:
pass
try:
run_cmd = run_cmd.replace('%3B', ';')
except:
pass
try:
run_cmd = run_cmd.replace('%3C', '<')
except:
pass
try:
run_cmd = run_cmd.replace('%3D', '=')
except:
pass
try:
run_cmd = run_cmd.replace('%3E', '>')
except:
pass
try:
run_cmd = run_cmd.replace('%3F', '?')
except:
pass
try:
run_cmd = run_cmd.replace('%40', '@')
except:
pass
try:
run_cmd = run_cmd.replace('%5B', '[')
except:
pass
try:
run_cmd = run_cmd.replace('%5C', '\\')
except:
pass
try:
run_cmd = run_cmd.replace('%5D', ']')
except:
pass
try:
run_cmd = run_cmd.replace('%7B', '{')
except:
pass
try:
run_cmd = run_cmd.replace('%7C', '|')
except:
pass
try:
run_cmd = run_cmd.replace('%7D', '}')
except:
pass
os.system(run_cmd)
return run_cmd
| 20.443662
| 115
| 0.472615
| 345
| 2,903
| 3.773913
| 0.185507
| 0.290323
| 0.214286
| 0.276498
| 0.732719
| 0.732719
| 0.732719
| 0.732719
| 0.069124
| 0.069124
| 0
| 0.043897
| 0.356528
| 2,903
| 141
| 116
| 20.588652
| 0.65257
| 0
| 0
| 0.71875
| 0
| 0
| 0.051311
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.007813
| false
| 0.234375
| 0.015625
| 0
| 0.03125
| 0.015625
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 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
|
60e29133269ad48d07bb6f9a3e71da0476c2de34
| 3,902
|
py
|
Python
|
archs.py
|
mmonty/keras-arcface
|
e806f04c7cd3eae1881595cf167ae6a0901ee2b1
|
[
"MIT"
] | null | null | null |
archs.py
|
mmonty/keras-arcface
|
e806f04c7cd3eae1881595cf167ae6a0901ee2b1
|
[
"MIT"
] | null | null | null |
archs.py
|
mmonty/keras-arcface
|
e806f04c7cd3eae1881595cf167ae6a0901ee2b1
|
[
"MIT"
] | null | null | null |
import keras
from keras.models import Model
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import Input, MaxPooling2D, Dropout, Flatten
from keras import regularizers
from metrics import *
weight_decay = 5e-4
def vgg_block(x, filters, layers):
for _ in range(layers):
x = Conv2D(filters, (3, 3), padding='same', kernel_initializer='he_normal',
kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
x = Activation('relu')(x)
return x
def vgg8(args):
input = Input(shape=(28, 28, 1))
x = vgg_block(input, 16, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = vgg_block(x, 32, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = vgg_block(x, 64, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = BatchNormalization()(x)
x = Dropout(0.5)(x)
x = Flatten()(x)
x = Dense(args.num_features, kernel_initializer='he_normal',
kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
output = Dense(10, activation='softmax', kernel_regularizer=regularizers.l2(weight_decay))(x)
return Model(input, output)
def vgg8_arcface(args):
input = Input(shape=(28, 28, 1))
y = Input(shape=(10,))
x = vgg_block(input, 16, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = vgg_block(x, 32, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = vgg_block(x, 64, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = BatchNormalization()(x)
x = Dropout(0.5)(x)
x = Flatten()(x)
x = Dense(args.num_features, kernel_initializer='he_normal',
kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
output = ArcFace(10, regularizer=regularizers.l2(weight_decay))([x, y])
return Model([input, y], output)
def vgg8_cosface(args):
input = Input(shape=(28, 28, 1))
y = Input(shape=(10,))
x = vgg_block(input, 16, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = vgg_block(x, 32, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = vgg_block(x, 64, 2)
x = MaxPooling2D(pool_size=(2, 2))(x)
x = BatchNormalization()(x)
x = Dropout(0.5)(x)
x = Flatten()(x)
x = Dense(args.num_features, kernel_initializer='he_normal',
kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
output = CosFace(10, regularizer=regularizers.l2(weight_decay))([x, y])
return Model([input, y], output)
def vgg8_sphereface(args):
input = Input(shape=(224, 224, 3))
y = Input(shape=(565,))
# x = vgg_block(input, 64, 1)
# x = MaxPooling2D(pool_size=(2, 2))(x)
# x = vgg_block(x, 128, 1)
# x = MaxPooling2D(pool_size=(2, 2))(x)
# x = vgg_block(x, 256, 1)
# x = MaxPooling2D(pool_size=(2, 2))(x)
x = Conv2D(8, (3, 3), padding='same', kernel_initializer='he_normal', kernel_regularizer=regularizers.l2(weight_decay))(input)
x = BatchNormalization()(x)
x = Activation('relu')(x)
x = Conv2D(16, (3, 3), padding='same', kernel_initializer='he_normal', kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
x = Activation('relu')(x)
x = Conv2D(32, (3, 3), padding='same', kernel_initializer='he_normal', kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
x = Activation('relu')(x)
x = Conv2D(64, (3, 3), padding='same', kernel_initializer='he_normal', kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
# x = Dropout(0.5)(x)
x = Flatten()(x)
x = Dense(5, kernel_initializer='he_normal',
kernel_regularizer=regularizers.l2(weight_decay))(x)
x = BatchNormalization()(x)
output = SphereFace(565, m=4, regularizer=regularizers.l2(weight_decay))([x, y])
return Model([input, y], output)
| 33.350427
| 130
| 0.639159
| 552
| 3,902
| 4.384058
| 0.121377
| 0.032231
| 0.134298
| 0.166529
| 0.808678
| 0.808678
| 0.808678
| 0.780992
| 0.780992
| 0.752479
| 0
| 0.052699
| 0.197591
| 3,902
| 116
| 131
| 33.637931
| 0.720217
| 0.058688
| 0
| 0.678571
| 0
| 0
| 0.033861
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.059524
| false
| 0
| 0.071429
| 0
| 0.190476
| 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
|
60eecdf5f4221b7db8c1d344c68ba922d3fc2a57
| 175
|
py
|
Python
|
venv/lib/python3.6/site-packages/thinc/__init__.py
|
eltoredo/ChatBot
|
11b7d4232c3c42f3a506150eca2b5d4a516eff71
|
[
"Apache-2.0"
] | null | null | null |
venv/lib/python3.6/site-packages/thinc/__init__.py
|
eltoredo/ChatBot
|
11b7d4232c3c42f3a506150eca2b5d4a516eff71
|
[
"Apache-2.0"
] | null | null | null |
venv/lib/python3.6/site-packages/thinc/__init__.py
|
eltoredo/ChatBot
|
11b7d4232c3c42f3a506150eca2b5d4a516eff71
|
[
"Apache-2.0"
] | null | null | null |
from .about import *
import warnings
warnings.filterwarnings("ignore", message="encoding is deprecated")
warnings.filterwarnings("ignore", message="encoding is deprecated")
| 25
| 67
| 0.794286
| 19
| 175
| 7.315789
| 0.526316
| 0.316547
| 0.402878
| 0.503597
| 0.791367
| 0.791367
| 0.791367
| 0
| 0
| 0
| 0
| 0
| 0.091429
| 175
| 6
| 68
| 29.166667
| 0.874214
| 0
| 0
| 0.5
| 0
| 0
| 0.323699
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 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
| 0
| 0
|
0
| 9
|
7150c333c132863d234e32fa99d1bb35c9cb1afa
| 3,861
|
py
|
Python
|
mpes/src/parser_indenity_nov_dez_2019.py
|
danielfireman-ifal/coletores
|
7bb3237ceb6376a536cde3435ded62ea6b9a4502
|
[
"MIT"
] | 18
|
2019-10-30T01:18:40.000Z
|
2022-03-15T11:52:45.000Z
|
mpes/src/parser_indenity_nov_dez_2019.py
|
danielfireman-ifal/coletores
|
7bb3237ceb6376a536cde3435ded62ea6b9a4502
|
[
"MIT"
] | 174
|
2019-11-01T18:57:16.000Z
|
2021-09-18T02:35:27.000Z
|
mpes/src/parser_indenity_nov_dez_2019.py
|
danielfireman-ifal/coletores
|
7bb3237ceb6376a536cde3435ded62ea6b9a4502
|
[
"MIT"
] | 9
|
2020-01-16T16:33:46.000Z
|
2022-01-13T07:39:00.000Z
|
import parser
# Strange way to check nan. Only I managed to make work
# Source: https://stackoverflow.com/a/944712/5822594
def isNaN(string):
return string != string
def employees_idemnity_nov19(file_path, employees):
data = parser.read(file_path)
#Ajustando dataframe para simplificar interação
data = data[data['Unnamed: 4'].notna()]
data = data[data['Ministério Público do Estado do Espírito Santo'].notna()]
data = data[1:]
parser.clean_currency(data, 4,7)
#Parsing Data
rows = data.to_numpy()
for row in rows:
reg = str(row[0]) # Matrícula
aux_ali = row[4] #CARTÃO ALIMENTAÇÃO
ferias_indenizadas = row[5]
ferias_premio = row[6]
aux_saude = row[7] #AUXÍLIO SAÚDE
plantao = row[8] #Plantao
#Há funcionários não listados na lista de remunerações mas listados na lista de indenizações
try:
emp = employees[reg]
exists = True
except:
exists = False
if exists :
emp = employees[reg]
emp['income'].update({
'total': round(emp['income']['total'] + plantao, 2),
})
emp['income']['perks'].update({
'total': round( aux_ali + aux_saude + ferias_indenizadas + ferias_premio, 2),
'vacation': round(ferias_indenizadas + ferias_premio, 2),
'food': round(aux_ali,2),
'health': round(aux_saude, 2),
})
emp['income']['other']['others'].update({
'Plantão': plantao,
})
emp['income']['other'].update({
'total': round( emp['income']['other']['total'] + plantao, 2),
'others_total': round( emp['income']['other']['others_total'] + plantao, 2),
})
employees[reg] = emp
return employees
def employees_idemnity_dez19(file_path, employees):
data = parser.read(file_path)
#Ajustando dataframe para simplificar interação
data = data[data['Unnamed: 4'].notna()]
data = data[data['Ministério Público do Estado do Espírito Santo'].notna()]
data = data[1:]
parser.clean_currency(data, 4,7)
#Parsing Data
rows = data.to_numpy()
for row in rows:
reg = str(row[0]) # Matrícula
aux_ali = row[4] #CARTÃO ALIMENTAÇÃO
ferias_indenizadas = row[5]
abono_ferias = row[6]
ferias_premio = row[7]
ajuda_de_custo = row[8]
aux_saude = row[9] #AUXÍLIO SAÚDE
plantao = row[10] #Plantao
if isNaN(plantao):
plantao = 0.0
#Há funcionários não listados na lista de remunerações mas listados na lista de indenizações
try:
emp = employees[reg]
exists = True
except:
exists = False
if exists :
emp = employees[reg]
emp['income'].update({
'total': round(emp['income']['total'] + plantao, 2),
})
emp['income']['perks'].update({
'total': round( aux_ali + aux_saude + ferias_indenizadas + ferias_premio + abono_ferias + ajuda_de_custo, 2),
'vacation': round(ferias_indenizadas + ferias_premio + abono_ferias, 2),
'food': round(aux_ali,2),
'health': round(aux_saude, 2),
'subsistence': ajuda_de_custo
})
emp['income']['other']['others'].update({
'Plantão': plantao,
})
emp['income']['other'].update({
'total': round( emp['income']['other']['total'] + plantao, 2),
'others_total': round( emp['income']['other']['others_total'] + plantao, 2),
})
employees[reg] = emp
return employees
| 33
| 125
| 0.544419
| 424
| 3,861
| 4.841981
| 0.254717
| 0.061374
| 0.054554
| 0.055528
| 0.813444
| 0.813444
| 0.802728
| 0.760838
| 0.760838
| 0.760838
| 0
| 0.021613
| 0.32893
| 3,861
| 117
| 126
| 33
| 0.770745
| 0.128982
| 0
| 0.767442
| 0
| 0
| 0.124589
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034884
| false
| 0
| 0.011628
| 0.011628
| 0.081395
| 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
|
7191692a86387186070202e2004dece07fa871b5
| 2,053
|
py
|
Python
|
Sindri/MixtureRules/MixtureRulesInterface.py
|
mrcsbrn/TCC_software
|
17a5335aed17d4740c3bbd0ef828b0fc5dcea1da
|
[
"MIT"
] | 11
|
2019-10-17T02:01:51.000Z
|
2022-03-17T17:39:34.000Z
|
Sindri/MixtureRules/MixtureRulesInterface.py
|
mrcsbrn/TCC_software
|
17a5335aed17d4740c3bbd0ef828b0fc5dcea1da
|
[
"MIT"
] | 2
|
2019-07-25T22:16:16.000Z
|
2020-03-28T01:59:59.000Z
|
Sindri/MixtureRules/MixtureRulesInterface.py
|
mrcsbrn/TCC_software
|
17a5335aed17d4740c3bbd0ef828b0fc5dcea1da
|
[
"MIT"
] | 5
|
2019-07-15T18:19:36.000Z
|
2021-12-24T08:06:24.000Z
|
import abc
from EOSParametersBehavior.ParametersBehaviorInterface import BiBehavior, ThetaiBehavior
class MixtureRuleBehavior:
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def bm(self, y, T: float, bib: BiBehavior, substances) -> float:
pass
@abc.abstractmethod
def diffBm(self, i: int, y, T: float, bib: BiBehavior, substances) -> float:
pass
@abc.abstractmethod
def thetam(self, y, T: float, thetaib: ThetaiBehavior, substances, k) -> float:
pass
@abc.abstractmethod
def diffThetam(
self, i: int, y, T: float, thetaib: ThetaiBehavior, substances, k
) -> float:
pass
class BMixtureRuleBehavior:
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def bm(self, y, T: float, bib: BiBehavior, substances) -> float:
pass
@abc.abstractmethod
def diffBm(self, i: int, y, T: float, bib: BiBehavior, substances) -> float:
pass
class ThetaMixtureRuleBehavior:
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def thetam(self, y, T: float, thetaib: ThetaiBehavior, substances, k) -> float:
pass
@abc.abstractmethod
def diffThetam(
self, i: int, y, T: float, thetaib: ThetaiBehavior, substances, k
) -> float:
pass
class DeltaMixtureRuleBehavior:
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def deltam(
self, y, T: float, bib: BiBehavior, bmb: MixtureRuleBehavior, substances
) -> float:
pass
@abc.abstractmethod
def diffDeltam(
self, i: int, y, T: float, bib: BiBehavior, bmb: MixtureRuleBehavior, substances
) -> float:
pass
class EpsilonMixtureRuleBehavior:
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def epsilonm(
self, y, T: float, bib: BiBehavior, bmb: MixtureRuleBehavior, substances
) -> float:
pass
@abc.abstractmethod
def diffEpsilonm(
self, i: int, y, T: float, bib: BiBehavior, bmb: MixtureRuleBehavior, substances
) -> float:
pass
| 23.067416
| 88
| 0.648807
| 213
| 2,053
| 6.159624
| 0.173709
| 0.155488
| 0.182927
| 0.060976
| 0.80564
| 0.80564
| 0.731707
| 0.731707
| 0.731707
| 0.731707
| 0
| 0
| 0.255236
| 2,053
| 88
| 89
| 23.329545
| 0.858077
| 0
| 0
| 0.816667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.033333
| 0
| 0.4
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
719e8fea2c8b225341e44a80307df871e515eb21
| 105
|
py
|
Python
|
src/03/3.1_spn.py
|
fujiawei-dev/cryptography-note
|
5f4fe1d9139e6b68e4307dce66d3881b184368bd
|
[
"MIT"
] | 1
|
2022-01-31T03:30:33.000Z
|
2022-01-31T03:30:33.000Z
|
src/03/3.1_spn.py
|
fujiawei-dev/cryptography-notes
|
5f4fe1d9139e6b68e4307dce66d3881b184368bd
|
[
"MIT"
] | null | null | null |
src/03/3.1_spn.py
|
fujiawei-dev/cryptography-notes
|
5f4fe1d9139e6b68e4307dce66d3881b184368bd
|
[
"MIT"
] | null | null | null |
'''
Date: 2022.01.28 13:28
Description: Omit
LastEditors: Rustle Karl
LastEditTime: 2022.01.28 13:28
'''
| 15
| 30
| 0.72381
| 17
| 105
| 4.470588
| 0.647059
| 0.157895
| 0.210526
| 0.263158
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 0.26087
| 0.12381
| 105
| 6
| 31
| 17.5
| 0.565217
| 0.914286
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e085c7f78270a08feae6a029a1b2aa231d37e1af
| 9,598
|
py
|
Python
|
custom_embed.py
|
TechnoRoblox/CUSTOM-EMBED-COMMAND
|
9d734cd8cf1a1368d9d56ea2425fbdd07697bf7d
|
[
"MIT"
] | 1
|
2022-03-23T16:20:43.000Z
|
2022-03-23T16:20:43.000Z
|
custom_embed.py
|
TechnoRoblox/CUSTOM-EMBED-COMMAND
|
9d734cd8cf1a1368d9d56ea2425fbdd07697bf7d
|
[
"MIT"
] | null | null | null |
custom_embed.py
|
TechnoRoblox/CUSTOM-EMBED-COMMAND
|
9d734cd8cf1a1368d9d56ea2425fbdd07697bf7d
|
[
"MIT"
] | null | null | null |
@bot.command()
async def embed(ctx):
def check(m):
return m.author.id == ctx.author.id
await ctx.channel.send("**Are you sure in creating an embed ? (Yes/No)**")
val = await bot.wait_for('message', check=check)
if val.content == 'No':
await ctx.channel.send("**You really want to waste my time do you !!! 😑**")
elif val.content == 'Yes':
await ctx.channel.send("**What's the title of your custom embed ?**")
title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What's the icon_url of the above author ?**")
title_url = await bot.wait_for('message', check=check)
await ctx.channel.send("**What's the url of the image of the embed ?**")
image_url = await bot.wait_for('message', check=check)
await ctx.channel.send("**What's the url of the thumbnail of the embed ?**")
thumbnail_url = await bot.wait_for('message', check=check)
await ctx.channel.send("**What's the footer text of your custom embed ?**")
footer = await bot.wait_for('message', check=check)
await ctx.channel.send("**What's the icon_url of the above footer ?**")
footer_url = await bot.wait_for('message', check=check)
await ctx.channel.send('**How many field lines you want in your embed ?**')
field_no = await bot.wait_for('message', check=check)
if (field_no.content == '5') :
await ctx.channel.send("**What is the field_1 title ?**")
f1_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_1 description ?**")
f1_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 title ?**")
f2_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 description ?**")
f2_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_3 title ?**")
f3_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_3 description ?**")
f3_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_4 title ?**")
f4_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_4 description ?**")
f4_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_5 title ?**")
f5_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_5 description ?**")
f5_desc = await bot.wait_for('message', check=check)
embed = discord.Embed(colour=0xFFFFFF)
embed.set_author(name = title.content, icon_url = title_url.content)
embed.set_footer(text = footer.content, icon_url = footer_url.content)
embed.set_image(url = image_url.content)
embed.set_thumbnail(url = thumbnail_url.content)
embed.add_field(name = f1_title.content, value = f1_desc.content, inline = False)
embed.add_field(name = f2_title.content, value = f2_desc.content, inline = False)
embed.add_field(name = f3_title.content, value = f3_desc.content, inline = False)
embed.add_field(name = f4_title.content, value = f4_desc.content, inline = False)
embed.add_field(name = f5_title.content, value = f5_desc.content, inline = False)
await ctx.channel.purge(limit = 38)
await ctx.channel.send("**CREATING EMBED .... ⌛ **")
await asyncio.sleep(3)
await ctx.channel.send("**EMBED CREATED ✅ **")
await asyncio.sleep(1)
await ctx.channel.send(embed=embed)
elif (field_no.content == '4') :
await ctx.channel.send("**What is the field_1 title ?**")
f1_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_1 description ?**")
f1_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 title ?**")
f2_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 description ?**")
f2_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_3 title ?**")
f3_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_3 description ?**")
f3_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_4 title ?**")
f4_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_4 description ?**")
f4_desc = await bot.wait_for('message', check=check)
embed = discord.Embed(colour=0xFFFFFF)
embed.set_author(name = title.content, icon_url = title_url.content)
embed.set_footer(text = footer.content, icon_url = footer_url.content)
embed.set_image(url = image_url.content)
embed.set_thumbnail(url = thumbnail_url.content)
embed.add_field(name = f1_title.content, value = f1_desc.content, inline = False)
embed.add_field(name = f2_title.content, value = f2_desc.content, inline = False)
embed.add_field(name = f3_title.content, value = f3_desc.content, inline = False)
embed.add_field(name = f4_title.content, value = f4_desc.content, inline = False)
await ctx.channel.purge(limit = 34)
await ctx.channel.send("**CREATING EMBED .... ⌛ **")
await asyncio.sleep(3)
await ctx.channel.send("**EMBED CREATED ✅ **")
await asyncio.sleep(1)
await ctx.channel.send(embed=embed)
elif (field_no.content == '3') :
await ctx.channel.send("**What is the field_1 title ?**")
f1_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_1 description ?**")
f1_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 title ?**")
f2_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 description ?**")
f2_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_3 title ?**")
f3_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_3 description ?**")
f3_desc = await bot.wait_for('message', check=check)
embed = discord.Embed(colour=0xFFFFFF)
embed.set_author(name = title.content, icon_url = title_url.content)
embed.set_footer(text = footer.content, icon_url = footer_url.content)
embed.set_image(url = image_url.content)
embed.set_thumbnail(url = thumbnail_url.content)
embed.add_field(name = f1_title.content, value = f1_desc.content, inline = False)
embed.add_field(name = f2_title.content, value = f2_desc.content, inline = False)
embed.add_field(name = f3_title.content, value = f3_desc.content, inline = False)
await ctx.channel.purge(limit = 30 )
await ctx.channel.send("**CREATING EMBED .... ⌛ **")
await asyncio.sleep(3)
await ctx.channel.send("**EMBED CREATED ✅ **")
await asyncio.sleep(1)
await ctx.channel.send(embed=embed)
elif (field_no.content == '2') :
await ctx.channel.send("**What is the field_1 title ?**")
f1_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_1 description ?**")
f1_desc = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 title ?**")
f2_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_2 description ?**")
f2_desc = await bot.wait_for('message', check=check)
embed = discord.Embed(colour=0xFFFFFF)
embed.set_author(name = title.content, icon_url = title_url.content)
embed.set_footer(text = footer.content, icon_url = footer_url.content)
embed.set_image(url = image_url.content)
embed.set_thumbnail(url = thumbnail_url.content)
embed.add_field(name = f1_title.content, value = f1_desc.content, inline = False)
embed.add_field(name = f2_title.content, value = f2_desc.content, inline = False)
await ctx.channel.purge(limit = 26)
await ctx.channel.send("**CREATING EMBED .... ⌛ **")
await asyncio.sleep(3)
await ctx.channel.send("**EMBED CREATED ✅ **")
await asyncio.sleep(1)
await ctx.channel.send(embed=embed)
elif (field_no.content == '1') :
await ctx.channel.send("**What is the field_1 title ?**")
f1_title = await bot.wait_for('message', check=check)
await ctx.channel.send("**What is the field_1 description ?**")
f1_desc = await bot.wait_for('message', check=check)
embed = discord.Embed(colour=0xFFFFFF)
embed.set_author(name = title.content, icon_url = title_url.content)
embed.set_footer(text = footer.content, icon_url = footer_url.content)
embed.set_image(url = image_url.content)
embed.set_thumbnail(url = thumbnail_url.content)
embed.add_field(name = f1_title.content, value = f1_desc.content, inline = False)
await ctx.channel.purge(limit = 22)
await ctx.channel.send("**CREATING EMBED .... ⌛ **")
await asyncio.sleep(3)
await ctx.channel.send("**EMBED CREATED ✅ **")
await asyncio.sleep(2)
await ctx.channel.send(embed=embed)
else:
await ctx.channel.send("**⚠️ ERROR , Make sure the no of fields dont exceed five or dont go in Negatives . Make sure you give an integral value for the question number of fields **")
else :
await ctx.channel.send("**The reply should be in Yes or No Dumbo !! 😶**")
| 49.220513
| 187
| 0.675557
| 1,426
| 9,598
| 4.413043
| 0.076438
| 0.077546
| 0.1454
| 0.169077
| 0.907834
| 0.899889
| 0.89528
| 0.89099
| 0.877483
| 0.854124
| 0
| 0.015304
| 0.183059
| 9,598
| 194
| 188
| 49.474227
| 0.785487
| 0
| 0
| 0.746914
| 0
| 0.006173
| 0.224839
| 0
| 0
| 0
| 0.004168
| 0
| 0
| 1
| 0.006173
| false
| 0
| 0
| 0.006173
| 0.012346
| 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
|
e0c3700c35bdcece5936d04dc833a94cabc1f7d5
| 28,101
|
py
|
Python
|
volatility/volatility/win32/crashdump.py
|
williamclot/MemoryVisualizer
|
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
|
[
"MIT"
] | 2
|
2018-07-16T13:30:40.000Z
|
2018-07-17T12:02:05.000Z
|
volatility/volatility/win32/crashdump.py
|
williamclot/MemoryVisualizer
|
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
|
[
"MIT"
] | null | null | null |
volatility/volatility/win32/crashdump.py
|
williamclot/MemoryVisualizer
|
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
|
[
"MIT"
] | null | null | null |
# Volatility
# Copyright (c) 2007-2013 Volatility Foundation
# Copyright (c) 2008 Brendan Dolan-Gavitt <bdolangavitt@wesleyan.edu>
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Volatility is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Volatility. If not, see <http://www.gnu.org/licenses/>.
#
"""
@author: AAron Walters and Brendan Dolan-Gavitt
@license: GNU General Public License 2.0
@contact: awalters@4tphi.net,bdolangavitt@wesleyan.edu
@organization: Volatility Foundation
Tool: This tool generates a crash dump from a image of ram
"""
#pylint: disable-msg=C0111
#from forensics.object import get_obj_offset
#from forensics.win32.info import find_psactiveprocesshead
#from forensics.win32.info import find_psloadedmodulelist
#from forensics.win32.info import find_mmpfndatabase
#from forensics.win32.info import find_kddebuggerdatablock
#from forensics.win32.info import find_systemtime
#from forensics.win32.info import find_suitemask
#from forensics.win32.tasks import process_list
#from forensics.win32.tasks import process_addr_space
#from forensics.win32.tasks import peb_number_processors
#from forensics.win32.tasks import process_peb
#from forensics.win32.tasks import *
dump_hdr = ""
# 0x00
dump_hdr += "\x50\x41\x47\x45\x44\x55\x4D\x50\x0F\x00\x00\x00\x28\x0A\x00\x00"
# 0x10
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x20
dump_hdr += "\x4C\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x30
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x41\x47\x45"
# 0x40
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x50
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x00\x41\x47\x45"
# 0x60
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x70
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x80
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x90
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0xa0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0xb0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0xc0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0xd0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0xe0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0xf0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x100
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x110
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x120
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x130
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x140
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x150
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x160
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x170
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x180
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x190
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x1a0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x1b0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x1c0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x1d0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x1e0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x1f0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x200
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x210
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x220
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x230
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x240
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x250
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x260
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x270
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x280
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x290
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x2a0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x2b0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x2c0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x2d0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x2e0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x2f0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x300
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x310
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x320
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x330
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x340
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x350
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x360
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x370
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x380
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x390
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x3a0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x3b0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x3c0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x3d0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x3e0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x3f0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x400
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x410
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x420
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x430
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x440
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x450
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x460
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x470
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x480
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x490
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x4a0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x4b0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x4c0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x4d0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x4e0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x4f0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x500
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x510
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x520
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x530
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x540
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x550
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x560
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x570
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x580
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x590
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x5a0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x5b0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x5c0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x5d0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x5e0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x41\x47\x45"
# 0x5f0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x600
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x610
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x620
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x630
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x640
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x650
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x660
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x670
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x680
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x690
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x6a0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x6b0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x6c0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x6d0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x6e0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x6F0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x700
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x710
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x720
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x730
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x740
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x750
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x760
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x770
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x780
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x790
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x7a0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x7b0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x7c0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x00\x41\x47\x45"
# 0x7d0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x7e0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x7f0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x800
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x810
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
# 0x820
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x830
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x840
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x850
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x860
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x870
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x880
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x890
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x8a0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x8b0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x8c0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x8d0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x8e0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x8f0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x900
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x910
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x920
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x930
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x940
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x950
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x960
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x970
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x980
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x990
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x9a0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x9b0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x9c0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x9d0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x9e0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0x9f0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA00
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA10
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA20
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA30
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA40
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA50
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA60
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA70
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA80
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xA90
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xAa0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xAb0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xAc0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xAd0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xAe0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xAf0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb00
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb10
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb20
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb30
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb40
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb50
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb60
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb70
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb80
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xb90
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xba0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xbb0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xbc0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xbd0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xbe0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xbf0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc00
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc10
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc20
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc30
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc40
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc50
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc60
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc70
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc80
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xc90
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xca0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xcb0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xcc0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xcd0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xce0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xcf0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd00
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd10
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd20
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd30
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd40
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd50
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd60
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd70
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd80
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xd90
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xda0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xdb0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xdc0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xdd0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xde0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xdf0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe00
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe10
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe20
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe30
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe40
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe50
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe60
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe70
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe80
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xe90
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xea0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xeb0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xec0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xed0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xee0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xef0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
#0xf00
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
#0xf10
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
#0xf20
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
#0xf30
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
#0xf40
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
#0xf50
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xf60
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xf70
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xf80
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x01\x00\x00\x00\x50\x41\x47\x45"
# 0xF90
dump_hdr += "\x50\x41\x47\x45\x01\x00\x00\x00\x10\x01\x00\x00\x00\x00\x00\x00"
# 0xFA0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x50\x41\x47\x45\x00\x41\x47\x45"
# 0xFB0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x00\x00\x00\x00\x00\x00\x00\x00"
# 0xFC0
dump_hdr += "\x00\x00\x00\x00\x00\x00\x00\x00\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xFD0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xFE0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
# 0xFF0
dump_hdr += "\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45\x50\x41\x47\x45"
num_of_runs = 0x00000001
base_page = 0x00000000
pae_enabled = 0x01
#def find_numberprocessors(addr_space, types):
#
# NumberOfProcessorsDict = dict()
# all_tasks = process_list(addr_space, types)
#
# for task in all_tasks:
#
# if not addr_space.is_valid_address(task):
# continue
#
# process_address_space = process_addr_space(addr_space, types, task, addr_space.base.fname)
# if process_address_space is None:
# continue
#
# peb = process_peb(addr_space, types, task)
#
# try:
# if not process_address_space.is_valid_address(peb):
# continue
# except:
# continue
#
# NumberOfProcessors = peb_number_processors(process_address_space, types, peb)
# if NumberOfProcessors in NumberOfProcessorsDict:
# NumberOfProcessorsDict[NumberOfProcessors] += 1
# else:
# NumberOfProcessorsDict[NumberOfProcessors] = 1
#
# MaxNumberOfProcessors = max([ (NumberOfProcessorsDict[x], x) for x in NumberOfProcessorsDict])[1]
#
# return MaxNumberOfProcessors
#
#def write_char_phys(value, member_list, hdr, types):
#
# (offset, _current_type) = get_obj_offset(types, member_list)
# new_hdr = hdr[:offset] + struct.pack('=B', value) + hdr[offset+1:]
# return new_hdr
#
#def write_long_phys(value, member_list, hdr, types):
#
# (offset, _current_type) = get_obj_offset(types, member_list)
# new_hdr = hdr[:offset] + struct.pack('=I', value) + hdr[offset+4:]
# return new_hdr
#
#def write_long_long_phys(value, member_list, hdr, types):
#
# (offset, _current_type) = get_obj_offset(types, member_list)
# new_hdr = hdr[:offset] + struct.pack('=Q', value) + hdr[offset+8:]
# return new_hdr
#
#def dd_to_crash(addr_space, types, _symbol_table, opts):
#
# outfile = opts.outfile
# filename = opts.filename
#
# DirectoryTableBaseValue = addr_space.pgd_vaddr
#
# PsActiveProcessHead = find_psactiveprocesshead(addr_space, types)
#
# PsLoadedModuleList = find_psloadedmodulelist(addr_space, types)
#
# MmPfnDatabase = find_mmpfndatabase(addr_space, types)
#
# KdDebuggerDataBlock = find_kddebuggerdatablock(addr_space, types)
#
# NumberOfProcessors = find_numberprocessors(addr_space, types)
#
# SuiteMask = find_suitemask(addr_space, types)
#
# SystemTime = find_systemtime(addr_space, types)
#
# num_pages = os.path.getsize(filename)/4096
#
# new_hdr = write_long_phys(DirectoryTableBaseValue, ['_DMP_HEADER', 'DirectoryTableBase'], dump_hdr, types)
# new_hdr = write_long_phys(PsLoadedModuleList, ['_DMP_HEADER', 'PsLoadedModuleList'], new_hdr, types)
# new_hdr = write_long_phys(PsActiveProcessHead, ['_DMP_HEADER', 'PsActiveProcessHead'], new_hdr, types)
# new_hdr = write_long_phys(KdDebuggerDataBlock, ['_DMP_HEADER', 'KdDebuggerDataBlock'], new_hdr, types)
# new_hdr = write_long_phys(NumberOfProcessors, ['_DMP_HEADER', 'NumberProcessors'], new_hdr, types)
# new_hdr = write_long_phys(MmPfnDatabase, ['_DMP_HEADER', 'PfnDataBase'], new_hdr, types)
# new_hdr = write_long_phys(SuiteMask, ['_DMP_HEADER', 'SuiteMask'], new_hdr, types)
# new_hdr = write_long_long_phys(SystemTime, ['_DMP_HEADER', 'SystemTime'], new_hdr, types)
#
# if addr_space.pae == True:
# new_hdr = write_char_phys(pae_enabled, ['_DMP_HEADER', 'PaeEnabled'], new_hdr, types)
#
# new_hdr = new_hdr[:100] + struct.pack('=I', num_of_runs) + \
# struct.pack('=I', num_pages) + \
# struct.pack('=I', 0x00000000) + \
# struct.pack('=I', num_pages) + \
# new_hdr[116:]
#
# MI = open(outfile, 'wb')
# MI.write("%s" % new_hdr)
#
# FILEOPEN = open(filename, 'rb')
#
# offset = 0
# end = os.path.getsize(filename)
#
# while offset <= end:
# fdata = FILEOPEN.read(0x1000)
# if fdata == None:
# break
# MI.write("%s"%fdata)
# # progress.update(offset)
# offset += 0x1000
#
# print
#
# FILEOPEN.close()
# MI.close()
#
# return
| 41.385862
| 111
| 0.700295
| 5,581
| 28,101
| 3.450815
| 0.085469
| 0.459837
| 0.64022
| 0.788826
| 0.786489
| 0.774755
| 0.752635
| 0.748014
| 0.73602
| 0.735864
| 0
| 0.35412
| 0.085228
| 28,101
| 678
| 112
| 41.446903
| 0.395083
| 0.248247
| 0
| 0.957692
| 0
| 0.984615
| 0.790924
| 0.790924
| 0
| 1
| 0.001159
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 15
|
1cca94e0b38ecdb35bd4d5d5d7c8ed1207e3b845
| 136,961
|
py
|
Python
|
ThirdParty/NCodeHook/distorm3/disOps/x86sets.py
|
q4a/fonline
|
269e53e9620a7bb75f7cf73eac71e5ea4e393e4c
|
[
"MIT"
] | 172
|
2018-10-31T13:47:10.000Z
|
2022-02-21T12:08:20.000Z
|
ThirdParty/NCodeHook/distorm3/disOps/x86sets.py
|
rotators/fonline
|
cd479200c424f220c9b84891621bba48c637df8a
|
[
"MIT"
] | 51
|
2018-11-01T12:46:25.000Z
|
2021-12-14T15:16:15.000Z
|
ThirdParty/NCodeHook/distorm3/disOps/x86sets.py
|
rotators/fonline
|
cd479200c424f220c9b84891621bba48c637df8a
|
[
"MIT"
] | 72
|
2018-10-31T13:50:02.000Z
|
2022-03-14T09:10:35.000Z
|
#
# x86sets.py
#
# Copyright (C) 2009 Gil Dabah, http://ragestorm.net/disops/
#
from x86header import *
OPT = OperandType
IFlag = InstFlag
class Instructions:
""" Initializes all instruction of the 80x86 CPU (includes AMD64). """
def init_INTEGER(self):
Set = lambda *args: self.SetCallback(ISetClass.INTEGER, *args)
# V 1.5.13 - Pushes can be affected by operand size prefix. Segment is encoded in flags.
# SAL is exactly like SHL, so I prefer to use the mnemonic "SHL" (below).
Set("00", ["ADD"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("01", ["ADD"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("02", ["ADD"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("03", ["ADD"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("04", ["ADD"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("05", ["ADD"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("06", ["PUSH"], [OPT.SEG], IFlag.PRE_ES | IFlag.INVALID_64BITS)
Set("07", ["POP"], [OPT.SEG], IFlag.PRE_ES | IFlag.INVALID_64BITS)
Set("08", ["OR"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("09", ["OR"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("0a", ["OR"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("0b", ["OR"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("0c", ["OR"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("0d", ["OR"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("0e", ["PUSH"], [OPT.SEG], IFlag.PRE_CS | IFlag.INVALID_64BITS)
Set("0f, 00 /00", ["SLDT"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("0f, 00 /01", ["STR"], [OPT.RM16], IFlag.MODRM_REQUIRED)
Set("0f, 00 /02", ["LLDT"], [OPT.RM16], IFlag.MODRM_REQUIRED)
Set("0f, 00 /03", ["LTR"], [OPT.RM16], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 00 /04", ["VERR"], [OPT.RM16], IFlag.MODRM_REQUIRED)
Set("0f, 00 /05", ["VERW"], [OPT.RM16], IFlag.MODRM_REQUIRED)
Set("0f, 01 //00", ["SGDT"], [OPT.MEM16_3264], IFlag.MODRM_REQUIRED | IFlag._64BITS)
Set("0f, 01 //01", ["SIDT"], [OPT.MEM16_3264], IFlag.MODRM_REQUIRED | IFlag._64BITS)
Set("0f, 01 //02", ["LGDT"], [OPT.MEM16_3264], IFlag.MODRM_REQUIRED | IFlag._64BITS)
Set("0f, 01 //03", ["LIDT"], [OPT.MEM16_3264], IFlag.MODRM_REQUIRED | IFlag._64BITS)
# These two instructions need the whole byte, means they use the whole third byte and are NOT divided.
# We'll recognize them by their 3 REG bits in their third byte.
Set("0f, 01 //04", ["SMSW"], [OPT.RFULL_M16], IFlag.MODRM_REQUIRED | IFlag.NOT_DIVIDED)
Set("0f, 01 //06", ["LMSW"], [OPT.RM16], IFlag.MODRM_REQUIRED | IFlag.NOT_DIVIDED)
Set("0f, 01 //07", ["INVLPG"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 01 //c8", ["MONITOR"], [], IFlag._32BITS)
Set("0f, 01 //c9", ["MWAIT"], [], IFlag._32BITS)
Set("0f, 01 //f8", ["SWAPGS"], [], IFlag._64BITS_FETCH)
Set("0f, 01 //f9", ["RDTSCP"], [], IFlag._64BITS_FETCH)
Set("0f, 02", ["LAR"], [OPT.REG_FULL, OPT.RM16], IFlag.MODRM_REQUIRED)
Set("0f, 03", ["LSL"], [OPT.REG_FULL, OPT.RM16], IFlag.MODRM_REQUIRED)
Set("0f, 06", ["CLTS"], [], IFlag._32BITS)
Set("0f, 08", ["INVD"], [], IFlag._32BITS)
Set("0f, 09", ["WBINVD"], [], IFlag._32BITS)
Set("0f, 0b", ["UD2"], [], IFlag._32BITS)
# MOV: In 64 bits decoding mode REG is 64 bits by default.
Set("0f, 20", ["MOV"], [OPT.FREG32_64_RM, OPT.CREG], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("0f, 21", ["MOV"], [OPT.FREG32_64_RM, OPT.DREG], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("0f, 22", ["MOV"], [OPT.CREG, OPT.FREG32_64_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("0f, 23", ["MOV"], [OPT.DREG, OPT.FREG32_64_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("0f, 30", ["WRMSR"], [], IFlag._32BITS)
Set("0f, 31", ["RDTSC"], [], IFlag._32BITS)
Set("0f, 32", ["RDMSR"], [], IFlag._32BITS)
Set("0f, 33", ["RDPMC"], [], IFlag._32BITS)
Set("0f, 80", ["JO"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 81", ["JNO"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 82", ["JB"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 83", ["JAE"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 84", ["JZ"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 85", ["JNZ"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 86", ["JBE"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 87", ["JA"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 88", ["JS"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 89", ["JNS"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 8a", ["JP"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 8b", ["JNP"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 8c", ["JL"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 8d", ["JGE"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 8e", ["JLE"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 8f", ["JG"], [OPT.RELC_FULL], IFlag._32BITS)
Set("0f, 90", ["SETO"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 91", ["SETNO"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 92", ["SETB"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 93", ["SETAE"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 94", ["SETZ"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 95", ["SETNZ"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 96", ["SETBE"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 97", ["SETA"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 98", ["SETS"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 99", ["SETNS"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 9a", ["SETP"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 9b", ["SETNP"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 9c", ["SETL"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 9d", ["SETGE"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 9e", ["SETLE"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 9f", ["SETG"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, a0", ["PUSH"], [OPT.SEG], IFlag._32BITS | IFlag.PRE_FS | IFlag._64BITS)
Set("0f, a1", ["POP"], [OPT.SEG], IFlag._32BITS | IFlag.PRE_FS | IFlag._64BITS)
Set("0f, a2", ["CPUID"], [], IFlag._32BITS)
Set("0f, a3", ["BT"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, a4", ["SHLD"], [OPT.RM_FULL, OPT.REG_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, a5", ["SHLD"], [OPT.RM_FULL, OPT.REG_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, a8", ["PUSH"], [OPT.SEG], IFlag._32BITS | IFlag.PRE_GS | IFlag._64BITS)
Set("0f, a9", ["POP"], [OPT.SEG], IFlag._32BITS | IFlag.PRE_GS | IFlag._64BITS)
Set("0f, aa", ["RSM"], [], IFlag._32BITS)
Set("0f, ab", ["BTS"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, ac", ["SHRD"], [OPT.RM_FULL, OPT.REG_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ad", ["SHRD"], [OPT.RM_FULL, OPT.REG_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ae /00", ["FXSAVE", "", "FXSAVE64"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("0f, ae /01", ["FXRSTOR", "", "FXRSTOR64"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("0f, ae /02", ["LDMXCSR"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ae /03", ["STMXCSR"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# MFENCE and XSAVEOPT share the same opcode 0f ae /6. It's MFENCE when MOD=11, else XSAVEOPT or XSAVEOPT64 in 64.
Set("0f, ae /06", ["MFENCE", "XSAVEOPT", "XSAVEOPT64"], [OPT.MEM_OPT], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.MNEMONIC_MODRM_BASED | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
# SFENCE and CLFLUSH share the same opcode 0f ae /7. It's SFENCE when MOD=11, else CLFLUSH.
# But the operand is used only for CLFLUSH, which means it's optional. MOD=11 for first mnemonic.
Set("0f, ae /07", ["SFENCE", "CLFLUSH"], [OPT.MEM_OPT], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.MNEMONIC_MODRM_BASED)
# Same for LFENCE and XRSTOR with 0f ae /5.
Set("0f, ae /05", ["LFENCE", "XRSTOR", "XRSTOR64"], [OPT.MEM_OPT], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.MNEMONIC_MODRM_BASED | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("0f, af", ["IMUL"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, b0", ["CMPXCHG"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, b1", ["CMPXCHG"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, b2", ["LSS"], [OPT.REG_FULL, OPT.MEM16_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("0f, b3", ["BTR"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, b4", ["LFS"], [OPT.REG_FULL, OPT.MEM16_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("0f, b5", ["LGS"], [OPT.REG_FULL, OPT.MEM16_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("0f, b6", ["MOVZX"], [OPT.REG_FULL, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, b7", ["MOVZX"], [OPT.REG_FULL, OPT.RM16], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("0f, b9", ["UD2"], [], IFlag._32BITS)
Set("0f, ba /04", ["BT"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ba /05", ["BTS"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, ba /06", ["BTR"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, ba /07", ["BTC"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, bb", ["BTC"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, bc", ["BSF"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, bd", ["BSR"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# V 1.1.6 MOVSX/MOVZX now support 16bits regs.
Set("0f, be", ["MOVSX"], [OPT.REG_FULL, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, bf", ["MOVSX"], [OPT.REG_FULL, OPT.RM16], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("0f, c0", ["XADD"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, c1", ["XADD"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("0f, c7 /01", ["CMPXCHG8B", "", "CMPXCHG16B"], [OPT.MEM64_128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("0f, c8", ["BSWAP"], [OPT.IB_R_FULL], IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.GEN_BLOCK)
Set("10", ["ADC"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("11", ["ADC"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("12", ["ADC"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("13", ["ADC"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("14", ["ADC"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("15", ["ADC"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("16", ["PUSH"], [OPT.SEG], IFlag.PRE_SS | IFlag.INVALID_64BITS)
Set("17", ["POP"], [OPT.SEG], IFlag.PRE_SS | IFlag.INVALID_64BITS)
Set("18", ["SBB"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("19", ["SBB"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("1a", ["SBB"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("1b", ["SBB"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("1c", ["SBB"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("1d", ["SBB"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("1e", ["PUSH"], [OPT.SEG], IFlag.PRE_DS | IFlag.INVALID_64BITS)
Set("1f", ["POP"], [OPT.SEG], IFlag.PRE_DS | IFlag.INVALID_64BITS)
Set("20", ["AND"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("21", ["AND"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("22", ["AND"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("23", ["AND"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("24", ["AND"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("25", ["AND"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("27", ["DAA"], [], IFlag.INVALID_64BITS)
Set("28", ["SUB"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("29", ["SUB"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("2a", ["SUB"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("2b", ["SUB"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("2c", ["SUB"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("2d", ["SUB"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("2f", ["DAS"], [], IFlag.INVALID_64BITS)
Set("30", ["XOR"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("31", ["XOR"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("32", ["XOR"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("33", ["XOR"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("34", ["XOR"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("35", ["XOR"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("37", ["AAA"], [], IFlag.INVALID_64BITS)
Set("38", ["CMP"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED)
Set("39", ["CMP"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED)
Set("3a", ["CMP"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED)
Set("3b", ["CMP"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("3c", ["CMP"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("3d", ["CMP"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("3f", ["AAS"], [], IFlag.INVALID_64BITS)
Set("40", ["INC"], [OPT.IB_R_FULL], IFlag.INVALID_64BITS | IFlag.GEN_BLOCK)
Set("48", ["DEC"], [OPT.IB_R_FULL], IFlag.INVALID_64BITS | IFlag.GEN_BLOCK)
Set("50", ["PUSH"], [OPT.IB_R_FULL], IFlag._64BITS | IFlag.GEN_BLOCK)
Set("58", ["POP"], [OPT.IB_R_FULL], IFlag._64BITS | IFlag.GEN_BLOCK)
Set("60", ["PUSHA"], [], IFlag.NATIVE | IFlag.INVALID_64BITS)
Set("61", ["POPA"], [], IFlag.NATIVE | IFlag.INVALID_64BITS)
Set("62", ["BOUND"], [OPT.REG_FULL, OPT.MEM], IFlag.MODRM_REQUIRED | IFlag.INVALID_64BITS)
Set("68", ["PUSH"], [OPT.IMM_FULL], IFlag._64BITS)
Set("69", ["IMUL"], [OPT.REG_FULL, OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED)
Set("6a", ["PUSH"], [OPT.SEIMM8], IFlag.PRE_OP_SIZE | IFlag._64BITS)
Set("6b", ["IMUL"], [OPT.REG_FULL, OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED)
# V 1.5.14 - String instructions aren't supposed to be promoted automatically in 64bits, only with a REX prefix.
# In 64 bits INS/OUTS still supports only 8/16/32 bits.
Set("6c", ["INS"], [OPT.REGI_EDI, OPT.REGDX], IFlag.PRE_REPNZ | IFlag.PRE_REP) # 8 bit.
Set("6d", ["INS"], [OPT.REGI_EDI, OPT.REGDX], IFlag._16BITS | IFlag.PRE_REPNZ | IFlag.PRE_REP) # Full size.
Set("6e", ["OUTS"], [OPT.REGDX, OPT.REGI_ESI], IFlag.PRE_REPNZ | IFlag.PRE_REP) # 8 bit.
Set("6f", ["OUTS"], [OPT.REGDX, OPT.REGI_ESI], IFlag._16BITS | IFlag.PRE_REPNZ | IFlag.PRE_REP) # Full size.
Set("70", ["JO"], [OPT.RELCB], IFlag._64BITS)
Set("71", ["JNO"], [OPT.RELCB], IFlag._64BITS)
Set("72", ["JB"], [OPT.RELCB], IFlag._64BITS)
Set("73", ["JAE"], [OPT.RELCB], IFlag._64BITS)
Set("74", ["JZ"], [OPT.RELCB], IFlag._64BITS)
Set("75", ["JNZ"], [OPT.RELCB], IFlag._64BITS)
Set("76", ["JBE"], [OPT.RELCB], IFlag._64BITS)
Set("77", ["JA"], [OPT.RELCB], IFlag._64BITS)
Set("78", ["JS"], [OPT.RELCB], IFlag._64BITS)
Set("79", ["JNS"], [OPT.RELCB], IFlag._64BITS)
Set("7a", ["JP"], [OPT.RELCB], IFlag._64BITS)
Set("7b", ["JNP"], [OPT.RELCB], IFlag._64BITS)
Set("7c", ["JL"], [OPT.RELCB], IFlag._64BITS)
Set("7d", ["JGE"], [OPT.RELCB], IFlag._64BITS)
Set("7e", ["JLE"], [OPT.RELCB], IFlag._64BITS)
Set("7f", ["JG"], [OPT.RELCB], IFlag._64BITS)
Set("80 /00", ["ADD"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("80 /01", ["OR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("80 /02", ["ADC"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("80 /03", ["SBB"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("80 /04", ["AND"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("80 /05", ["SUB"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("80 /06", ["XOR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("80 /07", ["CMP"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("81 /00", ["ADD"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("81 /01", ["OR"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("81 /02", ["ADC"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("81 /03", ["SBB"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("81 /04", ["AND"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("81 /05", ["SUB"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("81 /06", ["XOR"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("81 /07", ["CMP"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED)
Set("82 /00", ["ADD"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK | IFlag.INVALID_64BITS)
Set("82 /01", ["OR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK | IFlag.INVALID_64BITS)
Set("82 /02", ["ADC"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK | IFlag.INVALID_64BITS)
Set("82 /03", ["SBB"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK | IFlag.INVALID_64BITS)
Set("82 /04", ["AND"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK | IFlag.INVALID_64BITS)
Set("82 /05", ["SUB"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK | IFlag.INVALID_64BITS)
Set("82 /06", ["XOR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK | IFlag.INVALID_64BITS)
Set("82 /07", ["CMP"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag.INVALID_64BITS)
Set("83 /00", ["ADD"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("83 /01", ["OR"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("83 /02", ["ADC"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("83 /03", ["SBB"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("83 /04", ["AND"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("83 /05", ["SUB"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("83 /06", ["XOR"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_LOCK)
Set("83 /07", ["CMP"], [OPT.RM_FULL, OPT.SEIMM8], IFlag.MODRM_REQUIRED)
Set("84", ["TEST"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED)
Set("85", ["TEST"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED)
Set("86", ["XCHG"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("87", ["XCHG"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("88", ["MOV"], [OPT.RM8, OPT.REG8], IFlag.MODRM_REQUIRED)
Set("89", ["MOV"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED)
Set("8a", ["MOV"], [OPT.REG8, OPT.RM8], IFlag.MODRM_REQUIRED)
Set("8b", ["MOV"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("8c", ["MOV"], [OPT.RFULL_M16, OPT.SREG], IFlag.MODRM_REQUIRED)
Set("8d", ["LEA"], [OPT.REG_FULL, OPT.MEM], IFlag.MODRM_REQUIRED)
Set("8e", ["MOV"], [OPT.SREG, OPT.RFULL_M16], IFlag.MODRM_REQUIRED)
Set("8f /00", ["POP"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._64BITS)
# V 1.7.28 - NOP in 64bits can be prefixed by REX -
# Therefore 0x90 in 16/32 bits is NOP. 0x90 with REX base is an XCHG. All else are NOP.
Set("90", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
# V 1.7.24 - New instruction multi-byte NOP.
Set("0f, 1f", ["NOP"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("91", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
Set("92", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
Set("93", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
Set("94", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
Set("95", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
Set("96", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
Set("97", ["XCHG"], [OPT.IB_R_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
Set("98", ["CBW", "CWDE", "CDQE"], [], IFlag.USE_EXMNEMONIC | IFlag.USE_EXMNEMONIC2)
Set("99", ["CWD", "CDQ", "CQO"], [], IFlag.USE_EXMNEMONIC | IFlag.USE_EXMNEMONIC2)
Set("9a", ["CALL FAR"], [OPT.PTR16_FULL], IFlag.INVALID_64BITS)
# V 1.4.a PUSHF/POPF are supposed to be promoted to 64 bits, without a REX.
Set("9c", ["PUSHF"], [], IFlag.NATIVE | IFlag._64BITS)
Set("9d", ["POPF"], [], IFlag.NATIVE | IFlag._64BITS)
Set("9e", ["SAHF"], [], IFlag.INST_FLAGS_NONE)
Set("9f", ["LAHF"], [], IFlag.INST_FLAGS_NONE)
# V 1.6.21 MOV MEM-OFFSET instructions are NOT automatically promoted to 64bits, only with a REX.
Set("a0", ["MOV"], [OPT.ACC8, OPT.MOFFS8], IFlag.INST_FLAGS_NONE)
Set("a1", ["MOV"], [OPT.ACC_FULL, OPT.MOFFS_FULL], IFlag.INST_FLAGS_NONE)
Set("a2", ["MOV"], [OPT.MOFFS8, OPT.ACC8], IFlag.INST_FLAGS_NONE)
Set("a3", ["MOV"], [OPT.MOFFS_FULL, OPT.ACC_FULL], IFlag.INST_FLAGS_NONE)
# movs es:di, ds:si*
# cmps ds:si*, es:di
# stos es:di, al
# scas es:di al
# lods al, ds:si*
Set("a4", ["MOVS"], [OPT.REGI_EDI, OPT.REGI_ESI], IFlag.PRE_REPNZ | IFlag.PRE_REP)
Set("a5", ["MOVS"], [OPT.REGI_EDI, OPT.REGI_ESI], IFlag._16BITS | IFlag.PRE_REPNZ | IFlag.PRE_REP | IFlag._64BITS | IFlag.PRE_REX)
Set("a6", ["CMPS"], [OPT.REGI_ESI, OPT.REGI_EDI], IFlag.PRE_REPNZ | IFlag.PRE_REP)
Set("a7", ["CMPS"], [OPT.REGI_ESI, OPT.REGI_EDI], IFlag._16BITS | IFlag.PRE_REPNZ | IFlag.PRE_REP | IFlag._64BITS | IFlag.PRE_REX)
Set("aa", ["STOS"], [OPT.REGI_EDI, OPT.ACC8], IFlag.PRE_REPNZ | IFlag.PRE_REP)
Set("ab", ["STOS"], [OPT.REGI_EDI, OPT.ACC_FULL], IFlag._16BITS | IFlag.PRE_REPNZ | IFlag.PRE_REP | IFlag._64BITS | IFlag.PRE_REX)
Set("ac", ["LODS"], [OPT.ACC8, OPT.REGI_ESI], IFlag.PRE_REPNZ | IFlag.PRE_REP)
Set("ad", ["LODS"], [OPT.ACC_FULL, OPT.REGI_ESI], IFlag._16BITS | IFlag.PRE_REPNZ | IFlag.PRE_REP | IFlag._64BITS | IFlag.PRE_REX)
Set("ae", ["SCAS"], [OPT.REGI_EDI, OPT.ACC8], IFlag.PRE_REPNZ | IFlag.PRE_REP)
Set("af", ["SCAS"], [OPT.REGI_EDI, OPT.ACC_FULL], IFlag._16BITS | IFlag.PRE_REPNZ | IFlag.PRE_REP | IFlag._64BITS | IFlag.PRE_REX)
Set("a8", ["TEST"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("a9", ["TEST"], [OPT.ACC_FULL, OPT.IMM_FULL], IFlag.INST_FLAGS_NONE)
Set("b0", ["MOV"], [OPT.IB_RB, OPT.IMM8], IFlag.GEN_BLOCK)
Set("b8", ["MOV"], [OPT.IB_R_FULL, OPT.IMM_FULL], IFlag._64BITS | IFlag.PRE_REX | IFlag.GEN_BLOCK)
Set("c0 /00", ["ROL"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c0 /01", ["ROR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c0 /02", ["RCL"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c0 /03", ["RCR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c0 /04", ["SHL"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c0 /05", ["SHR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c0 /06", ["SAL"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c0 /07", ["SAR"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /00", ["ROL"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /01", ["ROR"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /02", ["RCL"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /03", ["RCR"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /04", ["SHL"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /05", ["SHR"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /06", ["SAL"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c1 /07", ["SAR"], [OPT.RM_FULL, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c2", ["RET"], [OPT.IMM16], IFlag._64BITS)
Set("c3", ["RET"], [], IFlag._64BITS)
Set("c4", ["LES"], [OPT.REG_FULL, OPT.MEM16_FULL], IFlag.MODRM_REQUIRED | IFlag.INVALID_64BITS)
Set("c5", ["LDS"], [OPT.REG_FULL, OPT.MEM16_FULL], IFlag.MODRM_REQUIRED | IFlag.INVALID_64BITS)
Set("c6 /00", ["MOV"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("c7 /00", ["MOV"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED)
Set("c8", ["ENTER"], [OPT.IMM16_1, OPT.IMM8_2], IFlag._64BITS)
Set("c9", ["LEAVE"], [], IFlag._64BITS)
# V 1.1.6 RETF is NOT promoted automatically in 64bits. So with REX it should be RETFQ.
Set("ca", ["RETF"], [OPT.IMM16], IFlag.NATIVE | IFlag._64BITS | IFlag.PRE_REX)
Set("cb", ["RETF"], [], IFlag.NATIVE | IFlag._64BITS | IFlag.PRE_REX)
Set("cc", ["INT 3"], [], IFlag.INST_FLAGS_NONE)
Set("cd", ["INT"], [OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("ce", ["INTO"], [], IFlag.INVALID_64BITS)
Set("cf", ["IRET"], [], IFlag.NATIVE | IFlag._64BITS | IFlag.PRE_REX)
Set("d0 /00", ["ROL"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d0 /01", ["ROR"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d0 /02", ["RCL"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d0 /03", ["RCR"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d0 /04", ["SHL"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d0 /05", ["SHR"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d0 /06", ["SAL"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d0 /07", ["SAR"], [OPT.RM8, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /00", ["ROL"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /01", ["ROR"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /02", ["RCL"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /03", ["RCR"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /04", ["SHL"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /05", ["SHR"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /06", ["SAL"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d1 /07", ["SAR"], [OPT.RM_FULL, OPT.CONST1], IFlag.MODRM_REQUIRED)
Set("d2 /00", ["ROL"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d2 /01", ["ROR"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d2 /02", ["RCL"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d2 /03", ["RCR"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d2 /04", ["SHL"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d2 /05", ["SHR"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d2 /06", ["SAL"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d2 /07", ["SAR"], [OPT.RM8, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /00", ["ROL"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /01", ["ROR"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /02", ["RCL"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /03", ["RCR"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /04", ["SHL"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /05", ["SHR"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /06", ["SAL"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d3 /07", ["SAR"], [OPT.RM_FULL, OPT.REGCL], IFlag.MODRM_REQUIRED)
Set("d4", ["AAM"], [OPT.IMM8], IFlag.INVALID_64BITS)
Set("d5", ["AAD"], [OPT.IMM8], IFlag.INVALID_64BITS)
Set("d6", ["SALC"], [], IFlag.INVALID_64BITS)
# XLATB / XLAT BYTE PTR DS:[EBX + AL]
Set("d7", ["XLAT"], [OPT.REGI_EBXAL], IFlag.PRE_DS)
# LOOPxx are also affected by the ADDRESS-SIZE prefix!
# But they require a suffix letter indicating their size.
# LOOPxx are promoted to 64bits.
Set("e0", ["LOOPNZ"], [OPT.RELCB], IFlag.PRE_ADDR_SIZE | IFlag.NATIVE)
Set("e1", ["LOOPZ"], [OPT.RELCB], IFlag.PRE_ADDR_SIZE | IFlag.NATIVE)
Set("e2", ["LOOP"], [OPT.RELCB], IFlag.PRE_ADDR_SIZE | IFlag.NATIVE)
# JMP CX:
# This is a special instruction, because the ADDRESS-SIZE prefix affects its register size!!!
# INST_PRE_ADDR_SIZE isn't supposed to really be a flag of a static instruction, it's quite a hack to distinguish this instruction.
# J(r/e)CXZ are promoted to 64bits.
Set("e3", ["JCXZ", "JECXZ", "JRCXZ"], [OPT.RELCB], IFlag.PRE_ADDR_SIZE | IFlag.USE_EXMNEMONIC | IFlag.USE_EXMNEMONIC2)
Set("e4", ["IN"], [OPT.ACC8, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("e5", ["IN"], [OPT.ACC_FULL_NOT64, OPT.IMM8], IFlag.INST_FLAGS_NONE)
Set("e6", ["OUT"], [OPT.IMM8, OPT.ACC8], IFlag.INST_FLAGS_NONE)
Set("e7", ["OUT"], [OPT.IMM8, OPT.ACC_FULL_NOT64], IFlag.INST_FLAGS_NONE)
Set("e8", ["CALL"], [OPT.RELC_FULL], IFlag._64BITS)
Set("e9", ["JMP"], [OPT.RELC_FULL], IFlag._64BITS)
Set("ea", ["JMP FAR"], [OPT.PTR16_FULL], IFlag.INVALID_64BITS)
Set("eb", ["JMP"], [OPT.RELCB], IFlag._64BITS)
Set("ec", ["IN"], [OPT.ACC8, OPT.REGDX], IFlag.INST_FLAGS_NONE)
Set("ed", ["IN"], [OPT.ACC_FULL_NOT64, OPT.REGDX], IFlag.INST_FLAGS_NONE)
Set("ee", ["OUT"], [OPT.REGDX, OPT.ACC8], IFlag.INST_FLAGS_NONE)
Set("ef", ["OUT"], [OPT.REGDX, OPT.ACC_FULL_NOT64], IFlag.INST_FLAGS_NONE)
Set("f1", ["INT1"], [], IFlag.INST_FLAGS_NONE)
Set("f4", ["HLT"], [], IFlag.INST_FLAGS_NONE)
Set("f5", ["CMC"], [], IFlag.INST_FLAGS_NONE)
Set("f6 /00", ["TEST"], [OPT.RM8, OPT.IMM8], IFlag.MODRM_REQUIRED)
Set("f6 /02", ["NOT"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("f6 /03", ["NEG"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("f6 /04", ["MUL"], [OPT.RM8], IFlag.MODRM_REQUIRED)
Set("f6 /05", ["IMUL"], [OPT.RM8], IFlag.MODRM_REQUIRED)
Set("f6 /06", ["DIV"], [OPT.RM8], IFlag.MODRM_REQUIRED)
Set("f6 /07", ["IDIV"], [OPT.RM8], IFlag.MODRM_REQUIRED)
Set("f7 /00", ["TEST"], [OPT.RM_FULL, OPT.IMM_FULL], IFlag.MODRM_REQUIRED)
Set("f7 /02", ["NOT"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("f7 /03", ["NEG"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("f7 /04", ["MUL"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("f7 /05", ["IMUL"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("f7 /06", ["DIV"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("f7 /07", ["IDIV"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED)
Set("f8", ["CLC"], [], IFlag.INST_FLAGS_NONE)
Set("f9", ["STC"], [], IFlag.INST_FLAGS_NONE)
Set("fa", ["CLI"], [], IFlag.INST_FLAGS_NONE)
Set("fb", ["STI"], [], IFlag.INST_FLAGS_NONE)
Set("fc", ["CLD"], [], IFlag.INST_FLAGS_NONE)
Set("fd", ["STD"], [], IFlag.INST_FLAGS_NONE)
Set("fe /00", ["INC"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("fe /01", ["DEC"], [OPT.RM8], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("ff /00", ["INC"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("ff /01", ["DEC"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_LOCK)
Set("ff /02", ["CALL"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._64BITS)
Set("ff /03", ["CALL FAR"], [OPT.MEM16_FULL], IFlag.MODRM_REQUIRED | IFlag._64BITS | IFlag.PRE_REX)
Set("ff /04", ["JMP"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._64BITS)
Set("ff /05", ["JMP FAR"], [OPT.MEM16_FULL], IFlag.MODRM_REQUIRED | IFlag._64BITS | IFlag.PRE_REX)
Set("ff /06", ["PUSH"], [OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._64BITS)
# New instructions from AMD July 2007 (POPCNT is already defined in SSE4.2, MONITOR, MWAIT are already defined above):
# Note LZCNT can be prefixed by 0x66 although it has also a mandatory prefix!
Set("f3, 0f, bd", ["LZCNT"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_OP_SIZE)
Set("0f, 38, f0", ["MOVBE"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, f1", ["MOVBE"], [OPT.RM_FULL, OPT.REG_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# New instructions from Intel 2008:
Set("0f, 01, d0", ["XGETBV"], [], IFlag._32BITS)
Set("0f, 01, d1", ["XSETBV"], [], IFlag._32BITS)
Set("0f, ae /04", ["XSAVE", "", "XSAVE64"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
# XRSTOR is declared below (see LFENCE), cause it is shared with LFENCE.
# New instruction from Intel September 2009:
Set("0f, 37", ["GETSEC"], [], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# XSAVEOPT is declared below (see SFENCE).
def init_Exported(self):
""" Exported instruction are special instruction that create a collision in the DB.
Therefore they are exported directly so diStorm can use them manually in the
insts.c instruction look-up code.
Note that their opcodes are totally ignored here.
Also the path to the instruction in the trie has to be defined by any instruction with same opcode!
So for instance, NOP|PAUSE|XCHG -> XHG is really defined, the rest are exported.
Inside diStorm it will know which one to use. """
Set = lambda *args: self.SetCallback(ISetClass.INTEGER, *args)
# 63 /R
# 16/32: ARPL reg/mem16, reg16
# 64: MOVSXD OT_REG_FULL, OT_RM_FULL
# Damn processor, my DB won't support mixing of operands types.
# Define ARPL!
Set("63", ["ARPL"], [OPT.RM16, OPT.REG16], IFlag.MODRM_REQUIRED)
# MOVSXD:
# This is the worst defined instruction ever. It has so many variations.
# I decided after a third review, to make it like MOVSXD RAX, EAX when there IS a REX.W.
# Otherwise it will be MOVSXD EAX, EAX, which really zero extends to RAX.
# Completely ignoring DB 0x66, which is possible by the docs, BTW.
Set("63", ["MOVSXD"], [OPT.REG32_64, OPT.RM32], IFlag.MODRM_REQUIRED | IFlag._64BITS | IFlag.PRE_REX | IFlag.EXPORTED)
Set("90", ["NOP"], [], IFlag.EXPORTED)
# This instruction is supported directly in diStorm, since it's not a mandatory prefix really.
Set("f3, 90", ["PAUSE"], [], IFlag._32BITS | IFlag.EXPORTED)
# Wait instruction is needed, but it can be a prefix. See next page for more info.
Set("9b", ["WAIT"], [], IFlag.EXPORTED)
# VMPTRLD and RDRAND use same 2 first bytes and 06 as group (thus 2.3 bytes).
# When MOD is 3 it's the RDRAND instruction and for the rest it's VMPTRLD.
# The problem is that they have different operands, so a hack is required in the lookup instruction code.
# Plus remember that this opcode is prefixed (because of VMCLEAR) sometimes and therefore will be part of a prefixed table!
Set("0f, c7 /06", ["RDRAND"], [OPT.RM_FULL], IFlag._32BITS | IFlag.MODRM_INCLUDED | IFlag.MODRM_REQUIRED | IFlag._64BITS | IFlag.EXPORTED)
Set = lambda *args: self.SetCallback(ISetClass._3DNOW, *args)
# This is not really an instruction, but a gateway to all 3dnow instructions.
Set("0f, 0f", ["_3DNOW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._3DNOW_FETCH | IFlag.EXPORTED)
def init_FPU(self):
Set = lambda *args: self.SetCallback(ISetClass.FPU, *args)
# The WAIT instruction is tricky, it starts a 3 bytes instruction series.
# If you find a 3 bytes long instruction you are on your own.
# But the problem is that if you don't find a 3 bytes long instruction and the first byte that is going to be DB'ed
# is this 0x9b byte, which represents the WAIT instruction, thus you'll have to output it as a standalone instruction.
# Example:
# 9B DB E3 ~ FINIT
# 9B DB E4 ~ WAIT; DB 0xDB; ...
# Get the idea?
# It might be a part of a long instruction (3 bytes), else it just a simple one byte instruction by its own.
# This way is a simple rule which is broken easily when dealing with Trie DB, the whole point is that the byte says
# "read another byte" or "I'm your one", but here both happens.
# That's why I will have to hardcode the WAIT instruction in the decode function which DB'es unknown bytes.
# Set(0x9b, "WAIT") ....
# IFlag.PRE_OP_SIZE is set in order to tell the decoder that 0x9b can be part of the instruction.
# Because it's found in the prefixed table at the same entry of 0x66 for mandatory prefix.
Set("9b, d9 //06", ["FSTENV"], [OPT.MEM], IFlag.PRE_OP_SIZE | IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("9b, d9 //07", ["FSTCW"], [OPT.FPUM16], IFlag.PRE_OP_SIZE | IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("9b, db //e2", ["FCLEX"], [], IFlag.PRE_OP_SIZE | IFlag._32BITS)
Set("9b, db //e3", ["FINIT"], [], IFlag.PRE_OP_SIZE | IFlag._32BITS)
Set("9b, dd //06", ["FSAVE"], [OPT.MEM], IFlag.PRE_OP_SIZE | IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("9b, dd //07", ["FSTSW"], [OPT.FPUM16], IFlag.PRE_OP_SIZE | IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("9b, df //e0", ["FSTSW"], [OPT.ACC16], IFlag.PRE_OP_SIZE | IFlag._32BITS)
Set("d8 //00", ["FADD"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //01", ["FMUL"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //02", ["FCOM"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //03", ["FCOMP"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //04", ["FSUB"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //05", ["FSUBR"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //06", ["FDIV"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //07", ["FDIVR"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d8 //c0", ["FADD"], [OPT.FPU_SSI], IFlag.GEN_BLOCK)
Set("d8 //c8", ["FMUL"], [OPT.FPU_SSI], IFlag.GEN_BLOCK)
Set("d8 //d0", ["FCOM"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("d8 //d8", ["FCOMP"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("d8 //d9", ["FCOMP"], [], IFlag.INST_FLAGS_NONE)
Set("d8 //e0", ["FSUB"], [OPT.FPU_SSI], IFlag.GEN_BLOCK)
Set("d8 //e8", ["FSUBR"], [OPT.FPU_SSI], IFlag.GEN_BLOCK)
Set("d8 //f0", ["FDIV"], [OPT.FPU_SSI], IFlag.GEN_BLOCK)
Set("d8 //f8", ["FDIVR"], [OPT.FPU_SSI], IFlag.GEN_BLOCK)
Set("d9 //00", ["FLD"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d9 //02", ["FST"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d9 //03", ["FSTP"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("d9 //04", ["FLDENV"], [OPT.MEM], IFlag.MODRM_REQUIRED)
Set("d9 //05", ["FLDCW"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("d9 //06", ["FNSTENV"], [OPT.MEM], IFlag.MODRM_REQUIRED)
Set("d9 //07", ["FNSTCW"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("d9 //c0", ["FLD"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("d9 //c8", ["FXCH"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("d9 //c9", ["FXCH"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //d0", ["FNOP"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //e0", ["FCHS"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //e1", ["FABS"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //e4", ["FTST"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //e5", ["FXAM"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //e8", ["FLD1"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //e9", ["FLDL2T"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //ea", ["FLDL2E"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //eb", ["FLDPI"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //ec", ["FLDLG2"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //ed", ["FLDLN2"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //ee", ["FLDZ"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f0", ["F2XM1"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f1", ["FYL2X"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f2", ["FPTAN"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f3", ["FPATAN"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f4", ["FXTRACT"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f5", ["FPREM1"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f6", ["FDECSTP"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f7", ["FINCSTP"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f8", ["FPREM"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //f9", ["FYL2XP1"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //fa", ["FSQRT"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //fb", ["FSINCOS"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //fc", ["FRNDINT"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //fd", ["FSCALE"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //fe", ["FSIN"], [], IFlag.INST_FLAGS_NONE)
Set("d9 //ff", ["FCOS"], [], IFlag.INST_FLAGS_NONE)
Set("da //00", ["FIADD"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //01", ["FIMUL"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //02", ["FICOM"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //03", ["FICOMP"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //04", ["FISUB"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //05", ["FISUBR"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //06", ["FIDIV"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //07", ["FIDIVR"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("da //e9", ["FUCOMPP"], [], IFlag.INST_FLAGS_NONE)
Set("db //00", ["FILD"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("db //02", ["FIST"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("db //03", ["FISTP"], [OPT.FPUM32], IFlag.MODRM_REQUIRED)
Set("db //05", ["FLD"], [OPT.FPUM80], IFlag.MODRM_REQUIRED)
Set("db //07", ["FSTP"], [OPT.FPUM80], IFlag.MODRM_REQUIRED)
# Obsolete.
Set("db //e0", ["FENI"], [], IFlag.INST_FLAGS_NONE)
# Obsolete.
Set("db //e1", ["FEDISI"], [], IFlag.INST_FLAGS_NONE)
Set("db //e2", ["FNCLEX"], [], IFlag.INST_FLAGS_NONE)
Set("db //e3", ["FNINIT"], [], IFlag.INST_FLAGS_NONE)
# Obsolete.
Set("db //e4", ["FSETPM"], [], IFlag.INST_FLAGS_NONE)
Set("db //e8", ["FUCOMI"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("dc //00", ["FADD"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //01", ["FMUL"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //02", ["FCOM"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //03", ["FCOMP"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //04", ["FSUB"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //05", ["FSUBR"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //06", ["FDIV"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //07", ["FDIVR"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dc //c0", ["FADD"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("dc //c8", ["FMUL"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("dc //e0", ["FSUBR"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("dc //e8", ["FSUB"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("dc //f0", ["FDIVR"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("dc //f8", ["FDIV"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("dd //00", ["FLD"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dd //02", ["FST"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dd //03", ["FSTP"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("dd //04", ["FRSTOR"], [OPT.MEM], IFlag.MODRM_REQUIRED)
Set("dd //06", ["FNSAVE"], [OPT.MEM], IFlag.MODRM_REQUIRED)
Set("dd //07", ["FNSTSW"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("dd //c0", ["FFREE"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("dd //d0", ["FST"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("dd //d8", ["FSTP"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("dd //e0", ["FUCOM"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("dd //e1", ["FUCOM"], [], IFlag.INST_FLAGS_NONE)
Set("dd //e8", ["FUCOMP"], [OPT.FPU_SI], IFlag.GEN_BLOCK)
Set("dd //e9", ["FUCOMP"], [], IFlag.INST_FLAGS_NONE)
Set("de //00", ["FIADD"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //01", ["FIMUL"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //02", ["FICOM"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //03", ["FICOMP"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //04", ["FISUB"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //05", ["FISUBR"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //06", ["FIDIV"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //07", ["FIDIVR"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("de //c0", ["FADDP"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("de //c1", ["FADDP"], [], IFlag.INST_FLAGS_NONE)
Set("de //c8", ["FMULP"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("de //c9", ["FMULP"], [], IFlag.INST_FLAGS_NONE)
Set("de //d9", ["FCOMPP"], [], IFlag.INST_FLAGS_NONE)
Set("de //e0", ["FSUBRP"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("de //e1", ["FSUBRP"], [], IFlag.INST_FLAGS_NONE)
Set("de //e8", ["FSUBP"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("de //e9", ["FSUBP"], [], IFlag.INST_FLAGS_NONE)
Set("de //f0", ["FDIVRP"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("de //f1", ["FDIVRP"], [], IFlag.INST_FLAGS_NONE)
Set("de //f8", ["FDIVP"], [OPT.FPU_SIS], IFlag.GEN_BLOCK)
Set("de //f9", ["FDIVP"], [], IFlag.INST_FLAGS_NONE)
Set("df //00", ["FILD"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("df //02", ["FIST"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("df //03", ["FISTP"], [OPT.FPUM16], IFlag.MODRM_REQUIRED)
Set("df //04", ["FBLD"], [OPT.FPUM80], IFlag.MODRM_REQUIRED)
Set("df //05", ["FILD"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("df //06", ["FBSTP"], [OPT.FPUM80], IFlag.MODRM_REQUIRED)
Set("df //07", ["FISTP"], [OPT.FPUM64], IFlag.MODRM_REQUIRED)
Set("df //e0", ["FNSTSW"], [OPT.ACC16], IFlag.INST_FLAGS_NONE)
Set("df //e8", ["FUCOMIP"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("df //f0", ["FCOMIP"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
def init_P6(self):
Set = lambda *args: self.SetCallback(ISetClass.P6, *args)
Set("0f, 05", ["SYSCALL"], [], IFlag._32BITS)
Set("0f, 07", ["SYSRET"], [], IFlag._32BITS)
Set("0f, 34", ["SYSENTER"], [], IFlag._32BITS) # Only AMD states invalid in 64 bits.
Set("0f, 35", ["SYSEXIT"], [], IFlag._32BITS) # Only AMD states invalid in 64 bits.
Set("0f, 40", ["CMOVO"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 41", ["CMOVNO"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 42", ["CMOVB"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 43", ["CMOVAE"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 44", ["CMOVZ"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 45", ["CMOVNZ"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 46", ["CMOVBE"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 47", ["CMOVA"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 48", ["CMOVS"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 49", ["CMOVNS"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 4a", ["CMOVP"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 4b", ["CMOVNP"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 4c", ["CMOVL"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 4d", ["CMOVGE"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 4e", ["CMOVLE"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 4f", ["CMOVG"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("da //c0", ["FCMOVB"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("da //c8", ["FCMOVE"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("da //d0", ["FCMOVBE"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("da //d8", ["FCMOVU"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("db //c0", ["FCMOVNB"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("db //c8", ["FCMOVNE"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("db //d0", ["FCMOVNBE"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("db //d8", ["FCMOVNU"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
Set("db //f0", ["FCOMI"], [OPT.FPU_SSI], IFlag._32BITS | IFlag.GEN_BLOCK)
def init_MMX(self):
Set = lambda *args: self.SetCallback(ISetClass.MMX, *args)
# Pseudo Opcodes, the second mnemonic is concatenated to the first mnemonic.
Set("0f, 60", ["PUNPCKLBW"], [OPT.MM, OPT.MM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 61", ["PUNPCKLWD"], [OPT.MM, OPT.MM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 62", ["PUNPCKLDQ"], [OPT.MM, OPT.MM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 63", ["PACKSSWB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 64", ["PCMPGTB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 65", ["PCMPGTW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 66", ["PCMPGTD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 67", ["PACKUSWB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 68", ["PUNPCKHBW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 69", ["PUNPCKHWD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 6a", ["PUNPCKHDQ"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 6b", ["PACKSSDW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# V 1.6.22 MOVD/MOVQ are used for 32bits or 64bits correspondignly.
Set("0f, 6e", ["MOVD", "", "MOVQ"], [OPT.MM, OPT.RM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("0f, 6f", ["MOVQ"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 71 /02", ["PSRLW"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 71 /04", ["PSRAW"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 71 /06", ["PSLLW"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 72 /02", ["PSRLD"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 72 /04", ["PSRAD"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 72 /06", ["PSLLD"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 73 /02", ["PSRLQ"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 73 /06", ["PSLLQ"], [OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 74", ["PCMPEQB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 75", ["PCMPEQW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 76", ["PCMPEQD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 77", ["EMMS"], [], IFlag._32BITS)
# V 1.6.22 MOVD/MOVQ are used for 32bits or 64bits correspondignly.
Set("0f, 7e", ["MOVD", "", "MOVQ"], [OPT.RM32_64, OPT.MM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("0f, 7f", ["MOVQ"], [OPT.MM64, OPT.MM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, d1", ["PSRLW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, d2", ["PSRLD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, d3", ["PSRLQ"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, d5", ["PMULLW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, d8", ["PSUBUSB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, d9", ["PSUBUSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, db", ["PAND"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, dc", ["PADDUSB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, dd", ["PADDUSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, df", ["PANDN"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e1", ["PSRAW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e2", ["PSRAD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e5", ["PMULHW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e8", ["PSUBSB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e9", ["PSUBSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, eb", ["POR"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ec", ["PADDSB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ed", ["PADDSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ef", ["PXOR"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f1", ["PSLLW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f2", ["PSLLD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f3", ["PSLLQ"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f5", ["PMADDWD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f8", ["PSUBB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f9", ["PSUBW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, fa", ["PSUBD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, fc", ["PADDB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, fd", ["PADDW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, fe", ["PADDD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
def init_SSE(self):
Set = lambda *args: self.SetCallback(ISetClass.SSE, *args)
Set("0f, 10", ["MOVUPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 11", ["MOVUPS"], [OPT.XMM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# The problem with these instructions (MOVHLPS/MOVLHPS) is that both kinds need partialy the ModR/M byte.
# mod=11 for first mnemonic.
Set("0f, 12", ["MOVHLPS", "MOVLPS"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.MNEMONIC_MODRM_BASED)
Set("0f, 13", ["MOVLPS"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 14", ["UNPCKLPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 15", ["UNPCKHPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 16", ["MOVLHPS", "MOVHPS"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.MNEMONIC_MODRM_BASED)
Set("0f, 17", ["MOVHPS"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 18 /00", ["PREFETCHNTA"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 18 /01", ["PREFETCHT0"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 18 /02", ["PREFETCHT1"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 18 /03", ["PREFETCHT2"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 28", ["MOVAPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 29", ["MOVAPS"], [OPT.XMM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 2a", ["CVTPI2PS"], [OPT.XMM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 2b", ["MOVNTPS"], [OPT.MEM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 2c", ["CVTTPS2PI"], [OPT.MM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 2d", ["CVTPS2PI"], [OPT.MM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 2e", ["UCOMISS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 2f", ["COMISS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 50", ["MOVMSKPS"], [OPT.REG32, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, 51", ["SQRTPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 52", ["RSQRTPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 53", ["RCPPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 54", ["ANDPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 55", ["ANDNPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 56", ["ORPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 57", ["XORPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 58", ["ADDPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 59", ["MULPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 5c", ["SUBPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 5d", ["MINPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 5e", ["DIVPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 5f", ["MAXPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 70", ["PSHUFW"], [OPT.MM, OPT.MM64, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, c2", ["CMP", "PS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.PSEUDO_OPCODE)
Set("0f, c4", ["PINSRW"], [OPT.MM, OPT.R32_M16, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, c5", ["PEXTRW"], [OPT.REG32, OPT.MM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, c6", ["SHUFPS"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, d7", ["PMOVMSKB"], [OPT.REG32, OPT.MM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("0f, da", ["PMINUB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, de", ["PMAXUB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e0", ["PAVGB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e3", ["PAVGW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e4", ["PMULHUW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, e7", ["MOVNTQ"], [OPT.MEM64, OPT.MM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ea", ["PMINSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, ee", ["PMAXSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f6", ["PSADBW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f7", ["MASKMOVQ"], [OPT.MM, OPT.MM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("f3, 0f, 10", ["MOVSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 11", ["MOVSS"], [OPT.XMM32, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 2a", ["CVTSI2SS"], [OPT.XMM, OPT.RM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("f3, 0f, 2c", ["CVTTSS2SI"], [OPT.REG32_64, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("f3, 0f, 2d", ["CVTSS2SI"], [OPT.REG32_64, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("f3, 0f, 51", ["SQRTSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 52", ["RSQRTSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 53", ["RCPSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 58", ["ADDSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 59", ["MULSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 5c", ["SUBSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 5d", ["MINSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 5e", ["DIVSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 5f", ["MAXSS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, c2", ["CMP", "SS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.PSEUDO_OPCODE)
def init_SSE2(self):
Set = lambda *args: self.SetCallback(ISetClass.SSE2, *args)
Set("0f, 5a", ["CVTPS2PD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 5b", ["CVTDQ2PS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, c3", ["MOVNTI"], [OPT.MEM32_64, OPT.REG32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("0f, d4", ["PADDQ"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, f4", ["PMULUDQ"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, fb", ["PSUBQ"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 10", ["MOVUPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 11", ["MOVUPD"], [OPT.XMM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 12", ["MOVLPD"], [OPT.XMM, OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 13", ["MOVLPD"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 14", ["UNPCKLPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 15", ["UNPCKHPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 16", ["MOVHPD"], [OPT.XMM, OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 17", ["MOVHPD"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 28", ["MOVAPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 29", ["MOVAPD"], [OPT.XMM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 2a", ["CVTPI2PD"], [OPT.XMM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 2b", ["MOVNTPD"], [OPT.MEM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 2c", ["CVTTPD2PI"], [OPT.MM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 2d", ["CVTPD2PI"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 2e", ["UCOMISD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 2f", ["COMISD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 50", ["MOVMSKPD"], [OPT.REG32, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("66, 0f, 51", ["SQRTPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 54", ["ANDPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 55", ["ANDNPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 56", ["ORPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 57", ["XORPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 58", ["ADDPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 59", ["MULPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 5a", ["CVTPD2PS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 5b", ["CVTPS2DQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 5c", ["SUBPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 5d", ["MINPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 5e", ["DIVPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 5f", ["MAXPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 60", ["PUNPCKLBW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 61", ["PUNPCKLWD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 62", ["PUNPCKLDQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 63", ["PACKSSWB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 64", ["PCMPGTB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 65", ["PCMPGTW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 66", ["PCMPGTD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 67", ["PACKUSWB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 68", ["PUNPCKHBW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 69", ["PUNPCKHWD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 6a", ["PUNPCKHDQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 6b", ["PACKSSDW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 6c", ["PUNPCKLQDQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 6d", ["PUNPCKHQDQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# V 1.6.22 MOVD/MOVQ are used for 32bits or 64bits correspondignly.
Set("66, 0f, 6e", ["MOVD", "", "MOVQ"], [OPT.XMM, OPT.RM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("66, 0f, 6f", ["MOVDQA"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 70", ["PSHUFD"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 71 /02", ["PSRLW"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 71 /04", ["PSRAW"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 71 /06", ["PSLLW"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 72 /02", ["PSRLD"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 72 /04", ["PSRAD"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 72 /06", ["PSLLD"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 73 /02", ["PSRLQ"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 73 /03", ["PSRLDQ"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 73 /06", ["PSLLQ"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 73 /07", ["PSLLDQ"], [OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 74", ["PCMPEQB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 75", ["PCMPEQW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 76", ["PCMPEQD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# V 1.6.22 MOVD/MOVQ are used for 32bits or 64bits correspondignly.
Set("66, 0f, 7e", ["MOVD", "", "MOVQ"], [OPT.RM32_64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX | IFlag.USE_EXMNEMONIC2)
Set("66, 0f, 7f", ["MOVDQA"], [OPT.XMM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, c2", ["CMP", "PD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.PSEUDO_OPCODE)
Set("66, 0f, c4", ["PINSRW"], [OPT.XMM, OPT.R32_M16, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, c5", ["PEXTRW"], [OPT.REG32, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, c6", ["SHUFPD"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d1", ["PSRLW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d2", ["PSRLD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d3", ["PSRLQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d4", ["PADDQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d5", ["PMULLW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d6", ["MOVQ"], [OPT.XMM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d7", ["PMOVMSKB"], [OPT.REG32, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("66, 0f, d8", ["PSUBUSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d9", ["PSUBUSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, da", ["PMINUB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, db", ["PAND"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, dc", ["PADDUSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, dd", ["PADDUSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, de", ["PMAXUB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, df", ["PANDN"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e0", ["PAVGB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e1", ["PSRAW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e2", ["PSRAD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e3", ["PAVGW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e4", ["PMULHUW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e5", ["PMULHW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e6", ["CVTTPD2DQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e7", ["MOVNTDQ"], [OPT.MEM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e8", ["PSUBSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, e9", ["PSUBSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, ea", ["PMINSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, eb", ["POR"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, ec", ["PADDSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, ed", ["PADDSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, ee", ["PMAXSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, ef", ["PXOR"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f1", ["PSLLW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f2", ["PSLLD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f3", ["PSLLQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f4", ["PMULUDQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f5", ["PMADDWD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f6", ["PSADBW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f7", ["MASKMOVDQU"], [OPT.XMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("66, 0f, f8", ["PSUBB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, f9", ["PSUBW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, fa", ["PSUBD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, fb", ["PSUBQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, fc", ["PADDB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, fd", ["PADDW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, fe", ["PADDD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 10", ["MOVSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 11", ["MOVSD"], [OPT.XMM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 2a", ["CVTSI2SD"], [OPT.XMM, OPT.RM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("f2, 0f, 2c", ["CVTTSD2SI"], [OPT.REG32_64, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("f2, 0f, 2d", ["CVTSD2SI"], [OPT.REG32_64, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_REX)
Set("f2, 0f, 51", ["SQRTSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 58", ["ADDSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 59", ["MULSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 5a", ["CVTSD2SS"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 5c", ["SUBSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 5d", ["MINSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 5e", ["DIVSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 5f", ["MAXSD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 70", ["PSHUFLW"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, c2", ["CMP", "SD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC | IFlag.PSEUDO_OPCODE)
Set("f2, 0f, d6", ["MOVDQ2Q"], [OPT.MM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("f2, 0f, e6", ["CVTPD2DQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 5a", ["CVTSS2SD"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 5b", ["CVTTPS2DQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 6f", ["MOVDQU"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 70", ["PSHUFHW"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 7e", ["MOVQ"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 7f", ["MOVDQU"], [OPT.XMM128, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, d6", ["MOVQ2DQ"], [OPT.XMM, OPT.MM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.MODRR_REQUIRED)
Set("f3, 0f, e6", ["CVTDQ2PD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
def init_SSE3(self):
Set = lambda *args: self.SetCallback(ISetClass.SSE3, *args)
Set("66, 0f, 7c", ["HADDPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 7d", ["HSUBPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, d0", ["ADDSUBPD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("db //01", ["FISTTP"], [OPT.FPUM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("dd //01", ["FISTTP"], [OPT.FPUM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("df //01", ["FISTTP"], [OPT.FPUM16], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 12", ["MOVDDUP"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 12", ["MOVSLDUP"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 7c", ["HADDPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 7d", ["HSUBPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, d0", ["ADDSUBPS"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, f0", ["LDDQU"], [OPT.XMM, OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 16", ["MOVSHDUP"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
def init_SSSE3(self):
Set = lambda *args: self.SetCallback(ISetClass.SSSE3, *args)
Set("0f, 38, 00", ["PSHUFB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 01", ["PHADDW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 02", ["PHADDD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 03", ["PHADDSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 04", ["PMADDUBSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 05", ["PHSUBW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 06", ["PHSUBD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 07", ["PHSUBSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 08", ["PSIGNB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 09", ["PSIGNW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 0a", ["PSIGND"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 0b", ["PMULHRSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 1c", ["PABSB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 1d", ["PABSW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 38, 1e", ["PABSD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 3a, 0f", ["PALIGNR"], [OPT.MM, OPT.MM64, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 00", ["PSHUFB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 01", ["PHADDW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 02", ["PHADDD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 03", ["PHADDSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 04", ["PMADDUBSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 05", ["PHSUBW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 06", ["PHSUBD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 07", ["PHSUBSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 08", ["PSIGNB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 09", ["PSIGNW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 0a", ["PSIGND"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 0b", ["PMULHRSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 1c", ["PABSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 1d", ["PABSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 1e", ["PABSD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 0f", ["PALIGNR"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
def init_SSE4_1(self):
Set = lambda *args: self.SetCallback(ISetClass.SSE4_1, *args)
Set("66, 0f, 3a, 0d", ["BLENDPD"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 0c", ["BLENDPS"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 15", ["BLENDVPD"], [OPT.XMM, OPT.XMM128, OPT.REGXMM0], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 14", ["BLENDVPS"], [OPT.XMM, OPT.XMM128, OPT.REGXMM0], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 41", ["DPPD"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 40", ["DPPS"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 17", ["EXTRACTPS"], [OPT.RM32_64, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 21", ["INSERTPS"], [OPT.XMM, OPT.XMM32, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 2a", ["MOVNTDQA"], [OPT.XMM, OPT.MEM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 42", ["MPSADBW"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 2b", ["PACKUSDW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 10", ["PBLENDVB"], [OPT.XMM, OPT.XMM128, OPT.REGXMM0], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 0e", ["PBLENDW"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 29", ["PCMPEQQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 14", ["PEXTRB"], [OPT.R32_64_M8, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 16", ["PEXTRD", "", "PEXTRQ"], [OPT.RM32_64, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC2)
Set("66, 0f, 3a, 15", ["PEXTRW"], [OPT.R32_64_M16, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 41", ["PHMINPOSUW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 20", ["PINSRB"], [OPT.XMM, OPT.R32_M8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 22", ["PINSRD", "", "PINSRQ"], [OPT.XMM, OPT.RM32_64, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.USE_EXMNEMONIC2)
Set("66, 0f, 38, 3c", ["PMAXSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 3d", ["PMAXSD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 3f", ["PMAXUD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 3e", ["PMAXUW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 38", ["PMINSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 39", ["PMINSD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 3b", ["PMINUD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 3a", ["PMINUW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 20", ["PMOVSXBW"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 21", ["PMOVSXBD"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 22", ["PMOVSXBQ"], [OPT.XMM, OPT.XMM16], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 23", ["PMOVSXWD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 24", ["PMOVSXWQ"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 25", ["PMOVSXDQ"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 30", ["PMOVZXBW"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 31", ["PMOVZXBD"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 32", ["PMOVZXBQ"], [OPT.XMM, OPT.XMM16], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 33", ["PMOVZXWD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 34", ["PMOVZXWQ"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 35", ["PMOVZXDQ"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 28", ["PMULDQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 40", ["PMULLD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 09", ["ROUNDPD"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 08", ["ROUNDPS"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 0b", ["ROUNDSD"], [OPT.XMM, OPT.XMM64, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 0a", ["ROUNDSS"], [OPT.XMM, OPT.XMM32, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
def init_SSE4_2(self):
Set = lambda *args: self.SetCallback(ISetClass.SSE4_2, *args)
Set("f2, 0f, 38, f0", ["CRC32"], [OPT.REG32_64, OPT.RM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 38, f1", ["CRC32"], [OPT.REG32_64, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 17", ["PTEST"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 61", ["PCMPESTRI"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 60", ["PCMPESTRM"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 63", ["PCMPISTRI"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 3a, 62", ["PCMPISTRM"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 38, 37", ["PCMPGTQ"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# Note POPCNT can be prefixed by 0x66 although it has also a mandatory prefix!
Set("f3, 0f, b8", ["POPCNT"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_OP_SIZE)
def init_SSE4_A(self):
# New instructions from AMD July 2007
Set = lambda *args: self.SetCallback(ISetClass.SSE4_A, *args)
# DB can't support a table after Prefixed table (it will really complicate everything and doesn't worth it),
# therefore we will have to force a REG of 0 in the flags! Beats me. :(
#Set("66, 0f, 78 /00", ["EXTRQ"], [OPT.XMM_RM, OPT.IMM8_1, OPT.IMM8_2], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, 78", ["EXTRQ"], [OPT.XMM_RM, OPT.IMM8_1, OPT.IMM8_2], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.FORCE_REG0)
Set("66, 0f, 79", ["EXTRQ"], [OPT.XMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# Four operands(!) I want m'mommy
Set("f2, 0f, 78", ["INSERTQ"], [OPT.XMM, OPT.XMM_RM, OPT.IMM8_1, OPT.IMM8_2], IFlag.MODRM_REQUIRED | IFlag.MODRR_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 79", ["INSERTQ"], [OPT.XMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag.MODRR_REQUIRED | IFlag._32BITS)
Set("f2, 0f, 2b", ["MOVNTSD"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, 2b", ["MOVNTSS"], [OPT.MEM32, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
def init_3DNOW(self):
Set = lambda *args: self.SetCallback(ISetClass._3DNOW, *args)
Set("0f, 0d /00", ["PREFETCH"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 0d /01", ["PREFETCHW"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 0e", ["FEMMS"], [], IFlag.INST_FLAGS_NONE)
Set("0f, 0f, 0d", ["PI2FD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 1d", ["PF2ID"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 90", ["PFCMPGE"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 94", ["PFMIN"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 96", ["PFRCP"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 97", ["PFRSQRT"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 9a", ["PFSUB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 9e", ["PFADD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, a0", ["PFCMPGT"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, a4", ["PFMAX"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, a6", ["PFRCPIT1"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, a7", ["PFRSQIT1"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, aa", ["PFSUBR"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, ae", ["PFACC"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, b0", ["PFCMPEQ"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, b4", ["PFMUL"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, b6", ["PFRCPIT2"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, b7", ["PMULHRW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, bf", ["PAVGUSB"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
def init_3DNOWEXT(self):
Set = lambda *args: self.SetCallback(ISetClass._3DNOWEXT, *args)
Set("0f, 0f, 0c", ["PI2FW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 1c", ["PF2IW"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 8a", ["PFNACC"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, 8e", ["PFPNACC"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
Set("0f, 0f, bb", ["PSWAPD"], [OPT.MM, OPT.MM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._3DNOW_FETCH)
def init_VMX(self):
Set = lambda *args: self.SetCallback(ISetClass.VMX, *args)
Set("0f, 01 //c1", ["VMCALL"], [], IFlag._32BITS)
Set("0f, 01 //c2", ["VMLAUNCH"], [], IFlag._32BITS)
Set("0f, 01 //c3", ["VMRESUME"], [], IFlag._32BITS)
Set("0f, 01 //c4", ["VMXOFF"], [], IFlag._32BITS)
# In 64bits the operands are promoted to 64bits automatically.
Set("0f, 78", ["VMREAD"], [OPT.RM32_64, OPT.REG32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("0f, 79", ["VMWRITE"], [OPT.REG32_64, OPT.RM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
# VMPTRLD collides with RDRAND (see exported instructions).
Set("0f, c7 /06", ["VMPTRLD"], [OPT.MEM], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, c7 /07", ["VMPTRST"], [OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("66, 0f, c7 /06", ["VMCLEAR"], [OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("f3, 0f, c7 /06", ["VMXON"], [OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# New VMX instructions from Intel September 2009:
Set("66, 0f, 38, 80", ["INVEPT"], [OPT.REG32_64, OPT.MEM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("66, 0f, 38, 81", ["INVVPID"], [OPT.REG32_64, OPT.MEM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
# New instructions from Intel December 2011.
Set("0f, 01 //d4", ["VMFUNC"], [], IFlag._32BITS)
Set("66, 0f, 38, 82", ["INVPCID"], [OPT.REG32_64, OPT.MEM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
# Can be prefixed with 0x66, see LZCNT.
Set("f3, 0f, bc", ["TZCNT"], [OPT.REG_FULL, OPT.RM_FULL], IFlag.MODRM_REQUIRED | IFlag.PRE_OP_SIZE)
Set("f3, 0f, ae /0", ["RDFSBASE"], [OPT.REG32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("f3, 0f, ae /1", ["RDGSBASE"], [OPT.REG32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("f3, 0f, ae /2", ["WRFSBASE"], [OPT.REG32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
Set("f3, 0f, ae /3", ["WRGSBASE"], [OPT.REG32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS)
# SSE5.
Set("0f, 7a, 31", ["CVTPS2PH"], [OPT.XMM64, OPT.XMM], IFlag._32BITS, IFlag._64BITS)
Set("0f, 7a, 30", ["CVTPH2PS"], [OPT.XMM, OPT.XMM64], IFlag._32BITS, IFlag._64BITS)
def init_SVM(self):
Set = lambda *args: self.SetCallback(ISetClass.SVM, *args)
Set("0f, 01 //d8", ["VMRUN"], [OPT.REGI_EAX], IFlag.MODRM_REQUIRED | IFlag._32BITS)
Set("0f, 01 //d9", ["VMMCALL"], [], IFlag._32BITS)
Set("0f, 01 //da", ["VMLOAD"], [OPT.REGI_EAX], IFlag._32BITS)
Set("0f, 01 //db", ["VMSAVE"], [OPT.REGI_EAX], IFlag._32BITS)
Set("0f, 01 //dc", ["STGI"], [], IFlag._32BITS)
Set("0f, 01 //dd", ["CLGI"], [], IFlag._32BITS)
Set("0f, 01 //de", ["SKINIT"], [OPT.REGI_EAX], IFlag._32BITS)
Set("0f, 01 //df", ["INVLPGA"], [OPT.REGI_EAX, OPT.REGECX], IFlag._32BITS)
def init_AVX(self):
# Most SSE/SSE2/SSE3/SSSE3/SSE4 instructions have been promoted, and they are all part of the AVX category.
# It's easier to keep them separated, also because some of the promoted instructions have different number of operands, etc.
Set = lambda *args: self.SetCallback(ISetClass.AVX, *args)
SetAes = lambda *args: self.SetCallback(ISetClass.AES, *args)
SetClmul = lambda *args: self.SetCallback(ISetClass.CLMUL, *args)
Set("66, 0f, 58", ["VADDPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 58", ["VADDPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 58", ["VADDSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 58", ["VADDSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, d0", ["VADDSUBPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, d0", ["VADDSUBPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
SetAes("66, 0f, 38, dc", ["AESENC"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
SetAes("66, 0f, 38, dd", ["AESENCLAST"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
SetAes("66, 0f, 38, dc", ["VAESENC"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
SetAes("66, 0f, 38, dd", ["VAESENCLAST"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
SetAes("66, 0f, 38, de", ["AESDEC"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
SetAes("66, 0f, 38, df", ["AESDECLAST"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
SetAes("66, 0f, 38, de", ["VAESDEC"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
SetAes("66, 0f, 38, df", ["VAESDECLAST"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
SetAes("66, 0f, 38, db", ["AESIMC"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS)
SetAes("66, 0f, 38, db", ["VAESIMC"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
SetAes("66, 0f, 3a, df", ["AESKEYGENASSIST"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
SetAes("66, 0f, 3a, df", ["VAESKEYGENASSIST"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 54", ["VANDPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 54", ["VANDPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 55", ["VANDNPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 55", ["VANDNPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 0d", ["VBLENDPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 0c", ["VBLENDPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 4b", ["VBLENDVPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256, OPT.YXMM_IMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 4a", ["VBLENDVPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256, OPT.YXMM_IMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 18", ["VBROADCASTSS"], [OPT.YXMM, OPT.MEM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 19", ["VBROADCASTSD"], [OPT.YMM, OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.FORCE_VEXL)
Set("66, 0f, 38, 1a", ["VBROADCASTF128"], [OPT.YMM, OPT.MEM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.FORCE_VEXL)
Set("66, 0f, c2", ["VCMP", "PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L | IFlag.PSEUDO_OPCODE)
Set("0f, c2", ["VCMP", "PS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L | IFlag.PSEUDO_OPCODE)
Set("f2, 0f, c2", ["VCMP", "SD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.PSEUDO_OPCODE)
Set("f3, 0f, c2", ["VCMP", "SS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.PSEUDO_OPCODE)
Set("66, 0f, 2f", ["VCOMISD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, 2f", ["VCOMISS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, e6", ["VCVTDQ2PD"], [OPT.YXMM, OPT.LXMM64_128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 5b", ["VCVTDQ2PS"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, e6", ["VCVTPD2DQ"], [OPT.XMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 5a", ["VCVTPD2PS"], [OPT.XMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 5b", ["VCVTPS2DQ"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 5a", ["VCVTPS2PD"], [OPT.YXMM, OPT.LXMM64_128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 2d", ["VCVTSD2SI"], [OPT.WREG32_64, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W)
Set("f2, 0f, 5a", ["VCVTSD2SS"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f2, 0f, 2a", ["VCVTSI2SD"], [OPT.XMM, OPT.VXMM, OPT.WRM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W)
Set("f3, 0f, 2a", ["VCVTSI2SS"], [OPT.XMM, OPT.VXMM, OPT.WRM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W)
Set("f3, 0f, 5a", ["VCVTSS2SD"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 2d", ["VCVTSS2SI"], [OPT.WREG32_64, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W)
Set("66, 0f, e6", ["VCVTTPD2DQ"], [OPT.XMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f3, 0f, 5b", ["VCVTTPS2DQ"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 2c", ["VCVTTSD2SI"], [OPT.WREG32_64, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W)
Set("f3, 0f, 2c", ["VCVTTSS2SI"], [OPT.WREG32_64, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W)
Set("66, 0f, 5e", ["VDIVPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 5e", ["VDIVPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 5e", ["VDIVSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 5e", ["VDIVSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 41", ["VDPPD"], [OPT.XMM, OPT.VXMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 40", ["VDPPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 19", ["VEXTRACTF128"], [OPT.XMM128, OPT.YMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.FORCE_VEXL)
Set("66, 0f, 3a, 17", ["VEXTRACTPS"], [OPT.RM32, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 7c", ["VHADDPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 7c", ["VHADDPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 7d", ["VHSUBPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 7d", ["VHSUBPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 18", ["VINSERTF128"], [OPT.YMM, OPT.VYMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.FORCE_VEXL)
Set("66, 0f, 3a, 21", ["VINSERTPS"], [OPT.XMM, OPT.VXMM, OPT.XMM32, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f2, 0f, f0", ["VLDDQU"], [OPT.YXMM, OPT.LMEM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, ae /02", ["VLDMXCSR"], [OPT.MEM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, f7", ["VMASKMOVDQU"], [OPT.XMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag.MODRR_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 2c", ["VMASKMOVPS"], [OPT.YXMM, OPT.VYXMM, OPT.LMEM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 2d", ["VMASKMOVPD"], [OPT.YXMM, OPT.VYXMM, OPT.LMEM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 2e", ["VMASKMOVPS"], [OPT.LMEM128_256, OPT.VYXMM, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 2f", ["VMASKMOVPD"], [OPT.LMEM128_256, OPT.VYXMM, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 5f", ["VMAXPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 5f", ["VMAXPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 5f", ["VMAXSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 5f", ["VMAXSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 5d", ["VMINPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 5d", ["VMINPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 5d", ["VMINSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 5d", ["VMINSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 28", ["VMOVAPD"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 29", ["VMOVAPD"], [OPT.YXMM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 28", ["VMOVAPS"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 29", ["VMOVAPS"], [OPT.YXMM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 6e", ["VMOVD", "VMOVQ"], [OPT.XMM, OPT.WRM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 7e", ["VMOVD", "VMOVQ"], [OPT.WRM32_64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("f3, 0f, 7e", ["VMOVQ"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, d6", ["VMOVQ"], [OPT.XMM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f2, 0f, 12", ["VMOVDDUP"], [OPT.YXMM, OPT.YXMM64_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 6f", ["VMOVDQA"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 7f", ["VMOVDQA"], [OPT.YXMM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f3, 0f, 6f", ["VMOVDQU"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f3, 0f, 7f", ["VMOVDQU"], [OPT.YXMM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 12", ["VMOVHLPS", "VMOVLPS"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MNEMONIC_MODRM_BASED | IFlag.USE_EXMNEMONIC)
Set("66, 0f, 12", ["VMOVLPD"], [OPT.XMM, OPT.VXMM, OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, 13", ["VMOVLPS"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 13", ["VMOVLPD"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, 16", ["VMOVLHPS", "VMOVHPS"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MNEMONIC_MODRM_BASED | IFlag.USE_EXMNEMONIC)
Set("66, 0f, 16", ["VMOVHPD"], [OPT.XMM, OPT.VXMM, OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, 17", ["VMOVHPS"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 17", ["VMOVHPD"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 50", ["VMOVMSKPD"], [OPT.REG32_64, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag.MODRR_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 50", ["VMOVMSKPS"], [OPT.REG32_64, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag.MODRR_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, e7", ["VMOVNTDQ"], [OPT.LMEM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 2a", ["VMOVNTDQA"], [OPT.XMM, OPT.MEM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 2b", ["VMOVNTPD"], [OPT.LMEM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 2b", ["VMOVNTPS"], [OPT.LMEM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
# Next two instructions are based on vvvv field.
Set("f2, 0f, 10", ["VMOVSD"], [OPT.XMM, OPT.VXMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
Set("f2, 0f, 10", ["VMOVSD"], [OPT.XMM, OPT.MEM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
# Next two instructions are based on vvvv field.
Set("f2, 0f, 11", ["VMOVSD"], [OPT.XMM, OPT.VXMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
Set("f2, 0f, 11", ["VMOVSD"], [OPT.MEM64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
Set("f3, 0f, 16", ["VMOVSHDUP"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f3, 0f, 12", ["VMOVSLDUP"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
# Next two instructions are based on vvvv field.
Set("f3, 0f, 10", ["VMOVSS"], [OPT.XMM, OPT.VXMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
Set("f3, 0f, 10", ["VMOVSS"], [OPT.XMM, OPT.MEM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
# Next two instructions are based on vvvv field.
Set("f3, 0f, 11", ["VMOVSS"], [OPT.XMM, OPT.VXMM, OPT.XMM_RM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
Set("f3, 0f, 11", ["VMOVSS"], [OPT.MEM32, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRM_INCLUDED | IFlag.MODRR_BASED)
Set("66, 0f, 10", ["VMOVUPD"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 11", ["VMOVUPD"], [OPT.YXMM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 10", ["VMOVUPS"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 11", ["VMOVUPS"], [OPT.YXMM128_256, OPT.YXMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 42", ["VMPSADBW"], [OPT.XMM, OPT.VXMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 59", ["VMULPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 59", ["VMULPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 59", ["VMULSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 59", ["VMULSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 56", ["VORPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 56", ["VORPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 1c", ["VPABSB"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 1d", ["VPABSW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 1e", ["VPABSD"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 63", ["VPACKSSWB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 6b", ["VPACKSSDW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 67", ["VPACKUSWB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 2b", ["VPACKUSDW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, fc", ["VPADDB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, fd", ["VPADDW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, fe", ["VPADDD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, d4", ["VPADDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, ec", ["VPADDSB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, ed", ["VPADDSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, dc", ["VPADDUSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, dd", ["VPADDUSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 0f", ["VPALIGNR"], [OPT.XMM, OPT.VXMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, db", ["VPAND"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, df", ["VPANDN"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, e0", ["VPAVGB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, e3", ["VPAVGW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 4c", ["VPBLENDVB"], [OPT.XMM, OPT.VXMM, OPT.XMM128, OPT.XMM_IMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 0e", ["VPBLENDW"], [OPT.XMM, OPT.VXMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
# This instruction is not prefixed with VEX.
SetClmul("66, 0f, 3a, 44", ["PCLMULQDQ"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS)
# Next instruction is prefixed with VEX.
SetClmul("66, 0f, 3a, 44", ["VPCLMULQDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 61", ["VPCMPESTRI"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 60", ["VPCMPESTRM"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 63", ["VPCMPISTRI"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 62", ["VPCMPISTRM"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 74", ["VPCMPEQB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 75", ["VPCMPEQW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 76", ["VPCMPEQD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 29", ["VPCMPEQQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 64", ["VPCMPGTB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 65", ["VPCMPGTW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 66", ["VPCMPGTD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 37", ["VPCMPGTQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 0d", ["VPERMILPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 05", ["VPERMILPD"], [OPT.YXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 04", ["VPERMILPS"], [OPT.YXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 0c", ["VPERMILPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 06", ["VPERM2F128"], [OPT.YMM, OPT.VYMM, OPT.YMM256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.FORCE_VEXL)
Set("66, 0f, 3a, 14", ["VPEXTRB"], [OPT.REG32_64_M8, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_VEX)
Set("66, 0f, c5", ["VPEXTRW"], [OPT.REG32_64, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 15", ["VPEXTRW"], [OPT.REG32_64_M16, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 16", ["VPEXTRD", "VPEXTRQ"], [OPT.WRM32_64, OPT.XMM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 01", ["VPHADDW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 02", ["VPHADDD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 03", ["VPHADDSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 41", ["VPHMINPOSUW"], [OPT.XMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 05", ["VPHSUBW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 06", ["VPHSUBD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 07", ["VPHSUBSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 20", ["VPINSRB"], [OPT.XMM, OPT.VXMM, OPT.REG32_64_M8, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, c4", ["VPINSRW"], [OPT.XMM, OPT.VXMM, OPT.R32_M16, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 22", ["VPINSRD", "VPINSRQ"], [OPT.XMM, OPT.VXMM, OPT.WRM32_64, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, f5", ["VPMADDWD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 04", ["VPMADDUBSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 3c", ["VPMAXSB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, ee", ["VPMAXSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 3d", ["VPMAXSD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, de", ["VPMAXUB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 3e", ["VPMAXUW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 3f", ["VPMAXUD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 38", ["VPMINSB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, ea", ["VPMINSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 39", ["VPMINSD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, da", ["VPMINUB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 3a", ["VPMINUW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 3b", ["VPMINUD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, d7", ["VPMOVMSKB"], [OPT.REG32_64, OPT.XMM], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag._64BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, 38, 20", ["VPMOVSXBW"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 21", ["VPMOVSXBD"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 22", ["VPMOVSXBQ"], [OPT.XMM, OPT.XMM16], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 23", ["VPMOVSXWD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 24", ["VPMOVSXWQ"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 25", ["VPMOVSXDQ"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 30", ["VPMOVZXBW"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 31", ["VPMOVZXBD"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 32", ["VPMOVZXBQ"], [OPT.XMM, OPT.XMM16], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 33", ["VPMOVZXWD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 34", ["VPMOVZXWQ"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 35", ["VPMOVZXDQ"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, e4", ["VPMULHUW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 0b", ["VPMULHRSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, e5", ["VPMULHW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, d5", ["VPMULLW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 40", ["VPMULLD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, f4", ["VPMULUDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 28", ["VPMULDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, eb", ["VPOR"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, f6", ["VPSADBW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 00", ["VPSHUFB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 70", ["VPSHUFD"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 70", ["VPSHUFHW"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f2, 0f, 70", ["VPSHUFLW"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 08", ["VPSIGNB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 09", ["VPSIGNW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 38, 0a", ["VPSIGND"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 73 /07", ["VPSLLDQ"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, 73 /03", ["VPSRLDQ"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, f1", ["VPSLLW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 71 /06", ["VPSLLW"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, f2", ["VPSLLD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 72 /06", ["VPSLLD"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, f3", ["VPSLLQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 73 /06", ["VPSLLQ"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, e1", ["VPSRAW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 71 /04", ["VPSRAW"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, e2", ["VPSRAD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 72 /04", ["VPSRAD"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, d1", ["VPSRLW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 71 /02", ["VPSRLW"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, d2", ["VPSRLD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 72 /02", ["VPSRLD"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, d3", ["VPSRLQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 73 /02", ["VPSRLQ"], [OPT.VXMM, OPT.XMM_RM, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.MODRR_REQUIRED)
Set("66, 0f, 38, 17", ["VPTEST"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 0e", ["VTESTPS"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 38, 0f", ["VTESTPD"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, f8", ["VPSUBB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, f9", ["VPSUBW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, fa", ["VPSUBD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, fb", ["VPSUBQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, e8", ["VPSUBSB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, e9", ["VPSUBSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, d8", ["VPSUBUSB"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, d9", ["VPSUBUSW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 68", ["VPUNPCKHBW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 69", ["VPUNPCKHWD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 6a", ["VPUNPCKHDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 6d", ["VPUNPCKHQDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 60", ["VPUNPCKLBW"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 61", ["VPUNPCKLWD"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 62", ["VPUNPCKLDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 6c", ["VPUNPCKLQDQ"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, ef", ["VPXOR"], [OPT.XMM, OPT.VXMM, OPT.XMM128], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, 53", ["VRCPPS"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f3, 0f, 53", ["VRCPSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, 52", ["VRSQRTPS"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f3, 0f, 52", ["VRSQRTSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 09", ["VROUNDPD"], [OPT.YXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 08", ["VROUNDPS"], [OPT.YXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 3a, 0b", ["VROUNDSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 3a, 0a", ["VROUNDSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, c6", ["VSHUFPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, c6", ["VSHUFPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 51", ["VSQRTPD"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 51", ["VSQRTPS"], [OPT.YXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 51", ["VSQRTSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 51", ["VSQRTSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, ae /03", ["VSTMXCSR"], [OPT.MEM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 5c", ["VSUBPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 5c", ["VSUBPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("f2, 0f, 5c", ["VSUBSD"], [OPT.XMM, OPT.VXMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("f3, 0f, 5c", ["VSUBSS"], [OPT.XMM, OPT.VXMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 2e", ["VUCOMISD"], [OPT.XMM, OPT.XMM64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("0f, 2e", ["VUCOMISS"], [OPT.XMM, OPT.XMM32], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
Set("66, 0f, 15", ["VUNPCKHPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 15", ["VUNPCKHPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 14", ["VUNPCKLPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 14", ["VUNPCKLPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("66, 0f, 57", ["VXORPD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 57", ["VXORPS"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L)
Set("0f, 77", ["VZEROUPPER", "VZEROALL"], [], IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_L | IFlag.MNEMONIC_VEXL_BASED)
def init_FMA(self):
Set = lambda *args: self.SetCallback(ISetClass.FMA, *args)
Set("66, 0f, 38, 98", ["VFMADD132PS", "VFMADD132PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, a8", ["VFMADD213PS", "VFMADD213PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, b8", ["VFMADD231PS", "VFMADD231PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 99", ["VFMADD132SS", "VFMADD132SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, a9", ["VFMADD213SS", "VFMADD213SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, b9", ["VFMADD231SS", "VFMADD231SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 96", ["VFMADDSUB132PS", "VFMADDSUB132PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, a6", ["VFMADDSUB213PS", "VFMADDSUB213PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, b6", ["VFMADDSUB231PS", "VFMADDSUB231PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 97", ["VFMSUBADD132PS", "VFMSUBADD132PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, a7", ["VFMSUBADD213PS", "VFMSUBADD213PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, b7", ["VFMSUBADD231PS", "VFMSUBADD231PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 9a", ["VFMSUB132PS", "VFMSUB132PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, aa", ["VFMSUB213PS", "VFMSUB213PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, ba", ["VFMSUB231PS", "VFMSUB231PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 9b", ["VFMSUB132SS", "VFMSUB132SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, ab", ["VFMSUB213SS", "VFMSUB213SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, bb", ["VFMSUB231SS", "VFMSUB231SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 9c", ["VFNMADD132PS", "VFNMADD132PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, ac", ["VFNMADD213PS", "VFNMADD213PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, bc", ["VFNMADD231PS", "VFNMADD231PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 9d", ["VFNMADD132SS", "VFNMADD132SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, ad", ["VFNMADD213SS", "VFNMADD213SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, bd", ["VFNMADD231SS", "VFNMADD231SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 9e", ["VFNMSUB132PS", "VFNMSUB132PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, ae", ["VFNMSUB213PS", "VFNMSUB213PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, be", ["VFNMSUB231PS", "VFNMSUB231PD"], [OPT.YXMM, OPT.VYXMM, OPT.YXMM128_256], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.VEX_L | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, 9f", ["VFNMSUB132SS", "VFNMSUB132SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, af", ["VFNMSUB213SS", "VFNMSUB213SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
Set("66, 0f, 38, bf", ["VFNMSUB231SS", "VFNMSUB231SD"], [OPT.XMM, OPT.VXMM, OPT.WXMM32_64], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX | IFlag.VEX_W | IFlag.MNEMONIC_VEXW_BASED)
def __init__(self, SetCallback):
""" Initializes all instructions-sets using the given callback.
The arguments of the callback are as follows:
(iset-class, opcode-length, list of bytes of opcode, list of string of mnemonics, list of operands, flags) """
self.SetCallback = SetCallback
Set = lambda *args: self.SetCallback(ISetClass.INTEGER, *args)
self.init_INTEGER()
self.init_Exported()
self.init_FPU()
self.init_P6()
self.init_MMX()
self.init_SSE()
self.init_SSE2()
self.init_SSE3()
self.init_SSSE3()
self.init_SSE4_1()
self.init_SSE4_2()
self.init_SSE4_A()
self.init_3DNOW()
self.init_3DNOWEXT()
self.init_VMX()
self.init_SVM()
self.init_AVX()
self.init_FMA()
| 82.506627
| 218
| 0.668263
| 21,386
| 136,961
| 4.099364
| 0.077995
| 0.119883
| 0.213941
| 0.235591
| 0.819948
| 0.790257
| 0.766645
| 0.723642
| 0.691887
| 0.650948
| 0
| 0.081758
| 0.121509
| 136,961
| 1,659
| 219
| 82.556359
| 0.64688
| 0.050963
| 0
| 0.003618
| 0
| 0
| 0.146391
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013748
| false
| 0
| 0.000724
| 0
| 0.015195
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1cf31ad68494ef5bcffd2fafcad58c6f060bf738
| 66,525
|
py
|
Python
|
crime_data/common/cdemodels.py
|
18F/crime-data-api
|
3e8cab0fad4caac1d7d8ef1b62ae7a1441752c6c
|
[
"CC0-1.0"
] | 51
|
2016-09-16T00:37:56.000Z
|
2022-01-22T03:48:24.000Z
|
crime_data/common/cdemodels.py
|
18F/crime-data-api
|
3e8cab0fad4caac1d7d8ef1b62ae7a1441752c6c
|
[
"CC0-1.0"
] | 605
|
2016-09-15T19:16:49.000Z
|
2018-01-18T20:46:39.000Z
|
crime_data/common/cdemodels.py
|
18F/crime-data-api
|
3e8cab0fad4caac1d7d8ef1b62ae7a1441752c6c
|
[
"CC0-1.0"
] | 9
|
2016-10-27T16:00:14.000Z
|
2021-02-14T10:56:03.000Z
|
import abc
from collections import namedtuple
from flask_restful import abort
from sqlalchemy import and_, func, or_, UniqueConstraint, PrimaryKeyConstraint, Index
from sqlalchemy.exc import ArgumentError
from sqlalchemy.orm import aliased
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy.sql import label
from sqlalchemy.sql import sqltypes as st
from psycopg2.extensions import AsIs
from crime_data.common import models, newmodels
from crime_data.common.models import RefState, RefCounty
from crime_data.common.base import Fields, ExplorerOffenseMapping
from crime_data.extensions import db
session = db.session
def get_sql_count(q):
"""Avoid the slow SQL Alchemy subquery account"""
count_q = q.statement.with_only_columns([func.count()]).order_by(None)
count = q.session.execute(count_q).scalar()
return count
class CdeRefAgencyCounty(models.RefAgencyCounty):
"""A wrapper around the RefAgencyCounty model"""
@staticmethod
def current_year():
"""Returns the current year for the agency/county mappings."""
return session.query(func.max(CdeRefAgencyCounty.data_year)).scalar()
# CdeParticipationRecord = namedtuple('CdeParticipationRecord', ['year', 'total_agencies', 'reporting_agencies', 'reporting_rate', 'total_population', 'covered_population'])
class CdeParticipationRate(newmodels.ParticipationRate):
"""Class for querying the cde_participation_rate"""
def __init__(self, year=None, state_id=None, county_id=None, states=None):
self.year = year
self.state_id = state_id
self.county_id = county_id
self.states = states
@property
def query(self):
qry = super().query
if self.state_id:
qry = qry.filter(newmodels.ParticipationRate.state_id == self.state_id)
if self.county_id:
qry = qry.filter(newmodels.ParticipationRate.county_id == self.county_id)
if self.year:
qry = qry.filter(newmodels.ParticipationRate.year == self.year)
if self.states:
qry = qry.filter(newmodels.ParticipationRate.state_id.in_(self.states))
return qry
class CdeRefCounty(db.Model):
"""This uses our denormalized cde_counties table"""
__tablename__ = 'cde_counties'
def get(county_id=None, fips=None, name=None):
"""Find matching counties by id, fips code or name."""
query = CdeRefCounty.query
if county_id:
query = query.filter(CdeRefCounty.county_id == county_id)
elif fips:
query = query.filter(CdeRefCounty.fips == fips)
elif name:
query = query.filter(func.lower(CdeRefCounty.county_name) ==
func.lower(name))
return query
county_id = db.Column(db.BigInteger, primary_key=True)
fips = db.Column(db.String(5))
county_name = db.Column(db.String(100))
state_id = db.Column(db.SmallInteger)
state_name = db.Column(db.String(100))
state_abbr = db.Column(db.String(2))
current_year = db.Column(db.SmallInteger)
total_population = db.Column(db.BigInteger)
total_agencies = db.Column(db.Integer)
participating_agencies = db.Column(db.Integer)
nibrs_participating_agencies = db.Column(db.Integer)
covered_agencies = db.Column(db.Integer)
participating_population = db.Column(db.BigInteger)
class CdeRefState(db.Model):
"""A wrapper around the RefState model with extra finder methods"""
__tablename__ = 'cde_states'
def get(state_id=None, abbr=None, fips=None, states=None):
"""
A method to find a state by its database ID, postal abbr or FIPS code
"""
query = CdeRefState.query
if state_id:
query = query.filter(CdeRefState.state_id == state_id)
elif abbr:
query = query.filter(func.lower(CdeRefState.state_abbr) == func.lower(abbr))
elif states:
query = query.filter(CdeRefState.state_id.in_(states))
return query
state_id = db.Column(db.SmallInteger, primary_key=True)
state_name = db.Column(db.String(100))
state_abbr = db.Column(db.String(2))
current_year = db.Column(db.SmallInteger)
total_population = db.Column(db.BigInteger)
total_agencies = db.Column(db.Integer)
participating_agencies = db.Column(db.Integer)
participation_pct = db.Column(db.Numeric(5, 2))
nibrs_participating_agencies = db.Column(db.Integer)
nibrs_participation_pct = db.Column(db.Numeric(5, 2))
covered_agencies = db.Column(db.Integer)
covered_pct = db.Column(db.Numeric(5, 2))
participating_population = db.Column(db.BigInteger)
participating_population_pct = db.Column(db.Numeric(5, 2))
nibrs_participating_population = db.Column(db.BigInteger)
nibrs_population_pct = db.Column(db.Numeric(5, 2))
police_officers = db.Column(db.Integer)
civilian_employees = db.Column(db.Integer)
counties = db.relationship('CdeRefCounty',
foreign_keys=[CdeRefCounty.state_id],
primaryjoin='CdeRefState.state_id==CdeRefCounty.state_id',
lazy='dynamic',
backref='state')
@property
def participation_rates(self):
return CdeParticipationRate(state_id=self.state_id).query.order_by('year DESC').all()
class CdeRefAgency(models.RefAgency):
def get(ori=None):
# Base Query
query = CdeRefAgency.query
# Get ONE ORI.
if ori:
query = query.filter(CdeRefAgency.ori == ori)
return query
pass
def _is_string(col):
col0 = list(col.base_columns)[0]
return issubclass(col0.type.python_type, str)
# CountViews
class MultiYearCountView(object):
"""For materialized views that aren't split by year"""
__abstract__ = True
VARIABLES = []
def __init__(self, field, year=None, state_id=None, state_abbr=None, ori=None, as_json=True):
self.as_json = as_json
if field is None:
raise ValueError('You must specify a field for the CountView')
if field not in self.VARIABLES:
raise ValueError('Invalid variable "{}" specified for {}'.format(field, self.view_name))
self.year = year
self.state_id = state_id
if state_abbr and state_id is None:
# Select State ID for State Abbreviation.
self.state_id = CdeRefState.get(abbr=state_abbr).one().state_id
self.ori = ori
self.field = field
self.national = False
if self.state_id is None and self.ori is None:
self.national = True
def get_field_table(self, field):
if field in ['weapon_name']:
return ('nibrs_weapon_type','weapon_name')
if field in ['method_entry_code']:
return ('nibrs_method_entry_code','method_entry_code')
if field in ['num_premises_entered']:
return ('nibrs_num_premises_entered', 'num_premises_entered')
if field in ['bias_name']:
return ('nibrs_bias_list','bias_name')
if field in ['resident_status_code']:
return ('nibrs_resident_status_code','resident_status_code')
if field in ['victim_type_name']:
return ('nibrs_victim_type','victim_type_name')
if field in ['offense_name']:
return ('nibrs_offense_type','offense_name')
if field in ['location_name']:
return ('nibrs_location_type','location_name')
if field in ['prop_desc_name']:
return ('nibrs_prop_desc_type','prop_desc_name')
if field in ['ethnicity']:
return ('nibrs_ethnicity','ethnicity_name')
if field in ['offender_relationship']:
return ('nibrs_relationship','relationship_name')
# if field in ['victim_offender_rel']:
# return('', '')
if field in ['circumstance_name']:
return ('nibrs_circumstances', 'circumstances_name')
if field in ['race_code']:
return ('ref_race','race_code')
if field in ['sex_code']:
return ('nibrs_sex_code','sex_code')
if field in ['age_num']:
return ('nibrs_age_num','age_num')
return (None, None)
@property
@abc.abstractmethod
def view_name(self):
"""The subclasses must define a method that tells the base_query which table to use."""
return
def query(self, args):
base_query = None
qry = None
param_dict = {}
try:
base_query = self.base_query(self.field)
# this is unescaoed, but not provided as user input_args
param_dict['view_name'] = AsIs(self.view_name)
# field is unescaped but validated in constructor
param_dict['field'] = AsIs(self.field)
if self.state_id:
param_dict['state_id'] = self.state_id
if self.ori:
param_dict['ori'] = self.ori
param_dict['view_name'] = AsIs(self.view_name_ori)
if self.year:
param_dict['year'] = self.year
qry = session.execute(base_query, param_dict)
except Exception as e:
session.rollback()
session.close()
raise e
return qry
def base_query(self, field):
select_query = 'SELECT b.:field, a.count, b.year FROM (SELECT :field , count, year::text'
from_query = ' FROM :view_name'
where_query = ' WHERE :field IS NOT NULL'
if self.state_id:
where_query += ' AND state_id = :state_id '
if self.ori:
where_query += ' AND ori = :ori'
if self.national:
where_query += ' AND state_id is NULL'
if self.year:
where_query += ' AND year = :year '
query = select_query + from_query + where_query
query += ') a '
join_table,join_field = self.get_field_table(field)
if join_field:
if self.year:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years WHERE year::int = :year) c) b ON (a.:field = b.:field)'
else:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years) c) b ON (a.:field = b.:field AND a.year = b.year)'
query = query + query_gap_fill
query += ' ORDER by a.year, a.:field'
if self.as_json:
query = 'SELECT array_to_json(array_agg(row_to_json(m))) as json_data from ( ' + query + ') m' # nosec
return query
class OffenderCountView(MultiYearCountView):
"""A class for fetching the counts """
VARIABLES = ['ethnicity', 'prop_desc_name', 'offense_name',
'race_code', 'location_name', 'age_num', 'sex_code']
@property
def view_name(self, ori = None):
"""The name of the specific materialized view for this year."""
return 'offender_counts_states'
@property
def view_name_ori(self):
"""The name of the specific materialized view for this year."""
return 'offender_counts_ori'
class VictimCountView(MultiYearCountView):
"""A class for fetching the counts """
VARIABLES = ['prop_desc_name', 'offense_name', 'ethnicity',
'resident_status_code', 'offender_relationship',
'circumstance_name', 'race_code', 'location_name',
'age_num', 'sex_code']
@property
def view_name(self):
"""The name of the specific materialized view."""
return 'victim_counts_states'
@property
def view_name_ori(self):
"""The name of the specific materialized view."""
return 'victim_counts_ori'
class OffenseCountView(MultiYearCountView):
"""A class for fetching the counts broken down by offense"""
VARIABLES = ['weapon_name', 'method_entry_code', 'num_premises_entered', 'location_name', 'offense_name']
@property
def view_name(self):
"""The name of the specific materialized view."""
return 'offense_counts_states'
@property
def view_name_ori(self):
"""The name of the specific materialized view."""
return 'offense_counts_ori'
class HateCrimeCountView(MultiYearCountView):
VARIABLES = ['bias_name']
@property
def view_name(self):
"""The name of the specific materialized view."""
return 'hc_counts_states'
@property
def view_name_ori(self):
"""The name of the specific materialized view."""
return 'hc_counts_ori'
class CargoTheftCountView(MultiYearCountView):
"""A class for fetching the counts """
VARIABLES = ['location_name',
'offense_name', 'victim_type_name', 'prop_desc_name']
@property
def view_name(self):
"""The name of the specific materialized view."""
return 'ct_counts_states'
def view_name_ori(self):
"""The name of the specific materialized view."""
return 'ct_counts_ori'
def base_query(self, field):
query = 'SELECT b.:field, a.count, b.year FROM (SELECT :field ,stolen_value::text, recovered_value::text, year::text, count'
query += ' FROM :view_name '
where_query = ' WHERE :field IS NOT NULL'
if self.state_id:
where_query += ' AND state_id = :state_id '
if self.ori:
where_query += ' AND ori = :ori'
if self.national:
where_query += ' AND state_id is NULL '
if self.year:
where_query += ' AND year = :year '
query = query + where_query + ') a '
join_table,join_field = self.get_field_table(field)
if join_field:
if self.year:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years WHERE year::int = :year) c) b ON (a.:field = b.:field)'
else:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years) c) b ON (a.:field = b.:field AND a.year = b.year)'
query = query + query_gap_fill
query += ' ORDER by b.year, b.:field'
query = 'SELECT array_to_json(array_agg(row_to_json(m))) as json_data from ( ' + query + ') m' # nosec
return query
class OffenseSubCountView(object):
def __init__(self, field, year=None, state_id=None, ori=None,
offense_name=None, state_abbr=None, explorer_offense=None, as_json=True):
self.as_json = as_json
if field not in self.VARIABLES:
raise ValueError('Invalid variable "{}" specified for {}'.format(field, self.view_name))
self.year = year
self.state_id = state_id
if state_abbr and state_id is None:
# Select State ID for State Abbreviation.
self.state_id = CdeRefState.get(abbr=state_abbr).one().state_id
self.ori = ori
self.field = field
self.explorer_offense = explorer_offense
self.offense_name = offense_name
if explorer_offense:
offenses = ExplorerOffenseMapping(explorer_offense).nibrs_offense
if isinstance(offenses, str):
offenses = [offenses]
self.offense_name = tuple(offenses)
elif offense_name:
self.offense_name = (offense_name, )
self.national = False
if self.state_id is None and self.ori is None:
self.national = True
def get_field_table(self, field):
if field in ['weapon_name']:
return ('nibrs_weapon_type','weapon_name')
if field in ['method_entry_code']:
return ('nibrs_method_entry_code','method_entry_code')
if field in ['num_premises_entered']:
return ('nibrs_num_premises_entered', 'num_premises_entered')
if field in ['bias_name']:
return ('nibrs_bias_list','bias_name')
if field in ['resident_status_code']:
return ('nibrs_resident_status_code','resident_status_code')
if field in ['victim_type_name']:
return ('nibrs_victim_type','victim_type_name')
if field in ['offense_name']:
return ('nibrs_offense_type','offense_name')
if field in ['location_name']:
return ('nibrs_location_type','location_name')
if field in ['prop_desc_name']:
return ('nibrs_prop_desc_type','prop_desc_name')
if field in ['ethnicity']:
return ('nibrs_ethnicity','ethnicity_name')
if field in ['offender_relationship']:
return ('nibrs_relationship','relationship_name')
# if field in ['victim_offender_rel']:
# return('', '')
if field in ['circumstance_name']:
return ('nibrs_circumstances', 'circumstances_name')
if field in ['race_code']:
return ('ref_race','race_code')
if field in ['sex_code']:
return ('nibrs_sex_code','sex_code')
if field in ['age_num']:
return ('nibrs_age_num','age_num')
return (None, None)
def query(self, args):
base_query = None
qry = None
param_dict = {}
try:
base_query = self.base_query(self.field)
# this is unescaoed, but not provided as user input_args
param_dict['view_name'] = AsIs(self.view_name)
# field is unescaped but validated in constructor
param_dict['field'] = AsIs(self.field)
if self.state_id:
param_dict['state_id'] = self.state_id
if self.year:
param_dict['year'] = self.year
if self.ori:
param_dict['ori'] = self.ori
param_dict['view_name'] = AsIs(self.view_name_ori)
if self.offense_name:
param_dict['offense_name'] = self.offense_name
if self.explorer_offense:
param_dict['explorer_offense'] = self.explorer_offense
if not param_dict:
qry = session.execute(base_query)
else:
qry = session.execute(base_query, param_dict)
except Exception as e:
session.rollback()
session.close()
raise e
return qry
def base_query(self, field):
if self.explorer_offense:
query = 'SELECT b.year, :explorer_offense AS offense_name, b.:field, SUM(a.count)::int AS count from (SELECT year::text, offense_name, :field, count'
else:
query = 'SELECT b.:field, a.count, b.year from (SELECT year::text, offense_name, :field, count'
query += ' FROM :view_name'
where_query = ' WHERE :field IS NOT NULL'
if self.state_id:
where_query += ' AND state_id = :state_id '
if self.national:
where_query += ' AND state_id is NULL '
if self.ori:
where_query += ' AND ori = :ori'
if self.offense_name:
where_query += ' AND offense_name IN :offense_name'
if self.year:
where_query += ' AND year = :year'
query = query + where_query + ') a '
join_table,join_field = self.get_field_table(field)
if join_field:
if self.year:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years WHERE year::int = :year) c) b ON (a.:field = b.:field)'
else:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years) c) b ON (a.:field = b.:field AND a.year = b.year)'
query = query + query_gap_fill
if self.explorer_offense:
query += ' GROUP by b.year, b.:field, offense_name'
query += ' ORDER by b.year, offense_name, b.:field'
# Select as JSON.
if self.as_json:
query = 'SELECT array_to_json(array_agg(row_to_json(m))) as json_data from ( ' + query + ') m' # nosec
return query
class OffenseVictimCountView(OffenseSubCountView):
"""This reports subgrouped counts of a field for a given offense"""
VARIABLES = ['resident_status_code', 'offender_relationship',
'circumstance_name', 'ethnicity', 'race_code',
'age_num', 'sex_code']
DISTINCT_VTABLE = 'victim_counts'
@property
def view_name(self):
return 'offense_victim_counts_states'
@property
def view_name_ori(self):
return 'offense_victim_counts_ori'
class OffenseOffenderCountView(OffenseSubCountView):
VARIABLES = ['ethnicity', 'race_code', 'age_num', 'sex_code']
DISTINCT_VTABLE = 'offender_counts'
@property
def view_name(self):
return 'offense_offender_counts_states'
@property
def view_name_ori(self):
return 'offense_offender_counts_ori'
class OffenseByOffenseTypeCountView(OffenseSubCountView):
VARIABLES = ['weapon_name', 'method_entry_code', 'num_premises_entered', 'location_name']
DISTINCT_VTABLE = 'offense_counts'
@property
def view_name(self):
return 'offense_offense_counts_states'
@property
def view_name_ori(self):
return 'offense_offense_counts_ori'
class OffenseCargoTheftCountView(OffenseSubCountView):
VARIABLES = ['location_name', 'victim_type_name', 'prop_desc_name']
def base_query(self, field):
if self.explorer_offense:
query = 'SELECT b.:field, SUM(a.count)::int AS count, SUM(a.stolen_value)::text AS stolen_value, SUM(a.recovered_value)::text AS recovered_value, :explorer_offense AS offense_name, b.year FROM (SELECT year::text, offense_name, :field, '
query += 'count, stolen_value, recovered_value'
else:
query = 'SELECT b.:field, a.count, b.year, stolen_value, recovered_value, recovered_value FROM (SELECT year::text, offense_name, :field, count, stolen_value::text, recovered_value::text'
query += ' FROM :view_name'
where_query = ' WHERE :field IS NOT NULL'
if self.state_id:
where_query += ' AND state_id = :state_id '
if self.national:
where_query += ' AND state_id is NULL '
if self.ori:
where_query += ' AND ori = :ori '
if self.offense_name:
where_query += ' AND offense_name IN :offense_name'
if self.year:
where_query += ' AND year = :year'
query = query + where_query + ') a '
join_table,join_field = self.get_field_table(field)
if join_field:
if self.year:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years WHERE year::int = :year) c) b ON (a.:field = b.:field)'
else:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years) c) b ON (a.:field = b.:field AND a.year = b.year)'
query = query + query_gap_fill
if self.explorer_offense:
query += ' GROUP by b.year, b.:field, offense_name'
query += ' ORDER by b.year, offense_name, b.:field'
if self.as_json:
query = 'SELECT array_to_json(array_agg(row_to_json(m))) as json_data from ( ' + query + ') m' # nosec
return query
@property
def view_name(self):
return 'offense_ct_counts_states'
@property
def view_name_ori(self):
return 'offense_ct_counts_ori'
class OffenseHateCrimeCountView(OffenseSubCountView):
VARIABLES = ['bias_name']
def base_query(self, field):
if self.explorer_offense:
query = 'SELECT b.:field, SUM(a.count)::int AS count, :explorer_offense AS offense_name, b.year FROM (SELECT year::text, offense_name, :field, count'
else:
query = 'SELECT b.:field, a.count, b.year FROM (SELECT year::text, offense_name, :field, count'
query += ' FROM :view_name'
where_query = ' WHERE :field IS NOT NULL'
if self.state_id:
where_query += ' AND state_id = :state_id '
if self.national:
where_query += ' AND state_id is NULL '
if self.ori:
where_query += ' AND ori = :ori'
if self.offense_name:
where_query += ' AND offense_name IN :offense_name'
if self.year:
where_query += ' AND year = :year'
# if self.explorer_offense:
# query += ' GROUP by year, :field'
query = query + where_query + ') a '
join_table,join_field = self.get_field_table(field)
if join_field:
if self.year:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field,c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years WHERE year::int = :year) c) b ON (a.:field = b.:field)'
else:
query_gap_fill = ' RIGHT JOIN (SELECT DISTINCT ' + join_table + '.' + join_field + ' AS :field, c.year from ' + join_table + ' CROSS JOIN (SELECT year::text from nibrs_years) c) b ON (a.:field = b.:field AND a.year = b.year)'
query = query + query_gap_fill
if self.explorer_offense:
query += ' GROUP by b.year, b.:field, offense_name'
query += ' ORDER by b.year, b.:field'
if self.as_json:
query = 'SELECT array_to_json(array_agg(row_to_json(m))) as json_data from ( ' + query + ') m' # nosec
return query
@property
def view_name(self):
return 'offense_hc_counts_states'
@property
def view_name_ori(self):
return 'offense_hc_counts_ori'
class NIBRSVictimCount(db.Model):
"""Represents Agency Level NIBRS Victim Data"""
__tablename__ = 'nibrs_victim_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
def get(ori=None):
query = NIBRSVictimCount.query
if ori:
query = query.filter(func.lower(NIBRSVictimCount.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
data_year = db.Column(db.Integer)
offense_name = db.Column(db.String)
type_name = db.Column(db.String)
sex_code = db.Column(db.String(1))
age_range = db.Column(db.String)
race_description = db.Column(db.String)
ethnicity_name = db.Column(db.String)
location_name = db.Column(db.String)
count = db.Column(db.Integer)
class NIBRSAgencyVictimDenormCount(db.Model):
"""Represents Agency Level NIBRS Victim Count Data"""
__tablename__ = 'nibrs_agency_denorm_victim_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
print('Here')
query = NIBRSAgencyVictimDenormCount.query
if ori:
query = query.filter(func.lower(NIBRSAgencyVictimDenormCount.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyVictimDenormCount_index = Index('ori_index_nibrs_agency_denorm_victim_count', NIBRSAgencyVictimDenormCount.ori)
class NIBRSAgencyVictimDenormSex(db.Model):
"""Represents Agency Level NIBRS Victim Data"""
__tablename__ = 'nibrs_agency_denorm_victim_sex'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyVictimDenormSex.query
if ori:
query = query.filter(func.lower(NIBRSAgencyVictimDenormSex.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
male_count = db.Column(db.Integer)
female_count = db.Column(db.Integer)
unknown_count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyVictimDenormSex_index = Index('ori_index_nibrs_agency_denorm_victim_sex', NIBRSAgencyVictimDenormSex.ori)
class NIBRSAgencyVictimDenormRace(db.Model):
"""Represents Agency Level NIBRS Victim Race Data"""
__tablename__ = 'nibrs_agency_denorm_victim_race'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyVictimDenormRace.query
if ori:
query = query.filter(func.lower(NIBRSAgencyVictimDenormRace.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
asian = db.Column(db.Integer)
native_hawaiian = db.Column(db.Integer)
black = db.Column(db.Integer)
american_indian = db.Column(db.Integer)
unknown = db.Column(db.Integer)
white = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyVictimDenormRace_index = Index('ori_index_nibrs_agency_denorm_victim_race', NIBRSAgencyVictimDenormRace.ori)
class NIBRSAgencyVictimDenormEthnicity(db.Model):
"""Represents Agency Level NIBRS Victim Ethnicity Data"""
__tablename__ = 'nibrs_agency_denorm_victim_ethnicity'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyVictimDenormEthnicity.query
if ori:
query = query.filter(func.lower(NIBRSAgencyVictimDenormEthnicity.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
hispanic = db.Column(db.Integer)
multiple = db.Column(db.Integer)
not_hispanic = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyVictimDenormEthnicity_index = Index('ori_index_nibrs_agency_denorm_victim_ethnicity', NIBRSAgencyVictimDenormEthnicity.ori)
class NIBRSAgencyVictimDenormAge(db.Model):
"""Represents Agency Level NIBRS Victim Age Data"""
__tablename__ = 'nibrs_agency_denorm_victim_age'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyVictimDenormAge.query
if ori:
query = query.filter(func.lower(NIBRSAgencyVictimDenormAge.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
range_0_9 = db.Column(db.Integer)
range_10_19 = db.Column(db.Integer)
range_20_29 = db.Column(db.Integer)
range_30_39 = db.Column(db.Integer)
range_40_49 = db.Column(db.Integer)
range_50_59 = db.Column(db.Integer)
range_60_69 = db.Column(db.Integer)
range_70_79 = db.Column(db.Integer)
range_80_89 = db.Column(db.Integer)
range_90_99 = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyVictimDenormAge_index = Index('ori_index_nibrs_agency_denorm_victim_age', NIBRSAgencyVictimDenormAge.ori)
class NIBRSAgencyVictimDenormLocation(db.Model):
"""Represents Agency Level NIBRS Victim Location Data"""
__tablename__ = 'nibrs_agency_denorm_victim_location'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyVictimDenormLocation.query
if ori:
query = query.filter(func.lower(NIBRSAgencyVictimDenormLocation.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
residence_home = db.Column(db.Integer)
parking_garage__lot = db.Column(db.Integer)
abandoned_condemned__structure = db.Column(db.Integer)
air__bus__train_terminal = db.Column(db.Integer)
amusement_park = db.Column(db.Integer)
arena__stadium__fairgrounds = db.Column(db.Integer)
atm_separate_from_bank = db.Column(db.Integer)
auto_dealership = db.Column(db.Integer)
bank = db.Column(db.Integer)
bar_nightclub = db.Column(db.Integer)
campground = db.Column(db.Integer)
church__synagogue__temple__mosque = db.Column(db.Integer)
commercial__office_building = db.Column(db.Integer)
community_center = db.Column(db.Integer)
construction_site = db.Column(db.Integer)
cyberspace = db.Column(db.Integer)
daycare_facility = db.Column(db.Integer)
department__discount_store = db.Column(db.Integer)
dock__wharf__shipping_terminal = db.Column(db.Integer)
drug_store__doctors_office__hospital = db.Column(db.Integer)
farm_facility = db.Column(db.Integer)
field__woods = db.Column(db.Integer)
gambling_facility__casino__race_track = db.Column(db.Integer)
government__public_building = db.Column(db.Integer)
grocery_store = db.Column(db.Integer)
highway__alley__street__sidewalk = db.Column(db.Integer)
hotel__motel = db.Column(db.Integer)
industrial_site = db.Column(db.Integer)
jail__prison__corrections_facility = db.Column(db.Integer)
lake__waterway__beach = db.Column(db.Integer)
liquor_store = db.Column(db.Integer)
military_base = db.Column(db.Integer)
unknown = db.Column(db.Integer)
park__playground = db.Column(db.Integer)
rental_storage_facility = db.Column(db.Integer)
rest_area = db.Column(db.Integer)
restaurant = db.Column(db.Integer)
school__college = db.Column(db.Integer)
school_college__university = db.Column(db.Integer)
school_elementary__secondary = db.Column(db.Integer)
gas_station = db.Column(db.Integer)
mission__homeless_shelter = db.Column(db.Integer)
shopping_mall = db.Column(db.Integer)
specialty_store = db.Column(db.Integer)
tribal_lands = db.Column(db.Integer)
convenience_store = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyVictimDenormLocation_index = Index('ori_index_nibrs_agency_denorm_victim_location', NIBRSAgencyVictimDenormLocation.ori)
class NIBRSStateVictimDenormCount(db.Model):
"""Represents Agency Level NIBRS Victim Count Data"""
__tablename__ = 'nibrs_state_denorm_victim_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateVictimDenormCount.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateVictimDenormCount.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateVictimDenormSex(db.Model):
"""Represents Agency Level NIBRS Victim Data"""
__tablename__ = 'nibrs_state_denorm_victim_sex'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateVictimDenormSex.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateVictimDenormSex.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
male_count = db.Column(db.Integer)
female_count = db.Column(db.Integer)
unknown_count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateVictimDenormRace(db.Model):
"""Represents Agency Level NIBRS Victim Race Data"""
__tablename__ = 'nibrs_state_denorm_victim_race'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateVictimDenormRace.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateVictimDenormRace.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
asian = db.Column(db.Integer)
native_hawaiian = db.Column(db.Integer)
black = db.Column(db.Integer)
american_indian = db.Column(db.Integer)
unknown = db.Column(db.Integer)
white = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateVictimDenormEthnicity(db.Model):
"""Represents Agency Level NIBRS Victim Ethnicity Data"""
__tablename__ = 'nibrs_state_denorm_victim_ethnicity'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateVictimDenormEthnicity.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateVictimDenormEthnicity.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
hispanic = db.Column(db.Integer)
multiple = db.Column(db.Integer)
not_hispanic = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateVictimDenormAge(db.Model):
"""Represents Agency Level NIBRS Victim Age Data"""
__tablename__ = 'nibrs_state_denorm_victim_age'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateVictimDenormAge.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateVictimDenormAge.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
range_0_9 = db.Column(db.Integer)
range_10_19 = db.Column(db.Integer)
range_20_29 = db.Column(db.Integer)
range_30_39 = db.Column(db.Integer)
range_40_49 = db.Column(db.Integer)
range_50_59 = db.Column(db.Integer)
range_60_69 = db.Column(db.Integer)
range_70_79 = db.Column(db.Integer)
range_80_89 = db.Column(db.Integer)
range_90_99 = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateVictimDenormLocation(db.Model):
"""Represents Agency Level NIBRS Victim Location Data"""
__tablename__ = 'nibrs_state_denorm_victim_location'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateVictimDenormLocation.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateVictimDenormLocation.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
residence_home = db.Column(db.Integer)
parking_garage__lot = db.Column(db.Integer)
abandoned_condemned__structure = db.Column(db.Integer)
air__bus__train_terminal = db.Column(db.Integer)
amusement_park = db.Column(db.Integer)
arena__stadium__fairgrounds = db.Column(db.Integer)
atm_separate_from_bank = db.Column(db.Integer)
auto_dealership = db.Column(db.Integer)
bank = db.Column(db.Integer)
bar_nightclub = db.Column(db.Integer)
campground = db.Column(db.Integer)
church__synagogue__temple__mosque = db.Column(db.Integer)
commercial__office_building = db.Column(db.Integer)
community_center = db.Column(db.Integer)
construction_site = db.Column(db.Integer)
cyberspace = db.Column(db.Integer)
daycare_facility = db.Column(db.Integer)
department__discount_store = db.Column(db.Integer)
dock__wharf__shipping_terminal = db.Column(db.Integer)
drug_store__doctors_office__hospital = db.Column(db.Integer)
farm_facility = db.Column(db.Integer)
field__woods = db.Column(db.Integer)
gambling_facility__casino__race_track = db.Column(db.Integer)
government__public_building = db.Column(db.Integer)
grocery_store = db.Column(db.Integer)
highway__alley__street__sidewalk = db.Column(db.Integer)
hotel__motel = db.Column(db.Integer)
industrial_site = db.Column(db.Integer)
jail__prison__corrections_facility = db.Column(db.Integer)
lake__waterway__beach = db.Column(db.Integer)
liquor_store = db.Column(db.Integer)
military_base = db.Column(db.Integer)
unknown = db.Column(db.Integer)
park__playground = db.Column(db.Integer)
rental_storage_facility = db.Column(db.Integer)
rest_area = db.Column(db.Integer)
restaurant = db.Column(db.Integer)
school__college = db.Column(db.Integer)
school_college__university = db.Column(db.Integer)
school_elementary__secondary = db.Column(db.Integer)
gas_station = db.Column(db.Integer)
mission__homeless_shelter = db.Column(db.Integer)
shopping_mall = db.Column(db.Integer)
specialty_store = db.Column(db.Integer)
tribal_lands = db.Column(db.Integer)
convenience_store = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalVictimDenormCount(db.Model):
"""Represents Agency Level NIBRS Victim Count Data"""
__tablename__ = 'nibrs_national_denorm_victim_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalVictimDenormSex(db.Model):
"""Represents Agency Level NIBRS Victim Data"""
__tablename__ = 'nibrs_national_denorm_victim_sex'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
male_count = db.Column(db.Integer)
female_count = db.Column(db.Integer)
unknown_count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalVictimDenormRace(db.Model):
"""Represents Agency Level NIBRS Victim Race Data"""
__tablename__ = 'nibrs_national_denorm_victim_race'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
asian = db.Column(db.Integer)
native_hawaiian = db.Column(db.Integer)
black = db.Column(db.Integer)
american_indian = db.Column(db.Integer)
unknown = db.Column(db.Integer)
white = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalVictimDenormEthnicity(db.Model):
"""Represents Agency Level NIBRS Victim Ethnicity Data"""
__tablename__ = 'nibrs_national_denorm_victim_ethnicity'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
hispanic = db.Column(db.Integer)
multiple = db.Column(db.Integer)
not_hispanic = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalVictimDenormAge(db.Model):
"""Represents Agency Level NIBRS Victim Age Data"""
__tablename__ = 'nibrs_national_denorm_victim_age'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
range_0_9 = db.Column(db.Integer)
range_10_19 = db.Column(db.Integer)
range_20_29 = db.Column(db.Integer)
range_30_39 = db.Column(db.Integer)
range_40_49 = db.Column(db.Integer)
range_50_59 = db.Column(db.Integer)
range_60_69 = db.Column(db.Integer)
range_70_79 = db.Column(db.Integer)
range_80_89 = db.Column(db.Integer)
range_90_99 = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalVictimDenormLocation(db.Model):
"""Represents Agency Level NIBRS Victim Location Data"""
__tablename__ = 'nibrs_national_denorm_victim_location'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
residence_home = db.Column(db.Integer)
parking_garage__lot = db.Column(db.Integer)
abandoned_condemned__structure = db.Column(db.Integer)
air__bus__train_terminal = db.Column(db.Integer)
amusement_park = db.Column(db.Integer)
arena__stadium__fairgrounds = db.Column(db.Integer)
atm_separate_from_bank = db.Column(db.Integer)
auto_dealership = db.Column(db.Integer)
bank = db.Column(db.Integer)
bar_nightclub = db.Column(db.Integer)
campground = db.Column(db.Integer)
church__synagogue__temple__mosque = db.Column(db.Integer)
commercial__office_building = db.Column(db.Integer)
community_center = db.Column(db.Integer)
construction_site = db.Column(db.Integer)
cyberspace = db.Column(db.Integer)
daycare_facility = db.Column(db.Integer)
department__discount_store = db.Column(db.Integer)
dock__wharf__shipping_terminal = db.Column(db.Integer)
drug_store__doctors_office__hospital = db.Column(db.Integer)
farm_facility = db.Column(db.Integer)
field__woods = db.Column(db.Integer)
gambling_facility__casino__race_track = db.Column(db.Integer)
government__public_building = db.Column(db.Integer)
grocery_store = db.Column(db.Integer)
highway__alley__street__sidewalk = db.Column(db.Integer)
hotel__motel = db.Column(db.Integer)
industrial_site = db.Column(db.Integer)
jail__prison__corrections_facility = db.Column(db.Integer)
lake__waterway__beach = db.Column(db.Integer)
liquor_store = db.Column(db.Integer)
military_base = db.Column(db.Integer)
unknown = db.Column(db.Integer)
park__playground = db.Column(db.Integer)
rental_storage_facility = db.Column(db.Integer)
rest_area = db.Column(db.Integer)
restaurant = db.Column(db.Integer)
school__college = db.Column(db.Integer)
school_college__university = db.Column(db.Integer)
school_elementary__secondary = db.Column(db.Integer)
gas_station = db.Column(db.Integer)
mission__homeless_shelter = db.Column(db.Integer)
shopping_mall = db.Column(db.Integer)
specialty_store = db.Column(db.Integer)
tribal_lands = db.Column(db.Integer)
convenience_store = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSOffenderCount(db.Model):
"""Represents Agency Level NIBRS Offender Data"""
__tablename__ = 'nibrs_offender_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
def get(ori=None):
query = NIBRSOffenderCount.query
if ori:
query = query.filter(func.lower(NIBRSOffenderCount.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
data_year = db.Column(db.Integer)
offense_name = db.Column(db.String)
type_name = db.Column(db.String)
sex_code = db.Column(db.String(1))
age_range = db.Column(db.String)
race_description = db.Column(db.String)
ethnicity_name = db.Column(db.String)
location_name = db.Column(db.String)
count = db.Column(db.Integer)
class NIBRSAgencyOffenderDenormCount(db.Model):
"""Represents Agency Level NIBRS Offender Count Data"""
__tablename__ = 'nibrs_agency_denorm_offender_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyOffenderDenormCount.query
if ori:
query = query.filter(func.lower(NIBRSAgencyOffenderDenormCount.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyOffenderDenormCount_index = Index('ori_index_nibrs_agency_denorm_offender_count', NIBRSAgencyOffenderDenormCount.ori)
class NIBRSAgencyOffenderDenormSex(db.Model):
"""Represents Agency Level NIBRS Offender Data"""
__tablename__ = 'nibrs_agency_denorm_offender_sex'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyOffenderDenormSex.query
if ori:
query = query.filter(func.lower(NIBRSAgencyOffenderDenormSex.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
male_count = db.Column(db.Integer)
female_count = db.Column(db.Integer)
unknown_count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyOffenderDenormSex_index = Index('ori_index_nibrs_agency_denorm_offender_sex', NIBRSAgencyOffenderDenormSex.ori)
class NIBRSAgencyOffenderDenormRace(db.Model):
"""Represents Agency Level NIBRS Offender Race Data"""
__tablename__ = 'nibrs_agency_denorm_offender_race'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyOffenderDenormRace.query
if ori:
query = query.filter(func.lower(NIBRSAgencyOffenderDenormRace.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
asian = db.Column(db.Integer)
native_hawaiian = db.Column(db.Integer)
black = db.Column(db.Integer)
american_indian = db.Column(db.Integer)
unknown = db.Column(db.Integer)
white = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyOffenderDenormRace_index = Index('ori_index_nibrs_agency_denorm_offender_race', NIBRSAgencyOffenderDenormRace.ori)
class NIBRSAgencyOffenderDenormEthnicity(db.Model):
"""Represents Agency Level NIBRS Offender Ethnicity Data"""
__tablename__ = 'nibrs_agency_denorm_offender_ethnicity'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyOffenderDenormEthnicity.query
if ori:
query = query.filter(func.lower(NIBRSAgencyOffenderDenormEthnicity.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
hispanic = db.Column(db.Integer)
multiple = db.Column(db.Integer)
not_hispanic = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyOffenderDenormEthnicity_index = Index('ori_index_nibrs_agency_denorm_offender_ethnicity', NIBRSAgencyOffenderDenormEthnicity.ori)
class NIBRSAgencyOffenderDenormAge(db.Model):
"""Represents Agency Level NIBRS Offender Age Data"""
__tablename__ = 'nibrs_agency_denorm_offender_age'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyOffenderDenormAge.query
if ori:
query = query.filter(func.lower(NIBRSAgencyOffenderDenormAge.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
range_0_9 = db.Column(db.Integer)
range_10_19 = db.Column(db.Integer)
range_20_29 = db.Column(db.Integer)
range_30_39 = db.Column(db.Integer)
range_40_49 = db.Column(db.Integer)
range_50_59 = db.Column(db.Integer)
range_60_69 = db.Column(db.Integer)
range_70_79 = db.Column(db.Integer)
range_80_89 = db.Column(db.Integer)
range_90_99 = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyOffenderDenormAge_index = Index('ori_index_nibrs_agency_denorm_offender_age', NIBRSAgencyOffenderDenormAge.ori)
class NIBRSStateOffenderDenormCount(db.Model):
"""Represents Agency Level NIBRS Offender Count Data"""
__tablename__ = 'nibrs_state_denorm_offender_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateOffenderDenormCount.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateOffenderDenormCount.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateOffenderDenormSex(db.Model):
"""Represents Agency Level NIBRS Offender Data"""
__tablename__ = 'nibrs_state_denorm_offender_sex'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateOffenderDenormSex.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateOffenderDenormSex.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
male_count = db.Column(db.Integer)
female_count = db.Column(db.Integer)
unknown_count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateOffenderDenormRace(db.Model):
"""Represents Agency Level NIBRS Offender Race Data"""
__tablename__ = 'nibrs_state_denorm_offender_race'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateOffenderDenormRace.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateOffenderDenormRace.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
asian = db.Column(db.Integer)
native_hawaiian = db.Column(db.Integer)
black = db.Column(db.Integer)
american_indian = db.Column(db.Integer)
unknown = db.Column(db.Integer)
white = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateOffenderDenormEthnicity(db.Model):
"""Represents Agency Level NIBRS Offender Ethnicity Data"""
__tablename__ = 'nibrs_state_denorm_offender_ethnicity'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateOffenderDenormEthnicity.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateOffenderDenormEthnicity.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
hispanic = db.Column(db.Integer)
multiple = db.Column(db.Integer)
not_hispanic = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSStateOffenderDenormAge(db.Model):
"""Represents Agency Level NIBRS Offender Age Data"""
__tablename__ = 'nibrs_state_denorm_offender_age'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateOffenderDenormAge.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateOffenderDenormAge.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
range_0_9 = db.Column(db.Integer)
range_10_19 = db.Column(db.Integer)
range_20_29 = db.Column(db.Integer)
range_30_39 = db.Column(db.Integer)
range_40_49 = db.Column(db.Integer)
range_50_59 = db.Column(db.Integer)
range_60_69 = db.Column(db.Integer)
range_70_79 = db.Column(db.Integer)
range_80_89 = db.Column(db.Integer)
range_90_99 = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalOffenderDenormCount(db.Model):
"""Represents Agency Level NIBRS Offender Count Data"""
__tablename__ = 'nibrs_national_denorm_offender_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalOffenderDenormSex(db.Model):
"""Represents Agency Level NIBRS Offender Data"""
__tablename__ = 'nibrs_national_denorm_offender_sex'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
male_count = db.Column(db.Integer)
female_count = db.Column(db.Integer)
unknown_count = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalOffenderDenormRace(db.Model):
"""Represents Agency Level NIBRS Offender Race Data"""
__tablename__ = 'nibrs_national_denorm_offender_race'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
asian = db.Column(db.Integer)
native_hawaiian = db.Column(db.Integer)
black = db.Column(db.Integer)
american_indian = db.Column(db.Integer)
unknown = db.Column(db.Integer)
white = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalOffenderDenormEthnicity(db.Model):
"""Represents Agency Level NIBRS Offender Ethnicity Data"""
__tablename__ = 'nibrs_national_denorm_offender_ethnicity'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
hispanic = db.Column(db.Integer)
multiple = db.Column(db.Integer)
not_hispanic = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalOffenderDenormAge(db.Model):
"""Represents Agency Level NIBRS Offender Age Data"""
__tablename__ = 'nibrs_national_denorm_offender_age'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
range_0_9 = db.Column(db.Integer)
range_10_19 = db.Column(db.Integer)
range_20_29 = db.Column(db.Integer)
range_30_39 = db.Column(db.Integer)
range_40_49 = db.Column(db.Integer)
range_50_59 = db.Column(db.Integer)
range_60_69 = db.Column(db.Integer)
range_70_79 = db.Column(db.Integer)
range_80_89 = db.Column(db.Integer)
range_90_99 = db.Column(db.Integer)
unknown = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalDenormVictimOffenderRelationship(db.Model):
"""Represents Agency Level NIBRS Offender Data"""
__tablename__ = 'nibrs_national_denorm_victim_offender_relationship'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
acquaintance = db.Column(db.Integer)
babysittee = db.Column(db.Integer)
boyfriend_girlfriend = db.Column(db.Integer)
child_boyfriend_girlfriend = db.Column(db.Integer)
child = db.Column(db.Integer)
common_law_spouse = db.Column(db.Integer)
employee = db.Column(db.Integer)
employer = db.Column(db.Integer)
friend = db.Column(db.Integer)
grandchild = db.Column(db.Integer)
grandparent = db.Column(db.Integer)
homosexual_relationship = db.Column(db.Integer)
in_law = db.Column(db.Integer)
neighbor = db.Column(db.Integer)
other_family_member = db.Column(db.Integer)
otherwise_known = db.Column(db.Integer)
parent = db.Column(db.Integer)
relationship_unknown = db.Column(db.Integer)
sibling = db.Column(db.Integer)
stepchild = db.Column(db.Integer)
spouse = db.Column(db.Integer)
stepparent = db.Column(db.Integer)
stepsibling = db.Column(db.Integer)
stranger = db.Column(db.Integer)
offender = db.Column(db.Integer)
ex_spouse = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSAgencyDenormVictimOffenderRelationship(db.Model):
"""Represents Agency Level NIBRS Victim Data"""
__tablename__ = 'nibrs_agency_denorm_victim_offender_relationship'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyDenormVictimOffenderRelationship.query
if ori:
query = query.filter(func.lower(NIBRSAgencyDenormVictimOffenderRelationship.ori) == func.lower(ori))
return query
agency_id = db.Column(db.Integer)
ori = db.Column(db.String)
offense_name = db.Column(db.String)
acquaintance = db.Column(db.Integer)
babysittee = db.Column(db.Integer)
boyfriend_girlfriend = db.Column(db.Integer)
child_boyfriend_girlfriend = db.Column(db.Integer)
child = db.Column(db.Integer)
common_law_spouse = db.Column(db.Integer)
employee = db.Column(db.Integer)
employer = db.Column(db.Integer)
friend = db.Column(db.Integer)
grandchild = db.Column(db.Integer)
grandparent = db.Column(db.Integer)
homosexual_relationship = db.Column(db.Integer)
in_law = db.Column(db.Integer)
neighbor = db.Column(db.Integer)
other_family_member = db.Column(db.Integer)
otherwise_known = db.Column(db.Integer)
parent = db.Column(db.Integer)
relationship_unknown = db.Column(db.Integer)
sibling = db.Column(db.Integer)
stepchild = db.Column(db.Integer)
spouse = db.Column(db.Integer)
stepparent = db.Column(db.Integer)
stepsibling = db.Column(db.Integer)
stranger = db.Column(db.Integer)
offender = db.Column(db.Integer)
ex_spouse = db.Column(db.Integer)
data_year = db.Column(db.Integer)
NIBRSAgencyDenormVictimOffenderRelationship_index = Index('ori_index_nibrs_agency_denorm_victim_offender_relationship', NIBRSAgencyDenormVictimOffenderRelationship.ori)
class NIBRSStateDenormVictimOffenderRelationship(db.Model):
"""Represents Agency Level NIBRS Victim Data"""
__tablename__ = 'nibrs_state_denorm_victim_offender_relationship'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateDenormVictimOffenderRelationship.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateDenormVictimOffenderRelationship.state_abbr) == func.lower(state_abbr))
return query
state_id = db.Column(db.Integer)
state_abbr = db.Column(db.String)
offense_name = db.Column(db.String)
acquaintance = db.Column(db.Integer)
babysittee = db.Column(db.Integer)
boyfriend_girlfriend = db.Column(db.Integer)
child_boyfriend_girlfriend = db.Column(db.Integer)
child = db.Column(db.Integer)
common_law_spouse = db.Column(db.Integer)
employee = db.Column(db.Integer)
employer = db.Column(db.Integer)
friend = db.Column(db.Integer)
grandchild = db.Column(db.Integer)
grandparent = db.Column(db.Integer)
homosexual_relationship = db.Column(db.Integer)
in_law = db.Column(db.Integer)
neighbor = db.Column(db.Integer)
other_family_member = db.Column(db.Integer)
otherwise_known = db.Column(db.Integer)
parent = db.Column(db.Integer)
relationship_unknown = db.Column(db.Integer)
sibling = db.Column(db.Integer)
stepchild = db.Column(db.Integer)
spouse = db.Column(db.Integer)
stepparent = db.Column(db.Integer)
stepsibling = db.Column(db.Integer)
stranger = db.Column(db.Integer)
offender = db.Column(db.Integer)
ex_spouse = db.Column(db.Integer)
data_year = db.Column(db.Integer)
class NIBRSNationalOffenseCount(db.Model):
"""Represents Agency Level NIBRS Offender Ethnicity Data"""
__tablename__ = 'nibrs_national_denorm_offense_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year'),
)
offense_name = db.Column(db.String)
data_year = db.Column(db.Integer)
incident_count = db.Column(db.Integer)
offense_count = db.Column(db.Integer)
class NIBRSAgencyOffenseCount(db.Model):
"""Represents Agency Level NIBRS Offender Ethnicity Data"""
__tablename__ = 'nibrs_agency_denorm_offense_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','ori'),
)
def get(ori=None):
query = NIBRSAgencyOffenseCount.query
if ori:
query = query.filter(func.lower(NIBRSAgencyOffenseCount.ori) == func.lower(ori))
return query
offense_name = db.Column(db.String)
ori = db.Column(db.String)
agency_id = db.Column(db.Integer)
data_year = db.Column(db.Integer)
incident_count = db.Column(db.Integer)
offense_count = db.Column(db.Integer)
NIBRSAgencyOffenseCount_index = Index('ori_index_nibrs_agency_denorm_offense_count', NIBRSAgencyOffenseCount.ori)
class NIBRSStateOffenseCount(db.Model):
"""Represents Agency Level NIBRS Offender Ethnicity Data"""
__tablename__ = 'nibrs_state_denorm_offense_count'
__table_args__ = (
PrimaryKeyConstraint('offense_name', 'data_year','state_id'),
)
def get(state_abbr=None):
query = NIBRSStateOffenseCount.query
if state_abbr:
query = query.filter(func.lower(NIBRSStateOffenseCount.state_abbr) == func.lower(state_abbr))
return query
offense_name = db.Column(db.String)
state_abbr = db.Column(db.String)
state_id = db.Column(db.Integer)
data_year = db.Column(db.Integer)
incident_count = db.Column(db.Integer)
offense_count = db.Column(db.Integer)
| 36.372335
| 249
| 0.678001
| 8,289
| 66,525
| 5.180963
| 0.059476
| 0.103388
| 0.129235
| 0.179322
| 0.822843
| 0.811433
| 0.795063
| 0.782559
| 0.744161
| 0.724601
| 0
| 0.004899
| 0.214566
| 66,525
| 1,828
| 250
| 36.392232
| 0.816999
| 0.058865
| 0
| 0.74026
| 0
| 0.012987
| 0.155288
| 0.044827
| 0
| 0
| 0
| 0
| 0
| 1
| 0.049784
| false
| 0.000722
| 0.010101
| 0.007937
| 0.643579
| 0.000722
| 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
|
1c0df624bd162b9446e449186cc4855cf927da52
| 232,352
|
py
|
Python
|
src/tests/test_pagure_flask_ui_issues.py
|
yifengyou/learn-pagure
|
e54ba955368918c92ad2be6347b53bb2c24a228c
|
[
"Unlicense"
] | null | null | null |
src/tests/test_pagure_flask_ui_issues.py
|
yifengyou/learn-pagure
|
e54ba955368918c92ad2be6347b53bb2c24a228c
|
[
"Unlicense"
] | null | null | null |
src/tests/test_pagure_flask_ui_issues.py
|
yifengyou/learn-pagure
|
e54ba955368918c92ad2be6347b53bb2c24a228c
|
[
"Unlicense"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
(c) 2015-2018 - Copyright Red Hat Inc
Authors:
Pierre-Yves Chibon <pingou@pingoured.fr>
"""
from __future__ import unicode_literals, absolute_import
from unittest.case import SkipTest
import json
import unittest
import shutil
import sys
import os
try:
import pyclamd
except ImportError:
pyclamd = None
import pagure_messages
import six
import tempfile
import re
from datetime import datetime, timedelta
from fedora_messaging import testing
from six.moves.urllib.parse import urlparse, parse_qs
import pygit2
from bs4 import BeautifulSoup
from mock import ANY, patch, MagicMock
sys.path.insert(
0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
)
import pagure.lib.query
import tests
class PagureFlaskIssuestests(tests.Modeltests):
""" Tests for flask issues controller of pagure """
@patch.dict(
"pagure.config.config", {"ENABLE_TICKETS_NAMESPACE": ["foobar"]}
)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_new_issue_wrong_namespace(self):
""" Test the new_issue endpoint. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
# Things work fine when the project has no namespace
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
# Things do not work when the project has a namespace not allowed
output = self.app.post(
"/somenamespace/test3/new_issue",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 404)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Page not found :'( - Pagure</title>", output_text
)
self.assertIn(
" <p>No issue tracker found for this project</p>", output_text
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_new_issue(self, p_send_email, p_ugt):
""" Test the new_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
# No Git repo
output = self.app.get("/foo/new_issue")
self.assertEqual(output.status_code, 404)
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/foo/new_issue")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(
os.path.join(self.path, "repos"), bare=True
)
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
self.assertIn("New Issue", output.get_data(as_text=True))
csrf_token = self.get_csrf(output=output)
data = {}
# Insufficient input
output = self.app.post("/test/new_issue", data=data)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output_text,
)
self.assertEqual(output_text.count("This field is required."), 2)
data["title"] = "Test issue"
output = self.app.post("/test/new_issue", data=data)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output_text,
)
self.assertEqual(output_text.count("This field is required."), 1)
data["issue_content"] = "We really should improve on this issue"
data["status"] = "Open"
output = self.app.post("/test/new_issue", data=data)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output_text,
)
self.assertEqual(output_text.count("This field is required."), 0)
# Invalid user
data["csrf_token"] = csrf_token
output = self.app.post("/test/new_issue", data=data)
self.assertEqual(output.status_code, 404)
self.assertIn(
"<p>No such user found in the database: username</p>",
output.get_data(as_text=True),
)
# User not logged in
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 302)
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 404)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_new_issue_customized(self):
""" Test the new_issue endpoint. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "repos", "tickets"), bare=True
)
tests.add_content_to_git(
os.path.join(self.path, "repos", "tickets", "test.git"),
branch="master",
folders="templates",
filename="contributing.md",
content="This is a text pulled from the contributing template",
message="Add a contributing.md template",
)
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("New Issue", output_text)
self.assertIn(
"This is a text pulled from the contributing template",
output_text,
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_new_issue_w_file(self, p_send_email, p_ugt):
""" Test the new_issue endpoint with a file. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output.get_data(as_text=True),
)
csrf_token = self.get_csrf()
with open(os.path.join(tests.HERE, "placebo.png"), "rb") as stream:
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue\n"
"<!!image>",
"status": "Open",
"filestream": stream,
"enctype": "multipart/form-data",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
# Check the image was uploaded
self.assertIn(
'href="/test/issue/raw/files/'
"8a06845923010b27bfd8e7e75acff7badc40d1021b4"
"994e01f5e11ca40bc3abe",
output_text,
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_new_issue_w_file_no_issue_tracker(self, p_send_email, p_ugt):
""" Test the new_issue endpoint with a file. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
with open(os.path.join(tests.HERE, "placebo.png"), "rb") as stream:
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"filestream": stream,
"enctype": "multipart/form-data",
"csrf_token": self.get_csrf(),
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 404)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_new_issue_w_file_namespace(self, p_send_email, p_ugt):
""" Test the new_issue endpoint with a file. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Project with a namespace
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/somenamespace/test3/new_issue")
self.assertEqual(output.status_code, 200)
self.assertTrue(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n'
in output.get_data(as_text=True)
)
csrf_token = self.get_csrf()
with open(os.path.join(tests.HERE, "placebo.png"), "rb") as stream:
data = {
"title": "Test issue3",
"issue_content": "We really should improve on this issue\n"
"<!!image>",
"status": "Open",
"filestream": stream,
"enctype": "multipart/form-data",
"csrf_token": csrf_token,
}
output = self.app.post(
"/somenamespace/test3/new_issue",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue3 - test3 - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/somenamespace/test3/issue/1/edit" title="Edit this issue">\n',
output_text,
)
# Check the image was uploaded
self.assertIn(
'href="/somenamespace/test3/issue/raw/files/'
"8a06845923010b27bfd8e7e75acff7badc40d1021b4"
"994e01f5e11ca40bc3abe",
output_text,
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_new_issue_w_files(self, p_send_email, p_ugt):
""" Test the new_issue endpoint with two files. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
self.assertTrue(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n'
in output.get_data(as_text=True)
)
csrf_token = self.get_csrf()
with open(os.path.join(tests.HERE, "placebo.png"), "rb") as stream:
with open(
os.path.join(tests.HERE, "pagure.png"), "rb"
) as stream2:
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue\n"
"<!!image>\n<!!image>",
"status": "Open",
"filestream": [stream, stream2],
"enctype": "multipart/form-data",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
# Check the image was uploaded
self.assertIn(
'href="/test/issue/raw/files/'
"8a06845923010b27bfd8e7e75acff7badc40d1021b4"
"994e01f5e11ca40bc3abe",
output_text,
)
self.assertIn(
'href="/test/issue/raw/files/'
"6498a2de405546200b6144da56fc25d0a3976ae688d"
"bfccaca609c8b4480523e",
output_text,
)
# Check that the files are accessible
_, full_name = output_text.split("/test/issue/raw/files/", 1)
full_name1, full_name2 = full_name.split(
"/test/issue/raw/files/", 1
)
full_name1 = full_name1.split(".png", 1)[0]
full_name2 = full_name2.split(".png", 1)[0]
for full_name in [full_name1, full_name2]:
req = self.app.get("/test/issue/raw/files/%s.png" % full_name)
self.assertEqual(req.status_code, 200)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_new_issue_w_files_namespace(self, p_send_email, p_ugt):
""" Test the new_issue endpoint with two files. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Project with a namespace
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/somenamespace/test3/new_issue")
self.assertEqual(output.status_code, 200)
self.assertTrue(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n'
in output.get_data(as_text=True)
)
csrf_token = self.get_csrf()
with open(os.path.join(tests.HERE, "placebo.png"), "rb") as stream:
with open(
os.path.join(tests.HERE, "pagure.png"), "rb"
) as stream2:
data = {
"title": "Test issue3",
"issue_content": "We really should improve on this issue\n"
"<!!image>\n<!!image>",
"status": "Open",
"filestream": [stream, stream2],
"enctype": "multipart/form-data",
"csrf_token": csrf_token,
}
output = self.app.post(
"/somenamespace/test3/new_issue",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue3 - test3 - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/somenamespace/test3/issue/1/edit" title="Edit this issue">\n',
output_text,
)
# Check the image was uploaded
self.assertIn(
'href="/somenamespace/test3/issue/raw/files/'
"8a06845923010b27bfd8e7e75acff7badc40d1021b4"
"994e01f5e11ca40bc3abe",
output_text,
)
self.assertIn(
'href="/somenamespace/test3/issue/raw/files/'
"6498a2de405546200b6144da56fc25d0a3976ae688d"
"bfccaca609c8b4480523e",
output_text,
)
def test_new_issue_metadata_user(self):
"""Test the new_issue endpoint when the user has access to the
project."""
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output_text,
)
self.assertIn("<strong>Tags</strong>", output_text)
self.assertIn("<strong>Assignee</strong>", output_text)
def test_new_issue_metadata_not_user(self):
"""Test the new_issue endpoint when the user does not have access
to the project."""
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
user = tests.FakeUser()
user.username = "foo"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output_text,
)
self.assertNotIn("<strong>Tags</strong>", output_text)
self.assertNotIn("<strong>Assignee</strong>", output_text)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_new_issue_with_metadata(self):
"""Test the new_issue endpoint when the user has access to the
project."""
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Set some milestone
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.milestones = {"v1.0": "", "v2.0": "Tomorrow!"}
self.session.add(repo)
self.session.commit()
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output_text,
)
self.assertIn("<strong>Tags</strong>", output_text)
self.assertIn("<strong>Assignee</strong>", output_text)
csrf_token = self.get_csrf(output=output)
data = {
"title": "Test issue3",
"issue_content": "We really should improve on this issue\n",
"status": "Open",
"assignee": "foo",
"milestone": "v2.0",
"tag": "tag2",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue3 - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
# Check the metadata
self.assertIn(
'title="comma separated list of tags"\n '
'value="tag2" />',
output_text,
)
self.assertIn(
'placeholder="username"\n value="foo" />\n',
output_text,
)
self.assertIn('href="/test/roadmap/v2.0/"', output_text)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_new_issue_with_metadata_not_user(self):
"""Test the new_issue endpoint when the user does not have access
to the project but still tries to.
"""
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Set some milestone
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.milestones = {"v1.0": "", "v2.0": "Tomorrow!"}
self.session.add(repo)
self.session.commit()
user = tests.FakeUser()
user.username = "foo"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n',
output_text,
)
self.assertNotIn("<strong>Tags</strong>", output_text)
self.assertNotIn("<strong>Assignee</strong>", output_text)
csrf_token = self.get_csrf(output=output)
data = {
"title": "Test issue3",
"issue_content": "We really should improve on this issue\n",
"status": "Open",
"assignee": "foo",
"milestone": "v2.0",
"tag": "tag2",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue3 - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
# Check the metadata
self.assertNotIn(
'title="comma separated list of tags"\n '
'value="tag2" />',
output_text,
)
self.assertNotIn(
'placeholder="username"\n value="foo" />\n',
output_text,
)
self.assertNotIn(
'<div id="milestone_plain">\n <span>'
'\n <a href="/test/roadmap/v2.0/">'
"\n v2.0\n",
output_text,
)
@patch.dict(
"pagure.config.config", {"ENABLE_TICKETS_NAMESPACE": ["foobar"]}
)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_view_issues_wrong_namespace(self):
""" Test the view_issues endpoint. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
# Things work fine when the project has no namespace
output = self.app.get("/test/issues")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
# Things do not work when the project has a namespace not allowed
output = self.app.get("/somenamespace/test3/issues")
self.assertEqual(output.status_code, 404)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Page not found :'( - Pagure</title>", output_text
)
self.assertIn(
" <p>No issue tracker found for this project</p>", output_text
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issues(self, p_send_email, p_ugt):
""" Test the view_issues endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
output = self.app.get("/foo/issues")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
output = self.app.get("/test/issues")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<i class="fa fa-calendar-o fa-rotate-270 text-muted"></i></h3>',
output_text,
)
self.assertIn('<a href="/test"><strong>test</strong></a>', output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 0 Open Issues\n',
output_text,
)
repo = pagure.lib.query.get_authorized_project(self.session, "test")
# Create some custom fields to play with
msg = pagure.lib.query.set_custom_key_fields(
session=self.session,
project=repo,
fields=["test1"],
types=["text"],
data=[None],
notify=[None],
)
self.session.commit()
self.assertEqual(msg, "List of custom fields updated")
cfield = pagure.lib.query.get_custom_key(
session=self.session, project=repo, keyname="test1"
)
# Create issues to play with
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="tést íssüé",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "tést íssüé")
msg = pagure.lib.query.set_custom_key_value(
session=self.session, issue=msg, key=cfield, value="firstissue"
)
self.session.commit()
self.assertEqual(msg, "Custom field test1 adjusted to firstissue")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Tést íssüé with milestone",
content="Testing search",
user="pingou",
milestone="1.1",
)
self.session.commit()
self.assertEqual(msg.title, "Tést íssüé with milestone")
# Add a comment to that ticket
pagure.lib.query.add_issue_comment(
session=self.session,
issue=msg,
comment="How about nóã!",
user="foo",
)
self.session.commit()
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test invalid issue",
content="This really is not related",
user="pingou",
status="Closed",
close_status="Invalid",
)
self.session.commit()
self.assertEqual(msg.title, "Test invalid issue")
msg = pagure.lib.query.set_custom_key_value(
session=self.session, issue=msg, key=cfield, value="second issue"
)
self.session.commit()
self.assertEqual(msg, "Custom field test1 adjusted to second issue")
# Whole list
output = self.app.get("/test/issues")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 2 Open Issues\n',
output_text,
)
self.assertIn('title="2 Open Issues | 1 Closed Issues', output_text)
self.assertIn(
'bg-success" role="progressbar"\n'
' data-width="67%"\n',
output_text,
)
# Status = closed (all but open)
output = self.app.get("/test/issues?status=cloSED")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 1 Closed Issues\n',
output_text,
)
self.assertIn('title="2 Open Issues | 1 Closed Issues"', output_text)
self.assertIn(
'bg-danger" role="progressbar"\n'
' data-width="33%"\n',
output_text,
)
# Status = fixed
output = self.app.get("/test/issues?status=fixed")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 0 Closed:Fixed Issues\n',
output_text,
)
# Status = Invalid
output = self.app.get("/test/issues?status=Invalid")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertTrue(
'<span class="fa fa-fw fa-exclamation-circle"></span> 1 Closed:Invalid Issues\n'
in output_text
)
# All tickets
output = self.app.get("/test/issues?status=all")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertTrue(
'<span class="fa fa-fw fa-exclamation-circle"></span> 3 Open & Closed Issues\n'
in output_text
)
# Unicode search pattern
output = self.app.get("/test/issues?status=all&search_pattern=گروه")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn("0 Open & Closed Issues", output_text)
# Content search - description
output = self.app.get(
"/test/issues?status=all&search_pattern=content:work"
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn("1 Open & Closed Issues", output_text)
# Content search - comment
output = self.app.get(
"/test/issues?status=all&search_pattern=content:nóã"
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn("1 Open & Closed Issues", output_text)
# Custom key searching
output = self.app.get(
"/test/issues?status=all&search_pattern=test1:firstissue"
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn("1 Open & Closed Issues", output_text)
# Custom key searching with space
output = self.app.get(
'/test/issues?status=all&search_pattern=test1:"second issue"'
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn("1 Open & Closed Issues", output_text)
# All tickets - different pagination
before = pagure.config.config["ITEM_PER_PAGE"]
pagure.config.config["ITEM_PER_PAGE"] = 1
output = self.app.get("/test/issues?status=all")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 3 Open & Closed Issues\n',
output_text,
)
self.assertIn("page 1 of 3", output_text)
# All tickets - filtered for 1 - checking the pagination
output = self.app.get("/test/issues?status=all&search_pattern=invalid")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 1 Open & Closed Issues\n',
output_text,
)
self.assertNotIn("page 1", output_text)
pagure.config.config["ITEM_PER_PAGE"] = before
# Search for issues with no milestone MARK
output = self.app.get("/test/issues?milestone=none")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 1 Open Issues\n',
output_text,
)
# Search for issues with no milestone and milestone 1.1
output = self.app.get("/test/issues?milestone=none&milestone=1.1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 2 Open Issues\n',
output_text,
)
# Add another issue to test sorting
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Big problÈm!",
content="I need help ASAP",
user="foo",
)
self.session.commit()
self.assertEqual(msg.title, "Big problÈm!")
# Sort by last_updated
output = self.app.get("/test/issues?order_key=last_updated")
self.assertEqual(output.status_code, 200)
tr_elements = re.findall(
r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
output.get_data(as_text=True),
re.M | re.S,
)
# Make sure that issue four is first since it was modified last
self.assertIn('href="/test/issue/4"', tr_elements[0])
# Make sure that issue two is second since it was modified second
self.assertIn('href="/test/issue/2"', tr_elements[1])
# Make sure that issue one is last since it was modified first
self.assertIn('href="/test/issue/1"', tr_elements[2])
# Modify the date of the first issue and try again
issue_one = pagure.lib.query.search_issues(self.session, repo, 1)
issue_one.last_updated = datetime.utcnow() + timedelta(seconds=2)
self.session.add(issue_one)
self.session.commit()
output = self.app.get("/test/issues?order_key=last_updated")
self.assertEqual(output.status_code, 200)
tr_elements = re.findall(
r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
output.get_data(as_text=True),
re.M | re.S,
)
# Make sure that issue one is first since it was modified last
self.assertIn('href="/test/issue/1"', tr_elements[0])
# Make sure that issue four is second since it was modified before
# last
self.assertIn('href="/test/issue/4"', tr_elements[1])
# Make sure that issue two is last since it was modified before issue
# one and four
self.assertIn('href="/test/issue/2"', tr_elements[2])
# Now query so that the results are ascending
output = self.app.get("/test/issues?order_key=last_updated&order=asc")
tr_elements = re.findall(
r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
output.get_data(as_text=True),
re.M | re.S,
)
self.assertIn('href="/test/issue/2"', tr_elements[0])
self.assertIn('href="/test/issue/4"', tr_elements[1])
self.assertIn('href="/test/issue/1"', tr_elements[2])
# Sort by title descending
output = self.app.get("/test/issues?order_key=title")
self.assertEqual(output.status_code, 200)
tr_elements = re.findall(
r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
output.get_data(as_text=True),
re.M | re.S,
)
self.assertIn('href="/test/issue/2"', tr_elements[0])
self.assertIn('href="/test/issue/1"', tr_elements[1])
self.assertIn('href="/test/issue/4"', tr_elements[2])
# Sort by title ascending
output = self.app.get("/test/issues?order_key=title&order=asc")
self.assertEqual(output.status_code, 200)
tr_elements = re.findall(
r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
output.get_data(as_text=True),
re.M | re.S,
)
self.assertIn('href="/test/issue/4"', tr_elements[0])
self.assertIn('href="/test/issue/1"', tr_elements[1])
self.assertIn('href="/test/issue/2"', tr_elements[2])
# Sort by user (reporter/author) descending
output = self.app.get("/test/issues?order_key=user&order=desc")
self.assertEqual(output.status_code, 200)
tr_elements = re.findall(
r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
output.get_data(as_text=True),
re.M | re.S,
)
# We check that they are unassigned, otherwise our previous check is
# not specific enough as it can catch an assignee of "pingou"
self.assertNotIn("fa-user-plus", tr_elements[0])
self.assertIn("pingou", tr_elements[1])
self.assertNotIn("fa-user-plus", tr_elements[1])
self.assertIn("foo", tr_elements[2])
self.assertNotIn("fa-user-plus", tr_elements[2])
# Sort by user (reporter/author) ascending
output = self.app.get("/test/issues?order_key=user&order=asc")
self.assertEqual(output.status_code, 200)
tr_elements = re.findall(
r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
output.get_data(as_text=True),
re.M | re.S,
)
# Check for the name after the avatar
self.assertIn("foo", tr_elements[0])
# We check that they are unassigned, otherwise our previous check is
# not specific enough as it can catch an assignee of "foo"
self.assertNotIn("fa-user-plus", tr_elements[0])
self.assertIn("pingou", tr_elements[1])
self.assertNotIn("fa-user-plus", tr_elements[1])
self.assertIn("pingou", tr_elements[2])
self.assertNotIn("fa-user-plus", tr_elements[2])
# Set some assignees
issues = (
self.session.query(pagure.lib.model.Issue)
.filter_by(status="Open")
.order_by(pagure.lib.model.Issue.id)
.all()
)
issues[0].assignee_id = 1
issues[1].assignee_id = 2
issues[2].assignee_id = 1
self.session.commit()
# This detects the assignee but keying on if a certain link is present
def _check_assignee_link(html, expected_links):
soup = BeautifulSoup(html, "html.parser")
for index, expected_link in enumerate(expected_links):
link = soup.find_all("tr")[index + 1].find(
"a", title="Filter issues by assignee"
)
self.assertIsNotNone(
link, "Link %s was not found" % expected_link
)
self.assertURLEqual(link["href"], expected_link)
# Sort by assignee descending
output = self.app.get("/test/issues?order_key=assignee&order=desc")
self.assertEqual(output.status_code, 200)
# tr_elements = re.findall(r'<div class="issuerow list-group-item list-group-item-action ">(.*?)</div><!-- end issuerow -->',
# output.get_data(as_text=True), re.M | re.S)
# arrowed_th = ('Assignee</a>\n <span class="oi" data-glyph='
# '"arrow-thick-bottom"></span>')
# First table row is the header
# self.assertIn(arrowed_th, tr_elements[0])
# _check_assignee_link(output.get_data(as_text=True), [
# '/test/issues?status=Open&assignee=pingou',
# '/test/issues?status=Open&assignee=pingou',
# '/test/issues?status=Open&assignee=foo',
# ])
# Sort by assignee ascending
# output = self.app.get('/test/issues?order_key=assignee&order=asc')
# self.assertEqual(output.status_code, 200)
# tr_elements = re.findall(r'<tr>(.*?)</tr>', output.get_data(as_text=True), re.M | re.S)
# arrowed_th = ('Assignee</a>\n <span class="oi" data-glyph='
# '"arrow-thick-top"></span>')
# First table row is the header
# self.assertIn(arrowed_th, tr_elements[0])
# _check_assignee_link(output.get_data(as_text=True), [
# '/test/issues?status=Open&assignee=foo',
# '/test/issues?status=Open&assignee=pingou',
# '/test/issues?status=Open&assignee=pingou',
# ])
# New issue button is shown
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/test")
self.assertEqual(output.status_code, 200)
self.assertIn(
'fa-exclamation-circle fa-fw"></i> New issue</a>',
output.get_data(as_text=True),
)
output = self.app.get("/test")
self.assertEqual(output.status_code, 200)
self.assertNotIn(
'fa-exclamation-circle fa-fw"></i> New issue</a>',
output.get_data(as_text=True),
)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
output = self.app.get("/test/issues")
self.assertEqual(output.status_code, 404)
# New issue button is hidden
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/test")
self.assertEqual(output.status_code, 200)
self.assertNotIn(
'fa-exclamation-circle fa-fw"></i> New issue</a>',
output.get_data(as_text=True),
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_search_issues_unicode(self, p_send_email, p_ugt):
""" Test the view_issues endpoint filtering for an unicode char. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
repo = pagure.lib.query.get_authorized_project(self.session, "test")
# Create 2 issues to play with
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue ☃",
content="We should work on this ❤",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue ☃")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue with milestone",
content="Testing search",
user="pingou",
milestone="1.1",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue with milestone")
# Whole list
output = self.app.get("/test/issues")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertTrue(
'<span class="fa fa-fw fa-exclamation-circle"></span> 2 Open Issues\n'
in output_text
)
# Unicode search pattern
output = self.app.get("/test/issues?status=all&search_pattern=☃")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn(
'<span class="fa fa-fw fa-exclamation-circle"></span> 1 Open & Closed Issues\n',
output_text,
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_inconsistent_milestone(self, p_send_email, p_ugt):
"""Test the view_issue endpoint when the milestone keys are
inconsistent with the milestones of the project."""
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Add milestones to the project
repo = pagure.lib.query.get_authorized_project(self.session, "test")
milestones = {
"v1.0": {"date": None, "active": True},
"v2.0": {"date": "in the future", "active": True},
}
repo.milestones = milestones
repo.milestones_keys = ["", "v1.0", "v2.0"]
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Not authentified = No edit
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
self.assertIn(
'<a href="/login/?next=http%3A%2F%2Flocalhost%2Ftest%2Fissue%2F1">'
"Login</a>\n to comment on this ticket.",
output_text,
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue(self, p_send_email, p_ugt):
""" Test the view_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
output = self.app.get("/foo/issue/1")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 404)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Not authentified = No edit
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
self.assertIn(
'<a href="/login/?next=http%3A%2F%2Flocalhost%2Ftest%2Fissue%2F1">'
"Login</a>\n to comment on this ticket.",
output_text,
)
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Not author nor admin = No edit
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertNotIn(
'<a class="dropdown-item text-danger pointer" id="closeticket"\n'
' title="Delete this ticket">\n',
output_text,
)
self.assertFalse(
'<a href="/login/">Login</a> to comment on this ticket.'
in output_text
)
# Not author nor admin = No take
self.assertNotIn("function take_issue(){", output_text)
self.assertNotIn("function drop_issue(){", output_text)
self.assertNotIn('<a class="pointer" id="take-btn"\n', output_text)
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<a class="dropdown-item text-danger pointer" id="closeticket"\n'
' title="Delete this ticket">\n',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Create private issue
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
private=True,
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Not logged in
output = self.app.get("/test/issue/2")
self.assertEqual(output.status_code, 404)
# Wrong user
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/2")
self.assertEqual(output.status_code, 404)
# reporter
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/2")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #2: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<span title="Private ticket" class="text-danger fa fa-fw '
'fa-lock"></span>',
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/2/edit" title="Edit this issue">',
output_text,
)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 404)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_view_issue_author(self):
""" Test the view_issue endpoint when you're the author. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="foo",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Not authentified = No edit & no Close
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
self.assertNotIn(
'<form action="/test/issue/1/update" method="post" class="hidden"',
output_text,
)
self.assertNotIn(
'<input type="hidden" id="statusform_status" name="status" '
'value=""/>\n',
output_text,
)
self.assertNotIn(
'<input type="hidden" id="statusform_close_status" '
'name="close_status" value=""/>',
output_text,
)
self.assertIn(
'<a href="/login/?next=http%3A%2F%2Flocalhost%2Ftest%2Fissue%2F1">'
"Login</a>\n to comment on this ticket.",
output_text,
)
user = tests.FakeUser(username="foo")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Author = Ability to close ticket
self.assertIn(
'<input type="hidden" id="statusform_status" name="status" '
'value=""/>',
output_text,
)
self.assertIn(
'<input type="hidden" id="statusform_close_status" '
'name="close_status" value=""/>',
output_text,
)
# Author = edit
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertFalse(
'<a href="/login/">Login</a> to comment on this ticket.'
in output_text
)
# author admin = take
self.assertIn("function take_issue(){", output_text)
self.assertIn("function drop_issue(){", output_text)
self.assertIn('<a class="pointer" id="take-btn"\n', output_text)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_user_ticket(self, p_send_email, p_ugt):
""" Test the view_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
output = self.app.get("/foo/issue/1")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 404)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Not authentified = No edit
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
self.assertTrue(
'<a href="/login/?next=http%3A%2F%2Flocalhost%2Ftest%2Fissue%2F1">'
"Login</a>\n to comment on this ticket." in output_text
)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
# Add user 'foo' with ticket access on repo
msg = pagure.lib.query.add_user_to_project(
self.session, repo, new_user="foo", user="pingou", access="ticket"
)
self.assertEqual(msg, "User added")
self.session.commit()
user = tests.FakeUser(username="foo")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Not author nor admin = No edit
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertNotIn(
'<a class="dropdown-item text-danger pointer" id="closeticket"\n'
' title="Delete this ticket">\n',
output_text,
)
self.assertFalse(
'<a href="/login/">Login</a> to comment on this ticket.'
in output_text
)
# user has ticket = take ok
self.assertIn("function take_issue(){", output_text)
self.assertIn("function drop_issue(){", output_text)
self.assertIn('<a class="pointer" id="take-btn"\n', output_text)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_custom_field_user_ticket(self, p_send_email, p_ugt):
""" Test the view_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
output = self.app.get("/foo/issue/1")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 404)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Add user 'foo' with ticket access on repo
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.add_user_to_project(
self.session, repo, new_user="foo", user="pingou", access="ticket"
)
self.assertEqual(msg, "User added")
self.session.commit()
# Set some custom fields
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.set_custom_key_fields(
self.session,
repo,
["bugzilla", "upstream", "reviewstatus"],
["link", "boolean", "list"],
["unused data for non-list type", "", "ack, nack , needs review"],
[None, None, None],
)
self.session.commit()
self.assertEqual(msg, "List of custom fields updated")
# User with no rights
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertNotIn(
'<a class="dropdown-item text-danger pointer" id="closeticket"\n'
' title="Delete this ticket">\n',
output_text,
)
# user no ACLs = no take action/button
self.assertNotIn("function take_issue(){", output_text)
self.assertNotIn("function drop_issue(){", output_text)
self.assertNotIn('<a class="pointer" id="take-btn"\n', output_text)
# user no ACLs = no metadata form
self.assertNotIn(
'<input class="form-control" '
'name="bugzilla" id="bugzilla"/>',
output_text,
)
self.assertNotIn(
'<select class="form-control" name="reviewstatus" '
'id="reviewstatus>',
output_text,
)
self.assertNotIn(
'<input type="checkbox" '
'class="form-control" name="upstream" id="upstream"/>',
output_text,
)
user = tests.FakeUser(username="foo")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertNotIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertNotIn(
'<a class="dropdown-item text-danger pointer" id="closeticket"\n'
' title="Delete this ticket">\n',
output_text,
)
self.assertNotIn(
'<a href="/login/">Login</a> to comment on this ticket.',
output_text,
)
# user has ticket = take ok
self.assertIn("function take_issue(){", output_text)
self.assertIn("function drop_issue(){", output_text)
self.assertIn('<a class="pointer" id="take-btn"\n', output_text)
# user has ticket == Sees the metadata
self.assertIn(
'<input class="form-control" '
'name="bugzilla" id="bugzilla"/>',
output_text,
)
self.assertIn(
'<select class="form-control"\n'
' name="reviewstatus"\n'
' id="reviewstatus">\n',
output_text,
)
self.assertIn(
'<input type="checkbox" '
'class="form-control" name="upstream" id="upstream"/>',
output_text,
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_non_ascii_milestone(self, p_send_email, p_ugt):
""" Test the view_issue endpoint with non-ascii milestone. """
p_send_email.return_value = True
p_ugt.return_value = True
output = self.app.get("/foo/issue/1")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 404)
stone = "käpy"
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Add a non-ascii milestone to the issue but project has no milestone
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
message = pagure.lib.query.edit_issue(
self.session,
issue=issue,
milestone=stone,
private=False,
user="pingou",
)
self.assertEqual(message, ["Issue set to the milestone: k\xe4py"])
self.session.commit()
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>", output_text
)
self.assertNotIn(stone, output_text)
# Add a non-ascii milestone to the project
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.milestones = {"käpy": None}
self.session.add(repo)
self.session.commit()
# View the issue
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>", output_text
)
self.assertIn(stone, output_text)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_list_no_data(self, p_send_email, p_ugt):
"""Test the view_issue endpoint when the issue has a custom field
of type list with no data attached."""
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
repo = pagure.lib.query.get_authorized_project(self.session, "test")
# Add custom fields to the project
msg = pagure.lib.query.set_custom_key_fields(
session=self.session,
project=repo,
fields=["test1"],
types=["list"],
data=[None],
notify=[None],
)
self.session.commit()
self.assertEqual(msg, "List of custom fields updated")
# Create issues to play with
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Big problÈm!",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Big problÈm!")
# Assign a value to the custom key on that ticket
cfield = pagure.lib.query.get_custom_key(
session=self.session, project=repo, keyname="test1"
)
msg = pagure.lib.query.set_custom_key_value(
session=self.session, issue=msg, key=cfield, value="item"
)
self.session.commit()
self.assertEqual(msg, "Custom field test1 adjusted to item")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
@patch.dict(
"pagure.config.config", {"ENABLE_TICKETS_NAMESPACE": ["foobar"]}
)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_update_issue_wrong_namespace(self):
""" Test the update_issue endpoint. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create normal issue on test
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue #1",
content="We should work on this",
user="pingou",
private=False,
)
self.session.commit()
self.assertEqual(msg.title, "Test issue #1")
# Create normal issue on test3
repo = pagure.lib.query.get_authorized_project(
self.session, "test3", namespace="somenamespace"
)
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue #1",
content="We should work on this",
user="pingou",
private=False,
)
self.session.commit()
self.assertEqual(msg.title, "Test issue #1")
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
# Add new comment
data = {
"csrf_token": self.get_csrf(),
"status": "Closed",
"close_status": "Fixed",
"comment": "Woohoo a second comment!",
}
# Things work fine when the project has no namespace
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue #1 - test - Pagure</title>",
output_text,
)
# Things do not work when the project has a namespace not allowed
output = self.app.post(
"/somenamespace/test3/issue/1/update",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 404)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Page not found :'( - Pagure</title>", output_text
)
self.assertIn(
" <p>No issue tracker found for this project</p>", output_text
)
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_issue_add_tags(self, p_send_email, p_ugt):
""" Test the update_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Before update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], [])
self.assertEqual(repo.issues[0].tags_text, [])
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# Add two tags to the project
data = {
"tag": "green",
"tag_description": "lorem ipsum",
"tag_color": "#fff",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
data = {
"tag": "red",
"tag_description": "lorem ipsum",
"tag_color": "#rrr",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
# Add two tags to the issue
data = {"csrf_token": csrf_token, "tag": "red,green"}
with testing.mock_sends(
pagure_messages.IssueTagAddedV1(
topic="pagure.issue.tag.added",
body={
"issue": {
"id": 1,
"title": "Test issue",
"content": "We should work on this",
"full_url": "http://localhost.localdomain/test/issue/1",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"private": False,
"tags": ["green", "red"],
"depends": [],
"blocks": [],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"url_path": "test",
"full_url": "http://localhost.localdomain/test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"tags": ["green", "red"],
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
"</i> Issue tagged with: green, red</div>", output_text
)
# After update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["green", "red"])
self.assertEqual(repo.issues[0].tags_text, [])
# Drop one of the two tags
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Add two tags to the issue
data = {"csrf_token": csrf_token, "tag": "green"}
with testing.mock_sends(
pagure_messages.IssueTagRemovedV1(
topic="pagure.issue.tag.removed",
body={
"issue": {
"id": 1,
"title": "Test issue",
"content": "We should work on this",
"full_url": "http://localhost.localdomain/test/issue/1",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"private": False,
"tags": ["green"],
"depends": [],
"blocks": [],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [
{
"id": 1,
"comment": "**Metadata Update from "
"@pingou**:\n- Issue tagged with: green, "
"red",
"parent": None,
"date_created": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"edited_on": None,
"editor": None,
"notification": True,
"reactions": {},
}
],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"url_path": "test",
"full_url": "http://localhost.localdomain/test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"tags": ["red"],
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
"<br>\n- Issue tagged with: green, red</p>", output_text
)
self.assertIn(
"<br>\n- Issue <strong>un</strong>tagged with: red</p>",
output_text,
)
# After update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["green", "red"])
self.assertEqual(repo.issues[0].tags_text, [])
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_issue(self, p_send_email, p_ugt):
""" Test the update_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
# No Git repo
output = self.app.get("/foo/issue/1/update")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
output = self.app.get("/test/issue/1/update")
self.assertEqual(output.status_code, 302)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertEqual(output_text.count('title="PY C (pingou)"'), 1)
csrf_token = self.get_csrf(output=output)
data = {"status": "Closed", "close_status": "fixed"}
# Invalid repo
output = self.app.post("/bar/issue/1/update", data=data)
self.assertEqual(output.status_code, 404)
# Non-existing issue
output = self.app.post("/test/issue/100/update", data=data)
self.assertEqual(output.status_code, 404)
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertFalse(
'<option selected value="Fixed">Fixed</option>' in output_text
)
# Right status, wrong csrf
data["close_status"] = "Fixed"
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertFalse(
'<option selected value="Fixed">Fixed</option>' in output_text
)
# working status update
data["csrf_token"] = csrf_token
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
"" "Issue close_status updated to: Fixed", output_text
)
self.assertIn(
"" "Issue status updated to: Closed (was: Open)", output_text
)
self.assertTrue(
'<option selected value="Fixed">Fixed</option>' in output_text
)
# FIXME: There is likely something going wrong in the html
# below
self.assertIn(
'<span class="font-size-09 autogenerated-comment pl-4"><div class="markdown">'
'<p><strong>Metadata Update from <a href="http://localhost.localdomain/user/pingou">'
'</a><a href="http://localhost.localdomain/user/pingou">@pingou</a></strong>:'
"<br>\n- Issue close_status updated to: Fixed<br>\n- Issue status updated to:"
" Closed (was: Open)</p></div></span>\n",
output_text,
)
# Add new comment
data = {
"csrf_token": csrf_token,
"status": "Closed",
"close_status": "Fixed",
"comment": "Woohoo a second comment!",
}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("Comment added", output_text)
self.assertNotIn("No changes to edit", output_text)
self.assertIn("<p>Woohoo a second comment!</p>", output_text)
self.assertEqual(output_text.count('comment_body">'), 2)
self.assertTrue(
'<option selected value="Fixed">Fixed</option>' in output_text
)
# 3: one for the original comment, one for the new comment, one for the metadata update
self.assertEqual(output_text.count('title="PY C (pingou)"'), 3)
# Add new tag
data = {
"csrf_token": csrf_token,
"status": "Closed",
"close_status": "Fixed",
"tag": "tag2",
}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("<p>Woohoo a second comment!</p>", output_text)
self.assertEqual(output_text.count('comment_body">'), 2)
self.assertTrue(
'<option selected value="Fixed">Fixed</option>' in output_text
)
# Assign issue to an non-existent user
data = {
"csrf_token": csrf_token,
"status": "Closed",
"close_status": "Fixed",
"assignee": "ralph",
}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("No user "ralph" found", output_text)
self.assertIn("<p>Woohoo a second comment!</p>", output_text)
self.assertEqual(output_text.count('comment_body">'), 2)
self.assertTrue(
'<option selected value="Fixed">Fixed</option>' in output_text
)
# Assign issue properly
data = {
"csrf_token": csrf_token,
"status": "Closed",
"close_status": "Fixed",
"assignee": "pingou",
}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("Issue assigned to pingou", output_text)
self.assertIn(
'<a href="/test/issues?assignee=pingou" title="PY C (pingou)"',
output_text,
)
self.assertIn("<p>Woohoo a second comment!</p>", output_text)
self.assertEqual(output_text.count('comment_body">'), 2)
self.assertTrue(
'<option selected value="Fixed">Fixed</option>' in output_text
)
# Create another issue with a dependency
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Reset the status of the first issue
parent_issue = pagure.lib.query.search_issues(
self.session, repo, issueid=1
)
parent_issue.status = "Open"
self.session.add(parent_issue)
# Add the dependency relationship
self.session.add(parent_issue)
issue = pagure.lib.query.search_issues(self.session, repo, issueid=2)
issue.parents.append(parent_issue)
self.session.add(issue)
self.session.commit()
with tests.user_set(self.app.application, user):
data["csrf_token"] = csrf_token
output = self.app.post(
"/test/issue/2/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #2: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/2/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
"You cannot close a ticket "
"that has ticket depending that are still open.",
output_text,
)
self.assertTrue(
'<option selected value="Open">Open</option>' in output_text
)
# Create private issue
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
private=True,
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Wrong user
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.post(
"/test/issue/3/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 403)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
with tests.user_set(self.app.application, user):
# Repo not set-up for issue tracker
output = self.app.post("/test/issue/1/update", data=data)
self.assertEqual(output.status_code, 404)
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_issue_drop_comment(self, p_send_email, p_ugt):
""" Test droping comment via the update_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Add new comment
data = {
"csrf_token": csrf_token,
"comment": "Woohoo a second comment!",
}
with testing.mock_sends(
pagure_messages.IssueCommentAddedV1(
topic="pagure.issue.comment.added",
body={
"issue": {
"id": 1,
"title": "Test issue",
"content": "We should work on this",
"full_url": "http://localhost.localdomain/test/issue/1",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"private": False,
"tags": [],
"depends": [],
"blocks": [],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [
{
"id": 1,
"comment": "Woohoo a second comment!",
"parent": None,
"date_created": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"edited_on": None,
"editor": None,
"notification": False,
"reactions": {},
}
],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"url_path": "test",
"full_url": "http://localhost.localdomain/test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("Comment added", output_text)
self.assertIn("<p>Woohoo a second comment!</p>", output_text)
self.assertEqual(output_text.count('comment_body">'), 2)
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 1)
data = {"csrf_token": csrf_token, "drop_comment": 1}
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
# Wrong issue id
output = self.app.post(
"/test/issue/3/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 404)
# Wrong user
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 403)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Drop the new comment
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("Comment removed", output_text)
# Drop non-existant comment
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 404)
self.session.commit()
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 0)
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_issue_depend(self, p_send_email, p_ugt):
""" Test adding dependency via the update_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue #2",
content="We should work on this again",
user="foo",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue #2")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Add a dependent ticket
data = {"csrf_token": csrf_token, "depending": "2"}
with testing.mock_sends(
pagure_messages.IssueDependencyAddedV1(
topic="pagure.issue.dependency.added",
body={
"issue": {
"id": 2,
"title": "Test issue #2",
"full_url": "http://localhost.localdomain/test/issue/2",
"content": "We should work on this again",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "foo",
"fullname": "foo bar",
"url_path": "user/foo",
"full_url": "http://localhost.localdomain/user/foo",
},
"private": False,
"tags": [],
"depends": [],
"blocks": ["1"],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"full_url": "http://localhost.localdomain/test",
"url_path": "test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"added_dependency": 1,
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
# Add an invalid dependent ticket
data = {"csrf_token": csrf_token, "depending": "2,abc"}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertNotIn("" "Successfully edited issue #1", output_text)
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(issue.depending_text, [2])
self.assertEqual(issue.blocking_text, [])
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_update_issue_block_closed(self):
"""Test how blocked issue shows in the UI when the blocking ticket
is open and closed."""
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue #2",
content="We should work on this again",
user="foo",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue #2")
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Add a dependent ticket - Open
data = {"csrf_token": csrf_token, "blocking": "2"}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<span class="fa fa-fw text-success fa-exclamation-circle pt-1"></span>',
output_text,
)
self.assertIn(
'<span class="text-success font-weight-bold">#2</span>',
output_text,
)
# Close ticket #1
data = {
"csrf_token": csrf_token,
"status": "Closed",
"blocking": "2",
}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
# Now looking at how the dependent ticket looks like:
output = self.app.get("/test/issue/2")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #2: Test issue #2 - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/2/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<span class="fa fa-fw text-danger fa-exclamation-circle pt-1"></span>',
output_text,
)
self.assertIn(
'<span class="text-danger font-weight-bold">#1</span>',
output_text,
)
self.session.commit()
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(issue.depending_text, [])
self.assertEqual(issue.blocking_text, [2])
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_issue_block(self, p_send_email, p_ugt):
""" Test adding blocked issue via the update_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
with testing.mock_sends(
pagure_messages.IssueNewV1(
topic="pagure.issue.new",
body={
"issue": {
"id": 1,
"title": "Test issue",
"content": "We should work on this",
"full_url": "http://localhost.localdomain/test/issue/1",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"private": False,
"tags": [],
"depends": [],
"blocks": [],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"full_url": "http://localhost.localdomain/test",
"url_path": "test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"agent": "pingou",
},
)
):
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue #2",
content="We should work on this again",
user="foo",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue #2")
# User is not an admin of the project
user = tests.FakeUser(username="foo")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output.get_data(as_text=True),
)
csrf_token = self.get_csrf(output=output)
# Add a dependent ticket
data = {"csrf_token": csrf_token, "blocking": "2"}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output.get_data(as_text=True),
)
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
issue = pagure.lib.query.search_issues(
self.session, repo, issueid=1
)
self.assertEqual(issue.depending_text, [])
self.assertEqual(issue.blocking_text, [])
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Add a dependent ticket
data = {"csrf_token": csrf_token, "blocking": "2"}
with testing.mock_sends(
pagure_messages.IssueDependencyAddedV1(
topic="pagure.issue.dependency.added",
body={
"issue": {
"id": 1,
"title": "Test issue",
"full_url": "http://localhost.localdomain/test/issue/1",
"content": "We should work on this",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"private": False,
"tags": [],
"depends": [],
"blocks": ["2"],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"url_path": "test",
"full_url": "http://localhost.localdomain/test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"added_dependency": 2,
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
# Add an invalid dependent ticket
data = {"csrf_token": csrf_token, "blocking": "2,abc"}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertNotIn("" "Successfully edited issue #1", output_text)
self.session.commit()
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(issue.depending_text, [])
self.assertEqual(issue.blocking_text, [2])
# Now remove the dependency and check everything is recorded
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Add a dependent ticket
data = {"csrf_token": csrf_token}
with testing.mock_sends(
pagure_messages.IssueDependencyRemovedV1(
topic="pagure.issue.dependency.removed",
body={
"issue": {
"id": 2,
"title": "Test issue #2",
"full_url": "http://localhost.localdomain/test/issue/2",
"content": "We should work on this again",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "foo",
"fullname": "foo bar",
"url_path": "user/foo",
"full_url": "http://localhost.localdomain/user/foo",
},
"private": False,
"tags": [],
"depends": [],
"blocks": [],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"url_path": "test",
"full_url": "http://localhost.localdomain/test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"removed_dependency": [1],
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.session.commit()
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(issue.depending_text, [])
self.assertEqual(issue.blocking_text, [])
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_upload_issue(self, p_send_email, p_ugt):
""" Test the upload_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "repos", "tickets"), bare=True
)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
csrf_token = self.get_csrf(output=output)
output = self.app.post("/foo/issue/1/upload")
self.assertEqual(output.status_code, 404)
output = self.app.post("/test/issue/100/upload")
self.assertEqual(output.status_code, 404)
# Invalid upload
data = {"enctype": "multipart/form-data"}
output = self.app.post(
"/test/issue/1/upload", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
json_data = json.loads(output.get_data(as_text=True))
exp = {"output": "notok"}
self.assertDictEqual(json_data, exp)
# Attach a file to a ticket
with open(os.path.join(tests.HERE, "placebo.png"), "rb") as stream:
data = {
"csrf_token": csrf_token,
"filestream": stream,
"enctype": "multipart/form-data",
}
output = self.app.post(
"/test/issue/1/upload", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
json_data = json.loads(output.get_data(as_text=True))
folder = os.path.dirname(os.path.abspath(__file__))[1:].replace(
"/", "_"
)
exp = {
"filelocations": [
"/test/issue/raw/files/8a06845923010b27bfd8"
"e7e75acff7badc40d1021b4994e01f5e11ca40bc3a"
"be-%s_placebo.png" % folder
],
"filenames": ["%s_placebo.png" % folder],
"output": "ok",
}
self.assertDictEqual(json_data, exp)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
with tests.user_set(self.app.application, user):
output = self.app.post("/test/issue/1/upload")
self.assertEqual(output.status_code, 404)
@patch.dict("pagure.config.config", {"PR_ONLY": True})
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_upload_issue_virus(self, p_send_email, p_ugt):
""" Test the upload_issue endpoint. """
if not pyclamd:
raise SkipTest()
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# TODO: Figure a way to enable this test on jenkins
# Try to attach a virus
if not os.environ.get("BUILD_ID"):
with tempfile.NamedTemporaryFile() as eicarfile:
eicarfile.write(pyclamd.ClamdUnixSocket().EICAR())
eicarfile.flush()
with open(eicarfile.name, "rb") as stream:
data = {
"csrf_token": csrf_token,
"filestream": stream,
"enctype": "multipart/form-data",
}
output = self.app.post(
"/test/issue/1/upload",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
json_data = json.loads(output.get_data(as_text=True))
exp = {"output": "notok"}
self.assertDictEqual(json_data, exp)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_upload_issue_two_files(self, p_send_email, p_ugt):
""" Test the upload_issue endpoint with two files. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# Attach two files to a ticket
with open(os.path.join(tests.HERE, "placebo.png"), "rb") as stream:
with open(
os.path.join(tests.HERE, "placebo.png"), "rb"
) as stream2:
data = {
"csrf_token": csrf_token,
"filestream": [stream, stream2],
"enctype": "multipart/form-data",
}
output = self.app.post(
"/test/issue/1/upload",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
json_data = json.loads(output.get_data(as_text=True))
folder = os.path.dirname(os.path.abspath(__file__))[1:].replace(
"/", "_"
)
exp = {
"output": "ok",
"filelocations": [
"/test/issue/raw/files/8a06845923010b27bfd8"
"e7e75acff7badc40d1021b4994e01f5e11ca40bc3a"
"be-%s_placebo.png" % folder,
"/test/issue/raw/files/8a06845923010b27bfd8"
"e7e75acff7badc40d1021b4994e01f5e11ca40bc3a"
"be-%s_placebo.png" % folder,
],
"filenames": [
"%s_placebo.png" % folder,
"%s_placebo.png" % folder,
],
}
self.assertDictEqual(json_data, exp)
def test_view_issue_raw_file_empty(self):
""" Test the view_issue_raw_file endpoint. """
# Create the project and git repos
tests.create_projects(self.session)
tests.create_projects_git(
os.path.join(self.path, "tickets"), bare=True
)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
url = (
"/issue/raw/8a06845923010b27bfd8"
"e7e75acff7badc40d1021b4994e01f5e11ca40bc3a"
"be-home_pierrey_repos_gitrepo_pagure_tests"
"_placebo.png"
)
output = self.app.get("/foo" + url)
self.assertEqual(output.status_code, 404)
output = self.app.get("/test" + url)
self.assertEqual(output.status_code, 404)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
output = self.app.get("/test" + url)
self.assertEqual(output.status_code, 404)
def test_view_issue_raw_file(self):
""" Test the view_issue_raw_file endpoint. """
# Create the issue and upload to it
self.test_upload_issue()
# Project w/ issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": True}
self.session.add(repo)
self.session.commit()
url = (
"/issue/raw/8a06845923010b27bfd8"
"e7e75acff7badc40d1021b4994e01f5e11ca40bc3a"
"be-%s_placebo.png"
% os.path.dirname(os.path.abspath(__file__))[1:].replace("/", "_")
)
output = self.app.get("/foo" + url)
self.assertEqual(output.status_code, 404)
output = self.app.get("/test/issue/raw/test.png")
self.assertEqual(output.status_code, 404)
# Access file by name
output = self.app.get("/test" + url)
self.assertEqual(output.status_code, 200)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
output = self.app.get("/test" + url)
self.assertEqual(output.status_code, 404)
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_edit_issue(self, p_send_email, p_ugt):
""" Test the edit_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
# No Git repo
output = self.app.get("/foo/issue/1/edit")
self.assertEqual(output.status_code, 404)
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/foo/issue/1/edit")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(
os.path.join(self.path, "repos"), bare=True
)
output = self.app.get("/test/issue/1/edit")
self.assertEqual(output.status_code, 404)
# User not logged in
output = self.app.get("/foo/issue/1/edit")
self.assertEqual(output.status_code, 404)
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1/edit")
self.assertEqual(output.status_code, 404)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1/edit")
self.assertEqual(output.status_code, 403)
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1/edit")
self.assertEqual(output.status_code, 200)
self.assertTrue("Edit Issue" in output.get_data(as_text=True))
csrf_token = self.get_csrf(output=output)
data = {"issue_content": "We should work on this!"}
output = self.app.post("/test/issue/1/edit", data=data)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertTrue("Edit Issue" in output_text)
self.assertEqual(output_text.count("This field is required."), 1)
data["status"] = "Open"
data["title"] = "Test issue #1"
output = self.app.post("/test/issue/1/edit", data=data)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertTrue("Edit Issue" in output_text)
self.assertEqual(output_text.count("This field is required."), 0)
self.assertEqual(output_text.count("Not a valid choice"), 0)
data["csrf_token"] = csrf_token
with testing.mock_sends(
pagure_messages.IssueEditV1(
topic="pagure.issue.edit",
body={
"issue": {
"id": 1,
"title": "Test issue #1",
"full_url": "http://localhost.localdomain/test/issue/1",
"content": "We should work on this!",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"private": False,
"tags": [],
"depends": [],
"blocks": [],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [],
},
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"full_url": "http://localhost.localdomain/test",
"url_path": "test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"fields": ["content", "title"],
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/edit", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
' <span class="fa fa-fw text-success fa-exclamation-circle pt-1"></span>\n'
' <span class="text-success font-weight-bold">#1</span>\n ',
output_text,
)
self.assertEqual(
output_text.count(
'<option selected value="Open">Open</option>'
),
1,
)
self.assertEqual(output_text.count('comment_body">'), 1)
self.assertEqual(
output_text.count("<p>We should work on this!</p>"), 1
)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.post("/test/issue/1/edit", data=data)
self.assertEqual(output.status_code, 404)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_edit_issue_no_change(self):
""" Test the edit_issue endpoint. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create an issue to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1/edit")
self.assertEqual(output.status_code, 200)
self.assertTrue("Edit Issue" in output.get_data(as_text=True))
csrf_token = self.get_csrf(output=output)
# Change nothing in the issue
data = {
"issue_content": "We should work on this",
"status": "Open",
"title": "Test issue",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/issue/1/edit", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
' <span class="fa fa-fw text-success fa-exclamation-circle pt-1"></span>\n'
' <span class="text-success font-weight-bold">#1</span>\n ',
output_text,
)
self.assertEqual(
output_text.count(
'<option selected value="Open">Open</option>'
),
1,
)
self.assertEqual(output_text.count('comment_body">'), 1)
self.assertEqual(
output_text.count("<p>We should work on this</p>"), 1
)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_edit_tag_issue_disabled(self):
""" Test the edit_tag endpoint when issues are disabled. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
# disable issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False, "fedmsg_notifications": True}
self.session.add(repo)
self.session.commit()
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Add a tag to the issue
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
msg = pagure.lib.query.add_tag_obj(
session=self.session, obj=issue, tags="tag1", user="pingou"
)
self.session.commit()
self.assertEqual(msg, "Issue tagged with: tag1")
# Before edit, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["tag1"])
# Edit tag
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/tag/tag1/edit")
self.assertEqual(output.status_code, 200)
self.assertTrue(
"<strong>Edit tag: tag1</strong>"
in output.get_data(as_text=True)
)
csrf_token = self.get_csrf(output=output)
data = {
"tag": "tag2",
"tag_description": "lorem ipsum",
"tag_color": "DeepSkyBlue",
}
output = self.app.post("/test/tag/tag1/edit", data=data)
self.assertEqual(output.status_code, 200)
self.assertTrue(
"<strong>Edit tag: tag1</strong>"
in output.get_data(as_text=True)
)
# After edit, list tags
self.session.commit()
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["tag1"])
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_edit_tag(self, p_send_email, p_ugt):
""" Test the edit_tag endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
# No Git repo
output = self.app.get("/foo/tag/foo/edit")
self.assertEqual(output.status_code, 404)
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.get("/foo/tag/foo/edit")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
output = self.app.get("/test/tag/foo/edit")
self.assertEqual(output.status_code, 403)
# User not logged in
output = self.app.get("/test/tag/foo/edit")
self.assertEqual(output.status_code, 302)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Add a tag to the issue
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
msg = pagure.lib.query.add_tag_obj(
session=self.session, obj=issue, tags="tag1", user="pingou"
)
self.session.commit()
self.assertEqual(msg, "Issue tagged with: tag1")
# Before edit, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["tag1"])
# Edit tag
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Edit a tag that doesn't exit
output = self.app.get("/test/tag/does_not_exist/edit")
self.assertEqual(output.status_code, 404)
output = self.app.get("/test/tag/tag1/edit")
self.assertEqual(output.status_code, 200)
self.assertTrue(
"<strong>Edit tag: tag1</strong>"
in output.get_data(as_text=True)
)
csrf_token = self.get_csrf(output=output)
data = {
"tag": "tag2",
"tag_description": "lorem ipsum",
"tag_color": "DeepSkyBlue",
}
output = self.app.post("/test/tag/tag1/edit", data=data)
self.assertEqual(output.status_code, 200)
self.assertTrue(
"<strong>Edit tag: tag1</strong>"
in output.get_data(as_text=True)
)
data["csrf_token"] = csrf_token
with testing.mock_sends(
pagure_messages.ProjectTagEditedV1(
topic="pagure.project.tag.edited",
body={
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"url_path": "test",
"full_url": "http://localhost.localdomain/test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"old_tag": "tag2",
"old_tag_description": "",
"old_tag_color": "DeepSkyBlue",
"new_tag": "tag2",
"new_tag_description": "lorem ipsum",
"new_tag_color": "DeepSkyBlue",
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/tag/tag1/edit", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("Settings - test - Pagure", output_text)
self.assertIn(
""
"Edited tag: tag1()[DeepSkyBlue] to tag2(lorem ipsum)[DeepSkyBlue]",
output_text,
)
# update tag with empty description
data["tag_description"] = ""
output = self.app.post(
"/test/tag/tag2/edit", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("Settings - test - Pagure", output_text)
self.assertIn(
""
"Edited tag: tag2(lorem ipsum)[DeepSkyBlue] to tag2()[DeepSkyBlue]",
output_text,
)
# After edit, list tags
self.session.commit()
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["tag2"])
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_remove_tag_issue_disabled(self):
""" Test the remove_tag endpoint. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
# disable issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Add a tag to the issue
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
msg = pagure.lib.query.add_tag_obj(
session=self.session, obj=issue, tags="tag1", user="pingou"
)
self.session.commit()
self.assertEqual(msg, "Issue tagged with: tag1")
# Before edit, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["tag1"])
# Edit tag
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
data = {"tag": "tag1", "csrf_token": self.get_csrf()}
with testing.mock_sends(
pagure_messages.ProjectTagRemovedV1(
topic="pagure.project.tag.removed",
body={
"project": {
"id": 1,
"name": "test",
"fullname": "test",
"url_path": "test",
"full_url": "http://localhost.localdomain/test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"tags": ["tag1"],
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/droptag/", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
self.assertIn("Tag: tag1 has been deleted", output_text)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_remove_tag(self, p_send_email, p_ugt):
""" Test the remove_tag endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
# No Git repo
output = self.app.post("/foo/droptag/")
self.assertEqual(output.status_code, 404)
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.post("/foo/droptag/")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
output = self.app.post("/test/droptag/")
self.assertEqual(output.status_code, 403)
# User not logged in
output = self.app.post("/test/droptag/")
self.assertEqual(output.status_code, 302)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Add a tag to the issue
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
msg = pagure.lib.query.add_tag_obj(
session=self.session, obj=issue, tags="tag1", user="pingou"
)
self.session.commit()
self.assertEqual(msg, "Issue tagged with: tag1")
# Before edit, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], ["tag1"])
# Edit tag
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.post(
"/test/droptag/", data={}, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertTrue(
"<title>Settings - test - Pagure</title>" in output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
csrf_token = self.get_csrf(output=output)
data = {"tag": "tag1"}
output = self.app.post(
"/test/droptag/", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
data["csrf_token"] = csrf_token
output = self.app.post(
"/test/droptag/", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
self.assertIn("" "Tag: tag1 has been deleted", output_text)
@patch.dict(
"pagure.config.config", {"FEDORA_MESSAGING_NOTIFICATIONS": True}
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_delete_issue(self, p_send_email, p_ugt):
""" Test the delete_issue endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
tests.create_projects_git(os.path.join(self.path, "tickets"))
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.post("/foo/issue/1/drop", follow_redirects=True)
self.assertEqual(output.status_code, 404)
output = self.app.post(
"/test/issue/100/drop", follow_redirects=True
)
self.assertEqual(output.status_code, 404)
output = self.app.post("/test/issue/1/drop", follow_redirects=True)
self.assertEqual(output.status_code, 403)
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.post("/test/issue/1/drop", follow_redirects=True)
self.assertEqual(output.status_code, 200)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output.get_data(as_text=True),
)
csrf_token = self.get_csrf(output=output)
data = {}
# No CSRF token
output = self.app.post(
"/test/issue/1/drop", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output.get_data(as_text=True),
)
data["csrf_token"] = csrf_token
with testing.mock_sends(
pagure_messages.IssueDropV1(
topic="pagure.issue.drop",
body={
"issue": {
"id": 1,
"title": "Test issue",
"full_url": "http://localhost.localdomain/test/issue/1",
"content": "We should work on this",
"status": "Open",
"close_status": None,
"date_created": ANY,
"last_updated": ANY,
"closed_at": None,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"private": False,
"tags": [],
"depends": [],
"blocks": [],
"assignee": None,
"priority": None,
"milestone": None,
"custom_fields": [],
"closed_by": None,
"related_prs": [],
"comments": [],
},
"project": {
"id": 1,
"name": "test",
"full_url": "http://localhost.localdomain/test",
"fullname": "test",
"url_path": "test",
"description": "test project #1",
"namespace": None,
"parent": None,
"date_created": ANY,
"date_modified": ANY,
"user": {
"name": "pingou",
"fullname": "PY C",
"url_path": "user/pingou",
"full_url": "http://localhost.localdomain/user/pingou",
},
"access_users": {
"owner": ["pingou"],
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"access_groups": {
"admin": [],
"commit": [],
"collaborator": [],
"ticket": [],
},
"tags": [],
"priorities": {},
"custom_keys": [],
"close_status": [
"Invalid",
"Insufficient data",
"Fixed",
"Duplicate",
],
"milestones": {},
},
"agent": "pingou",
},
)
):
output = self.app.post(
"/test/issue/1/drop", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn("<title>Issues - test - Pagure</title>", output_text)
self.assertIn("Issue deleted", output_text)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.post("/test/issue/1/drop", data=data)
self.assertEqual(output.status_code, 404)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_issue_edit_comment(self, p_send_email, p_ugt):
""" Test the issues edit comment endpoint """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Add new comment
data = {
"csrf_token": csrf_token,
"comment": "Woohoo a second comment!",
}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">\n',
output_text,
)
self.assertIn("Comment added", output_text)
self.assertIn("<p>Woohoo a second comment!</p>", output_text)
self.assertEqual(output_text.count('comment_body">'), 2)
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 1)
self.assertEqual(issue.comments[0].comment, "Woohoo a second comment!")
data = {
"csrf_token": csrf_token,
"edit_comment": 1,
"update_comment": "Updated comment",
}
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
# Wrong issue id
output = self.app.post(
"/test/issue/3/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 404)
# Wrong user
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 403)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Edit comment
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("Comment updated", output_text)
self.session.commit()
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 1)
self.assertEqual(issue.comments[0].comment, "Updated comment")
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1/comment/1/edit")
output_text = output.get_data(as_text=True)
self.assertIn("<title>test - Pagure</title>", output_text)
self.assertTrue('<div id="edit">' in output_text)
self.assertTrue('<section class="edit_comment">' in output_text)
self.assertIn(
'<textarea class="form-control width-100per" id="update_comment"',
output_text,
)
csrf_token = self.get_csrf(output=output)
data["csrf_token"] = csrf_token
data["update_comment"] = "Second update"
# Edit the comment with the other endpoint
output = self.app.post(
"/test/issue/1/comment/1/edit",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("Comment updated", output_text)
self.session.commit()
repo = pagure.lib.query.get_authorized_project(self.session, "test")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 1)
self.assertEqual(issue.comments[0].comment, "Second update")
# Create another issue from someone else
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="foo",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 1)
self.assertEqual(issue.status, "Open")
issue = pagure.lib.query.search_issues(self.session, repo, issueid=2)
self.assertEqual(len(issue.comments), 0)
self.assertEqual(issue.status, "Open")
user = tests.FakeUser(username="foo")
with tests.user_set(self.app.application, user):
data = {
"csrf_token": csrf_token,
"comment": "Nevermind figured it out",
"status": "Closed",
"close_status": "Invalid",
}
# Add a comment and close the ticket #1
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertNotIn("" "Successfully edited issue #1\n", output_text)
self.assertIn("Comment added", output_text)
self.assertNotIn(
'<a class="btn btn-outline-primary border-0 btn-sm issue-metadata-display'
' editmetadatatoggle pointer inline-block">'
'<i class="fa fa-fw fa-pencil">',
output_text,
)
data = {
"csrf_token": csrf_token,
"comment": "Nevermind figured it out",
"status": "Closed",
"close_status": "Invalid",
}
# Add a comment and close the ticket #2
output = self.app.post(
"/test/issue/2/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"" "Issue close_status updated to: Invalid", output_text
)
self.assertIn("Comment added", output_text)
self.assertIn(
"" "Issue status updated to: Closed (was: Open)", output_text
)
self.assertIn(
'<a class="btn btn-outline-primary border-0 btn-sm issue-metadata-display'
' editmetadatatoggle pointer inline-block">'
'<i class="fa fa-fw fa-pencil">',
output_text,
)
# Ticket #1 has one more comment and is still open
self.session.commit()
issue = pagure.lib.query.search_issues(self.session, repo, issueid=1)
self.assertEqual(len(issue.comments), 2)
self.assertEqual(issue.status, "Open")
# Ticket #2 has one less comment and is closed
issue = pagure.lib.query.search_issues(self.session, repo, issueid=2)
self.assertEqual(len(issue.comments), 2)
self.assertEqual(issue.comments[0].comment, "Nevermind figured it out")
self.assertEqual(
issue.comments[1].comment,
"**Metadata Update from @foo**:\n"
"- Issue close_status updated to: Invalid\n"
"- Issue status updated to: Closed (was: Open)",
)
self.assertEqual(issue.status, "Closed")
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_git_urls(self, p_send_email, p_ugt):
"""Check that the url to the git repo for issues is present/absent when
it should.
"""
p_send_email.return_value = True
p_ugt.return_value = True
self.test_view_issues()
user = tests.FakeUser()
user.username = "pingou"
repo = pagure.lib.query._get_project(self.session, "test")
pagure.lib.query.update_read_only_mode(
self.session, repo, read_only=False
)
pingou = pagure.lib.query.get_user(self.session, "pingou")
pagure.lib.query.add_sshkey_to_project_or_user(
session=self.session,
user=pingou,
ssh_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDAzBMSIlvPRaEiLOTVInErkRIw9CzQQcnslDekAn1jFnGf+SNa1acvbTiATbCX71AA03giKrPxPH79dxcC7aDXerc6zRcKjJs6MAL9PrCjnbyxCKXRNNZU5U9X/DLaaL1b3caB+WD6OoorhS3LTEtKPX8xyjOzhf3OQSzNjhJp5Q==",
pushaccess=True,
creator=pingou,
)
self.session.commit()
with tests.user_set(self.app.application, user):
# Check that the git issue URL is present
output = self.app.get("/test")
self.assertNotIn(
"<h5><strong>Issues GIT URLs</strong></h5>",
output.get_data(as_text=True),
)
# Project w/o issue tracker
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
repo.settings = {"issue_tracker": True}
self.session.add(repo)
self.session.commit()
# Check that the git issue URL is gone
output = self.app.get("/test")
output_text = output.get_data(as_text=True)
self.assertIn("<h5><strong>Issues</strong></h5>", output_text)
self.assertIn(
'value="ssh://git@localhost.localdomain/tickets/test.git',
output_text,
)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_update_tags_issue_disabled(self):
""" Test the update_tags endpoint. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
# disable issue tracker
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.settings = {"issue_tracker": False}
self.session.add(repo)
self.session.commit()
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Before update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], [])
user = tests.FakeUser(username="pingou")
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# Valid query
data = {
"tag": ["red1", "green"],
"tag_description": ["lorem ipsum", "sample description"],
"tag_color": ["#ff0000", "#00ff00"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#00ff00">green</span>\n'
" "
'<span class="text-muted">sample description</span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="green" name="tag" />', output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#ff0000">red1</span>\n'
" "
'<span class="text-muted">lorem ipsum</span>',
output_text,
)
# After update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual(sorted([tag.tag for tag in tags]), ["green", "red1"])
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_tags(self, p_send_email, p_ugt):
""" Test the update_tags endpoint. """
p_send_email.return_value = True
p_ugt.return_value = True
# No Git repo
output = self.app.post("/foo/update/tags")
self.assertEqual(output.status_code, 404)
user = tests.FakeUser()
with tests.user_set(self.app.application, user):
output = self.app.post("/foo/update/tags")
self.assertEqual(output.status_code, 404)
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
output = self.app.post("/test/update/tags")
self.assertEqual(output.status_code, 403)
# User not logged in
output = self.app.post("/test/update/tags")
self.assertEqual(output.status_code, 302)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Before update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], [])
user.username = "pingou"
with tests.user_set(self.app.application, user):
# No CSRF
data = {
"tag": "red",
"tag_description": "lorem ipsum",
"tag_color": "#ff0000",
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
csrf_token = self.get_csrf(output=output)
# Invalid color
data = {
"tag": "red",
"tag_description": "lorem ipsum",
"tag_color": "red",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
"" "Color: red does not match the expected pattern",
output_text,
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
# Invalid tag name
data = {
"tag": "red/green",
"tag_description": "lorem ipsum",
"tag_color": "#fff",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
"" "Tag: red/green contains one or more invalid characters",
output_text,
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
# Inconsistent length tags (missing tag field)
data = {
"tag": "red",
"tag_description": ["lorem ipsum", "foo bar"],
"tag_color": ["#ff0000", "#003cff"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
"Error: Incomplete request. "
"One or more tag fields missing.",
output_text,
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
# Inconsistent length color
data = {
"tag": ["red", "blue"],
"tag_description": ["lorem ipsum", "foo bar"],
"tag_color": "red",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
"" "Color: red does not match the expected pattern",
output_text,
)
self.assertIn(
"Error: Incomplete request. "
"One or more tag color fields missing.",
output_text,
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
# Inconsistent length description
data = {
"tag": ["red", "blue"],
"tag_description": "lorem ipsum",
"tag_color": ["#ff0000", "#003cff"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
"Error: Incomplete request. "
"One or more tag description fields missing.",
output_text,
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
# consistent length, but empty description
data = {
"tag": ["red", "blue"],
"tag_description": ["lorem ipsum", ""],
"tag_color": ["#ff0000", "#003cff"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#003cff">blue</span>\n'
" "
'<span class="text-muted"></span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="blue" name="tag" />', output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#ff0000">red</span>\n'
" "
'<span class="text-muted">lorem ipsum</span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="red" name="tag" />', output_text
)
# Valid query
data = {
"tag": ["red1", "green"],
"tag_description": ["lorem ipsum", "sample description"],
"tag_color": ["#ff0000", "#00ff00"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#00ff00">green</span>\n'
" "
'<span class="text-muted">sample description</span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="green" name="tag" />', output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#ff0000">red1</span>\n'
" "
'<span class="text-muted">lorem ipsum</span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="red" name="tag" />', output_text
)
# Valid query - Two tags of the same color
data = {
"tag": ["red2", "red3"],
"tag_color": ["#ff0000", "#ff0000"],
"tag_description": ["", ""],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#ff0000">red2</span>\n'
" "
'<span class="text-muted"></span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="green" name="tag" />', output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#ff0000">red3</span>\n'
" "
'<span class="text-muted"></span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="red" name="tag" />', output_text
)
# Invalid query - Tag already known
data = {
"tag": ["red2"],
"tag_color": ["#000"],
"tag_description": [""],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#ff0000">red2</span>\n'
" "
'<span class="text-muted"></span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="green" name="tag" />', output_text
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#ff0000">red3</span>\n'
" "
'<span class="text-muted"></span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="red" name="tag" />', output_text
)
self.assertIn("Duplicated tag: red2", output_text)
# After update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual(
sorted([tag.tag for tag in tags]),
["blue", "green", "red", "red1", "red2", "red3"],
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_tags_with_colon(self, p_send_email, p_ugt):
""" Test the update_tags endpoint with a tag containing a colon. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Before update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], [])
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# Tag with a colon ':'
data = {
"tag": ["is:red2"],
"tag_color": ["#000"],
"tag_description": [""],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
self.assertIn(
'<span class="badge badge-info" '
'data-bg-color="#000">is:red2</span>\n'
" "
'<span class="text-muted"></span>',
output_text,
)
self.assertIn(
'<input type="hidden" value="is:red2" name="tag" />',
output_text,
)
# After update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual(sorted([tag.tag for tag in tags]), ["is:red2"])
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_update_tags_with_coma(self, p_send_email, p_ugt):
""" Test the update_tags endpoint with a tag containing a coma. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"))
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
# Before update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual([tag.tag for tag in tags], [])
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# Tag with a colon ':'
data = {
"tag": ["green,red2"],
"tag_color": ["#000"],
"tag_description": [""],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/tags", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">Project '
"Settings</h5>",
output_text,
)
self.assertIn(
"</i> Tag: green,red2 contains one or more invalid "
"characters</div>\n",
output_text,
)
# After update, list tags
tags = pagure.lib.query.get_tags_of_project(self.session, repo)
self.assertEqual(sorted([tag.tag for tag in tags]), [])
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_namespace_comment(self, p_send_email, p_ugt):
"""Test comment on the view_issue endpoint on namespaced project."""
# Create the project ns/test
item = pagure.lib.model.Project(
user_id=1, # pingou
name="test3",
namespace="ns",
description="test project #3",
hook_token="aaabbbcccdd",
)
self.session.add(item)
self.session.commit()
self.assertEqual(item.fullname, "ns/test3")
pygit2.init_repository(
os.path.join(self.path, "repos", "ns", "test3.git"), bare=True
)
# Create 2 issues
iss = pagure.lib.query.new_issue(
issue_id=1,
session=self.session,
repo=item,
title="test issue",
content="content test issue",
user="pingou",
)
self.session.commit()
self.assertEqual(iss.id, 1)
self.assertEqual(iss.title, "test issue")
self.assertEqual(iss.project.fullname, "ns/test3")
iss = pagure.lib.query.new_issue(
issue_id=2,
session=self.session,
repo=item,
title="test issue2",
content="content test issue2",
user="pingou",
)
self.session.commit()
self.assertEqual(iss.id, 2)
self.assertEqual(iss.title, "test issue2")
self.assertEqual(iss.project.fullname, "ns/test3")
# Add a comment on the second issue pointing to the first one
issue_comment = pagure.lib.model.IssueComment(
issue_uid=iss.uid,
comment="foo bar #1 see?",
user_id=1, # pingou
notification=False,
)
self.session.add(issue_comment)
self.session.commit()
output = self.app.get("/ns/test3/issue/2")
self.assertEqual(output.status_code, 200)
self.assertIn(
'<span class="comment_text comment_body">'
'<div class="markdown"><p>foo bar <a href="/ns/test3/issue/1" '
'title="[Open] test issue">#1</a> see?</p></div></span>',
output.get_data(as_text=True),
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_comment_and_close(self, p_send_email, p_ugt):
"""Test if the comment and close button shows up on a ticket opened
by the user
"""
# Create the project ns/test
item = pagure.lib.model.Project(
user_id=1, # pingou
name="test3",
namespace="ns",
description="test project #3",
hook_token="aaabbbcccdd",
)
self.session.add(item)
self.session.commit()
self.assertEqual(item.fullname, "ns/test3")
pygit2.init_repository(
os.path.join(self.path, "repos", "ns", "test3.git"), bare=True
)
# Create 1 issue
iss = pagure.lib.query.new_issue(
issue_id=1,
session=self.session,
repo=item,
title="test issue2",
content="content test issue2",
user="foo",
)
self.session.commit()
self.assertEqual(iss.id, 1)
self.assertEqual(iss.title, "test issue2")
self.assertEqual(iss.project.fullname, "ns/test3")
user = tests.FakeUser(username="foo")
with tests.user_set(self.app.application, user):
output = self.app.get("/ns/test3/issue/1")
self.assertEqual(output.status_code, 200)
self.assertIn(
'<a class="btn btn-outline-primary comment_and_close_action pointer" '
'data-value="">\n'
" Comment & Close\n",
output.get_data(as_text=True),
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_forked_namespace_comment(self, p_send_email, p_ugt):
"""Test comment on the view_issue endpoint on namespaced project."""
# Create the project ns/test
item = pagure.lib.model.Project(
user_id=1, # pingou
name="test3",
namespace="ns",
description="test project #3",
hook_token="aaabbbcccdd",
)
self.session.add(item)
self.session.commit()
self.assertEqual(item.fullname, "ns/test3")
# Fork the project ns/test
item = pagure.lib.model.Project(
user_id=1, # pingou
parent_id=1, # ns/test
is_fork=True,
name="test3",
namespace="ns",
description="test project #3",
hook_token="aaabbbcccddff",
)
self.session.add(item)
self.session.commit()
self.assertEqual(item.fullname, "forks/pingou/ns/test3")
pygit2.init_repository(
os.path.join(
self.path, "repos", "forks", "pingou", "ns", "test3.git"
),
bare=True,
)
# Create 2 issues
iss = pagure.lib.query.new_issue(
issue_id=1,
session=self.session,
repo=item,
title="test issue",
content="content test issue",
user="pingou",
)
self.session.commit()
self.assertEqual(iss.id, 1)
self.assertEqual(iss.title, "test issue")
self.assertEqual(iss.project.fullname, "forks/pingou/ns/test3")
iss = pagure.lib.query.new_issue(
issue_id=2,
session=self.session,
repo=item,
title="test issue2",
content="content test issue2",
user="pingou",
)
self.session.commit()
self.assertEqual(iss.id, 2)
self.assertEqual(iss.title, "test issue2")
self.assertEqual(iss.project.fullname, "forks/pingou/ns/test3")
# Add a comment on the second issue pointing to the first one
issue_comment = pagure.lib.model.IssueComment(
issue_uid=iss.uid,
comment="foo bar #1 see?",
user_id=1, # pingou
notification=False,
)
self.session.add(issue_comment)
self.session.commit()
output = self.app.get("/fork/pingou/ns/test3/issue/2")
self.assertEqual(output.status_code, 200)
self.assertIn(
'<span class="comment_text comment_body">'
'<div class="markdown"><p>foo bar <a href="/fork/pingou/ns/test3/issue/1" '
'title="[Open] test issue">#1</a> see?</p></div></span>',
output.get_data(as_text=True),
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_view_issue_closed(self, p_send_email, p_ugt):
""" Test viewing a closed issue. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Create issues to play with
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="We should work on this",
user="pingou",
)
self.session.commit()
self.assertEqual(msg.title, "Test issue")
user = tests.FakeUser()
user.username = "foo"
msg = pagure.lib.query.add_user_to_project(
self.session, repo, "foo", "pingou"
)
self.session.commit()
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
csrf_token = self.get_csrf(output=output)
# Add new comment
data = {
"csrf_token": csrf_token,
"status": "Closed",
"close_status": "Fixed",
"comment": "Woohoo a second comment!",
}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0"'
' href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn("Comment added", output_text)
self.assertTrue("<p>Woohoo a second comment!</p>" in output_text)
self.assertEqual(output_text.count('comment_body">'), 2)
self.assertTrue(
'<option selected value="Fixed">Fixed</option>' in output_text
)
self.assertIn(
" Closed: Fixed\n"
" </span> just now\n"
" </span>\n"
" by\n"
' <span title="foo bar (foo)">foo.</span>\n',
output_text,
)
def _set_up_for_reaction_test(self, private=False):
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
self.session.add(
pagure.lib.model.User(
user="naysayer",
fullname="John Doe",
password=b"password",
default_email="jdoe@example.com",
)
)
self.session.commit()
repo = pagure.lib.query.get_authorized_project(self.session, "test")
msg = pagure.lib.query.new_issue(
session=self.session,
repo=repo,
title="Test issue",
content="Fix me",
user="pingou",
private=private,
)
pagure.lib.query.add_issue_comment(
session=self.session,
issue=msg,
comment="How about no",
user="naysayer",
)
self.session.commit()
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_add_reaction(self, p_send_email, p_ugt):
""" Test adding a reaction to an issue comment."""
p_send_email.return_value = True
p_ugt.return_value = True
self._set_up_for_reaction_test()
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
data = {
"csrf_token": self.get_csrf(output=output),
"reaction": "Thumbs down",
}
output = self.app.post(
"/test/issue/1/comment/1/react",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
# Load the page and check reaction is added.
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
self.assertIn(
"Thumbs down sent by pingou", output.get_data(as_text=True)
)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_add_reaction_unauthenticated(self, p_send_email, p_ugt):
"""
Test adding a reaction to an issue comment without authentication.
"""
p_send_email.return_value = True
p_ugt.return_value = True
self._set_up_for_reaction_test()
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
data = {
"csrf_token": self.get_csrf(output=output),
"reaction": "Thumbs down",
}
output = self.app.post(
"/test/issue/1/comment/1/react", data=data, follow_redirects=False
)
# Redirect to login page
self.assertEqual(output.status_code, 302)
self.assertIn("/login/", output.headers["Location"])
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_add_reaction_private_issue(self, p_send_email, p_ugt):
"""Test adding a reaction to a private issue comment."""
p_send_email.return_value = True
p_ugt.return_value = True
self._set_up_for_reaction_test(private=True)
user = tests.FakeUser()
user.username = "naysayer"
with tests.user_set(self.app.application, user):
# Steal CSRF token from new issue page
output = self.app.get("/test/new_issue")
data = {
"csrf_token": self.get_csrf(output=output),
"reaction": "Thumbs down",
}
output = self.app.post(
"/test/issue/1/comment/1/react",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 404)
if __name__ == "__main__":
unittest.main(verbosity=2)
| 39.731874
| 235
| 0.498722
| 23,543
| 232,352
| 4.788685
| 0.031177
| 0.041689
| 0.044146
| 0.05173
| 0.92622
| 0.915975
| 0.902217
| 0.889808
| 0.880619
| 0.867279
| 0
| 0.014347
| 0.38236
| 232,352
| 5,847
| 236
| 39.738669
| 0.771215
| 0.05026
| 0
| 0.77987
| 0
| 0.00729
| 0.226217
| 0.052563
| 0
| 0
| 0
| 0.000342
| 0.152896
| 1
| 0.011341
| false
| 0.000203
| 0.004253
| 0
| 0.015796
| 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
|
1c1f583635db67d407fe10c0b55c7ccbebc015ed
| 50
|
py
|
Python
|
nlplot/__init__.py
|
chottokun/nlplot
|
ebcc96752c004e2fce0e0ce977cc18c6572a3194
|
[
"MIT"
] | null | null | null |
nlplot/__init__.py
|
chottokun/nlplot
|
ebcc96752c004e2fce0e0ce977cc18c6572a3194
|
[
"MIT"
] | null | null | null |
nlplot/__init__.py
|
chottokun/nlplot
|
ebcc96752c004e2fce0e0ce977cc18c6572a3194
|
[
"MIT"
] | null | null | null |
from nlplot.nlplot import *
def main():
pass
| 10
| 27
| 0.66
| 7
| 50
| 4.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.24
| 50
| 4
| 28
| 12.5
| 0.868421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
1c50e410ef8413cc88a25f4859965525819ad67d
| 35,727
|
py
|
Python
|
sdk/python/pulumi_sysdig/monitor/alert_anomaly.py
|
Sysdig-Hackathon-Picasso/pulumi-sysdig
|
e25b655f6ad4a5f52678bc445be2d59f28f5bb4b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_sysdig/monitor/alert_anomaly.py
|
Sysdig-Hackathon-Picasso/pulumi-sysdig
|
e25b655f6ad4a5f52678bc445be2d59f28f5bb4b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_sysdig/monitor/alert_anomaly.py
|
Sysdig-Hackathon-Picasso/pulumi-sysdig
|
e25b655f6ad4a5f52678bc445be2d59f28f5bb4b
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-12-01T08:57:09.000Z
|
2021-12-01T08:57:09.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['AlertAnomalyArgs', 'AlertAnomaly']
@pulumi.input_type
class AlertAnomalyArgs:
def __init__(__self__, *,
monitors: pulumi.Input[Sequence[pulumi.Input[str]]],
trigger_after_minutes: pulumi.Input[int],
capture: Optional[pulumi.Input['AlertAnomalyCaptureArgs']] = None,
custom_notification: Optional[pulumi.Input['AlertAnomalyCustomNotificationArgs']] = None,
description: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
multiple_alerts_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_channels: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
renotification_minutes: Optional[pulumi.Input[int]] = None,
scope: Optional[pulumi.Input[str]] = None,
severity: Optional[pulumi.Input[int]] = None):
"""
The set of arguments for constructing a AlertAnomaly resource.
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitors: Array of metrics to monitor and alert on. Example: `["cpu.used.percent", "cpu.cores.used", "memory.bytes.used", "fs.used.percent", "thread.count", "net.request.count.in"]`.
:param pulumi.Input[int] trigger_after_minutes: Threshold of time for the status to stabilize until the alert is fired.
:param pulumi.Input['AlertAnomalyCaptureArgs'] capture: Enables the creation of a capture file of the syscalls during the event.
:param pulumi.Input['AlertAnomalyCustomNotificationArgs'] custom_notification: Allows to define a custom notification title, prepend and append text.
:param pulumi.Input[str] description: The description of Monitor alert.
:param pulumi.Input[bool] enabled: Boolean that defines if the alert is enabled or not. Defaults to true.
:param pulumi.Input[Sequence[pulumi.Input[str]]] multiple_alerts_bies: List of segments to trigger a separate alert on. Example: `["kubernetes.cluster.name", "kubernetes.namespace.name"]`.
:param pulumi.Input[str] name: The name of the Monitor alert. It must be unique.
:param pulumi.Input[Sequence[pulumi.Input[int]]] notification_channels: List of notification channel IDs where an alert must be sent to once fired.
:param pulumi.Input[int] renotification_minutes: Number of minutes for the alert to re-notify until the status is solved.
:param pulumi.Input[str] scope: Part of the infrastructure where the alert is valid. Defaults to the entire infrastructure.
:param pulumi.Input[int] severity: Severity of the Monitor alert. It must be a value between 0 and 7,
with 0 being the most critical and 7 the less critical. Defaults to 4.
"""
pulumi.set(__self__, "monitors", monitors)
pulumi.set(__self__, "trigger_after_minutes", trigger_after_minutes)
if capture is not None:
pulumi.set(__self__, "capture", capture)
if custom_notification is not None:
pulumi.set(__self__, "custom_notification", custom_notification)
if description is not None:
pulumi.set(__self__, "description", description)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if multiple_alerts_bies is not None:
pulumi.set(__self__, "multiple_alerts_bies", multiple_alerts_bies)
if name is not None:
pulumi.set(__self__, "name", name)
if notification_channels is not None:
pulumi.set(__self__, "notification_channels", notification_channels)
if renotification_minutes is not None:
pulumi.set(__self__, "renotification_minutes", renotification_minutes)
if scope is not None:
pulumi.set(__self__, "scope", scope)
if severity is not None:
pulumi.set(__self__, "severity", severity)
@property
@pulumi.getter
def monitors(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
"""
Array of metrics to monitor and alert on. Example: `["cpu.used.percent", "cpu.cores.used", "memory.bytes.used", "fs.used.percent", "thread.count", "net.request.count.in"]`.
"""
return pulumi.get(self, "monitors")
@monitors.setter
def monitors(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
pulumi.set(self, "monitors", value)
@property
@pulumi.getter(name="triggerAfterMinutes")
def trigger_after_minutes(self) -> pulumi.Input[int]:
"""
Threshold of time for the status to stabilize until the alert is fired.
"""
return pulumi.get(self, "trigger_after_minutes")
@trigger_after_minutes.setter
def trigger_after_minutes(self, value: pulumi.Input[int]):
pulumi.set(self, "trigger_after_minutes", value)
@property
@pulumi.getter
def capture(self) -> Optional[pulumi.Input['AlertAnomalyCaptureArgs']]:
"""
Enables the creation of a capture file of the syscalls during the event.
"""
return pulumi.get(self, "capture")
@capture.setter
def capture(self, value: Optional[pulumi.Input['AlertAnomalyCaptureArgs']]):
pulumi.set(self, "capture", value)
@property
@pulumi.getter(name="customNotification")
def custom_notification(self) -> Optional[pulumi.Input['AlertAnomalyCustomNotificationArgs']]:
"""
Allows to define a custom notification title, prepend and append text.
"""
return pulumi.get(self, "custom_notification")
@custom_notification.setter
def custom_notification(self, value: Optional[pulumi.Input['AlertAnomalyCustomNotificationArgs']]):
pulumi.set(self, "custom_notification", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of Monitor alert.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
Boolean that defines if the alert is enabled or not. Defaults to true.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter(name="multipleAlertsBies")
def multiple_alerts_bies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of segments to trigger a separate alert on. Example: `["kubernetes.cluster.name", "kubernetes.namespace.name"]`.
"""
return pulumi.get(self, "multiple_alerts_bies")
@multiple_alerts_bies.setter
def multiple_alerts_bies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "multiple_alerts_bies", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Monitor alert. It must be unique.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="notificationChannels")
def notification_channels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
"""
List of notification channel IDs where an alert must be sent to once fired.
"""
return pulumi.get(self, "notification_channels")
@notification_channels.setter
def notification_channels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
pulumi.set(self, "notification_channels", value)
@property
@pulumi.getter(name="renotificationMinutes")
def renotification_minutes(self) -> Optional[pulumi.Input[int]]:
"""
Number of minutes for the alert to re-notify until the status is solved.
"""
return pulumi.get(self, "renotification_minutes")
@renotification_minutes.setter
def renotification_minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "renotification_minutes", value)
@property
@pulumi.getter
def scope(self) -> Optional[pulumi.Input[str]]:
"""
Part of the infrastructure where the alert is valid. Defaults to the entire infrastructure.
"""
return pulumi.get(self, "scope")
@scope.setter
def scope(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "scope", value)
@property
@pulumi.getter
def severity(self) -> Optional[pulumi.Input[int]]:
"""
Severity of the Monitor alert. It must be a value between 0 and 7,
with 0 being the most critical and 7 the less critical. Defaults to 4.
"""
return pulumi.get(self, "severity")
@severity.setter
def severity(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "severity", value)
@pulumi.input_type
class _AlertAnomalyState:
def __init__(__self__, *,
capture: Optional[pulumi.Input['AlertAnomalyCaptureArgs']] = None,
custom_notification: Optional[pulumi.Input['AlertAnomalyCustomNotificationArgs']] = None,
description: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
multiple_alerts_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_channels: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
renotification_minutes: Optional[pulumi.Input[int]] = None,
scope: Optional[pulumi.Input[str]] = None,
severity: Optional[pulumi.Input[int]] = None,
team: Optional[pulumi.Input[int]] = None,
trigger_after_minutes: Optional[pulumi.Input[int]] = None,
version: Optional[pulumi.Input[int]] = None):
"""
Input properties used for looking up and filtering AlertAnomaly resources.
:param pulumi.Input['AlertAnomalyCaptureArgs'] capture: Enables the creation of a capture file of the syscalls during the event.
:param pulumi.Input['AlertAnomalyCustomNotificationArgs'] custom_notification: Allows to define a custom notification title, prepend and append text.
:param pulumi.Input[str] description: The description of Monitor alert.
:param pulumi.Input[bool] enabled: Boolean that defines if the alert is enabled or not. Defaults to true.
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitors: Array of metrics to monitor and alert on. Example: `["cpu.used.percent", "cpu.cores.used", "memory.bytes.used", "fs.used.percent", "thread.count", "net.request.count.in"]`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] multiple_alerts_bies: List of segments to trigger a separate alert on. Example: `["kubernetes.cluster.name", "kubernetes.namespace.name"]`.
:param pulumi.Input[str] name: The name of the Monitor alert. It must be unique.
:param pulumi.Input[Sequence[pulumi.Input[int]]] notification_channels: List of notification channel IDs where an alert must be sent to once fired.
:param pulumi.Input[int] renotification_minutes: Number of minutes for the alert to re-notify until the status is solved.
:param pulumi.Input[str] scope: Part of the infrastructure where the alert is valid. Defaults to the entire infrastructure.
:param pulumi.Input[int] severity: Severity of the Monitor alert. It must be a value between 0 and 7,
with 0 being the most critical and 7 the less critical. Defaults to 4.
:param pulumi.Input[int] team: Team ID that owns the alert.
:param pulumi.Input[int] trigger_after_minutes: Threshold of time for the status to stabilize until the alert is fired.
:param pulumi.Input[int] version: Current version of the resource in Sysdig Monitor.
"""
if capture is not None:
pulumi.set(__self__, "capture", capture)
if custom_notification is not None:
pulumi.set(__self__, "custom_notification", custom_notification)
if description is not None:
pulumi.set(__self__, "description", description)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if monitors is not None:
pulumi.set(__self__, "monitors", monitors)
if multiple_alerts_bies is not None:
pulumi.set(__self__, "multiple_alerts_bies", multiple_alerts_bies)
if name is not None:
pulumi.set(__self__, "name", name)
if notification_channels is not None:
pulumi.set(__self__, "notification_channels", notification_channels)
if renotification_minutes is not None:
pulumi.set(__self__, "renotification_minutes", renotification_minutes)
if scope is not None:
pulumi.set(__self__, "scope", scope)
if severity is not None:
pulumi.set(__self__, "severity", severity)
if team is not None:
pulumi.set(__self__, "team", team)
if trigger_after_minutes is not None:
pulumi.set(__self__, "trigger_after_minutes", trigger_after_minutes)
if version is not None:
pulumi.set(__self__, "version", version)
@property
@pulumi.getter
def capture(self) -> Optional[pulumi.Input['AlertAnomalyCaptureArgs']]:
"""
Enables the creation of a capture file of the syscalls during the event.
"""
return pulumi.get(self, "capture")
@capture.setter
def capture(self, value: Optional[pulumi.Input['AlertAnomalyCaptureArgs']]):
pulumi.set(self, "capture", value)
@property
@pulumi.getter(name="customNotification")
def custom_notification(self) -> Optional[pulumi.Input['AlertAnomalyCustomNotificationArgs']]:
"""
Allows to define a custom notification title, prepend and append text.
"""
return pulumi.get(self, "custom_notification")
@custom_notification.setter
def custom_notification(self, value: Optional[pulumi.Input['AlertAnomalyCustomNotificationArgs']]):
pulumi.set(self, "custom_notification", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
The description of Monitor alert.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
Boolean that defines if the alert is enabled or not. Defaults to true.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter
def monitors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Array of metrics to monitor and alert on. Example: `["cpu.used.percent", "cpu.cores.used", "memory.bytes.used", "fs.used.percent", "thread.count", "net.request.count.in"]`.
"""
return pulumi.get(self, "monitors")
@monitors.setter
def monitors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "monitors", value)
@property
@pulumi.getter(name="multipleAlertsBies")
def multiple_alerts_bies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
List of segments to trigger a separate alert on. Example: `["kubernetes.cluster.name", "kubernetes.namespace.name"]`.
"""
return pulumi.get(self, "multiple_alerts_bies")
@multiple_alerts_bies.setter
def multiple_alerts_bies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "multiple_alerts_bies", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the Monitor alert. It must be unique.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="notificationChannels")
def notification_channels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
"""
List of notification channel IDs where an alert must be sent to once fired.
"""
return pulumi.get(self, "notification_channels")
@notification_channels.setter
def notification_channels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
pulumi.set(self, "notification_channels", value)
@property
@pulumi.getter(name="renotificationMinutes")
def renotification_minutes(self) -> Optional[pulumi.Input[int]]:
"""
Number of minutes for the alert to re-notify until the status is solved.
"""
return pulumi.get(self, "renotification_minutes")
@renotification_minutes.setter
def renotification_minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "renotification_minutes", value)
@property
@pulumi.getter
def scope(self) -> Optional[pulumi.Input[str]]:
"""
Part of the infrastructure where the alert is valid. Defaults to the entire infrastructure.
"""
return pulumi.get(self, "scope")
@scope.setter
def scope(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "scope", value)
@property
@pulumi.getter
def severity(self) -> Optional[pulumi.Input[int]]:
"""
Severity of the Monitor alert. It must be a value between 0 and 7,
with 0 being the most critical and 7 the less critical. Defaults to 4.
"""
return pulumi.get(self, "severity")
@severity.setter
def severity(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "severity", value)
@property
@pulumi.getter
def team(self) -> Optional[pulumi.Input[int]]:
"""
Team ID that owns the alert.
"""
return pulumi.get(self, "team")
@team.setter
def team(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "team", value)
@property
@pulumi.getter(name="triggerAfterMinutes")
def trigger_after_minutes(self) -> Optional[pulumi.Input[int]]:
"""
Threshold of time for the status to stabilize until the alert is fired.
"""
return pulumi.get(self, "trigger_after_minutes")
@trigger_after_minutes.setter
def trigger_after_minutes(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "trigger_after_minutes", value)
@property
@pulumi.getter
def version(self) -> Optional[pulumi.Input[int]]:
"""
Current version of the resource in Sysdig Monitor.
"""
return pulumi.get(self, "version")
@version.setter
def version(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "version", value)
class AlertAnomaly(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
capture: Optional[pulumi.Input[pulumi.InputType['AlertAnomalyCaptureArgs']]] = None,
custom_notification: Optional[pulumi.Input[pulumi.InputType['AlertAnomalyCustomNotificationArgs']]] = None,
description: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
multiple_alerts_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_channels: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
renotification_minutes: Optional[pulumi.Input[int]] = None,
scope: Optional[pulumi.Input[str]] = None,
severity: Optional[pulumi.Input[int]] = None,
trigger_after_minutes: Optional[pulumi.Input[int]] = None,
__props__=None):
"""
## Import
Anomaly Monitor alerts can be imported using the alert ID, e.g.
```sh
$ pulumi import sysdig:Monitor/alertAnomaly:AlertAnomaly example 12345
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[pulumi.InputType['AlertAnomalyCaptureArgs']] capture: Enables the creation of a capture file of the syscalls during the event.
:param pulumi.Input[pulumi.InputType['AlertAnomalyCustomNotificationArgs']] custom_notification: Allows to define a custom notification title, prepend and append text.
:param pulumi.Input[str] description: The description of Monitor alert.
:param pulumi.Input[bool] enabled: Boolean that defines if the alert is enabled or not. Defaults to true.
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitors: Array of metrics to monitor and alert on. Example: `["cpu.used.percent", "cpu.cores.used", "memory.bytes.used", "fs.used.percent", "thread.count", "net.request.count.in"]`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] multiple_alerts_bies: List of segments to trigger a separate alert on. Example: `["kubernetes.cluster.name", "kubernetes.namespace.name"]`.
:param pulumi.Input[str] name: The name of the Monitor alert. It must be unique.
:param pulumi.Input[Sequence[pulumi.Input[int]]] notification_channels: List of notification channel IDs where an alert must be sent to once fired.
:param pulumi.Input[int] renotification_minutes: Number of minutes for the alert to re-notify until the status is solved.
:param pulumi.Input[str] scope: Part of the infrastructure where the alert is valid. Defaults to the entire infrastructure.
:param pulumi.Input[int] severity: Severity of the Monitor alert. It must be a value between 0 and 7,
with 0 being the most critical and 7 the less critical. Defaults to 4.
:param pulumi.Input[int] trigger_after_minutes: Threshold of time for the status to stabilize until the alert is fired.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: AlertAnomalyArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
## Import
Anomaly Monitor alerts can be imported using the alert ID, e.g.
```sh
$ pulumi import sysdig:Monitor/alertAnomaly:AlertAnomaly example 12345
```
:param str resource_name: The name of the resource.
:param AlertAnomalyArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(AlertAnomalyArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
capture: Optional[pulumi.Input[pulumi.InputType['AlertAnomalyCaptureArgs']]] = None,
custom_notification: Optional[pulumi.Input[pulumi.InputType['AlertAnomalyCustomNotificationArgs']]] = None,
description: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
multiple_alerts_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_channels: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
renotification_minutes: Optional[pulumi.Input[int]] = None,
scope: Optional[pulumi.Input[str]] = None,
severity: Optional[pulumi.Input[int]] = None,
trigger_after_minutes: Optional[pulumi.Input[int]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = AlertAnomalyArgs.__new__(AlertAnomalyArgs)
__props__.__dict__["capture"] = capture
__props__.__dict__["custom_notification"] = custom_notification
__props__.__dict__["description"] = description
__props__.__dict__["enabled"] = enabled
if monitors is None and not opts.urn:
raise TypeError("Missing required property 'monitors'")
__props__.__dict__["monitors"] = monitors
__props__.__dict__["multiple_alerts_bies"] = multiple_alerts_bies
__props__.__dict__["name"] = name
__props__.__dict__["notification_channels"] = notification_channels
__props__.__dict__["renotification_minutes"] = renotification_minutes
__props__.__dict__["scope"] = scope
__props__.__dict__["severity"] = severity
if trigger_after_minutes is None and not opts.urn:
raise TypeError("Missing required property 'trigger_after_minutes'")
__props__.__dict__["trigger_after_minutes"] = trigger_after_minutes
__props__.__dict__["team"] = None
__props__.__dict__["version"] = None
super(AlertAnomaly, __self__).__init__(
'sysdig:Monitor/alertAnomaly:AlertAnomaly',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
capture: Optional[pulumi.Input[pulumi.InputType['AlertAnomalyCaptureArgs']]] = None,
custom_notification: Optional[pulumi.Input[pulumi.InputType['AlertAnomalyCustomNotificationArgs']]] = None,
description: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
monitors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
multiple_alerts_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
notification_channels: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
renotification_minutes: Optional[pulumi.Input[int]] = None,
scope: Optional[pulumi.Input[str]] = None,
severity: Optional[pulumi.Input[int]] = None,
team: Optional[pulumi.Input[int]] = None,
trigger_after_minutes: Optional[pulumi.Input[int]] = None,
version: Optional[pulumi.Input[int]] = None) -> 'AlertAnomaly':
"""
Get an existing AlertAnomaly resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[pulumi.InputType['AlertAnomalyCaptureArgs']] capture: Enables the creation of a capture file of the syscalls during the event.
:param pulumi.Input[pulumi.InputType['AlertAnomalyCustomNotificationArgs']] custom_notification: Allows to define a custom notification title, prepend and append text.
:param pulumi.Input[str] description: The description of Monitor alert.
:param pulumi.Input[bool] enabled: Boolean that defines if the alert is enabled or not. Defaults to true.
:param pulumi.Input[Sequence[pulumi.Input[str]]] monitors: Array of metrics to monitor and alert on. Example: `["cpu.used.percent", "cpu.cores.used", "memory.bytes.used", "fs.used.percent", "thread.count", "net.request.count.in"]`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] multiple_alerts_bies: List of segments to trigger a separate alert on. Example: `["kubernetes.cluster.name", "kubernetes.namespace.name"]`.
:param pulumi.Input[str] name: The name of the Monitor alert. It must be unique.
:param pulumi.Input[Sequence[pulumi.Input[int]]] notification_channels: List of notification channel IDs where an alert must be sent to once fired.
:param pulumi.Input[int] renotification_minutes: Number of minutes for the alert to re-notify until the status is solved.
:param pulumi.Input[str] scope: Part of the infrastructure where the alert is valid. Defaults to the entire infrastructure.
:param pulumi.Input[int] severity: Severity of the Monitor alert. It must be a value between 0 and 7,
with 0 being the most critical and 7 the less critical. Defaults to 4.
:param pulumi.Input[int] team: Team ID that owns the alert.
:param pulumi.Input[int] trigger_after_minutes: Threshold of time for the status to stabilize until the alert is fired.
:param pulumi.Input[int] version: Current version of the resource in Sysdig Monitor.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _AlertAnomalyState.__new__(_AlertAnomalyState)
__props__.__dict__["capture"] = capture
__props__.__dict__["custom_notification"] = custom_notification
__props__.__dict__["description"] = description
__props__.__dict__["enabled"] = enabled
__props__.__dict__["monitors"] = monitors
__props__.__dict__["multiple_alerts_bies"] = multiple_alerts_bies
__props__.__dict__["name"] = name
__props__.__dict__["notification_channels"] = notification_channels
__props__.__dict__["renotification_minutes"] = renotification_minutes
__props__.__dict__["scope"] = scope
__props__.__dict__["severity"] = severity
__props__.__dict__["team"] = team
__props__.__dict__["trigger_after_minutes"] = trigger_after_minutes
__props__.__dict__["version"] = version
return AlertAnomaly(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def capture(self) -> pulumi.Output[Optional['outputs.AlertAnomalyCapture']]:
"""
Enables the creation of a capture file of the syscalls during the event.
"""
return pulumi.get(self, "capture")
@property
@pulumi.getter(name="customNotification")
def custom_notification(self) -> pulumi.Output[Optional['outputs.AlertAnomalyCustomNotification']]:
"""
Allows to define a custom notification title, prepend and append text.
"""
return pulumi.get(self, "custom_notification")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
The description of Monitor alert.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def enabled(self) -> pulumi.Output[Optional[bool]]:
"""
Boolean that defines if the alert is enabled or not. Defaults to true.
"""
return pulumi.get(self, "enabled")
@property
@pulumi.getter
def monitors(self) -> pulumi.Output[Sequence[str]]:
"""
Array of metrics to monitor and alert on. Example: `["cpu.used.percent", "cpu.cores.used", "memory.bytes.used", "fs.used.percent", "thread.count", "net.request.count.in"]`.
"""
return pulumi.get(self, "monitors")
@property
@pulumi.getter(name="multipleAlertsBies")
def multiple_alerts_bies(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
List of segments to trigger a separate alert on. Example: `["kubernetes.cluster.name", "kubernetes.namespace.name"]`.
"""
return pulumi.get(self, "multiple_alerts_bies")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the Monitor alert. It must be unique.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="notificationChannels")
def notification_channels(self) -> pulumi.Output[Optional[Sequence[int]]]:
"""
List of notification channel IDs where an alert must be sent to once fired.
"""
return pulumi.get(self, "notification_channels")
@property
@pulumi.getter(name="renotificationMinutes")
def renotification_minutes(self) -> pulumi.Output[Optional[int]]:
"""
Number of minutes for the alert to re-notify until the status is solved.
"""
return pulumi.get(self, "renotification_minutes")
@property
@pulumi.getter
def scope(self) -> pulumi.Output[Optional[str]]:
"""
Part of the infrastructure where the alert is valid. Defaults to the entire infrastructure.
"""
return pulumi.get(self, "scope")
@property
@pulumi.getter
def severity(self) -> pulumi.Output[Optional[int]]:
"""
Severity of the Monitor alert. It must be a value between 0 and 7,
with 0 being the most critical and 7 the less critical. Defaults to 4.
"""
return pulumi.get(self, "severity")
@property
@pulumi.getter
def team(self) -> pulumi.Output[int]:
"""
Team ID that owns the alert.
"""
return pulumi.get(self, "team")
@property
@pulumi.getter(name="triggerAfterMinutes")
def trigger_after_minutes(self) -> pulumi.Output[int]:
"""
Threshold of time for the status to stabilize until the alert is fired.
"""
return pulumi.get(self, "trigger_after_minutes")
@property
@pulumi.getter
def version(self) -> pulumi.Output[int]:
"""
Current version of the resource in Sysdig Monitor.
"""
return pulumi.get(self, "version")
| 48.020161
| 239
| 0.661461
| 4,148
| 35,727
| 5.530135
| 0.055448
| 0.101181
| 0.091111
| 0.033131
| 0.913902
| 0.89398
| 0.875278
| 0.867823
| 0.865077
| 0.852042
| 0
| 0.001675
| 0.231422
| 35,727
| 743
| 240
| 48.084791
| 0.833716
| 0.323285
| 0
| 0.79684
| 1
| 0
| 0.116778
| 0.056813
| 0
| 0
| 0
| 0
| 0
| 1
| 0.164786
| false
| 0.002257
| 0.015801
| 0
| 0.27991
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
1c907fdf7890b0b6dd62738046f6ed034add9da6
| 7,726
|
py
|
Python
|
install.py
|
heitorsampaio/interomicspro
|
9804454f0f5b10305da6fe81db33ec00dd1c836d
|
[
"MIT"
] | null | null | null |
install.py
|
heitorsampaio/interomicspro
|
9804454f0f5b10305da6fe81db33ec00dd1c836d
|
[
"MIT"
] | null | null | null |
install.py
|
heitorsampaio/interomicspro
|
9804454f0f5b10305da6fe81db33ec00dd1c836d
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
from subprocess import call
import os
import sys
GLOBAL_PATH='/Users/heitorsampaio/Documents/interomicspro/';
b = ('''
██████╗ █████╗ ████████╗ ██████╗ ███████╗███╗ ██╗
██╔══██╗██╔══██╗╚══██╔══╝██╔════╝ ██╔════╝████╗ ██║
██████╔╝███████║ ██║ ██║ ███╗█████╗ ██╔██╗ ██║
██╔═══╝ ██╔══██║ ██║ ██║ ██║██╔══╝ ██║╚██╗██║
██║ ██║ ██║ ██║ ╚██████╔╝███████╗██║ ╚████║
╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝
====================================================================
** WebSite : patgen.com.br **
** Developers : Heitor Sampaio **
** Description : Installation module for InterOmics Pro**
** **
====================================================================
''')
#while True:
os.system('clear')
print (b)
print ('\r')
print ("""
1 - Genomics Module
2 - Transcriptomics Module
3 - Proteomics Module
4 - Reference Genome Download
5 - dbSNP Download
6 - All [Recommend]
7 - Exit
""")
EnterOp = input("Enter : ")
if EnterOp == "1":
call([
"sudo",
"apt-get",
"install",
"wget",
"unzip",
"tar",
"perl",
"libarchive-extract-perl"
])
call([
"perl",
GLOBAL_PATH+"omics_install/genomics.pl"
])
print ("\n")
input("[*] Back To Menu (Press Enter...) ")
elif EnterOp == "2":
call([
"sudo",
"apt-get",
"install",
"wget",
"unzip",
"tar",
"perl",
"libarchive-extract-perl"
])
call([
"perl",
GLOBAL_PATH+"omics_install/transcriptomics.pl"
])
print ("\n")
input("[*] Back To Menu (Press Enter...) ")
elif EnterOp == "3":
call([
"sudo",
"apt-get",
"install",
"wget",
"unzip",
"tar",
"perl",
"libarchive-extract-perl"
])
call([
"perl",
GLOBAL_PATH+"omics_install/proteomics.pl"
])
print ("\n")
input("[*] Back To Menu (Press Enter...) ")
elif EnterOp == "4":
call([
"sudo",
"apt-get",
"install",
"wget",
"unzip",
"tar",
"perl",
"libarchive-extract-perl"
])
call([
"python3",
GLOBAL_PATH+"omics_install/genome_download.py"
])
print ("\n")
input("[*] Back To Menu (Press Enter...) ")
elif EnterOp == "5":
call([
"sudo",
"apt-get",
"install",
"wget",
"unzip",
"tar",
"perl",
"libarchive-extract-perl"
])
dbSnp = GLOBAL_PATH+"dbSNP/"
home = GLOBAL_PATH
os.mkdir( dbSnp, 0o755 )
print("dbSNP path is created")
os.chdir( dbSnp )
retval = os.getcwd()
print("Directory changes successfully %s" % retval)
call([
"wget",
"ftp://ftp.ncbi.nlm.nih.gov/snp/organisms/human_9606_b151_GRCh38p7/VCF/GATK/00-All.vcf.gz"
])
call ([
"gzip",
"-d",
"00-All.vcf.gz"
])
call ([
"rm",
"00-All.vcf.gz"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz"
])
call([
"gzip",
"-d",
"Mills_and_1000G_gold_standard.indels.hg38.vcf.gz"
])
call([
"rm",
"Mills_and_1000G_gold_standard.indels.hg38.vcf.gz"
])
call([
"mv",
"Mills_and_1000G_gold_standard.indels.hg38.vcf",
"Mills_1kg_indels_hg38.vcf"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/Homo_sapiens_assembly38.known_indels.vcf.gz"
])
call([
"gzip",
"-d",
"Homo_sapiens_assembly38.known_indels.vcf.gz"
])
call([
"rm",
"Homo_sapiens_assembly38.known_indels.vcf.gz"
])
call([
"mv",
"Homo_sapiens_assembly38.known_indels.vcf",
"hsa_indels_hg38.vcf"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/1000G_phase1.snps.high_confidence.hg38.vcf.gz"
])
call([
"gzip",
"-d",
"1000G_phase1.snps.high_confidence.hg38.vcf.gz"
])
call([
"rm",
"1000G_phase1.snps.high_confidence.hg38.vcf.gz"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/1000G_omni2.5.hg38.vcf.gz"
])
call([
"gzip",
"-d",
"1000G_omni2.5.hg38.vcf.gz"
])
call([
"rm",
"1000G_omni2.5.hg38.vcf.gz"
])
print ("\n")
input("[*] Back To Menu (Press Enter...) ")
elif EnterOp == "6":
call([
"sudo",
"apt-get",
"install",
"wget",
"unzip",
"tar",
"perl",
"libarchive-extract-perl"
])
call([
"perl",
GLOBAL_PATH+"omics_install/genomics.pl"
])
call([
"perl",
GLOBAL_PATH+"omics_install/transcriptomics.pl"
])
call([
"perl",
GLOBAL_PATH+"omics_install/proteomics.pl"
])
call([
"python3",
GLOBAL_PATH+"omics_install/genome_download.py"
])
dbSnp = GLOBAL_PATH+"dbSNP/"
os.mkdir( dbSnp, 0o755 )
print("dbSNP path is created")
os.chdir( dbSnp )
retval = os.getcwd()
print("Directory changes successfully %s" % retval)
call([
"wget",
"ftp://ftp.ncbi.nlm.nih.gov/snp/organisms/human_9606_b151_GRCh38p7/VCF/GATK/00-All.vcf.gz"
])
call ([
"gzip",
"-d",
"00-All.vcf.gz"
])
call ([
"rm",
"00-All.vcf.gz"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz"
])
call([
"gzip",
"-d",
"Mills_and_1000G_gold_standard.indels.hg38.vcf.gz"
])
call([
"rm",
"Mills_and_1000G_gold_standard.indels.hg38.vcf.gz"
])
call([
"mv",
"Mills_and_1000G_gold_standard.indels.hg38.vcf",
"Mills_1kg_indels_hg38.vcf"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/Homo_sapiens_assembly38.known_indels.vcf.gz"
])
call([
"gzip",
"-d",
"Homo_sapiens_assembly38.known_indels.vcf.gz"
])
call([
"rm",
"Homo_sapiens_assembly38.known_indels.vcf.gz"
])
call([
"mv",
"Homo_sapiens_assembly38.known_indels.vcf",
"hsa_indels_hg38.vcf"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/1000G_phase1.snps.high_confidence.hg38.vcf.gz"
])
call([
"gzip",
"-d",
"1000G_phase1.snps.high_confidence.hg38.vcf.gz"
])
call([
"rm",
"1000G_phase1.snps.high_confidence.hg38.vcf.gz"
])
call([
"wget",
"https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/1000G_omni2.5.hg38.vcf.gz"
])
call([
"gzip",
"-d",
"1000G_omni2.5.hg38.vcf.gz"
])
call([
"rm",
"1000G_omni2.5.hg38.vcf.gz"
])
print ("\n")
input("[*] Back To Menu (Press Enter...) ")
elif EnterOp == "7":
print ("\n")
quit()
else:
print ("[!] Please Enter a Number")
input ("[*] Back To Menu (Press Enter...) ")
| 20.493369
| 134
| 0.483821
| 819
| 7,726
| 4.728938
| 0.194139
| 0.03873
| 0.065066
| 0.053705
| 0.815647
| 0.815647
| 0.809192
| 0.809192
| 0.779757
| 0.755487
| 0
| 0.046131
| 0.312581
| 7,726
| 376
| 135
| 20.547872
| 0.636603
| 0.004142
| 0
| 0.870968
| 0
| 0.032258
| 0.544852
| 0.211128
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.009677
| 0
| 0.009677
| 0.048387
| 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
|
98bc5f117cd99c41c7d2e5ecac6744b464a830dc
| 15,420
|
py
|
Python
|
pineboolib/application/metadata/tests/test_pnfieldmetadata.py
|
deavid/pineboo
|
acc96ab6d5b8bb182990af6dea4bf0986af15549
|
[
"MIT"
] | 2
|
2015-09-19T16:54:49.000Z
|
2016-09-12T08:06:29.000Z
|
pineboolib/application/metadata/tests/test_pnfieldmetadata.py
|
deavid/pineboo
|
acc96ab6d5b8bb182990af6dea4bf0986af15549
|
[
"MIT"
] | 1
|
2017-08-14T17:07:14.000Z
|
2017-08-15T00:22:47.000Z
|
pineboolib/application/metadata/tests/test_pnfieldmetadata.py
|
deavid/pineboo
|
acc96ab6d5b8bb182990af6dea4bf0986af15549
|
[
"MIT"
] | 9
|
2015-01-15T18:15:42.000Z
|
2019-05-05T18:53:00.000Z
|
import unittest
from pineboolib.loader.main import init_testing
class TestStringField(unittest.TestCase):
"""Test string field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flmodules and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flmodules")
if mtd is None:
raise Exception
field = mtd.field("version")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "version")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 3)
self.assertEqual(field.allowNull(), False)
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), False)
self.assertEqual(field.defaultValue(), "0.0")
self.assertEqual(field.regExpValidator(), "[0-9]\\.[0-9]")
assign_value_1 = field.formatAssignValue("version", "a.1", False)
assign_value_2 = field.formatAssignValue("version", "b.1", True)
self.assertEqual(assign_value_1, "version = 'a.1'")
self.assertEqual(assign_value_2, "upper(version) = 'B.1'")
class TestCopyField(unittest.TestCase):
"""Test Copy a field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test copy a field data from another."""
from pineboolib.application import project
from pineboolib.application.metadata.pnfieldmetadata import PNFieldMetaData
mtd = project.conn.manager().metadata("flmodules")
if mtd is None:
raise Exception
field_1 = mtd.field("version")
field_2 = PNFieldMetaData(field_1)
self.assertNotEqual(field_2, None)
self.assertEqual(field_2.name(), "version")
self.assertEqual(field_2.isPrimaryKey(), False)
self.assertEqual(field_2.isCompoundKey(), False)
self.assertEqual(field_2.length(), 3)
self.assertEqual(field_2.allowNull(), False)
self.assertEqual(field_2.visibleGrid(), True)
self.assertEqual(field_2.visible(), True)
self.assertEqual(field_2.editable(), False)
self.assertEqual(field_2.defaultValue(), "0.0")
self.assertEqual(field_2.regExpValidator(), "[0-9]\\.[0-9]")
class TestUintField(unittest.TestCase):
"""Test uint field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flseq and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flseqs")
if mtd is None:
raise Exception
field = mtd.field("seq")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "seq")
self.assertEqual(field.alias(), "Secuencia")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.allowNull(), False)
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), True)
self.assertEqual(field.defaultValue(), None)
self.assertEqual(field.regExpValidator(), None)
assign_value = field.formatAssignValue("seq", 666, False)
self.assertEqual(assign_value, "seq = 666")
table_metadata = field.metadata()
if table_metadata is None:
raise Exception
self.assertEqual(table_metadata.name(), "flseqs")
class TestStringListField(unittest.TestCase):
"""Test stringlist field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flsettings and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flsettings")
if mtd is None:
raise Exception
field = mtd.field("valor")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "valor")
self.assertEqual(field.alias(), "Valor")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.allowNull(), True)
self.assertEqual(field.visibleGrid(), False)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), True)
self.assertEqual(field.defaultValue(), None)
self.assertEqual(field.regExpValidator(), None)
self.assertEqual(field.flDecodeType("stringlist"), "string")
class TestPixmapField(unittest.TestCase):
"""Test pixmap field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flmodules and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flmodules")
if mtd is None:
raise Exception
field = mtd.field("icono")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "icono")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.allowNull(), True)
self.assertEqual(field.type(), "pixmap")
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), True)
self.assertEqual(field.defaultValue(), None)
self.assertEqual(field.flDecodeType("pixmap"), "string")
class TestUnlockField(unittest.TestCase):
"""Test unlock field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flmodules and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flmodules")
if mtd is None:
raise Exception
field = mtd.field("bloqueo")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "bloqueo")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.allowNull(), False)
self.assertEqual(field.type(), "unlock")
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), True)
self.assertEqual(field.defaultValue(), True)
self.assertEqual(field.regExpValidator(), None)
self.assertEqual(field.flDecodeType("unlock"), "bool")
class TestBoolField(unittest.TestCase):
"""Test bool field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flmetadata and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flmetadata")
if mtd is None:
raise Exception
field = mtd.field("bloqueo")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "bloqueo")
self.assertEqual(field.alias(), "Tabla bloqueada")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.allowNull(), True)
self.assertEqual(field.type(), "bool")
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), True)
self.assertEqual(field.defaultValue(), None)
self.assertEqual(field.regExpValidator(), None)
self.assertEqual(field.flDecodeType("bool"), "bool")
class TestDateField(unittest.TestCase):
"""Test date field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flupdates and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flupdates")
if mtd is None:
raise Exception
field = mtd.field("fecha")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "fecha")
self.assertEqual(field.alias(), "Fecha")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.type(), "date")
self.assertEqual(field.allowNull(), False)
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), False)
self.assertEqual(field.defaultValue(), None)
self.assertEqual(field.regExpValidator(), None)
self.assertEqual(field.flDecodeType("date"), "date")
class TestTimeField(unittest.TestCase):
"""Test time field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field from the pntablemetadata flupdates and check the values"""
from pineboolib.application import project
mtd = project.conn.manager().metadata("flupdates")
if mtd is None:
raise Exception
field = mtd.field("hora")
if field is None:
raise Exception
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "hora")
self.assertEqual(field.alias(), "Hora")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.type(), "time")
self.assertEqual(field.allowNull(), False)
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), False)
self.assertEqual(field.defaultValue(), None)
self.assertEqual(field.regExpValidator(), None)
self.assertEqual(field.flDecodeType("time"), "time")
class TestDoubleField(unittest.TestCase):
"""Test double field."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field and check the values"""
from pineboolib.application.metadata.pnfieldmetadata import PNFieldMetaData
field = PNFieldMetaData(
"new_double",
"Nuevo Double",
False,
False,
"double",
0,
False,
True,
True,
5,
8,
False,
False,
False,
0.01,
False,
None,
True,
False,
False,
)
self.assertNotEqual(field, None)
self.assertEqual(field.name(), "new_double")
self.assertEqual(field.alias(), "Nuevo Double")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 0)
self.assertEqual(field.type(), "double")
self.assertEqual(field.allowNull(), False)
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), True)
self.assertEqual(field.defaultValue(), 0.01)
self.assertEqual(field.regExpValidator(), None)
self.assertEqual(field.partInteger(), 5)
self.assertEqual(field.partDecimal(), 8)
self.assertEqual(field.flDecodeType("double"), "double")
class TestOptionsListField(unittest.TestCase):
"""Test string field with optionsList."""
@classmethod
def setUpClass(cls) -> None:
"""Ensure pineboo is initialized for testing."""
init_testing()
def test_basic(self) -> None:
"""Test collect a field and check the values"""
from pineboolib.application.metadata.pnfieldmetadata import PNFieldMetaData
field = PNFieldMetaData(
"new_string",
"Nuevo String",
False,
False,
"string",
20,
False,
True,
True,
0,
0,
False,
False,
False,
"primero",
False,
None,
True,
False,
False,
)
self.assertNotEqual(field, None)
field.setOptionsList("primero,segundo,tercero,cuarto,quinto,sexto,12345678901234567890")
self.assertEqual(field.name(), "new_string")
self.assertEqual(field.alias(), "Nuevo String")
self.assertEqual(field.isPrimaryKey(), False)
self.assertEqual(field.isCompoundKey(), False)
self.assertEqual(field.length(), 20)
self.assertEqual(field.type(), "string")
self.assertEqual(field.allowNull(), False)
self.assertEqual(field.visibleGrid(), True)
self.assertEqual(field.visible(), True)
self.assertEqual(field.editable(), True)
self.assertEqual(field.defaultValue(), "primero")
self.assertEqual(field.regExpValidator(), None)
self.assertEqual(field.partInteger(), 0)
self.assertEqual(field.partDecimal(), 0)
self.assertEqual(field.flDecodeType("string"), "string")
self.assertEqual(
field.optionsList(),
["primero", "segundo", "tercero", "cuarto", "quinto", "sexto", "12345678901234567890"],
)
self.assertEqual(field.getIndexOptionsList("segundo"), 1)
if __name__ == "__main__":
unittest.main()
| 34.190687
| 99
| 0.624384
| 1,567
| 15,420
| 6.104659
| 0.081685
| 0.221096
| 0.286431
| 0.09147
| 0.814133
| 0.759774
| 0.75392
| 0.746707
| 0.744198
| 0.703742
| 0
| 0.009554
| 0.253307
| 15,420
| 450
| 100
| 34.266667
| 0.821261
| 0.092672
| 0
| 0.675758
| 0
| 0
| 0.050488
| 0.004629
| 0
| 0
| 0
| 0
| 0.460606
| 1
| 0.066667
| false
| 0
| 0.042424
| 0
| 0.142424
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
c726c3b5ab47a9ae1e2cc04be9e993e93d617865
| 17,203
|
py
|
Python
|
tests/test_scenario.py
|
dohlee/python-snakewrap
|
1bacef53dd8f903b73b4553d09c53048c98b2811
|
[
"MIT"
] | null | null | null |
tests/test_scenario.py
|
dohlee/python-snakewrap
|
1bacef53dd8f903b73b4553d09c53048c98b2811
|
[
"MIT"
] | null | null | null |
tests/test_scenario.py
|
dohlee/python-snakewrap
|
1bacef53dd8f903b73b4553d09c53048c98b2811
|
[
"MIT"
] | null | null | null |
import snakewrap as sw
from snakewrap.parameter import Parameter
from os.path import join
import os
class NamedList():
def __init__(self, d):
self.d = d
for k, v in d.items():
setattr(self, k, v)
def items(self):
return self.d.items()
class InputFiles(NamedList):
pass
class OutputFiles(NamedList):
pass
class Params(NamedList):
pass
class Wildcards(NamedList):
pass
class MockSnakemake():
__slots__ = ['input', 'output', 'params', 'wildcards', 'log', 'threads']
def __init__(self, rule_dict):
setattr(self, 'input', InputFiles(rule_dict.get('input', dict())))
setattr(self, 'output', OutputFiles(rule_dict.get('output', dict())))
setattr(self, 'params', Params(rule_dict.get('params', {'extra': ''})))
setattr(self, 'wildcards', Wildcards(rule_dict.get('wildcards', dict())))
setattr(self, 'log', rule_dict.get('log', ''))
setattr(self, 'threads', rule_dict.get('threads', 1))
def log_fmt_shell(self, stdout=True, stderr=True, append=False):
"""Taken from https://bitbucket.org/snakemake/snakemake."""
if not self.log:
return ""
lookup = {
(True, True, True): " >> {0} 2>&1",
(True, False, True): " >> {0}",
(False, True, True): " 2>> {0}",
(True, True, False): " > {0} 2>&1",
(True, False, False): " > {0}",
(False, True, False): " 2> {0}",
}
return lookup[(stdout, stderr, append)].format(self.log)
def test_samtools_sort():
snakemake = MockSnakemake({
'input': {'bam': 'test.bam'},
'output': {'sorted_bam': 'test.sorted.bam'},
'log': 'logs/samtools_sort/test.log',
})
bam = sw.SimpleTemplateFile('bam')
sorted_bam = sw.SimpleTemplateFile('sorted_bam')
# Create RuleInput object.
input = sw.SimpleRuleInput({
'bam': Parameter(f=bam, option=None),
})
# Create RuleOutput object.
output = sw.SimpleRuleOutput({
'sorted_bam': [Parameter(f=sorted_bam, option='-o')],
})
# Create RuleParams object.
params = sw.SimpleRuleParams(
extra=True,
prefix=Parameter(f=lambda sn: os.path.splitext(sn.output.sorted_bam)[0], option='-T')
)
# Create RuleThreads object.
threads = sw.SimpleRuleThreads(command_key='-@')
wrapper = sw.Wrapper(
snakemake,
command='samtools sort',
input=input,
output=output,
params=params,
threads=threads,
)
expected_shell_command = '( samtools sort test.bam -o test.sorted.bam -T test.sorted -@ 1 ) 2> logs/samtools_sort/test.log'
assert wrapper.shell_command() == expected_shell_command
wrapper.run()
def test_samtools_sort_with_extra():
snakemake = MockSnakemake({
'input': {'bam': 'test.bam'},
'output': {'sorted_bam': 'test.sorted.bam'},
'params': {'extra': '-l 9'},
'log': 'logs/samtools_sort/test.log',
})
bam = sw.SimpleTemplateFile('bam')
sorted_bam = sw.SimpleTemplateFile('sorted_bam')
# Create RuleInput object.
input = sw.SimpleRuleInput({
'bam': Parameter(f=bam, option=None),
})
# Create RuleOutput object.
output = sw.SimpleRuleOutput({
'sorted_bam': [Parameter(f=sorted_bam, option='-o')],
})
# Create RuleParams object.
params = sw.SimpleRuleParams(
extra=True,
prefix=Parameter(f=lambda sn: os.path.splitext(sn.output.sorted_bam)[0], option='-T')
)
# Create RuleThreads object.
threads = sw.SimpleRuleThreads(command_key='-@')
wrapper = sw.Wrapper(
snakemake,
command='samtools sort',
input=input,
output=output,
params=params,
threads=threads,
)
expected_shell_command = '( samtools sort test.bam -o test.sorted.bam -l 9 -T test.sorted -@ 1 ) 2> logs/samtools_sort/test.log'
assert wrapper.shell_command() == expected_shell_command
wrapper.run()
def test_bismark_single_with_unzipped_fastq():
snakemake = MockSnakemake({
'input': {
'fastq': 'data/test.fastq',
'reference_dir': 'reference/hg38_bismark',
'bisulfite_genome_dir': 'reference/hg38_bismark/Bisulfite_Genome',
},
'output': {
'bam': 'result/test.bismark.bam',
'report': 'result/test.bismark_report.txt',
},
'wildcards': {
'sample': 'test',
},
'threads': 6,
'params': {'extra': ''},
'log': 'logs/bismark/test.log',
})
# Define files.
fastq = sw.SimpleTemplateFile('fastq')
reference_dir = sw.SimpleTemplateDirectory('reference_dir')
bisulfite_genome_dir = sw.SimpleTemplateDirectory('bisulfite_genome_dir')
bam = sw.RenamedTemplateFile(
name='bam',
regex=r'(?P<prefix>.+?).bismark.bam',
raw_name='{prefix}_bismark_bt2.bam',
)
report = sw.RenamedTemplateFile(
name='report',
regex=r'(?P<prefix>.+?).bismark_report.txt',
raw_name='{prefix}_bismark_bt2_SE_report.txt'
)
# Define input, output, parameters, threads.
input = sw.SimpleRuleInput({
'reference_dir': Parameter(f=reference_dir, option=None),
'fastq': Parameter(f=fastq, option=None),
'bisulfite_genome_dir': Parameter(f=bisulfite_genome_dir, option=None, used=False)
})
output = sw.SimpleRuleOutput({
'bam': Parameter(f=bam, option=None, used=False),
'report': Parameter(f=report, option=None, used=False),
})
params = sw.SimpleRuleParams(
extra=True,
outdir=Parameter(f=lambda sn: os.path.dirname(sn.output.bam), option='-o', used=True)
)
threads = sw.ScaledRuleThreads(
command_key='--multicore',
scale=lambda sn: 1/2 if '--bowtie1' in sn.params.extra else 1/3
)
wrapper = sw.Wrapper(
snakemake,
command='bismark',
input=input,
output=output,
params=params,
threads=threads,
)
assert bam.rename_command() == 'mv result/test_bismark_bt2.bam result/test.bismark.bam'
assert report.rename_command() == 'mv result/test_bismark_bt2_SE_report.txt result/test.bismark_report.txt'
assert wrapper.shell_command() == \
'( bismark reference/hg38_bismark data/test.fastq '\
'-o result ' \
'--multicore 2 ' \
'&& mv result/test_bismark_bt2.bam result/test.bismark.bam ' \
'&& mv result/test_bismark_bt2_SE_report.txt result/test.bismark_report.txt ' \
') 2> logs/bismark/test.log' \
def test_bismark_single_with_unzipped_fastq_bowtie1():
snakemake = MockSnakemake({
'input': {
'fastq': 'data/test.fastq',
'reference_dir': 'reference/hg38_bismark',
'bisulfite_genome_dir': 'reference/hg38_bismark/Bisulfite_Genome',
},
'output': {
'bam': 'result/test.bismark.bam',
'report': 'result/test.bismark_report.txt',
},
'wildcards': {
'sample': 'test',
},
'threads': 6,
'params': {'extra': '--bowtie1'},
'log': 'logs/bismark/test.log',
})
# Define files.
fastq = sw.SimpleTemplateFile('fastq')
reference_dir = sw.SimpleTemplateDirectory('reference_dir')
bisulfite_genome_dir = sw.SimpleTemplateDirectory('bisulfite_genome_dir')
bam = sw.RenamedTemplateFile(
name='bam',
regex=r'(?P<prefix>.+?).bismark.bam',
raw_name='{prefix}_bismark_bt2.bam',
)
report = sw.RenamedTemplateFile(
name='report',
regex=r'(?P<prefix>.+?).bismark_report.txt',
raw_name='{prefix}_bismark_bt2_SE_report.txt'
)
# Define input, output, parameters, threads.
input = sw.SimpleRuleInput({
'reference_dir': Parameter(f=reference_dir, option=None),
'fastq': Parameter(f=fastq, option=None),
'bisulfite_genome_dir': Parameter(f=bisulfite_genome_dir, option=None, used=False),
})
output = sw.SimpleRuleOutput({
'bam': Parameter(f=bam, option=None, used=False),
'report': Parameter(f=report, option=None, used=False),
})
params = sw.SimpleRuleParams(
extra=True,
outdir=Parameter(lambda sn: os.path.dirname(sn.output.bam), '-o', True)
)
threads = sw.ScaledRuleThreads(
command_key='--multicore',
scale=lambda sn: 1/2 if '--bowtie1' in sn.params.extra else 1/3
)
wrapper = sw.Wrapper(
snakemake,
command='bismark',
input=input,
output=output,
params=params,
threads=threads,
)
assert bam.rename_command() == 'mv result/test_bismark_bt2.bam result/test.bismark.bam'
assert report.rename_command() == 'mv result/test_bismark_bt2_SE_report.txt result/test.bismark_report.txt'
assert wrapper.shell_command() == \
'( bismark reference/hg38_bismark data/test.fastq '\
'--bowtie1 ' \
'-o result ' \
'--multicore 3 ' \
'&& mv result/test_bismark_bt2.bam result/test.bismark.bam ' \
'&& mv result/test_bismark_bt2_SE_report.txt result/test.bismark_report.txt ' \
') 2> logs/bismark/test.log' \
def test_bismark_paired_with_unzipped_fastq():
snakemake = MockSnakemake({
'input': {
'fastq': ['data/test.read1.fastq', 'data/test.read2.fastq'],
'reference_dir': 'reference/hg38_bismark',
'bisulfite_genome_dir': 'reference/hg38_bismark/Bisulfite_Genome',
},
'output': {
'bam': 'result/test.bismark.bam',
'report': 'result/test.bismark_report.txt',
},
'wildcards': {
'sample': 'test',
},
'threads': 6,
'params': {'extra': '--bowtie1'},
'log': 'logs/bismark/test.log',
})
# Define files.
read1 = sw.SimpleTemplateFile('fastq')
read2 = sw.SimpleTemplateFile('fastq')
reference_dir = sw.SimpleTemplateDirectory('reference_dir')
bisulfite_genome_dir = sw.SimpleTemplateDirectory('bisulfite_genome_dir')
bam = sw.RenamedTemplateFile(
name='bam',
regex=r'(?P<prefix>.+?).bismark.bam',
raw_name='{prefix}.read1_bismark_bt2_pe.bam',
)
report = sw.RenamedTemplateFile(
name='report',
regex=r'(?P<prefix>.+?).bismark_report.txt',
raw_name='{prefix}.read1_bismark_bt2_PE_report.txt'
)
# Define input, output, parameters, threads.
input = sw.SimpleRuleInput({
'reference_dir': Parameter(f=reference_dir, option=None),
'fastq': [Parameter(f=read1, option='-1'), Parameter(f=read2, option='-2')],
'bisulfite_genome_dir': Parameter(f=bisulfite_genome_dir, option=None, used=False),
})
output = sw.SimpleRuleOutput({
'bam': Parameter(f=bam, option=None, used=False),
'report': Parameter(f=report, option=None, used=False),
})
params = sw.SimpleRuleParams(
extra=True,
outdir=Parameter(f=lambda sn: os.path.dirname(sn.output.bam), option='-o')
)
threads = sw.ScaledRuleThreads(
command_key='--multicore',
scale=lambda sn: 1/2 if '--bowtie1' in sn.params.extra else 1/3
)
wrapper = sw.Wrapper(
snakemake,
command='bismark',
input=input,
output=output,
params=params,
threads=threads,
)
assert wrapper.shell_command() == \
'( bismark reference/hg38_bismark ' \
'-1 data/test.read1.fastq -2 data/test.read2.fastq '\
'--bowtie1 ' \
'-o result ' \
'--multicore 3 ' \
'&& mv result/test.read1_bismark_bt2_pe.bam result/test.bismark.bam ' \
'&& mv result/test.read1_bismark_bt2_PE_report.txt result/test.bismark_report.txt ' \
') 2> logs/bismark/test.log' \
def test_bismark_paired_with_zipped_fastq():
snakemake = MockSnakemake({
'input': {
'fastq': ['data/test.read1.fastq.gz', 'data/test.read2.fastq.gz'],
'reference_dir': 'reference/hg38_bismark',
'bisulfite_genome_dir': 'reference/hg38_bismark/Bisulfite_Genome',
},
'output': {
'bam': 'result/test.bismark.bam',
'report': 'result/test.bismark_report.txt',
},
'wildcards': {
'sample': 'test',
},
'threads': 6,
'params': {'extra': '--bowtie1'},
'log': 'logs/bismark/test.log',
})
# Define files.
read1 = sw.SimpleTemplateFile('fastq')
read2 = sw.SimpleTemplateFile('fastq')
reference_dir = sw.SimpleTemplateDirectory('reference_dir')
bisulfite_genome_dir = sw.SimpleTemplateDirectory('bisulfite_genome_dir')
bam = sw.RenamedTemplateFile(
name='bam',
regex=r'(?P<prefix>.+?).bismark.bam',
raw_name='{prefix}.read1_bismark_bt2_pe.bam',
)
report = sw.RenamedTemplateFile(
name='report',
regex=r'(?P<prefix>.+?).bismark_report.txt',
raw_name='{prefix}.read1_bismark_bt2_PE_report.txt'
)
input = sw.SimpleRuleInput({
'reference_dir': Parameter(reference_dir, None),
'fastq': [Parameter(read1, '-1'), Parameter(read2, '-2')],
'bisulfite_genome_dir': Parameter(bisulfite_genome_dir, None, False)
})
output = sw.SimpleRuleOutput({
'bam': Parameter(bam, None, False),
'report': Parameter(report, None, False),
})
params = sw.SimpleRuleParams(
extra=True,
outdir=Parameter(lambda sn: os.path.dirname(sn.output.bam), '-o', True)
)
threads = sw.ScaledRuleThreads(
command_key='--multicore',
scale=lambda sn: 1/2 if '--bowtie1' in sn.params.extra else 1/3
)
wrapper = sw.Wrapper(
snakemake,
command='bismark',
input=input,
output=output,
params=params,
threads=threads,
)
assert wrapper.shell_command() == \
'( bismark reference/hg38_bismark ' \
'-1 data/test.read1.fastq.gz -2 data/test.read2.fastq.gz '\
'--bowtie1 ' \
'-o result ' \
'--multicore 3 ' \
'&& mv result/test.read1_bismark_bt2_pe.bam result/test.bismark.bam ' \
'&& mv result/test.read1_bismark_bt2_PE_report.txt result/test.bismark_report.txt ' \
') 2> logs/bismark/test.log' \
def test_bismark_genome_preparation():
# Define mock snakemake object.
snakemake = MockSnakemake({
'input': {
'reference_dir': 'reference/hg38',
},
'output': {
'bisulfite_genome_dir': 'reference/hg38/Bisulfite_Genome'
},
'params': {
'extra': '',
},
'log': 'logs/bismark_genome_preparation/log.log'
})
# Define files.
reference_dir = sw.SimpleTemplateDirectory('reference_dir')
bisulfite_genome_dir = sw.SimpleTemplateDirectory('bisulfite_genome_dir')
# Define input, output, and parameters.
input = sw.SimpleRuleInput({
'reference_dir': Parameter(reference_dir, None),
})
output = sw.SimpleRuleOutput({
'bisulfite_genome_dir': Parameter(bisulfite_genome_dir, None, False),
})
params = sw.SimpleRuleParams(extra=True)
wrapper = sw.Wrapper(
snakemake=snakemake,
command='bismark_genome_preparation',
input=input,
output=output,
params=params,
)
assert wrapper.shell_command() == '( bismark_genome_preparation reference/hg38 ) 2> logs/bismark_genome_preparation/log.log'
def test_bwa_mem_single():
# Define mock snakemake object.
snakemake = MockSnakemake({
'input': {
'reference': 'reference/hg38/hg38.fasta',
'reads': ['test.fastq.gz'],
},
'output': {
'bam': 'test.bam',
},
'params': {
'extra': '',
},
'log': 'logs/bwa_mem/test.log',
'threads': 12,
})
expected_command = '( bwa mem reference/hg38/hg38 test.fastq.gz -t 12 | samtools view -Sb - > test.bam ) 2> logs/bwa_mem/test.log'
# Define files.
reference = sw.SimpleTemplateFile('reference')
read = sw.SimpleTemplateFile('reads')
bam = sw.SimpleTemplateFile('bam')
# Define input, output, parameters and threads.
input = sw.SimpleRuleInput({
'reference': Parameter(f=reference, option=None, used=False),
'reads': [Parameter(f=read, option=None)],
})
output = sw.SimpleRuleOutput({
'bam': Parameter(f=bam, option=None, used=True, redirected=True),
})
threads = sw.SimpleRuleThreads(command_key='-t')
params = sw.SimpleRuleParams(
extra=True,
db_prefix=Parameter(f=lambda sn: os.path.splitext(sn.input.reference)[0], option=None, priority=1),
pipe_command=Parameter(f=lambda sn: '| samtools view -Sb -' if sn.output.bam.endswith('.bam') else '', option=None, priority=100)
)
wrapper = sw.Wrapper(
snakemake=snakemake,
command='bwa mem',
input=input,
output=output,
threads=threads,
params=params,
)
assert wrapper.shell_command() == expected_command
| 31.507326
| 137
| 0.60286
| 1,881
| 17,203
| 5.359915
| 0.080808
| 0.036005
| 0.047213
| 0.019837
| 0.823051
| 0.794684
| 0.766713
| 0.759472
| 0.747372
| 0.704721
| 0
| 0.012463
| 0.249084
| 17,203
| 546
| 138
| 31.507326
| 0.767998
| 0.035982
| 0
| 0.703448
| 0
| 0.009195
| 0.280331
| 0.148922
| 0
| 0
| 0
| 0
| 0.027586
| 1
| 0.027586
| false
| 0.009195
| 0.009195
| 0.002299
| 0.05977
| 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
|
c727728ad47aa2fd9420bc76038ceafcc2dbd605
| 204
|
py
|
Python
|
shuning/__init__.py
|
islamazhar/trees
|
502565c5bf02503c7bece09cddd93f9368da02c3
|
[
"MIT"
] | null | null | null |
shuning/__init__.py
|
islamazhar/trees
|
502565c5bf02503c7bece09cddd93f9368da02c3
|
[
"MIT"
] | null | null | null |
shuning/__init__.py
|
islamazhar/trees
|
502565c5bf02503c7bece09cddd93f9368da02c3
|
[
"MIT"
] | null | null | null |
from shuning.new_mcmc import MetropolisHastingsSampler
from shuning.new_ddt import DirichletDiffusionTree
from shuning.new_df import DivergenceFunction, Inverse
from shuning.generate_data import Generate
| 51
| 55
| 0.892157
| 25
| 204
| 7.12
| 0.52
| 0.247191
| 0.235955
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 204
| 4
| 56
| 51
| 0.951872
| 0
| 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
c733fdce22e08fc79454929b3a57f5b9b8e36376
| 272
|
py
|
Python
|
scanpy/preprocessing/__init__.py
|
ckmah/scanpy
|
300435f30f6805e27ba59a7314fe06ef21d03c17
|
[
"BSD-3-Clause"
] | null | null | null |
scanpy/preprocessing/__init__.py
|
ckmah/scanpy
|
300435f30f6805e27ba59a7314fe06ef21d03c17
|
[
"BSD-3-Clause"
] | null | null | null |
scanpy/preprocessing/__init__.py
|
ckmah/scanpy
|
300435f30f6805e27ba59a7314fe06ef21d03c17
|
[
"BSD-3-Clause"
] | null | null | null |
from ..preprocessing.recipes import recipe_zheng17, recipe_weinreb16
from ..preprocessing.simple import filter_cells, filter_genes, filter_genes_dispersion
from ..preprocessing.simple import log1p, pca, normalize_per_cell, regress_out, scale, subsample, downsample_counts
| 68
| 115
| 0.856618
| 34
| 272
| 6.558824
| 0.676471
| 0.2287
| 0.206278
| 0.26009
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01992
| 0.077206
| 272
| 3
| 116
| 90.666667
| 0.868526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
c75577cf7dd5659cd9e114f6abcdb94b6e5b00c2
| 1,817
|
py
|
Python
|
tests/test_codec_xml.py
|
furikake/sublime-codec
|
7572b8612218f21f622573e9a50f1746242106a8
|
[
"MIT"
] | 16
|
2015-07-08T17:50:54.000Z
|
2022-01-31T19:16:55.000Z
|
tests/test_codec_xml.py
|
Someonesol/sublime-codec
|
7572b8612218f21f622573e9a50f1746242106a8
|
[
"MIT"
] | 9
|
2015-10-01T16:41:33.000Z
|
2021-06-11T06:41:28.000Z
|
tests/test_codec_xml.py
|
Someonesol/sublime-codec
|
7572b8612218f21f622573e9a50f1746242106a8
|
[
"MIT"
] | 6
|
2015-10-01T15:39:21.000Z
|
2021-10-19T10:46:20.000Z
|
import codec_xml
import unittest
class TestXmlEncoding(unittest.TestCase):
def setUp(self):
pass
def test_escape(self):
expected = '<hello>T'was a dark & "stormy" night</hello>'
input = '<hello>T\'was a dark & "stormy" night</hello>'
self.assertEquals(expected, codec_xml.escape(input))
def test_escape_additional_entities(self):
expected = '<hello>T'was a dark & "stormy" night</hello>'
input = '<hello>T\'was a dark & "stormy" night</hello>'
self.assertEquals(expected, codec_xml.escape(input, {' ': ' '}))
def test_escape_override_entities(self):
expected = '<hello>T&blah;was a dark & "stormy" night</hello>'
input = '<hello>T\'was a dark & "stormy" night</hello>'
self.assertEquals(expected, codec_xml.escape(input, {"'": "&blah;"}))
def test_unescape(self):
expected = '<hello>T\'was a dark & "stormy" night</hello>'
input = '<hello>T'was a dark & "stormy" night</hello>'
self.assertEquals(expected, codec_xml.unescape(input))
def test_unescape_additional_entities(self):
expected = '<hello>T\'was a dark & "stormy" night</hello>'
input = '<hello>T'was a dark & "stormy" night</hello>'
self.assertEquals(expected, codec_xml.unescape(input, {' ': ' '}))
def test_unescape_override_entities(self):
expected = '<hello>T\'was a dark & "stormy" night</hello>'
input = '<hello>T&blah;was a dark & "stormy" night</hello>'
self.assertEquals(expected, codec_xml.unescape(input, {"&blah;": "'"}))
| 47.815789
| 121
| 0.64557
| 257
| 1,817
| 4.48249
| 0.132296
| 0.072917
| 0.09375
| 0.052083
| 0.8125
| 0.8125
| 0.8125
| 0.788194
| 0.767361
| 0.767361
| 0
| 0
| 0.174463
| 1,817
| 37
| 122
| 49.108108
| 0.768
| 0
| 0
| 0.206897
| 0
| 0.172414
| 0.340121
| 0.160704
| 0
| 0
| 0
| 0
| 0.206897
| 1
| 0.241379
| false
| 0.034483
| 0.068966
| 0
| 0.344828
| 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
|
c78b6f4d40192ea83f4f0b5b290039ab626c0dda
| 11,575
|
py
|
Python
|
createworld.py
|
Levi-Huynh/JS-INTERVIEW
|
768e5577fd8f3f26c244154be9d9fd5a348f6171
|
[
"MIT"
] | null | null | null |
createworld.py
|
Levi-Huynh/JS-INTERVIEW
|
768e5577fd8f3f26c244154be9d9fd5a348f6171
|
[
"MIT"
] | null | null | null |
createworld.py
|
Levi-Huynh/JS-INTERVIEW
|
768e5577fd8f3f26c244154be9d9fd5a348f6171
|
[
"MIT"
] | null | null | null |
from django.contrib.auth.models import User
from adventure.models import Player, Room
Room.objects.all().delete()
rooms = [
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Tundra', 'description': "Snow everywhere. There's also a pack of wolves roaming around."},
{'title': 'Desert', 'description': "The sun beats down on you, and there's nothing but sand in view."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
{'title': 'Forest', 'description': 'Trees everywhere. Literally everywhere.'},
{'title': 'City', 'description': "Skyscrapers, roads and cars everywhere. Typical city."},
]
connections = [[0, 1, "e"], [0, 2, "s"], [1, 0, "w"], [1, 10, "e"], [1, 8, "s"], [2, 0, "n"], [2, 3, "s"],
[3, 2, "n"], [3, 5, "e"], [3, 4, "s"], [4, 3, "n"], [
4, 6, "e"], [4, 7, "s"], [5, 3, "w"],
[5, 9, "e"], [6, 4, "w"], [6, 9, "e"], [7, 4, "w"], [
7, 15, "e"], [8, 2, "n"], [8, 12, "e"],
[8, 9, "s"], [9, 5, "w"], [9, 8, "n"], [9, 6, "s"], [
9, 14, "e"], [10, 1, "w"], [10, 12, "s"],
[10, 11, "e"], [11, 10, "w"], [11, 16, "e"], [
12, 8, "w"], [12, 10, "n"], [12, 13, "e"],
[13, 12, "w"], [13, 14, "s"], [14, 13, "n"], [
14, 9, "w"], [14, 15, "s"], [14, 20, "e"],
[15, 7, "w"], [15, 14, "n"], [15, 22, "s"], [
16, 11, "w"], [16, 18, "s"], [16, 17, "e"],
[17, 16, "w"], [18, 16, "n"], [18, 19, "s"], [
19, 18, "n"], [19, 20, "s"], [20, 14, "w"],
[20, 19, "n"], [20, 23, "e"], [20, 21, "s"], [
21, 20, "n"], [21, 22, "s"], [22, 21, "n"],
[22, 24, "e"], [22, 15, "w"], [23, 20, "w"], [
24, 22, "e"], [24, 25, "n"], [25, 26, "w"],
[25, 27, "e"], [25, 24, "s"], [26, 25, "e"], [
27, 25, "w"], [27, 28, "n"], [28, 27, "s"],
[28, 29, "e"], [29, 28, "w"]]
saved_rooms = []
for i in range(len(rooms)):
saved_rooms.append(
Room(title=rooms[i]['title'], description=rooms[i]['description']))
saved_rooms[i].save()
for i in range(len(connections)):
saved_rooms[connections[i][0]].connect_rooms(
saved_rooms[connections[i][1]], connections[i][2])
players = Player.objects.all()
for p in players:
p.currentRoom = saved_rooms[0].id
p.save()
| 78.741497
| 107
| 0.61797
| 1,426
| 11,575
| 5.01122
| 0.06662
| 0.033585
| 0.092359
| 0.11335
| 0.907921
| 0.904002
| 0.904002
| 0.904002
| 0.904002
| 0.904002
| 0
| 0.025489
| 0.186523
| 11,575
| 146
| 108
| 79.280822
| 0.733432
| 0
| 0
| 0.719424
| 0
| 0
| 0.648639
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.014388
| 0
| 0.014388
| 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
|
c798a1aad1503b0febab3f09b343779cfb8c6be8
| 213
|
py
|
Python
|
init/bootstrap.py
|
rak108/containers
|
c6846eea01ff5b97c5500c0c50755d646e7f00d5
|
[
"Apache-2.0"
] | 5
|
2019-05-23T16:03:06.000Z
|
2022-02-20T05:55:33.000Z
|
init/bootstrap.py
|
rak108/containers
|
c6846eea01ff5b97c5500c0c50755d646e7f00d5
|
[
"Apache-2.0"
] | 50
|
2018-10-02T20:58:43.000Z
|
2022-03-31T15:31:38.000Z
|
init/bootstrap.py
|
rak108/containers
|
c6846eea01ff5b97c5500c0c50755d646e7f00d5
|
[
"Apache-2.0"
] | 35
|
2018-09-21T19:15:53.000Z
|
2022-03-31T19:24:33.000Z
|
from rucio.db.sqla.util import (build_database, create_base_vo,
create_root_account)
if __name__ == '__main__':
build_database()
create_base_vo()
create_root_account()
| 26.625
| 63
| 0.643192
| 25
| 213
| 4.76
| 0.64
| 0.218487
| 0.319328
| 0.386555
| 0.705882
| 0.705882
| 0.705882
| 0.705882
| 0
| 0
| 0
| 0
| 0.2723
| 213
| 7
| 64
| 30.428571
| 0.767742
| 0
| 0
| 0
| 0
| 0
| 0.037559
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.166667
| 0
| 0.166667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 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
| 0
|
0
| 9
|
c7af61a6b481cdc4519af6b299acea40bc3f1eb0
| 111
|
py
|
Python
|
release/ray_release/command_runner/job_runner.py
|
dsctt/ray
|
29d94a22114b02adfd3745c4991a3ce70592dd16
|
[
"Apache-2.0"
] | 1
|
2021-09-20T15:45:59.000Z
|
2021-09-20T15:45:59.000Z
|
release/ray_release/command_runner/job_runner.py
|
dsctt/ray
|
29d94a22114b02adfd3745c4991a3ce70592dd16
|
[
"Apache-2.0"
] | 53
|
2021-10-06T20:08:04.000Z
|
2022-03-21T20:17:25.000Z
|
release/ray_release/command_runner/job_runner.py
|
dsctt/ray
|
29d94a22114b02adfd3745c4991a3ce70592dd16
|
[
"Apache-2.0"
] | null | null | null |
from ray_release.command_runner.command_runner import CommandRunner
class JobRunner(CommandRunner):
pass
| 18.5
| 67
| 0.837838
| 13
| 111
| 6.923077
| 0.769231
| 0.288889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117117
| 111
| 5
| 68
| 22.2
| 0.918367
| 0
| 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 | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
402cba528f3eed96c7bdaf935726beefdd2857fc
| 205
|
py
|
Python
|
umusicfy/mockups/__init__.py
|
CarlosMart626/umusicfy
|
97e2166fe26d1fbe36df6bea435044ef3d367edf
|
[
"Apache-2.0"
] | null | null | null |
umusicfy/mockups/__init__.py
|
CarlosMart626/umusicfy
|
97e2166fe26d1fbe36df6bea435044ef3d367edf
|
[
"Apache-2.0"
] | 8
|
2020-06-05T18:08:05.000Z
|
2022-01-13T00:44:30.000Z
|
umusicfy/mockups/__init__.py
|
CarlosMart626/umusicfy
|
97e2166fe26d1fbe36df6bea435044ef3d367edf
|
[
"Apache-2.0"
] | null | null | null |
from mockups.helpers import *
from mockups.factory import Factory
from mockups.base import Mockup
from mockups.base import Mockup as MockupModel # compat
from mockups.constraints import InvalidConstraint
| 29.285714
| 55
| 0.843902
| 27
| 205
| 6.407407
| 0.444444
| 0.317919
| 0.17341
| 0.242775
| 0.312139
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121951
| 205
| 6
| 56
| 34.166667
| 0.961111
| 0.029268
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 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
|
4058c7f0de30db3400821b61b5411fabe39273b5
| 14,799
|
py
|
Python
|
sdk/python/pulumi_aws/elasticache/user_group.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-11-10T16:33:40.000Z
|
2021-11-10T16:33:40.000Z
|
sdk/python/pulumi_aws/elasticache/user_group.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_aws/elasticache/user_group.py
|
chivandikwa/pulumi-aws
|
19c08bf9dcb90544450ffa4eec7bf6751058fde2
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['UserGroupArgs', 'UserGroup']
@pulumi.input_type
class UserGroupArgs:
def __init__(__self__, *,
engine: pulumi.Input[str],
user_group_id: pulumi.Input[str],
arn: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
The set of arguments for constructing a UserGroup resource.
:param pulumi.Input[str] engine: The current supported value is `REDIS`.
:param pulumi.Input[str] user_group_id: The ID of the user group.
:param pulumi.Input[Sequence[pulumi.Input[str]]] user_ids: The list of user IDs that belong to the user group.
"""
pulumi.set(__self__, "engine", engine)
pulumi.set(__self__, "user_group_id", user_group_id)
if arn is not None:
pulumi.set(__self__, "arn", arn)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if user_ids is not None:
pulumi.set(__self__, "user_ids", user_ids)
@property
@pulumi.getter
def engine(self) -> pulumi.Input[str]:
"""
The current supported value is `REDIS`.
"""
return pulumi.get(self, "engine")
@engine.setter
def engine(self, value: pulumi.Input[str]):
pulumi.set(self, "engine", value)
@property
@pulumi.getter(name="userGroupId")
def user_group_id(self) -> pulumi.Input[str]:
"""
The ID of the user group.
"""
return pulumi.get(self, "user_group_id")
@user_group_id.setter
def user_group_id(self, value: pulumi.Input[str]):
pulumi.set(self, "user_group_id", value)
@property
@pulumi.getter
def arn(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "arn")
@arn.setter
def arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "arn", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@property
@pulumi.getter(name="userIds")
def user_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
The list of user IDs that belong to the user group.
"""
return pulumi.get(self, "user_ids")
@user_ids.setter
def user_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "user_ids", value)
@pulumi.input_type
class _UserGroupState:
def __init__(__self__, *,
arn: Optional[pulumi.Input[str]] = None,
engine: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
user_group_id: Optional[pulumi.Input[str]] = None,
user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
Input properties used for looking up and filtering UserGroup resources.
:param pulumi.Input[str] engine: The current supported value is `REDIS`.
:param pulumi.Input[str] user_group_id: The ID of the user group.
:param pulumi.Input[Sequence[pulumi.Input[str]]] user_ids: The list of user IDs that belong to the user group.
"""
if arn is not None:
pulumi.set(__self__, "arn", arn)
if engine is not None:
pulumi.set(__self__, "engine", engine)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if tags_all is not None:
pulumi.set(__self__, "tags_all", tags_all)
if user_group_id is not None:
pulumi.set(__self__, "user_group_id", user_group_id)
if user_ids is not None:
pulumi.set(__self__, "user_ids", user_ids)
@property
@pulumi.getter
def arn(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "arn")
@arn.setter
def arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "arn", value)
@property
@pulumi.getter
def engine(self) -> Optional[pulumi.Input[str]]:
"""
The current supported value is `REDIS`.
"""
return pulumi.get(self, "engine")
@engine.setter
def engine(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "engine", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@property
@pulumi.getter(name="tagsAll")
def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
return pulumi.get(self, "tags_all")
@tags_all.setter
def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags_all", value)
@property
@pulumi.getter(name="userGroupId")
def user_group_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the user group.
"""
return pulumi.get(self, "user_group_id")
@user_group_id.setter
def user_group_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_group_id", value)
@property
@pulumi.getter(name="userIds")
def user_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
The list of user IDs that belong to the user group.
"""
return pulumi.get(self, "user_ids")
@user_ids.setter
def user_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "user_ids", value)
class UserGroup(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
arn: Optional[pulumi.Input[str]] = None,
engine: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
user_group_id: Optional[pulumi.Input[str]] = None,
user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
"""
Provides an ElastiCache user group resource.
## Example Usage
```python
import pulumi
import pulumi_aws as aws
test_user = aws.elasticache.User("testUser",
user_id="testUserId",
user_name="default",
access_string="on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember",
engine="REDIS",
passwords=["password123456789"])
test_user_group = aws.elasticache.UserGroup("testUserGroup",
engine="REDIS",
user_group_id="userGroupId",
user_ids=[test_user.user_id])
```
## Import
ElastiCache user groups can be imported using the `user_group_id`, e.g.,
```sh
$ pulumi import aws:elasticache/userGroup:UserGroup my_user_group userGoupId1
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] engine: The current supported value is `REDIS`.
:param pulumi.Input[str] user_group_id: The ID of the user group.
:param pulumi.Input[Sequence[pulumi.Input[str]]] user_ids: The list of user IDs that belong to the user group.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: UserGroupArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides an ElastiCache user group resource.
## Example Usage
```python
import pulumi
import pulumi_aws as aws
test_user = aws.elasticache.User("testUser",
user_id="testUserId",
user_name="default",
access_string="on ~app::* -@all +@read +@hash +@bitmap +@geo -setbit -bitfield -hset -hsetnx -hmset -hincrby -hincrbyfloat -hdel -bitop -geoadd -georadius -georadiusbymember",
engine="REDIS",
passwords=["password123456789"])
test_user_group = aws.elasticache.UserGroup("testUserGroup",
engine="REDIS",
user_group_id="userGroupId",
user_ids=[test_user.user_id])
```
## Import
ElastiCache user groups can be imported using the `user_group_id`, e.g.,
```sh
$ pulumi import aws:elasticache/userGroup:UserGroup my_user_group userGoupId1
```
:param str resource_name: The name of the resource.
:param UserGroupArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(UserGroupArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
arn: Optional[pulumi.Input[str]] = None,
engine: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
user_group_id: Optional[pulumi.Input[str]] = None,
user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = UserGroupArgs.__new__(UserGroupArgs)
__props__.__dict__["arn"] = arn
if engine is None and not opts.urn:
raise TypeError("Missing required property 'engine'")
__props__.__dict__["engine"] = engine
__props__.__dict__["tags"] = tags
if user_group_id is None and not opts.urn:
raise TypeError("Missing required property 'user_group_id'")
__props__.__dict__["user_group_id"] = user_group_id
__props__.__dict__["user_ids"] = user_ids
__props__.__dict__["tags_all"] = None
super(UserGroup, __self__).__init__(
'aws:elasticache/userGroup:UserGroup',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
arn: Optional[pulumi.Input[str]] = None,
engine: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
user_group_id: Optional[pulumi.Input[str]] = None,
user_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'UserGroup':
"""
Get an existing UserGroup resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] engine: The current supported value is `REDIS`.
:param pulumi.Input[str] user_group_id: The ID of the user group.
:param pulumi.Input[Sequence[pulumi.Input[str]]] user_ids: The list of user IDs that belong to the user group.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _UserGroupState.__new__(_UserGroupState)
__props__.__dict__["arn"] = arn
__props__.__dict__["engine"] = engine
__props__.__dict__["tags"] = tags
__props__.__dict__["tags_all"] = tags_all
__props__.__dict__["user_group_id"] = user_group_id
__props__.__dict__["user_ids"] = user_ids
return UserGroup(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def arn(self) -> pulumi.Output[str]:
return pulumi.get(self, "arn")
@property
@pulumi.getter
def engine(self) -> pulumi.Output[str]:
"""
The current supported value is `REDIS`.
"""
return pulumi.get(self, "engine")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
return pulumi.get(self, "tags")
@property
@pulumi.getter(name="tagsAll")
def tags_all(self) -> pulumi.Output[Mapping[str, str]]:
return pulumi.get(self, "tags_all")
@property
@pulumi.getter(name="userGroupId")
def user_group_id(self) -> pulumi.Output[str]:
"""
The ID of the user group.
"""
return pulumi.get(self, "user_group_id")
@property
@pulumi.getter(name="userIds")
def user_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
The list of user IDs that belong to the user group.
"""
return pulumi.get(self, "user_ids")
| 38.539063
| 187
| 0.617474
| 1,777
| 14,799
| 4.902082
| 0.101294
| 0.114912
| 0.101251
| 0.051659
| 0.803467
| 0.774308
| 0.754448
| 0.735048
| 0.712203
| 0.698083
| 0
| 0.00193
| 0.26468
| 14,799
| 383
| 188
| 38.639687
| 0.798566
| 0.261301
| 0
| 0.683258
| 1
| 0
| 0.07116
| 0.003459
| 0
| 0
| 0
| 0
| 0
| 1
| 0.158371
| false
| 0.004525
| 0.022624
| 0.036199
| 0.276018
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dc00f5854bd4d851f8fdbe9391f9a26c4b84d9c2
| 1,000,466
|
py
|
Python
|
cltk/corpus/greek/tlg_index.py
|
michiboo/cltk
|
f4ab93b836a995f88a007ed78246ea6db0bef377
|
[
"MIT"
] | 2
|
2018-11-08T12:48:27.000Z
|
2018-11-08T17:01:55.000Z
|
cltk/corpus/greek/tlg_index.py
|
michiboo/cltk
|
f4ab93b836a995f88a007ed78246ea6db0bef377
|
[
"MIT"
] | 4
|
2021-02-02T23:07:04.000Z
|
2021-12-13T20:48:54.000Z
|
cltk/corpus/greek/tlg_index.py
|
michiboo/cltk
|
f4ab93b836a995f88a007ed78246ea6db0bef377
|
[
"MIT"
] | 1
|
2019-06-16T06:41:47.000Z
|
2019-06-16T06:41:47.000Z
|
"""Indices for the TLG.
Note: # ``TLG_MASTER_INDEX`` is the result of failed IDT parsing.
TODO: Add work names to ``TLG_WORKS_INDEX``
TODO: Add all TLG index data.
"""
TLG_INDEX = {'TLG1560': 'Matthiae Traditiones', 'TLG1268': 'Claudius Iolaus Hist.', 'TLG0390': 'Martyrium Carpi, Papyli Et Agathonicae', 'TLG0602': 'Comica Adespota (FCG)', 'TLG4347': 'Andron Hist.', 'TLG0290': 'Encomium Ducis Thebaidos', 'TLG0280': 'Andromachus Poet. Med.', 'TLG0572': 'Gaius Scr. Eccl.', 'TLG0174': 'Diotimus Epic.', 'TLG2241': 'Xenophilus Mus. et Phil.', 'TLG2278': 'Phanodicus Hist.', 'TLG0707': 'Alexis Hist.', 'TLG0514': 'Thugenides Comic.', 'TLG1292': 'Crito Phil.', 'TLG1638': 'Proxenus Hist.', 'TLG1154': 'Apocalypsis Baruch', 'TLG1147': 'Antiphon Soph.', 'TLG0050': 'Ptolemaei II Philadelphi Et Eleazari Epistulae', 'TLG2866': 'Oecumenius Phil. et Rhet.', 'TLG4331': 'Hierotheus Alchem.', 'TLG2239': 'Pythagoristae (D-K) Phil.', 'TLG1651': 'Pythermus Hist.', 'TLG2445': 'Amometus Hist.', 'TLG1583': 'Phanodemus Hist.', 'TLG0291': 'Alcman Lyr.', 'TLG2355': 'Xeniades Soph.', 'TLG0515': 'Timocles Comic.', 'TLG0141': 'Athenaeus Epigr.', 'TLG0569': 'Apollonius Paradox.', 'TLG0640': 'Alciphron Rhet. et Soph.', 'TLG5021': 'Scholia In Diophantum', 'TLG1488': 'Maximus Theol.', 'TLG2074': 'Apollinaris Theol.', 'TLG1175': 'Archestratus Parodius', 'TLG0593': 'Gorgias Rhet. et Soph.', 'TLG0296': 'Carmina Convivialia (PMG)', 'TLG9019': 'Stephanus Phil.', 'TLG0301': 'Thespis Trag.', 'TLG0487': 'Philemon Comic.', 'TLG7051': 'Doctrina Patrum', 'TLG1701': 'Testamentum Abrahae', 'TLG0524': 'Sophron Mimogr.', 'TLG2681': 'Diodorus Phil.', 'TLG1498': 'Menander Hist.', 'TLG2169': 'Herillus Phil.', 'TLG0512': 'Theophilus Comic.', 'TLG1506': 'Menodotus Hist.', 'TLG0360': 'Armenidas Hist.', 'TLG0010': 'Isocrates Orat.', 'TLG4302': 'Lexicon Patmense', 'TLG1484': 'Martyrium Polycarpi', 'TLG0044': 'Antiochi Regis Epistulae', 'TLG0047': 'Pausaniae I Et Xerxis Epistulae', 'TLG1759': 'Sententiae Pythagoreorum', 'TLG4346': 'Menecrates Hist.', 'TLG0686': 'Aethlius Hist.', 'TLG0363': 'Claudius Ptolemaeus Math.', 'TLG4390': 'Democles Hist.', 'TLG0067': 'Agatharchides Geogr.', 'TLG2284': 'Anaxandridas Hist.', 'TLG4039': 'Paulus Silentiarius Poeta', 'TLG2742': 'Apophthegmata', 'TLG0408': 'Comica Adespota (CAF)', 'TLG0429': 'Cephisodorus Comic.', 'TLG0483': 'Nicophon Comic.', 'TLG1323': 'Aelius Dionysius Attic.', 'TLG4328': 'Philosophus Christianus Alchem.', 'TLG2061': 'Asterius Sophista Scr. Eccl.', 'TLG0426': 'Callias Comic.', 'TLG0585': 'Publius Aelius Phlegon Paradox.', 'TLG0740': 'Jusjurandum Medicum', 'TLG3136': 'Pseudo-Zonaras Lexicogr.', 'TLG1200': 'Asclepiades Myth.', 'TLG2618': 'Didymarchus Poeta', 'TLG3142': 'Georgius Pachymeres Hist.', 'TLG1613': 'Pittaci Epistula', 'TLG2153': 'Bion Math. et Phil.', 'TLG0228': 'Anonymi Hymnus In Dactylos Idaeos', 'TLG1683': 'Sophaenetus Hist.', 'TLG0271': 'Conventus Avium', 'TLG3086': 'Nicephorus I Scr. Eccl., Hist. et Theol.', 'TLG4344': 'Menecrates Hist.', 'TLG1606': 'Phoenix Iamb.', 'TLG1427': 'Herodorus Hist.', 'TLG2003': 'Flavius Claudius Julianus Imperator Phil., Julian the Apostate', 'TLG2038': 'Acta Thomae', 'TLG0361': 'Cleonides Mus.', 'TLG0330': 'Dionysius I Trag.', 'TLG1712': 'Thebaïs', 'TLG1307': 'Demon Hist.', 'TLG5010': 'Scholia In Aeschylum', 'TLG0650': 'Herodas Mimogr.', 'TLG2040': 'Basilius Theol.', 'TLG0584': 'Philostephanus Hist.', 'TLG1594': 'Philo Judaeus Senior Epic.', 'TLG1173': 'Archedemus Phil.', 'TLG3182': 'Pseudo-Symeon Hist.', 'TLG1632': 'Posidippus Epigr.', 'TLG1168': 'Apollonius Soph.', 'TLG2466': 'Dionysius Hist.', 'TLG1132': 'Anonymus Alexandri Phil.', 'TLG1734': 'Timaeus Phil.', 'TLG2314': 'Diogenes Phil.', 'TLG2635': 'Persinus Poeta', 'TLG2614': 'Cleomachus Poeta', 'TLG1343': 'Eparchides Hist.', 'TLG2632': 'Comarius Alchem.', 'TLG2871': 'Joannes Malalas Chronogr.', 'TLG0545': 'Claudius Aelianus Soph.', 'TLG0348': 'Biotus Trag.', 'TLG0345': 'Apollonides Trag.', 'TLG0605': 'Polybius Rhet.', 'TLG1447': 'Irenaeus Theol.', 'TLG4085': 'Hesychius Lexicogr.', 'TLG1729': 'Thrasymachus Rhet. et Soph.', 'TLG2216': 'Aristippus Hist.', 'TLG0299': 'Terpander Lyr.', 'TLG0622': 'Cleobuli Epistula', 'TLG4161': 'Vitae Arati Et Varia De Arato', 'TLG1663': 'Semus Gramm.', 'TLG5019': 'Scholia In Dionysium Periegetam', 'TLG0496': 'Phrynichus Comic.', 'TLG2270': 'Callippus Hist.', 'TLG0439': 'Demetrius Comic.', 'TLG0541': 'Menander Comic.', 'TLG1953': 'Hieronymus Hist.', 'TLG2428': 'Thrasyllus Hist.', 'TLG2118': 'Gryllus', 'TLG0517': 'Timotheus Comic.', 'TLG0264': 'Susarion Comic.', 'TLG2233': 'Pseudo-Polemon', 'TLG0660': 'Apollonius Med.', 'TLG0554': 'Chariton Scr. Erot.', 'TLG0249': 'Echembrotus Eleg. et Lyr.', 'TLG1286': 'Corpus Hermeticum', 'TLG2001': 'Themistius Phil. et Rhet.', 'TLG0676': 'Aglaïs Poet. Med.', 'TLG0391': 'Acta Scillitanorum Martyrum', 'TLG2181': 'Moses Alchem.', 'TLG0510': 'Teleclides Comic.', 'TLG4291': 'Verba In Scripturis De Christo', 'TLG0230': 'Lyrica Adespota (CA)', 'TLG0064': 'Periplus Hannonis', 'TLG0419': 'Aristomenes Comic.', 'TLG1556': 'Pancrates Epigr.', 'TLG4110': 'Evagrius Scr. Eccl.', 'TLG0749': 'Antyllus Med.', 'TLG0475': 'Metagenes Comic.', 'TLG1277': 'Clinias Phil.', 'TLG4102': 'Catenae (Novum Testamentum)', 'TLG2268': 'Timagoras Hist.', 'TLG2617': 'Demetrius Poeta', 'TLG0636': 'Socratis Epistulae', 'TLG0551': 'Appianus Hist.', 'TLG2006': 'Synesius Phil.', 'TLG2307': 'Artemon Hist.', 'TLG0417': 'Archippus Comic.', 'TLG0307': 'Neophron Trag.', 'TLG3141': 'Georgius Acropolites Hist.', 'TLG1115': 'Archestratus Trag.', 'TLG1351': 'Epigoni', 'TLG0500': 'Posidippus Comic.', 'TLG0094': 'Pseudo-Plutarchus', 'TLG1578': 'Phaenias Phil.', 'TLG3120': 'Patria Constantinopoleos', 'TLG1766': 'Tatianus Apol.', 'TLG2960': 'Oracula Tiburtina', 'TLG1196': 'Aristophanes Hist.', 'TLG1205': 'Athenagoras Apol.', 'TLG2642': 'Astrampsychus Magus Onir.', 'TLG5023': 'Scholia In Euripidem', 'TLG1875': 'Aristodemus Hist. et Myth.', 'TLG2585': 'Marcellinus Biogr.', 'TLG5029': 'Scholia In Lucianum', 'TLG1357': 'Eudemus Phil.', 'TLG5039': 'Scholia In Thucydidem', 'TLG2475': 'Menecrates Hist.', 'TLG0556': 'Asclepiodotus Tact.', 'TLG1622': 'Polycarpus Scr. Eccl.', 'TLG9021': 'Stephanus Alchem.', 'TLG1911': 'Diyllus Hist.', 'TLG1705': 'Thales Phil.', 'TLG2560': 'Pythocles Hist.', 'TLG1141': 'Antimachus Epic.', 'TLG2967': 'Theodorus Heracleensis vel Theodorus Mopsuestenus Scr. Eccl.', 'TLG0197': 'Hedyle Epigr.', 'TLG2956': 'Sextus Julius Africanus Hist.', 'TLG1332': 'Diotogenes Phil.', 'TLG1839': 'Polyphrasmon Trag.', 'TLG2703': 'Anna Comnena Hist.', 'TLG4394': 'Joannes Antiochenus Hist.', 'TLG0405': 'Anaxandrides Comic.', 'TLG1750': 'Vitae Prophetarum', 'TLG2175': 'Autocharis Hist.', 'TLG1405': 'Heraclides Criticus Perieg.', 'TLG2041': 'Marcellus Theol.', 'TLG4024': 'Agathias Scholasticus Epigr. et Hist.', 'TLG2605': 'Agamestor Eleg.', 'TLG1690': 'Sotadea', 'TLG1972': 'Eumachus Hist.', 'TLG1127': 'Anonyma De Musica Scripta Bellermanniana', 'TLG2372': 'Euagon Hist.', 'TLG0335': 'Philiscus Trag.', 'TLG0470': 'Leuco Comic.', 'TLG1373': 'Evangelium Philippi', 'TLG2721': 'Theodorus Prodromus Poeta et Polyhist.', 'TLG0003': 'Thucydides Hist.', 'TLG1206': 'Athenodorus Phil.', 'TLG0856': 'Dieuches Med.', 'TLG1285': 'Conon Hist.', 'TLG1421': 'Hermippus Gramm. et Hist.', 'TLG4393': 'Nonnosus Hist.', 'TLG0333': 'Timocles Trag.', 'TLG1572': 'Perictione Phil.', 'TLG0528': 'Aëtius Doxogr.', 'TLG0833': 'Anaxion Trag.', 'TLG0092': 'Anonymi Geographiae Expositio Compendiaria', 'TLG1339': 'Duris Hist.', 'TLG4005': 'Anonymus Discipulus Isidori Milesii Mech.', 'TLG0592': 'Hermogenes Rhet.', 'TLG2702': 'Michael Psellus Polyhist.', 'TLG1602': 'Philoxenus Gramm.', 'TLG1251': 'Chamaeleon Phil.', 'TLG2200': 'Libanius Rhet. et Soph.', 'TLG2506': 'Capito Hist.', 'TLG1247': 'Cebes Phil.', 'TLG0259': 'Scythinus Poet. Phil.', 'TLG0742': 'Hymni Anonymi', 'TLG1372': 'Evangelium Evae', 'TLG1549': 'Onatas Phil.', 'TLG1349': 'Epistula A Martyribus Lugdunensibus', 'TLG1304': 'Democritus Phil.', 'TLG0001': 'Apollonius Rhodius Epic.', 'TLG0900': 'Cleomenes Lyr.', 'TLG1146': 'Antipater Phil.', 'TLG0377': 'Telestes Lyr.', 'TLG3187': 'Georgius Gramm.', 'TLG2057': 'Socrates Scholasticus Hist.', 'TLG1680': 'Sodamus Eleg.', 'TLG1661': 'Satyrus Hist.', 'TLG1733': 'Timaeus Hist.', 'TLG0357': 'Didymus Scriptor De Mensuris', 'TLG3075': 'Pseudo-Mauricius Tact.', 'TLG1327': 'Dionis Epistulae', 'TLG2354': 'Dionysius Hist.', 'TLG4001': 'Aeneas Phil. et Rhet.', 'TLG0276': 'Cantus Lugubris', 'TLG3146': 'Ducas Hist.', 'TLG1915': 'Eudoxus Hist.', 'TLG0215': 'Antagoras Epic.', 'TLG0052': 'Menippus Phil.', 'TLG0238': 'Ananius Iamb.', 'TLG2624': 'Hermias Poeta', 'TLG1377': 'Favorinus Phil. et Rhet.', 'TLG2186': 'Leo Hist.', 'TLG1180': 'Aristaeus Phil.', 'TLG0289': 'Ammonius Epigr.', 'TLG2423': 'Asclepiades Gramm. et Hist.', 'TLG1435': 'Hippias Hist.', 'TLG3170': 'Ephraem Hist. et Poeta', 'TLG1687': 'Sosicrates Hist.', 'TLG1881': 'Dionysius Scytobrachion Gramm.', 'TLG4030': 'Sophonias Phil.', 'TLG1229': '[Boeus] Epic.', 'TLG2333': 'Possis Hist.', 'TLG5012': 'Scholia In Apollonium Rhodium', 'TLG1719': 'Theodosius Astron. et Math.', 'TLG2608': 'Archebulus Poeta', 'TLG2970': 'Severus Phil.', 'TLG0320': 'Diogenes Trag.', 'TLG9020': 'Stephanus Gramm.', 'TLG1123': 'Andron Hist.', 'TLG2586': 'Menander Rhet.', 'TLG0555': 'Clemens Alexandrinus Theol.', 'TLG2025': 'Maximus Rhet.', 'TLG2031': 'Sopater Rhet.', 'TLG0697': 'Cornelius Alexander Polyhist.', 'TLG1321': 'Diogenes Phil.', 'TLG1706': 'Thallus Hist.', 'TLG1004': 'Thessalus Astrol. et Med.', 'TLG2679': 'Testamentum Salomonis', 'TLG4170': 'Vitae Pindari Et Varia De Pindaro', 'TLG2602': 'Timaeus Sophista Gramm.', 'TLG0625': 'Polemaeus Trag.', 'TLG0395': 'Diophantus Comic.', 'TLG0548': 'Pseudo-Apollodorus Myth.', 'TLG1511': 'Mimnermus Trag.', 'TLG0222': 'Eratosthenes et Eratosthenica Philol.', 'TLG3128': 'Theognostus Gramm.', 'TLG1859': 'Liber Jannes Et Jambres', 'TLG2117': 'Anonymus De Metrorum Ratione', 'TLG0746': 'Theophilus Protospatharius et Stephanus Atheniensis Med.', 'TLG0529': 'Arius Didymus Doxogr.', 'TLG1347': 'Epimenides Phil.', 'TLG2172': 'Andron Hist.', 'TLG0730': 'Meletius Med.', 'TLG2647': 'Zenothemis Geogr.', 'TLG2275': 'Theagenes Phil.', 'TLG2349': '[Pyrander] Hist.', 'TLG1406': 'Heraclides Hist.', 'TLG1387': '(H)agias-Dercylus Hist.', 'TLG0414': 'Apollophanes Comic.', 'TLG0048': 'Philippus II Rex Macedonum Epist.', 'TLG1840': 'Euripides II Trag.', 'TLG2625': 'Herodicus Gramm.', 'TLG1633': 'Praxiteles Epigr.', 'TLG1728': 'Theseus Hist.', 'TLG2007': 'Martyrium Potamiaenae Et Basilidis', 'TLG1228': '[Boeo] Epic.', 'TLG1775': 'Pseudo-Agathon Epigr.', 'TLG1222': 'Beros(s)us Astrol. et Hist.', 'TLG0422': 'Athenio Comic.', 'TLG4117': 'Eustathius Scr. Eccl. et Theol.', 'TLG2949': 'Acta Barnabae', 'TLG0321': 'Aeschylus Trag.', 'TLG1833': 'Pratinas Trag.', 'TLG0661': 'Archigenes Med.', 'TLG0667': 'Marcellinus I Med.', 'TLG1310': 'Dictys Hist.', 'TLG1495': 'Melito Apol.', 'TLG9023': 'Thomas Magister Philol.', 'TLG0218': 'Nicaenetus Epic.', 'TLG4301': 'Lexicon Rhetoricum Cantabrigiense', 'TLG0398': 'Simylus Comic.', 'TLG4086': '[Agathodaemon] Alchem.', 'TLG0061': 'Pseudo-Lucianus Soph.', 'TLG1665': 'Seniores Apud Irenaeum Scr. Eccl.', 'TLG0298': 'Eumelus Epic.', 'TLG0219': 'Rhianus Epic.', 'TLG3147': 'Michael Critobulus Hist.', 'TLG2398': 'Basilides Phil.', 'TLG1207': 'Attalus Astron. et Math.', 'TLG2051': 'Himerius Soph.', 'TLG1771': 'Montanus et Montanistae Theol.', 'TLG1849': 'Demetrius Trag.', 'TLG0725': 'Anaximander Phil.', 'TLG1094': 'Theodorides Trag.', 'TLG0300': 'Acta Alexandrinorum', 'TLG2532': '[Hermesianax] Hist.', 'TLG1525': 'Neanthes Hist.', 'TLG1576': 'Phaedimus Epic.', 'TLG1977': 'Lucius Licinius Lucullus Hist.', 'TLG3157': 'Theodorus Scutariota Hist.', 'TLG1562': 'Parmenides Poet. Phil.', 'TLG2367': 'Theognis Hist.', 'TLG0273': 'Scolia Alphabetica', 'TLG4153': 'Theophanes Continuatus', 'TLG3169': 'Joannes VI Cantacuzenus', 'TLG1416': '(H)eren(n)ius Philo Gramm. et Hist.', 'TLG1596': 'Philolaus Phil.', 'TLG4166': 'Vitae Aeschinis', 'TLG3127': 'Pseudo-Nonnus', 'TLG2565': 'Mnesimachus Hist.', 'TLG1383': 'Geminus Astron.', 'TLG1379': 'Fragmenta Alchemica', 'TLG0255': 'Mimnermus Eleg.', 'TLG1569': 'Pausanias Attic.', 'TLG1128': 'Anonymi Commentarius In Platonis Theaetetum', 'TLG4075': 'Marinus Phil.', 'TLG0037': 'Anacharsidis Epistulae', 'TLG3185': 'Anonymus De Scientia Politica Hist.', 'TLG0016': 'Herodotus Hist.', 'TLG0536': 'Ephorus Hist.', 'TLG3176': 'Pseudo-Sphrantzes Hist.', 'TLG2122': 'Gaius Asinius Quadratus Hist.', 'TLG0597': 'Zenodorus Gramm.', 'TLG0005': 'Theocritus Bucol.', 'TLG2273': 'Damon Hist.', 'TLG4093': 'Georgius Choeroboscus Gramm.', 'TLG0659': 'Comica Adespota (Suppl. Com.)', 'TLG0544': 'Sextus Empiricus Phil.', 'TLG0378': 'Ariphron Lyr.', 'TLG0509': 'Myia Phil.', 'TLG0651': 'Antoninus Liberalis Myth.', 'TLG1161': 'Apocryphon Ezechiel', 'TLG0315': 'Sthenelus Trag.', 'TLG0261': 'Simonides Lyr.', 'TLG5028': 'Scholia In Isocratem', 'TLG2148': 'Aristodemus Hist.', 'TLG2548': 'Promathion Hist.', 'TLG0338': 'Sosiphanes Trag.', 'TLG0221': 'Euphorion Epic.', 'TLG4091': 'Callistratus Soph.', 'TLG0888': 'Eudemus Poet. Med.', 'TLG1412': 'Pseudo-Heracliti Epistulae', 'TLG1437': 'Hippon Phil.', 'TLG2291': 'Cratylus Phil.', 'TLG2130': 'Arethas Philol. et Scr. Eccl.', 'TLG0581': 'Paradoxographus Palatinus', 'TLG2568': '[Sosthenes] Hist.', 'TLG0007': 'Plutarchus Biogr. et Phil.', 'TLG1542': 'Numenius Phil.', 'TLG2140': 'Iamblichus Alchem.', 'TLG0724': 'Stephanus Med. et Phil.', 'TLG4287': 'Etymologia Alphabeti', 'TLG0413': 'Apollodorus Comic.', 'TLG2173': 'Antileon Hist.', 'TLG0071': 'Periplus Maris Erythraei', 'TLG2807': 'Antonius Hagiographus Scr. Eccl.', 'TLG0655': 'Parthenius Myth.', 'TLG0459': 'Eunicus Comic.', 'TLG0375': 'Cinesias Lyr.', 'TLG0463': 'Hegemon Parodius', 'TLG0562': 'Marcus Aurelius Antoninus Imperator Phil.', 'TLG1083': 'Isigonus Paradox.', 'TLG0331': 'Polyidus Trag.', 'TLG0089': 'Praxiphanes Phil.', 'TLG2589': 'Olympiodorus Alchem.', 'TLG0027': 'Andocides Orat.', 'TLG1693': 'Sphaerus Phil.', 'TLG0708': 'Ammonius Gramm.', 'TLG1625': 'Polyclitus Phil.', 'TLG0410': 'Antiphanes Comic.', 'TLG1164': 'Apollodorus Hist.', 'TLG1794': 'Philocles Comic.', 'TLG1906': 'Simonides Epic.', 'TLG2482': 'Daimachus Hist.', 'TLG2248': 'Acta Xanthippae Et Polyxenae', 'TLG4237': 'Joannes Argyropulus Gramm.', 'TLG1459': 'Lepidus Hist.', 'TLG0461': 'Eupolis Comic.', 'TLG0481': 'Nicolaus Comic.', 'TLG2274': 'Hesychius Illustrius Hist.', 'TLG1288': 'Craterus Hist.', 'TLG0612': 'Dio Chrysostomus Soph.', 'TLG1912': 'Euphantus Phil.', 'TLG4037': 'Anonymi Paradoxographi', 'TLG4165': 'Anonymi In Aristotelis Librum De Interpretatione Phil.', 'TLG4334': '[Isis Prophetissa] Alchem.', 'TLG0577': 'Nicolaus Hist.', 'TLG0244': 'Cleobulina Scriptor Aenigmatum', 'TLG1504': 'Menelaus Epic.', 'TLG0042': 'Alexandri Magni Epistulae', 'TLG2877': 'Cyrillus Biogr.', 'TLG1309': 'Dialexeis Δισσοὶ λόγοι', 'TLG2566': '[Agathon] Hist.', 'TLG2277': 'Hypermenes Hist.', 'TLG1670': 'Serapion Scr. Eccl.', 'TLG2385': 'Polycritus Hist.', 'TLG0236': 'Alcibiades Eleg.', 'TLG4066': 'Damascius Phil.', 'TLG1312': 'Didymus Gramm.', 'TLG0561': 'Longus Scr. Erot.', 'TLG1425': 'Hermonax Epic.', 'TLG2580': 'Joannes Laurentius Lydus Hist.', 'TLG0319': 'Critias Eleg., Phil. et Trag.', 'TLG2639': 'Posidonius Epic.', 'TLG0611': 'Theodorus Trag.', 'TLG9009': 'Michael Apostolius Paroemiogr.', 'TLG1303': 'Demochares Hist. et Orat.', 'TLG0386': 'Chilonis Epistula', 'TLG2032': 'Pappus Math.', 'TLG0430': 'Chariclides Comic.', 'TLG0981': 'Stesichorus II Lyr.', 'TLG3002': 'Prolegomena De Comoedia', 'TLG2010': 'Martyrium Dasii', 'TLG1135': 'Anonymus Photii Phil.', 'TLG2641': 'Priscus Epic.', 'TLG4330': 'Cosmas Hieromonachus Alchem.', 'TLG0506': 'Stephanus Comic.', 'TLG2217': 'Nicias Hist.', 'TLG2539': 'Diophantus Hist.', 'TLG1139': 'Anonymi Historici (FGrH)', 'TLG2303': 'Archelaus Phil.', 'TLG0268': 'Mesomedes Lyr.', 'TLG4173': 'Vitae Dionysii Periegetae', 'TLG3168': 'Pseudo-Codinus Hist.', 'TLG5040': 'Scholia In Xenophontem', 'TLG1605': 'Pseudo-Phocylides Gnom.', 'TLG0374': 'Licymnius Lyr.', 'TLG2226': 'Iccus Phil.', 'TLG4396': 'Timagetus Hist.', 'TLG0641': 'Xenophon Scr. Erot.', 'TLG0457': 'Eubulides Comic.', 'TLG2289': 'Echephylidas Hist.', 'TLG0645': 'Justinus Martyr Apol.', 'TLG0653': 'Aratus Astron. et Epic.', 'TLG1342': 'Empedocles Poet. Phil.', 'TLG2904': 'Nicolaus Rhet. et Soph.', 'TLG0415': 'Araros Comic.', 'TLG4242': 'Cyrus Rhet.', 'TLG2022': 'Gregorius Nazianzenus Theol.', 'TLG1245': 'Carystius Hist.', 'TLG0399': 'Eudoxus Comic.', 'TLG0436': 'Crito Comic.', 'TLG1643': 'Ptolemaeus Gramm.', 'TLG4171': 'Anonymi In Oppiani Opera', 'TLG1949': 'Potamon Hist.', 'TLG0316': 'Xenocles Trag.', 'TLG1992': 'Ariston Apol.', 'TLG0254': 'Melanthius Eleg. et Trag.', 'TLG0719': 'Aretaeus Med.', 'TLG4031': 'Eustratius Phil.', 'TLG5031': 'Scholia In Nicandrum', 'TLG1626': 'Polycrates Scr. Eccl.', 'TLG0631': 'Pittacus Lyr.', 'TLG0624': 'Demetrius Hist. et Phil.', 'TLG9004': 'Anonymi In Aristotelis Librum Alterum Analyticorum Posteriorum Commentarium', 'TLG4082': 'Musaeus Grammaticus Epic.', 'TLG4345': 'Menecrates Hist.', 'TLG4340': 'Salmanas Alchem.', 'TLG2215': 'Ar(i)aethus Hist.', 'TLG2621': 'Diophilus vel Diophila Poeta', 'TLG1189': 'Aristocrates Hist.', 'TLG1225': 'Bion Hist.', 'TLG1557': 'Panyassis Epic.', 'TLG1788': 'Phormis Comic.', 'TLG4081': 'Colluthus Epic.', 'TLG0312': 'Philocles Trag.', 'TLG0604': 'Ptolemaeus IV Philopator Trag.', 'TLG0411': 'Apollodorus Comic.', 'TLG3051': 'Georgius Monachus Continuatus', 'TLG0068': 'Pseudo-Scymnus Geogr.', 'TLG1821': 'Iambica Adespota (ALG)', 'TLG0658': 'Heliodorus Scr. Erot.', 'TLG0015': 'Herodianus Hist.', 'TLG0744': 'Alexander Med.', 'TLG3040': 'Josephus Genesius Hist.', 'TLG4105': 'Julianus Scr. Eccl.', 'TLG1157': 'Apocalypsis Esdrae', 'TLG1720': 'Theodotus Judaeus Epic.', 'TLG4333': 'Nicephorus Blemmydes Alchem.', 'TLG1544': 'Nymphis Hist.', 'TLG0014': 'Demosthenes Orat.', 'TLG0022': 'Nicander Epic.', 'TLG2734': 'Flavius Justinianus Imperator Theol.', 'TLG0446': 'Dioxippus Comic.', 'TLG1609': 'Phylarchus Hist.', 'TLG1204': 'Athenaeus Mech.', 'TLG0502': 'Sophilus Comic.', 'TLG0207': 'Hermocles Lyr.', 'TLG2218': 'Calliphon et Democedes Med. et Phil.', 'TLG1052': 'Posidonius Phil.', 'TLG0079': 'Menippus Geogr.', 'TLG0418': 'Aristagoras Comic.', 'TLG4072': 'Eutocius Math.', 'TLG0200': 'Mantissa Proverbiorum', 'TLG1523': 'Myron Hist.', 'TLG2636': 'Pherenicus Epic.', 'TLG1375': 'Evangelium Thomae', 'TLG2322': 'Antenor Hist.', 'TLG0308': 'Ion Phil. et Poeta', 'TLG2193': '[Aretades] Hist.', 'TLG0281': 'Marcellus Poet. Med.', 'TLG2243': 'Apocalypsis Sedrach', 'TLG5022': 'Scholia In Euclidem', 'TLG1703': 'Teucer Astrol.', 'TLG0095': 'Hermodorus Phil.', 'TLG1835': 'Agroetas Hist.', 'TLG0385': 'Cassius Dio Hist., Dio Cassius', 'TLG2286': 'Cercops Phil.', 'TLG0703': 'Numenius Poet. Didac.', 'TLG7052': 'Anthologiae Graecae Appendix', 'TLG4238': 'Athanasius Soph.', 'TLG0516': 'Timostratus Comic.', 'TLG2655': 'Damigeron Magus', 'TLG2969': 'Demonax Phil.', 'TLG1787': '[Menippus] Comic.', 'TLG1607': 'Phoronis', 'TLG4083': 'Eustathius Philol. et Scr. Eccl.', 'TLG2345': 'Agl(a)osthenes Hist.', 'TLG3023': 'Constantinus VII Porphyrogenitus Imperator Hist.', 'TLG2397': 'Boethus Phil.', 'TLG5015': 'Scholia In Aristotelem', 'TLG5038': 'Scholia In Theocritum', 'TLG2246': 'Lycon Phil.', 'TLG0341': 'Lycophron Trag.', 'TLG2600': 'Simon Scriptor De Re Equestri', 'TLG2628': 'Idaeus Epic.', 'TLG0710': 'Amphiarai Exilium (?)', 'TLG1772': 'Paraleipomena Jeremiou', 'TLG0630': 'Pherecydes Myth. et Phil.', 'TLG1641': 'Ptolemaeus Gnost.', 'TLG1654': 'Rhinthon Comic.', 'TLG1527': 'Nepualius Med. et Phil.', 'TLG4003': 'Marcianus Geogr.', 'TLG2115': 'Hippolytus Scr. Eccl.', 'TLG0387': 'Sapphus vel Alcaei Fragmenta', 'TLG2110': 'Cyrillus Scr. Eccl.', 'TLG2029': 'Anonymi Geographia In Sphaera Intelligenda', 'TLG2304': 'Idaeus Phil.', 'TLG2892': 'Maximus Confessor Theol.', 'TLG0227': 'Anonymi Curetum Hymnus', 'TLG5008': 'Scholia In Aelium Aristidem', 'TLG1155': 'Apocalypsis Syriaca Baruchi', 'TLG1460': 'Lesbonax Gramm.', 'TLG1791': 'Menandri Et Philistionis Sententiae', 'TLG1918': 'Timagenes Hist.', 'TLG1838': 'Theon Gramm.', 'TLG1699': 'Teles Phil.', 'TLG2606': 'Agathyllus Eleg.', 'TLG1266': 'Tyrannion Gramm.', 'TLG1749': 'Vitae Hesiodi Particula', 'TLG1678': 'Socrates Hist.', 'TLG0214': 'Phanocles Eleg.', 'TLG0278': 'Praelusio Mimi', 'TLG2699': 'Amphicrates Rhet.', 'TLG2178': 'Cassius Longinus Phil. et Rhet.', 'TLG1419': 'Hermas Scr. Eccl., Pastor Hermae', 'TLG4126': 'Theodorus Scr. Eccl.', 'TLG0020': 'Hesiodus Epic.', 'TLG1545': 'Ocellus Phil.', 'TLG2060': 'Asterius Scr. Eccl.', 'TLG1650': 'Pytheas Perieg.', 'TLG1145': 'Antiochus Hist.', 'TLG0260': 'Semonides Eleg. et Iamb.', 'TLG0713': 'Anaxagoras Phil.', 'TLG1691': 'Sotades Iamb.', 'TLG0277': 'Monodia', 'TLG0450': 'Ephippus Comic.', 'TLG0029': 'Dinarchus Orat.', 'TLG1732': 'Timachidas Hist.', 'TLG0329': 'Theodectas Trag.', 'TLG1534': 'Nicocles Hist.', 'TLG3144': 'Joannes Cananus Hist.', 'TLG1709': 'Theagenes Hist.', 'TLG0542': 'Julius Pollux Gramm.', 'TLG1436': 'Hippodamus Phil.', 'TLG1289': 'Crates Hist.', 'TLG0056': 'Thrasybuli Epistula', 'TLG0186': 'Marcus Cornelius Fronto Rhet.', 'TLG2020': 'Theodosius Gramm.', 'TLG0621': '[Ath]enodorus Trag.', 'TLG0482': 'Nicomachus Comic.', 'TLG1386': 'Historia Alexandri Magni', 'TLG1611': 'Tyrannion Junior Gramm.', 'TLG0484': 'Nicostratus Comic.', 'TLG2797': 'Hesychius Scr. Eccl.', 'TLG0030': 'Hyperides Orat.', 'TLG1591': 'Philistus Hist.', 'TLG0434': 'Cratinus Comic.', 'TLG4332': 'Hierotheus Alchem. et Poeta', 'TLG1287': 'Crantor Phil.', 'TLG0472': 'Lysippus Comic.', 'TLG2592': 'Joannes Pediasimus Philol. et Rhet.', 'TLG2265': 'Diodorus Perieg.', 'TLG0235': 'Iambica Adespota (IEG)', 'TLG1780': 'Alcimenes Comic.', 'TLG1490': 'Megillus Phil.', 'TLG0460': 'Euphro Comic.', 'TLG2287': 'Fragmentum Stoicum', 'TLG0733': 'Cassius Iatrosophista Med.', 'TLG2058': 'Philostorgius Scr. Eccl.', 'TLG0019': 'Aristophanes Comic.', 'TLG2111': 'Palladius Scr. Eccl.', 'TLG2047': 'Syriani, Sopatri Et Marcellini Scholia Ad Hermogenis Status', 'TLG2305': 'Clidemus Phil.', 'TLG2313': 'Antisthenes Phil.', 'TLG1577': 'Phaedimus Epigr.', 'TLG0698': 'Alexander Rhet.', 'TLG1748': 'Sosigenes Phil.', 'TLG1324': 'Dionysius Hist.', 'TLG0715': 'Paulus Med.', 'TLG3155': 'Joannes Protospatharius Gramm.', 'TLG1846': 'Spintharus Trag.', 'TLG1499': 'Menecles Hist.', 'TLG0638': 'Flavius Philostratus Soph.', 'TLG1466': 'Lollianus Scr. Erot.', 'TLG1334': 'Dius Phil.', 'TLG1752': 'Xenagoras Geogr. et Hist.', 'TLG0695': 'Alcimus Hist.', 'TLG0623': 'Cratetis Epistulae', 'TLG0350': 'Dionysius Scymnaeus Trag. vel Comic.', 'TLG2644': 'Sminthes Astron.', 'TLG1382': 'Fragmentum Teliambicum', 'TLG0328': 'Chaeremon Trag.', 'TLG1376': 'Eudemus Rhet.', 'TLG2157': 'Magnus Hist.', 'TLG2623': 'Euanthes Epic.', 'TLG2102': 'Didymus Caecus Scr. Eccl., Didymus the Blind', 'TLG3125': 'Theodosius Diaconus Hist. et Poeta', 'TLG1783': 'Callicrates Comic.', 'TLG4096': 'Dositheus Magister Gramm.', 'TLG1828': 'Pamphila Hist.', 'TLG0043': 'Amasis Epistulae', 'TLG2595': 'Philo Paradox.', 'TLG0620': 'Archytas Phil.', 'TLG0720': 'Harmodius Trag.', 'TLG2701': 'Georgius Pisides Poeta', 'TLG1124': 'Andronicus Rhodius Phil.', 'TLG5025': 'Scholia In Hesiodum', 'TLG0087': 'Aelius Herodianus et Pseudo-Herodianus Gramm. et Rhet.', 'TLG0416': 'Archedicus Comic.', 'TLG0024': 'Oppianus Epic.', 'TLG0127': 'Aulus Licinius Archias Epigr.', 'TLG0647': 'Triphiodorus Epic. et Gramm.', 'TLG2630': 'Lobo Poeta', 'TLG0617': 'Anaximenes Phil.', 'TLG2800': 'Basilius Scr. Eccl.', 'TLG0137': 'Asclepiades Epigr.', 'TLG4034': 'Michael Phil.', 'TLG0498': 'Poliochus Comic.', 'TLG1715': 'Theodoridas Epigr.', 'TLG0396': 'Euphanes Comic.', 'TLG0445': 'Dionysius Comic.', 'TLG4124': 'Eusebius Scr. Eccl.', 'TLG1535': 'Nicocrates Hist.', 'TLG2914': 'Leontius Scr. Eccl.', 'TLG1462': 'Liber Eldad Et Modad', 'TLG0452': 'Epigenes Comic.', 'TLG0352': 'Isidorus Trag.', 'TLG2387': 'Athanis Hist.', 'TLG0198': 'Hedylus Epigr.', 'TLG0526': 'Flavius Josephus Hist.', 'TLG2011': 'Martyrium Agapae, Irenae, Chionae Et Sodalium', 'TLG2455': 'Aristocreon Hist.', 'TLG2014': 'Acta Phileae', 'TLG2346': 'Andriscus Hist.', 'TLG1700': 'Testamenta XII Patriarcharum', 'TLG2298': 'Lysanias Hist.', 'TLG0533': 'Callimachus Philol.', 'TLG2212': 'Lyceas Hist.', 'TLG4397': 'Myronianus Hist.', 'TLG2458': 'Marcellus Hist.', 'TLG4038': 'Pamprepius Epic.', 'TLG1815': 'Sappho et Alcaeus Lyr.', 'TLG1567': 'Parrhasius Epigr.', 'TLG2733': 'Evagrius Scholasticus Scr. Eccl.', 'TLG2048': 'Salaminius Hermias Sozomenus Scr. Eccl.', 'TLG0205': 'Philodamus Lyr.', 'TLG3020': 'Joannes Cinnamus Gramm. et Hist.', 'TLG1978': 'Leo Hist.', 'TLG0240': 'Hermolochus Lyr.', 'TLG0085': 'Aeschylus Trag.', 'TLG0662': 'Comica Adespota (CGFPR)', 'TLG1262': 'Choerilus Epic.', 'TLG2049': 'Sallustius Phil.', 'TLG0485': 'Ophelio Comic.', 'TLG2162': 'Aratus Hist.', 'TLG2966': 'Phileas Scr. Eccl.', 'TLG1714': 'Theocritus Soph.', 'TLG0210': 'Euphronius Lyr.', 'TLG2127': 'Troilus Soph.', 'TLG0583': 'Philochorus Hist.', 'TLG2042': 'Origenes Theol.', 'TLG0267': 'Xenophanes Poet. Phil.', 'TLG0351': '[Hippothoon] Trag.', 'TLG0488': 'Philemon Junior Comic.', 'TLG1753': 'Xenion Hist.', 'TLG0404': 'Amphis Comic.', 'TLG0745': 'Hierophilus Phil. et Soph.', 'TLG2158': 'Eutychianus Hist.', 'TLG4036': 'Proclus Phil.', 'TLG4235': 'Joannes Rhet.', 'TLG1636': 'Protagorides Hist.', 'TLG1313': 'Dieuchidas Hist.', 'TLG0376': 'Timotheus Lyr.', 'TLG1600': 'Philostratus Major Soph.', 'TLG5034': 'Scholia In Pindarum', 'TLG1182': '[Aristeas] Epic.', 'TLG2009': 'Martyrium Marini', 'TLG2196': '[Dercyllus] Hist.', 'TLG0062': 'Lucianus Soph.', 'TLG4323': 'Eugenius Alchem.', 'TLG0480': 'Nicochares Comic.', 'TLG3014': 'Joannes Camaterus Astrol. et Astron.', 'TLG0206': 'Theocles Lyr.', 'TLG0574': 'Lysimachus Hist.', 'TLG1138': 'Lycon Phil.', 'TLG2383': 'Diodorus Phil.', 'TLG2247': 'Petron Phil.', 'TLG0202': 'Mace(donius) Lyr.', 'TLG0116': 'Abydenus Hist.', 'TLG0040': 'Calani Epistula', 'TLG1698': 'Telephus Gramm.', 'TLG2738': 'Chronographiae Anonymae', 'TLG1667': 'Septem Sapientes Phil.', 'TLG1890': 'Moderatus Phil.', 'TLG1688': 'Sostratus Gramm.', 'TLG1676': 'Simylus Iamb.', 'TLG2340': 'Diotimus Phil.', 'TLG0591': 'Antisthenes Phil. et Rhet.', 'TLG2547': 'Antigonus', 'TLG0679': 'Aeschrion Lyr.', 'TLG4089': 'Theodoretus Scr. Eccl. et Theol.', 'TLG2045': 'Nonnus Epic.', 'TLG0431': 'Chionides Comic.', 'TLG2053': 'Paulus Astrol.', 'TLG1431': 'Hipparchus Astron. et Geogr.', 'TLG1264': 'Chrysippus Phil.', 'TLG2971': 'Georgius Peccator Poeta', 'TLG0723': 'Leo Phil.', 'TLG0266': 'Tyrtaeus Eleg.', 'TLG0233': 'Hipponax Iamb.', 'TLG0489': 'Philetaerus Comic.', 'TLG4391': 'Glaucus Hist.', 'TLG1298': 'Demetrii Phalerei Epistula', 'TLG1438': 'Hippys Hist.', 'TLG0246': 'Dionysius Chalcus Eleg.', 'TLG0582': 'Paradoxographus Vaticanus', 'TLG0305': 'Aristias Trag.', 'TLG1896': '[Dositheus] Hist.', 'TLG1724': 'Theon Phil.', 'TLG0340': 'Sositheus Trag.', 'TLG0342': 'Nicomachus Trag.', 'TLG4300': 'Lexicon Sabbaiticum', 'TLG4145': 'Nicephorus Gregoras Hist.', 'TLG0897': 'Euthydemus Med.', 'TLG4134': 'Diodorus Scr. Eccl.', 'TLG0388': 'Acta Pauli', 'TLG4139': 'Severianus Scr. Eccl.', 'TLG5052': 'Scholia in Maximum Confessorem', 'TLG1695': 'Sthenidas Phil.', 'TLG1224': 'Bion Phil.', 'TLG4335': 'Cleopatra Alchem.', 'TLG2116': 'Arcadius Gramm.', 'TLG1814': 'Ptolemais Phil.', 'TLG2225': 'Parm(en)iscus Phil.', 'TLG1736': 'Timonax Hist.', 'TLG1392': 'Hegesander Hist.', 'TLG2054': 'Aristides Quintilianus Mus.', 'TLG1172': 'Arcesilaus Phil.', 'TLG1340': 'Eccelus Phil.', 'TLG2234': 'Oenopides Phil.', 'TLG1692': 'Speusippus Phil.', 'TLG0368': 'Cydias Lyr.', 'TLG0629': 'Periander Phil.', 'TLG1764': 'Vettius Valens Astrol.', 'TLG2456': 'Nessas Phil.', 'TLG0458': 'Eubulus Comic.', 'TLG0971': 'Oeniades Lyr.', 'TLG1981': 'Theophanes Hist.', 'TLG2474': 'Nicander Hist.', 'TLG0344': 'Melanthius Trag.', 'TLG1345': 'Epica Incerta (CA)', 'TLG2556': '[Alexarchus] Hist.', 'TLG0326': 'Sophocles Junior Trag.', 'TLG1784': 'Heraclitus Comic.', 'TLG0700': 'Apollodorus Trag.', 'TLG1133': 'Anonymus Diodori Phil.', 'TLG4040': 'Photius Lexicogr., Scr. Eccl. et Theol.', 'TLG1471': 'Lyrica Adespota (SLG)', 'TLG1675': 'Simylus Eleg.', 'TLG4395': 'Menetor Hist.', 'TLG0293': 'Ibycus Lyr.', 'TLG0728': 'Theophilus Protospatharius, Damascius et Stephanus Atheniensis Med.', 'TLG2577': 'Anatolius Math. et Phil.', 'TLG0212': 'Philetas Eleg. et Gramm.', 'TLG1507': 'Metopus Phil.', 'TLG1574': 'Persaeus Phil.', 'TLG1760': 'Gaius Suetonius Tranquillus Gramm. et Hist.', 'TLG5009': 'Scholia In Aeschinem', 'TLG2017': 'Gregorius Nyssenus Theol.', 'TLG1391': 'Hegemon Epic.', 'TLG2210': 'Anaxicrates Hist.', 'TLG2696': 'Theodorus Poeta', 'TLG4392': 'Joannes Epiphaniensis Hist.', 'TLG2027': 'Valerius Apsines Rhet.', 'TLG2232': 'Damon Mus.', 'TLG1341': 'Ecphantus Phil.', 'TLG0547': 'Anaximenes Hist. et Rhet.', 'TLG0535': 'Demades Orat. et Rhet.', 'TLG1274': 'Cleobulus Epigr. et Lyr.', 'TLG0423': 'Autocrates Comic.', 'TLG1662': 'Sciras Comic.', 'TLG0055': 'Themistoclis Epistulae', 'TLG1256': 'Chares Gnom.', 'TLG0369': 'Telesilla Lyr.', 'TLG1400': 'Heliodorus Perieg.', 'TLG0722': 'Oribasius Med.', 'TLG0503': 'Sosicrates Comic.', 'TLG0734': 'Lucas Apostolus Med.', 'TLG2189': 'Callinicus Soph.', 'TLG1252': 'Certamen Homeri Et Hesiodi', 'TLG1792': 'Biottus Comic.', 'TLG2695': 'Vitae Aristotelis', 'TLG1346': 'Ephraem Scr. Eccl.', 'TLG1571': 'Pempelus Phil.', 'TLG0716': 'Erotianus Gramm. et Med.', 'TLG2391': 'Hippostratus Hist.', 'TLG0017': 'Isaeus Orat.', 'TLG1365': 'Melampus Scriptor De Divinatione', 'TLG1516': 'Molpis Hist.', 'TLG1352': 'Epistula Ecclesiarum Apud Lugdunum Et Viennam', 'TLG3188': 'Joannes Actuarius Med.', 'TLG5002': 'Magica', 'TLG1367': 'Euripidis Epistulae', 'TLG2653': 'Erycius Poeta', 'TLG0370': 'Lamprocles Lyr.', 'TLG0253': '[Homerus] Epic.', 'TLG0248': 'Diphilus Epic. et Iamb.', 'TLG1923': 'Stesimbrotus Hist.', 'TLG1763': 'Tryphon II Gramm.', 'TLG2242': 'Echecrates Phil.', 'TLG0540': 'Lysias Orat.', 'TLG0751': 'Pseudo-Hippocrates Med.', 'TLG4236': 'Trophonius Rhet. et Soph.', 'TLG2244': 'Damon et Phintias Phil.', 'TLG5033': 'Scholia In Pausaniam', 'TLG1197': 'Artemon Gramm.', 'TLG0511': 'Theognetus Comic.', 'TLG4017': 'Syrianus Phil.', 'TLG2881': 'Romanus Melodus Hymnographus', 'TLG1259': 'Charondas Nomographus Phil.', 'TLG0537': 'Epicurus Phil.', 'TLG4292': 'Lexicon De Atticis Nominibus', 'TLG0252': 'Hermippus Comic.', 'TLG0608': 'Satyrus Biogr.', 'TLG5024': 'Anonymi In Hermogenem Rhet.', 'TLG1232': 'Butherus Phil.', 'TLG0009': 'Sappho Lyr.', 'TLG1568': 'Parthax Hist.', 'TLG0752': 'Eutecnius Soph.', 'TLG1208': 'Atticus Phil.', 'TLG4307': 'Lexica Synonymica', 'TLG0437': 'Crobylus Comic.', 'TLG2204': 'Autocrates Hist.', 'TLG2573': 'Pausanias Hist.', 'TLG0668': 'Aegimius', 'TLG3135': 'Joannes Zonaras Gramm. et Hist.', 'TLG1337': 'Dorotheus Astrol.', 'TLG1016': 'Ostanes Magus Alchem.', 'TLG1326': 'Dionysius Epic.', 'TLG3173': 'Joannes Theol.', 'TLG0726': 'Palladius Med.', 'TLG1779': 'Anonymus Epicureus Phil.', 'TLG1515': 'Moeris Attic.', 'TLG0269': 'Nautarum Cantiunculae', 'TLG0523': 'Menecrates Comic.', 'TLG2652': 'Diodorus Eleg.', 'TLG2062': 'Joannes Chrysostomus Scr. Eccl., John Chrysostom', 'TLG0521': 'Epicharmus Comic. et Pseudepicharmea', 'TLG2559': '[Chrysippus] Hist.', 'TLG0304': 'Acta Et Martyrium Apollonii', 'TLG2972': 'Anonymi De Terrae Motibus', 'TLG1311': 'Didache XII Apostolorum', 'TLG1181': 'Aristarchus Astron.', 'TLG1248': 'Celsus Phil.', 'TLG1258': 'Charon Hist.', 'TLG2627': 'Damianus Scriptor De Opticis', 'TLG0057': 'Galenus Med.', 'TLG1213': 'Julia Balbilla Lyr.', 'TLG1237': 'Callicratidas Phil.', 'TLG2860': 'Alexander Scr. Eccl.', 'TLG2596': 'Phoebammon Soph.', 'TLG1242': 'Canon Librorum', 'TLG2657': 'Martyrium Ignatii', 'TLG0557': 'Epictetus Phil.', 'TLG2744': 'Historia Monachorum In Aegypto', 'TLG1216': 'Barnabae Epistula', 'TLG1533': 'Nicias Epigr.', 'TLG0721': 'Anonymi Medici Med.', 'TLG0358': 'Nicomachus Math.', 'TLG1702': 'Testamentum Jobi', 'TLG0825': 'Melito Trag.', 'TLG1118': 'Pseudo-Dioscorides Med.', 'TLG0615': 'Aspasius Phil.', 'TLG0606': 'Rufus Soph.', 'TLG0598': 'Rhetorica Anonyma', 'TLG1679': 'Socrates Hist.', 'TLG0508': 'Strattis Comic.', 'TLG4329': 'Philosophus Anonymus Alchem.', 'TLG3158': 'Theodorus Epist.', 'TLG2063': 'Gregorius Thaumaturgus Scr. Eccl.', 'TLG4150': 'Anacreontea', 'TLG1590': 'Philippus Hist.', 'TLG4147': 'Florilegium Cyrillianum', 'TLG0609': 'Tryphon I Gramm.', 'TLG3070': 'Symeon Logothetes Hist.', 'TLG2002': 'Anonymus Seguerianus Rhet.', 'TLG0045': 'Artaxerxis Epistulae', 'TLG4021': 'David Phil.', 'TLG0531': 'Hermias Apol.', 'TLG2260': 'Hippasus Phil.', 'TLG0492': 'Philonides Comic.', 'TLG5032': 'Scholia In Oppianum', 'TLG1494': 'Melissus Phil.', 'TLG0616': 'Polyaenus Rhet.', 'TLG0288': 'Pisander Epic.', 'TLG1546': 'Oechaliae Halosis', 'TLG1858': 'Oratio Manassis', 'TLG1174': 'Archemachus Hist.', 'TLG4018': 'Asclepius Phil.', 'TLG1250': 'Cercidas Iamb.', 'TLG2546': 'Publius Rutilius Rufus Hist.', 'TLG1162': 'Apollas Hist.', 'TLG0493': 'Philostephanus Comic.', 'TLG0467': 'Timotheus Trag.', 'TLG0501': 'Sannyrion Comic.', 'TLG2339': 'Maeandrius Hist.', 'TLG2934': 'Joannes Damascenus Scr. Eccl. et Theol., John of Damascus', 'TLG0571': 'Aristocles Paradox.', 'TLG0538': 'Hecataeus Hist.', 'TLG5030': 'Scholia In Lycophronem', 'TLG1273': 'Cleon Eleg.', 'TLG0495': 'Phoenicides Comic.', 'TLG1167': 'Apollonius Biogr.', 'TLG3130': 'Theophylactus Simocatta Epist. et Hist.', 'TLG1642': 'Pseudo-Ptolemaeus', 'TLG3156': 'Anonymi Exegesis In Hesiodi Theogoniam', 'TLG3018': 'Georgius Cedrenus Chronogr.', 'TLG0490': 'Philippides Comic.', 'TLG4293': 'Fragmentum Lexici Graeci', 'TLG0527': 'Septuaginta', 'TLG0322': 'Dicaeogenes Trag.', 'TLG3043': 'Georgius Monachus Chronogr.', 'TLG0649': 'Lesbonax Rhet.', 'TLG2294': 'Zeno Phil.', 'TLG0302': 'Choerilus Trag.', 'TLG0002': 'Theognis Eleg.', 'TLG2654': 'Physiologus', 'TLG0379': 'Philoxenus Lyr.', 'TLG0564': 'Rufus Med.', 'TLG1409': 'Heraclides Ponticus Phil.', 'TLG2229': 'Xuthus Phil.', 'TLG0432': 'Clearchus Comic.', 'TLG2937': 'Lachares Soph.', 'TLG1451': 'Josephus Et Aseneth', 'TLG0409': 'Antidotus Comic.', 'TLG2615': 'Daphitas Gramm. vel Soph.', 'TLG0400': 'Alcaeus Comic.', 'TLG0425': 'Bato Comic.', 'TLG0343': 'Ezechiel Trag.', 'TLG1369': 'Evangelium Mariae', 'TLG2404': 'Philogelos', 'TLG0208': 'Dosiadas Lyr.', 'TLG1725': 'Theophilus Apol.', 'TLG2424': 'Chaeremon Hist. et Phil.', 'TLG0353': 'Sclerias Trag.', 'TLG1254': 'Charax Hist.', 'TLG2449': 'Timotheus Gramm.', 'TLG0090': 'Agathemerus Geogr.', 'TLG2034': 'Porphyrius Phil.', 'TLG1371': 'Evangelium Petri', 'TLG1799': 'Euclides Geom.', 'TLG1802': 'Homerica', 'TLG1434': 'Hippias Soph.', 'TLG2946': 'Priscus Hist. et Rhet.', 'TLG0479': 'Nico Comic.', 'TLG0026': 'Aeschines Orat.', 'TLG0580': 'Paradoxographus Florentinus', 'TLG5004': 'Epimerismi', 'TLG1463': 'Liber Enoch', 'TLG1153': 'Apocalypsis Adam', 'TLG1765': 'Vitae Aesopi', 'TLG0619': 'Apollonius Phil.', 'TLG2328': 'Diogenes Hist.', 'TLG1445': 'Iliu Persis', 'TLG2319': 'Apollodorus Phil.', 'TLG0243': 'Callinus Eleg.', 'TLG0546': 'Aelianus Tact.', 'TLG2192': '[Agatharchides] Hist.', 'TLG1301': 'Demetrius Poet. Phil.', 'TLG1666': 'Sententiae Sexti', 'TLG1548': 'Oenomaus Phil.', 'TLG2409': 'Dioscurides Hist.', 'TLG1587': 'Philiades Eleg.', 'TLG1803': 'Bruti Epistulae', 'TLG4033': 'Anonymi In Aristotelis Ethica Nicomachea Phil.', 'TLG2330': 'Scamon Hist.', 'TLG0579': 'Orphica', 'TLG1645': 'Ptolemaeus VIII Euergetes II Hist.', 'TLG4201': 'Joannes Chortasmenus Phil.', 'TLG1179': 'Arimnestus Phil.', 'TLG0023': 'Oppianus Epic.', 'TLG1482': 'Cyranides', 'TLG0258': 'Pigres Eleg.', 'TLG5003': 'Erotica Adespota', 'TLG1608': 'Phrynichus Attic.', 'TLG1710': 'Theages Phil.', 'TLG0392': 'Acusilaus Hist.', 'TLG3143': 'Georgius Sphrantzes Hist.', 'TLG0732': 'Alexander Phil.', 'TLG0146': 'Boethus Epigr.', 'TLG0311': 'Iophon Trag.', 'TLG2555': 'Agesilaus Hist.', 'TLG2357': 'Gorgon Hist.', 'TLG2412': 'Androetas Hist.', 'TLG1524': 'Naumachius Epic.', 'TLG1746': 'Valentinus Gnost.', 'TLG1649': 'Pythaenetus Hist.', 'TLG4098': 'Etymologicum Gudianum', 'TLG2317': 'Hermias Phil.', 'TLG4174': 'Paraphrases In Dionysium Periegetam', 'TLG1362': 'Eurytus Phil.', 'TLG4374': 'Anonymi De Astrologia Dialogus Astrol.', 'TLG0553': 'Artemidorus Onir.', 'TLG1315': 'Dinolochus Comic.', 'TLG0077': 'Periplus Maris Magni', 'TLG0012': 'Homerus Epic., Homer', 'TLG0632': 'Pythagoras Phil.', 'TLG1899': 'Aristonicus Hist.', 'TLG1945': 'Antigenes Hist.', 'TLG1844': 'Hera[clides] Trag.', 'TLG1270': 'Clearchus Phil.', 'TLG4016': 'Ammonius Phil.', 'TLG1203': 'Paeanes (CA)', 'TLG0088': 'Aristoxenus Mus.', 'TLG1355': 'Erinna Lyr.', 'TLG1320': 'Diogenes Phil.', 'TLG2120': 'Panteleius Epic.', 'TLG0586': 'Polemon Perieg.', 'TLG0334': 'Diogenes Phil. et Trag.', 'TLG3027': 'Joannes Doxapatres Rhet.', 'TLG0737': 'Julianus Scriptor Legis De Medicis', 'TLG1183': 'Aristeae Epistula', 'TLG2012': 'Acta Eupli', 'TLG0451': 'Epicrates Comic.', 'TLG4115': 'Theophilus Scr. Eccl.', 'TLG0364': 'Danaïs vel Danaïdes', 'TLG1361': 'Eumedes Comic.', 'TLG0442': 'Dexicrates Comic.', 'TLG0729': 'Theophilus Protospatharius Med.', 'TLG1781': 'Philippus Comic.', 'TLG4319': 'Zosimus Alchem.', 'TLG1413': 'Heraclitus Paradox.', 'TLG2033': 'Theon Math.', 'TLG1514': 'Mnaseas Perieg.', 'TLG1723': 'Theolytus Epic.', 'TLG2236': 'Eutropius Hist.', 'TLG0035': 'Moschus Bucol.', 'TLG2005': 'Martyrium Pionii', 'TLG0552': 'Archimedes Geom.', 'TLG1239': 'Domitius Callistratus Hist.', 'TLG0539': 'Hellanicus Hist.', 'TLG1832': 'Acesander Hist.', 'TLG1407': 'Heraclides Lembus Hist.', 'TLG0518': 'Xenarchus Comic.', 'TLG4080': 'Geoponica', 'TLG0292': 'Stesichorus Lyr.', 'TLG1529': 'Nicander Gramm.', 'TLG1354': 'Ergias Hist.', 'TLG2434': 'Aelius Dius Hist.', 'TLG0383': 'Alcaeus Lyr.', 'TLG1450': 'Ister Hist.', 'TLG1178': 'Aresas Phil.', 'TLG0587': 'Sotion Paradox.', 'TLG1329': 'Dionysius Scr. Eccl.', 'TLG0367': 'Tynnichus Lyr.', 'TLG4318': 'Vita Sophoclis', 'TLG0476': 'Mnesimachus Comic.', 'TLG1489': 'Megasthenes Hist.', 'TLG3069': 'Leo Diaconus Hist.', 'TLG2334': 'Nausiphanes Phil.', 'TLG1553': 'Palaephatus Myth.', 'TLG5027': 'Scholia In Iamblichum Philosophum', 'TLG2948': 'Acta Philippi', 'TLG1429': 'Hierocles Phil.', 'TLG1296': 'Cypria', 'TLG0380': 'Philoxenus Lyr.', 'TLG0371': 'Diagoras Lyr.', 'TLG1868': 'Damastes Hist.', 'TLG0603': 'Silenus Trag.', 'TLG0031': 'Novum Testamentum, New Testament', 'TLG2037': 'Joannes Stobaeus Anthologus', 'TLG2729': 'Prorus Phil.', 'TLG0063': 'Dionysius Thrax Gramm.', 'TLG1464': 'Liber Jubilaeorum', 'TLG0491': 'Philiscus Comic.', 'TLG2000': 'Plotinus Phil.', 'TLG1685': 'Sosibius Gramm.', 'TLG0074': 'Flavius Arrianus Hist. et Phil.', 'TLG1871': 'Bion Hist.', 'TLG0069': 'Dionysius Geogr.', 'TLG0522': 'Pisander Epic.', 'TLG0532': 'Achilles Tatius Scr. Erot.', 'TLG1087': 'Cleophon Trag.', 'TLG2418': 'Archinus Hist.', 'TLG2945': 'Gnomologium Vaticanum', 'TLG1191': 'Aristombrotus Phil.', 'TLG3139': 'Laonicus Chalcocondyles Hist.', 'TLG1442': 'Idomeneus Hist.', 'TLG0217': 'Anacreon Junior Eleg.', 'TLG2607': 'Alexinus Phil.', 'TLG0646': 'Pseudo-Justinus Martyr', 'TLG4193': 'Anonymi In Aristotelis Sophisticos Elenchos Phil.', 'TLG4084': 'Zosimus Hist.', 'TLG0220': 'Moero Epic.', 'TLG2213': '[Timotheus] Hist.', 'TLG2610': 'Boiscus Iamb.', 'TLG2816': 'Joannes Gramm. et Theol.', 'TLG1811': 'Metrodorus Major Phil.', 'TLG2479': 'Patrocles Hist.', 'TLG0384': 'Acta Justini Et Septem Sodalium', 'TLG2542': 'Quintus Fabius Pictor Hist.', 'TLG1184': 'Aristides Apol.', 'TLG1735': 'Timon Phil.', 'TLG2182': 'Staphylus Hist.', 'TLG1754': 'Xenophontis Epistulae', 'TLG1843': 'Nicomachus Trag.', 'TLG2300': 'Promathidas Hist.', 'TLG0465': 'Heniochus Comic.', 'TLG0381': 'Lycophronides Lyr.', 'TLG3100': 'Nicolaus I Mysticus Theol. et Epist.', 'TLG1275': 'Cleostratus Poet. Phil.', 'TLG1240': 'Callixenus Hist.', 'TLG0011': 'Sophocles Trag.', 'TLG0051': 'Melissa Phil.', 'TLG0474': 'Magnes Comic.', 'TLG0284': 'Aelius Aristides Rhet.', 'TLG1432': 'Hipparchus Phil.', 'TLG0256': 'Panarces Scriptor Aenigmatum', 'TLG0231': 'Elegiaca Adespota (CA)', 'TLG0262': 'Socrates Phil.', 'TLG2019': 'Pelagius Alchem.', 'TLG0440': 'Demetrius Junior Comic.', 'TLG0237': 'Anacreon Lyr.', 'TLG0671': 'Philumenus Med.', 'TLG2231': 'Thrasyalces Phil.', 'TLG0816': 'Theudo[tus] Trag.', 'TLG1521': 'Vita Et Sententiae Secundi', 'TLG2228': 'Menestor Phil.', 'TLG0626': 'Heraclitus Phil.', 'TLG1493': 'Melinno Lyr.', 'TLG4337': 'Heliodorus Alchem. et Poeta', 'TLG1503': 'Menecrates Hist.', 'TLG0004': 'Diogenes Laertius Biogr.', 'TLG2015': 'Testamentum XL Martyrum', 'TLG1969': 'Philinus Hist.', 'TLG4135': 'Theodorus Theol.', 'TLG0889': 'Timesitheus Trag.', 'TLG1615': 'Platonius Gramm.', 'TLG0570': 'Archelaus Paradox.', 'TLG1105': 'Timaeus Praxidas Astrol.', 'TLG1629': 'Polystratus Phil.', 'TLG1219': 'Bato Hist. et Rhet.', 'TLG4324': 'Synesius Alchem.', 'TLG0637': 'Socraticorum Epistulae', 'TLG2646': 'Fragmenta Adespota (SH)', 'TLG4013': 'Simplicius Phil.', 'TLG2141': 'Publius Herennius Dexippus Hist.', 'TLG2121': 'Dioscorus Poeta', 'TLG2613': 'Callimachus Junior Epic.', 'TLG1804': 'Ninus', 'TLG2460': 'Glaucus Hist.', 'TLG0449': 'Ecphantides Comic.', 'TLG2336': 'Hereas Hist.', 'TLG1603': 'Phintys Phil.', 'TLG0448': 'Dromo Comic.', 'TLG2557': '[Aristobulus] Hist.', 'TLG1393': 'Hegesianax Astron. et Epic.', 'TLG1170': 'Apollonius Hist.', 'TLG0257': 'Philiscus Rhet.', 'TLG2583': 'Manetho Astrol.', 'TLG1360': 'Euryphamus Phil.', 'TLG5018': 'Scholia In Dionysium Byzantium', 'TLG1192': 'Ariston Phil.', 'TLG1148': 'Antonius Diogenes Scr. Erot.', 'TLG0279': 'Discipulorum Cantiuncula', 'TLG2995': 'Orus Gramm.', 'TLG2326': 'Dei(l)ochus Hist.', 'TLG3094': 'Nicetas Choniates Hist., Scr. Eccl. et Rhet.', 'TLG1595': 'Philodemus Phil.', 'TLG2021': 'Epiphanius Scr. Eccl.', 'TLG1805': 'Vitae Homeri', 'TLG1941': 'Leo Hist.', 'TLG0550': 'Apollonius Geom.', 'TLG0242': 'Asius Eleg. et Epic.', 'TLG2399': 'Eudromus Phil.', 'TLG0336': 'Crates Poet. Phil.', 'TLG0578': 'Nymphodorus Hist.', 'TLG0407': 'Anaxippus Comic.', 'TLG4325': '[Hermes] Alchem.', 'TLG1272': 'Cleomedes Astron.', 'TLG0595': 'Zeno Phil.', 'TLG1570': 'Epitaphium Pectorii', 'TLG2059': 'Alexander Theol.', 'TLG4175': 'Commentaria In Dionysii Thracis Artem Grammaticam', 'TLG0265': 'Timocreon Lyr.', 'TLG1318': 'Diodorus Rhet.', 'TLG0303': 'Phrynichus Trag.', 'TLG0306': 'Aristarchus Trag.', 'TLG2525': 'Laetus Hist.', 'TLG1801': 'Parodica Anonyma', 'TLG2640': 'Eusebius Phil.', 'TLG1314': 'Dinias Hist.', 'TLG0199': 'Bacchylides Lyr.', 'TLG2245': 'Simus Phil.', 'TLG0499': 'Polyzelus Comic.', 'TLG2227': 'Paron Phil.', 'TLG0563': 'Maximus Soph.', 'TLG2331': 'Myrsilus Hist.', 'TLG3186': 'Anonymus Dialogus Cum Judaeis', 'TLG0086': 'Aristoteles Phil. et Corpus Aristotelicum, Aristotle', 'TLG3178': 'Anonymi Lexeis Rhetoricae', 'TLG1249': 'Cephalion Hist. et Rhet.', 'TLG4029': 'Procopius Hist.', 'TLG4046': 'Theophanes Confessor Chronogr.', 'TLG1646': 'Ptolemaeus Hist.', 'TLG0447': 'Diphilus Comic.', 'TLG2064': 'Acacius Theol.', 'TLG2591': 'Orion Gramm.', 'TLG0420': 'Aristonymus Comic.', 'TLG2543': 'Lucius Cincius Alimentus Hist.', 'TLG2444': 'Lycophron Soph.', 'TLG0216': 'Alexander Lyr. et Trag.', 'TLG0560': '[Longinus] Rhet., Pseudo-Longinus', 'TLG2533': 'Timolaus Hist.', 'TLG4027': 'Anonymi In Aristotelis Categorias Phil.', 'TLG2645': 'Stratonicus Poeta', 'TLG2616': 'Demareta Poeta', 'TLG2594': 'Phillis Hist.', 'TLG1793': 'Timoxenus Comic.', 'TLG3181': 'Nicephorus II Phocas Imperator Tact.', 'TLG1281': '[Clitophon] Hist.', 'TLG1399': 'Pamphilus Trag.', 'TLG0566': 'Theopompus Hist.', 'TLG1241': 'Carmen Naupactium', 'TLG4099': 'Etymologicum Magnum', 'TLG2008': 'Martyrium Cononis', 'TLG0478': 'Nausicrates Comic.', 'TLG1508': 'Metrodorus Phil.', 'TLG2512': 'Paeon Hist.', 'TLG2714': 'Theodorus Studites Scr. Eccl. et Theol.', 'TLG1177': 'Pseudo-Archytas Phil.', 'TLG0738': 'Hippiatrica', 'TLG1171': 'Apollonius Scr. Eccl.', 'TLG5013': 'Scholia In Aratum', 'TLG0203': 'Limenius Lyr.', 'TLG1308': 'Demosthenes Epic.', 'TLG2806': 'Marcus Diaconus Scr. Eccl.', 'TLG4061': 'Cosmas Indicopleustes Geogr.', 'TLG3140': 'Joel Chronogr.', 'TLG1244': 'Carneiscus Phil.', 'TLG0424': 'Axionicus Comic.', 'TLG4305': 'Claudius Casilon Gramm.', 'TLG0059': 'Plato Phil.', 'TLG4149': 'Sophronius Gramm.', 'TLG2631': 'Menophilus Poeta', 'TLG2255': 'Gorgias Hist.', 'TLG3074': 'Constantinus Manasses Hist. et Poeta', 'TLG0613': 'Demetrius Rhet.', 'TLG0041': 'Chionis Epistulae', 'TLG3015': 'Joannes Cameniates Hist.', 'TLG2903': 'Minucianus Junior Rhet.', 'TLG0046': 'Niciae Epistula', 'TLG0435': 'Cratinus Junior Comic.', 'TLG2718': 'Manuel Philes Poeta et Scr. Rerum Nat.', 'TLG0520': 'Arcesilaus Comic.', 'TLG0245': 'Demodocus Eleg.', 'TLG1125': 'Androtion Hist.', 'TLG0165': 'Diodorus Rhet.', 'TLG5014': 'Scholia In Aristophanem', 'TLG2697': 'Timolaus Rhet.', 'TLG0295': 'Carmina Popularia (PMG)', 'TLG3079': 'Michael Attaliates Hist.', 'TLG1443': 'Ignatius Scr. Eccl.', 'TLG1786': 'Sogenes Comic.', 'TLG1648': 'Pyrgion Hist.', 'TLG0918': 'Lamynthius Lyr.', 'TLG0549': 'Apollodorus Gramm.', 'TLG2055': 'Serenus Geom.', 'TLG0477': 'Myrtilus Comic.', 'TLG1263': 'Choerilus Epic.', 'TLG0714': 'Anaxarchus Phil.', 'TLG0209': 'Seleucus Lyr.', 'TLG0469': 'Laon Comic.', 'TLG0282': 'Anonymus De Viribus Herbarum', 'TLG1190': 'Aristagoras Hist.', 'TLG2762': 'Gennadius I Scr. Eccl.', 'TLG4172': 'Vitae Oppiani', 'TLG1325': 'Diogenis Sinopensis Epistulae', 'TLG1566': 'Parmeno Iamb.', 'TLG2622': 'Dorieus Poeta', 'TLG1433': 'Hipparchus Epigr.', 'TLG1194': 'Aristonicus Gramm.', 'TLG9006': 'Gregorius Paroemiogr.', 'TLG1297': 'Damippus Phil.', 'TLG0406': 'Anaxilas Comic.', 'TLG3064': 'Scylitzes Continuatus', 'TLG5045': 'Anonymi In Aphthonium Rhet.', 'TLG1485': 'Martyrium Ptolemaei Et Lucii', 'TLG0462': 'Euthycles Comic.', 'TLG4187': 'Leo Magentinus Phil.', 'TLG0565': 'Soranus Med.', 'TLG4014': 'Priscianus Phil.', 'TLG0513': 'Theopompus Comic.', 'TLG0013': 'Hymni Homerici, Homeric Hymns', 'TLG0347': 'Serapion Trag.', 'TLG4000': 'Aristaenetus Epist.', 'TLG2119': 'Christodorus Epic.', 'TLG1664': 'Seniores Alexandrini Scr. Eccl.', 'TLG2282': 'Melisseus Hist.', 'TLG9018': 'Arsenius Paroemiogr.', 'TLG1747': 'Vita Adam Et Evae', 'TLG1201': 'Assumptio Mosis', 'TLG1156': 'Apocalypsis Eliae', 'TLG0032': 'Xenophon Hist.', 'TLG0272': 'De Arboribus Avibusque Fabulae', 'TLG0468': 'Hipparchus Comic.', 'TLG0656': 'Dioscorides Pedanius Med.', 'TLG0049': 'Pisistrati Epistula', 'TLG1500': 'Menecrates Poet. Phil.', 'TLG1163': 'Claudius Apollinarius Apol.', 'TLG1368': 'Evangelium Ebionitum', 'TLG2043': 'Hephaestion Astrol.', 'TLG2648': 'Adespota Papyracea (SH)', 'TLG1306': 'Bolus Med. et Phil.', 'TLG0349': 'Demonax Trag.', 'TLG1469': 'Lyceas Hist.', 'TLG4288': 'Lexicon αἱμωδεῖν', 'TLG2499': 'Eustochius Soph.', 'TLG0394': 'Apollonius Comic.', 'TLG0098': 'Zenobius Sophista Paroemiogr.', 'TLG1218': 'Basilis Hist.', 'TLG0125': 'Zenonis Epistula', 'TLG2612': 'Caecalus (?) Epic.', 'TLG2205': 'Autesion Hist.', 'TLG4311': 'Etymologicum Symeonis', 'TLG9003': 'Anonymus Lexicographus Lexicogr.', 'TLG9010': 'Suda, Suidas', 'TLG1461': 'Leucippus Phil.', 'TLG0065': 'Scylax Perieg.', 'TLG2619': 'Dionysius Epic.', 'TLG2638': 'Philo Poeta', 'TLG1131': 'Anonymus Ad Avircium Marcellum Contra Cataphrygas', 'TLG2195': '[Chrysermus] Hist.', 'TLG3159': 'Barlaam Math., Theol. et Epist.', 'TLG0673': 'Aeschines Socraticus Phil.', 'TLG0688': 'Agathocles Hist.', 'TLG2151': 'Praxagoras Hist.', 'TLG1800': 'Euboeus Parodius', 'TLG1096': 'Euaretus Trag.', 'TLG0204': 'Aristonous Lyr.', 'TLG3039': 'Joannes Galenus Gramm.', 'TLG1726': 'Theopompus Epic.', 'TLG0327': 'Carcinus Junior Trag.', 'TLG0693': 'Albinus Phil.', 'TLG4227': 'Anonymus De Philosophia Platonica Phil.', 'TLG1845': 'Callistratus Trag.', 'TLG1530': 'Nicanor Gramm.', 'TLG0247': 'Dionysius II Eleg.', 'TLG1319': 'Diogenes Phil.', 'TLG1541': 'Nostoi', 'TLG0412': 'Apollodorus Carystius vel Apollodorus Gelous Comic.', 'TLG2894': 'Constitutiones Apostolorum', 'TLG2016': 'Passio Perpetuae Et Felicitatis', 'TLG1487': 'Maximus Astrol.', 'TLG0657': 'Crateuas Med.', 'TLG1907': 'Cratippus Hist.', 'TLG4028': 'Stephanus Gramm.', 'TLG0610': 'Alcidamas Rhet.', 'TLG1282': 'Clytus Hist.', 'TLG2587': 'Ariston Phil.', 'TLG7000': 'Anthologia Graeca, AG', 'TLG0354': 'Zenodotus Trag.', 'TLG0748': 'Severus Iatrosophista Med.', 'TLG5016': 'Scholia In Callimachum', 'TLG0201': 'Isyllus Lyr.', 'TLG1597': 'Telauges Phil.', 'TLG0428': 'Cantharus Comic.', 'TLG1188': 'Aristocles Phil.', 'TLG2571': 'Hierocles Phil.', 'TLG0618': 'Antigoni Epistula', 'TLG1987': 'Theodorus Poeta', 'TLG1338': 'Dosiadas Hist.', 'TLG2865': 'Olympiodorus Diaconus Scr. Eccl.', 'TLG1555': 'Pancrates Epic.', 'TLG0634': 'Xenocrates Phil.', 'TLG1223': 'Bias Phil.', 'TLG2036': 'Dexippus Phil.', 'TLG1635': 'Protagoras Soph.', 'TLG0443': 'Diocles Comic.', 'TLG0635': 'Zeno Phil.', 'TLG4026': 'Anonymi In Aristotelis Artem Rhetoricam Rhet.', 'TLG1199': 'Asclepiades Gramm. et Hist.', 'TLG1751': 'Xanthus Hist.', 'TLG1496': 'Memnon Hist.', 'TLG4157': 'Joannes Rhet.', 'TLG0131': 'Archimelus Epigr.', 'TLG1785': 'Paramonus Comic.', 'TLG1305': 'Democritus Hist.', 'TLG2552': 'Critolaus Hist.', 'TLG1158': 'Apocalypsis Joannis', 'TLG0473': 'Machon Comic.', 'TLG2201': '[Ctesiphon] Hist.', 'TLG0314': 'Morsimus Trag.', 'TLG0283': 'Heraclides Ponticus Junior Gramm.', 'TLG2230': 'Boïdas Phil.', 'TLG1444': 'Ilias Parva', 'TLG1954': 'Heraclides Phil.', 'TLG0453': 'Epilycus Comic.', 'TLG1634': 'Prodicus Soph.', 'TLG0297': 'Lyrica Adespota (PMG)', 'TLG1257': 'Charinus Choliamb.', 'TLG0250': 'Euclides Comic. vel Iamb.', 'TLG1231': 'Bryson Phil.', 'TLG2341': 'Aristocritus Hist.', 'TLG1322': 'Diogenianus Phil.', 'TLG1316': 'Dinon Hist.', 'TLG0525': 'Pausanias Perieg.', 'TLG0313': 'Theognis Trag.', 'TLG4163': 'Telegonia', 'TLG1414': 'Heraclitus Phil.', 'TLG4094': 'Choricius Rhet. et Soph.', 'TLG2393': 'Andreas Hist.', 'TLG1491': 'Melanthius Hist.', 'TLG1681': 'Solonis Epistulae', 'TLG9012': 'Ignatius Biogr. et Poeta', 'TLG0643': 'Anonymus Londinensis Med.', 'TLG1143': 'Antiochus Phil.', 'TLG0454': 'Epinicus Comic.', 'TLG3063': 'Joannes Scylitzes Hist.', 'TLG4294': 'Lexicon Vindobonense', 'TLG1220': 'Batrachomyomachia', 'TLG0006': 'Euripides Trag.', 'TLG1848': 'Meletus Junior Trag.', 'TLG1599': 'Philo Mech.', 'TLG1551': 'Oracula Sibyllina', 'TLG2219': 'Amelesagoras Hist.', 'TLG2766': 'Eudocia Augusta Poeta', 'TLG1186': 'Aristobulus Judaeus Phil.', 'TLG4304': 'Glossae In Herodotum', 'TLG2680': 'Scythinus Epigr.', 'TLG3145': 'Joannes Anagnostes Hist. et Poeta', 'TLG4338': 'Theophrastus Alchem. et Poeta', 'TLG4326': 'Pappus Alchem.', 'TLG0082': 'Apollonius Dyscolus Gramm.', 'TLG1526': 'Neoptolemus Gramm.', 'TLG0038': 'Arcesilai Epistula', 'TLG0505': 'Sotades Comic.', 'TLG2035': 'Athanasius Theol.', 'TLG0355': 'Zopyrus Trag.', 'TLG1293': 'Crinis Phil.', 'TLG0576': 'Musaeus Epic.', 'TLG1374': 'Evangelium Secundum Hebraeos', 'TLG0663': 'Praecepta Salubria', 'TLG0373': 'Melanippides Lyr.', 'TLG1212': 'Atridarum Reditus', 'TLG0736': 'Stephanus Med.', 'TLG1398': 'Hegesippus Scr. Eccl.', 'TLG2386': 'Timonides Hist.', 'TLG1160': 'Apocalypsis Sophoniae', 'TLG1627': 'Polycrates Hist.', 'TLG1302': 'Demetrius Rhet.', 'TLG1867': 'Crito Hist.', 'TLG1558': 'Papias Scr. Eccl.', 'TLG1970': 'Silenus Hist.', 'TLG3045': 'Georgius Syncellus Chronogr.', 'TLG2417': 'Cineas Rhet.', 'TLG0093': 'Theophrastus Phil.', 'TLG0456': 'Euangelus Comic.', 'TLG1366': 'Evangelium Bartholomaei', 'TLG1486': 'Matron Parodius', 'TLG0401': 'Alexander Comic.', 'TLG0727': 'Joannes Med.', 'TLG1812': 'Demaratus Hist.', 'TLG1713': 'Themison Hist.', 'TLG0471': 'Lynceus Comic.', 'TLG0717': 'Hypsicles Astron. et Math.', 'TLG0633': 'Lysis Phil.', 'TLG0337': 'Python Trag.', 'TLG9022': 'Joannes Tzetzes Gramm. et Poeta', 'TLG0628': 'Gaius Musonius Rufus Phil.', 'TLG1210': 'Autolycus Astron.', 'TLG1446': 'Ion Eleg.', 'TLG1402': 'Hephaestion Gramm.', 'TLG9008': 'Macarius Chrysocephalus Paroemiogr.', 'TLG1439': 'Hermarchus Phil.', 'TLG0530': 'Pseudo-Galenus Med.', 'TLG1908': 'Daimachus Hist.', 'TLG4020': 'Elias Phil.', 'TLG0039': 'Mithridatis Epistula', 'TLG4076': 'Menander Protector Hist.', 'TLG2426': 'Hermaeus Hist.', 'TLG0318': 'Agathon Trag.', 'TLG2531': 'Metrophanes Hist.', 'TLG1344': 'Epica Adespota (CA)', 'TLG2611': 'Butas Eleg.', 'TLG1917': 'Demetrius Hist.', 'TLG0438': 'Damoxenus Comic.', 'TLG0239': 'Antimachus Eleg. et Epic.', 'TLG2185': 'Dionysius Μεταθέμενος Phil.', 'TLG0559': 'Heron Mech.', 'TLG1152': 'Apion Gramm.', 'TLG2693': 'Ptolemaeus III Euergetes I Epigr.', 'TLG0766': 'Alcmaeon Phil.', 'TLG2202': '[Menyllus] Hist.', 'TLG2030': 'Geographica Adespota (GGM)', 'TLG1430': 'Hieronymus Phil.', 'TLG1737': 'Titanomachia', 'TLG0232': 'Archilochus Eleg. et Iamb.', 'TLG0696': 'Alcmaeonis', 'TLG1353': 'Epitaphium Abercii', 'TLG1411': 'Heracliti Ephesii Epistulae', 'TLG1976': 'Metrodorus Hist.', 'TLG9007': 'Appendix Proverbiorum', 'TLG1580': 'Phaestus Epic.', 'TLG0097': 'Diogenianus Gramm.', 'TLG0494': 'Philyllius Comic.', 'TLG1547': 'Oedipodea', 'TLG0365': 'Apollodorus Lyr.', 'TLG2306': 'Xenomedes Hist.', 'TLG0639': 'Menecrates Med.', 'TLG0750': 'Heliodorus Trag.', 'TLG4290': 'Lexicon Artis Grammaticae', 'TLG0683': 'Aethiopis', 'TLG0427': 'Callippus Comic.', 'TLG0075': 'Periplus Ponti Euxini', 'TLG1483': 'Martyrium Et Ascensio Isaiae', 'TLG0691': 'Harpocrationis Epistula', 'TLG2598': 'Procopius Rhet. et Scr. Eccl.', 'TLG1552': 'Oratio Josephi', 'TLG1202': 'Athamas Phil.', 'TLG0652': 'Philostratus Junior Soph.', 'TLG2240': 'Hicetas Phil.', 'TLG1358': 'Eudoxus Astron.', 'TLG0081': 'Dionysius Halicarnassensis Hist. et Rhet.', 'TLG2601': 'Tiberius Rhet.', 'TLG0743': 'Nemesius Theol.', 'TLG4361': 'Apomasar Astrol.', 'TLG2604': 'Ulpianus Gramm. et Rhet.', 'TLG0382': 'Castorion Lyr.', 'TLG0028': 'Antiphon Orat.', 'TLG0008': 'Athenaeus Soph.', 'TLG0594': 'Alexander Rhet. et Soph.', 'TLG1193': 'Ariston Phil.', 'TLG2392': 'Artemon Hist.', 'TLG0402': 'Alexis Comic.', 'TLG0486': 'Pherecrates Comic.', 'TLG2050': 'Eunapius Hist. et Soph.', 'TLG5000': 'Concilia Oecumenica (ACO)', 'TLG0497': 'Plato Comic.', 'TLG4097': 'Etymologicum Genuinum', 'TLG0241': 'Aristoxenus Comic.', 'TLG4090': 'Cyrillus Theol.', 'TLG0845': 'Ctesias Hist. et Med.', 'TLG1021': 'Meropis', 'TLG2384': 'Hermias Hist.', 'TLG1817': 'Fragmenta Anonyma (PsVTGr)', 'TLG4100': 'Aphthonius Rhet.', 'TLG1512': 'Minyas', 'TLG1639': 'Pseudo-Auctores Hellenistae (PsVTGr)', 'TLG0654': 'Lucius Annaeus Cornutus Phil.', 'TLG2023': 'Iamblichus Phil.', 'TLG1364': 'Evangelium Aegyptium', 'TLG1389': 'Harpocration Gramm.', 'TLG2609': 'Asopodorus Iamb.', 'TLG1165': 'Apollodorus Mech.', 'TLG2396': 'Hyperochus Hist.', 'TLG0666': 'Adrianus Rhet. et Soph.', 'TLG0504': 'Sosipater Comic.', 'TLG2084': 'Basilius Med. et Scr. Eccl.', 'TLG0876': 'Phrynichus II Trag.', 'TLG1408': 'Heraclides Gramm.', 'TLG5048': 'Scholia In Clementem Alexandrinum', 'TLG1604': 'Phocylides Eleg. et Gnom.', 'TLG1269': 'Cleanthes Phil.', 'TLG2798': 'Pseudo-Dionysius Areopagita Scr. Eccl. et Theol.', 'TLG2536': 'Andron Geogr.', 'TLG2190': '[Clitonymus] Hist.', 'TLG0466': 'Heraclides Comic.', 'TLG1428': 'Hestiaeus Hist.', 'TLG2968': 'Monimus Phil.', 'TLG0359': 'Isidorus Scriptor Hymnorum', 'TLG0072': 'Anonymi Grammatici Gramm.', 'TLG1738': 'Tragica Adespota', 'TLG4303': 'Lexica In Opera Gregorii Nazianzeni', 'TLG0558': 'Hellenica', 'TLG1420': 'Hermias Iamb.', 'TLG1227': 'Blaesus Comic.', 'TLG0627': 'Hippocrates Med. et Corpus Hippocraticum', 'TLG0718': 'Aëtius Med.', 'TLG0058': 'Aeneas Tact.', 'TLG0543': 'Polybius Hist.', 'TLG1727': 'Theotimus Hist.', 'TLG0310': 'Carcinus Trag.', 'TLG1426': 'Herodes Atticus Soph.', 'TLG0421': 'Aristophon Comic.', 'TLG5035': 'Scholia In Platonem', 'TLG1696': 'Straton Phil.', 'TLG2133': 'Achilles Tatius Astron.', 'TLG0054': 'Theano Phil.', 'TLG1476': 'Mamercus Eleg.', 'TLG1682': 'Sopater Comic.', 'TLG0568': 'Antigonus Paradox.', 'TLG1757': 'Julius Epic.', 'TLG1797': 'Choliambica Adespota (ALG)', 'TLG0053': 'Phalaridis Epistulae', 'TLG0607': 'Aelius Theon Rhet.', 'TLG0066': 'Dicaearchus Phil.', 'TLG1211': 'Balagrus Hist.', 'TLG0339': 'Moschion Trag.', 'TLG0644': 'Aristophanes Gramm.', 'TLG4184': 'Dionysius Soph.', 'TLG0507': 'Straton Comic.', 'TLG1136': 'Anonymus Presbyter Scr. Eccl.', 'TLG2962': 'Petrus Scr. Eccl. et Theol.', 'TLG0687': 'Agaclytus Hist.', 'TLG2052': 'Horapollo Gramm.', 'TLG3177': 'Scriptor Incertus De Leone Armenio Hist.', 'TLG1559': 'Bucolicum', 'TLG1291': 'Creophylus Hist.', 'TLG1134': 'Anonymus Iamblichi Phil.', 'TLG0519': 'Xeno Comic.', 'TLG1166': 'Apollodorus Phil.', 'TLG1121': 'Anaximenis Milesii Epistulae', 'TLG0534': 'Callisthenes Hist.', 'TLG2203': '[Theophilus] Hist.', 'TLG1350': 'Epistula Ad Diognetum', 'TLG1294': 'Critolaus Phil.', 'TLG1505': 'Menesthenes Hist.', 'TLG1585': 'Pherecydis Epistula', 'TLG2112': 'Amphilochius Scr. Eccl.', 'TLG0433': 'Crates Comic.', 'TLG1441': 'Iamblichus Scr. Erot.', 'TLG1711': 'Thearidas Phil.', 'TLG5017': 'Scholia In Demosthenem', 'TLG0372': 'Praxilla Lyr.', 'TLG2634': 'Pamphilus Poeta', 'TLG1782': 'Augeas Comic.', 'TLG1475': 'Maiistas Epic.', 'TLG0346': 'Pompeius Macer Trag.', 'TLG1328': 'Dionysius Hist.', 'TLG1278': 'Clitarchus Gnom.', 'TLG1230': 'Brotinus Phil.', 'TLG0614': 'Valerius Babrius Scr. Fab.', 'TLG0444': 'Diodorus Comic.', 'TLG1388': 'Harmodius Hist.', 'TLG1381': 'Fragmentum Synodicae Epistulae Concilii Caesariensis', 'TLG0648': 'Onasander Tact.', 'TLG1176': 'Archytas Epic.', 'TLG1836': 'Anonymi Aulodia', 'TLG4286': 'Lexica Syntactica', 'TLG4088': 'Anthemius Math. et Mech.', 'TLG1584': 'Pherecydes Hist.', 'TLG0690': 'Erasistratus Med.', 'TLG1813': 'Anonymus De Plantis Aegyptiis', 'TLG2691': '[Musaeus] Phil.', 'TLG0323': 'Antiphon Trag.', 'TLG0275': 'Peirazomene', 'TLG1704': 'Teucer Hist.', 'TLG1452': 'Juba II Rex Mauretaniae Hist.', 'TLG1756': 'Demetrius Gramm.', 'TLG0083': 'Dionysius Geogr.', 'TLG0332': 'Cleaenetus Trag.', 'TLG2194': '[Aristides] Hist.', 'TLG4032': 'Anonymi In Aristotelis Librum Primum Analyticorum Posteriorum Commentarium', 'TLG0084': 'Dionysius Perieg.', 'TLG3088': 'Nicephorus Bryennius Hist.', 'TLG2235': 'Hippocrates Math.', 'TLG2371': 'Chronicon Paschale', 'TLG1390': 'Hecataeus Hist.', 'TLG0731': 'Adamantius Judaeus Med.', 'TLG0294': 'Corinna Lyr.', 'TLG1623': 'Polycharmus Hist.', 'TLG2160': 'Pyrrhus Hist.', 'TLG1637': 'Protevangelium Jacobi', 'TLG0324': 'Patrocles Trag.', 'TLG2004': 'Amelii Epistula', 'TLG0366': 'Lasus Lyr.', 'TLG0033': 'Pindarus Lyr.', 'TLG0060': 'Diodorus Siculus Hist.', 'TLG2626': 'Hipparchus Parodius', 'TLG2171': 'Stesiclides Hist.', 'TLG0317': 'Acta Joannis', 'TLG0096': 'Aesopus Scr. Fab. et Aesopica', 'TLG1509': 'Milon Phil.', 'TLG2039': 'Diophantus Math.', 'TLG0441': 'Demonicus Comic.', 'TLG1588': 'Philicus Lyr.', 'TLG1271': 'Clemens Romanus Theol. et Clementina', 'TLG4015': 'Joannes Philoponus Phil.', 'TLG4339': 'Archelaus Alchem. et Poeta', 'TLG0389': 'Acta Petri', 'TLG5037': 'Scholia In Sophoclem', 'TLG4282': 'Anonymus Manichaeus Biogr.', 'TLG1819': 'Pseudo-Demosthenes Epigr.', 'TLG1150': 'Aphareus Rhet.', 'TLG2649': 'Amyntas Epigr.', 'TLG1276': 'Clidemus Hist.', 'TLG2633': 'Niceratus Epic.', 'TLG2770': 'Callinicus Biogr.', 'TLG0018': 'Philo Judaeus Phil.', 'TLG4019': 'Olympiodorus Phil.', 'TLG2187': 'Posidonius Hist.', 'TLG2651': 'Artemidorus Eleg.', 'TLG2237': 'Theodorus Math.', 'TLG2511': 'Demetrius Hist.', 'TLG2578': 'Joannes Gramm. et Poeta', 'TLG1479': 'Marci Aurelii Epistula', 'TLG0234': 'Elegiaca Adespota (IEG)', 'TLG2461': 'Uranius Hist.', 'TLG4289': 'Lexica Segueriana', 'TLG0036': 'Bion Bucol.', 'TLG4327': 'Joannes Archiereus Alchem.', 'TLG1795': 'Chaerion Comic.', 'TLG2724': 'Ammonius Scr. Eccl.', 'TLG0397': 'Pronomus Lyr.', 'TLG1550': 'Oracula Chaldaica', 'TLG0213': 'Hermesianax Eleg.', 'TLG2694': 'Sostratus Poeta', 'TLG0309': 'Achaeus Trag.', 'TLG1260': '[Chersias] Epic.', 'TLG1149': 'Antonini Pii Imperatoris Epistula', 'TLG0251': 'Euenus Eleg.', 'TLG0034': 'Lycurgus Orat.', 'TLG3047': 'Michael Glycas Astrol. et Hist.', 'TLG5046': 'Scholia In Theonem Rhetorem', 'TLG4138': 'Ephraem Syrus Theol.', 'TLG4101': 'Etymologicum Parvum', 'TLG2168': 'Apollophanes Phil.', 'TLG0099': 'Strabo Geogr.', 'TLG2620': 'Dionysius Iambus Gramm. et Poeta', 'TLG3115': 'Symeon Metaphrastes Biogr. et Hist.', 'TLG0464': 'Hegesippus Comic.', 'TLG0286': 'Carmen Astrologicum', 'TLG2545': 'Gaius Acilius Hist. et Phil.', 'TLG4239': 'Severus Soph.', 'TLG4167': 'Leontius Mech.', 'TLG2046': 'Quintus Epic.', 'TLG0211': 'Simias Gramm.', 'TLG1967': 'Leschides Epic.', 'TLG2950': 'Adamantius Theol.', 'TLG1395': '[Hegesinus] Epic.', 'TLG1129': 'Anonymi De Barbarismo Et Soloecismo Gramm.', 'TLG2109': 'Pseudo-Macarius Scr. Eccl.', 'TLG2650': 'Arrianus Epic.', 'TLG5026': 'Scholia In Homerum', 'TLG1617': 'Marcus Antonius Polemon Soph.', 'TLG1470': 'Lycus Hist.', 'TLG0455': 'Eriphus Comic.', 'TLG1816': 'Epica Adespota (GDRK)', 'TLG1477': 'Manetho Hist.', 'TLG0325': 'Astydamas Trag.', 'TLG1397': 'Hegesippus Hist.', 'TLG1226': 'Biton Mech.', 'TLG2018': 'Eusebius Scr. Eccl. et Theol.', 'TLG0706': 'Philo Med.', 'TLG0263': 'Solon Nomographus et Poeta', 'TLG0601': 'Zaleucus Nomographus Phil.', 'TLG2364': 'Zeno Hist.', 'TLG0403': 'Amipsias Comic.'}
#TLG_WORKS_INDEX = {'TLG2153': {'works': ['TXT-001'], 'name': 'Bion Math. et Phil.'}, 'TLG0375': {'works': ['TXT-001', 'TXT-002'], 'name': 'Cinesias Lyr.'}, 'TLG2606': {'works': ['TXT-001'], 'name': 'Agathyllus Eleg.'}, 'TLG3020': {'works': ['TXT-001', 'TXT-002'], 'name': 'Joannes Cinnamus Gramm. et Hist.'}, 'TLG0540': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036'], 'name': 'Lysias Orat.'}, 'TLG0220': {'works': ['TXT-001', 'TXT-002'], 'name': 'Moero Epic.'}, 'TLG1804': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Ninus'}, 'TLG1419': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Hermas Scr. Eccl., Pastor Hermae'}, 'TLG1263': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Choerilus Epic.'}, 'TLG0324': {'works': ['TXT-001'], 'name': 'Patrocles Trag.'}, 'TLG4039': {'works': ['TXT-001', 'TXT-002'], 'name': 'Paulus Silentiarius Poeta'}, 'TLG0230': {'works': ['TXT-001'], 'name': 'Lyrica Adespota (CA)'}, 'TLG1178': {'works': ['TXT-001'], 'name': 'Aresas Phil.'}, 'TLG2048': {'works': ['TXT-001'], 'name': 'Salaminius Hermias Sozomenus Scr. Eccl.'}, 'TLG4289': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Lexica Segueriana'}, 'TLG1272': {'works': ['TXT-001'], 'name': 'Cleomedes Astron.'}, 'TLG3120': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Patria Constantinopoleos'}, 'TLG0050': {'works': ['TXT-001'], 'name': 'Ptolemaei II Philadelphi Et Eleazari Epistulae'}, 'TLG0333': {'works': ['TXT-001'], 'name': 'Timocles Trag.'}, 'TLG4081': {'works': ['TXT-001'], 'name': 'Colluthus Epic.'}, 'TLG4089': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-016', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035'], 'name': 'Theodoretus Scr. Eccl. et Theol.'}, 'TLG2244': {'works': ['TXT-001'], 'name': 'Damon et Phintias Phil.'}, 'TLG1305': {'works': ['TXT-003'], 'name': 'Democritus Hist.'}, 'TLG1645': {'works': ['TXT-003'], 'name': 'Ptolemaeus VIII Euergetes II Hist.'}, 'TLG0146': {'works': ['TXT-001', 'TXT-002'], 'name': 'Boethus Epigr.'}, 'TLG0282': {'works': ['TXT-001'], 'name': 'Anonymus De Viribus Herbarum'}, 'TLG4323': {'works': ['TXT-001'], 'name': 'Eugenius Alchem.'}, 'TLG1016': {'works': ['TXT-001'], 'name': 'Ostanes Magus Alchem.'}, 'TLG2178': {'works': ['TXT-001', 'TXT-002', 'TXT-004'], 'name': 'Cassius Longinus Phil. et Rhet.'}, 'TLG0520': {'works': ['TXT-001'], 'name': 'Arcesilaus Comic.'}, 'TLG2171': {'works': ['TXT-002'], 'name': 'Stesiclides Hist.'}, 'TLG2226': {'works': ['TXT-001'], 'name': 'Iccus Phil.'}, 'TLG1177': {'works': ['TXT-001'], 'name': 'Pseudo-Archytas Phil.'}, 'TLG2121': {'works': ['TXT-001'], 'name': 'Dioscorus Poeta'}, 'TLG3086': {'works': ['TXT-001', 'TXT-002', 'TXT-012'], 'name': 'Nicephorus I Scr. Eccl., Hist. et Theol.'}, 'TLG0360': {'works': ['TXT-002'], 'name': 'Armenidas Hist.'}, 'TLG2059': {'works': ['TXT-001'], 'name': 'Alexander Theol.'}, 'TLG1105': {'works': ['TXT-001'], 'name': 'Timaeus Praxidas Astrol.'}, 'TLG2084': {'works': ['TXT-001'], 'name': 'Basilius Med. et Scr. Eccl.'}, 'TLG1141': {'works': ['TXT-001', 'TXT-002'], 'name': 'Antimachus Epic.'}, 'TLG2652': {'works': ['TXT-001'], 'name': 'Diodorus Eleg.'}, 'TLG0262': {'works': ['TXT-001'], 'name': 'Socrates Phil.'}, 'TLG0303': {'works': ['TXT-001'], 'name': 'Phrynichus Trag.'}, 'TLG0695': {'works': ['TXT-003'], 'name': 'Alcimus Hist.'}, 'TLG2334': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nausiphanes Phil.'}, 'TLG1976': {'works': ['TXT-003'], 'name': 'Metrodorus Hist.'}, 'TLG0438': {'works': ['TXT-001', 'TXT-002'], 'name': 'Damoxenus Comic.'}, 'TLG2014': {'works': ['TXT-001'], 'name': 'Acta Phileae'}, 'TLG0420': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aristonymus Comic.'}, 'TLG0608': {'works': ['TXT-001', 'TXT-002'], 'name': 'Satyrus Biogr.'}, 'TLG0198': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hedylus Epigr.'}, 'TLG0383': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Alcaeus Lyr.'}, 'TLG0621': {'works': ['TXT-001'], 'name': '[Ath]enodorus Trag.'}, 'TLG1972': {'works': ['TXT-002'], 'name': 'Eumachus Hist.'}, 'TLG1562': {'works': ['TXT-001', 'TXT-002'], 'name': 'Parmenides Poet. Phil.'}, 'TLG1771': {'works': ['TXT-001'], 'name': 'Montanus et Montanistae Theol.'}, 'TLG0574': {'works': ['TXT-002', 'TXT-003'], 'name': 'Lysimachus Hist.'}, 'TLG2175': {'works': ['TXT-002'], 'name': 'Autocharis Hist.'}, 'TLG2466': {'works': ['TXT-003'], 'name': 'Dionysius Hist.'}, 'TLG1292': {'works': ['TXT-001'], 'name': 'Crito Phil.'}, 'TLG0297': {'works': ['TXT-001'], 'name': 'Lyrica Adespota (PMG)'}, 'TLG2565': {'works': ['TXT-002'], 'name': 'Mnesimachus Hist.'}, 'TLG1251': {'works': ['TXT-001', 'TXT-002'], 'name': 'Chamaeleon Phil.'}, 'TLG4187': {'works': ['TXT-006', 'TXT-008', 'TXT-009'], 'name': 'Leo Magentinus Phil.'}, 'TLG1369': {'works': ['TXT-001'], 'name': 'Evangelium Mariae'}, 'TLG2714': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Theodorus Studites Scr. Eccl. et Theol.'}, 'TLG0387': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sapphus vel Alcaei Fragmenta'}, 'TLG2119': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Christodorus Epic.'}, 'TLG1576': {'works': ['TXT-001'], 'name': 'Phaedimus Epic.'}, 'TLG0876': {'works': ['TXT-001'], 'name': 'Phrynichus II Trag.'}, 'TLG2612': {'works': ['TXT-001'], 'name': 'Caecalus (?) Epic.'}, 'TLG2583': {'works': ['TXT-001'], 'name': 'Manetho Astrol.'}, 'TLG1323': {'works': ['TXT-001'], 'name': 'Aelius Dionysius Attic.'}, 'TLG2602': {'works': ['TXT-001'], 'name': 'Timaeus Sophista Gramm.'}, 'TLG1503': {'works': ['TXT-002'], 'name': 'Menecrates Hist.'}, 'TLG2556': {'works': ['TXT-002'], 'name': '[Alexarchus] Hist.'}, 'TLG0638': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-009'], 'name': 'Flavius Philostratus Soph.'}, 'TLG2117': {'works': ['TXT-001'], 'name': 'Anonymus De Metrorum Ratione'}, 'TLG2314': {'works': ['TXT-001'], 'name': 'Diogenes Phil.'}, 'TLG1357': {'works': ['TXT-001'], 'name': 'Eudemus Phil.'}, 'TLG2724': {'works': ['TXT-003'], 'name': 'Ammonius Scr. Eccl.'}, 'TLG0308': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009'], 'name': 'Ion Phil. et Poeta'}, 'TLG2042': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-077', 'TXT-078', 'TXT-079', 'TXT-084', 'TXT-086'], 'name': 'Origenes Theol.'}, 'TLG0586': {'works': ['TXT-001', 'TXT-002'], 'name': 'Polemon Perieg.'}, 'TLG1373': {'works': ['TXT-001'], 'name': 'Evangelium Philippi'}, 'TLG3018': {'works': ['TXT-001'], 'name': 'Georgius Cedrenus Chronogr.'}, 'TLG0432': {'works': ['TXT-001', 'TXT-002'], 'name': 'Clearchus Comic.'}, 'TLG0051': {'works': ['TXT-001'], 'name': 'Melissa Phil.'}, 'TLG1291': {'works': ['TXT-002'], 'name': 'Creophylus Hist.'}, 'TLG0583': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Philochorus Hist.'}, 'TLG1222': {'works': ['TXT-003'], 'name': 'Beros(s)us Astrol. et Hist.'}, 'TLG0414': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Apollophanes Comic.'}, 'TLG4171': {'works': ['TXT-001'], 'name': 'Anonymi In Oppiani Opera'}, 'TLG1693': {'works': ['TXT-001'], 'name': 'Sphaerus Phil.'}, 'TLG1409': {'works': ['TXT-001'], 'name': 'Heraclides Ponticus Phil.'}, 'TLG0351': {'works': ['TXT-001'], 'name': '[Hippothoon] Trag.'}, 'TLG0276': {'works': ['TXT-001'], 'name': 'Cantus Lugubris'}, 'TLG2797': {'works': ['TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053'], 'name': 'Hesychius Scr. Eccl.'}, 'TLG2458': {'works': ['TXT-002'], 'name': 'Marcellus Hist.'}, 'TLG1867': {'works': ['TXT-003'], 'name': 'Crito Hist.'}, 'TLG1606': {'works': ['TXT-001'], 'name': 'Phoenix Iamb.'}, 'TLG1868': {'works': ['TXT-003'], 'name': 'Damastes Hist.'}, 'TLG0649': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Lesbonax Rhet.'}, 'TLG2018': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039'], 'name': 'Eusebius Scr. Eccl. et Theol.'}, 'TLG1420': {'works': ['TXT-001'], 'name': 'Hermias Iamb.'}, 'TLG1438': {'works': ['TXT-003'], 'name': 'Hippys Hist.'}, 'TLG0716': {'works': ['TXT-001', 'TXT-002'], 'name': 'Erotianus Gramm. et Med.'}, 'TLG0082': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Apollonius Dyscolus Gramm.'}, 'TLG1484': {'works': ['TXT-001'], 'name': 'Martyrium Polycarpi'}, 'TLG1388': {'works': ['TXT-002'], 'name': 'Harmodius Hist.'}, 'TLG0125': {'works': ['TXT-001'], 'name': 'Zenonis Epistula'}, 'TLG4117': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024'], 'name': 'Eustathius Scr. Eccl. et Theol.'}, 'TLG1526': {'works': ['TXT-001'], 'name': 'Neoptolemus Gramm.'}, 'TLG0713': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anaxagoras Phil.'}, 'TLG2586': {'works': ['TXT-001', 'TXT-002'], 'name': 'Menander Rhet.'}, 'TLG1152': {'works': ['TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Apion Gramm.'}, 'TLG1786': {'works': ['TXT-001'], 'name': 'Sogenes Comic.'}, 'TLG0731': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Adamantius Judaeus Med.'}, 'TLG5039': {'works': ['TXT-001'], 'name': 'Scholia In Thucydidem'}, 'TLG0510': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Teleclides Comic.'}, 'TLG2273': {'works': ['TXT-002'], 'name': 'Damon Hist.'}, 'TLG2009': {'works': ['TXT-001'], 'name': 'Martyrium Marini'}, 'TLG1680': {'works': ['TXT-001'], 'name': 'Sodamus Eleg.'}, 'TLG0448': {'works': ['TXT-001', 'TXT-002'], 'name': 'Dromo Comic.'}, 'TLG1293': {'works': ['TXT-001'], 'name': 'Crinis Phil.'}, 'TLG4082': {'works': ['TXT-001'], 'name': 'Musaeus Grammaticus Epic.'}, 'TLG1832': {'works': ['TXT-001', 'TXT-002'], 'name': 'Acesander Hist.'}, 'TLG2157': {'works': ['TXT-003'], 'name': 'Magnus Hist.'}, 'TLG2600': {'works': ['TXT-001', 'TXT-002'], 'name': 'Simon Scriptor De Re Equestri'}, 'TLG0889': {'works': ['TXT-001'], 'name': 'Timesitheus Trag.'}, 'TLG1306': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Bolus Med. et Phil.'}, 'TLG1213': {'works': ['TXT-001'], 'name': 'Julia Balbilla Lyr.'}, 'TLG0043': {'works': ['TXT-001'], 'name': 'Amasis Epistulae'}, 'TLG1723': {'works': ['TXT-001'], 'name': 'Theolytus Epic.'}, 'TLG7051': {'works': ['TXT-001'], 'name': 'Doctrina Patrum'}, 'TLG2203': {'works': ['TXT-002'], 'name': '[Theophilus] Hist.'}, 'TLG1304': {'works': ['TXT-001', 'TXT-002'], 'name': 'Democritus Phil.'}, 'TLG0088': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Aristoxenus Mus.'}, 'TLG1709': {'works': ['TXT-003'], 'name': 'Theagenes Hist.'}, 'TLG2816': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Joannes Gramm. et Theol.'}, 'TLG0656': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Dioscorides Pedanius Med.'}, 'TLG1568': {'works': ['TXT-002'], 'name': 'Parthax Hist.'}, 'TLG0361': {'works': ['TXT-001'], 'name': 'Cleonides Mus.'}, 'TLG2580': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Joannes Laurentius Lydus Hist.'}, 'TLG1688': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sostratus Gramm.'}, 'TLG1534': {'works': ['TXT-002'], 'name': 'Nicocles Hist.'}, 'TLG1308': {'works': ['TXT-001', 'TXT-003'], 'name': 'Demosthenes Epic.'}, 'TLG0611': {'works': ['TXT-001'], 'name': 'Theodorus Trag.'}, 'TLG4086': {'works': ['TXT-001', 'TXT-002'], 'name': '[Agathodaemon] Alchem.'}, 'TLG1664': {'works': ['TXT-001'], 'name': 'Seniores Alexandrini Scr. Eccl.'}, 'TLG1162': {'works': ['TXT-002'], 'name': 'Apollas Hist.'}, 'TLG5048': {'works': ['TXT-001'], 'name': 'Scholia In Clementem Alexandrinum'}, 'TLG0423': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Autocrates Comic.'}, 'TLG0724': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Stephanus Med. et Phil.'}, 'TLG0419': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Aristomenes Comic.'}, 'TLG4327': {'works': ['TXT-001'], 'name': 'Joannes Archiereus Alchem.'}, 'TLG0382': {'works': ['TXT-001', 'TXT-002'], 'name': 'Castorion Lyr.'}, 'TLG1571': {'works': ['TXT-001'], 'name': 'Pempelus Phil.'}, 'TLG0487': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009'], 'name': 'Philemon Comic.'}, 'TLG1819': {'works': ['TXT-001'], 'name': 'Pseudo-Demosthenes Epigr.'}, 'TLG0572': {'works': ['TXT-001'], 'name': 'Gaius Scr. Eccl.'}, 'TLG2967': {'works': ['TXT-001'], 'name': 'Theodorus Heracleensis vel Theodorus Mopsuestenus Scr. Eccl.'}, 'TLG0598': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024'], 'name': 'Rhetorica Anonyma'}, 'TLG1617': {'works': ['TXT-001', 'TXT-002'], 'name': 'Marcus Antonius Polemon Soph.'}, 'TLG1493': {'works': ['TXT-001'], 'name': 'Melinno Lyr.'}, 'TLG0627': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057'], 'name': 'Hippocrates Med. et Corpus Hippocraticum'}, 'TLG1179': {'works': ['TXT-001'], 'name': 'Arimnestus Phil.'}, 'TLG1667': {'works': ['TXT-001', 'TXT-002', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Septem Sapientes Phil.'}, 'TLG1156': {'works': ['TXT-001'], 'name': 'Apocalypsis Eliae'}, 'TLG1381': {'works': ['TXT-001'], 'name': 'Fragmentum Synodicae Epistulae Concilii Caesariensis'}, 'TLG1772': {'works': ['TXT-001'], 'name': 'Paraleipomena Jeremiou'}, 'TLG0015': {'works': ['TXT-001'], 'name': 'Herodianus Hist.'}, 'TLG1523': {'works': ['TXT-003'], 'name': 'Myron Hist.'}, 'TLG1341': {'works': ['TXT-001', 'TXT-002'], 'name': 'Ecphantus Phil.'}, 'TLG0607': {'works': ['TXT-001'], 'name': 'Aelius Theon Rhet.'}, 'TLG1595': {'works': ['TXT-107'], 'name': 'Philodemus Phil.'}, 'TLG2969': {'works': ['TXT-001'], 'name': 'Demonax Phil.'}, 'TLG0493': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philostephanus Comic.'}, 'TLG1464': {'works': ['TXT-001'], 'name': 'Liber Jubilaeorum'}, 'TLG0603': {'works': ['TXT-001'], 'name': 'Silenus Trag.'}, 'TLG2619': {'works': ['TXT-001'], 'name': 'Dionysius Epic.'}, 'TLG0544': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sextus Empiricus Phil.'}, 'TLG0293': {'works': ['TXT-001', 'TXT-002'], 'name': 'Ibycus Lyr.'}, 'TLG1813': {'works': ['TXT-001'], 'name': 'Anonymus De Plantis Aegyptiis'}, 'TLG2003': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020'], 'name': 'Flavius Claudius Julianus Imperator Phil., Julian the Apostate'}, 'TLG1249': {'works': ['TXT-003'], 'name': 'Cephalion Hist. et Rhet.'}, 'TLG5034': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Scholia In Pindarum'}, 'TLG1508': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Metrodorus Phil.'}, 'TLG1626': {'works': ['TXT-001'], 'name': 'Polycrates Scr. Eccl.'}, 'TLG2601': {'works': ['TXT-001'], 'name': 'Tiberius Rhet.'}, 'TLG0671': {'works': ['TXT-001'], 'name': 'Philumenus Med.'}, 'TLG0723': {'works': ['TXT-001', 'TXT-002'], 'name': 'Leo Phil.'}, 'TLG0240': {'works': ['TXT-001'], 'name': 'Hermolochus Lyr.'}, 'TLG4238': {'works': ['TXT-001'], 'name': 'Athanasius Soph.'}, 'TLG4102': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046'], 'name': 'Catenae (Novum Testamentum)'}, 'TLG0470': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Leuco Comic.'}, 'TLG1406': {'works': ['TXT-003'], 'name': 'Heraclides Hist.'}, 'TLG1466': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Lollianus Scr. Erot.'}, 'TLG1471': {'works': ['TXT-001'], 'name': 'Lyrica Adespota (SLG)'}, 'TLG2219': {'works': ['TXT-003'], 'name': 'Amelesagoras Hist.'}, 'TLG1648': {'works': ['TXT-002'], 'name': 'Pyrgion Hist.'}, 'TLG3094': {'works': ['TXT-001'], 'name': 'Nicetas Choniates Hist., Scr. Eccl. et Rhet.'}, 'TLG1875': {'works': ['TXT-002'], 'name': 'Aristodemus Hist. et Myth.'}, 'TLG0449': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Ecphantides Comic.'}, 'TLG1545': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Ocellus Phil.'}, 'TLG0676': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aglaïs Poet. Med.'}, 'TLG2227': {'works': ['TXT-001'], 'name': 'Paron Phil.'}, 'TLG0036': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Bion Bucol.'}, 'TLG4288': {'works': ['TXT-001'], 'name': 'Lexicon αἱμωδεῖν'}, 'TLG4091': {'works': ['TXT-001'], 'name': 'Callistratus Soph.'}, 'TLG1912': {'works': ['TXT-004'], 'name': 'Euphantus Phil.'}, 'TLG2160': {'works': ['TXT-002'], 'name': 'Pyrrhus Hist.'}, 'TLG0377': {'works': ['TXT-001', 'TXT-002'], 'name': 'Telestes Lyr.'}, 'TLG0736': {'works': ['TXT-001'], 'name': 'Stephanus Med.'}, 'TLG2033': {'works': ['TXT-001', 'TXT-002', 'TXT-006', 'TXT-007', 'TXT-009'], 'name': 'Theon Math.'}, 'TLG0430': {'works': ['TXT-001', 'TXT-002'], 'name': 'Chariclides Comic.'}, 'TLG1431': {'works': ['TXT-002', 'TXT-003'], 'name': 'Hipparchus Astron. et Geogr.'}, 'TLG1310': {'works': ['TXT-002', 'TXT-003'], 'name': 'Dictys Hist.'}, 'TLG0095': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hermodorus Phil.'}, 'TLG2681': {'works': ['TXT-001'], 'name': 'Diodorus Phil.'}, 'TLG2631': {'works': ['TXT-001'], 'name': 'Menophilus Poeta'}, 'TLG2460': {'works': ['TXT-002'], 'name': 'Glaucus Hist.'}, 'TLG0042': {'works': ['TXT-001'], 'name': 'Alexandri Magni Epistulae'}, 'TLG2011': {'works': ['TXT-001'], 'name': 'Martyrium Agapae, Irenae, Chionae Et Sodalium'}, 'TLG1204': {'works': ['TXT-001'], 'name': 'Athenaeus Mech.'}, 'TLG1437': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hippon Phil.'}, 'TLG1541': {'works': ['TXT-001'], 'name': 'Nostoi'}, 'TLG0519': {'works': ['TXT-001', 'TXT-002'], 'name': 'Xeno Comic.'}, 'TLG1322': {'works': ['TXT-001'], 'name': 'Diogenianus Phil.'}, 'TLG0698': {'works': ['TXT-002'], 'name': 'Alexander Rhet.'}, 'TLG1580': {'works': ['TXT-001', 'TXT-003'], 'name': 'Phaestus Epic.'}, 'TLG2639': {'works': ['TXT-001'], 'name': 'Posidonius Epic.'}, 'TLG1425': {'works': ['TXT-001'], 'name': 'Hermonax Epic.'}, 'TLG0219': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Rhianus Epic.'}, 'TLG0558': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Hellenica'}, 'TLG2613': {'works': ['TXT-001'], 'name': 'Callimachus Junior Epic.'}, 'TLG1343': {'works': ['TXT-002'], 'name': 'Eparchides Hist.'}, 'TLG2041': {'works': ['TXT-001', 'TXT-004', 'TXT-005'], 'name': 'Marcellus Theol.'}, 'TLG4003': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Marcianus Geogr.'}, 'TLG1637': {'works': ['TXT-001'], 'name': 'Protevangelium Jacobi'}, 'TLG0395': {'works': ['TXT-001', 'TXT-002'], 'name': 'Diophantus Comic.'}, 'TLG0292': {'works': ['TXT-001', 'TXT-002'], 'name': 'Stesichorus Lyr.'}, 'TLG0742': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018'], 'name': 'Hymni Anonymi'}, 'TLG0252': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Hermippus Comic.'}, 'TLG2232': {'works': ['TXT-001', 'TXT-002'], 'name': 'Damon Mus.'}, 'TLG2218': {'works': ['TXT-001'], 'name': 'Calliphon et Democedes Med. et Phil.'}, 'TLG0409': {'works': ['TXT-001', 'TXT-002'], 'name': 'Antidotus Comic.'}, 'TLG0744': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Alexander Med.'}, 'TLG0476': {'works': ['TXT-001', 'TXT-002'], 'name': 'Mnesimachus Comic.'}, 'TLG1602': {'works': ['TXT-001'], 'name': 'Philoxenus Gramm.'}, 'TLG1746': {'works': ['TXT-001'], 'name': 'Valentinus Gnost.'}, 'TLG0020': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Hesiodus Epic.'}, 'TLG2546': {'works': ['TXT-003'], 'name': 'Publius Rutilius Rufus Hist.'}, 'TLG4319': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068'], 'name': 'Zosimus Alchem.'}, 'TLG1611': {'works': ['TXT-001'], 'name': 'Tyrannion Junior Gramm.'}, 'TLG2212': {'works': ['TXT-002'], 'name': 'Lyceas Hist.'}, 'TLG3170': {'works': ['TXT-001'], 'name': 'Ephraem Hist. et Poeta'}, 'TLG0041': {'works': ['TXT-001'], 'name': 'Chionis Epistulae'}, 'TLG2346': {'works': ['TXT-002'], 'name': 'Andriscus Hist.'}, 'TLG3144': {'works': ['TXT-001'], 'name': 'Joannes Cananus Hist.'}, 'TLG2742': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Apophthegmata'}, 'TLG0542': {'works': ['TXT-001'], 'name': 'Julius Pollux Gramm.'}, 'TLG0686': {'works': ['TXT-003'], 'name': 'Aethlius Hist.'}, 'TLG0612': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Dio Chrysostomus Soph.'}, 'TLG1303': {'works': ['TXT-003'], 'name': 'Demochares Hist. et Orat.'}, 'TLG0089': {'works': ['TXT-001'], 'name': 'Praxiphanes Phil.'}, 'TLG0079': {'works': ['TXT-002'], 'name': 'Menippus Geogr.'}, 'TLG0221': {'works': ['TXT-001', 'TXT-002', 'TXT-004'], 'name': 'Euphorion Epic.'}, 'TLG2618': {'works': ['TXT-001'], 'name': 'Didymarchus Poeta'}, 'TLG2559': {'works': ['TXT-002'], 'name': '[Chrysippus] Hist.'}, 'TLG0622': {'works': ['TXT-001'], 'name': 'Cleobuli Epistula'}, 'TLG3064': {'works': ['TXT-002'], 'name': 'Scylitzes Continuatus'}, 'TLG4292': {'works': ['TXT-001', 'TXT-002'], 'name': 'Lexicon De Atticis Nominibus'}, 'TLG0335': {'works': ['TXT-001'], 'name': 'Philiscus Trag.'}, 'TLG1427': {'works': ['TXT-003'], 'name': 'Herodorus Hist.'}, 'TLG1223': {'works': ['TXT-001', 'TXT-002'], 'name': 'Bias Phil.'}, 'TLG0039': {'works': ['TXT-001'], 'name': 'Mithridatis Epistula'}, 'TLG4339': {'works': ['TXT-001'], 'name': 'Archelaus Alchem. et Poeta'}, 'TLG0766': {'works': ['TXT-001', 'TXT-002'], 'name': 'Alcmaeon Phil.'}, 'TLG2695': {'works': ['TXT-001', 'TXT-002'], 'name': 'Vitae Aristotelis'}, 'TLG0320': {'works': ['TXT-001'], 'name': 'Diogenes Trag.'}, 'TLG2966': {'works': ['TXT-002'], 'name': 'Phileas Scr. Eccl.'}, 'TLG2037': {'works': ['TXT-001'], 'name': 'Joannes Stobaeus Anthologus'}, 'TLG1183': {'works': ['TXT-001'], 'name': 'Aristeae Epistula'}, 'TLG1224': {'works': ['TXT-001', 'TXT-002'], 'name': 'Bion Phil.'}, 'TLG0222': {'works': ['TXT-001', 'TXT-009', 'TXT-010', 'TXT-013', 'TXT-015'], 'name': 'Eratosthenes et Eratosthenica Philol.'}, 'TLG2286': {'works': ['TXT-001'], 'name': 'Cercops Phil.'}, 'TLG0363': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-014'], 'name': 'Claudius Ptolemaeus Math.'}, 'TLG0249': {'works': ['TXT-001'], 'name': 'Echembrotus Eleg. et Lyr.'}, 'TLG1521': {'works': ['TXT-001', 'TXT-002'], 'name': 'Vita Et Sententiae Secundi'}, 'TLG1639': {'works': ['TXT-001'], 'name': 'Pseudo-Auctores Hellenistae (PsVTGr)'}, 'TLG0131': {'works': ['TXT-001', 'TXT-002'], 'name': 'Archimelus Epigr.'}, 'TLG2525': {'works': ['TXT-003'], 'name': 'Laetus Hist.'}, 'TLG0720': {'works': ['TXT-001'], 'name': 'Harmodius Trag.'}, 'TLG1383': {'works': ['TXT-001', 'TXT-002', 'TXT-005'], 'name': 'Geminus Astron.'}, 'TLG0534': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Callisthenes Hist.'}, 'TLG1542': {'works': ['TXT-001'], 'name': 'Numenius Phil.'}, 'TLG0450': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Ephippus Comic.'}, 'TLG1636': {'works': ['TXT-003'], 'name': 'Protagorides Hist.'}, 'TLG0279': {'works': ['TXT-001'], 'name': 'Discipulorum Cantiuncula'}, 'TLG0202': {'works': ['TXT-001'], 'name': 'Mace(donius) Lyr.'}, 'TLG1682': {'works': ['TXT-001'], 'name': 'Sopater Comic.'}, 'TLG0081': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018'], 'name': 'Dionysius Halicarnassensis Hist. et Rhet.'}, 'TLG3128': {'works': ['TXT-001'], 'name': 'Theognostus Gramm.'}, 'TLG1188': {'works': ['TXT-001'], 'name': 'Aristocles Phil.'}, 'TLG0302': {'works': ['TXT-001'], 'name': 'Choerilus Trag.'}, 'TLG2038': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Acta Thomae'}, 'TLG2766': {'works': ['TXT-001', 'TXT-002'], 'name': 'Eudocia Augusta Poeta'}, 'TLG2610': {'works': ['TXT-001'], 'name': 'Boiscus Iamb.'}, 'TLG0256': {'works': ['TXT-001'], 'name': 'Panarces Scriptor Aenigmatum'}, 'TLG1792': {'works': ['TXT-001'], 'name': 'Biottus Comic.'}, 'TLG1923': {'works': ['TXT-003'], 'name': 'Stesimbrotus Hist.'}, 'TLG1570': {'works': ['TXT-001'], 'name': 'Epitaphium Pectorii'}, 'TLG0667': {'works': ['TXT-001'], 'name': 'Marcellinus I Med.'}, 'TLG0306': {'works': ['TXT-001'], 'name': 'Aristarchus Trag.'}, 'TLG1364': {'works': ['TXT-001'], 'name': 'Evangelium Aegyptium'}, 'TLG1395': {'works': ['TXT-004'], 'name': '[Hegesinus] Epic.'}, 'TLG0046': {'works': ['TXT-001'], 'name': 'Niciae Epistula'}, 'TLG0462': {'works': ['TXT-001', 'TXT-002'], 'name': 'Euthycles Comic.'}, 'TLG2012': {'works': ['TXT-001'], 'name': 'Acta Eupli'}, 'TLG0429': {'works': ['TXT-001', 'TXT-002'], 'name': 'Cephisodorus Comic.'}, 'TLG1978': {'works': ['TXT-003'], 'name': 'Leo Hist.'}, 'TLG1347': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Epimenides Phil.'}, 'TLG4016': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Ammonius Phil.'}, 'TLG1661': {'works': ['TXT-001'], 'name': 'Satyrus Hist.'}, 'TLG4335': {'works': ['TXT-001'], 'name': 'Cleopatra Alchem.'}, 'TLG0718': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-015', 'TXT-016'], 'name': 'Aëtius Med.'}, 'TLG4324': {'works': ['TXT-001'], 'name': 'Synesius Alchem.'}, 'TLG0495': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Phoenicides Comic.'}, 'TLG1970': {'works': ['TXT-003'], 'name': 'Silenus Hist.'}, 'TLG1766': {'works': ['TXT-001', 'TXT-002'], 'name': 'Tatianus Apol.'}, 'TLG0633': {'works': ['TXT-001', 'TXT-002'], 'name': 'Lysis Phil.'}, 'TLG2445': {'works': ['TXT-003'], 'name': 'Amometus Hist.'}, 'TLG1992': {'works': ['TXT-003'], 'name': 'Ariston Apol.'}, 'TLG1836': {'works': ['TXT-001'], 'name': 'Anonymi Aulodia'}, 'TLG1436': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hippodamus Phil.'}, 'TLG1139': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041'], 'name': 'Anonymi Historici (FGrH)'}, 'TLG4029': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Procopius Hist.'}, 'TLG0380': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philoxenus Lyr.'}, 'TLG0491': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Philiscus Comic.'}, 'TLG0483': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nicophon Comic.'}, 'TLG0468': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hipparchus Comic.'}, 'TLG2287': {'works': ['TXT-001'], 'name': 'Fragmentum Stoicum'}, 'TLG2158': {'works': ['TXT-002'], 'name': 'Eutychianus Hist.'}, 'TLG2734': {'works': ['TXT-001', 'TXT-004', 'TXT-005', 'TXT-008', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025'], 'name': 'Flavius Justinianus Imperator Theol.'}, 'TLG1757': {'works': ['TXT-001'], 'name': 'Julius Epic.'}, 'TLG0697': {'works': ['TXT-003'], 'name': 'Cornelius Alexander Polyhist.'}, 'TLG1447': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-007', 'TXT-008'], 'name': 'Irenaeus Theol.'}, 'TLG4124': {'works': ['TXT-007', 'TXT-008', 'TXT-009'], 'name': 'Eusebius Scr. Eccl.'}, 'TLG1635': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Protagoras Soph.'}, 'TLG0345': {'works': ['TXT-001'], 'name': 'Apollonides Trag.'}, 'TLG1428': {'works': ['TXT-002'], 'name': 'Hestiaeus Hist.'}, 'TLG1277': {'works': ['TXT-001', 'TXT-002'], 'name': 'Clinias Phil.'}, 'TLG4005': {'works': ['TXT-001'], 'name': 'Anonymus Discipulus Isidori Milesii Mech.'}, 'TLG9019': {'works': ['TXT-001'], 'name': 'Stephanus Phil.'}, 'TLG0683': {'works': ['TXT-002'], 'name': 'Aethiopis'}, 'TLG0290': {'works': ['TXT-001'], 'name': 'Encomium Ducis Thebaidos'}, 'TLG3136': {'works': ['TXT-001'], 'name': 'Pseudo-Zonaras Lexicogr.'}, 'TLG2568': {'works': ['TXT-002'], 'name': '[Sosthenes] Hist.'}, 'TLG0266': {'works': ['TXT-001', 'TXT-002'], 'name': 'Tyrtaeus Eleg.'}, 'TLG4000': {'works': ['TXT-001'], 'name': 'Aristaenetus Epist.'}, 'TLG0060': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Diodorus Siculus Hist.'}, 'TLG1899': {'works': ['TXT-002'], 'name': 'Aristonicus Hist.'}, 'TLG3075': {'works': ['TXT-001'], 'name': 'Pseudo-Mauricius Tact.'}, 'TLG1302': {'works': ['TXT-001', 'TXT-002'], 'name': 'Demetrius Rhet.'}, 'TLG2608': {'works': ['TXT-001'], 'name': 'Archebulus Poeta'}, 'TLG0068': {'works': ['TXT-001', 'TXT-002'], 'name': 'Pseudo-Scymnus Geogr.'}, 'TLG0269': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nautarum Cantiunculae'}, 'TLG1556': {'works': ['TXT-001', 'TXT-002'], 'name': 'Pancrates Epigr.'}, 'TLG0591': {'works': ['TXT-001', 'TXT-002'], 'name': 'Antisthenes Phil. et Rhet.'}, 'TLG0452': {'works': ['TXT-001', 'TXT-002'], 'name': 'Epigenes Comic.'}, 'TLG4145': {'works': ['TXT-001'], 'name': 'Nicephorus Gregoras Hist.'}, 'TLG0816': {'works': ['TXT-001'], 'name': 'Theudo[tus] Trag.'}, 'TLG1096': {'works': ['TXT-001'], 'name': 'Euaretus Trag.'}, 'TLG5045': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anonymi In Aphthonium Rhet.'}, 'TLG0658': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heliodorus Scr. Erot.'}, 'TLG1695': {'works': ['TXT-001'], 'name': 'Sthenidas Phil.'}, 'TLG1351': {'works': ['TXT-001'], 'name': 'Epigoni'}, 'TLG1405': {'works': ['TXT-001'], 'name': 'Heraclides Criticus Perieg.'}, 'TLG0628': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Gaius Musonius Rufus Phil.'}, 'TLG1516': {'works': ['TXT-003'], 'name': 'Molpis Hist.'}, 'TLG1622': {'works': ['TXT-001'], 'name': 'Polycarpus Scr. Eccl.'}, 'TLG2762': {'works': ['TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009'], 'name': 'Gennadius I Scr. Eccl.'}, 'TLG0250': {'works': ['TXT-001'], 'name': 'Euclides Comic. vel Iamb.'}, 'TLG1859': {'works': ['TXT-001'], 'name': 'Liber Jannes Et Jambres'}, 'TLG1435': {'works': ['TXT-002'], 'name': 'Hippias Hist.'}, 'TLG2552': {'works': ['TXT-002'], 'name': 'Critolaus Hist.'}, 'TLG0654': {'works': ['TXT-002'], 'name': 'Lucius Annaeus Cornutus Phil.'}, 'TLG0636': {'works': ['TXT-001'], 'name': 'Socratis Epistulae'}, 'TLG1662': {'works': ['TXT-001'], 'name': 'Sciras Comic.'}, 'TLG2506': {'works': ['TXT-003'], 'name': 'Capito Hist.'}, 'TLG1548': {'works': ['TXT-001'], 'name': 'Oenomaus Phil.'}, 'TLG0307': {'works': ['TXT-001'], 'name': 'Neophron Trag.'}, 'TLG0011': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010'], 'name': 'Sophocles Trag.'}, 'TLG2733': {'works': ['TXT-001'], 'name': 'Evagrius Scholasticus Scr. Eccl.'}, 'TLG1615': {'works': ['TXT-001'], 'name': 'Platonius Gramm.'}, 'TLG2340': {'works': ['TXT-001'], 'name': 'Diotimus Phil.'}, 'TLG0435': {'works': ['TXT-001', 'TXT-002'], 'name': 'Cratinus Junior Comic.'}, 'TLG0273': {'works': ['TXT-001', 'TXT-002'], 'name': 'Scolia Alphabetica'}, 'TLG1574': {'works': ['TXT-001'], 'name': 'Persaeus Phil.'}, 'TLG0399': {'works': ['TXT-001', 'TXT-002'], 'name': 'Eudoxus Comic.'}, 'TLG2744': {'works': ['TXT-001'], 'name': 'Historia Monachorum In Aegypto'}, 'TLG0412': {'works': ['TXT-001', 'TXT-002'], 'name': 'Apollodorus Carystius vel Apollodorus Gelous Comic.'}, 'TLG1459': {'works': ['TXT-002'], 'name': 'Lepidus Hist.'}, 'TLG1318': {'works': ['TXT-001'], 'name': 'Diodorus Rhet.'}, 'TLG1477': {'works': ['TXT-003'], 'name': 'Manetho Hist.'}, 'TLG0251': {'works': ['TXT-001'], 'name': 'Euenus Eleg.'}, 'TLG0431': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Chionides Comic.'}, 'TLG0254': {'works': ['TXT-001', 'TXT-002'], 'name': 'Melanthius Eleg. et Trag.'}, 'TLG0691': {'works': ['TXT-001'], 'name': 'Harpocrationis Epistula'}, 'TLG0845': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Ctesias Hist. et Med.'}, 'TLG2650': {'works': ['TXT-001'], 'name': 'Arrianus Epic.'}, 'TLG1275': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Cleostratus Poet. Phil.'}, 'TLG0577': {'works': ['TXT-003'], 'name': 'Nicolaus Hist.'}, 'TLG0481': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nicolaus Comic.'}, 'TLG2697': {'works': ['TXT-001'], 'name': 'Timolaus Rhet.'}, 'TLG0733': {'works': ['TXT-001'], 'name': 'Cassius Iatrosophista Med.'}, 'TLG1296': {'works': ['TXT-001'], 'name': 'Cypria'}, 'TLG1125': {'works': ['TXT-003'], 'name': 'Androtion Hist.'}, 'TLG2190': {'works': ['TXT-002'], 'name': '[Clitonymus] Hist.'}, 'TLG1389': {'works': ['TXT-001'], 'name': 'Harpocration Gramm.'}, 'TLG1201': {'works': ['TXT-001'], 'name': 'Assumptio Mosis'}, 'TLG5018': {'works': ['TXT-001'], 'name': 'Scholia In Dionysium Byzantium'}, 'TLG0388': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Acta Pauli'}, 'TLG2721': {'works': ['TXT-001', 'TXT-002'], 'name': 'Theodorus Prodromus Poeta et Polyhist.'}, 'TLG1138': {'works': ['TXT-001'], 'name': 'Lycon Phil.'}, 'TLG1685': {'works': ['TXT-003', 'TXT-004'], 'name': 'Sosibius Gramm.'}, 'TLG0660': {'works': ['TXT-001'], 'name': 'Apollonius Med.'}, 'TLG2300': {'works': ['TXT-003', 'TXT-004'], 'name': 'Promathidas Hist.'}, 'TLG1906': {'works': ['TXT-002'], 'name': 'Simonides Epic.'}, 'TLG2057': {'works': ['TXT-001'], 'name': 'Socrates Scholasticus Hist.'}, 'TLG1172': {'works': ['TXT-001'], 'name': 'Arcesilaus Phil.'}, 'TLG0260': {'works': ['TXT-001', 'TXT-002'], 'name': 'Semonides Eleg. et Iamb.'}, 'TLG0639': {'works': ['TXT-001'], 'name': 'Menecrates Med.'}, 'TLG1131': {'works': ['TXT-001'], 'name': 'Anonymus Ad Avircium Marcellum Contra Cataphrygas'}, 'TLG0291': {'works': ['TXT-001', 'TXT-002'], 'name': 'Alcman Lyr.'}, 'TLG2645': {'works': ['TXT-001'], 'name': 'Stratonicus Poeta'}, 'TLG1350': {'works': ['TXT-001'], 'name': 'Epistula Ad Diognetum'}, 'TLG1227': {'works': ['TXT-001'], 'name': 'Blaesus Comic.'}, 'TLG1726': {'works': ['TXT-001', 'TXT-002'], 'name': 'Theopompus Epic.'}, 'TLG0746': {'works': ['TXT-001'], 'name': 'Theophilus Protospatharius et Stephanus Atheniensis Med.'}, 'TLG0328': {'works': ['TXT-001'], 'name': 'Chaeremon Trag.'}, 'TLG0640': {'works': ['TXT-001'], 'name': 'Alciphron Rhet. et Soph.'}, 'TLG0690': {'works': ['TXT-001'], 'name': 'Erasistratus Med.'}, 'TLG0717': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hypsicles Astron. et Math.'}, 'TLG4338': {'works': ['TXT-001'], 'name': 'Theophrastus Alchem. et Poeta'}, 'TLG0403': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Amipsias Comic.'}, 'TLG3187': {'works': ['TXT-001'], 'name': 'Georgius Gramm.'}, 'TLG4013': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Simplicius Phil.'}, 'TLG2243': {'works': ['TXT-001'], 'name': 'Apocalypsis Sedrach'}, 'TLG1527': {'works': ['TXT-001'], 'name': 'Nepualius Med. et Phil.'}, 'TLG0637': {'works': ['TXT-001'], 'name': 'Socraticorum Epistulae'}, 'TLG0407': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anaxippus Comic.'}, 'TLG2248': {'works': ['TXT-001'], 'name': 'Acta Xanthippae Et Polyxenae'}, 'TLG1173': {'works': ['TXT-001'], 'name': 'Archedemus Phil.'}, 'TLG3140': {'works': ['TXT-001'], 'name': 'Joel Chronogr.'}, 'TLG0428': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Cantharus Comic.'}, 'TLG2367': {'works': ['TXT-002'], 'name': 'Theognis Hist.'}, 'TLG1320': {'works': ['TXT-001'], 'name': 'Diogenes Phil.'}, 'TLG1393': {'works': ['TXT-001', 'TXT-004', 'TXT-005'], 'name': 'Hegesianax Astron. et Epic.'}, 'TLG1535': {'works': ['TXT-002'], 'name': 'Nicocrates Hist.'}, 'TLG0295': {'works': ['TXT-001'], 'name': 'Carmina Popularia (PMG)'}, 'TLG1953': {'works': ['TXT-003'], 'name': 'Hieronymus Hist.'}, 'TLG0602': {'works': ['TXT-001', 'TXT-002'], 'name': 'Comica Adespota (FCG)'}, 'TLG1683': {'works': ['TXT-003'], 'name': 'Sophaenetus Hist.'}, 'TLG0253': {'works': ['TXT-001'], 'name': '[Homerus] Epic.'}, 'TLG3130': {'works': ['TXT-001', 'TXT-003', 'TXT-007', 'TXT-009'], 'name': 'Theophylactus Simocatta Epist. et Hist.'}, 'TLG2040': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-078', 'TXT-079', 'TXT-080', 'TXT-081', 'TXT-082'], 'name': 'Basilius Theol.'}, 'TLG2456': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nessas Phil.'}, 'TLG1147': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-005'], 'name': 'Antiphon Soph.'}, 'TLG0077': {'works': ['TXT-001'], 'name': 'Periplus Maris Magni'}, 'TLG0093': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-014', 'TXT-015'], 'name': 'Theophrastus Phil.'}, 'TLG0730': {'works': ['TXT-001', 'TXT-002'], 'name': 'Meletius Med.'}, 'TLG0259': {'works': ['TXT-001', 'TXT-002', 'TXT-004'], 'name': 'Scythinus Poet. Phil.'}, 'TLG0485': {'works': ['TXT-001', 'TXT-002'], 'name': 'Ophelio Comic.'}, 'TLG1918': {'works': ['TXT-003'], 'name': 'Timagenes Hist.'}, 'TLG0626': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heraclitus Phil.'}, 'TLG0085': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011'], 'name': 'Aeschylus Trag.'}, 'TLG2611': {'works': ['TXT-001'], 'name': 'Butas Eleg.'}, 'TLG4076': {'works': ['TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Menander Protector Hist.'}, 'TLG4075': {'works': ['TXT-002'], 'name': 'Marinus Phil.'}, 'TLG0522': {'works': ['TXT-001'], 'name': 'Pisander Epic.'}, 'TLG0442': {'works': ['TXT-001', 'TXT-002'], 'name': 'Dexicrates Comic.'}, 'TLG1487': {'works': ['TXT-001', 'TXT-002'], 'name': 'Maximus Astrol.'}, 'TLG5025': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Scholia In Hesiodum'}, 'TLG1208': {'works': ['TXT-001'], 'name': 'Atticus Phil.'}, 'TLG2008': {'works': ['TXT-001'], 'name': 'Martyrium Cononis'}, 'TLG4150': {'works': ['TXT-001'], 'name': 'Anacreontea'}, 'TLG0700': {'works': ['TXT-001'], 'name': 'Apollodorus Trag.'}, 'TLG1354': {'works': ['TXT-002'], 'name': 'Ergias Hist.'}, 'TLG0213': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Hermesianax Eleg.'}, 'TLG1835': {'works': ['TXT-002'], 'name': 'Agroetas Hist.'}, 'TLG0443': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Diocles Comic.'}, 'TLG9021': {'works': ['TXT-001'], 'name': 'Stephanus Alchem.'}, 'TLG4303': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Lexica In Opera Gregorii Nazianzeni'}, 'TLG5013': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Scholia In Aratum'}, 'TLG1858': {'works': ['TXT-001'], 'name': 'Oratio Manassis'}, 'TLG9018': {'works': ['TXT-001'], 'name': 'Arsenius Paroemiogr.'}, 'TLG9012': {'works': ['TXT-002'], 'name': 'Ignatius Biogr. et Poeta'}, 'TLG2120': {'works': ['TXT-001'], 'name': 'Panteleius Epic.'}, 'TLG5024': {'works': ['TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022'], 'name': 'Anonymi In Hermogenem Rhet.'}, 'TLG1421': {'works': ['TXT-001', 'TXT-003'], 'name': 'Hermippus Gramm. et Hist.'}, 'TLG2738': {'works': ['TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Chronographiae Anonymae'}, 'TLG1584': {'works': ['TXT-003'], 'name': 'Pherecydes Hist.'}, 'TLG1226': {'works': ['TXT-001'], 'name': 'Biton Mech.'}, 'TLG4115': {'works': ['TXT-029', 'TXT-030'], 'name': 'Theophilus Scr. Eccl.'}, 'TLG0245': {'works': ['TXT-001', 'TXT-002'], 'name': 'Demodocus Eleg.'}, 'TLG1514': {'works': ['TXT-001', 'TXT-002'], 'name': 'Mnaseas Perieg.'}, 'TLG0825': {'works': ['TXT-001'], 'name': 'Melito Trag.'}, 'TLG0019': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018'], 'name': 'Aristophanes Comic.'}, 'TLG4157': {'works': ['TXT-001'], 'name': 'Joannes Rhet.'}, 'TLG2313': {'works': ['TXT-001'], 'name': 'Antisthenes Phil.'}, 'TLG1399': {'works': ['TXT-001'], 'name': 'Pamphilus Trag.'}, 'TLG0347': {'works': ['TXT-001'], 'name': 'Serapion Trag.'}, 'TLG0235': {'works': ['TXT-001'], 'name': 'Iambica Adespota (IEG)'}, 'TLG1451': {'works': ['TXT-001'], 'name': 'Josephus Et Aseneth'}, 'TLG0595': {'works': ['TXT-001', 'TXT-002'], 'name': 'Zeno Phil.'}, 'TLG0673': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aeschines Socraticus Phil.'}, 'TLG3177': {'works': ['TXT-001', 'TXT-002'], 'name': 'Scriptor Incertus De Leone Armenio Hist.'}, 'TLG1206': {'works': ['TXT-003'], 'name': 'Athenodorus Phil.'}, 'TLG4038': {'works': ['TXT-001'], 'name': 'Pamprepius Epic.'}, 'TLG3043': {'works': ['TXT-001', 'TXT-002'], 'name': 'Georgius Monachus Chronogr.'}, 'TLG0027': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Andocides Orat.'}, 'TLG2557': {'works': ['TXT-002'], 'name': '[Aristobulus] Hist.'}, 'TLG4139': {'works': ['TXT-034', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-067', 'TXT-072', 'TXT-081', 'TXT-087'], 'name': 'Severianus Scr. Eccl.'}, 'TLG0401': {'works': ['TXT-001', 'TXT-002'], 'name': 'Alexander Comic.'}, 'TLG0312': {'works': ['TXT-001'], 'name': 'Philocles Trag.'}, 'TLG3185': {'works': ['TXT-001'], 'name': 'Anonymus De Scientia Politica Hist.'}, 'TLG4097': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Etymologicum Genuinum'}, 'TLG1175': {'works': ['TXT-001', 'TXT-002'], 'name': 'Archestratus Parodius'}, 'TLG2270': {'works': ['TXT-002'], 'name': 'Callippus Hist.'}, 'TLG0508': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Strattis Comic.'}, 'TLG0554': {'works': ['TXT-001'], 'name': 'Chariton Scr. Erot.'}, 'TLG0647': {'works': ['TXT-001'], 'name': 'Triphiodorus Epic. et Gramm.'}, 'TLG0048': {'works': ['TXT-001'], 'name': 'Philippus II Rex Macedonum Epist.'}, 'TLG4135': {'works': ['TXT-009', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018'], 'name': 'Theodorus Theol.'}, 'TLG0609': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Tryphon I Gramm.'}, 'TLG0034': {'works': ['TXT-001', 'TXT-002'], 'name': 'Lycurgus Orat.'}, 'TLG1386': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-018', 'TXT-019', 'TXT-020'], 'name': 'Historia Alexandri Magni'}, 'TLG0010': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031'], 'name': 'Isocrates Orat.'}, 'TLG0461': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Eupolis Comic.'}, 'TLG2074': {'works': ['TXT-037', 'TXT-038', 'TXT-039', 'TXT-041'], 'name': 'Apollinaris Theol.'}, 'TLG1578': {'works': ['TXT-001'], 'name': 'Phaenias Phil.'}, 'TLG3063': {'works': ['TXT-001'], 'name': 'Joannes Scylitzes Hist.'}, 'TLG0613': {'works': ['TXT-001'], 'name': 'Demetrius Rhet.'}, 'TLG0366': {'works': ['TXT-001', 'TXT-002'], 'name': 'Lasus Lyr.'}, 'TLG0376': {'works': ['TXT-001', 'TXT-002'], 'name': 'Timotheus Lyr.'}, 'TLG2638': {'works': ['TXT-001'], 'name': 'Philo Poeta'}, 'TLG4328': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012'], 'name': 'Philosophus Christianus Alchem.'}, 'TLG1445': {'works': ['TXT-001'], 'name': 'Iliu Persis'}, 'TLG4294': {'works': ['TXT-001'], 'name': 'Lexicon Vindobonense'}, 'TLG1794': {'works': ['TXT-001'], 'name': 'Philocles Comic.'}, 'TLG4227': {'works': ['TXT-001'], 'name': 'Anonymus De Philosophia Platonica Phil.'}, 'TLG1641': {'works': ['TXT-001'], 'name': 'Ptolemaeus Gnost.'}, 'TLG1756': {'works': ['TXT-001'], 'name': 'Demetrius Gramm.'}, 'TLG0053': {'works': ['TXT-001'], 'name': 'Phalaridis Epistulae'}, 'TLG0071': {'works': ['TXT-001'], 'name': 'Periplus Maris Erythraei'}, 'TLG2499': {'works': ['TXT-003'], 'name': 'Eustochius Soph.'}, 'TLG2035': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-077', 'TXT-078', 'TXT-079', 'TXT-080', 'TXT-081', 'TXT-082', 'TXT-083', 'TXT-084', 'TXT-085', 'TXT-086', 'TXT-087', 'TXT-088', 'TXT-089', 'TXT-090', 'TXT-091', 'TXT-094', 'TXT-099', 'TXT-100', 'TXT-101', 'TXT-102', 'TXT-103', 'TXT-104', 'TXT-105', 'TXT-106', 'TXT-107', 'TXT-109', 'TXT-110', 'TXT-111', 'TXT-115', 'TXT-116', 'TXT-117', 'TXT-118', 'TXT-119', 'TXT-120', 'TXT-121', 'TXT-122', 'TXT-123', 'TXT-124', 'TXT-125', 'TXT-126', 'TXT-127'], 'name': 'Athanasius Theol.'}, 'TLG1324': {'works': ['TXT-002'], 'name': 'Dionysius Hist.'}, 'TLG0018': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-038', 'TXT-039', 'TXT-041', 'TXT-042'], 'name': 'Philo Judaeus Phil.'}, 'TLG3147': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Michael Critobulus Hist.'}, 'TLG2020': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Theodosius Gramm.'}, 'TLG0197': {'works': ['TXT-001'], 'name': 'Hedyle Epigr.'}, 'TLG1452': {'works': ['TXT-003'], 'name': 'Juba II Rex Mauretaniae Hist.'}, 'TLG1148': {'works': ['TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Antonius Diogenes Scr. Erot.'}, 'TLG1132': {'works': ['TXT-001'], 'name': 'Anonymus Alexandri Phil.'}, 'TLG0556': {'works': ['TXT-001'], 'name': 'Asclepiodotus Tact.'}, 'TLG1793': {'works': ['TXT-001'], 'name': 'Timoxenus Comic.'}, 'TLG0515': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Timocles Comic.'}, 'TLG0900': {'works': ['TXT-001'], 'name': 'Cleomenes Lyr.'}, 'TLG0552': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014'], 'name': 'Archimedes Geom.'}, 'TLG2005': {'works': ['TXT-001'], 'name': 'Martyrium Pionii'}, 'TLG1550': {'works': ['TXT-001'], 'name': 'Oracula Chaldaica'}, 'TLG2937': {'works': ['TXT-002'], 'name': 'Lachares Soph.'}, 'TLG5023': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Scholia In Euripidem'}, 'TLG1207': {'works': ['TXT-001'], 'name': 'Attalus Astron. et Math.'}, 'TLG1325': {'works': ['TXT-001'], 'name': 'Diogenis Sinopensis Epistulae'}, 'TLG1749': {'works': ['TXT-001'], 'name': 'Vitae Hesiodi Particula'}, 'TLG0286': {'works': ['TXT-001'], 'name': 'Carmen Astrologicum'}, 'TLG4330': {'works': ['TXT-001'], 'name': 'Cosmas Hieromonachus Alchem.'}, 'TLG1281': {'works': ['TXT-002'], 'name': '[Clitophon] Hist.'}, 'TLG4395': {'works': ['TXT-001'], 'name': 'Menetor Hist.'}, 'TLG0436': {'works': ['TXT-001', 'TXT-002'], 'name': 'Crito Comic.'}, 'TLG0205': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philodamus Lyr.'}, 'TLG1604': {'works': ['TXT-001', 'TXT-002'], 'name': 'Phocylides Eleg. et Gnom.'}, 'TLG0465': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heniochus Comic.'}, 'TLG5035': {'works': ['TXT-001', 'TXT-002'], 'name': 'Scholia In Platonem'}, 'TLG0218': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nicaenetus Epic.'}, 'TLG0856': {'works': ['TXT-001'], 'name': 'Dieuches Med.'}, 'TLG2063': {'works': ['TXT-001', 'TXT-005', 'TXT-006', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-013', 'TXT-016', 'TXT-021', 'TXT-022', 'TXT-025', 'TXT-028'], 'name': 'Gregorius Thaumaturgus Scr. Eccl.'}, 'TLG2289': {'works': ['TXT-002'], 'name': 'Echephylidas Hist.'}, 'TLG2654': {'works': ['TXT-001'], 'name': 'Physiologus'}, 'TLG2703': {'works': ['TXT-001'], 'name': 'Anna Comnena Hist.'}, 'TLG0294': {'works': ['TXT-001'], 'name': 'Corinna Lyr.'}, 'TLG1651': {'works': ['TXT-002'], 'name': 'Pythermus Hist.'}, 'TLG5052': {'works': ['TXT-001'], 'name': 'Scholia in Maximum Confessorem'}, 'TLG2213': {'works': ['TXT-002'], 'name': '[Timotheus] Hist.'}, 'TLG1839': {'works': ['TXT-001'], 'name': 'Polyphrasmon Trag.'}, 'TLG1163': {'works': ['TXT-001'], 'name': 'Claudius Apollinarius Apol.'}, 'TLG4084': {'works': ['TXT-001'], 'name': 'Zosimus Hist.'}, 'TLG3014': {'works': ['TXT-001', 'TXT-002'], 'name': 'Joannes Camaterus Astrol. et Astron.'}, 'TLG5022': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Scholia In Euclidem'}, 'TLG5008': {'works': ['TXT-001'], 'name': 'Scholia In Aelium Aristidem'}, 'TLG5040': {'works': ['TXT-001'], 'name': 'Scholia In Xenophontem'}, 'TLG0030': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Hyperides Orat.'}, 'TLG2275': {'works': ['TXT-001'], 'name': 'Theagenes Phil.'}, 'TLG1704': {'works': ['TXT-003'], 'name': 'Teucer Hist.'}, 'TLG0571': {'works': ['TXT-004', 'TXT-005'], 'name': 'Aristocles Paradox.'}, 'TLG1168': {'works': ['TXT-001'], 'name': 'Apollonius Soph.'}, 'TLG0209': {'works': ['TXT-001'], 'name': 'Seleucus Lyr.'}, 'TLG0530': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-005', 'TXT-006', 'TXT-009', 'TXT-012', 'TXT-020', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-026', 'TXT-029', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-045', 'TXT-046'], 'name': 'Pseudo-Galenus Med.'}, 'TLG0444': {'works': ['TXT-001', 'TXT-002'], 'name': 'Diodorus Comic.'}, 'TLG1782': {'works': ['TXT-001', 'TXT-002'], 'name': 'Augeas Comic.'}, 'TLG2604': {'works': ['TXT-001'], 'name': 'Ulpianus Gramm. et Rhet.'}, 'TLG4396': {'works': ['TXT-001'], 'name': 'Timagetus Hist.'}, 'TLG4361': {'works': ['TXT-008'], 'name': 'Apomasar Astrol.'}, 'TLG1134': {'works': ['TXT-001'], 'name': 'Anonymus Iamblichi Phil.'}, 'TLG3023': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-013', 'TXT-014', 'TXT-019'], 'name': 'Constantinus VII Porphyrogenitus Imperator Hist.'}, 'TLG0503': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sosicrates Comic.'}, 'TLG0584': {'works': ['TXT-002', 'TXT-003'], 'name': 'Philostephanus Hist.'}, 'TLG2636': {'works': ['TXT-001'], 'name': 'Pherenicus Epic.'}, 'TLG0721': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026'], 'name': 'Anonymi Medici Med.'}, 'TLG1977': {'works': ['TXT-002'], 'name': 'Lucius Licinius Lucullus Hist.'}, 'TLG1797': {'works': ['TXT-001', 'TXT-002'], 'name': 'Choliambica Adespota (ALG)'}, 'TLG0472': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Lysippus Comic.'}, 'TLG2047': {'works': ['TXT-001'], 'name': 'Syriani, Sopatri Et Marcellini Scholia Ad Hermogenis Status'}, 'TLG2609': {'works': ['TXT-001'], 'name': 'Asopodorus Iamb.'}, 'TLG2598': {'works': ['TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-012', 'TXT-019'], 'name': 'Procopius Rhet. et Scr. Eccl.'}, 'TLG3047': {'works': ['TXT-001', 'TXT-002'], 'name': 'Michael Glycas Astrol. et Hist.'}, 'TLG1220': {'works': ['TXT-001', 'TXT-002'], 'name': 'Batrachomyomachia'}, 'TLG1158': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Apocalypsis Joannis'}, 'TLG1702': {'works': ['TXT-001'], 'name': 'Testamentum Jobi'}, 'TLG0049': {'works': ['TXT-001'], 'name': 'Pisistrati Epistula'}, 'TLG0490': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philippides Comic.'}, 'TLG0473': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Machon Comic.'}, 'TLG0241': {'works': ['TXT-003'], 'name': 'Aristoxenus Comic.'}, 'TLG0518': {'works': ['TXT-001', 'TXT-002'], 'name': 'Xenarchus Comic.'}, 'TLG1199': {'works': ['TXT-003'], 'name': 'Asclepiades Gramm. et Hist.'}, 'TLG3182': {'works': ['TXT-001'], 'name': 'Pseudo-Symeon Hist.'}, 'TLG0343': {'works': ['TXT-001'], 'name': 'Ezechiel Trag.'}, 'TLG4173': {'works': ['TXT-001'], 'name': 'Vitae Dionysii Periegetae'}, 'TLG4333': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nicephorus Blemmydes Alchem.'}, 'TLG1316': {'works': ['TXT-003'], 'name': 'Dinon Hist.'}, 'TLG1402': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Hephaestion Gramm.'}, 'TLG1321': {'works': ['TXT-011'], 'name': 'Diogenes Phil.'}, 'TLG1714': {'works': ['TXT-001', 'TXT-003'], 'name': 'Theocritus Soph.'}, 'TLG3051': {'works': ['TXT-001'], 'name': 'Georgius Monachus Continuatus'}, 'TLG1843': {'works': ['TXT-001'], 'name': 'Nicomachus Trag.'}, 'TLG4332': {'works': ['TXT-001'], 'name': 'Hierotheus Alchem. et Poeta'}, 'TLG2948': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Acta Philippi'}, 'TLG2424': {'works': ['TXT-003'], 'name': 'Chaeremon Hist. et Phil.'}, 'TLG0055': {'works': ['TXT-001'], 'name': 'Themistoclis Epistulae'}, 'TLG0008': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Athenaeus Soph.'}, 'TLG0031': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027'], 'name': 'Novum Testamentum, New Testament'}, 'TLG0624': {'works': ['TXT-001'], 'name': 'Demetrius Hist. et Phil.'}, 'TLG4166': {'works': ['TXT-001'], 'name': 'Vitae Aeschinis'}, 'TLG3135': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Joannes Zonaras Gramm. et Hist.'}, 'TLG0415': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Araros Comic.'}, 'TLG4286': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Lexica Syntactica'}, 'TLG1352': {'works': ['TXT-001'], 'name': 'Epistula Ecclesiarum Apud Lugdunum Et Viennam'}, 'TLG2412': {'works': ['TXT-002'], 'name': 'Androetas Hist.'}, 'TLG4061': {'works': ['TXT-002'], 'name': 'Cosmas Indicopleustes Geogr.'}, 'TLG2806': {'works': ['TXT-001'], 'name': 'Marcus Diaconus Scr. Eccl.'}, 'TLG0546': {'works': ['TXT-001'], 'name': 'Aelianus Tact.'}, 'TLG0601': {'works': ['TXT-001'], 'name': 'Zaleucus Nomographus Phil.'}, 'TLG1551': {'works': ['TXT-001', 'TXT-002'], 'name': 'Oracula Sibyllina'}, 'TLG2536': {'works': ['TXT-003'], 'name': 'Andron Geogr.'}, 'TLG2210': {'works': ['TXT-002'], 'name': 'Anaxicrates Hist.'}, 'TLG5026': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-016', 'TXT-017'], 'name': 'Scholia In Homerum'}, 'TLG5037': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Scholia In Sophoclem'}, 'TLG0537': {'works': ['TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017'], 'name': 'Epicurus Phil.'}, 'TLG2904': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Nicolaus Rhet. et Soph.'}, 'TLG1164': {'works': ['TXT-002'], 'name': 'Apollodorus Hist.'}, 'TLG0242': {'works': ['TXT-001', 'TXT-003'], 'name': 'Asius Eleg. et Epic.'}, 'TLG1301': {'works': ['TXT-002'], 'name': 'Demetrius Poet. Phil.'}, 'TLG1379': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074'], 'name': 'Fragmenta Alchemica'}, 'TLG1803': {'works': ['TXT-001'], 'name': 'Bruti Epistulae'}, 'TLG2228': {'works': ['TXT-001'], 'name': 'Menestor Phil.'}, 'TLG1460': {'works': ['TXT-001'], 'name': 'Lesbonax Gramm.'}, 'TLG1338': {'works': ['TXT-003'], 'name': 'Dosiadas Hist.'}, 'TLG0693': {'works': ['TXT-001', 'TXT-002'], 'name': 'Albinus Phil.'}, 'TLG5012': {'works': ['TXT-001'], 'name': 'Scholia In Apollonium Rhodium'}, 'TLG4098': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Etymologicum Gudianum'}, 'TLG0623': {'works': ['TXT-001'], 'name': 'Cratetis Epistulae'}, 'TLG1155': {'works': ['TXT-001'], 'name': 'Apocalypsis Syriaca Baruchi'}, 'TLG4024': {'works': ['TXT-001'], 'name': 'Agathias Scholasticus Epigr. et Hist.'}, 'TLG1805': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012'], 'name': 'Vitae Homeri'}, 'TLG2627': {'works': ['TXT-001'], 'name': 'Damianus Scriptor De Opticis'}, 'TLG2635': {'works': ['TXT-001'], 'name': 'Persinus Poeta'}, 'TLG1649': {'works': ['TXT-002'], 'name': 'Pythaenetus Hist.'}, 'TLG1710': {'works': ['TXT-001'], 'name': 'Theages Phil.'}, 'TLG3173': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Joannes Theol.'}, 'TLG1285': {'works': ['TXT-003'], 'name': 'Conon Hist.'}, 'TLG2328': {'works': ['TXT-003'], 'name': 'Diogenes Hist.'}, 'TLG2479': {'works': ['TXT-003'], 'name': 'Patrocles Hist.'}, 'TLG0918': {'works': ['TXT-001'], 'name': 'Lamynthius Lyr.'}, 'TLG0267': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Xenophanes Poet. Phil.'}, 'TLG1160': {'works': ['TXT-001'], 'name': 'Apocalypsis Sophoniae'}, 'TLG4397': {'works': ['TXT-001'], 'name': 'Myronianus Hist.'}, 'TLG5032': {'works': ['TXT-001', 'TXT-002'], 'name': 'Scholia In Oppianum'}, 'TLG1759': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sententiae Pythagoreorum'}, 'TLG2185': {'works': ['TXT-001'], 'name': 'Dionysius Μεταθέμενος Phil.'}, 'TLG2396': {'works': ['TXT-002', 'TXT-003'], 'name': 'Hyperochus Hist.'}, 'TLG4175': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Commentaria In Dionysii Thracis Artem Grammaticam'}, 'TLG1135': {'works': ['TXT-001'], 'name': 'Anonymus Photii Phil.'}, 'TLG1737': {'works': ['TXT-001'], 'name': 'Titanomachia'}, 'TLG0204': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aristonous Lyr.'}, 'TLG1696': {'works': ['TXT-001'], 'name': 'Straton Phil.'}, 'TLG1732': {'works': ['TXT-002'], 'name': 'Timachidas Hist.'}, 'TLG2455': {'works': ['TXT-003'], 'name': 'Aristocreon Hist.'}, 'TLG1603': {'works': ['TXT-001'], 'name': 'Phintys Phil.'}, 'TLG2387': {'works': ['TXT-003'], 'name': 'Athanis Hist.'}, 'TLG1353': {'works': ['TXT-001'], 'name': 'Epitaphium Abercii'}, 'TLG2006': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011'], 'name': 'Synesius Phil.'}, 'TLG1191': {'works': ['TXT-001'], 'name': 'Aristombrotus Phil.'}, 'TLG2202': {'works': ['TXT-002'], 'name': '[Menyllus] Hist.'}, 'TLG2461': {'works': ['TXT-003'], 'name': 'Uranius Hist.'}, 'TLG2699': {'works': ['TXT-001'], 'name': 'Amphicrates Rhet.'}, 'TLG2428': {'works': ['TXT-002'], 'name': 'Thrasyllus Hist.'}, 'TLG0338': {'works': ['TXT-001'], 'name': 'Sosiphanes Trag.'}, 'TLG1362': {'works': ['TXT-001', 'TXT-002'], 'name': 'Eurytus Phil.'}, 'TLG0411': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Apollodorus Comic.'}, 'TLG1218': {'works': ['TXT-003'], 'name': 'Basilis Hist.'}, 'TLG0549': {'works': ['TXT-003', 'TXT-005'], 'name': 'Apollodorus Gramm.'}, 'TLG1954': {'works': ['TXT-001'], 'name': 'Heraclides Phil.'}, 'TLG0501': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Sannyrion Comic.'}, 'TLG0237': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Anacreon Lyr.'}, 'TLG1129': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anonymi De Barbarismo Et Soloecismo Gramm.'}, 'TLG2225': {'works': ['TXT-001'], 'name': 'Parm(en)iscus Phil.'}, 'TLG0661': {'works': ['TXT-001', 'TXT-002'], 'name': 'Archigenes Med.'}, 'TLG0038': {'works': ['TXT-001'], 'name': 'Arcesilai Epistula'}, 'TLG0234': {'works': ['TXT-001'], 'name': 'Elegiaca Adespota (IEG)'}, 'TLG3002': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-018', 'TXT-019'], 'name': 'Prolegomena De Comoedia'}, 'TLG0014': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064'], 'name': 'Demosthenes Orat.'}, 'TLG3088': {'works': ['TXT-002'], 'name': 'Nicephorus Bryennius Hist.'}, 'TLG2404': {'works': ['TXT-001'], 'name': 'Philogelos'}, 'TLG1828': {'works': ['TXT-001'], 'name': 'Pamphila Hist.'}, 'TLG1328': {'works': ['TXT-001'], 'name': 'Dionysius Hist.'}, 'TLG0354': {'works': ['TXT-001'], 'name': 'Zenodotus Trag.'}, 'TLG1260': {'works': ['TXT-002'], 'name': '[Chersias] Epic.'}, 'TLG0298': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Eumelus Epic.'}, 'TLG1237': {'works': ['TXT-001'], 'name': 'Callicratidas Phil.'}, 'TLG2284': {'works': ['TXT-003'], 'name': 'Anaxandridas Hist.'}, 'TLG4094': {'works': ['TXT-001', 'TXT-002'], 'name': 'Choricius Rhet. et Soph.'}, 'TLG1715': {'works': ['TXT-001', 'TXT-002'], 'name': 'Theodoridas Epigr.'}, 'TLG0404': {'works': ['TXT-001', 'TXT-002'], 'name': 'Amphis Comic.'}, 'TLG1725': {'works': ['TXT-001'], 'name': 'Theophilus Apol.'}, 'TLG2595': {'works': ['TXT-001'], 'name': 'Philo Paradox.'}, 'TLG2386': {'works': ['TXT-003'], 'name': 'Timonides Hist.'}, 'TLG1360': {'works': ['TXT-001'], 'name': 'Euryphamus Phil.'}, 'TLG1241': {'works': ['TXT-002'], 'name': 'Carmen Naupactium'}, 'TLG2195': {'works': ['TXT-002'], 'name': '[Chrysermus] Hist.'}, 'TLG1765': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Vitae Aesopi'}, 'TLG0264': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Susarion Comic.'}, 'TLG1844': {'works': ['TXT-001'], 'name': 'Hera[clides] Trag.'}, 'TLG1941': {'works': ['TXT-003'], 'name': 'Leo Hist.'}, 'TLG1355': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Erinna Lyr.'}, 'TLG1643': {'works': ['TXT-003', 'TXT-004'], 'name': 'Ptolemaeus Gramm.'}, 'TLG0032': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015'], 'name': 'Xenophon Hist.'}, 'TLG0072': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023'], 'name': 'Anonymi Grammatici Gramm.'}, 'TLG1949': {'works': ['TXT-003'], 'name': 'Potamon Hist.'}, 'TLG2866': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015'], 'name': 'Oecumenius Phil. et Rhet.'}, 'TLG0268': {'works': ['TXT-001', 'TXT-002'], 'name': 'Mesomedes Lyr.'}, 'TLG0748': {'works': ['TXT-001'], 'name': 'Severus Iatrosophista Med.'}, 'TLG2162': {'works': ['TXT-003'], 'name': 'Aratus Hist.'}, 'TLG2620': {'works': ['TXT-001'], 'name': 'Dionysius Iambus Gramm. et Poeta'}, 'TLG1753': {'works': ['TXT-002'], 'name': 'Xenion Hist.'}, 'TLG0441': {'works': ['TXT-001', 'TXT-002'], 'name': 'Demonicus Comic.'}, 'TLG1698': {'works': ['TXT-003'], 'name': 'Telephus Gramm.'}, 'TLG0405': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Anaxandrides Comic.'}, 'TLG2260': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hippasus Phil.'}, 'TLG3039': {'works': ['TXT-001', 'TXT-002'], 'name': 'Joannes Galenus Gramm.'}, 'TLG0455': {'works': ['TXT-001', 'TXT-002'], 'name': 'Eriphus Comic.'}, 'TLG1754': {'works': ['TXT-001'], 'name': 'Xenophontis Epistulae'}, 'TLG0005': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Theocritus Bucol.'}, 'TLG2045': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Nonnus Epic.'}, 'TLG0313': {'works': ['TXT-001'], 'name': 'Theognis Trag.'}, 'TLG2531': {'works': ['TXT-003'], 'name': 'Metrophanes Hist.'}, 'TLG2001': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042'], 'name': 'Themistius Phil. et Rhet.'}, 'TLG2701': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Georgius Pisides Poeta'}, 'TLG0532': {'works': ['TXT-001'], 'name': 'Achilles Tatius Scr. Erot.'}, 'TLG0579': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013'], 'name': 'Orphica'}, 'TLG0513': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Theopompus Comic.'}, 'TLG4031': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Eustratius Phil.'}, 'TLG2655': {'works': ['TXT-002'], 'name': 'Damigeron Magus'}, 'TLG2034': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-027', 'TXT-029'], 'name': 'Porphyrius Phil.'}, 'TLG1498': {'works': ['TXT-003'], 'name': 'Menander Hist.'}, 'TLG0305': {'works': ['TXT-001'], 'name': 'Aristias Trag.'}, 'TLG2201': {'works': ['TXT-002'], 'name': '[Ctesiphon] Hist.'}, 'TLG5009': {'works': ['TXT-001'], 'name': 'Scholia In Aeschinem'}, 'TLG0710': {'works': ['TXT-001'], 'name': 'Amphiarai Exilium (?)'}, 'TLG0437': {'works': ['TXT-001', 'TXT-002'], 'name': 'Crobylus Comic.'}, 'TLG1969': {'works': ['TXT-003'], 'name': 'Philinus Hist.'}, 'TLG1171': {'works': ['TXT-001'], 'name': 'Apollonius Scr. Eccl.'}, 'TLG0551': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018'], 'name': 'Appianus Hist.'}, 'TLG1654': {'works': ['TXT-001', 'TXT-002'], 'name': 'Rhinthon Comic.'}, 'TLG2383': {'works': ['TXT-001'], 'name': 'Diodorus Phil.'}, 'TLG0323': {'works': ['TXT-001'], 'name': 'Antiphon Trag.'}, 'TLG1270': {'works': ['TXT-001'], 'name': 'Clearchus Phil.'}, 'TLG0615': {'works': ['TXT-001'], 'name': 'Aspasius Phil.'}, 'TLG4072': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Eutocius Math.'}, 'TLG0498': {'works': ['TXT-001', 'TXT-002'], 'name': 'Poliochus Comic.'}, 'TLG1210': {'works': ['TXT-001', 'TXT-002'], 'name': 'Autolycus Astron.'}, 'TLG0566': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Theopompus Hist.'}, 'TLG0617': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anaximenes Phil.'}, 'TLG0239': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Antimachus Eleg. et Epic.'}, 'TLG1349': {'works': ['TXT-001'], 'name': 'Epistula A Martyribus Lugdunensibus'}, 'TLG2294': {'works': ['TXT-001'], 'name': 'Zeno Phil.'}, 'TLG0094': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Pseudo-Plutarchus'}, 'TLG0726': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Palladius Med.'}, 'TLG1411': {'works': ['TXT-001'], 'name': 'Heracliti Ephesii Epistulae'}, 'TLG1313': {'works': ['TXT-003'], 'name': 'Dieuchidas Hist.'}, 'TLG0062': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071'], 'name': 'Lucianus Soph.'}, 'TLG0565': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Soranus Med.'}, 'TLG0389': {'works': ['TXT-001'], 'name': 'Acta Petri'}, 'TLG0570': {'works': ['TXT-002', 'TXT-003'], 'name': 'Archelaus Paradox.'}, 'TLG2512': {'works': ['TXT-002'], 'name': 'Paeon Hist.'}, 'TLG0086': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056'], 'name': 'Aristoteles Phil. et Corpus Aristotelicum, Aristotle'}, 'TLG9023': {'works': ['TXT-001', 'TXT-002'], 'name': 'Thomas Magister Philol.'}, 'TLG0981': {'works': ['TXT-001'], 'name': 'Stesichorus II Lyr.'}, 'TLG0056': {'works': ['TXT-001'], 'name': 'Thrasybuli Epistula'}, 'TLG2268': {'works': ['TXT-002'], 'name': 'Timagoras Hist.'}, 'TLG0059': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041'], 'name': 'Plato Phil.'}, 'TLG0390': {'works': ['TXT-001'], 'name': 'Martyrium Carpi, Papyli Et Agathonicae'}, 'TLG1507': {'works': ['TXT-001'], 'name': 'Metopus Phil.'}, 'TLG2050': {'works': ['TXT-001', 'TXT-002'], 'name': 'Eunapius Hist. et Soph.'}, 'TLG1269': {'works': ['TXT-001', 'TXT-002'], 'name': 'Cleanthes Phil.'}, 'TLG1632': {'works': ['TXT-001', 'TXT-004'], 'name': 'Posidippus Epigr.'}, 'TLG1733': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Timaeus Hist.'}, 'TLG0489': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Philetaerus Comic.'}, 'TLG1706': {'works': ['TXT-003'], 'name': 'Thallus Hist.'}, 'TLG0083': {'works': ['TXT-002', 'TXT-003'], 'name': 'Dionysius Geogr.'}, 'TLG0576': {'works': ['TXT-003'], 'name': 'Musaeus Epic.'}, 'TLG4026': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Anonymi In Aristotelis Artem Rhetoricam Rhet.'}, 'TLG0466': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heraclides Comic.'}, 'TLG2326': {'works': ['TXT-003', 'TXT-004'], 'name': 'Dei(l)ochus Hist.'}, 'TLG1846': {'works': ['TXT-001'], 'name': 'Spintharus Trag.'}, 'TLG2417': {'works': ['TXT-003'], 'name': 'Cineas Rhet.'}, 'TLG2511': {'works': ['TXT-002'], 'name': 'Demetrius Hist.'}, 'TLG1266': {'works': ['TXT-001'], 'name': 'Tyrannion Gramm.'}, 'TLG1372': {'works': ['TXT-001'], 'name': 'Evangelium Evae'}, 'TLG2585': {'works': ['TXT-001'], 'name': 'Marcellinus Biogr.'}, 'TLG2474': {'works': ['TXT-002'], 'name': 'Nicander Hist.'}, 'TLG1482': {'works': ['TXT-001'], 'name': 'Cyranides'}, 'TLG1811': {'works': ['TXT-001'], 'name': 'Metrodorus Major Phil.'}, 'TLG1225': {'works': ['TXT-003'], 'name': 'Bion Hist.'}, 'TLG0344': {'works': ['TXT-001'], 'name': 'Melanthius Trag.'}, 'TLG2881': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-005'], 'name': 'Romanus Melodus Hymnographus'}, 'TLG0271': {'works': ['TXT-001'], 'name': 'Conventus Avium'}, 'TLG4046': {'works': ['TXT-001'], 'name': 'Theophanes Confessor Chronogr.'}, 'TLG1319': {'works': ['TXT-001', 'TXT-002'], 'name': 'Diogenes Phil.'}, 'TLG4147': {'works': ['TXT-001'], 'name': 'Florilegium Cyrillianum'}, 'TLG2110': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013'], 'name': 'Cyrillus Scr. Eccl.'}, 'TLG0054': {'works': ['TXT-001'], 'name': 'Theano Phil.'}, 'TLG1176': {'works': ['TXT-001'], 'name': 'Archytas Epic.'}, 'TLG0346': {'works': ['TXT-001'], 'name': 'Pompeius Macer Trag.'}, 'TLG4033': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Anonymi In Aristotelis Ethica Nicomachea Phil.'}, 'TLG1597': {'works': ['TXT-001'], 'name': 'Telauges Phil.'}, 'TLG1412': {'works': ['TXT-001'], 'name': 'Pseudo-Heracliti Epistulae'}, 'TLG0418': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aristagoras Comic.'}, 'TLG1500': {'works': ['TXT-001'], 'name': 'Menecrates Poet. Phil.'}, 'TLG0506': {'works': ['TXT-001', 'TXT-002'], 'name': 'Stephanus Comic.'}, 'TLG0309': {'works': ['TXT-001'], 'name': 'Achaeus Trag.'}, 'TLG5010': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023'], 'name': 'Scholia In Aeschylum'}, 'TLG1676': {'works': ['TXT-001', 'TXT-002'], 'name': 'Simylus Iamb.'}, 'TLG1596': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Philolaus Phil.'}, 'TLG0212': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Philetas Eleg. et Gramm.'}, 'TLG4083': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-006'], 'name': 'Eustathius Philol. et Scr. Eccl.'}, 'TLG0424': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Axionicus Comic.'}, 'TLG1713': {'works': ['TXT-002'], 'name': 'Themison Hist.'}, 'TLG4235': {'works': ['TXT-001', 'TXT-002'], 'name': 'Joannes Rhet.'}, 'TLG0545': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Claudius Aelianus Soph.'}, 'TLG2061': {'works': ['TXT-001', 'TXT-002'], 'name': 'Asterius Sophista Scr. Eccl.'}, 'TLG0427': {'works': ['TXT-001', 'TXT-002'], 'name': 'Callippus Comic.'}, 'TLG5030': {'works': ['TXT-001'], 'name': 'Scholia In Lycophronem'}, 'TLG1701': {'works': ['TXT-001', 'TXT-002'], 'name': 'Testamentum Abrahae'}, 'TLG0715': {'works': ['TXT-001'], 'name': 'Paulus Med.'}, 'TLG2031': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Sopater Rhet.'}, 'TLG0659': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Comica Adespota (Suppl. Com.)'}, 'TLG0479': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nico Comic.'}, 'TLG0719': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Aretaeus Med.'}, 'TLG4080': {'works': ['TXT-001'], 'name': 'Geoponica'}, 'TLG4391': {'works': ['TXT-001'], 'name': 'Glaucus Hist.'}, 'TLG1083': {'works': ['TXT-002'], 'name': 'Isigonus Paradox.'}, 'TLG1268': {'works': ['TXT-002'], 'name': 'Claudius Iolaus Hist.'}, 'TLG0165': {'works': ['TXT-001', 'TXT-002'], 'name': 'Diodorus Rhet.'}, 'TLG2240': {'works': ['TXT-001'], 'name': 'Hicetas Phil.'}, 'TLG0074': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018'], 'name': 'Flavius Arrianus Hist. et Phil.'}, 'TLG2141': {'works': ['TXT-003'], 'name': 'Publius Herennius Dexippus Hist.'}, 'TLG4110': {'works': ['TXT-001', 'TXT-002', 'TXT-007', 'TXT-008', 'TXT-010', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-028', 'TXT-030', 'TXT-031', 'TXT-040', 'TXT-043'], 'name': 'Evagrius Scr. Eccl.'}, 'TLG2903': {'works': ['TXT-001'], 'name': 'Minucianus Junior Rhet.'}, 'TLG0017': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013'], 'name': 'Isaeus Orat.'}, 'TLG1358': {'works': ['TXT-001', 'TXT-003'], 'name': 'Eudoxus Astron.'}, 'TLG1196': {'works': ['TXT-003', 'TXT-004'], 'name': 'Aristophanes Hist.'}, 'TLG0353': {'works': ['TXT-001'], 'name': 'Sclerias Trag.'}, 'TLG1728': {'works': ['TXT-003'], 'name': 'Theseus Hist.'}, 'TLG1371': {'works': ['TXT-001'], 'name': 'Evangelium Petri'}, 'TLG1625': {'works': ['TXT-001', 'TXT-002'], 'name': 'Polyclitus Phil.'}, 'TLG2151': {'works': ['TXT-002'], 'name': 'Praxagoras Hist.'}, 'TLG0002': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Theognis Eleg.'}, 'TLG1248': {'works': ['TXT-001'], 'name': 'Celsus Phil.'}, 'TLG0314': {'works': ['TXT-001'], 'name': 'Morsimus Trag.'}, 'TLG4163': {'works': ['TXT-001'], 'name': 'Telegonia'}, 'TLG0359': {'works': ['TXT-001'], 'name': 'Isidorus Scriptor Hymnorum'}, 'TLG4037': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Anonymi Paradoxographi'}, 'TLG0300': {'works': ['TXT-001'], 'name': 'Acta Alexandrinorum'}, 'TLG1307': {'works': ['TXT-003'], 'name': 'Demon Hist.'}, 'TLG1981': {'works': ['TXT-003'], 'name': 'Theophanes Hist.'}, 'TLG2233': {'works': ['TXT-001'], 'name': 'Pseudo-Polemon'}, 'TLG5016': {'works': ['TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-022', 'TXT-023', 'TXT-024'], 'name': 'Scholia In Callimachum'}, 'TLG2397': {'works': ['TXT-001'], 'name': 'Boethus Phil.'}, 'TLG1642': {'works': ['TXT-001'], 'name': 'Pseudo-Ptolemaeus'}, 'TLG2533': {'works': ['TXT-002'], 'name': 'Timolaus Hist.'}, 'TLG1312': {'works': ['TXT-003', 'TXT-004'], 'name': 'Didymus Gramm.'}, 'TLG1143': {'works': ['TXT-001'], 'name': 'Antiochus Phil.'}, 'TLG2950': {'works': ['TXT-001'], 'name': 'Adamantius Theol.'}, 'TLG1558': {'works': ['TXT-001'], 'name': 'Papias Scr. Eccl.'}, 'TLG2680': {'works': ['TXT-001'], 'name': 'Scythinus Epigr.'}, 'TLG0553': {'works': ['TXT-001'], 'name': 'Artemidorus Onir.'}, 'TLG0440': {'works': ['TXT-001', 'TXT-002'], 'name': 'Demetrius Junior Comic.'}, 'TLG1509': {'works': ['TXT-001'], 'name': 'Milon Phil.'}, 'TLG0562': {'works': ['TXT-001'], 'name': 'Marcus Aurelius Antoninus Imperator Phil.'}, 'TLG1821': {'works': ['TXT-001', 'TXT-002'], 'name': 'Iambica Adespota (ALG)'}, 'TLG0646': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012'], 'name': 'Pseudo-Justinus Martyr'}, 'TLG0494': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Philyllius Comic.'}, 'TLG0703': {'works': ['TXT-001'], 'name': 'Numenius Poet. Didac.'}, 'TLG2632': {'works': ['TXT-001'], 'name': 'Comarius Alchem.'}, 'TLG0469': {'works': ['TXT-001', 'TXT-002'], 'name': 'Laon Comic.'}, 'TLG1337': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Dorotheus Astrol.'}, 'TLG1376': {'works': ['TXT-001'], 'name': 'Eudemus Rhet.'}, 'TLG1197': {'works': ['TXT-001'], 'name': 'Artemon Gramm.'}, 'TLG0738': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010'], 'name': 'Hippiatrica'}, 'TLG9009': {'works': ['TXT-001'], 'name': 'Michael Apostolius Paroemiogr.'}, 'TLG2130': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-032'], 'name': 'Arethas Philol. et Scr. Eccl.'}, 'TLG1115': {'works': ['TXT-001'], 'name': 'Archestratus Trag.'}, 'TLG3070': {'works': ['TXT-001'], 'name': 'Symeon Logothetes Hist.'}, 'TLG0228': {'works': ['TXT-001'], 'name': 'Anonymi Hymnus In Dactylos Idaeos'}, 'TLG0373': {'works': ['TXT-001'], 'name': 'Melanippides Lyr.'}, 'TLG2019': {'works': ['TXT-001'], 'name': 'Pelagius Alchem.'}, 'TLG0582': {'works': ['TXT-001'], 'name': 'Paradoxographus Vaticanus'}, 'TLG1760': {'works': ['TXT-001', 'TXT-002'], 'name': 'Gaius Suetonius Tranquillus Gramm. et Hist.'}, 'TLG2877': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Cyrillus Biogr.'}, 'TLG1149': {'works': ['TXT-001'], 'name': 'Antonini Pii Imperatoris Epistula'}, 'TLG0400': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Alcaeus Comic.'}, 'TLG2475': {'works': ['TXT-002'], 'name': 'Menecrates Hist.'}, 'TLG2298': {'works': ['TXT-002'], 'name': 'Lysanias Hist.'}, 'TLG3155': {'works': ['TXT-001'], 'name': 'Joannes Protospatharius Gramm.'}, 'TLG2245': {'works': ['TXT-001'], 'name': 'Simus Phil.'}, 'TLG1720': {'works': ['TXT-002'], 'name': 'Theodotus Judaeus Epic.'}, 'TLG0446': {'works': ['TXT-001', 'TXT-002'], 'name': 'Dioxippus Comic.'}, 'TLG1799': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017'], 'name': 'Euclides Geom.'}, 'TLG0207': {'works': ['TXT-001'], 'name': 'Hermocles Lyr.'}, 'TLG4302': {'works': ['TXT-001'], 'name': 'Lexicon Patmense'}, 'TLG0231': {'works': ['TXT-001'], 'name': 'Elegiaca Adespota (CA)'}, 'TLG4305': {'works': ['TXT-001'], 'name': 'Claudius Casilon Gramm.'}, 'TLG0385': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017'], 'name': 'Cassius Dio Hist., Dio Cassius'}, 'TLG2291': {'works': ['TXT-001'], 'name': 'Cratylus Phil.'}, 'TLG2000': {'works': ['TXT-001'], 'name': 'Plotinus Phil.'}, 'TLG2322': {'works': ['TXT-003'], 'name': 'Antenor Hist.'}, 'TLG2640': {'works': ['TXT-001'], 'name': 'Eusebius Phil.'}, 'TLG2049': {'works': ['TXT-001'], 'name': 'Sallustius Phil.'}, 'TLG0199': {'works': ['TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023'], 'name': 'Bacchylides Lyr.'}, 'TLG1764': {'works': ['TXT-001'], 'name': 'Vettius Valens Astrol.'}, 'TLG3157': {'works': ['TXT-001'], 'name': 'Theodorus Scutariota Hist.'}, 'TLG1763': {'works': ['TXT-001'], 'name': 'Tryphon II Gramm.'}, 'TLG1499': {'works': ['TXT-002'], 'name': 'Menecles Hist.'}, 'TLG2634': {'works': ['TXT-001'], 'name': 'Pamphilus Poeta'}, 'TLG1605': {'works': ['TXT-001'], 'name': 'Pseudo-Phocylides Gnom.'}, 'TLG4019': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-008'], 'name': 'Olympiodorus Phil.'}, 'TLG1750': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Vitae Prophetarum'}, 'TLG2192': {'works': ['TXT-002'], 'name': '[Agatharchides] Hist.'}, 'TLG0009': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Sappho Lyr.'}, 'TLG1775': {'works': ['TXT-001'], 'name': 'Pseudo-Agathon Epigr.'}, 'TLG0057': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-077', 'TXT-078', 'TXT-079', 'TXT-080', 'TXT-081', 'TXT-082', 'TXT-083', 'TXT-084', 'TXT-085', 'TXT-086', 'TXT-087', 'TXT-088', 'TXT-089', 'TXT-090', 'TXT-091', 'TXT-092', 'TXT-093', 'TXT-094', 'TXT-095', 'TXT-096', 'TXT-097', 'TXT-099', 'TXT-100', 'TXT-101', 'TXT-102', 'TXT-103', 'TXT-104', 'TXT-105', 'TXT-106', 'TXT-107', 'TXT-111', 'TXT-114', 'TXT-115', 'TXT-121'], 'name': 'Galenus Med.'}, 'TLG1202': {'works': ['TXT-001'], 'name': 'Athamas Phil.'}, 'TLG1779': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anonymus Epicureus Phil.'}, 'TLG1190': {'works': ['TXT-003'], 'name': 'Aristagoras Hist.'}, 'TLG4340': {'works': ['TXT-001'], 'name': 'Salmanas Alchem.'}, 'TLG2317': {'works': ['TXT-001'], 'name': 'Hermias Phil.'}, 'TLG2729': {'works': ['TXT-001'], 'name': 'Prorus Phil.'}, 'TLG5002': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Magica'}, 'TLG0137': {'works': ['TXT-001', 'TXT-002'], 'name': 'Asclepiades Epigr.'}, 'TLG0288': {'works': ['TXT-001', 'TXT-003'], 'name': 'Pisander Epic.'}, 'TLG1342': {'works': ['TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Empedocles Poet. Phil.'}, 'TLG5033': {'works': ['TXT-001'], 'name': 'Scholia In Pausaniam'}, 'TLG1687': {'works': ['TXT-003'], 'name': 'Sosicrates Hist.'}, 'TLG1211': {'works': ['TXT-003'], 'name': 'Balagrus Hist.'}, 'TLG1691': {'works': ['TXT-001'], 'name': 'Sotades Iamb.'}, 'TLG0524': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sophron Mimogr.'}, 'TLG0200': {'works': ['TXT-001'], 'name': 'Mantissa Proverbiorum'}, 'TLG2578': {'works': ['TXT-001', 'TXT-002'], 'name': 'Joannes Gramm. et Poeta'}, 'TLG2592': {'works': ['TXT-003'], 'name': 'Joannes Pediasimus Philol. et Rhet.'}, 'TLG2200': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-011', 'TXT-012', 'TXT-013'], 'name': 'Libanius Rhet. et Soph.'}, 'TLG1329': {'works': ['TXT-001'], 'name': 'Dionysius Scr. Eccl.'}, 'TLG0561': {'works': ['TXT-001'], 'name': 'Longus Scr. Erot.'}, 'TLG2021': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043'], 'name': 'Epiphanius Scr. Eccl.'}, 'TLG2307': {'works': ['TXT-002'], 'name': 'Artemon Hist.'}, 'TLG1795': {'works': ['TXT-001'], 'name': 'Chaerion Comic.'}, 'TLG1623': {'works': ['TXT-002'], 'name': 'Polycharmus Hist.'}, 'TLG1736': {'works': ['TXT-002'], 'name': 'Timonax Hist.'}, 'TLG0210': {'works': ['TXT-001'], 'name': 'Euphronius Lyr.'}, 'TLG2274': {'works': ['TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Hesychius Illustrius Hist.'}, 'TLG1781': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philippus Comic.'}, 'TLG2615': {'works': ['TXT-001'], 'name': 'Daphitas Gramm. vel Soph.'}, 'TLG0244': {'works': ['TXT-001'], 'name': 'Cleobulina Scriptor Aenigmatum'}, 'TLG1699': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Teles Phil.'}, 'TLG0236': {'works': ['TXT-001'], 'name': 'Alcibiades Eleg.'}, 'TLG2215': {'works': ['TXT-002'], 'name': 'Ar(i)aethus Hist.'}, 'TLG1945': {'works': ['TXT-003'], 'name': 'Antigenes Hist.'}, 'TLG2949': {'works': ['TXT-001'], 'name': 'Acta Barnabae'}, 'TLG2205': {'works': ['TXT-002'], 'name': 'Autesion Hist.'}, 'TLG5029': {'works': ['TXT-001', 'TXT-002'], 'name': 'Scholia In Lucianum'}, 'TLG1911': {'works': ['TXT-003'], 'name': 'Diyllus Hist.'}, 'TLG4085': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Hesychius Lexicogr.'}, 'TLG4337': {'works': ['TXT-001'], 'name': 'Heliodorus Alchem. et Poeta'}, 'TLG0316': {'works': ['TXT-001'], 'name': 'Xenocles Trag.'}, 'TLG2247': {'works': ['TXT-001'], 'name': 'Petron Phil.'}, 'TLG0478': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Nausicrates Comic.'}, 'TLG1339': {'works': ['TXT-003', 'TXT-005'], 'name': 'Duris Hist.'}, 'TLG1182': {'works': ['TXT-004'], 'name': '[Aristeas] Epic.'}, 'TLG4030': {'works': ['TXT-001'], 'name': 'Sophonias Phil.'}, 'TLG9022': {'works': ['TXT-003', 'TXT-004', 'TXT-006'], 'name': 'Joannes Tzetzes Gramm. et Poeta'}, 'TLG1407': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heraclides Lembus Hist.'}, 'TLG0460': {'works': ['TXT-001', 'TXT-002'], 'name': 'Euphro Comic.'}, 'TLG2539': {'works': ['TXT-003'], 'name': 'Diophantus Hist.'}, 'TLG1751': {'works': ['TXT-003', 'TXT-004'], 'name': 'Xanthus Hist.'}, 'TLG0445': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Dionysius Comic.'}, 'TLG2016': {'works': ['TXT-001'], 'name': 'Passio Perpetuae Et Felicitatis'}, 'TLG2181': {'works': ['TXT-001', 'TXT-002'], 'name': 'Moses Alchem.'}, 'TLG2384': {'works': ['TXT-003'], 'name': 'Hermias Hist.'}, 'TLG1180': {'works': ['TXT-001'], 'name': 'Aristaeus Phil.'}, 'TLG2054': {'works': ['TXT-001'], 'name': 'Aristides Quintilianus Mus.'}, 'TLG1557': {'works': ['TXT-001', 'TXT-003'], 'name': 'Panyassis Epic.'}, 'TLG0527': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059'], 'name': 'Septuaginta'}, 'TLG4161': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014'], 'name': 'Vitae Arati Et Varia De Arato'}, 'TLG5004': {'works': ['TXT-001', 'TXT-002'], 'name': 'Epimerismi'}, 'TLG2339': {'works': ['TXT-002'], 'name': 'Maeandrius Hist.'}, 'TLG4105': {'works': ['TXT-001'], 'name': 'Julianus Scr. Eccl.'}, 'TLG0337': {'works': ['TXT-001'], 'name': 'Python Trag.'}, 'TLG0355': {'works': ['TXT-001'], 'name': 'Zopyrus Trag.'}, 'TLG0058': {'works': ['TXT-001'], 'name': 'Aeneas Tact.'}, 'TLG0258': {'works': ['TXT-001'], 'name': 'Pigres Eleg.'}, 'TLG1838': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Theon Gramm.'}, 'TLG1791': {'works': ['TXT-001', 'TXT-002'], 'name': 'Menandri Et Philistionis Sententiae'}, 'TLG1590': {'works': ['TXT-002'], 'name': 'Philippus Hist.'}, 'TLG2633': {'works': ['TXT-001'], 'name': 'Niceratus Epic.'}, 'TLG0248': {'works': ['TXT-001'], 'name': 'Diphilus Epic. et Iamb.'}, 'TLG2970': {'works': ['TXT-001'], 'name': 'Severus Phil.'}, 'TLG5046': {'works': ['TXT-001'], 'name': 'Scholia In Theonem Rhetorem'}, 'TLG0350': {'works': ['TXT-001'], 'name': 'Dionysius Scymnaeus Trag. vel Comic.'}, 'TLG1553': {'works': ['TXT-001', 'TXT-004'], 'name': 'Palaephatus Myth.'}, 'TLG2691': {'works': ['TXT-001', 'TXT-002'], 'name': '[Musaeus] Phil.'}, 'TLG0310': {'works': ['TXT-001'], 'name': 'Carcinus Trag.'}, 'TLG1240': {'works': ['TXT-003'], 'name': 'Callixenus Hist.'}, 'TLG2102': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-030', 'TXT-032', 'TXT-033', 'TXT-035', 'TXT-037', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049'], 'name': 'Didymus Caecus Scr. Eccl., Didymus the Blind'}, 'TLG4021': {'works': ['TXT-001', 'TXT-002'], 'name': 'David Phil.'}, 'TLG0539': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Hellanicus Hist.'}, 'TLG0641': {'works': ['TXT-001', 'TXT-002'], 'name': 'Xenophon Scr. Erot.'}, 'TLG0370': {'works': ['TXT-001'], 'name': 'Lamprocles Lyr.'}, 'TLG2482': {'works': ['TXT-003'], 'name': 'Daimachus Hist.'}, 'TLG1121': {'works': ['TXT-001'], 'name': 'Anaximenis Milesii Epistulae'}, 'TLG1849': {'works': ['TXT-001'], 'name': 'Demetrius Trag.'}, 'TLG1494': {'works': ['TXT-001', 'TXT-002'], 'name': 'Melissus Phil.'}, 'TLG2109': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013'], 'name': 'Pseudo-Macarius Scr. Eccl.'}, 'TLG4346': {'works': ['TXT-001'], 'name': 'Menecrates Hist.'}, 'TLG4184': {'works': ['TXT-001'], 'name': 'Dionysius Soph.'}, 'TLG1397': {'works': ['TXT-003'], 'name': 'Hegesippus Hist.'}, 'TLG0386': {'works': ['TXT-001'], 'name': 'Chilonis Epistula'}, 'TLG0016': {'works': ['TXT-001'], 'name': 'Herodotus Hist.'}, 'TLG1442': {'works': ['TXT-004'], 'name': 'Idomeneus Hist.'}, 'TLG1470': {'works': ['TXT-003', 'TXT-004'], 'name': 'Lycus Hist.'}, 'TLG0688': {'works': ['TXT-003', 'TXT-005'], 'name': 'Agathocles Hist.'}, 'TLG1491': {'works': ['TXT-002'], 'name': 'Melanthius Hist.'}, 'TLG0548': {'works': ['TXT-001'], 'name': 'Pseudo-Apollodorus Myth.'}, 'TLG0729': {'works': ['TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Theophilus Protospatharius Med.'}, 'TLG4153': {'works': ['TXT-001'], 'name': 'Theophanes Continuatus'}, 'TLG0619': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Apollonius Phil.'}, 'TLG1609': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Phylarchus Hist.'}, 'TLG2052': {'works': ['TXT-001', 'TXT-002'], 'name': 'Horapollo Gramm.'}, 'TLG0284': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057'], 'name': 'Aelius Aristides Rhet.'}, 'TLG0311': {'works': ['TXT-001'], 'name': 'Iophon Trag.'}, 'TLG0888': {'works': ['TXT-001'], 'name': 'Eudemus Poet. Med.'}, 'TLG0092': {'works': ['TXT-001'], 'name': 'Anonymi Geographiae Expositio Compendiaria'}, 'TLG2187': {'works': ['TXT-002'], 'name': 'Posidonius Hist.'}, 'TLG1533': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nicias Epigr.'}, 'TLG1727': {'works': ['TXT-002'], 'name': 'Theotimus Hist.'}, 'TLG2542': {'works': ['TXT-003'], 'name': 'Quintus Fabius Pictor Hist.'}, 'TLG1216': {'works': ['TXT-001'], 'name': 'Barnabae Epistula'}, 'TLG0645': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Justinus Martyr Apol.'}, 'TLG2434': {'works': ['TXT-003'], 'name': 'Aelius Dius Hist.'}, 'TLG1788': {'works': ['TXT-001', 'TXT-002'], 'name': 'Phormis Comic.'}, 'TLG4236': {'works': ['TXT-001'], 'name': 'Trophonius Rhet. et Soph.'}, 'TLG0232': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Archilochus Eleg. et Iamb.'}, 'TLG1587': {'works': ['TXT-001'], 'name': 'Philiades Eleg.'}, 'TLG3168': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Pseudo-Codinus Hist.'}, 'TLG1566': {'works': ['TXT-001', 'TXT-002'], 'name': 'Parmeno Iamb.'}, 'TLG1239': {'works': ['TXT-002'], 'name': 'Domitius Callistratus Hist.'}, 'TLG4326': {'works': ['TXT-001'], 'name': 'Pappus Alchem.'}, 'TLG2560': {'works': ['TXT-002'], 'name': 'Pythocles Hist.'}, 'TLG1692': {'works': ['TXT-001', 'TXT-002', 'TXT-004', 'TXT-005'], 'name': 'Speusippus Phil.'}, 'TLG2319': {'works': ['TXT-001'], 'name': 'Apollodorus Phil.'}, 'TLG5017': {'works': ['TXT-001'], 'name': 'Scholia In Demosthenem'}, 'TLG0482': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nicomachus Comic.'}, 'TLG0045': {'works': ['TXT-001'], 'name': 'Artaxerxis Epistulae'}, 'TLG1599': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philo Mech.'}, 'TLG1747': {'works': ['TXT-001'], 'name': 'Vita Adam Et Evae'}, 'TLG1729': {'works': ['TXT-001', 'TXT-002'], 'name': 'Thrasymachus Rhet. et Soph.'}, 'TLG1560': {'works': ['TXT-001'], 'name': 'Matthiae Traditiones'}, 'TLG0289': {'works': ['TXT-001', 'TXT-002'], 'name': 'Ammonius Epigr.'}, 'TLG0381': {'works': ['TXT-001'], 'name': 'Lycophronides Lyr.'}, 'TLG3142': {'works': ['TXT-001', 'TXT-002'], 'name': 'Georgius Pachymeres Hist.'}, 'TLG1735': {'works': ['TXT-002', 'TXT-003'], 'name': 'Timon Phil.'}, 'TLG1463': {'works': ['TXT-001', 'TXT-002'], 'name': 'Liber Enoch'}, 'TLG1496': {'works': ['TXT-003'], 'name': 'Memnon Hist.'}, 'TLG1585': {'works': ['TXT-001'], 'name': 'Pherecydis Epistula'}, 'TLG0499': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Polyzelus Comic.'}, 'TLG2303': {'works': ['TXT-001', 'TXT-002'], 'name': 'Archelaus Phil.'}, 'TLG2115': {'works': ['TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060'], 'name': 'Hippolytus Scr. Eccl.'}, 'TLG0745': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hierophilus Phil. et Soph.'}, 'TLG2614': {'works': ['TXT-001'], 'name': 'Cleomachus Poeta'}, 'TLG0421': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aristophon Comic.'}, 'TLG1181': {'works': ['TXT-001'], 'name': 'Aristarchus Astron.'}, 'TLG0502': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sophilus Comic.'}, 'TLG0426': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Callias Comic.'}, 'TLG1127': {'works': ['TXT-001'], 'name': 'Anonyma De Musica Scripta Bellermanniana'}, 'TLG0371': {'works': ['TXT-001'], 'name': 'Diagoras Lyr.'}, 'TLG2372': {'works': ['TXT-003'], 'name': 'Euagon Hist.'}, 'TLG1286': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022'], 'name': 'Corpus Hermeticum'}, 'TLG0340': {'works': ['TXT-001'], 'name': 'Sositheus Trag.'}, 'TLG0897': {'works': ['TXT-001'], 'name': 'Euthydemus Med.'}, 'TLG4017': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Syrianus Phil.'}, 'TLG2058': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Philostorgius Scr. Eccl.'}, 'TLG2216': {'works': ['TXT-003'], 'name': 'Aristippus Hist.'}, 'TLG2972': {'works': ['TXT-001'], 'name': 'Anonymi De Terrae Motibus'}, 'TLG1259': {'works': ['TXT-001'], 'name': 'Charondas Nomographus Phil.'}, 'TLG2230': {'works': ['TXT-001'], 'name': 'Boïdas Phil.'}, 'TLG4374': {'works': ['TXT-001'], 'name': 'Anonymi De Astrologia Dialogus Astrol.'}, 'TLG1547': {'works': ['TXT-001'], 'name': 'Oedipodea'}, 'TLG1382': {'works': ['TXT-001'], 'name': 'Fragmentum Teliambicum'}, 'TLG4170': {'works': ['TXT-001'], 'name': 'Vitae Pindari Et Varia De Pindaro'}, 'TLG2770': {'works': ['TXT-001'], 'name': 'Callinicus Biogr.'}, 'TLG2004': {'works': ['TXT-001'], 'name': 'Amelii Epistula'}, 'TLG2229': {'works': ['TXT-001'], 'name': 'Xuthus Phil.'}, 'TLG2140': {'works': ['TXT-001'], 'name': 'Iamblichus Alchem.'}, 'TLG3145': {'works': ['TXT-001', 'TXT-002'], 'name': 'Joannes Anagnostes Hist. et Poeta'}, 'TLG4237': {'works': ['TXT-001'], 'name': 'Joannes Argyropulus Gramm.'}, 'TLG0319': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Critias Eleg., Phil. et Trag.'}, 'TLG4020': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Elias Phil.'}, 'TLG1748': {'works': ['TXT-001'], 'name': 'Sosigenes Phil.'}, 'TLG2241': {'works': ['TXT-001'], 'name': 'Xenophilus Mus. et Phil.'}, 'TLG1326': {'works': ['TXT-001'], 'name': 'Dionysius Epic.'}, 'TLG0536': {'works': ['TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Ephorus Hist.'}, 'TLG1845': {'works': ['TXT-001'], 'name': 'Callistratus Trag.'}, 'TLG0425': {'works': ['TXT-001', 'TXT-002'], 'name': 'Bato Comic.'}, 'TLG1475': {'works': ['TXT-001'], 'name': 'Maiistas Epic.'}, 'TLG0304': {'works': ['TXT-001'], 'name': 'Acta Et Martyrium Apollonii'}, 'TLG4034': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-008', 'TXT-009'], 'name': 'Michael Phil.'}, 'TLG2657': {'works': ['TXT-001', 'TXT-002'], 'name': 'Martyrium Ignatii'}, 'TLG2043': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Hephaestion Astrol.'}, 'TLG0357': {'works': ['TXT-001'], 'name': 'Didymus Scriptor De Mensuris'}, 'TLG1476': {'works': ['TXT-001'], 'name': 'Mamercus Eleg.'}, 'TLG1529': {'works': ['TXT-003'], 'name': 'Nicander Gramm.'}, 'TLG0296': {'works': ['TXT-001'], 'name': 'Carmina Convivialia (PMG)'}, 'TLG0467': {'works': ['TXT-001'], 'name': 'Timotheus Trag.'}, 'TLG1192': {'works': ['TXT-001'], 'name': 'Ariston Phil.'}, 'TLG2193': {'works': ['TXT-002'], 'name': '[Aretades] Hist.'}, 'TLG2418': {'works': ['TXT-002'], 'name': 'Archinus Hist.'}, 'TLG3074': {'works': ['TXT-001', 'TXT-002'], 'name': 'Constantinus Manasses Hist. et Poeta'}, 'TLG1724': {'works': ['TXT-001'], 'name': 'Theon Phil.'}, 'TLG2630': {'works': ['TXT-001', 'TXT-002'], 'name': 'Lobo Poeta'}, 'TLG0315': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sthenelus Trag.'}, 'TLG9020': {'works': ['TXT-001'], 'name': 'Stephanus Gramm.'}, 'TLG2718': {'works': ['TXT-001', 'TXT-002'], 'name': 'Manuel Philes Poeta et Scr. Rerum Nat.'}, 'TLG0593': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Gorgias Rhet. et Soph.'}, 'TLG2277': {'works': ['TXT-002'], 'name': 'Hypermenes Hist.'}, 'TLG2371': {'works': ['TXT-001'], 'name': 'Chronicon Paschale'}, 'TLG0334': {'works': ['TXT-001'], 'name': 'Diogenes Phil. et Trag.'}, 'TLG1315': {'works': ['TXT-001', 'TXT-002'], 'name': 'Dinolochus Comic.'}, 'TLG2239': {'works': ['TXT-001'], 'name': 'Pythagoristae (D-K) Phil.'}, 'TLG0533': {'works': ['TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020'], 'name': 'Callimachus Philol.'}, 'TLG2231': {'works': ['TXT-001'], 'name': 'Thrasyalces Phil.'}, 'TLG1309': {'works': ['TXT-001'], 'name': 'Dialexeis Δισσοὶ λόγοι'}, 'TLG1154': {'works': ['TXT-001'], 'name': 'Apocalypsis Baruch'}, 'TLG7000': {'works': ['TXT-001'], 'name': 'Anthologia Graeca, AG'}, 'TLG0397': {'works': ['TXT-001'], 'name': 'Pronomus Lyr.'}, 'TLG0655': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Parthenius Myth.'}, 'TLG1229': {'works': ['TXT-001'], 'name': '[Boeus] Epic.'}, 'TLG0749': {'works': ['TXT-001'], 'name': 'Antyllus Med.'}, 'TLG1524': {'works': ['TXT-001'], 'name': 'Naumachius Epic.'}, 'TLG1287': {'works': ['TXT-001', 'TXT-002'], 'name': 'Crantor Phil.'}, 'TLG1552': {'works': ['TXT-001'], 'name': 'Oratio Josephi'}, 'TLG0265': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Timocreon Lyr.'}, 'TLG1678': {'works': ['TXT-003'], 'name': 'Socrates Hist.'}, 'TLG1123': {'works': ['TXT-002'], 'name': 'Andron Hist.'}, 'TLG0512': {'works': ['TXT-001', 'TXT-002'], 'name': 'Theophilus Comic.'}, 'TLG0214': {'works': ['TXT-001'], 'name': 'Phanocles Eleg.'}, 'TLG0631': {'works': ['TXT-001', 'TXT-002'], 'name': 'Pittacus Lyr.'}, 'TLG2591': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Orion Gramm.'}, 'TLG1430': {'works': ['TXT-001'], 'name': 'Hieronymus Phil.'}, 'TLG1118': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Pseudo-Dioscorides Med.'}, 'TLG4040': {'works': ['TXT-001', 'TXT-011', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030'], 'name': 'Photius Lexicogr., Scr. Eccl. et Theol.'}, 'TLG0597': {'works': ['TXT-001'], 'name': 'Zenodorus Gramm.'}, 'TLG0560': {'works': ['TXT-001'], 'name': '[Longinus] Rhet., Pseudo-Longinus'}, 'TLG4027': {'works': ['TXT-001'], 'name': 'Anonymi In Aristotelis Categorias Phil.'}, 'TLG0563': {'works': ['TXT-001'], 'name': 'Maximus Soph.'}, 'TLG2148': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aristodemus Hist.'}, 'TLG1145': {'works': ['TXT-003'], 'name': 'Antiochus Hist.'}, 'TLG1441': {'works': ['TXT-001'], 'name': 'Iamblichus Scr. Erot.'}, 'TLG4134': {'works': ['TXT-005'], 'name': 'Diodorus Scr. Eccl.'}, 'TLG0321': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Aeschylus Trag.'}, 'TLG1432': {'works': ['TXT-001'], 'name': 'Hipparchus Phil.'}, 'TLG2392': {'works': ['TXT-003'], 'name': 'Artemon Hist.'}, 'TLG2871': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Joannes Malalas Chronogr.'}, 'TLG0413': {'works': ['TXT-001', 'TXT-002'], 'name': 'Apollodorus Comic.'}, 'TLG0084': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Dionysius Perieg.'}, 'TLG1734': {'works': ['TXT-001', 'TXT-002'], 'name': 'Timaeus Phil.'}, 'TLG2800': {'works': ['TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-012', 'TXT-018'], 'name': 'Basilius Scr. Eccl.'}, 'TLG2807': {'works': ['TXT-001'], 'name': 'Antonius Hagiographus Scr. Eccl.'}, 'TLG1052': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Posidonius Phil.'}, 'TLG7052': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Anthologiae Graecae Appendix'}, 'TLG1398': {'works': ['TXT-001'], 'name': 'Hegesippus Scr. Eccl.'}, 'TLG2628': {'works': ['TXT-001'], 'name': 'Idaeus Epic.'}, 'TLG2532': {'works': ['TXT-002'], 'name': '[Hermesianax] Hist.'}, 'TLG0500': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Posidippus Comic.'}, 'TLG3125': {'works': ['TXT-001'], 'name': 'Theodosius Diaconus Hist. et Poeta'}, 'TLG1670': {'works': ['TXT-001'], 'name': 'Serapion Scr. Eccl.'}, 'TLG1495': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Melito Apol.'}, 'TLG4331': {'works': ['TXT-001'], 'name': 'Hierotheus Alchem.'}, 'TLG1738': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Tragica Adespota'}, 'TLG2589': {'works': ['TXT-001', 'TXT-002'], 'name': 'Olympiodorus Alchem.'}, 'TLG2022': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-065', 'TXT-066'], 'name': 'Gregorius Nazianzenus Theol.'}, 'TLG2449': {'works': ['TXT-002', 'TXT-003'], 'name': 'Timotheus Gramm.'}, 'TLG0651': {'works': ['TXT-001'], 'name': 'Antoninus Liberalis Myth.'}, 'TLG4287': {'works': ['TXT-001'], 'name': 'Etymologia Alphabeti'}, 'TLG2679': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010'], 'name': 'Testamentum Salomonis'}, 'TLG2385': {'works': ['TXT-003'], 'name': 'Polycritus Hist.'}, 'TLG0364': {'works': ['TXT-001'], 'name': 'Danaïs vel Danaïdes'}, 'TLG0587': {'works': ['TXT-001'], 'name': 'Sotion Paradox.'}, 'TLG9004': {'works': ['TXT-001'], 'name': 'Anonymi In Aristotelis Librum Alterum Analyticorum Posteriorum Commentarium'}, 'TLG2336': {'works': ['TXT-002'], 'name': 'Hereas Hist.'}, 'TLG1439': {'works': ['TXT-002'], 'name': 'Hermarchus Phil.'}, 'TLG1366': {'works': ['TXT-001', 'TXT-002'], 'name': 'Evangelium Bartholomaei'}, 'TLG1021': {'works': ['TXT-001'], 'name': 'Meropis'}, 'TLG0410': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Antiphanes Comic.'}, 'TLG2653': {'works': ['TXT-001'], 'name': 'Erycius Poeta'}, 'TLG0358': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Nicomachus Math.'}, 'TLG0255': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Mimnermus Eleg.'}, 'TLG0477': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Myrtilus Comic.'}, 'TLG1549': {'works': ['TXT-001'], 'name': 'Onatas Phil.'}, 'TLG9006': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Gregorius Paroemiogr.'}, 'TLG4345': {'works': ['TXT-001'], 'name': 'Menecrates Hist.'}, 'TLG2641': {'works': ['TXT-001'], 'name': 'Priscus Epic.'}, 'TLG0594': {'works': ['TXT-001', 'TXT-002'], 'name': 'Alexander Rhet. et Soph.'}, 'TLG0616': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Polyaenus Rhet.'}, 'TLG2617': {'works': ['TXT-001'], 'name': 'Demetrius Poeta'}, 'TLG1650': {'works': ['TXT-001'], 'name': 'Pytheas Perieg.'}, 'TLG2015': {'works': ['TXT-001'], 'name': 'Testamentum XL Martyrum'}, 'TLG1426': {'works': ['TXT-001'], 'name': 'Herodes Atticus Soph.'}, 'TLG0722': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-010'], 'name': 'Oribasius Med.'}, 'TLG2623': {'works': ['TXT-001'], 'name': 'Euanthes Epic.'}, 'TLG2242': {'works': ['TXT-001'], 'name': 'Echecrates Phil.'}, 'TLG0517': {'works': ['TXT-001', 'TXT-002'], 'name': 'Timotheus Comic.'}, 'TLG5003': {'works': ['TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043'], 'name': 'Erotica Adespota'}, 'TLG1848': {'works': ['TXT-001'], 'name': 'Meletus Junior Trag.'}, 'TLG2053': {'works': ['TXT-001', 'TXT-002'], 'name': 'Paulus Astrol.'}, 'TLG1391': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Hegemon Epic.'}, 'TLG1200': {'works': ['TXT-003'], 'name': 'Asclepiades Myth.'}, 'TLG1252': {'works': ['TXT-001', 'TXT-002'], 'name': 'Certamen Homeri Et Hesiodi'}, 'TLG0605': {'works': ['TXT-001', 'TXT-002'], 'name': 'Polybius Rhet.'}, 'TLG1242': {'works': ['TXT-001'], 'name': 'Canon Librorum'}, 'TLG0374': {'works': ['TXT-001', 'TXT-002'], 'name': 'Licymnius Lyr.'}, 'TLG1433': {'works': ['TXT-001'], 'name': 'Hipparchus Epigr.'}, 'TLG4028': {'works': ['TXT-001', 'TXT-002'], 'name': 'Stephanus Gramm.'}, 'TLG0525': {'works': ['TXT-001'], 'name': 'Pausanias Perieg.'}, 'TLG0352': {'works': ['TXT-001'], 'name': 'Isidorus Trag.'}, 'TLG1840': {'works': ['TXT-001'], 'name': 'Euripides II Trag.'}, 'TLG4290': {'works': ['TXT-001'], 'name': 'Lexicon Artis Grammaticae'}, 'TLG0538': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Hecataeus Hist.'}, 'TLG0281': {'works': ['TXT-001'], 'name': 'Marcellus Poet. Med.'}, 'TLG0634': {'works': ['TXT-001'], 'name': 'Xenocrates Phil.'}, 'TLG2055': {'works': ['TXT-001', 'TXT-002'], 'name': 'Serenus Geom.'}, 'TLG1174': {'works': ['TXT-002'], 'name': 'Archemachus Hist.'}, 'TLG1511': {'works': ['TXT-001'], 'name': 'Mimnermus Trag.'}, 'TLG3143': {'works': ['TXT-001'], 'name': 'Georgius Sphrantzes Hist.'}, 'TLG0028': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009'], 'name': 'Antiphon Orat.'}, 'TLG2118': {'works': ['TXT-001'], 'name': 'Gryllus'}, 'TLG2642': {'works': ['TXT-002', 'TXT-004'], 'name': 'Astrampsychus Magus Onir.'}, 'TLG2010': {'works': ['TXT-001'], 'name': 'Martyrium Dasii'}, 'TLG0620': {'works': ['TXT-001', 'TXT-002'], 'name': 'Archytas Phil.'}, 'TLG1881': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Dionysius Scytobrachion Gramm.'}, 'TLG0732': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017'], 'name': 'Alexander Phil.'}, 'TLG0329': {'works': ['TXT-001'], 'name': 'Theodectas Trag.'}, 'TLG9008': {'works': ['TXT-001'], 'name': 'Macarius Chrysocephalus Paroemiogr.'}, 'TLG1490': {'works': ['TXT-001'], 'name': 'Megillus Phil.'}, 'TLG0001': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Apollonius Rhodius Epic.'}, 'TLG4318': {'works': ['TXT-001'], 'name': 'Vita Sophoclis'}, 'TLG4311': {'works': ['TXT-001', 'TXT-002'], 'name': 'Etymologicum Symeonis'}, 'TLG0247': {'works': ['TXT-001'], 'name': 'Dionysius II Eleg.'}, 'TLG2116': {'works': ['TXT-001'], 'name': 'Arcadius Gramm.'}, 'TLG0488': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philemon Junior Comic.'}, 'TLG0725': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anaximander Phil.'}, 'TLG0529': {'works': ['TXT-001', 'TXT-002'], 'name': 'Arius Didymus Doxogr.'}, 'TLG1205': {'works': ['TXT-001', 'TXT-002'], 'name': 'Athenagoras Apol.'}, 'TLG5019': {'works': ['TXT-001', 'TXT-002'], 'name': 'Scholia In Dionysium Periegetam'}, 'TLG0486': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Pherecrates Comic.'}, 'TLG3188': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Joannes Actuarius Med.'}, 'TLG2547': {'works': ['TXT-003'], 'name': 'Antigonus'}, 'TLG0052': {'works': ['TXT-001'], 'name': 'Menippus Phil.'}, 'TLG1314': {'works': ['TXT-003', 'TXT-004'], 'name': 'Dinias Hist.'}, 'TLG0451': {'works': ['TXT-001', 'TXT-002'], 'name': 'Epicrates Comic.'}, 'TLG1801': {'works': ['TXT-001', 'TXT-002'], 'name': 'Parodica Anonyma'}, 'TLG0528': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aëtius Doxogr.'}, 'TLG1634': {'works': ['TXT-001', 'TXT-002'], 'name': 'Prodicus Soph.'}, 'TLG2217': {'works': ['TXT-002'], 'name': 'Nicias Hist.'}, 'TLG1666': {'works': ['TXT-001'], 'name': 'Sententiae Sexti'}, 'TLG1264': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-008'], 'name': 'Chrysippus Phil.'}, 'TLG2237': {'works': ['TXT-001'], 'name': 'Theodorus Math.'}, 'TLG1146': {'works': ['TXT-001'], 'name': 'Antipater Phil.'}, 'TLG0317': {'works': ['TXT-001', 'TXT-002'], 'name': 'Acta Joannis'}, 'TLG0206': {'works': ['TXT-001'], 'name': 'Theocles Lyr.'}, 'TLG1257': {'works': ['TXT-002'], 'name': 'Charinus Choliamb.'}, 'TLG5028': {'works': ['TXT-001'], 'name': 'Scholia In Isocratem'}, 'TLG1504': {'works': ['TXT-003'], 'name': 'Menelaus Epic.'}, 'TLG1787': {'works': ['TXT-001', 'TXT-002'], 'name': '[Menippus] Comic.'}, 'TLG0216': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Alexander Lyr. et Trag.'}, 'TLG0511': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Theognetus Comic.'}, 'TLG1365': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Melampus Scriptor De Divinatione'}, 'TLG0535': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Demades Orat. et Rhet.'}, 'TLG0585': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Publius Aelius Phlegon Paradox.'}, 'TLG4334': {'works': ['TXT-001', 'TXT-002'], 'name': '[Isis Prophetissa] Alchem.'}, 'TLG0396': {'works': ['TXT-001'], 'name': 'Euphanes Comic.'}, 'TLG1298': {'works': ['TXT-001'], 'name': 'Demetrii Phalerei Epistula'}, 'TLG2112': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026'], 'name': 'Amphilochius Scr. Eccl.'}, 'TLG0564': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Rufus Med.'}, 'TLG4390': {'works': ['TXT-001'], 'name': 'Democles Hist.'}, 'TLG1703': {'works': ['TXT-001', 'TXT-002'], 'name': 'Teucer Astrol.'}, 'TLG1228': {'works': ['TXT-001'], 'name': '[Boeo] Epic.'}, 'TLG0341': {'works': ['TXT-001', 'TXT-002'], 'name': 'Lycophron Trag.'}, 'TLG1567': {'works': ['TXT-001'], 'name': 'Parrhasius Epigr.'}, 'TLG2173': {'works': ['TXT-002'], 'name': 'Antileon Hist.'}, 'TLG1165': {'works': ['TXT-001'], 'name': 'Apollodorus Mech.'}, 'TLG1591': {'works': ['TXT-003'], 'name': 'Philistus Hist.'}, 'TLG2693': {'works': ['TXT-001'], 'name': 'Ptolemaeus III Euergetes I Epigr.'}, 'TLG4101': {'works': ['TXT-001'], 'name': 'Etymologicum Parvum'}, 'TLG4300': {'works': ['TXT-001'], 'name': 'Lexicon Sabbaiticum'}, 'TLG0238': {'works': ['TXT-001'], 'name': 'Ananius Iamb.'}, 'TLG0037': {'works': ['TXT-001'], 'name': 'Anacharsidis Epistulae'}, 'TLG0657': {'works': ['TXT-001'], 'name': 'Crateuas Med.'}, 'TLG2029': {'works': ['TXT-001'], 'name': 'Anonymi Geographia In Sphaera Intelligenda'}, 'TLG0098': {'works': ['TXT-001'], 'name': 'Zenobius Sophista Paroemiogr.'}, 'TLG2060': {'works': ['TXT-001', 'TXT-002'], 'name': 'Asterius Scr. Eccl.'}, 'TLG1414': {'works': ['TXT-001'], 'name': 'Heraclitus Phil.'}, 'TLG1546': {'works': ['TXT-001'], 'name': 'Oechaliae Halosis'}, 'TLG2036': {'works': ['TXT-001'], 'name': 'Dexippus Phil.'}, 'TLG0555': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Clemens Alexandrinus Theol.'}, 'TLG0417': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Archippus Comic.'}, 'TLG0097': {'works': ['TXT-001', 'TXT-002'], 'name': 'Diogenianus Gramm.'}, 'TLG1274': {'works': ['TXT-001', 'TXT-002'], 'name': 'Cleobulus Epigr. et Lyr.'}, 'TLG4293': {'works': ['TXT-001'], 'name': 'Fragmentum Lexici Graeci'}, 'TLG1594': {'works': ['TXT-002'], 'name': 'Philo Judaeus Senior Epic.'}, 'TLG0203': {'works': ['TXT-001'], 'name': 'Limenius Lyr.'}, 'TLG1450': {'works': ['TXT-003', 'TXT-004'], 'name': 'Ister Hist.'}, 'TLG1705': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Thales Phil.'}, 'TLG1479': {'works': ['TXT-001'], 'name': 'Marci Aurelii Epistula'}, 'TLG2398': {'works': ['TXT-001'], 'name': 'Basilides Phil.'}, 'TLG1344': {'works': ['TXT-001'], 'name': 'Epica Adespota (CA)'}, 'TLG1700': {'works': ['TXT-001'], 'name': 'Testamenta XII Patriarcharum'}, 'TLG2032': {'works': ['TXT-001', 'TXT-002'], 'name': 'Pappus Math.'}, 'TLG0012': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Homerus Epic., Homer'}, 'TLG0127': {'works': ['TXT-001'], 'name': 'Aulus Licinius Archias Epigr.'}, 'TLG4325': {'works': ['TXT-001', 'TXT-002'], 'name': '[Hermes] Alchem.'}, 'TLG2007': {'works': ['TXT-001'], 'name': 'Martyrium Potamiaenae Et Basilidis'}, 'TLG0504': {'works': ['TXT-001', 'TXT-002'], 'name': 'Sosipater Comic.'}, 'TLG4015': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-017', 'TXT-018'], 'name': 'Joannes Philoponus Phil.'}, 'TLG0322': {'works': ['TXT-001'], 'name': 'Dicaeogenes Trag.'}, 'TLG1345': {'works': ['TXT-001', 'TXT-002'], 'name': 'Epica Incerta (CA)'}, 'TLG1377': {'works': ['TXT-003'], 'name': 'Favorinus Phil. et Rhet.'}, 'TLG2330': {'works': ['TXT-003'], 'name': 'Scamon Hist.'}, 'TLG1814': {'works': ['TXT-001'], 'name': 'Ptolemais Phil.'}, 'TLG0246': {'works': ['TXT-001'], 'name': 'Dionysius Chalcus Eleg.'}, 'TLG0416': {'works': ['TXT-001', 'TXT-002'], 'name': 'Archedicus Comic.'}, 'TLG1817': {'works': ['TXT-001'], 'name': 'Fragmenta Anonyma (PsVTGr)'}, 'TLG2341': {'works': ['TXT-003'], 'name': 'Aristocritus Hist.'}, 'TLG1276': {'works': ['TXT-003'], 'name': 'Clidemus Hist.'}, 'TLG1907': {'works': ['TXT-003'], 'name': 'Cratippus Hist.'}, 'TLG0752': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-005'], 'name': 'Eutecnius Soph.'}, 'TLG1258': {'works': ['TXT-003'], 'name': 'Charon Hist.'}, 'TLG0707': {'works': ['TXT-002'], 'name': 'Alexis Hist.'}, 'TLG3159': {'works': ['TXT-001'], 'name': 'Barlaam Math., Theol. et Epist.'}, 'TLG1608': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Phrynichus Attic.'}, 'TLG1588': {'works': ['TXT-001'], 'name': 'Philicus Lyr.'}, 'TLG0023': {'works': ['TXT-001'], 'name': 'Oppianus Epic.'}, 'TLG4394': {'works': ['TXT-001'], 'name': 'Joannes Antiochenus Hist.'}, 'TLG1783': {'works': ['TXT-001', 'TXT-002'], 'name': 'Callicrates Comic.'}, 'TLG1375': {'works': ['TXT-001'], 'name': 'Evangelium Thomae'}, 'TLG1690': {'works': ['TXT-001'], 'name': 'Sotadea'}, 'TLG0261': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Simonides Lyr.'}, 'TLG0096': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017'], 'name': 'Aesopus Scr. Fab. et Aesopica'}, 'TLG2892': {'works': ['TXT-001', 'TXT-002', 'TXT-008', 'TXT-049', 'TXT-097', 'TXT-110', 'TXT-111', 'TXT-112', 'TXT-113', 'TXT-114'], 'name': 'Maximus Confessor Theol.'}, 'TLG0523': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Menecrates Comic.'}, 'TLG0509': {'works': ['TXT-001'], 'name': 'Myia Phil.'}, 'TLG0348': {'works': ['TXT-001'], 'name': 'Biotus Trag.'}, 'TLG1392': {'works': ['TXT-001'], 'name': 'Hegesander Hist.'}, 'TLG1186': {'works': ['TXT-001'], 'name': 'Aristobulus Judaeus Phil.'}, 'TLG2127': {'works': ['TXT-001', 'TXT-002'], 'name': 'Troilus Soph.'}, 'TLG0006': {'works': ['TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052'], 'name': 'Euripides Trag.'}, 'TLG1917': {'works': ['TXT-003'], 'name': 'Demetrius Hist.'}, 'TLG2282': {'works': ['TXT-002'], 'name': 'Melisseus Hist.'}, 'TLG5027': {'works': ['TXT-001'], 'name': 'Scholia In Iamblichum Philosophum'}, 'TLG0708': {'works': ['TXT-001', 'TXT-002'], 'name': 'Ammonius Gramm.'}, 'TLG0026': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Aeschines Orat.'}, 'TLG2017': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-055', 'TXT-056', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-077', 'TXT-078', 'TXT-079', 'TXT-080', 'TXT-081', 'TXT-082', 'TXT-083', 'TXT-084'], 'name': 'Gregorius Nyssenus Theol.'}, 'TLG0728': {'works': ['TXT-001'], 'name': 'Theophilus Protospatharius, Damascius et Stephanus Atheniensis Med.'}, 'TLG1633': {'works': ['TXT-001'], 'name': 'Praxiteles Epigr.'}, 'TLG1189': {'works': ['TXT-003'], 'name': 'Aristocrates Hist.'}, 'TLG3069': {'works': ['TXT-001'], 'name': 'Leo Diaconus Hist.'}, 'TLG1194': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Aristonicus Gramm.'}, 'TLG0201': {'works': ['TXT-001'], 'name': 'Isyllus Lyr.'}, 'TLG1250': {'works': ['TXT-001'], 'name': 'Cercidas Iamb.'}, 'TLG2625': {'works': ['TXT-001'], 'name': 'Herodicus Gramm.'}, 'TLG0475': {'works': ['TXT-001', 'TXT-002'], 'name': 'Metagenes Comic.'}, 'TLG2023': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Iamblichus Phil.'}, 'TLG1525': {'works': ['TXT-003'], 'name': 'Neanthes Hist.'}, 'TLG1462': {'works': ['TXT-001'], 'name': 'Liber Eldad Et Modad'}, 'TLG1815': {'works': ['TXT-001'], 'name': 'Sappho et Alcaeus Lyr.'}, 'TLG2426': {'works': ['TXT-002'], 'name': 'Hermaeus Hist.'}, 'TLG1461': {'works': ['TXT-001', 'TXT-002'], 'name': 'Leucippus Phil.'}, 'TLG2051': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Himerius Soph.'}, 'TLG0696': {'works': ['TXT-002'], 'name': 'Alcmaeonis'}, 'TLG0406': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anaxilas Comic.'}, 'TLG0318': {'works': ['TXT-001'], 'name': 'Agathon Trag.'}, 'TLG2305': {'works': ['TXT-001'], 'name': 'Clidemus Phil.'}, 'TLG0740': {'works': ['TXT-001'], 'name': 'Jusjurandum Medicum'}, 'TLG4014': {'works': ['TXT-001'], 'name': 'Priscianus Phil.'}, 'TLG9003': {'works': ['TXT-001'], 'name': 'Anonymus Lexicographus Lexicogr.'}, 'TLG0069': {'works': ['TXT-001'], 'name': 'Dionysius Geogr.'}, 'TLG1802': {'works': ['TXT-002'], 'name': 'Homerica'}, 'TLG4282': {'works': ['TXT-001'], 'name': 'Anonymus Manichaeus Biogr.'}, 'TLG1488': {'works': ['TXT-001'], 'name': 'Maximus Theol.'}, 'TLG0349': {'works': ['TXT-001'], 'name': 'Demonax Trag.'}, 'TLG4301': {'works': ['TXT-001'], 'name': 'Lexicon Rhetoricum Cantabrigiense'}, 'TLG0541': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049'], 'name': 'Menander Comic.'}, 'TLG4239': {'works': ['TXT-001'], 'name': 'Severus Soph.'}, 'TLG1271': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012'], 'name': 'Clemens Romanus Theol. et Clementina'}, 'TLG0013': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034'], 'name': 'Hymni Homerici, Homeric Hymns'}, 'TLG4093': {'works': ['TXT-001', 'TXT-002', 'TXT-005', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-013'], 'name': 'Georgius Choeroboscus Gramm.'}, 'TLG1663': {'works': ['TXT-003'], 'name': 'Semus Gramm.'}, 'TLG1161': {'works': ['TXT-001'], 'name': 'Apocryphon Ezechiel'}, 'TLG2002': {'works': ['TXT-001'], 'name': 'Anonymus Seguerianus Rhet.'}, 'TLG1245': {'works': ['TXT-001'], 'name': 'Carystius Hist.'}, 'TLG0263': {'works': ['TXT-001'], 'name': 'Solon Nomographus et Poeta'}, 'TLG0453': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Epilycus Comic.'}, 'TLG0004': {'works': ['TXT-001', 'TXT-002'], 'name': 'Diogenes Laertius Biogr.'}, 'TLG2204': {'works': ['TXT-002'], 'name': 'Autocrates Hist.'}, 'TLG2349': {'works': ['TXT-002'], 'name': '[Pyrander] Hist.'}, 'TLG4174': {'works': ['TXT-001', 'TXT-002'], 'name': 'Paraphrases In Dionysium Periegetam'}, 'TLG0003': {'works': ['TXT-001', 'TXT-002'], 'name': 'Thucydides Hist.'}, 'TLG2355': {'works': ['TXT-001'], 'name': 'Xeniades Soph.'}, 'TLG2030': {'works': ['TXT-001'], 'name': 'Geographica Adespota (GGM)'}, 'TLG2594': {'works': ['TXT-001'], 'name': 'Phillis Hist.'}, 'TLG2039': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Diophantus Math.'}, 'TLG4036': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-020', 'TXT-021', 'TXT-023'], 'name': 'Proclus Phil.'}, 'TLG0398': {'works': ['TXT-001', 'TXT-002'], 'name': 'Simylus Comic.'}, 'TLG1361': {'works': ['TXT-001'], 'name': 'Eumedes Comic.'}, 'TLG1166': {'works': ['TXT-001'], 'name': 'Apollodorus Phil.'}, 'TLG0368': {'works': ['TXT-001'], 'name': 'Cydias Lyr.'}, 'TLG0372': {'works': ['TXT-001'], 'name': 'Praxilla Lyr.'}, 'TLG0035': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Moschus Bucol.'}, 'TLG2596': {'works': ['TXT-001'], 'name': 'Phoebammon Soph.'}, 'TLG1627': {'works': ['TXT-002'], 'name': 'Polycrates Hist.'}, 'TLG0215': {'works': ['TXT-001', 'TXT-002'], 'name': 'Antagoras Epic.'}, 'TLG2621': {'works': ['TXT-001'], 'name': 'Diophilus vel Diophila Poeta'}, 'TLG2571': {'works': ['TXT-001'], 'name': 'Hierocles Phil.'}, 'TLG1613': {'works': ['TXT-001'], 'name': 'Pittaci Epistula'}, 'TLG2182': {'works': ['TXT-003'], 'name': 'Staphylus Hist.'}, 'TLG1890': {'works': ['TXT-001'], 'name': 'Moderatus Phil.'}, 'TLG1429': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Hierocles Phil.'}, 'TLG0663': {'works': ['TXT-001'], 'name': 'Praecepta Salubria'}, 'TLG2577': {'works': ['TXT-001'], 'name': 'Anatolius Math. et Phil.'}, 'TLG0330': {'works': ['TXT-001', 'TXT-002'], 'name': 'Dionysius I Trag.'}, 'TLG1254': {'works': ['TXT-003'], 'name': 'Charax Hist.'}, 'TLG2543': {'works': ['TXT-003'], 'name': 'Lucius Cincius Alimentus Hist.'}, 'TLG1908': {'works': ['TXT-003'], 'name': 'Daimachus Hist.'}, 'TLG0580': {'works': ['TXT-001'], 'name': 'Paradoxographus Florentinus'}, 'TLG2649': {'works': ['TXT-001'], 'name': 'Amyntas Epigr.'}, 'TLG1569': {'works': ['TXT-001'], 'name': 'Pausanias Attic.'}, 'TLG0227': {'works': ['TXT-001'], 'name': 'Anonymi Curetum Hymnus'}, 'TLG1712': {'works': ['TXT-001'], 'name': 'Thebaïs'}, 'TLG2624': {'works': ['TXT-001'], 'name': 'Hermias Poeta'}, 'TLG2648': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Adespota Papyracea (SH)'}, 'TLG4088': {'works': ['TXT-003', 'TXT-005'], 'name': 'Anthemius Math. et Mech.'}, 'TLG0459': {'works': ['TXT-001', 'TXT-002'], 'name': 'Eunicus Comic.'}, 'TLG1784': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heraclitus Comic.'}, 'TLG1278': {'works': ['TXT-001'], 'name': 'Clitarchus Gnom.'}, 'TLG4201': {'works': ['TXT-001'], 'name': 'Joannes Chortasmenus Phil.'}, 'TLG4242': {'works': ['TXT-001'], 'name': 'Cyrus Rhet.'}, 'TLG0325': {'works': ['TXT-001'], 'name': 'Astydamas Trag.'}, 'TLG5015': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Scholia In Aristotelem'}, 'TLG4138': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-077', 'TXT-078', 'TXT-079', 'TXT-080', 'TXT-081', 'TXT-082', 'TXT-083', 'TXT-084', 'TXT-085', 'TXT-086', 'TXT-087', 'TXT-088', 'TXT-089', 'TXT-090', 'TXT-091', 'TXT-092', 'TXT-093', 'TXT-094', 'TXT-095', 'TXT-096', 'TXT-097', 'TXT-098', 'TXT-099', 'TXT-100', 'TXT-101', 'TXT-102', 'TXT-103', 'TXT-104', 'TXT-105', 'TXT-106', 'TXT-107', 'TXT-108', 'TXT-109', 'TXT-110', 'TXT-111', 'TXT-112', 'TXT-113', 'TXT-114', 'TXT-115', 'TXT-116', 'TXT-117', 'TXT-118', 'TXT-119', 'TXT-120', 'TXT-121', 'TXT-122', 'TXT-123', 'TXT-124', 'TXT-125', 'TXT-126', 'TXT-127', 'TXT-128', 'TXT-129', 'TXT-130', 'TXT-131', 'TXT-132', 'TXT-133', 'TXT-134', 'TXT-135', 'TXT-136', 'TXT-137', 'TXT-138', 'TXT-139', 'TXT-140', 'TXT-141', 'TXT-142', 'TXT-143', 'TXT-144', 'TXT-145', 'TXT-146', 'TXT-147', 'TXT-148', 'TXT-149', 'TXT-150', 'TXT-151', 'TXT-152', 'TXT-153', 'TXT-154', 'TXT-155', 'TXT-156', 'TXT-157'], 'name': 'Ephraem Syrus Theol.'}, 'TLG1512': {'works': ['TXT-002'], 'name': 'Minyas'}, 'TLG2555': {'works': ['TXT-002'], 'name': 'Agesilaus Hist.'}, 'TLG0299': {'works': ['TXT-001', 'TXT-002'], 'name': 'Terpander Lyr.'}, 'TLG0367': {'works': ['TXT-001'], 'name': 'Tynnichus Lyr.'}, 'TLG1871': {'works': ['TXT-003'], 'name': 'Bion Hist.'}, 'TLG0277': {'works': ['TXT-001'], 'name': 'Monodia'}, 'TLG2357': {'works': ['TXT-002'], 'name': 'Gorgon Hist.'}, 'TLG1230': {'works': ['TXT-001', 'TXT-002'], 'name': 'Brotinus Phil.'}, 'TLG1170': {'works': ['TXT-003'], 'name': 'Apollonius Hist.'}, 'TLG1559': {'works': ['TXT-001'], 'name': 'Bucolicum'}, 'TLG0516': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Timostratus Comic.'}, 'TLG0463': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Hegemon Parodius'}, 'TLG2798': {'works': ['TXT-001', 'TXT-002', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Pseudo-Dionysius Areopagita Scr. Eccl. et Theol.'}, 'TLG1390': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Hecataeus Hist.'}, 'TLG0507': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Straton Comic.'}, 'TLG2236': {'works': ['TXT-001'], 'name': 'Eutropius Hist.'}, 'TLG3139': {'works': ['TXT-001'], 'name': 'Laonicus Chalcocondyles Hist.'}, 'TLG0457': {'works': ['TXT-001', 'TXT-002'], 'name': 'Eubulides Comic.'}, 'TLG2545': {'works': ['TXT-003'], 'name': 'Gaius Acilius Hist. et Phil.'}, 'TLG1780': {'works': ['TXT-001', 'TXT-002'], 'name': 'Alcimenes Comic.'}, 'TLG9010': {'works': ['TXT-001', 'TXT-002'], 'name': 'Suda, Suidas'}, 'TLG1203': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Paeanes (CA)'}, 'TLG4096': {'works': ['TXT-001'], 'name': 'Dositheus Magister Gramm.'}, 'TLG1400': {'works': ['TXT-003'], 'name': 'Heliodorus Perieg.'}, 'TLG5038': {'works': ['TXT-001'], 'name': 'Scholia In Theocritum'}, 'TLG1485': {'works': ['TXT-001'], 'name': 'Martyrium Ptolemaei Et Lucii'}, 'TLG4032': {'works': ['TXT-001'], 'name': 'Anonymi In Aristotelis Librum Primum Analyticorum Posteriorum Commentarium'}, 'TLG2694': {'works': ['TXT-001'], 'name': 'Sostratus Poeta'}, 'TLG2278': {'works': ['TXT-002'], 'name': 'Phanodicus Hist.'}, 'TLG0186': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Marcus Cornelius Fronto Rhet.'}, 'TLG1572': {'works': ['TXT-001'], 'name': 'Perictione Phil.'}, 'TLG0064': {'works': ['TXT-001'], 'name': 'Periplus Hannonis'}, 'TLG3027': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Joannes Doxapatres Rhet.'}, 'TLG0514': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Thugenides Comic.'}, 'TLG0217': {'works': ['TXT-001'], 'name': 'Anacreon Junior Eleg.'}, 'TLG1262': {'works': ['TXT-001', 'TXT-002'], 'name': 'Choerilus Epic.'}, 'TLG3186': {'works': ['TXT-001'], 'name': 'Anonymus Dialogus Cum Judaeis'}, 'TLG3156': {'works': ['TXT-001'], 'name': 'Anonymi Exegesis In Hesiodi Theogoniam'}, 'TLG1583': {'works': ['TXT-003'], 'name': 'Phanodemus Hist.'}, 'TLG0065': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Scylax Perieg.'}, 'TLG1915': {'works': ['TXT-003'], 'name': 'Eudoxus Hist.'}, 'TLG2548': {'works': ['TXT-002'], 'name': 'Promathion Hist.'}, 'TLG0391': {'works': ['TXT-001'], 'name': 'Acta Scillitanorum Martyrum'}, 'TLG1297': {'works': ['TXT-001'], 'name': 'Damippus Phil.'}, 'TLG1413': {'works': ['TXT-001'], 'name': 'Heraclitus Paradox.'}, 'TLG0456': {'works': ['TXT-001', 'TXT-002'], 'name': 'Euangelus Comic.'}, 'TLG1219': {'works': ['TXT-003'], 'name': 'Bato Hist. et Rhet.'}, 'TLG3040': {'works': ['TXT-001'], 'name': 'Josephus Genesius Hist.'}, 'TLG1128': {'works': ['TXT-001'], 'name': 'Anonymi Commentarius In Platonis Theaetetum'}, 'TLG2646': {'works': ['TXT-001'], 'name': 'Fragmenta Adespota (SH)'}, 'TLG2860': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Alexander Scr. Eccl.'}, 'TLG4165': {'works': ['TXT-001'], 'name': 'Anonymi In Aristotelis Librum De Interpretatione Phil.'}, 'TLG2934': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-018', 'TXT-019', 'TXT-021', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-064', 'TXT-066', 'TXT-067', 'TXT-068'], 'name': 'Joannes Damascenus Scr. Eccl. et Theol., John of Damascus'}, 'TLG1256': {'works': ['TXT-001', 'TXT-002'], 'name': 'Chares Gnom.'}, 'TLG1167': {'works': ['TXT-001'], 'name': 'Apollonius Biogr.'}, 'TLG0392': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Acusilaus Hist.'}, 'TLG0208': {'works': ['TXT-001', 'TXT-002'], 'name': 'Dosiadas Lyr.'}, 'TLG1094': {'works': ['TXT-001'], 'name': 'Theodorides Trag.'}, 'TLG4347': {'works': ['TXT-001'], 'name': 'Andron Hist.'}, 'TLG2168': {'works': ['TXT-001'], 'name': 'Apollophanes Phil.'}, 'TLG2234': {'works': ['TXT-001'], 'name': 'Oenopides Phil.'}, 'TLG0610': {'works': ['TXT-001'], 'name': 'Alcidamas Rhet.'}, 'TLG0652': {'works': ['TXT-001'], 'name': 'Philostratus Junior Soph.'}, 'TLG0063': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Dionysius Thrax Gramm.'}, 'TLG2622': {'works': ['TXT-001'], 'name': 'Dorieus Poeta'}, 'TLG2333': {'works': ['TXT-002', 'TXT-003'], 'name': 'Possis Hist.'}, 'TLG2111': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Palladius Scr. Eccl.'}, 'TLG0075': {'works': ['TXT-001'], 'name': 'Periplus Ponti Euxini'}, 'TLG0047': {'works': ['TXT-001'], 'name': 'Pausaniae I Et Xerxis Epistulae'}, 'TLG4099': {'works': ['TXT-001'], 'name': 'Etymologicum Magnum'}, 'TLG2626': {'works': ['TXT-001'], 'name': 'Hipparchus Parodius'}, 'TLG0422': {'works': ['TXT-001', 'TXT-002'], 'name': 'Athenio Comic.'}, 'TLG3181': {'works': ['TXT-001'], 'name': 'Nicephorus II Phocas Imperator Tact.'}, 'TLG0578': {'works': ['TXT-003'], 'name': 'Nymphodorus Hist.'}, 'TLG5021': {'works': ['TXT-001'], 'name': 'Scholia In Diophantum'}, 'TLG2265': {'works': ['TXT-002'], 'name': 'Diodorus Perieg.'}, 'TLG2391': {'works': ['TXT-003'], 'name': 'Hippostratus Hist.'}, 'TLG0737': {'works': ['TXT-001'], 'name': 'Julianus Scriptor Legis De Medicis'}, 'TLG1711': {'works': ['TXT-001'], 'name': 'Thearidas Phil.'}, 'TLG0331': {'works': ['TXT-001'], 'name': 'Polyidus Trag.'}, 'TLG4307': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Lexica Synonymica'}, 'TLG0687': {'works': ['TXT-002'], 'name': 'Agaclytus Hist.'}, 'TLG0379': {'works': ['TXT-001', 'TXT-002'], 'name': 'Philoxenus Lyr.'}, 'TLG0734': {'works': ['TXT-001'], 'name': 'Lucas Apostolus Med.'}, 'TLG3141': {'works': ['TXT-002', 'TXT-003', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013'], 'name': 'Georgius Acropolites Hist.'}, 'TLG0278': {'works': ['TXT-001'], 'name': 'Praelusio Mimi'}, 'TLG1368': {'works': ['TXT-001'], 'name': 'Evangelium Ebionitum'}, 'TLG3158': {'works': ['TXT-001'], 'name': 'Theodorus Epist.'}, 'TLG1505': {'works': ['TXT-001'], 'name': 'Menesthenes Hist.'}, 'TLG1506': {'works': ['TXT-002'], 'name': 'Menodotus Hist.'}, 'TLG2062': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-077', 'TXT-078', 'TXT-079', 'TXT-080', 'TXT-081', 'TXT-082', 'TXT-083', 'TXT-084', 'TXT-085', 'TXT-086', 'TXT-087', 'TXT-088', 'TXT-089', 'TXT-090', 'TXT-091', 'TXT-092', 'TXT-093', 'TXT-094', 'TXT-095', 'TXT-096', 'TXT-097', 'TXT-098', 'TXT-099', 'TXT-100', 'TXT-101', 'TXT-103', 'TXT-104', 'TXT-105', 'TXT-106', 'TXT-107', 'TXT-108', 'TXT-110', 'TXT-111', 'TXT-112', 'TXT-113', 'TXT-114', 'TXT-115', 'TXT-116', 'TXT-117', 'TXT-118', 'TXT-119', 'TXT-120', 'TXT-121', 'TXT-122', 'TXT-123', 'TXT-124', 'TXT-125', 'TXT-126', 'TXT-127', 'TXT-128', 'TXT-129', 'TXT-130', 'TXT-131', 'TXT-132', 'TXT-133', 'TXT-134', 'TXT-135', 'TXT-136', 'TXT-137', 'TXT-138', 'TXT-139', 'TXT-140', 'TXT-141', 'TXT-142', 'TXT-143', 'TXT-144', 'TXT-145', 'TXT-148', 'TXT-149', 'TXT-150', 'TXT-151', 'TXT-152', 'TXT-153', 'TXT-154', 'TXT-155', 'TXT-156', 'TXT-157', 'TXT-158', 'TXT-159', 'TXT-160', 'TXT-161', 'TXT-162', 'TXT-163', 'TXT-164', 'TXT-165', 'TXT-166', 'TXT-167', 'TXT-168', 'TXT-169', 'TXT-170', 'TXT-171', 'TXT-172', 'TXT-173', 'TXT-174', 'TXT-175', 'TXT-176', 'TXT-177', 'TXT-178', 'TXT-179', 'TXT-180', 'TXT-181', 'TXT-182', 'TXT-184', 'TXT-185', 'TXT-186', 'TXT-187', 'TXT-196', 'TXT-197', 'TXT-198', 'TXT-199', 'TXT-200', 'TXT-201', 'TXT-202', 'TXT-203', 'TXT-204', 'TXT-205', 'TXT-206', 'TXT-207', 'TXT-208', 'TXT-209', 'TXT-210', 'TXT-211', 'TXT-212', 'TXT-213', 'TXT-214', 'TXT-216', 'TXT-217', 'TXT-219', 'TXT-220', 'TXT-221', 'TXT-224', 'TXT-225', 'TXT-226', 'TXT-227', 'TXT-228', 'TXT-229', 'TXT-230', 'TXT-231', 'TXT-232', 'TXT-233', 'TXT-234', 'TXT-235', 'TXT-237', 'TXT-238', 'TXT-239', 'TXT-240', 'TXT-241', 'TXT-242', 'TXT-243', 'TXT-244', 'TXT-245', 'TXT-247', 'TXT-248', 'TXT-249', 'TXT-250', 'TXT-251', 'TXT-252', 'TXT-253', 'TXT-254', 'TXT-255', 'TXT-256', 'TXT-257', 'TXT-258', 'TXT-259', 'TXT-260', 'TXT-261', 'TXT-262', 'TXT-263', 'TXT-264', 'TXT-265', 'TXT-266', 'TXT-267', 'TXT-268', 'TXT-269', 'TXT-270', 'TXT-271', 'TXT-272', 'TXT-273', 'TXT-274', 'TXT-275', 'TXT-276', 'TXT-277', 'TXT-278', 'TXT-279', 'TXT-280', 'TXT-281', 'TXT-282', 'TXT-283', 'TXT-284', 'TXT-285', 'TXT-286', 'TXT-287', 'TXT-288', 'TXT-289', 'TXT-290', 'TXT-291', 'TXT-292', 'TXT-293', 'TXT-294', 'TXT-295', 'TXT-296', 'TXT-297', 'TXT-298', 'TXT-299', 'TXT-300', 'TXT-301', 'TXT-302', 'TXT-303', 'TXT-304', 'TXT-305', 'TXT-306', 'TXT-307', 'TXT-308', 'TXT-309', 'TXT-310', 'TXT-311', 'TXT-312', 'TXT-313', 'TXT-314', 'TXT-315', 'TXT-316', 'TXT-317', 'TXT-318', 'TXT-319', 'TXT-320', 'TXT-321', 'TXT-322', 'TXT-323', 'TXT-324', 'TXT-325', 'TXT-326', 'TXT-327', 'TXT-328', 'TXT-329', 'TXT-330', 'TXT-331', 'TXT-332', 'TXT-333', 'TXT-334', 'TXT-335', 'TXT-336', 'TXT-337', 'TXT-338', 'TXT-344', 'TXT-345', 'TXT-346', 'TXT-347', 'TXT-348', 'TXT-349', 'TXT-350', 'TXT-351', 'TXT-352', 'TXT-353', 'TXT-354', 'TXT-355', 'TXT-356', 'TXT-357', 'TXT-358', 'TXT-359', 'TXT-360', 'TXT-361', 'TXT-362', 'TXT-363', 'TXT-364', 'TXT-365', 'TXT-366', 'TXT-367', 'TXT-368', 'TXT-369', 'TXT-370', 'TXT-371', 'TXT-373', 'TXT-374', 'TXT-376', 'TXT-378', 'TXT-379', 'TXT-380', 'TXT-381', 'TXT-382', 'TXT-384', 'TXT-402', 'TXT-413', 'TXT-414', 'TXT-415', 'TXT-417', 'TXT-418', 'TXT-419', 'TXT-420', 'TXT-421', 'TXT-423', 'TXT-424', 'TXT-425', 'TXT-426', 'TXT-427', 'TXT-428', 'TXT-429', 'TXT-430', 'TXT-432', 'TXT-433', 'TXT-434', 'TXT-435', 'TXT-436', 'TXT-437', 'TXT-438', 'TXT-442', 'TXT-443', 'TXT-444', 'TXT-445', 'TXT-446', 'TXT-452', 'TXT-463', 'TXT-473', 'TXT-484', 'TXT-486', 'TXT-488', 'TXT-489', 'TXT-491', 'TXT-492', 'TXT-493', 'TXT-494', 'TXT-495', 'TXT-496', 'TXT-497', 'TXT-498', 'TXT-499', 'TXT-500', 'TXT-502', 'TXT-505'], 'name': 'Joannes Chrysostomus Scr. Eccl., John Chrysostom'}, 'TLG0211': {'works': ['TXT-001', 'TXT-002'], 'name': 'Simias Gramm.'}, 'TLG2444': {'works': ['TXT-001'], 'name': 'Lycophron Soph.'}, 'TLG0531': {'works': ['TXT-001'], 'name': 'Hermias Apol.'}, 'TLG0714': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anaxarchus Phil.'}, 'TLG0666': {'works': ['TXT-001'], 'name': 'Adrianus Rhet. et Soph.'}, 'TLG2995': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Orus Gramm.'}, 'TLG4001': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aeneas Phil. et Rhet.'}, 'TLG0408': {'works': ['TXT-001', 'TXT-002'], 'name': 'Comica Adespota (CAF)'}, 'TLG2189': {'works': ['TXT-001', 'TXT-002'], 'name': 'Callinicus Soph.'}, 'TLG4090': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-026', 'TXT-027', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-095', 'TXT-096', 'TXT-097', 'TXT-098', 'TXT-099', 'TXT-100', 'TXT-101', 'TXT-102', 'TXT-103', 'TXT-104', 'TXT-105', 'TXT-106', 'TXT-107', 'TXT-108', 'TXT-109', 'TXT-110', 'TXT-112', 'TXT-114', 'TXT-115', 'TXT-116', 'TXT-117', 'TXT-118', 'TXT-119', 'TXT-120', 'TXT-121', 'TXT-122', 'TXT-123', 'TXT-124', 'TXT-125', 'TXT-126', 'TXT-127', 'TXT-129', 'TXT-130', 'TXT-135', 'TXT-140', 'TXT-144', 'TXT-148', 'TXT-149', 'TXT-162', 'TXT-163', 'TXT-165', 'TXT-166', 'TXT-167', 'TXT-170', 'TXT-175', 'TXT-176'], 'name': 'Cyrillus Theol.'}, 'TLG1294': {'works': ['TXT-001'], 'name': 'Critolaus Phil.'}, 'TLG2587': {'works': ['TXT-001'], 'name': 'Ariston Phil.'}, 'TLG0644': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011'], 'name': 'Aristophanes Gramm.'}, 'TLG0099': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Strabo Geogr.'}, 'TLG1646': {'works': ['TXT-003'], 'name': 'Ptolemaeus Hist.'}, 'TLG0557': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Epictetus Phil.'}, 'TLG0369': {'works': ['TXT-001'], 'name': 'Telesilla Lyr.'}, 'TLG1752': {'works': ['TXT-003'], 'name': 'Xenagoras Geogr. et Hist.'}, 'TLG2968': {'works': ['TXT-001'], 'name': 'Monimus Phil.'}, 'TLG1489': {'works': ['TXT-003'], 'name': 'Megasthenes Hist.'}, 'TLG1334': {'works': ['TXT-001'], 'name': 'Dius Phil.'}, 'TLG0751': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Pseudo-Hippocrates Med.'}, 'TLG4344': {'works': ['TXT-001'], 'name': 'Menecrates Hist.'}, 'TLG2644': {'works': ['TXT-001'], 'name': 'Sminthes Astron.'}, 'TLG1530': {'works': ['TXT-005'], 'name': 'Nicanor Gramm.'}, 'TLG0833': {'works': ['TXT-001'], 'name': 'Anaxion Trag.'}, 'TLG3146': {'works': ['TXT-001'], 'name': 'Ducas Hist.'}, 'TLG1629': {'works': ['TXT-001', 'TXT-002'], 'name': 'Polystratus Phil.'}, 'TLG1244': {'works': ['TXT-002', 'TXT-003'], 'name': 'Carneiscus Phil.'}, 'TLG0650': {'works': ['TXT-001'], 'name': 'Herodas Mimogr.'}, 'TLG2607': {'works': ['TXT-001'], 'name': 'Alexinus Phil.'}, 'TLG3079': {'works': ['TXT-001'], 'name': 'Michael Attaliates Hist.'}, 'TLG2186': {'works': ['TXT-003'], 'name': 'Leo Hist.'}, 'TLG1607': {'works': ['TXT-002'], 'name': 'Phoronis'}, 'TLG2393': {'works': ['TXT-002'], 'name': 'Andreas Hist.'}, 'TLG1665': {'works': ['TXT-001'], 'name': 'Seniores Apud Irenaeum Scr. Eccl.'}, 'TLG2647': {'works': ['TXT-001'], 'name': 'Zenothemis Geogr.'}, 'TLG0402': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Alexis Comic.'}, 'TLG1577': {'works': ['TXT-001', 'TXT-002'], 'name': 'Phaedimus Epigr.'}, 'TLG1434': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Hippias Soph.'}, 'TLG0632': {'works': ['TXT-001', 'TXT-002', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Pythagoras Phil.'}, 'TLG1087': {'works': ['TXT-001'], 'name': 'Cleophon Trag.'}, 'TLG1896': {'works': ['TXT-002'], 'name': '[Dositheus] Hist.'}, 'TLG2409': {'works': ['TXT-003', 'TXT-004'], 'name': 'Dioscurides Hist.'}, 'TLG0447': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Diphilus Comic.'}, 'TLG0458': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Eubulus Comic.'}, 'TLG2027': {'works': ['TXT-001', 'TXT-002'], 'name': 'Valerius Apsines Rhet.'}, 'TLG1679': {'works': ['TXT-002'], 'name': 'Socrates Hist.'}, 'TLG2960': {'works': ['TXT-001'], 'name': 'Oracula Tiburtina'}, 'TLG0067': {'works': ['TXT-001', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Agatharchides Geogr.'}, 'TLG2255': {'works': ['TXT-003'], 'name': 'Gorgias Hist.'}, 'TLG1150': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aphareus Rhet.'}, 'TLG0007': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-048', 'TXT-049', 'TXT-050', 'TXT-051', 'TXT-052', 'TXT-053', 'TXT-054', 'TXT-055', 'TXT-056', 'TXT-057', 'TXT-058', 'TXT-059', 'TXT-060', 'TXT-061', 'TXT-062', 'TXT-063', 'TXT-064', 'TXT-065', 'TXT-066', 'TXT-067', 'TXT-068', 'TXT-069', 'TXT-070', 'TXT-071', 'TXT-072', 'TXT-073', 'TXT-074', 'TXT-075', 'TXT-076', 'TXT-077', 'TXT-078', 'TXT-079', 'TXT-080', 'TXT-081', 'TXT-082', 'TXT-083', 'TXT-084', 'TXT-085', 'TXT-086', 'TXT-087', 'TXT-088', 'TXT-089', 'TXT-090', 'TXT-091', 'TXT-092', 'TXT-093', 'TXT-094', 'TXT-095', 'TXT-096', 'TXT-097', 'TXT-098', 'TXT-099', 'TXT-100', 'TXT-101', 'TXT-102', 'TXT-103', 'TXT-104', 'TXT-105', 'TXT-106', 'TXT-107', 'TXT-108', 'TXT-109', 'TXT-110', 'TXT-111', 'TXT-112', 'TXT-113', 'TXT-114', 'TXT-115', 'TXT-116', 'TXT-117', 'TXT-118', 'TXT-119', 'TXT-120', 'TXT-121', 'TXT-122', 'TXT-123', 'TXT-125', 'TXT-126', 'TXT-127', 'TXT-128', 'TXT-129', 'TXT-130', 'TXT-131', 'TXT-132', 'TXT-133', 'TXT-134', 'TXT-135', 'TXT-136', 'TXT-137', 'TXT-138', 'TXT-139', 'TXT-140', 'TXT-141', 'TXT-143', 'TXT-144', 'TXT-145', 'TXT-146', 'TXT-147', 'TXT-148', 'TXT-149'], 'name': 'Plutarchus Biogr. et Phil.'}, 'TLG0618': {'works': ['TXT-001'], 'name': 'Antigoni Epistula'}, 'TLG1282': {'works': ['TXT-002'], 'name': 'Clytus Hist.'}, 'TLG2696': {'works': ['TXT-001'], 'name': 'Theodorus Poeta'}, 'TLG5000': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Concilia Oecumenica (ACO)'}, 'TLG0625': {'works': ['TXT-001'], 'name': 'Polemaeus Trag.'}, 'TLG2651': {'works': ['TXT-001'], 'name': 'Artemidorus Eleg.'}, 'TLG0433': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Crates Comic.'}, 'TLG1231': {'works': ['TXT-001'], 'name': 'Bryson Phil.'}, 'TLG3115': {'works': ['TXT-001'], 'name': 'Symeon Metaphrastes Biogr. et Hist.'}, 'TLG1987': {'works': ['TXT-002'], 'name': 'Theodorus Poeta'}, 'TLG1544': {'works': ['TXT-003'], 'name': 'Nymphis Hist.'}, 'TLG0332': {'works': ['TXT-001'], 'name': 'Cleaenetus Trag.'}, 'TLG0022': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-005', 'TXT-006'], 'name': 'Nicander Epic.'}, 'TLG3176': {'works': ['TXT-001', 'TXT-002'], 'name': 'Pseudo-Sphrantzes Hist.'}, 'TLG2399': {'works': ['TXT-001'], 'name': 'Eudromus Phil.'}, 'TLG2304': {'works': ['TXT-001'], 'name': 'Idaeus Phil.'}, 'TLG0604': {'works': ['TXT-001'], 'name': 'Ptolemaeus IV Philopator Trag.'}, 'TLG0061': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010'], 'name': 'Pseudo-Lucianus Soph.'}, 'TLG0592': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Hermogenes Rhet.'}, 'TLG3045': {'works': ['TXT-001'], 'name': 'Georgius Syncellus Chronogr.'}, 'TLG0301': {'works': ['TXT-001'], 'name': 'Thespis Trag.'}, 'TLG4167': {'works': ['TXT-001'], 'name': 'Leontius Mech.'}, 'TLG4066': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Damascius Phil.'}, 'TLG0257': {'works': ['TXT-001'], 'name': 'Philiscus Rhet.'}, 'TLG0339': {'works': ['TXT-001'], 'name': 'Moschion Trag.'}, 'TLG4018': {'works': ['TXT-001', 'TXT-002'], 'name': 'Asclepius Phil.'}, 'TLG0474': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Magnes Comic.'}, 'TLG0497': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007'], 'name': 'Plato Comic.'}, 'TLG2962': {'works': ['TXT-004', 'TXT-006'], 'name': 'Petrus Scr. Eccl. et Theol.'}, 'TLG1555': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Pancrates Epic.'}, 'TLG0040': {'works': ['TXT-001'], 'name': 'Calani Epistula'}, 'TLG0668': {'works': ['TXT-001'], 'name': 'Aegimius'}, 'TLG2246': {'works': ['TXT-001'], 'name': 'Lycon Phil.'}, 'TLG1785': {'works': ['TXT-001'], 'name': 'Paramonus Comic.'}, 'TLG0336': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Crates Poet. Phil.'}, 'TLG0326': {'works': ['TXT-001'], 'name': 'Sophocles Junior Trag.'}, 'TLG2423': {'works': ['TXT-002'], 'name': 'Asclepiades Gramm. et Hist.'}, 'TLG4392': {'works': ['TXT-001'], 'name': 'Joannes Epiphaniensis Hist.'}, 'TLG1327': {'works': ['TXT-001'], 'name': 'Dionis Epistulae'}, 'TLG1812': {'works': ['TXT-002'], 'name': 'Demaratus Hist.'}, 'TLG0116': {'works': ['TXT-002'], 'name': 'Abydenus Hist.'}, 'TLG1469': {'works': ['TXT-002'], 'name': 'Lyceas Hist.'}, 'TLG2196': {'works': ['TXT-002'], 'name': '[Dercyllus] Hist.'}, 'TLG0568': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Antigonus Paradox.'}, 'TLG4329': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Philosophus Anonymus Alchem.'}, 'TLG0174': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Diotimus Epic.'}, 'TLG3100': {'works': ['TXT-001', 'TXT-002'], 'name': 'Nicolaus I Mysticus Theol. et Epist.'}, 'TLG1184': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Aristides Apol.'}, 'TLG1157': {'works': ['TXT-001', 'TXT-002'], 'name': 'Apocalypsis Esdrae'}, 'TLG0484': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Nicostratus Comic.'}, 'TLG2122': {'works': ['TXT-004'], 'name': 'Gaius Asinius Quadratus Hist.'}, 'TLG0272': {'works': ['TXT-001'], 'name': 'De Arboribus Avibusque Fabulae'}, 'TLG0614': {'works': ['TXT-001'], 'name': 'Valerius Babrius Scr. Fab.'}, 'TLG3015': {'works': ['TXT-001'], 'name': 'Joannes Cameniates Hist.'}, 'TLG1638': {'works': ['TXT-002'], 'name': 'Proxenus Hist.'}, 'TLG0521': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Epicharmus Comic. et Pseudepicharmea'}, 'TLG1311': {'works': ['TXT-001'], 'name': 'Didache XII Apostolorum'}, 'TLG1273': {'works': ['TXT-001', 'TXT-002'], 'name': 'Cleon Eleg.'}, 'TLG0635': {'works': ['TXT-001', 'TXT-002'], 'name': 'Zeno Phil.'}, 'TLG2616': {'works': ['TXT-001'], 'name': 'Demareta Poeta'}, 'TLG4100': {'works': ['TXT-001'], 'name': 'Aphthonius Rhet.'}, 'TLG1408': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heraclides Gramm.'}, 'TLG1212': {'works': ['TXT-001'], 'name': 'Atridarum Reditus'}, 'TLG0090': {'works': ['TXT-001'], 'name': 'Agathemerus Geogr.'}, 'TLG0569': {'works': ['TXT-001'], 'name': 'Apollonius Paradox.'}, 'TLG1443': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Ignatius Scr. Eccl.'}, 'TLG2573': {'works': ['TXT-003'], 'name': 'Pausanias Hist.'}, 'TLG0327': {'works': ['TXT-001'], 'name': 'Carcinus Junior Trag.'}, 'TLG0384': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Acta Justini Et Septem Sodalium'}, 'TLG2235': {'works': ['TXT-001'], 'name': 'Hippocrates Math.'}, 'TLG2914': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015'], 'name': 'Leontius Scr. Eccl.'}, 'TLG0439': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Demetrius Comic.'}, 'TLG0606': {'works': ['TXT-001'], 'name': 'Rufus Soph.'}, 'TLG1367': {'works': ['TXT-001'], 'name': 'Euripidis Epistulae'}, 'TLG0024': {'works': ['TXT-001'], 'name': 'Oppianus Epic.'}, 'TLG0087': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023', 'TXT-024', 'TXT-025', 'TXT-026', 'TXT-027', 'TXT-028', 'TXT-029', 'TXT-030', 'TXT-031', 'TXT-032', 'TXT-033', 'TXT-034', 'TXT-035', 'TXT-036', 'TXT-037', 'TXT-038', 'TXT-039', 'TXT-040', 'TXT-041', 'TXT-042', 'TXT-043', 'TXT-044', 'TXT-045', 'TXT-046', 'TXT-047', 'TXT-049', 'TXT-050', 'TXT-054'], 'name': 'Aelius Herodianus et Pseudo-Herodianus Gramm. et Rhet.'}, 'TLG0280': {'works': ['TXT-001'], 'name': 'Andromachus Poet. Med.'}, 'TLG1816': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021'], 'name': 'Epica Adespota (GDRK)'}, 'TLG0029': {'works': ['TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': 'Dinarchus Orat.'}, 'TLG0971': {'works': ['TXT-001'], 'name': 'Oeniades Lyr.'}, 'TLG1288': {'works': ['TXT-003'], 'name': 'Craterus Hist.'}, 'TLG0044': {'works': ['TXT-001'], 'name': 'Antiochi Regis Epistulae'}, 'TLG1486': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Matron Parodius'}, 'TLG1346': {'works': ['TXT-001'], 'name': 'Ephraem Scr. Eccl.'}, 'TLG0454': {'works': ['TXT-001', 'TXT-002'], 'name': 'Epinicus Comic.'}, 'TLG5014': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-018', 'TXT-019', 'TXT-020', 'TXT-021', 'TXT-022', 'TXT-023'], 'name': 'Scholia In Aristophanem'}, 'TLG0743': {'works': ['TXT-001'], 'name': 'Nemesius Theol.'}, 'TLG0653': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Aratus Astron. et Epic.'}, 'TLG1136': {'works': ['TXT-001'], 'name': 'Anonymus Presbyter Scr. Eccl.'}, 'TLG0662': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009'], 'name': 'Comica Adespota (CGFPR)'}, 'TLG0275': {'works': ['TXT-001'], 'name': 'Peirazomene'}, 'TLG4126': {'works': ['TXT-002', 'TXT-004'], 'name': 'Theodorus Scr. Eccl.'}, 'TLG0648': {'works': ['TXT-001'], 'name': 'Onasander Tact.'}, 'TLG0464': {'works': ['TXT-001', 'TXT-002'], 'name': 'Hegesippus Comic.'}, 'TLG0630': {'works': ['TXT-001', 'TXT-002'], 'name': 'Pherecydes Myth. et Phil.'}, 'TLG1004': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Thessalus Astrol. et Med.'}, 'TLG0066': {'works': ['TXT-001'], 'name': 'Dicaearchus Phil.'}, 'TLG1340': {'works': ['TXT-001'], 'name': 'Eccelus Phil.'}, 'TLG2331': {'works': ['TXT-003'], 'name': 'Myrsilus Hist.'}, 'TLG1247': {'works': ['TXT-001'], 'name': 'Cebes Phil.'}, 'TLG2945': {'works': ['TXT-001'], 'name': 'Gnomologium Vaticanum'}, 'TLG2956': {'works': ['TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Sextus Julius Africanus Hist.'}, 'TLG1374': {'works': ['TXT-001'], 'name': 'Evangelium Secundum Hebraeos'}, 'TLG2605': {'works': ['TXT-001'], 'name': 'Agamestor Eleg.'}, 'TLG0243': {'works': ['TXT-001'], 'name': 'Callinus Eleg.'}, 'TLG1416': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008'], 'name': '(H)eren(n)ius Philo Gramm. et Hist.'}, 'TLG0434': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Cratinus Comic.'}, 'TLG0750': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heliodorus Trag.'}, 'TLG1719': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Theodosius Astron. et Math.'}, 'TLG2194': {'works': ['TXT-002'], 'name': '[Aristides] Hist.'}, 'TLG0505': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Sotades Comic.'}, 'TLG0394': {'works': ['TXT-001'], 'name': 'Apollonius Comic.'}, 'TLG2169': {'works': ['TXT-001'], 'name': 'Herillus Phil.'}, 'TLG0480': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Nicochares Comic.'}, 'TLG0141': {'works': ['TXT-002', 'TXT-003'], 'name': 'Athenaeus Epigr.'}, 'TLG1387': {'works': ['TXT-003'], 'name': '(H)agias-Dercylus Hist.'}, 'TLG0629': {'works': ['TXT-001'], 'name': 'Periander Phil.'}, 'TLG1515': {'works': ['TXT-001'], 'name': 'Moeris Attic.'}, 'TLG1483': {'works': ['TXT-001'], 'name': 'Martyrium Et Ascensio Isaiae'}, 'TLG4304': {'works': ['TXT-001', 'TXT-002'], 'name': 'Glossae In Herodotum'}, 'TLG0342': {'works': ['TXT-001'], 'name': 'Nicomachus Trag.'}, 'TLG0643': {'works': ['TXT-001', 'TXT-002'], 'name': 'Anonymus Londinensis Med.'}, 'TLG0471': {'works': ['TXT-001', 'TXT-002'], 'name': 'Lynceus Comic.'}, 'TLG1967': {'works': ['TXT-002'], 'name': 'Leschides Epic.'}, 'TLG0283': {'works': ['TXT-001', 'TXT-002'], 'name': 'Heraclides Ponticus Junior Gramm.'}, 'TLG4393': {'works': ['TXT-001'], 'name': 'Nonnosus Hist.'}, 'TLG1446': {'works': ['TXT-001', 'TXT-002'], 'name': 'Ion Eleg.'}, 'TLG3178': {'works': ['TXT-001'], 'name': 'Anonymi Lexeis Rhetoricae'}, 'TLG1153': {'works': ['TXT-001'], 'name': 'Apocalypsis Adam'}, 'TLG0547': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Anaximenes Hist. et Rhet.'}, 'TLG0543': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Polybius Hist.'}, 'TLG1289': {'works': ['TXT-002'], 'name': 'Crates Hist.'}, 'TLG0033': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Pindarus Lyr.'}, 'TLG2702': {'works': ['TXT-001', 'TXT-006', 'TXT-007', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-015', 'TXT-016', 'TXT-017', 'TXT-021', 'TXT-022'], 'name': 'Michael Psellus Polyhist.'}, 'TLG1133': {'works': ['TXT-001'], 'name': 'Anonymus Diodori Phil.'}, 'TLG1800': {'works': ['TXT-001', 'TXT-002'], 'name': 'Euboeus Parodius'}, 'TLG0581': {'works': ['TXT-001'], 'name': 'Paradoxographus Palatinus'}, 'TLG5031': {'works': ['TXT-001', 'TXT-002'], 'name': 'Scholia In Nicandrum'}, 'TLG0559': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-008', 'TXT-009', 'TXT-010', 'TXT-011', 'TXT-012', 'TXT-013', 'TXT-014', 'TXT-015', 'TXT-016'], 'name': 'Heron Mech.'}, 'TLG1600': {'works': ['TXT-001'], 'name': 'Philostratus Major Soph.'}, 'TLG2345': {'works': ['TXT-003'], 'name': 'Agl(a)osthenes Hist.'}, 'TLG2046': {'works': ['TXT-001'], 'name': 'Quintus Epic.'}, 'TLG2364': {'works': ['TXT-003'], 'name': 'Zeno Hist.'}, 'TLG0706': {'works': ['TXT-001'], 'name': 'Philo Med.'}, 'TLG1124': {'works': ['TXT-001', 'TXT-002'], 'name': 'Andronicus Rhodius Phil.'}, 'TLG0727': {'works': ['TXT-001'], 'name': 'Joannes Med.'}, 'TLG2566': {'works': ['TXT-002'], 'name': '[Agathon] Hist.'}, 'TLG9007': {'works': ['TXT-001'], 'name': 'Appendix Proverbiorum'}, 'TLG1833': {'works': ['TXT-001', 'TXT-002'], 'name': 'Pratinas Trag.'}, 'TLG2971': {'works': ['TXT-001'], 'name': 'Georgius Peccator Poeta'}, 'TLG0679': {'works': ['TXT-001', 'TXT-002'], 'name': 'Aeschrion Lyr.'}, 'TLG1193': {'works': ['TXT-001', 'TXT-002'], 'name': 'Ariston Phil.'}, 'TLG4193': {'works': ['TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-010', 'TXT-012'], 'name': 'Anonymi In Aristotelis Sophisticos Elenchos Phil.'}, 'TLG0365': {'works': ['TXT-001'], 'name': 'Apollodorus Lyr.'}, 'TLG2306': {'works': ['TXT-003'], 'name': 'Xenomedes Hist.'}, 'TLG1444': {'works': ['TXT-001'], 'name': 'Ilias Parva'}, 'TLG4172': {'works': ['TXT-002', 'TXT-004', 'TXT-005', 'TXT-006'], 'name': 'Vitae Oppiani'}, 'TLG1681': {'works': ['TXT-001'], 'name': 'Solonis Epistulae'}, 'TLG1332': {'works': ['TXT-001'], 'name': 'Diotogenes Phil.'}, 'TLG2894': {'works': ['TXT-001'], 'name': 'Constitutiones Apostolorum'}, 'TLG0492': {'works': ['TXT-001', 'TXT-002', 'TXT-003'], 'name': 'Philonides Comic.'}, 'TLG2865': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005', 'TXT-006', 'TXT-007', 'TXT-009'], 'name': 'Olympiodorus Diaconus Scr. Eccl.'}, 'TLG4149': {'works': ['TXT-001'], 'name': 'Sophronius Gramm.'}, 'TLG0526': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004'], 'name': 'Flavius Josephus Hist.'}, 'TLG0496': {'works': ['TXT-001', 'TXT-002', 'TXT-003', 'TXT-004', 'TXT-005'], 'name': 'Phrynichus Comic.'}, 'TLG0233': {'works': ['TXT-001'], 'name': 'Hipponax Iamb.'}, 'TLG4291': {'works': ['TXT-001'], 'name': 'Verba In Scripturis De Christo'}, 'TLG3127': {'works': ['TXT-001'], 'name': 'Pseudo-Nonnus'}, 'TLG2354': {'works': ['TXT-002'], 'name': 'Dionysius Hist.'}, 'TLG3169': {'works': ['TXT-001'], 'name': 'Joannes VI Cantacuzenus'}, 'TLG2172': {'works': ['TXT-002'], 'name': 'Andron Hist.'}, 'TLG1232': {'works': ['TXT-001'], 'name': 'Butherus Phil.'}, 'TLG2064': {'works': ['TXT-002'], 'name': 'Acacius Theol.'}, 'TLG2133': {'works': ['TXT-001'], 'name': 'Achilles Tatius Astron.'}, 'TLG0550': {'works': ['TXT-001'], 'name': 'Apollonius Geom.'}, 'TLG2946': {'works': ['TXT-001', 'TXT-002'], 'name': 'Priscus Hist. et Rhet.'}, 'TLG1675': {'works': ['TXT-002'], 'name': 'Simylus Eleg.'}, 'TLG0378': {'works': ['TXT-001'], 'name': 'Ariphron Lyr.'}, 'TLG2025': {'works': ['TXT-002'], 'name': 'Maximus Rhet.'}}
TLG_WORKS_INDEX = {'TLG2153': {'works': ['001'], 'name': 'Bion Math. et Phil.'}, 'TLG0375': {'works': ['001', '002'], 'name': 'Cinesias Lyr.'}, 'TLG2606': {'works': ['001'], 'name': 'Agathyllus Eleg.'}, 'TLG3020': {'works': ['001', '002'], 'name': 'Joannes Cinnamus Gramm. et Hist.'}, 'TLG0540': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036'], 'name': 'Lysias Orat.'}, 'TLG0220': {'works': ['001', '002'], 'name': 'Moero Epic.'}, 'TLG1804': {'works': ['001', '003', '004', '005'], 'name': 'Ninus'}, 'TLG1419': {'works': ['001', '002', '003', '004'], 'name': 'Hermas Scr. Eccl., Pastor Hermae'}, 'TLG1263': {'works': ['001', '003', '004', '005'], 'name': 'Choerilus Epic.'}, 'TLG0324': {'works': ['001'], 'name': 'Patrocles Trag.'}, 'TLG4039': {'works': ['001', '002'], 'name': 'Paulus Silentiarius Poeta'}, 'TLG0230': {'works': ['001'], 'name': 'Lyrica Adespota (CA)'}, 'TLG1178': {'works': ['001'], 'name': 'Aresas Phil.'}, 'TLG2048': {'works': ['001'], 'name': 'Salaminius Hermias Sozomenus Scr. Eccl.'}, 'TLG4289': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Lexica Segueriana'}, 'TLG1272': {'works': ['001'], 'name': 'Cleomedes Astron.'}, 'TLG3120': {'works': ['001', '002', '003', '004'], 'name': 'Patria Constantinopoleos'}, 'TLG0050': {'works': ['001'], 'name': 'Ptolemaei II Philadelphi Et Eleazari Epistulae'}, 'TLG0333': {'works': ['001'], 'name': 'Timocles Trag.'}, 'TLG4081': {'works': ['001'], 'name': 'Colluthus Epic.'}, 'TLG4089': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '016', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035'], 'name': 'Theodoretus Scr. Eccl. et Theol.'}, 'TLG2244': {'works': ['001'], 'name': 'Damon et Phintias Phil.'}, 'TLG1305': {'works': ['003'], 'name': 'Democritus Hist.'}, 'TLG1645': {'works': ['003'], 'name': 'Ptolemaeus VIII Euergetes II Hist.'}, 'TLG0146': {'works': ['001', '002'], 'name': 'Boethus Epigr.'}, 'TLG0282': {'works': ['001'], 'name': 'Anonymus De Viribus Herbarum'}, 'TLG4323': {'works': ['001'], 'name': 'Eugenius Alchem.'}, 'TLG1016': {'works': ['001'], 'name': 'Ostanes Magus Alchem.'}, 'TLG2178': {'works': ['001', '002', '004'], 'name': 'Cassius Longinus Phil. et Rhet.'}, 'TLG0520': {'works': ['001'], 'name': 'Arcesilaus Comic.'}, 'TLG2171': {'works': ['002'], 'name': 'Stesiclides Hist.'}, 'TLG2226': {'works': ['001'], 'name': 'Iccus Phil.'}, 'TLG1177': {'works': ['001'], 'name': 'Pseudo-Archytas Phil.'}, 'TLG2121': {'works': ['001'], 'name': 'Dioscorus Poeta'}, 'TLG3086': {'works': ['001', '002', '012'], 'name': 'Nicephorus I Scr. Eccl., Hist. et Theol.'}, 'TLG0360': {'works': ['002'], 'name': 'Armenidas Hist.'}, 'TLG2059': {'works': ['001'], 'name': 'Alexander Theol.'}, 'TLG1105': {'works': ['001'], 'name': 'Timaeus Praxidas Astrol.'}, 'TLG2084': {'works': ['001'], 'name': 'Basilius Med. et Scr. Eccl.'}, 'TLG1141': {'works': ['001', '002'], 'name': 'Antimachus Epic.'}, 'TLG2652': {'works': ['001'], 'name': 'Diodorus Eleg.'}, 'TLG0262': {'works': ['001'], 'name': 'Socrates Phil.'}, 'TLG0303': {'works': ['001'], 'name': 'Phrynichus Trag.'}, 'TLG0695': {'works': ['003'], 'name': 'Alcimus Hist.'}, 'TLG2334': {'works': ['001', '002'], 'name': 'Nausiphanes Phil.'}, 'TLG1976': {'works': ['003'], 'name': 'Metrodorus Hist.'}, 'TLG0438': {'works': ['001', '002'], 'name': 'Damoxenus Comic.'}, 'TLG2014': {'works': ['001'], 'name': 'Acta Phileae'}, 'TLG0420': {'works': ['001', '002'], 'name': 'Aristonymus Comic.'}, 'TLG0608': {'works': ['001', '002'], 'name': 'Satyrus Biogr.'}, 'TLG0198': {'works': ['001', '002'], 'name': 'Hedylus Epigr.'}, 'TLG0383': {'works': ['001', '002', '003'], 'name': 'Alcaeus Lyr.'}, 'TLG0621': {'works': ['001'], 'name': '[Ath]enodorus Trag.'}, 'TLG1972': {'works': ['002'], 'name': 'Eumachus Hist.'}, 'TLG1562': {'works': ['001', '002'], 'name': 'Parmenides Poet. Phil.'}, 'TLG1771': {'works': ['001'], 'name': 'Montanus et Montanistae Theol.'}, 'TLG0574': {'works': ['002', '003'], 'name': 'Lysimachus Hist.'}, 'TLG2175': {'works': ['002'], 'name': 'Autocharis Hist.'}, 'TLG2466': {'works': ['003'], 'name': 'Dionysius Hist.'}, 'TLG1292': {'works': ['001'], 'name': 'Crito Phil.'}, 'TLG0297': {'works': ['001'], 'name': 'Lyrica Adespota (PMG)'}, 'TLG2565': {'works': ['002'], 'name': 'Mnesimachus Hist.'}, 'TLG1251': {'works': ['001', '002'], 'name': 'Chamaeleon Phil.'}, 'TLG4187': {'works': ['006', '008', '009'], 'name': 'Leo Magentinus Phil.'}, 'TLG1369': {'works': ['001'], 'name': 'Evangelium Mariae'}, 'TLG2714': {'works': ['001', '002', '003'], 'name': 'Theodorus Studites Scr. Eccl. et Theol.'}, 'TLG0387': {'works': ['001', '002'], 'name': 'Sapphus vel Alcaei Fragmenta'}, 'TLG2119': {'works': ['001', '002', '003', '004'], 'name': 'Christodorus Epic.'}, 'TLG1576': {'works': ['001'], 'name': 'Phaedimus Epic.'}, 'TLG0876': {'works': ['001'], 'name': 'Phrynichus II Trag.'}, 'TLG2612': {'works': ['001'], 'name': 'Caecalus (?) Epic.'}, 'TLG2583': {'works': ['001'], 'name': 'Manetho Astrol.'}, 'TLG1323': {'works': ['001'], 'name': 'Aelius Dionysius Attic.'}, 'TLG2602': {'works': ['001'], 'name': 'Timaeus Sophista Gramm.'}, 'TLG1503': {'works': ['002'], 'name': 'Menecrates Hist.'}, 'TLG2556': {'works': ['002'], 'name': '[Alexarchus] Hist.'}, 'TLG0638': {'works': ['001', '003', '004', '005', '006', '007', '009'], 'name': 'Flavius Philostratus Soph.'}, 'TLG2117': {'works': ['001'], 'name': 'Anonymus De Metrorum Ratione'}, 'TLG2314': {'works': ['001'], 'name': 'Diogenes Phil.'}, 'TLG1357': {'works': ['001'], 'name': 'Eudemus Phil.'}, 'TLG2724': {'works': ['003'], 'name': 'Ammonius Scr. Eccl.'}, 'TLG0308': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009'], 'name': 'Ion Phil. et Poeta'}, 'TLG2042': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '077', '078', '079', '084', '086'], 'name': 'Origenes Theol.'}, 'TLG0586': {'works': ['001', '002'], 'name': 'Polemon Perieg.'}, 'TLG1373': {'works': ['001'], 'name': 'Evangelium Philippi'}, 'TLG3018': {'works': ['001'], 'name': 'Georgius Cedrenus Chronogr.'}, 'TLG0432': {'works': ['001', '002'], 'name': 'Clearchus Comic.'}, 'TLG0051': {'works': ['001'], 'name': 'Melissa Phil.'}, 'TLG1291': {'works': ['002'], 'name': 'Creophylus Hist.'}, 'TLG0583': {'works': ['001', '002', '003'], 'name': 'Philochorus Hist.'}, 'TLG1222': {'works': ['003'], 'name': 'Beros(s)us Astrol. et Hist.'}, 'TLG0414': {'works': ['001', '002', '003', '004'], 'name': 'Apollophanes Comic.'}, 'TLG4171': {'works': ['001'], 'name': 'Anonymi In Oppiani Opera'}, 'TLG1693': {'works': ['001'], 'name': 'Sphaerus Phil.'}, 'TLG1409': {'works': ['001'], 'name': 'Heraclides Ponticus Phil.'}, 'TLG0351': {'works': ['001'], 'name': '[Hippothoon] Trag.'}, 'TLG0276': {'works': ['001'], 'name': 'Cantus Lugubris'}, 'TLG2797': {'works': ['028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '048', '049', '050', '051', '052', '053'], 'name': 'Hesychius Scr. Eccl.'}, 'TLG2458': {'works': ['002'], 'name': 'Marcellus Hist.'}, 'TLG1867': {'works': ['003'], 'name': 'Crito Hist.'}, 'TLG1606': {'works': ['001'], 'name': 'Phoenix Iamb.'}, 'TLG1868': {'works': ['003'], 'name': 'Damastes Hist.'}, 'TLG0649': {'works': ['001', '002', '003'], 'name': 'Lesbonax Rhet.'}, 'TLG2018': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039'], 'name': 'Eusebius Scr. Eccl. et Theol.'}, 'TLG1420': {'works': ['001'], 'name': 'Hermias Iamb.'}, 'TLG1438': {'works': ['003'], 'name': 'Hippys Hist.'}, 'TLG0716': {'works': ['001', '002'], 'name': 'Erotianus Gramm. et Med.'}, 'TLG0082': {'works': ['001', '002', '003', '004'], 'name': 'Apollonius Dyscolus Gramm.'}, 'TLG1484': {'works': ['001'], 'name': 'Martyrium Polycarpi'}, 'TLG1388': {'works': ['002'], 'name': 'Harmodius Hist.'}, 'TLG0125': {'works': ['001'], 'name': 'Zenonis Epistula'}, 'TLG4117': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024'], 'name': 'Eustathius Scr. Eccl. et Theol.'}, 'TLG1526': {'works': ['001'], 'name': 'Neoptolemus Gramm.'}, 'TLG0713': {'works': ['001', '002'], 'name': 'Anaxagoras Phil.'}, 'TLG2586': {'works': ['001', '002'], 'name': 'Menander Rhet.'}, 'TLG1152': {'works': ['003', '004', '005'], 'name': 'Apion Gramm.'}, 'TLG1786': {'works': ['001'], 'name': 'Sogenes Comic.'}, 'TLG0731': {'works': ['001', '002', '003'], 'name': 'Adamantius Judaeus Med.'}, 'TLG5039': {'works': ['001'], 'name': 'Scholia In Thucydidem'}, 'TLG0510': {'works': ['001', '002', '003'], 'name': 'Teleclides Comic.'}, 'TLG2273': {'works': ['002'], 'name': 'Damon Hist.'}, 'TLG2009': {'works': ['001'], 'name': 'Martyrium Marini'}, 'TLG1680': {'works': ['001'], 'name': 'Sodamus Eleg.'}, 'TLG0448': {'works': ['001', '002'], 'name': 'Dromo Comic.'}, 'TLG1293': {'works': ['001'], 'name': 'Crinis Phil.'}, 'TLG4082': {'works': ['001'], 'name': 'Musaeus Grammaticus Epic.'}, 'TLG1832': {'works': ['001', '002'], 'name': 'Acesander Hist.'}, 'TLG2157': {'works': ['003'], 'name': 'Magnus Hist.'}, 'TLG2600': {'works': ['001', '002'], 'name': 'Simon Scriptor De Re Equestri'}, 'TLG0889': {'works': ['001'], 'name': 'Timesitheus Trag.'}, 'TLG1306': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Bolus Med. et Phil.'}, 'TLG1213': {'works': ['001'], 'name': 'Julia Balbilla Lyr.'}, 'TLG0043': {'works': ['001'], 'name': 'Amasis Epistulae'}, 'TLG1723': {'works': ['001'], 'name': 'Theolytus Epic.'}, 'TLG7051': {'works': ['001'], 'name': 'Doctrina Patrum'}, 'TLG2203': {'works': ['002'], 'name': '[Theophilus] Hist.'}, 'TLG1304': {'works': ['001', '002'], 'name': 'Democritus Phil.'}, 'TLG0088': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Aristoxenus Mus.'}, 'TLG1709': {'works': ['003'], 'name': 'Theagenes Hist.'}, 'TLG2816': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Joannes Gramm. et Theol.'}, 'TLG0656': {'works': ['001', '002', '003', '004'], 'name': 'Dioscorides Pedanius Med.'}, 'TLG1568': {'works': ['002'], 'name': 'Parthax Hist.'}, 'TLG0361': {'works': ['001'], 'name': 'Cleonides Mus.'}, 'TLG2580': {'works': ['001', '002', '003'], 'name': 'Joannes Laurentius Lydus Hist.'}, 'TLG1688': {'works': ['001', '002'], 'name': 'Sostratus Gramm.'}, 'TLG1534': {'works': ['002'], 'name': 'Nicocles Hist.'}, 'TLG1308': {'works': ['001', '003'], 'name': 'Demosthenes Epic.'}, 'TLG0611': {'works': ['001'], 'name': 'Theodorus Trag.'}, 'TLG4086': {'works': ['001', '002'], 'name': '[Agathodaemon] Alchem.'}, 'TLG1664': {'works': ['001'], 'name': 'Seniores Alexandrini Scr. Eccl.'}, 'TLG1162': {'works': ['002'], 'name': 'Apollas Hist.'}, 'TLG5048': {'works': ['001'], 'name': 'Scholia In Clementem Alexandrinum'}, 'TLG0423': {'works': ['001', '002', '003'], 'name': 'Autocrates Comic.'}, 'TLG0724': {'works': ['001', '002', '003', '004'], 'name': 'Stephanus Med. et Phil.'}, 'TLG0419': {'works': ['001', '002', '003'], 'name': 'Aristomenes Comic.'}, 'TLG4327': {'works': ['001'], 'name': 'Joannes Archiereus Alchem.'}, 'TLG0382': {'works': ['001', '002'], 'name': 'Castorion Lyr.'}, 'TLG1571': {'works': ['001'], 'name': 'Pempelus Phil.'}, 'TLG0487': {'works': ['001', '002', '003', '004', '006', '007', '008', '009'], 'name': 'Philemon Comic.'}, 'TLG1819': {'works': ['001'], 'name': 'Pseudo-Demosthenes Epigr.'}, 'TLG0572': {'works': ['001'], 'name': 'Gaius Scr. Eccl.'}, 'TLG2967': {'works': ['001'], 'name': 'Theodorus Heracleensis vel Theodorus Mopsuestenus Scr. Eccl.'}, 'TLG0598': {'works': ['001', '002', '003', '004', '005', '007', '008', '009', '010', '011', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024'], 'name': 'Rhetorica Anonyma'}, 'TLG1617': {'works': ['001', '002'], 'name': 'Marcus Antonius Polemon Soph.'}, 'TLG1493': {'works': ['001'], 'name': 'Melinno Lyr.'}, 'TLG0627': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057'], 'name': 'Hippocrates Med. et Corpus Hippocraticum'}, 'TLG1179': {'works': ['001'], 'name': 'Arimnestus Phil.'}, 'TLG1667': {'works': ['001', '002', '004', '005', '006'], 'name': 'Septem Sapientes Phil.'}, 'TLG1156': {'works': ['001'], 'name': 'Apocalypsis Eliae'}, 'TLG1381': {'works': ['001'], 'name': 'Fragmentum Synodicae Epistulae Concilii Caesariensis'}, 'TLG1772': {'works': ['001'], 'name': 'Paraleipomena Jeremiou'}, 'TLG0015': {'works': ['001'], 'name': 'Herodianus Hist.'}, 'TLG1523': {'works': ['003'], 'name': 'Myron Hist.'}, 'TLG1341': {'works': ['001', '002'], 'name': 'Ecphantus Phil.'}, 'TLG0607': {'works': ['001'], 'name': 'Aelius Theon Rhet.'}, 'TLG1595': {'works': ['107'], 'name': 'Philodemus Phil.'}, 'TLG2969': {'works': ['001'], 'name': 'Demonax Phil.'}, 'TLG0493': {'works': ['001', '002'], 'name': 'Philostephanus Comic.'}, 'TLG1464': {'works': ['001'], 'name': 'Liber Jubilaeorum'}, 'TLG0603': {'works': ['001'], 'name': 'Silenus Trag.'}, 'TLG2619': {'works': ['001'], 'name': 'Dionysius Epic.'}, 'TLG0544': {'works': ['001', '002'], 'name': 'Sextus Empiricus Phil.'}, 'TLG0293': {'works': ['001', '002'], 'name': 'Ibycus Lyr.'}, 'TLG1813': {'works': ['001'], 'name': 'Anonymus De Plantis Aegyptiis'}, 'TLG2003': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020'], 'name': 'Flavius Claudius Julianus Imperator Phil., Julian the Apostate'}, 'TLG1249': {'works': ['003'], 'name': 'Cephalion Hist. et Rhet.'}, 'TLG5034': {'works': ['001', '002', '003', '004', '005', '006', '007'], 'name': 'Scholia In Pindarum'}, 'TLG1508': {'works': ['001', '002', '003'], 'name': 'Metrodorus Phil.'}, 'TLG1626': {'works': ['001'], 'name': 'Polycrates Scr. Eccl.'}, 'TLG2601': {'works': ['001'], 'name': 'Tiberius Rhet.'}, 'TLG0671': {'works': ['001'], 'name': 'Philumenus Med.'}, 'TLG0723': {'works': ['001', '002'], 'name': 'Leo Phil.'}, 'TLG0240': {'works': ['001'], 'name': 'Hermolochus Lyr.'}, 'TLG4238': {'works': ['001'], 'name': 'Athanasius Soph.'}, 'TLG4102': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046'], 'name': 'Catenae (Novum Testamentum)'}, 'TLG0470': {'works': ['001', '002', '003'], 'name': 'Leuco Comic.'}, 'TLG1406': {'works': ['003'], 'name': 'Heraclides Hist.'}, 'TLG1466': {'works': ['001', '002', '003'], 'name': 'Lollianus Scr. Erot.'}, 'TLG1471': {'works': ['001'], 'name': 'Lyrica Adespota (SLG)'}, 'TLG2219': {'works': ['003'], 'name': 'Amelesagoras Hist.'}, 'TLG1648': {'works': ['002'], 'name': 'Pyrgion Hist.'}, 'TLG3094': {'works': ['001'], 'name': 'Nicetas Choniates Hist., Scr. Eccl. et Rhet.'}, 'TLG1875': {'works': ['002'], 'name': 'Aristodemus Hist. et Myth.'}, 'TLG0449': {'works': ['001', '002', '003'], 'name': 'Ecphantides Comic.'}, 'TLG1545': {'works': ['001', '002', '003'], 'name': 'Ocellus Phil.'}, 'TLG0676': {'works': ['001', '002'], 'name': 'Aglaïs Poet. Med.'}, 'TLG2227': {'works': ['001'], 'name': 'Paron Phil.'}, 'TLG0036': {'works': ['001', '002', '003'], 'name': 'Bion Bucol.'}, 'TLG4288': {'works': ['001'], 'name': 'Lexicon αἱμωδεῖν'}, 'TLG4091': {'works': ['001'], 'name': 'Callistratus Soph.'}, 'TLG1912': {'works': ['004'], 'name': 'Euphantus Phil.'}, 'TLG2160': {'works': ['002'], 'name': 'Pyrrhus Hist.'}, 'TLG0377': {'works': ['001', '002'], 'name': 'Telestes Lyr.'}, 'TLG0736': {'works': ['001'], 'name': 'Stephanus Med.'}, 'TLG2033': {'works': ['001', '002', '006', '007', '009'], 'name': 'Theon Math.'}, 'TLG0430': {'works': ['001', '002'], 'name': 'Chariclides Comic.'}, 'TLG1431': {'works': ['002', '003'], 'name': 'Hipparchus Astron. et Geogr.'}, 'TLG1310': {'works': ['002', '003'], 'name': 'Dictys Hist.'}, 'TLG0095': {'works': ['001', '002'], 'name': 'Hermodorus Phil.'}, 'TLG2681': {'works': ['001'], 'name': 'Diodorus Phil.'}, 'TLG2631': {'works': ['001'], 'name': 'Menophilus Poeta'}, 'TLG2460': {'works': ['002'], 'name': 'Glaucus Hist.'}, 'TLG0042': {'works': ['001'], 'name': 'Alexandri Magni Epistulae'}, 'TLG2011': {'works': ['001'], 'name': 'Martyrium Agapae, Irenae, Chionae Et Sodalium'}, 'TLG1204': {'works': ['001'], 'name': 'Athenaeus Mech.'}, 'TLG1437': {'works': ['001', '002'], 'name': 'Hippon Phil.'}, 'TLG1541': {'works': ['001'], 'name': 'Nostoi'}, 'TLG0519': {'works': ['001', '002'], 'name': 'Xeno Comic.'}, 'TLG1322': {'works': ['001'], 'name': 'Diogenianus Phil.'}, 'TLG0698': {'works': ['002'], 'name': 'Alexander Rhet.'}, 'TLG1580': {'works': ['001', '003'], 'name': 'Phaestus Epic.'}, 'TLG2639': {'works': ['001'], 'name': 'Posidonius Epic.'}, 'TLG1425': {'works': ['001'], 'name': 'Hermonax Epic.'}, 'TLG0219': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Rhianus Epic.'}, 'TLG0558': {'works': ['001', '002', '003', '004', '005'], 'name': 'Hellenica'}, 'TLG2613': {'works': ['001'], 'name': 'Callimachus Junior Epic.'}, 'TLG1343': {'works': ['002'], 'name': 'Eparchides Hist.'}, 'TLG2041': {'works': ['001', '004', '005'], 'name': 'Marcellus Theol.'}, 'TLG4003': {'works': ['001', '002', '003'], 'name': 'Marcianus Geogr.'}, 'TLG1637': {'works': ['001'], 'name': 'Protevangelium Jacobi'}, 'TLG0395': {'works': ['001', '002'], 'name': 'Diophantus Comic.'}, 'TLG0292': {'works': ['001', '002'], 'name': 'Stesichorus Lyr.'}, 'TLG0742': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018'], 'name': 'Hymni Anonymi'}, 'TLG0252': {'works': ['001', '002', '003', '004', '005'], 'name': 'Hermippus Comic.'}, 'TLG2232': {'works': ['001', '002'], 'name': 'Damon Mus.'}, 'TLG2218': {'works': ['001'], 'name': 'Calliphon et Democedes Med. et Phil.'}, 'TLG0409': {'works': ['001', '002'], 'name': 'Antidotus Comic.'}, 'TLG0744': {'works': ['001', '002', '003', '004', '005'], 'name': 'Alexander Med.'}, 'TLG0476': {'works': ['001', '002'], 'name': 'Mnesimachus Comic.'}, 'TLG1602': {'works': ['001'], 'name': 'Philoxenus Gramm.'}, 'TLG1746': {'works': ['001'], 'name': 'Valentinus Gnost.'}, 'TLG0020': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Hesiodus Epic.'}, 'TLG2546': {'works': ['003'], 'name': 'Publius Rutilius Rufus Hist.'}, 'TLG4319': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068'], 'name': 'Zosimus Alchem.'}, 'TLG1611': {'works': ['001'], 'name': 'Tyrannion Junior Gramm.'}, 'TLG2212': {'works': ['002'], 'name': 'Lyceas Hist.'}, 'TLG3170': {'works': ['001'], 'name': 'Ephraem Hist. et Poeta'}, 'TLG0041': {'works': ['001'], 'name': 'Chionis Epistulae'}, 'TLG2346': {'works': ['002'], 'name': 'Andriscus Hist.'}, 'TLG3144': {'works': ['001'], 'name': 'Joannes Cananus Hist.'}, 'TLG2742': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Apophthegmata'}, 'TLG0542': {'works': ['001'], 'name': 'Julius Pollux Gramm.'}, 'TLG0686': {'works': ['003'], 'name': 'Aethlius Hist.'}, 'TLG0612': {'works': ['001', '002', '003'], 'name': 'Dio Chrysostomus Soph.'}, 'TLG1303': {'works': ['003'], 'name': 'Demochares Hist. et Orat.'}, 'TLG0089': {'works': ['001'], 'name': 'Praxiphanes Phil.'}, 'TLG0079': {'works': ['002'], 'name': 'Menippus Geogr.'}, 'TLG0221': {'works': ['001', '002', '004'], 'name': 'Euphorion Epic.'}, 'TLG2618': {'works': ['001'], 'name': 'Didymarchus Poeta'}, 'TLG2559': {'works': ['002'], 'name': '[Chrysippus] Hist.'}, 'TLG0622': {'works': ['001'], 'name': 'Cleobuli Epistula'}, 'TLG3064': {'works': ['002'], 'name': 'Scylitzes Continuatus'}, 'TLG4292': {'works': ['001', '002'], 'name': 'Lexicon De Atticis Nominibus'}, 'TLG0335': {'works': ['001'], 'name': 'Philiscus Trag.'}, 'TLG1427': {'works': ['003'], 'name': 'Herodorus Hist.'}, 'TLG1223': {'works': ['001', '002'], 'name': 'Bias Phil.'}, 'TLG0039': {'works': ['001'], 'name': 'Mithridatis Epistula'}, 'TLG4339': {'works': ['001'], 'name': 'Archelaus Alchem. et Poeta'}, 'TLG0766': {'works': ['001', '002'], 'name': 'Alcmaeon Phil.'}, 'TLG2695': {'works': ['001', '002'], 'name': 'Vitae Aristotelis'}, 'TLG0320': {'works': ['001'], 'name': 'Diogenes Trag.'}, 'TLG2966': {'works': ['002'], 'name': 'Phileas Scr. Eccl.'}, 'TLG2037': {'works': ['001'], 'name': 'Joannes Stobaeus Anthologus'}, 'TLG1183': {'works': ['001'], 'name': 'Aristeae Epistula'}, 'TLG1224': {'works': ['001', '002'], 'name': 'Bion Phil.'}, 'TLG0222': {'works': ['001', '009', '010', '013', '015'], 'name': 'Eratosthenes et Eratosthenica Philol.'}, 'TLG2286': {'works': ['001'], 'name': 'Cercops Phil.'}, 'TLG0363': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '014'], 'name': 'Claudius Ptolemaeus Math.'}, 'TLG0249': {'works': ['001'], 'name': 'Echembrotus Eleg. et Lyr.'}, 'TLG1521': {'works': ['001', '002'], 'name': 'Vita Et Sententiae Secundi'}, 'TLG1639': {'works': ['001'], 'name': 'Pseudo-Auctores Hellenistae (PsVTGr)'}, 'TLG0131': {'works': ['001', '002'], 'name': 'Archimelus Epigr.'}, 'TLG2525': {'works': ['003'], 'name': 'Laetus Hist.'}, 'TLG0720': {'works': ['001'], 'name': 'Harmodius Trag.'}, 'TLG1383': {'works': ['001', '002', '005'], 'name': 'Geminus Astron.'}, 'TLG0534': {'works': ['001', '002', '003'], 'name': 'Callisthenes Hist.'}, 'TLG1542': {'works': ['001'], 'name': 'Numenius Phil.'}, 'TLG0450': {'works': ['001', '002', '003'], 'name': 'Ephippus Comic.'}, 'TLG1636': {'works': ['003'], 'name': 'Protagorides Hist.'}, 'TLG0279': {'works': ['001'], 'name': 'Discipulorum Cantiuncula'}, 'TLG0202': {'works': ['001'], 'name': 'Mace(donius) Lyr.'}, 'TLG1682': {'works': ['001'], 'name': 'Sopater Comic.'}, 'TLG0081': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018'], 'name': 'Dionysius Halicarnassensis Hist. et Rhet.'}, 'TLG3128': {'works': ['001'], 'name': 'Theognostus Gramm.'}, 'TLG1188': {'works': ['001'], 'name': 'Aristocles Phil.'}, 'TLG0302': {'works': ['001'], 'name': 'Choerilus Trag.'}, 'TLG2038': {'works': ['001', '002', '003', '004', '005'], 'name': 'Acta Thomae'}, 'TLG2766': {'works': ['001', '002'], 'name': 'Eudocia Augusta Poeta'}, 'TLG2610': {'works': ['001'], 'name': 'Boiscus Iamb.'}, 'TLG0256': {'works': ['001'], 'name': 'Panarces Scriptor Aenigmatum'}, 'TLG1792': {'works': ['001'], 'name': 'Biottus Comic.'}, 'TLG1923': {'works': ['003'], 'name': 'Stesimbrotus Hist.'}, 'TLG1570': {'works': ['001'], 'name': 'Epitaphium Pectorii'}, 'TLG0667': {'works': ['001'], 'name': 'Marcellinus I Med.'}, 'TLG0306': {'works': ['001'], 'name': 'Aristarchus Trag.'}, 'TLG1364': {'works': ['001'], 'name': 'Evangelium Aegyptium'}, 'TLG1395': {'works': ['004'], 'name': '[Hegesinus] Epic.'}, 'TLG0046': {'works': ['001'], 'name': 'Niciae Epistula'}, 'TLG0462': {'works': ['001', '002'], 'name': 'Euthycles Comic.'}, 'TLG2012': {'works': ['001'], 'name': 'Acta Eupli'}, 'TLG0429': {'works': ['001', '002'], 'name': 'Cephisodorus Comic.'}, 'TLG1978': {'works': ['003'], 'name': 'Leo Hist.'}, 'TLG1347': {'works': ['001', '002', '003', '004', '005'], 'name': 'Epimenides Phil.'}, 'TLG4016': {'works': ['001', '002', '003', '004', '005'], 'name': 'Ammonius Phil.'}, 'TLG1661': {'works': ['001'], 'name': 'Satyrus Hist.'}, 'TLG4335': {'works': ['001'], 'name': 'Cleopatra Alchem.'}, 'TLG0718': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '011', '012', '013', '015', '016'], 'name': 'Aëtius Med.'}, 'TLG4324': {'works': ['001'], 'name': 'Synesius Alchem.'}, 'TLG0495': {'works': ['001', '002', '003'], 'name': 'Phoenicides Comic.'}, 'TLG1970': {'works': ['003'], 'name': 'Silenus Hist.'}, 'TLG1766': {'works': ['001', '002'], 'name': 'Tatianus Apol.'}, 'TLG0633': {'works': ['001', '002'], 'name': 'Lysis Phil.'}, 'TLG2445': {'works': ['003'], 'name': 'Amometus Hist.'}, 'TLG1992': {'works': ['003'], 'name': 'Ariston Apol.'}, 'TLG1836': {'works': ['001'], 'name': 'Anonymi Aulodia'}, 'TLG1436': {'works': ['001', '002'], 'name': 'Hippodamus Phil.'}, 'TLG1139': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '033', '034', '035', '036', '037', '038', '039', '040', '041'], 'name': 'Anonymi Historici (FGrH)'}, 'TLG4029': {'works': ['001', '002', '003'], 'name': 'Procopius Hist.'}, 'TLG0380': {'works': ['001', '002'], 'name': 'Philoxenus Lyr.'}, 'TLG0491': {'works': ['001', '002', '003'], 'name': 'Philiscus Comic.'}, 'TLG0483': {'works': ['001', '002'], 'name': 'Nicophon Comic.'}, 'TLG0468': {'works': ['001', '002'], 'name': 'Hipparchus Comic.'}, 'TLG2287': {'works': ['001'], 'name': 'Fragmentum Stoicum'}, 'TLG2158': {'works': ['002'], 'name': 'Eutychianus Hist.'}, 'TLG2734': {'works': ['001', '004', '005', '008', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025'], 'name': 'Flavius Justinianus Imperator Theol.'}, 'TLG1757': {'works': ['001'], 'name': 'Julius Epic.'}, 'TLG0697': {'works': ['003'], 'name': 'Cornelius Alexander Polyhist.'}, 'TLG1447': {'works': ['001', '002', '003', '004', '005', '007', '008'], 'name': 'Irenaeus Theol.'}, 'TLG4124': {'works': ['007', '008', '009'], 'name': 'Eusebius Scr. Eccl.'}, 'TLG1635': {'works': ['001', '002', '003'], 'name': 'Protagoras Soph.'}, 'TLG0345': {'works': ['001'], 'name': 'Apollonides Trag.'}, 'TLG1428': {'works': ['002'], 'name': 'Hestiaeus Hist.'}, 'TLG1277': {'works': ['001', '002'], 'name': 'Clinias Phil.'}, 'TLG4005': {'works': ['001'], 'name': 'Anonymus Discipulus Isidori Milesii Mech.'}, 'TLG9019': {'works': ['001'], 'name': 'Stephanus Phil.'}, 'TLG0683': {'works': ['002'], 'name': 'Aethiopis'}, 'TLG0290': {'works': ['001'], 'name': 'Encomium Ducis Thebaidos'}, 'TLG3136': {'works': ['001'], 'name': 'Pseudo-Zonaras Lexicogr.'}, 'TLG2568': {'works': ['002'], 'name': '[Sosthenes] Hist.'}, 'TLG0266': {'works': ['001', '002'], 'name': 'Tyrtaeus Eleg.'}, 'TLG4000': {'works': ['001'], 'name': 'Aristaenetus Epist.'}, 'TLG0060': {'works': ['001', '002', '003'], 'name': 'Diodorus Siculus Hist.'}, 'TLG1899': {'works': ['002'], 'name': 'Aristonicus Hist.'}, 'TLG3075': {'works': ['001'], 'name': 'Pseudo-Mauricius Tact.'}, 'TLG1302': {'works': ['001', '002'], 'name': 'Demetrius Rhet.'}, 'TLG2608': {'works': ['001'], 'name': 'Archebulus Poeta'}, 'TLG0068': {'works': ['001', '002'], 'name': 'Pseudo-Scymnus Geogr.'}, 'TLG0269': {'works': ['001', '002'], 'name': 'Nautarum Cantiunculae'}, 'TLG1556': {'works': ['001', '002'], 'name': 'Pancrates Epigr.'}, 'TLG0591': {'works': ['001', '002'], 'name': 'Antisthenes Phil. et Rhet.'}, 'TLG0452': {'works': ['001', '002'], 'name': 'Epigenes Comic.'}, 'TLG4145': {'works': ['001'], 'name': 'Nicephorus Gregoras Hist.'}, 'TLG0816': {'works': ['001'], 'name': 'Theudo[tus] Trag.'}, 'TLG1096': {'works': ['001'], 'name': 'Euaretus Trag.'}, 'TLG5045': {'works': ['001', '002'], 'name': 'Anonymi In Aphthonium Rhet.'}, 'TLG0658': {'works': ['001', '002'], 'name': 'Heliodorus Scr. Erot.'}, 'TLG1695': {'works': ['001'], 'name': 'Sthenidas Phil.'}, 'TLG1351': {'works': ['001'], 'name': 'Epigoni'}, 'TLG1405': {'works': ['001'], 'name': 'Heraclides Criticus Perieg.'}, 'TLG0628': {'works': ['001', '002', '003', '004'], 'name': 'Gaius Musonius Rufus Phil.'}, 'TLG1516': {'works': ['003'], 'name': 'Molpis Hist.'}, 'TLG1622': {'works': ['001'], 'name': 'Polycarpus Scr. Eccl.'}, 'TLG2762': {'works': ['004', '005', '006', '007', '008', '009'], 'name': 'Gennadius I Scr. Eccl.'}, 'TLG0250': {'works': ['001'], 'name': 'Euclides Comic. vel Iamb.'}, 'TLG1859': {'works': ['001'], 'name': 'Liber Jannes Et Jambres'}, 'TLG1435': {'works': ['002'], 'name': 'Hippias Hist.'}, 'TLG2552': {'works': ['002'], 'name': 'Critolaus Hist.'}, 'TLG0654': {'works': ['002'], 'name': 'Lucius Annaeus Cornutus Phil.'}, 'TLG0636': {'works': ['001'], 'name': 'Socratis Epistulae'}, 'TLG1662': {'works': ['001'], 'name': 'Sciras Comic.'}, 'TLG2506': {'works': ['003'], 'name': 'Capito Hist.'}, 'TLG1548': {'works': ['001'], 'name': 'Oenomaus Phil.'}, 'TLG0307': {'works': ['001'], 'name': 'Neophron Trag.'}, 'TLG0011': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010'], 'name': 'Sophocles Trag.'}, 'TLG2733': {'works': ['001'], 'name': 'Evagrius Scholasticus Scr. Eccl.'}, 'TLG1615': {'works': ['001'], 'name': 'Platonius Gramm.'}, 'TLG2340': {'works': ['001'], 'name': 'Diotimus Phil.'}, 'TLG0435': {'works': ['001', '002'], 'name': 'Cratinus Junior Comic.'}, 'TLG0273': {'works': ['001', '002'], 'name': 'Scolia Alphabetica'}, 'TLG1574': {'works': ['001'], 'name': 'Persaeus Phil.'}, 'TLG0399': {'works': ['001', '002'], 'name': 'Eudoxus Comic.'}, 'TLG2744': {'works': ['001'], 'name': 'Historia Monachorum In Aegypto'}, 'TLG0412': {'works': ['001', '002'], 'name': 'Apollodorus Carystius vel Apollodorus Gelous Comic.'}, 'TLG1459': {'works': ['002'], 'name': 'Lepidus Hist.'}, 'TLG1318': {'works': ['001'], 'name': 'Diodorus Rhet.'}, 'TLG1477': {'works': ['003'], 'name': 'Manetho Hist.'}, 'TLG0251': {'works': ['001'], 'name': 'Euenus Eleg.'}, 'TLG0431': {'works': ['001', '002', '003'], 'name': 'Chionides Comic.'}, 'TLG0254': {'works': ['001', '002'], 'name': 'Melanthius Eleg. et Trag.'}, 'TLG0691': {'works': ['001'], 'name': 'Harpocrationis Epistula'}, 'TLG0845': {'works': ['001', '002', '003'], 'name': 'Ctesias Hist. et Med.'}, 'TLG2650': {'works': ['001'], 'name': 'Arrianus Epic.'}, 'TLG1275': {'works': ['001', '002', '003'], 'name': 'Cleostratus Poet. Phil.'}, 'TLG0577': {'works': ['003'], 'name': 'Nicolaus Hist.'}, 'TLG0481': {'works': ['001', '002'], 'name': 'Nicolaus Comic.'}, 'TLG2697': {'works': ['001'], 'name': 'Timolaus Rhet.'}, 'TLG0733': {'works': ['001'], 'name': 'Cassius Iatrosophista Med.'}, 'TLG1296': {'works': ['001'], 'name': 'Cypria'}, 'TLG1125': {'works': ['003'], 'name': 'Androtion Hist.'}, 'TLG2190': {'works': ['002'], 'name': '[Clitonymus] Hist.'}, 'TLG1389': {'works': ['001'], 'name': 'Harpocration Gramm.'}, 'TLG1201': {'works': ['001'], 'name': 'Assumptio Mosis'}, 'TLG5018': {'works': ['001'], 'name': 'Scholia In Dionysium Byzantium'}, 'TLG0388': {'works': ['001', '002', '003', '004', '005'], 'name': 'Acta Pauli'}, 'TLG2721': {'works': ['001', '002'], 'name': 'Theodorus Prodromus Poeta et Polyhist.'}, 'TLG1138': {'works': ['001'], 'name': 'Lycon Phil.'}, 'TLG1685': {'works': ['003', '004'], 'name': 'Sosibius Gramm.'}, 'TLG0660': {'works': ['001'], 'name': 'Apollonius Med.'}, 'TLG2300': {'works': ['003', '004'], 'name': 'Promathidas Hist.'}, 'TLG1906': {'works': ['002'], 'name': 'Simonides Epic.'}, 'TLG2057': {'works': ['001'], 'name': 'Socrates Scholasticus Hist.'}, 'TLG1172': {'works': ['001'], 'name': 'Arcesilaus Phil.'}, 'TLG0260': {'works': ['001', '002'], 'name': 'Semonides Eleg. et Iamb.'}, 'TLG0639': {'works': ['001'], 'name': 'Menecrates Med.'}, 'TLG1131': {'works': ['001'], 'name': 'Anonymus Ad Avircium Marcellum Contra Cataphrygas'}, 'TLG0291': {'works': ['001', '002'], 'name': 'Alcman Lyr.'}, 'TLG2645': {'works': ['001'], 'name': 'Stratonicus Poeta'}, 'TLG1350': {'works': ['001'], 'name': 'Epistula Ad Diognetum'}, 'TLG1227': {'works': ['001'], 'name': 'Blaesus Comic.'}, 'TLG1726': {'works': ['001', '002'], 'name': 'Theopompus Epic.'}, 'TLG0746': {'works': ['001'], 'name': 'Theophilus Protospatharius et Stephanus Atheniensis Med.'}, 'TLG0328': {'works': ['001'], 'name': 'Chaeremon Trag.'}, 'TLG0640': {'works': ['001'], 'name': 'Alciphron Rhet. et Soph.'}, 'TLG0690': {'works': ['001'], 'name': 'Erasistratus Med.'}, 'TLG0717': {'works': ['001', '002'], 'name': 'Hypsicles Astron. et Math.'}, 'TLG4338': {'works': ['001'], 'name': 'Theophrastus Alchem. et Poeta'}, 'TLG0403': {'works': ['001', '002', '003', '004'], 'name': 'Amipsias Comic.'}, 'TLG3187': {'works': ['001'], 'name': 'Georgius Gramm.'}, 'TLG4013': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Simplicius Phil.'}, 'TLG2243': {'works': ['001'], 'name': 'Apocalypsis Sedrach'}, 'TLG1527': {'works': ['001'], 'name': 'Nepualius Med. et Phil.'}, 'TLG0637': {'works': ['001'], 'name': 'Socraticorum Epistulae'}, 'TLG0407': {'works': ['001', '002'], 'name': 'Anaxippus Comic.'}, 'TLG2248': {'works': ['001'], 'name': 'Acta Xanthippae Et Polyxenae'}, 'TLG1173': {'works': ['001'], 'name': 'Archedemus Phil.'}, 'TLG3140': {'works': ['001'], 'name': 'Joel Chronogr.'}, 'TLG0428': {'works': ['001', '002', '003', '004'], 'name': 'Cantharus Comic.'}, 'TLG2367': {'works': ['002'], 'name': 'Theognis Hist.'}, 'TLG1320': {'works': ['001'], 'name': 'Diogenes Phil.'}, 'TLG1393': {'works': ['001', '004', '005'], 'name': 'Hegesianax Astron. et Epic.'}, 'TLG1535': {'works': ['002'], 'name': 'Nicocrates Hist.'}, 'TLG0295': {'works': ['001'], 'name': 'Carmina Popularia (PMG)'}, 'TLG1953': {'works': ['003'], 'name': 'Hieronymus Hist.'}, 'TLG0602': {'works': ['001', '002'], 'name': 'Comica Adespota (FCG)'}, 'TLG1683': {'works': ['003'], 'name': 'Sophaenetus Hist.'}, 'TLG0253': {'works': ['001'], 'name': '[Homerus] Epic.'}, 'TLG3130': {'works': ['001', '003', '007', '009'], 'name': 'Theophylactus Simocatta Epist. et Hist.'}, 'TLG2040': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '078', '079', '080', '081', '082'], 'name': 'Basilius Theol.'}, 'TLG2456': {'works': ['001', '002'], 'name': 'Nessas Phil.'}, 'TLG1147': {'works': ['001', '002', '003', '005'], 'name': 'Antiphon Soph.'}, 'TLG0077': {'works': ['001'], 'name': 'Periplus Maris Magni'}, 'TLG0093': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '014', '015'], 'name': 'Theophrastus Phil.'}, 'TLG0730': {'works': ['001', '002'], 'name': 'Meletius Med.'}, 'TLG0259': {'works': ['001', '002', '004'], 'name': 'Scythinus Poet. Phil.'}, 'TLG0485': {'works': ['001', '002'], 'name': 'Ophelio Comic.'}, 'TLG1918': {'works': ['003'], 'name': 'Timagenes Hist.'}, 'TLG0626': {'works': ['001', '002'], 'name': 'Heraclitus Phil.'}, 'TLG0085': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011'], 'name': 'Aeschylus Trag.'}, 'TLG2611': {'works': ['001'], 'name': 'Butas Eleg.'}, 'TLG4076': {'works': ['003', '004', '005', '006'], 'name': 'Menander Protector Hist.'}, 'TLG4075': {'works': ['002'], 'name': 'Marinus Phil.'}, 'TLG0522': {'works': ['001'], 'name': 'Pisander Epic.'}, 'TLG0442': {'works': ['001', '002'], 'name': 'Dexicrates Comic.'}, 'TLG1487': {'works': ['001', '002'], 'name': 'Maximus Astrol.'}, 'TLG5025': {'works': ['001', '002', '003', '004'], 'name': 'Scholia In Hesiodum'}, 'TLG1208': {'works': ['001'], 'name': 'Atticus Phil.'}, 'TLG2008': {'works': ['001'], 'name': 'Martyrium Cononis'}, 'TLG4150': {'works': ['001'], 'name': 'Anacreontea'}, 'TLG0700': {'works': ['001'], 'name': 'Apollodorus Trag.'}, 'TLG1354': {'works': ['002'], 'name': 'Ergias Hist.'}, 'TLG0213': {'works': ['001', '002', '003'], 'name': 'Hermesianax Eleg.'}, 'TLG1835': {'works': ['002'], 'name': 'Agroetas Hist.'}, 'TLG0443': {'works': ['001', '002', '003', '004'], 'name': 'Diocles Comic.'}, 'TLG9021': {'works': ['001'], 'name': 'Stephanus Alchem.'}, 'TLG4303': {'works': ['001', '002', '003', '004'], 'name': 'Lexica In Opera Gregorii Nazianzeni'}, 'TLG5013': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Scholia In Aratum'}, 'TLG1858': {'works': ['001'], 'name': 'Oratio Manassis'}, 'TLG9018': {'works': ['001'], 'name': 'Arsenius Paroemiogr.'}, 'TLG9012': {'works': ['002'], 'name': 'Ignatius Biogr. et Poeta'}, 'TLG2120': {'works': ['001'], 'name': 'Panteleius Epic.'}, 'TLG5024': {'works': ['002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022'], 'name': 'Anonymi In Hermogenem Rhet.'}, 'TLG1421': {'works': ['001', '003'], 'name': 'Hermippus Gramm. et Hist.'}, 'TLG2738': {'works': ['002', '003', '004'], 'name': 'Chronographiae Anonymae'}, 'TLG1584': {'works': ['003'], 'name': 'Pherecydes Hist.'}, 'TLG1226': {'works': ['001'], 'name': 'Biton Mech.'}, 'TLG4115': {'works': ['029', '030'], 'name': 'Theophilus Scr. Eccl.'}, 'TLG0245': {'works': ['001', '002'], 'name': 'Demodocus Eleg.'}, 'TLG1514': {'works': ['001', '002'], 'name': 'Mnaseas Perieg.'}, 'TLG0825': {'works': ['001'], 'name': 'Melito Trag.'}, 'TLG0019': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018'], 'name': 'Aristophanes Comic.'}, 'TLG4157': {'works': ['001'], 'name': 'Joannes Rhet.'}, 'TLG2313': {'works': ['001'], 'name': 'Antisthenes Phil.'}, 'TLG1399': {'works': ['001'], 'name': 'Pamphilus Trag.'}, 'TLG0347': {'works': ['001'], 'name': 'Serapion Trag.'}, 'TLG0235': {'works': ['001'], 'name': 'Iambica Adespota (IEG)'}, 'TLG1451': {'works': ['001'], 'name': 'Josephus Et Aseneth'}, 'TLG0595': {'works': ['001', '002'], 'name': 'Zeno Phil.'}, 'TLG0673': {'works': ['001', '002'], 'name': 'Aeschines Socraticus Phil.'}, 'TLG3177': {'works': ['001', '002'], 'name': 'Scriptor Incertus De Leone Armenio Hist.'}, 'TLG1206': {'works': ['003'], 'name': 'Athenodorus Phil.'}, 'TLG4038': {'works': ['001'], 'name': 'Pamprepius Epic.'}, 'TLG3043': {'works': ['001', '002'], 'name': 'Georgius Monachus Chronogr.'}, 'TLG0027': {'works': ['001', '002', '003', '004', '005'], 'name': 'Andocides Orat.'}, 'TLG2557': {'works': ['002'], 'name': '[Aristobulus] Hist.'}, 'TLG4139': {'works': ['034', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '067', '072', '081', '087'], 'name': 'Severianus Scr. Eccl.'}, 'TLG0401': {'works': ['001', '002'], 'name': 'Alexander Comic.'}, 'TLG0312': {'works': ['001'], 'name': 'Philocles Trag.'}, 'TLG3185': {'works': ['001'], 'name': 'Anonymus De Scientia Politica Hist.'}, 'TLG4097': {'works': ['001', '002', '003'], 'name': 'Etymologicum Genuinum'}, 'TLG1175': {'works': ['001', '002'], 'name': 'Archestratus Parodius'}, 'TLG2270': {'works': ['002'], 'name': 'Callippus Hist.'}, 'TLG0508': {'works': ['001', '002', '003', '004', '005'], 'name': 'Strattis Comic.'}, 'TLG0554': {'works': ['001'], 'name': 'Chariton Scr. Erot.'}, 'TLG0647': {'works': ['001'], 'name': 'Triphiodorus Epic. et Gramm.'}, 'TLG0048': {'works': ['001'], 'name': 'Philippus II Rex Macedonum Epist.'}, 'TLG4135': {'works': ['009', '015', '016', '017', '018'], 'name': 'Theodorus Theol.'}, 'TLG0609': {'works': ['001', '002', '003'], 'name': 'Tryphon I Gramm.'}, 'TLG0034': {'works': ['001', '002'], 'name': 'Lycurgus Orat.'}, 'TLG1386': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '018', '019', '020'], 'name': 'Historia Alexandri Magni'}, 'TLG0010': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031'], 'name': 'Isocrates Orat.'}, 'TLG0461': {'works': ['001', '002', '003', '004', '005'], 'name': 'Eupolis Comic.'}, 'TLG2074': {'works': ['037', '038', '039', '041'], 'name': 'Apollinaris Theol.'}, 'TLG1578': {'works': ['001'], 'name': 'Phaenias Phil.'}, 'TLG3063': {'works': ['001'], 'name': 'Joannes Scylitzes Hist.'}, 'TLG0613': {'works': ['001'], 'name': 'Demetrius Rhet.'}, 'TLG0366': {'works': ['001', '002'], 'name': 'Lasus Lyr.'}, 'TLG0376': {'works': ['001', '002'], 'name': 'Timotheus Lyr.'}, 'TLG2638': {'works': ['001'], 'name': 'Philo Poeta'}, 'TLG4328': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012'], 'name': 'Philosophus Christianus Alchem.'}, 'TLG1445': {'works': ['001'], 'name': 'Iliu Persis'}, 'TLG4294': {'works': ['001'], 'name': 'Lexicon Vindobonense'}, 'TLG1794': {'works': ['001'], 'name': 'Philocles Comic.'}, 'TLG4227': {'works': ['001'], 'name': 'Anonymus De Philosophia Platonica Phil.'}, 'TLG1641': {'works': ['001'], 'name': 'Ptolemaeus Gnost.'}, 'TLG1756': {'works': ['001'], 'name': 'Demetrius Gramm.'}, 'TLG0053': {'works': ['001'], 'name': 'Phalaridis Epistulae'}, 'TLG0071': {'works': ['001'], 'name': 'Periplus Maris Erythraei'}, 'TLG2499': {'works': ['003'], 'name': 'Eustochius Soph.'}, 'TLG2035': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '077', '078', '079', '080', '081', '082', '083', '084', '085', '086', '087', '088', '089', '090', '091', '094', '099', '100', '101', '102', '103', '104', '105', '106', '107', '109', '110', '111', '115', '116', '117', '118', '119', '120', '121', '122', '123', '124', '125', '126', '127'], 'name': 'Athanasius Theol.'}, 'TLG1324': {'works': ['002'], 'name': 'Dionysius Hist.'}, 'TLG0018': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '038', '039', '041', '042'], 'name': 'Philo Judaeus Phil.'}, 'TLG3147': {'works': ['001', '002', '003', '004'], 'name': 'Michael Critobulus Hist.'}, 'TLG2020': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Theodosius Gramm.'}, 'TLG0197': {'works': ['001'], 'name': 'Hedyle Epigr.'}, 'TLG1452': {'works': ['003'], 'name': 'Juba II Rex Mauretaniae Hist.'}, 'TLG1148': {'works': ['004', '005', '006'], 'name': 'Antonius Diogenes Scr. Erot.'}, 'TLG1132': {'works': ['001'], 'name': 'Anonymus Alexandri Phil.'}, 'TLG0556': {'works': ['001'], 'name': 'Asclepiodotus Tact.'}, 'TLG1793': {'works': ['001'], 'name': 'Timoxenus Comic.'}, 'TLG0515': {'works': ['001', '002', '003', '004'], 'name': 'Timocles Comic.'}, 'TLG0900': {'works': ['001'], 'name': 'Cleomenes Lyr.'}, 'TLG0552': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014'], 'name': 'Archimedes Geom.'}, 'TLG2005': {'works': ['001'], 'name': 'Martyrium Pionii'}, 'TLG1550': {'works': ['001'], 'name': 'Oracula Chaldaica'}, 'TLG2937': {'works': ['002'], 'name': 'Lachares Soph.'}, 'TLG5023': {'works': ['001', '003', '004', '005', '006'], 'name': 'Scholia In Euripidem'}, 'TLG1207': {'works': ['001'], 'name': 'Attalus Astron. et Math.'}, 'TLG1325': {'works': ['001'], 'name': 'Diogenis Sinopensis Epistulae'}, 'TLG1749': {'works': ['001'], 'name': 'Vitae Hesiodi Particula'}, 'TLG0286': {'works': ['001'], 'name': 'Carmen Astrologicum'}, 'TLG4330': {'works': ['001'], 'name': 'Cosmas Hieromonachus Alchem.'}, 'TLG1281': {'works': ['002'], 'name': '[Clitophon] Hist.'}, 'TLG4395': {'works': ['001'], 'name': 'Menetor Hist.'}, 'TLG0436': {'works': ['001', '002'], 'name': 'Crito Comic.'}, 'TLG0205': {'works': ['001', '002'], 'name': 'Philodamus Lyr.'}, 'TLG1604': {'works': ['001', '002'], 'name': 'Phocylides Eleg. et Gnom.'}, 'TLG0465': {'works': ['001', '002'], 'name': 'Heniochus Comic.'}, 'TLG5035': {'works': ['001', '002'], 'name': 'Scholia In Platonem'}, 'TLG0218': {'works': ['001', '002'], 'name': 'Nicaenetus Epic.'}, 'TLG0856': {'works': ['001'], 'name': 'Dieuches Med.'}, 'TLG2063': {'works': ['001', '005', '006', '008', '009', '010', '013', '016', '021', '022', '025', '028'], 'name': 'Gregorius Thaumaturgus Scr. Eccl.'}, 'TLG2289': {'works': ['002'], 'name': 'Echephylidas Hist.'}, 'TLG2654': {'works': ['001'], 'name': 'Physiologus'}, 'TLG2703': {'works': ['001'], 'name': 'Anna Comnena Hist.'}, 'TLG0294': {'works': ['001'], 'name': 'Corinna Lyr.'}, 'TLG1651': {'works': ['002'], 'name': 'Pythermus Hist.'}, 'TLG5052': {'works': ['001'], 'name': 'Scholia in Maximum Confessorem'}, 'TLG2213': {'works': ['002'], 'name': '[Timotheus] Hist.'}, 'TLG1839': {'works': ['001'], 'name': 'Polyphrasmon Trag.'}, 'TLG1163': {'works': ['001'], 'name': 'Claudius Apollinarius Apol.'}, 'TLG4084': {'works': ['001'], 'name': 'Zosimus Hist.'}, 'TLG3014': {'works': ['001', '002'], 'name': 'Joannes Camaterus Astrol. et Astron.'}, 'TLG5022': {'works': ['001', '002', '003', '004', '005', '006', '007'], 'name': 'Scholia In Euclidem'}, 'TLG5008': {'works': ['001'], 'name': 'Scholia In Aelium Aristidem'}, 'TLG5040': {'works': ['001'], 'name': 'Scholia In Xenophontem'}, 'TLG0030': {'works': ['001', '002', '003', '004', '005', '006', '007'], 'name': 'Hyperides Orat.'}, 'TLG2275': {'works': ['001'], 'name': 'Theagenes Phil.'}, 'TLG1704': {'works': ['003'], 'name': 'Teucer Hist.'}, 'TLG0571': {'works': ['004', '005'], 'name': 'Aristocles Paradox.'}, 'TLG1168': {'works': ['001'], 'name': 'Apollonius Soph.'}, 'TLG0209': {'works': ['001'], 'name': 'Seleucus Lyr.'}, 'TLG0530': {'works': ['001', '002', '003', '005', '006', '009', '012', '020', '022', '023', '024', '026', '029', '031', '032', '033', '034', '035', '036', '037', '041', '042', '043', '045', '046'], 'name': 'Pseudo-Galenus Med.'}, 'TLG0444': {'works': ['001', '002'], 'name': 'Diodorus Comic.'}, 'TLG1782': {'works': ['001', '002'], 'name': 'Augeas Comic.'}, 'TLG2604': {'works': ['001'], 'name': 'Ulpianus Gramm. et Rhet.'}, 'TLG4396': {'works': ['001'], 'name': 'Timagetus Hist.'}, 'TLG4361': {'works': ['008'], 'name': 'Apomasar Astrol.'}, 'TLG1134': {'works': ['001'], 'name': 'Anonymus Iamblichi Phil.'}, 'TLG3023': {'works': ['001', '002', '003', '004', '005', '006', '008', '009', '010', '011', '013', '014', '019'], 'name': 'Constantinus VII Porphyrogenitus Imperator Hist.'}, 'TLG0503': {'works': ['001', '002'], 'name': 'Sosicrates Comic.'}, 'TLG0584': {'works': ['002', '003'], 'name': 'Philostephanus Hist.'}, 'TLG2636': {'works': ['001'], 'name': 'Pherenicus Epic.'}, 'TLG0721': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '020', '021', '022', '023', '024', '025', '026'], 'name': 'Anonymi Medici Med.'}, 'TLG1977': {'works': ['002'], 'name': 'Lucius Licinius Lucullus Hist.'}, 'TLG1797': {'works': ['001', '002'], 'name': 'Choliambica Adespota (ALG)'}, 'TLG0472': {'works': ['001', '002', '003'], 'name': 'Lysippus Comic.'}, 'TLG2047': {'works': ['001'], 'name': 'Syriani, Sopatri Et Marcellini Scholia Ad Hermogenis Status'}, 'TLG2609': {'works': ['001'], 'name': 'Asopodorus Iamb.'}, 'TLG2598': {'works': ['002', '003', '004', '005', '006', '008', '009', '010', '012', '019'], 'name': 'Procopius Rhet. et Scr. Eccl.'}, 'TLG3047': {'works': ['001', '002'], 'name': 'Michael Glycas Astrol. et Hist.'}, 'TLG1220': {'works': ['001', '002'], 'name': 'Batrachomyomachia'}, 'TLG1158': {'works': ['001', '002', '003'], 'name': 'Apocalypsis Joannis'}, 'TLG1702': {'works': ['001'], 'name': 'Testamentum Jobi'}, 'TLG0049': {'works': ['001'], 'name': 'Pisistrati Epistula'}, 'TLG0490': {'works': ['001', '002'], 'name': 'Philippides Comic.'}, 'TLG0473': {'works': ['001', '002', '003'], 'name': 'Machon Comic.'}, 'TLG0241': {'works': ['003'], 'name': 'Aristoxenus Comic.'}, 'TLG0518': {'works': ['001', '002'], 'name': 'Xenarchus Comic.'}, 'TLG1199': {'works': ['003'], 'name': 'Asclepiades Gramm. et Hist.'}, 'TLG3182': {'works': ['001'], 'name': 'Pseudo-Symeon Hist.'}, 'TLG0343': {'works': ['001'], 'name': 'Ezechiel Trag.'}, 'TLG4173': {'works': ['001'], 'name': 'Vitae Dionysii Periegetae'}, 'TLG4333': {'works': ['001', '002'], 'name': 'Nicephorus Blemmydes Alchem.'}, 'TLG1316': {'works': ['003'], 'name': 'Dinon Hist.'}, 'TLG1402': {'works': ['001', '002', '003', '004', '005'], 'name': 'Hephaestion Gramm.'}, 'TLG1321': {'works': ['011'], 'name': 'Diogenes Phil.'}, 'TLG1714': {'works': ['001', '003'], 'name': 'Theocritus Soph.'}, 'TLG3051': {'works': ['001'], 'name': 'Georgius Monachus Continuatus'}, 'TLG1843': {'works': ['001'], 'name': 'Nicomachus Trag.'}, 'TLG4332': {'works': ['001'], 'name': 'Hierotheus Alchem. et Poeta'}, 'TLG2948': {'works': ['001', '002', '003', '004'], 'name': 'Acta Philippi'}, 'TLG2424': {'works': ['003'], 'name': 'Chaeremon Hist. et Phil.'}, 'TLG0055': {'works': ['001'], 'name': 'Themistoclis Epistulae'}, 'TLG0008': {'works': ['001', '002', '003'], 'name': 'Athenaeus Soph.'}, 'TLG0031': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027'], 'name': 'Novum Testamentum, New Testament'}, 'TLG0624': {'works': ['001'], 'name': 'Demetrius Hist. et Phil.'}, 'TLG4166': {'works': ['001'], 'name': 'Vitae Aeschinis'}, 'TLG3135': {'works': ['001', '002', '003'], 'name': 'Joannes Zonaras Gramm. et Hist.'}, 'TLG0415': {'works': ['001', '002', '003'], 'name': 'Araros Comic.'}, 'TLG4286': {'works': ['001', '002', '003', '004'], 'name': 'Lexica Syntactica'}, 'TLG1352': {'works': ['001'], 'name': 'Epistula Ecclesiarum Apud Lugdunum Et Viennam'}, 'TLG2412': {'works': ['002'], 'name': 'Androetas Hist.'}, 'TLG4061': {'works': ['002'], 'name': 'Cosmas Indicopleustes Geogr.'}, 'TLG2806': {'works': ['001'], 'name': 'Marcus Diaconus Scr. Eccl.'}, 'TLG0546': {'works': ['001'], 'name': 'Aelianus Tact.'}, 'TLG0601': {'works': ['001'], 'name': 'Zaleucus Nomographus Phil.'}, 'TLG1551': {'works': ['001', '002'], 'name': 'Oracula Sibyllina'}, 'TLG2536': {'works': ['003'], 'name': 'Andron Geogr.'}, 'TLG2210': {'works': ['002'], 'name': 'Anaxicrates Hist.'}, 'TLG5026': {'works': ['001', '003', '004', '007', '008', '009', '016', '017'], 'name': 'Scholia In Homerum'}, 'TLG5037': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Scholia In Sophoclem'}, 'TLG0537': {'works': ['010', '011', '012', '013', '014', '015', '016', '017'], 'name': 'Epicurus Phil.'}, 'TLG2904': {'works': ['001', '002', '003'], 'name': 'Nicolaus Rhet. et Soph.'}, 'TLG1164': {'works': ['002'], 'name': 'Apollodorus Hist.'}, 'TLG0242': {'works': ['001', '003'], 'name': 'Asius Eleg. et Epic.'}, 'TLG1301': {'works': ['002'], 'name': 'Demetrius Poet. Phil.'}, 'TLG1379': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074'], 'name': 'Fragmenta Alchemica'}, 'TLG1803': {'works': ['001'], 'name': 'Bruti Epistulae'}, 'TLG2228': {'works': ['001'], 'name': 'Menestor Phil.'}, 'TLG1460': {'works': ['001'], 'name': 'Lesbonax Gramm.'}, 'TLG1338': {'works': ['003'], 'name': 'Dosiadas Hist.'}, 'TLG0693': {'works': ['001', '002'], 'name': 'Albinus Phil.'}, 'TLG5012': {'works': ['001'], 'name': 'Scholia In Apollonium Rhodium'}, 'TLG4098': {'works': ['001', '002', '003', '004'], 'name': 'Etymologicum Gudianum'}, 'TLG0623': {'works': ['001'], 'name': 'Cratetis Epistulae'}, 'TLG1155': {'works': ['001'], 'name': 'Apocalypsis Syriaca Baruchi'}, 'TLG4024': {'works': ['001'], 'name': 'Agathias Scholasticus Epigr. et Hist.'}, 'TLG1805': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012'], 'name': 'Vitae Homeri'}, 'TLG2627': {'works': ['001'], 'name': 'Damianus Scriptor De Opticis'}, 'TLG2635': {'works': ['001'], 'name': 'Persinus Poeta'}, 'TLG1649': {'works': ['002'], 'name': 'Pythaenetus Hist.'}, 'TLG1710': {'works': ['001'], 'name': 'Theages Phil.'}, 'TLG3173': {'works': ['001', '002', '003'], 'name': 'Joannes Theol.'}, 'TLG1285': {'works': ['003'], 'name': 'Conon Hist.'}, 'TLG2328': {'works': ['003'], 'name': 'Diogenes Hist.'}, 'TLG2479': {'works': ['003'], 'name': 'Patrocles Hist.'}, 'TLG0918': {'works': ['001'], 'name': 'Lamynthius Lyr.'}, 'TLG0267': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Xenophanes Poet. Phil.'}, 'TLG1160': {'works': ['001'], 'name': 'Apocalypsis Sophoniae'}, 'TLG4397': {'works': ['001'], 'name': 'Myronianus Hist.'}, 'TLG5032': {'works': ['001', '002'], 'name': 'Scholia In Oppianum'}, 'TLG1759': {'works': ['001', '002'], 'name': 'Sententiae Pythagoreorum'}, 'TLG2185': {'works': ['001'], 'name': 'Dionysius Μεταθέμενος Phil.'}, 'TLG2396': {'works': ['002', '003'], 'name': 'Hyperochus Hist.'}, 'TLG4175': {'works': ['001', '002', '003', '004', '005', '006', '007'], 'name': 'Commentaria In Dionysii Thracis Artem Grammaticam'}, 'TLG1135': {'works': ['001'], 'name': 'Anonymus Photii Phil.'}, 'TLG1737': {'works': ['001'], 'name': 'Titanomachia'}, 'TLG0204': {'works': ['001', '002'], 'name': 'Aristonous Lyr.'}, 'TLG1696': {'works': ['001'], 'name': 'Straton Phil.'}, 'TLG1732': {'works': ['002'], 'name': 'Timachidas Hist.'}, 'TLG2455': {'works': ['003'], 'name': 'Aristocreon Hist.'}, 'TLG1603': {'works': ['001'], 'name': 'Phintys Phil.'}, 'TLG2387': {'works': ['003'], 'name': 'Athanis Hist.'}, 'TLG1353': {'works': ['001'], 'name': 'Epitaphium Abercii'}, 'TLG2006': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011'], 'name': 'Synesius Phil.'}, 'TLG1191': {'works': ['001'], 'name': 'Aristombrotus Phil.'}, 'TLG2202': {'works': ['002'], 'name': '[Menyllus] Hist.'}, 'TLG2461': {'works': ['003'], 'name': 'Uranius Hist.'}, 'TLG2699': {'works': ['001'], 'name': 'Amphicrates Rhet.'}, 'TLG2428': {'works': ['002'], 'name': 'Thrasyllus Hist.'}, 'TLG0338': {'works': ['001'], 'name': 'Sosiphanes Trag.'}, 'TLG1362': {'works': ['001', '002'], 'name': 'Eurytus Phil.'}, 'TLG0411': {'works': ['001', '002', '003', '004'], 'name': 'Apollodorus Comic.'}, 'TLG1218': {'works': ['003'], 'name': 'Basilis Hist.'}, 'TLG0549': {'works': ['003', '005'], 'name': 'Apollodorus Gramm.'}, 'TLG1954': {'works': ['001'], 'name': 'Heraclides Phil.'}, 'TLG0501': {'works': ['001', '002', '003', '004'], 'name': 'Sannyrion Comic.'}, 'TLG0237': {'works': ['001', '002', '003', '004'], 'name': 'Anacreon Lyr.'}, 'TLG1129': {'works': ['001', '002'], 'name': 'Anonymi De Barbarismo Et Soloecismo Gramm.'}, 'TLG2225': {'works': ['001'], 'name': 'Parm(en)iscus Phil.'}, 'TLG0661': {'works': ['001', '002'], 'name': 'Archigenes Med.'}, 'TLG0038': {'works': ['001'], 'name': 'Arcesilai Epistula'}, 'TLG0234': {'works': ['001'], 'name': 'Elegiaca Adespota (IEG)'}, 'TLG3002': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '018', '019'], 'name': 'Prolegomena De Comoedia'}, 'TLG0014': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064'], 'name': 'Demosthenes Orat.'}, 'TLG3088': {'works': ['002'], 'name': 'Nicephorus Bryennius Hist.'}, 'TLG2404': {'works': ['001'], 'name': 'Philogelos'}, 'TLG1828': {'works': ['001'], 'name': 'Pamphila Hist.'}, 'TLG1328': {'works': ['001'], 'name': 'Dionysius Hist.'}, 'TLG0354': {'works': ['001'], 'name': 'Zenodotus Trag.'}, 'TLG1260': {'works': ['002'], 'name': '[Chersias] Epic.'}, 'TLG0298': {'works': ['001', '002', '003', '004', '005'], 'name': 'Eumelus Epic.'}, 'TLG1237': {'works': ['001'], 'name': 'Callicratidas Phil.'}, 'TLG2284': {'works': ['003'], 'name': 'Anaxandridas Hist.'}, 'TLG4094': {'works': ['001', '002'], 'name': 'Choricius Rhet. et Soph.'}, 'TLG1715': {'works': ['001', '002'], 'name': 'Theodoridas Epigr.'}, 'TLG0404': {'works': ['001', '002'], 'name': 'Amphis Comic.'}, 'TLG1725': {'works': ['001'], 'name': 'Theophilus Apol.'}, 'TLG2595': {'works': ['001'], 'name': 'Philo Paradox.'}, 'TLG2386': {'works': ['003'], 'name': 'Timonides Hist.'}, 'TLG1360': {'works': ['001'], 'name': 'Euryphamus Phil.'}, 'TLG1241': {'works': ['002'], 'name': 'Carmen Naupactium'}, 'TLG2195': {'works': ['002'], 'name': '[Chrysermus] Hist.'}, 'TLG1765': {'works': ['001', '002', '003', '004', '005'], 'name': 'Vitae Aesopi'}, 'TLG0264': {'works': ['001', '002', '003'], 'name': 'Susarion Comic.'}, 'TLG1844': {'works': ['001'], 'name': 'Hera[clides] Trag.'}, 'TLG1941': {'works': ['003'], 'name': 'Leo Hist.'}, 'TLG1355': {'works': ['001', '002', '003'], 'name': 'Erinna Lyr.'}, 'TLG1643': {'works': ['003', '004'], 'name': 'Ptolemaeus Gramm.'}, 'TLG0032': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015'], 'name': 'Xenophon Hist.'}, 'TLG0072': {'works': ['001', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023'], 'name': 'Anonymi Grammatici Gramm.'}, 'TLG1949': {'works': ['003'], 'name': 'Potamon Hist.'}, 'TLG2866': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015'], 'name': 'Oecumenius Phil. et Rhet.'}, 'TLG0268': {'works': ['001', '002'], 'name': 'Mesomedes Lyr.'}, 'TLG0748': {'works': ['001'], 'name': 'Severus Iatrosophista Med.'}, 'TLG2162': {'works': ['003'], 'name': 'Aratus Hist.'}, 'TLG2620': {'works': ['001'], 'name': 'Dionysius Iambus Gramm. et Poeta'}, 'TLG1753': {'works': ['002'], 'name': 'Xenion Hist.'}, 'TLG0441': {'works': ['001', '002'], 'name': 'Demonicus Comic.'}, 'TLG1698': {'works': ['003'], 'name': 'Telephus Gramm.'}, 'TLG0405': {'works': ['001', '002', '003', '004'], 'name': 'Anaxandrides Comic.'}, 'TLG2260': {'works': ['001', '002'], 'name': 'Hippasus Phil.'}, 'TLG3039': {'works': ['001', '002'], 'name': 'Joannes Galenus Gramm.'}, 'TLG0455': {'works': ['001', '002'], 'name': 'Eriphus Comic.'}, 'TLG1754': {'works': ['001'], 'name': 'Xenophontis Epistulae'}, 'TLG0005': {'works': ['001', '002', '003', '004', '005'], 'name': 'Theocritus Bucol.'}, 'TLG2045': {'works': ['001', '002', '003'], 'name': 'Nonnus Epic.'}, 'TLG0313': {'works': ['001'], 'name': 'Theognis Trag.'}, 'TLG2531': {'works': ['003'], 'name': 'Metrophanes Hist.'}, 'TLG2001': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042'], 'name': 'Themistius Phil. et Rhet.'}, 'TLG2701': {'works': ['001', '002', '003', '004', '005', '006', '007'], 'name': 'Georgius Pisides Poeta'}, 'TLG0532': {'works': ['001'], 'name': 'Achilles Tatius Scr. Erot.'}, 'TLG0579': {'works': ['001', '002', '003', '007', '008', '009', '010', '011', '012', '013'], 'name': 'Orphica'}, 'TLG0513': {'works': ['001', '002', '003', '004'], 'name': 'Theopompus Comic.'}, 'TLG4031': {'works': ['001', '002', '003'], 'name': 'Eustratius Phil.'}, 'TLG2655': {'works': ['002'], 'name': 'Damigeron Magus'}, 'TLG2034': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '027', '029'], 'name': 'Porphyrius Phil.'}, 'TLG1498': {'works': ['003'], 'name': 'Menander Hist.'}, 'TLG0305': {'works': ['001'], 'name': 'Aristias Trag.'}, 'TLG2201': {'works': ['002'], 'name': '[Ctesiphon] Hist.'}, 'TLG5009': {'works': ['001'], 'name': 'Scholia In Aeschinem'}, 'TLG0710': {'works': ['001'], 'name': 'Amphiarai Exilium (?)'}, 'TLG0437': {'works': ['001', '002'], 'name': 'Crobylus Comic.'}, 'TLG1969': {'works': ['003'], 'name': 'Philinus Hist.'}, 'TLG1171': {'works': ['001'], 'name': 'Apollonius Scr. Eccl.'}, 'TLG0551': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018'], 'name': 'Appianus Hist.'}, 'TLG1654': {'works': ['001', '002'], 'name': 'Rhinthon Comic.'}, 'TLG2383': {'works': ['001'], 'name': 'Diodorus Phil.'}, 'TLG0323': {'works': ['001'], 'name': 'Antiphon Trag.'}, 'TLG1270': {'works': ['001'], 'name': 'Clearchus Phil.'}, 'TLG0615': {'works': ['001'], 'name': 'Aspasius Phil.'}, 'TLG4072': {'works': ['001', '002', '003', '004'], 'name': 'Eutocius Math.'}, 'TLG0498': {'works': ['001', '002'], 'name': 'Poliochus Comic.'}, 'TLG1210': {'works': ['001', '002'], 'name': 'Autolycus Astron.'}, 'TLG0566': {'works': ['001', '002', '003'], 'name': 'Theopompus Hist.'}, 'TLG0617': {'works': ['001', '002'], 'name': 'Anaximenes Phil.'}, 'TLG0239': {'works': ['001', '002', '003', '004'], 'name': 'Antimachus Eleg. et Epic.'}, 'TLG1349': {'works': ['001'], 'name': 'Epistula A Martyribus Lugdunensibus'}, 'TLG2294': {'works': ['001'], 'name': 'Zeno Phil.'}, 'TLG0094': {'works': ['001', '002', '003'], 'name': 'Pseudo-Plutarchus'}, 'TLG0726': {'works': ['001', '002', '003', '004'], 'name': 'Palladius Med.'}, 'TLG1411': {'works': ['001'], 'name': 'Heracliti Ephesii Epistulae'}, 'TLG1313': {'works': ['003'], 'name': 'Dieuchidas Hist.'}, 'TLG0062': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071'], 'name': 'Lucianus Soph.'}, 'TLG0565': {'works': ['001', '002', '003', '004'], 'name': 'Soranus Med.'}, 'TLG0389': {'works': ['001'], 'name': 'Acta Petri'}, 'TLG0570': {'works': ['002', '003'], 'name': 'Archelaus Paradox.'}, 'TLG2512': {'works': ['002'], 'name': 'Paeon Hist.'}, 'TLG0086': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056'], 'name': 'Aristoteles Phil. et Corpus Aristotelicum, Aristotle'}, 'TLG9023': {'works': ['001', '002'], 'name': 'Thomas Magister Philol.'}, 'TLG0981': {'works': ['001'], 'name': 'Stesichorus II Lyr.'}, 'TLG0056': {'works': ['001'], 'name': 'Thrasybuli Epistula'}, 'TLG2268': {'works': ['002'], 'name': 'Timagoras Hist.'}, 'TLG0059': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041'], 'name': 'Plato Phil.'}, 'TLG0390': {'works': ['001'], 'name': 'Martyrium Carpi, Papyli Et Agathonicae'}, 'TLG1507': {'works': ['001'], 'name': 'Metopus Phil.'}, 'TLG2050': {'works': ['001', '002'], 'name': 'Eunapius Hist. et Soph.'}, 'TLG1269': {'works': ['001', '002'], 'name': 'Cleanthes Phil.'}, 'TLG1632': {'works': ['001', '004'], 'name': 'Posidippus Epigr.'}, 'TLG1733': {'works': ['001', '002', '003'], 'name': 'Timaeus Hist.'}, 'TLG0489': {'works': ['001', '002', '003'], 'name': 'Philetaerus Comic.'}, 'TLG1706': {'works': ['003'], 'name': 'Thallus Hist.'}, 'TLG0083': {'works': ['002', '003'], 'name': 'Dionysius Geogr.'}, 'TLG0576': {'works': ['003'], 'name': 'Musaeus Epic.'}, 'TLG4026': {'works': ['001', '002', '003'], 'name': 'Anonymi In Aristotelis Artem Rhetoricam Rhet.'}, 'TLG0466': {'works': ['001', '002'], 'name': 'Heraclides Comic.'}, 'TLG2326': {'works': ['003', '004'], 'name': 'Dei(l)ochus Hist.'}, 'TLG1846': {'works': ['001'], 'name': 'Spintharus Trag.'}, 'TLG2417': {'works': ['003'], 'name': 'Cineas Rhet.'}, 'TLG2511': {'works': ['002'], 'name': 'Demetrius Hist.'}, 'TLG1266': {'works': ['001'], 'name': 'Tyrannion Gramm.'}, 'TLG1372': {'works': ['001'], 'name': 'Evangelium Evae'}, 'TLG2585': {'works': ['001'], 'name': 'Marcellinus Biogr.'}, 'TLG2474': {'works': ['002'], 'name': 'Nicander Hist.'}, 'TLG1482': {'works': ['001'], 'name': 'Cyranides'}, 'TLG1811': {'works': ['001'], 'name': 'Metrodorus Major Phil.'}, 'TLG1225': {'works': ['003'], 'name': 'Bion Hist.'}, 'TLG0344': {'works': ['001'], 'name': 'Melanthius Trag.'}, 'TLG2881': {'works': ['001', '002', '003', '005'], 'name': 'Romanus Melodus Hymnographus'}, 'TLG0271': {'works': ['001'], 'name': 'Conventus Avium'}, 'TLG4046': {'works': ['001'], 'name': 'Theophanes Confessor Chronogr.'}, 'TLG1319': {'works': ['001', '002'], 'name': 'Diogenes Phil.'}, 'TLG4147': {'works': ['001'], 'name': 'Florilegium Cyrillianum'}, 'TLG2110': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013'], 'name': 'Cyrillus Scr. Eccl.'}, 'TLG0054': {'works': ['001'], 'name': 'Theano Phil.'}, 'TLG1176': {'works': ['001'], 'name': 'Archytas Epic.'}, 'TLG0346': {'works': ['001'], 'name': 'Pompeius Macer Trag.'}, 'TLG4033': {'works': ['001', '002', '003'], 'name': 'Anonymi In Aristotelis Ethica Nicomachea Phil.'}, 'TLG1597': {'works': ['001'], 'name': 'Telauges Phil.'}, 'TLG1412': {'works': ['001'], 'name': 'Pseudo-Heracliti Epistulae'}, 'TLG0418': {'works': ['001', '002'], 'name': 'Aristagoras Comic.'}, 'TLG1500': {'works': ['001'], 'name': 'Menecrates Poet. Phil.'}, 'TLG0506': {'works': ['001', '002'], 'name': 'Stephanus Comic.'}, 'TLG0309': {'works': ['001'], 'name': 'Achaeus Trag.'}, 'TLG5010': {'works': ['001', '002', '003', '004', '005', '006', '007', '009', '010', '011', '019', '020', '021', '022', '023'], 'name': 'Scholia In Aeschylum'}, 'TLG1676': {'works': ['001', '002'], 'name': 'Simylus Iamb.'}, 'TLG1596': {'works': ['001', '002', '003'], 'name': 'Philolaus Phil.'}, 'TLG0212': {'works': ['001', '002', '003', '004'], 'name': 'Philetas Eleg. et Gramm.'}, 'TLG4083': {'works': ['001', '003', '004', '006'], 'name': 'Eustathius Philol. et Scr. Eccl.'}, 'TLG0424': {'works': ['001', '002', '003'], 'name': 'Axionicus Comic.'}, 'TLG1713': {'works': ['002'], 'name': 'Themison Hist.'}, 'TLG4235': {'works': ['001', '002'], 'name': 'Joannes Rhet.'}, 'TLG0545': {'works': ['001', '002', '003', '004', '005'], 'name': 'Claudius Aelianus Soph.'}, 'TLG2061': {'works': ['001', '002'], 'name': 'Asterius Sophista Scr. Eccl.'}, 'TLG0427': {'works': ['001', '002'], 'name': 'Callippus Comic.'}, 'TLG5030': {'works': ['001'], 'name': 'Scholia In Lycophronem'}, 'TLG1701': {'works': ['001', '002'], 'name': 'Testamentum Abrahae'}, 'TLG0715': {'works': ['001'], 'name': 'Paulus Med.'}, 'TLG2031': {'works': ['001', '002', '003'], 'name': 'Sopater Rhet.'}, 'TLG0659': {'works': ['001', '002', '003', '004', '005'], 'name': 'Comica Adespota (Suppl. Com.)'}, 'TLG0479': {'works': ['001', '002'], 'name': 'Nico Comic.'}, 'TLG0719': {'works': ['001', '002', '003', '004'], 'name': 'Aretaeus Med.'}, 'TLG4080': {'works': ['001'], 'name': 'Geoponica'}, 'TLG4391': {'works': ['001'], 'name': 'Glaucus Hist.'}, 'TLG1083': {'works': ['002'], 'name': 'Isigonus Paradox.'}, 'TLG1268': {'works': ['002'], 'name': 'Claudius Iolaus Hist.'}, 'TLG0165': {'works': ['001', '002'], 'name': 'Diodorus Rhet.'}, 'TLG2240': {'works': ['001'], 'name': 'Hicetas Phil.'}, 'TLG0074': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018'], 'name': 'Flavius Arrianus Hist. et Phil.'}, 'TLG2141': {'works': ['003'], 'name': 'Publius Herennius Dexippus Hist.'}, 'TLG4110': {'works': ['001', '002', '007', '008', '010', '015', '016', '017', '018', '020', '021', '022', '023', '024', '025', '028', '030', '031', '040', '043'], 'name': 'Evagrius Scr. Eccl.'}, 'TLG2903': {'works': ['001'], 'name': 'Minucianus Junior Rhet.'}, 'TLG0017': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013'], 'name': 'Isaeus Orat.'}, 'TLG1358': {'works': ['001', '003'], 'name': 'Eudoxus Astron.'}, 'TLG1196': {'works': ['003', '004'], 'name': 'Aristophanes Hist.'}, 'TLG0353': {'works': ['001'], 'name': 'Sclerias Trag.'}, 'TLG1728': {'works': ['003'], 'name': 'Theseus Hist.'}, 'TLG1371': {'works': ['001'], 'name': 'Evangelium Petri'}, 'TLG1625': {'works': ['001', '002'], 'name': 'Polyclitus Phil.'}, 'TLG2151': {'works': ['002'], 'name': 'Praxagoras Hist.'}, 'TLG0002': {'works': ['001', '002', '003', '004'], 'name': 'Theognis Eleg.'}, 'TLG1248': {'works': ['001'], 'name': 'Celsus Phil.'}, 'TLG0314': {'works': ['001'], 'name': 'Morsimus Trag.'}, 'TLG4163': {'works': ['001'], 'name': 'Telegonia'}, 'TLG0359': {'works': ['001'], 'name': 'Isidorus Scriptor Hymnorum'}, 'TLG4037': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Anonymi Paradoxographi'}, 'TLG0300': {'works': ['001'], 'name': 'Acta Alexandrinorum'}, 'TLG1307': {'works': ['003'], 'name': 'Demon Hist.'}, 'TLG1981': {'works': ['003'], 'name': 'Theophanes Hist.'}, 'TLG2233': {'works': ['001'], 'name': 'Pseudo-Polemon'}, 'TLG5016': {'works': ['002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '022', '023', '024'], 'name': 'Scholia In Callimachum'}, 'TLG2397': {'works': ['001'], 'name': 'Boethus Phil.'}, 'TLG1642': {'works': ['001'], 'name': 'Pseudo-Ptolemaeus'}, 'TLG2533': {'works': ['002'], 'name': 'Timolaus Hist.'}, 'TLG1312': {'works': ['003', '004'], 'name': 'Didymus Gramm.'}, 'TLG1143': {'works': ['001'], 'name': 'Antiochus Phil.'}, 'TLG2950': {'works': ['001'], 'name': 'Adamantius Theol.'}, 'TLG1558': {'works': ['001'], 'name': 'Papias Scr. Eccl.'}, 'TLG2680': {'works': ['001'], 'name': 'Scythinus Epigr.'}, 'TLG0553': {'works': ['001'], 'name': 'Artemidorus Onir.'}, 'TLG0440': {'works': ['001', '002'], 'name': 'Demetrius Junior Comic.'}, 'TLG1509': {'works': ['001'], 'name': 'Milon Phil.'}, 'TLG0562': {'works': ['001'], 'name': 'Marcus Aurelius Antoninus Imperator Phil.'}, 'TLG1821': {'works': ['001', '002'], 'name': 'Iambica Adespota (ALG)'}, 'TLG0646': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012'], 'name': 'Pseudo-Justinus Martyr'}, 'TLG0494': {'works': ['001', '002', '003', '004'], 'name': 'Philyllius Comic.'}, 'TLG0703': {'works': ['001'], 'name': 'Numenius Poet. Didac.'}, 'TLG2632': {'works': ['001'], 'name': 'Comarius Alchem.'}, 'TLG0469': {'works': ['001', '002'], 'name': 'Laon Comic.'}, 'TLG1337': {'works': ['001', '002', '003'], 'name': 'Dorotheus Astrol.'}, 'TLG1376': {'works': ['001'], 'name': 'Eudemus Rhet.'}, 'TLG1197': {'works': ['001'], 'name': 'Artemon Gramm.'}, 'TLG0738': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010'], 'name': 'Hippiatrica'}, 'TLG9009': {'works': ['001'], 'name': 'Michael Apostolius Paroemiogr.'}, 'TLG2130': {'works': ['001', '002', '003', '004', '005', '006', '007', '032'], 'name': 'Arethas Philol. et Scr. Eccl.'}, 'TLG1115': {'works': ['001'], 'name': 'Archestratus Trag.'}, 'TLG3070': {'works': ['001'], 'name': 'Symeon Logothetes Hist.'}, 'TLG0228': {'works': ['001'], 'name': 'Anonymi Hymnus In Dactylos Idaeos'}, 'TLG0373': {'works': ['001'], 'name': 'Melanippides Lyr.'}, 'TLG2019': {'works': ['001'], 'name': 'Pelagius Alchem.'}, 'TLG0582': {'works': ['001'], 'name': 'Paradoxographus Vaticanus'}, 'TLG1760': {'works': ['001', '002'], 'name': 'Gaius Suetonius Tranquillus Gramm. et Hist.'}, 'TLG2877': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Cyrillus Biogr.'}, 'TLG1149': {'works': ['001'], 'name': 'Antonini Pii Imperatoris Epistula'}, 'TLG0400': {'works': ['001', '002', '003', '004'], 'name': 'Alcaeus Comic.'}, 'TLG2475': {'works': ['002'], 'name': 'Menecrates Hist.'}, 'TLG2298': {'works': ['002'], 'name': 'Lysanias Hist.'}, 'TLG3155': {'works': ['001'], 'name': 'Joannes Protospatharius Gramm.'}, 'TLG2245': {'works': ['001'], 'name': 'Simus Phil.'}, 'TLG1720': {'works': ['002'], 'name': 'Theodotus Judaeus Epic.'}, 'TLG0446': {'works': ['001', '002'], 'name': 'Dioxippus Comic.'}, 'TLG1799': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017'], 'name': 'Euclides Geom.'}, 'TLG0207': {'works': ['001'], 'name': 'Hermocles Lyr.'}, 'TLG4302': {'works': ['001'], 'name': 'Lexicon Patmense'}, 'TLG0231': {'works': ['001'], 'name': 'Elegiaca Adespota (CA)'}, 'TLG4305': {'works': ['001'], 'name': 'Claudius Casilon Gramm.'}, 'TLG0385': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017'], 'name': 'Cassius Dio Hist., Dio Cassius'}, 'TLG2291': {'works': ['001'], 'name': 'Cratylus Phil.'}, 'TLG2000': {'works': ['001'], 'name': 'Plotinus Phil.'}, 'TLG2322': {'works': ['003'], 'name': 'Antenor Hist.'}, 'TLG2640': {'works': ['001'], 'name': 'Eusebius Phil.'}, 'TLG2049': {'works': ['001'], 'name': 'Sallustius Phil.'}, 'TLG0199': {'works': ['010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023'], 'name': 'Bacchylides Lyr.'}, 'TLG1764': {'works': ['001'], 'name': 'Vettius Valens Astrol.'}, 'TLG3157': {'works': ['001'], 'name': 'Theodorus Scutariota Hist.'}, 'TLG1763': {'works': ['001'], 'name': 'Tryphon II Gramm.'}, 'TLG1499': {'works': ['002'], 'name': 'Menecles Hist.'}, 'TLG2634': {'works': ['001'], 'name': 'Pamphilus Poeta'}, 'TLG1605': {'works': ['001'], 'name': 'Pseudo-Phocylides Gnom.'}, 'TLG4019': {'works': ['001', '002', '003', '004', '005', '006', '008'], 'name': 'Olympiodorus Phil.'}, 'TLG1750': {'works': ['001', '002', '003', '004'], 'name': 'Vitae Prophetarum'}, 'TLG2192': {'works': ['002'], 'name': '[Agatharchides] Hist.'}, 'TLG0009': {'works': ['001', '002', '003', '004'], 'name': 'Sappho Lyr.'}, 'TLG1775': {'works': ['001'], 'name': 'Pseudo-Agathon Epigr.'}, 'TLG0057': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '077', '078', '079', '080', '081', '082', '083', '084', '085', '086', '087', '088', '089', '090', '091', '092', '093', '094', '095', '096', '097', '099', '100', '101', '102', '103', '104', '105', '106', '107', '111', '114', '115', '121'], 'name': 'Galenus Med.'}, 'TLG1202': {'works': ['001'], 'name': 'Athamas Phil.'}, 'TLG1779': {'works': ['001', '002'], 'name': 'Anonymus Epicureus Phil.'}, 'TLG1190': {'works': ['003'], 'name': 'Aristagoras Hist.'}, 'TLG4340': {'works': ['001'], 'name': 'Salmanas Alchem.'}, 'TLG2317': {'works': ['001'], 'name': 'Hermias Phil.'}, 'TLG2729': {'works': ['001'], 'name': 'Prorus Phil.'}, 'TLG5002': {'works': ['001', '002', '003', '004'], 'name': 'Magica'}, 'TLG0137': {'works': ['001', '002'], 'name': 'Asclepiades Epigr.'}, 'TLG0288': {'works': ['001', '003'], 'name': 'Pisander Epic.'}, 'TLG1342': {'works': ['002', '003', '004'], 'name': 'Empedocles Poet. Phil.'}, 'TLG5033': {'works': ['001'], 'name': 'Scholia In Pausaniam'}, 'TLG1687': {'works': ['003'], 'name': 'Sosicrates Hist.'}, 'TLG1211': {'works': ['003'], 'name': 'Balagrus Hist.'}, 'TLG1691': {'works': ['001'], 'name': 'Sotades Iamb.'}, 'TLG0524': {'works': ['001', '002'], 'name': 'Sophron Mimogr.'}, 'TLG0200': {'works': ['001'], 'name': 'Mantissa Proverbiorum'}, 'TLG2578': {'works': ['001', '002'], 'name': 'Joannes Gramm. et Poeta'}, 'TLG2592': {'works': ['003'], 'name': 'Joannes Pediasimus Philol. et Rhet.'}, 'TLG2200': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '011', '012', '013'], 'name': 'Libanius Rhet. et Soph.'}, 'TLG1329': {'works': ['001'], 'name': 'Dionysius Scr. Eccl.'}, 'TLG0561': {'works': ['001'], 'name': 'Longus Scr. Erot.'}, 'TLG2021': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '036', '037', '038', '039', '040', '041', '042', '043'], 'name': 'Epiphanius Scr. Eccl.'}, 'TLG2307': {'works': ['002'], 'name': 'Artemon Hist.'}, 'TLG1795': {'works': ['001'], 'name': 'Chaerion Comic.'}, 'TLG1623': {'works': ['002'], 'name': 'Polycharmus Hist.'}, 'TLG1736': {'works': ['002'], 'name': 'Timonax Hist.'}, 'TLG0210': {'works': ['001'], 'name': 'Euphronius Lyr.'}, 'TLG2274': {'works': ['004', '005', '006', '007'], 'name': 'Hesychius Illustrius Hist.'}, 'TLG1781': {'works': ['001', '002'], 'name': 'Philippus Comic.'}, 'TLG2615': {'works': ['001'], 'name': 'Daphitas Gramm. vel Soph.'}, 'TLG0244': {'works': ['001'], 'name': 'Cleobulina Scriptor Aenigmatum'}, 'TLG1699': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Teles Phil.'}, 'TLG0236': {'works': ['001'], 'name': 'Alcibiades Eleg.'}, 'TLG2215': {'works': ['002'], 'name': 'Ar(i)aethus Hist.'}, 'TLG1945': {'works': ['003'], 'name': 'Antigenes Hist.'}, 'TLG2949': {'works': ['001'], 'name': 'Acta Barnabae'}, 'TLG2205': {'works': ['002'], 'name': 'Autesion Hist.'}, 'TLG5029': {'works': ['001', '002'], 'name': 'Scholia In Lucianum'}, 'TLG1911': {'works': ['003'], 'name': 'Diyllus Hist.'}, 'TLG4085': {'works': ['001', '002', '003'], 'name': 'Hesychius Lexicogr.'}, 'TLG4337': {'works': ['001'], 'name': 'Heliodorus Alchem. et Poeta'}, 'TLG0316': {'works': ['001'], 'name': 'Xenocles Trag.'}, 'TLG2247': {'works': ['001'], 'name': 'Petron Phil.'}, 'TLG0478': {'works': ['001', '002', '003'], 'name': 'Nausicrates Comic.'}, 'TLG1339': {'works': ['003', '005'], 'name': 'Duris Hist.'}, 'TLG1182': {'works': ['004'], 'name': '[Aristeas] Epic.'}, 'TLG4030': {'works': ['001'], 'name': 'Sophonias Phil.'}, 'TLG9022': {'works': ['003', '004', '006'], 'name': 'Joannes Tzetzes Gramm. et Poeta'}, 'TLG1407': {'works': ['001', '002'], 'name': 'Heraclides Lembus Hist.'}, 'TLG0460': {'works': ['001', '002'], 'name': 'Euphro Comic.'}, 'TLG2539': {'works': ['003'], 'name': 'Diophantus Hist.'}, 'TLG1751': {'works': ['003', '004'], 'name': 'Xanthus Hist.'}, 'TLG0445': {'works': ['001', '002', '003'], 'name': 'Dionysius Comic.'}, 'TLG2016': {'works': ['001'], 'name': 'Passio Perpetuae Et Felicitatis'}, 'TLG2181': {'works': ['001', '002'], 'name': 'Moses Alchem.'}, 'TLG2384': {'works': ['003'], 'name': 'Hermias Hist.'}, 'TLG1180': {'works': ['001'], 'name': 'Aristaeus Phil.'}, 'TLG2054': {'works': ['001'], 'name': 'Aristides Quintilianus Mus.'}, 'TLG1557': {'works': ['001', '003'], 'name': 'Panyassis Epic.'}, 'TLG0527': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059'], 'name': 'Septuaginta'}, 'TLG4161': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014'], 'name': 'Vitae Arati Et Varia De Arato'}, 'TLG5004': {'works': ['001', '002'], 'name': 'Epimerismi'}, 'TLG2339': {'works': ['002'], 'name': 'Maeandrius Hist.'}, 'TLG4105': {'works': ['001'], 'name': 'Julianus Scr. Eccl.'}, 'TLG0337': {'works': ['001'], 'name': 'Python Trag.'}, 'TLG0355': {'works': ['001'], 'name': 'Zopyrus Trag.'}, 'TLG0058': {'works': ['001'], 'name': 'Aeneas Tact.'}, 'TLG0258': {'works': ['001'], 'name': 'Pigres Eleg.'}, 'TLG1838': {'works': ['001', '002', '003'], 'name': 'Theon Gramm.'}, 'TLG1791': {'works': ['001', '002'], 'name': 'Menandri Et Philistionis Sententiae'}, 'TLG1590': {'works': ['002'], 'name': 'Philippus Hist.'}, 'TLG2633': {'works': ['001'], 'name': 'Niceratus Epic.'}, 'TLG0248': {'works': ['001'], 'name': 'Diphilus Epic. et Iamb.'}, 'TLG2970': {'works': ['001'], 'name': 'Severus Phil.'}, 'TLG5046': {'works': ['001'], 'name': 'Scholia In Theonem Rhetorem'}, 'TLG0350': {'works': ['001'], 'name': 'Dionysius Scymnaeus Trag. vel Comic.'}, 'TLG1553': {'works': ['001', '004'], 'name': 'Palaephatus Myth.'}, 'TLG2691': {'works': ['001', '002'], 'name': '[Musaeus] Phil.'}, 'TLG0310': {'works': ['001'], 'name': 'Carcinus Trag.'}, 'TLG1240': {'works': ['003'], 'name': 'Callixenus Hist.'}, 'TLG2102': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '016', '017', '018', '019', '020', '021', '022', '025', '026', '027', '028', '030', '032', '033', '035', '037', '040', '041', '042', '043', '046', '047', '048', '049'], 'name': 'Didymus Caecus Scr. Eccl., Didymus the Blind'}, 'TLG4021': {'works': ['001', '002'], 'name': 'David Phil.'}, 'TLG0539': {'works': ['001', '002', '003'], 'name': 'Hellanicus Hist.'}, 'TLG0641': {'works': ['001', '002'], 'name': 'Xenophon Scr. Erot.'}, 'TLG0370': {'works': ['001'], 'name': 'Lamprocles Lyr.'}, 'TLG2482': {'works': ['003'], 'name': 'Daimachus Hist.'}, 'TLG1121': {'works': ['001'], 'name': 'Anaximenis Milesii Epistulae'}, 'TLG1849': {'works': ['001'], 'name': 'Demetrius Trag.'}, 'TLG1494': {'works': ['001', '002'], 'name': 'Melissus Phil.'}, 'TLG2109': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013'], 'name': 'Pseudo-Macarius Scr. Eccl.'}, 'TLG4346': {'works': ['001'], 'name': 'Menecrates Hist.'}, 'TLG4184': {'works': ['001'], 'name': 'Dionysius Soph.'}, 'TLG1397': {'works': ['003'], 'name': 'Hegesippus Hist.'}, 'TLG0386': {'works': ['001'], 'name': 'Chilonis Epistula'}, 'TLG0016': {'works': ['001'], 'name': 'Herodotus Hist.'}, 'TLG1442': {'works': ['004'], 'name': 'Idomeneus Hist.'}, 'TLG1470': {'works': ['003', '004'], 'name': 'Lycus Hist.'}, 'TLG0688': {'works': ['003', '005'], 'name': 'Agathocles Hist.'}, 'TLG1491': {'works': ['002'], 'name': 'Melanthius Hist.'}, 'TLG0548': {'works': ['001'], 'name': 'Pseudo-Apollodorus Myth.'}, 'TLG0729': {'works': ['002', '003', '004', '005'], 'name': 'Theophilus Protospatharius Med.'}, 'TLG4153': {'works': ['001'], 'name': 'Theophanes Continuatus'}, 'TLG0619': {'works': ['001', '002', '003'], 'name': 'Apollonius Phil.'}, 'TLG1609': {'works': ['001', '002', '003'], 'name': 'Phylarchus Hist.'}, 'TLG2052': {'works': ['001', '002'], 'name': 'Horapollo Gramm.'}, 'TLG0284': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057'], 'name': 'Aelius Aristides Rhet.'}, 'TLG0311': {'works': ['001'], 'name': 'Iophon Trag.'}, 'TLG0888': {'works': ['001'], 'name': 'Eudemus Poet. Med.'}, 'TLG0092': {'works': ['001'], 'name': 'Anonymi Geographiae Expositio Compendiaria'}, 'TLG2187': {'works': ['002'], 'name': 'Posidonius Hist.'}, 'TLG1533': {'works': ['001', '002'], 'name': 'Nicias Epigr.'}, 'TLG1727': {'works': ['002'], 'name': 'Theotimus Hist.'}, 'TLG2542': {'works': ['003'], 'name': 'Quintus Fabius Pictor Hist.'}, 'TLG1216': {'works': ['001'], 'name': 'Barnabae Epistula'}, 'TLG0645': {'works': ['001', '002', '003', '004'], 'name': 'Justinus Martyr Apol.'}, 'TLG2434': {'works': ['003'], 'name': 'Aelius Dius Hist.'}, 'TLG1788': {'works': ['001', '002'], 'name': 'Phormis Comic.'}, 'TLG4236': {'works': ['001'], 'name': 'Trophonius Rhet. et Soph.'}, 'TLG0232': {'works': ['001', '002', '003'], 'name': 'Archilochus Eleg. et Iamb.'}, 'TLG1587': {'works': ['001'], 'name': 'Philiades Eleg.'}, 'TLG3168': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Pseudo-Codinus Hist.'}, 'TLG1566': {'works': ['001', '002'], 'name': 'Parmeno Iamb.'}, 'TLG1239': {'works': ['002'], 'name': 'Domitius Callistratus Hist.'}, 'TLG4326': {'works': ['001'], 'name': 'Pappus Alchem.'}, 'TLG2560': {'works': ['002'], 'name': 'Pythocles Hist.'}, 'TLG1692': {'works': ['001', '002', '004', '005'], 'name': 'Speusippus Phil.'}, 'TLG2319': {'works': ['001'], 'name': 'Apollodorus Phil.'}, 'TLG5017': {'works': ['001'], 'name': 'Scholia In Demosthenem'}, 'TLG0482': {'works': ['001', '002'], 'name': 'Nicomachus Comic.'}, 'TLG0045': {'works': ['001'], 'name': 'Artaxerxis Epistulae'}, 'TLG1599': {'works': ['001', '002'], 'name': 'Philo Mech.'}, 'TLG1747': {'works': ['001'], 'name': 'Vita Adam Et Evae'}, 'TLG1729': {'works': ['001', '002'], 'name': 'Thrasymachus Rhet. et Soph.'}, 'TLG1560': {'works': ['001'], 'name': 'Matthiae Traditiones'}, 'TLG0289': {'works': ['001', '002'], 'name': 'Ammonius Epigr.'}, 'TLG0381': {'works': ['001'], 'name': 'Lycophronides Lyr.'}, 'TLG3142': {'works': ['001', '002'], 'name': 'Georgius Pachymeres Hist.'}, 'TLG1735': {'works': ['002', '003'], 'name': 'Timon Phil.'}, 'TLG1463': {'works': ['001', '002'], 'name': 'Liber Enoch'}, 'TLG1496': {'works': ['003'], 'name': 'Memnon Hist.'}, 'TLG1585': {'works': ['001'], 'name': 'Pherecydis Epistula'}, 'TLG0499': {'works': ['001', '002', '003'], 'name': 'Polyzelus Comic.'}, 'TLG2303': {'works': ['001', '002'], 'name': 'Archelaus Phil.'}, 'TLG2115': {'works': ['002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '055', '056', '057', '058', '059', '060'], 'name': 'Hippolytus Scr. Eccl.'}, 'TLG0745': {'works': ['001', '002'], 'name': 'Hierophilus Phil. et Soph.'}, 'TLG2614': {'works': ['001'], 'name': 'Cleomachus Poeta'}, 'TLG0421': {'works': ['001', '002'], 'name': 'Aristophon Comic.'}, 'TLG1181': {'works': ['001'], 'name': 'Aristarchus Astron.'}, 'TLG0502': {'works': ['001', '002'], 'name': 'Sophilus Comic.'}, 'TLG0426': {'works': ['001', '002', '003', '004', '005'], 'name': 'Callias Comic.'}, 'TLG1127': {'works': ['001'], 'name': 'Anonyma De Musica Scripta Bellermanniana'}, 'TLG0371': {'works': ['001'], 'name': 'Diagoras Lyr.'}, 'TLG2372': {'works': ['003'], 'name': 'Euagon Hist.'}, 'TLG1286': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '016', '017', '018', '019', '020', '021', '022'], 'name': 'Corpus Hermeticum'}, 'TLG0340': {'works': ['001'], 'name': 'Sositheus Trag.'}, 'TLG0897': {'works': ['001'], 'name': 'Euthydemus Med.'}, 'TLG4017': {'works': ['001', '002', '003', '004'], 'name': 'Syrianus Phil.'}, 'TLG2058': {'works': ['001', '002', '003'], 'name': 'Philostorgius Scr. Eccl.'}, 'TLG2216': {'works': ['003'], 'name': 'Aristippus Hist.'}, 'TLG2972': {'works': ['001'], 'name': 'Anonymi De Terrae Motibus'}, 'TLG1259': {'works': ['001'], 'name': 'Charondas Nomographus Phil.'}, 'TLG2230': {'works': ['001'], 'name': 'Boïdas Phil.'}, 'TLG4374': {'works': ['001'], 'name': 'Anonymi De Astrologia Dialogus Astrol.'}, 'TLG1547': {'works': ['001'], 'name': 'Oedipodea'}, 'TLG1382': {'works': ['001'], 'name': 'Fragmentum Teliambicum'}, 'TLG4170': {'works': ['001'], 'name': 'Vitae Pindari Et Varia De Pindaro'}, 'TLG2770': {'works': ['001'], 'name': 'Callinicus Biogr.'}, 'TLG2004': {'works': ['001'], 'name': 'Amelii Epistula'}, 'TLG2229': {'works': ['001'], 'name': 'Xuthus Phil.'}, 'TLG2140': {'works': ['001'], 'name': 'Iamblichus Alchem.'}, 'TLG3145': {'works': ['001', '002'], 'name': 'Joannes Anagnostes Hist. et Poeta'}, 'TLG4237': {'works': ['001'], 'name': 'Joannes Argyropulus Gramm.'}, 'TLG0319': {'works': ['001', '002', '003', '004', '005'], 'name': 'Critias Eleg., Phil. et Trag.'}, 'TLG4020': {'works': ['001', '002', '003'], 'name': 'Elias Phil.'}, 'TLG1748': {'works': ['001'], 'name': 'Sosigenes Phil.'}, 'TLG2241': {'works': ['001'], 'name': 'Xenophilus Mus. et Phil.'}, 'TLG1326': {'works': ['001'], 'name': 'Dionysius Epic.'}, 'TLG0536': {'works': ['002', '003', '004'], 'name': 'Ephorus Hist.'}, 'TLG1845': {'works': ['001'], 'name': 'Callistratus Trag.'}, 'TLG0425': {'works': ['001', '002'], 'name': 'Bato Comic.'}, 'TLG1475': {'works': ['001'], 'name': 'Maiistas Epic.'}, 'TLG0304': {'works': ['001'], 'name': 'Acta Et Martyrium Apollonii'}, 'TLG4034': {'works': ['001', '002', '003', '004', '005', '006', '008', '009'], 'name': 'Michael Phil.'}, 'TLG2657': {'works': ['001', '002'], 'name': 'Martyrium Ignatii'}, 'TLG2043': {'works': ['001', '002', '003', '004', '005'], 'name': 'Hephaestion Astrol.'}, 'TLG0357': {'works': ['001'], 'name': 'Didymus Scriptor De Mensuris'}, 'TLG1476': {'works': ['001'], 'name': 'Mamercus Eleg.'}, 'TLG1529': {'works': ['003'], 'name': 'Nicander Gramm.'}, 'TLG0296': {'works': ['001'], 'name': 'Carmina Convivialia (PMG)'}, 'TLG0467': {'works': ['001'], 'name': 'Timotheus Trag.'}, 'TLG1192': {'works': ['001'], 'name': 'Ariston Phil.'}, 'TLG2193': {'works': ['002'], 'name': '[Aretades] Hist.'}, 'TLG2418': {'works': ['002'], 'name': 'Archinus Hist.'}, 'TLG3074': {'works': ['001', '002'], 'name': 'Constantinus Manasses Hist. et Poeta'}, 'TLG1724': {'works': ['001'], 'name': 'Theon Phil.'}, 'TLG2630': {'works': ['001', '002'], 'name': 'Lobo Poeta'}, 'TLG0315': {'works': ['001', '002'], 'name': 'Sthenelus Trag.'}, 'TLG9020': {'works': ['001'], 'name': 'Stephanus Gramm.'}, 'TLG2718': {'works': ['001', '002'], 'name': 'Manuel Philes Poeta et Scr. Rerum Nat.'}, 'TLG0593': {'works': ['001', '002', '003'], 'name': 'Gorgias Rhet. et Soph.'}, 'TLG2277': {'works': ['002'], 'name': 'Hypermenes Hist.'}, 'TLG2371': {'works': ['001'], 'name': 'Chronicon Paschale'}, 'TLG0334': {'works': ['001'], 'name': 'Diogenes Phil. et Trag.'}, 'TLG1315': {'works': ['001', '002'], 'name': 'Dinolochus Comic.'}, 'TLG2239': {'works': ['001'], 'name': 'Pythagoristae (D-K) Phil.'}, 'TLG0533': {'works': ['003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020'], 'name': 'Callimachus Philol.'}, 'TLG2231': {'works': ['001'], 'name': 'Thrasyalces Phil.'}, 'TLG1309': {'works': ['001'], 'name': 'Dialexeis Δισσοὶ λόγοι'}, 'TLG1154': {'works': ['001'], 'name': 'Apocalypsis Baruch'}, 'TLG7000': {'works': ['001'], 'name': 'Anthologia Graeca, AG'}, 'TLG0397': {'works': ['001'], 'name': 'Pronomus Lyr.'}, 'TLG0655': {'works': ['001', '002', '003'], 'name': 'Parthenius Myth.'}, 'TLG1229': {'works': ['001'], 'name': '[Boeus] Epic.'}, 'TLG0749': {'works': ['001'], 'name': 'Antyllus Med.'}, 'TLG1524': {'works': ['001'], 'name': 'Naumachius Epic.'}, 'TLG1287': {'works': ['001', '002'], 'name': 'Crantor Phil.'}, 'TLG1552': {'works': ['001'], 'name': 'Oratio Josephi'}, 'TLG0265': {'works': ['001', '002', '003'], 'name': 'Timocreon Lyr.'}, 'TLG1678': {'works': ['003'], 'name': 'Socrates Hist.'}, 'TLG1123': {'works': ['002'], 'name': 'Andron Hist.'}, 'TLG0512': {'works': ['001', '002'], 'name': 'Theophilus Comic.'}, 'TLG0214': {'works': ['001'], 'name': 'Phanocles Eleg.'}, 'TLG0631': {'works': ['001', '002'], 'name': 'Pittacus Lyr.'}, 'TLG2591': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Orion Gramm.'}, 'TLG1430': {'works': ['001'], 'name': 'Hieronymus Phil.'}, 'TLG1118': {'works': ['001', '002', '003'], 'name': 'Pseudo-Dioscorides Med.'}, 'TLG4040': {'works': ['001', '011', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030'], 'name': 'Photius Lexicogr., Scr. Eccl. et Theol.'}, 'TLG0597': {'works': ['001'], 'name': 'Zenodorus Gramm.'}, 'TLG0560': {'works': ['001'], 'name': '[Longinus] Rhet., Pseudo-Longinus'}, 'TLG4027': {'works': ['001'], 'name': 'Anonymi In Aristotelis Categorias Phil.'}, 'TLG0563': {'works': ['001'], 'name': 'Maximus Soph.'}, 'TLG2148': {'works': ['001', '002'], 'name': 'Aristodemus Hist.'}, 'TLG1145': {'works': ['003'], 'name': 'Antiochus Hist.'}, 'TLG1441': {'works': ['001'], 'name': 'Iamblichus Scr. Erot.'}, 'TLG4134': {'works': ['005'], 'name': 'Diodorus Scr. Eccl.'}, 'TLG0321': {'works': ['001', '002', '003'], 'name': 'Aeschylus Trag.'}, 'TLG1432': {'works': ['001'], 'name': 'Hipparchus Phil.'}, 'TLG2392': {'works': ['003'], 'name': 'Artemon Hist.'}, 'TLG2871': {'works': ['001', '002', '003'], 'name': 'Joannes Malalas Chronogr.'}, 'TLG0413': {'works': ['001', '002'], 'name': 'Apollodorus Comic.'}, 'TLG0084': {'works': ['001', '002', '003'], 'name': 'Dionysius Perieg.'}, 'TLG1734': {'works': ['001', '002'], 'name': 'Timaeus Phil.'}, 'TLG2800': {'works': ['002', '003', '004', '005', '006', '007', '008', '012', '018'], 'name': 'Basilius Scr. Eccl.'}, 'TLG2807': {'works': ['001'], 'name': 'Antonius Hagiographus Scr. Eccl.'}, 'TLG1052': {'works': ['001', '002', '003'], 'name': 'Posidonius Phil.'}, 'TLG7052': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Anthologiae Graecae Appendix'}, 'TLG1398': {'works': ['001'], 'name': 'Hegesippus Scr. Eccl.'}, 'TLG2628': {'works': ['001'], 'name': 'Idaeus Epic.'}, 'TLG2532': {'works': ['002'], 'name': '[Hermesianax] Hist.'}, 'TLG0500': {'works': ['001', '002', '003'], 'name': 'Posidippus Comic.'}, 'TLG3125': {'works': ['001'], 'name': 'Theodosius Diaconus Hist. et Poeta'}, 'TLG1670': {'works': ['001'], 'name': 'Serapion Scr. Eccl.'}, 'TLG1495': {'works': ['001', '002', '003'], 'name': 'Melito Apol.'}, 'TLG4331': {'works': ['001'], 'name': 'Hierotheus Alchem.'}, 'TLG1738': {'works': ['001', '002', '003'], 'name': 'Tragica Adespota'}, 'TLG2589': {'works': ['001', '002'], 'name': 'Olympiodorus Alchem.'}, 'TLG2022': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '065', '066'], 'name': 'Gregorius Nazianzenus Theol.'}, 'TLG2449': {'works': ['002', '003'], 'name': 'Timotheus Gramm.'}, 'TLG0651': {'works': ['001'], 'name': 'Antoninus Liberalis Myth.'}, 'TLG4287': {'works': ['001'], 'name': 'Etymologia Alphabeti'}, 'TLG2679': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010'], 'name': 'Testamentum Salomonis'}, 'TLG2385': {'works': ['003'], 'name': 'Polycritus Hist.'}, 'TLG0364': {'works': ['001'], 'name': 'Danaïs vel Danaïdes'}, 'TLG0587': {'works': ['001'], 'name': 'Sotion Paradox.'}, 'TLG9004': {'works': ['001'], 'name': 'Anonymi In Aristotelis Librum Alterum Analyticorum Posteriorum Commentarium'}, 'TLG2336': {'works': ['002'], 'name': 'Hereas Hist.'}, 'TLG1439': {'works': ['002'], 'name': 'Hermarchus Phil.'}, 'TLG1366': {'works': ['001', '002'], 'name': 'Evangelium Bartholomaei'}, 'TLG1021': {'works': ['001'], 'name': 'Meropis'}, 'TLG0410': {'works': ['001', '002', '003', '004', '005'], 'name': 'Antiphanes Comic.'}, 'TLG2653': {'works': ['001'], 'name': 'Erycius Poeta'}, 'TLG0358': {'works': ['001', '002', '003', '004'], 'name': 'Nicomachus Math.'}, 'TLG0255': {'works': ['001', '002', '003'], 'name': 'Mimnermus Eleg.'}, 'TLG0477': {'works': ['001', '002', '003'], 'name': 'Myrtilus Comic.'}, 'TLG1549': {'works': ['001'], 'name': 'Onatas Phil.'}, 'TLG9006': {'works': ['001', '002', '003', '004'], 'name': 'Gregorius Paroemiogr.'}, 'TLG4345': {'works': ['001'], 'name': 'Menecrates Hist.'}, 'TLG2641': {'works': ['001'], 'name': 'Priscus Epic.'}, 'TLG0594': {'works': ['001', '002'], 'name': 'Alexander Rhet. et Soph.'}, 'TLG0616': {'works': ['001', '002', '003', '004'], 'name': 'Polyaenus Rhet.'}, 'TLG2617': {'works': ['001'], 'name': 'Demetrius Poeta'}, 'TLG1650': {'works': ['001'], 'name': 'Pytheas Perieg.'}, 'TLG2015': {'works': ['001'], 'name': 'Testamentum XL Martyrum'}, 'TLG1426': {'works': ['001'], 'name': 'Herodes Atticus Soph.'}, 'TLG0722': {'works': ['001', '002', '003', '004', '005', '010'], 'name': 'Oribasius Med.'}, 'TLG2623': {'works': ['001'], 'name': 'Euanthes Epic.'}, 'TLG2242': {'works': ['001'], 'name': 'Echecrates Phil.'}, 'TLG0517': {'works': ['001', '002'], 'name': 'Timotheus Comic.'}, 'TLG5003': {'works': ['019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043'], 'name': 'Erotica Adespota'}, 'TLG1848': {'works': ['001'], 'name': 'Meletus Junior Trag.'}, 'TLG2053': {'works': ['001', '002'], 'name': 'Paulus Astrol.'}, 'TLG1391': {'works': ['001', '002', '003', '004'], 'name': 'Hegemon Epic.'}, 'TLG1200': {'works': ['003'], 'name': 'Asclepiades Myth.'}, 'TLG1252': {'works': ['001', '002'], 'name': 'Certamen Homeri Et Hesiodi'}, 'TLG0605': {'works': ['001', '002'], 'name': 'Polybius Rhet.'}, 'TLG1242': {'works': ['001'], 'name': 'Canon Librorum'}, 'TLG0374': {'works': ['001', '002'], 'name': 'Licymnius Lyr.'}, 'TLG1433': {'works': ['001'], 'name': 'Hipparchus Epigr.'}, 'TLG4028': {'works': ['001', '002'], 'name': 'Stephanus Gramm.'}, 'TLG0525': {'works': ['001'], 'name': 'Pausanias Perieg.'}, 'TLG0352': {'works': ['001'], 'name': 'Isidorus Trag.'}, 'TLG1840': {'works': ['001'], 'name': 'Euripides II Trag.'}, 'TLG4290': {'works': ['001'], 'name': 'Lexicon Artis Grammaticae'}, 'TLG0538': {'works': ['001', '002', '003'], 'name': 'Hecataeus Hist.'}, 'TLG0281': {'works': ['001'], 'name': 'Marcellus Poet. Med.'}, 'TLG0634': {'works': ['001'], 'name': 'Xenocrates Phil.'}, 'TLG2055': {'works': ['001', '002'], 'name': 'Serenus Geom.'}, 'TLG1174': {'works': ['002'], 'name': 'Archemachus Hist.'}, 'TLG1511': {'works': ['001'], 'name': 'Mimnermus Trag.'}, 'TLG3143': {'works': ['001'], 'name': 'Georgius Sphrantzes Hist.'}, 'TLG0028': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009'], 'name': 'Antiphon Orat.'}, 'TLG2118': {'works': ['001'], 'name': 'Gryllus'}, 'TLG2642': {'works': ['002', '004'], 'name': 'Astrampsychus Magus Onir.'}, 'TLG2010': {'works': ['001'], 'name': 'Martyrium Dasii'}, 'TLG0620': {'works': ['001', '002'], 'name': 'Archytas Phil.'}, 'TLG1881': {'works': ['001', '002', '003'], 'name': 'Dionysius Scytobrachion Gramm.'}, 'TLG0732': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '010', '011', '012', '013', '014', '015', '016', '017'], 'name': 'Alexander Phil.'}, 'TLG0329': {'works': ['001'], 'name': 'Theodectas Trag.'}, 'TLG9008': {'works': ['001'], 'name': 'Macarius Chrysocephalus Paroemiogr.'}, 'TLG1490': {'works': ['001'], 'name': 'Megillus Phil.'}, 'TLG0001': {'works': ['001', '002', '003'], 'name': 'Apollonius Rhodius Epic.'}, 'TLG4318': {'works': ['001'], 'name': 'Vita Sophoclis'}, 'TLG4311': {'works': ['001', '002'], 'name': 'Etymologicum Symeonis'}, 'TLG0247': {'works': ['001'], 'name': 'Dionysius II Eleg.'}, 'TLG2116': {'works': ['001'], 'name': 'Arcadius Gramm.'}, 'TLG0488': {'works': ['001', '002'], 'name': 'Philemon Junior Comic.'}, 'TLG0725': {'works': ['001', '002'], 'name': 'Anaximander Phil.'}, 'TLG0529': {'works': ['001', '002'], 'name': 'Arius Didymus Doxogr.'}, 'TLG1205': {'works': ['001', '002'], 'name': 'Athenagoras Apol.'}, 'TLG5019': {'works': ['001', '002'], 'name': 'Scholia In Dionysium Periegetam'}, 'TLG0486': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Pherecrates Comic.'}, 'TLG3188': {'works': ['001', '002', '003'], 'name': 'Joannes Actuarius Med.'}, 'TLG2547': {'works': ['003'], 'name': 'Antigonus'}, 'TLG0052': {'works': ['001'], 'name': 'Menippus Phil.'}, 'TLG1314': {'works': ['003', '004'], 'name': 'Dinias Hist.'}, 'TLG0451': {'works': ['001', '002'], 'name': 'Epicrates Comic.'}, 'TLG1801': {'works': ['001', '002'], 'name': 'Parodica Anonyma'}, 'TLG0528': {'works': ['001', '002'], 'name': 'Aëtius Doxogr.'}, 'TLG1634': {'works': ['001', '002'], 'name': 'Prodicus Soph.'}, 'TLG2217': {'works': ['002'], 'name': 'Nicias Hist.'}, 'TLG1666': {'works': ['001'], 'name': 'Sententiae Sexti'}, 'TLG1264': {'works': ['001', '002', '003', '004', '005', '008'], 'name': 'Chrysippus Phil.'}, 'TLG2237': {'works': ['001'], 'name': 'Theodorus Math.'}, 'TLG1146': {'works': ['001'], 'name': 'Antipater Phil.'}, 'TLG0317': {'works': ['001', '002'], 'name': 'Acta Joannis'}, 'TLG0206': {'works': ['001'], 'name': 'Theocles Lyr.'}, 'TLG1257': {'works': ['002'], 'name': 'Charinus Choliamb.'}, 'TLG5028': {'works': ['001'], 'name': 'Scholia In Isocratem'}, 'TLG1504': {'works': ['003'], 'name': 'Menelaus Epic.'}, 'TLG1787': {'works': ['001', '002'], 'name': '[Menippus] Comic.'}, 'TLG0216': {'works': ['001', '002', '003'], 'name': 'Alexander Lyr. et Trag.'}, 'TLG0511': {'works': ['001', '002', '003'], 'name': 'Theognetus Comic.'}, 'TLG1365': {'works': ['001', '002', '003', '004'], 'name': 'Melampus Scriptor De Divinatione'}, 'TLG0535': {'works': ['001', '002', '003'], 'name': 'Demades Orat. et Rhet.'}, 'TLG0585': {'works': ['001', '002', '003'], 'name': 'Publius Aelius Phlegon Paradox.'}, 'TLG4334': {'works': ['001', '002'], 'name': '[Isis Prophetissa] Alchem.'}, 'TLG0396': {'works': ['001'], 'name': 'Euphanes Comic.'}, 'TLG1298': {'works': ['001'], 'name': 'Demetrii Phalerei Epistula'}, 'TLG2112': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026'], 'name': 'Amphilochius Scr. Eccl.'}, 'TLG0564': {'works': ['001', '002', '003', '004', '005', '006', '007'], 'name': 'Rufus Med.'}, 'TLG4390': {'works': ['001'], 'name': 'Democles Hist.'}, 'TLG1703': {'works': ['001', '002'], 'name': 'Teucer Astrol.'}, 'TLG1228': {'works': ['001'], 'name': '[Boeo] Epic.'}, 'TLG0341': {'works': ['001', '002'], 'name': 'Lycophron Trag.'}, 'TLG1567': {'works': ['001'], 'name': 'Parrhasius Epigr.'}, 'TLG2173': {'works': ['002'], 'name': 'Antileon Hist.'}, 'TLG1165': {'works': ['001'], 'name': 'Apollodorus Mech.'}, 'TLG1591': {'works': ['003'], 'name': 'Philistus Hist.'}, 'TLG2693': {'works': ['001'], 'name': 'Ptolemaeus III Euergetes I Epigr.'}, 'TLG4101': {'works': ['001'], 'name': 'Etymologicum Parvum'}, 'TLG4300': {'works': ['001'], 'name': 'Lexicon Sabbaiticum'}, 'TLG0238': {'works': ['001'], 'name': 'Ananius Iamb.'}, 'TLG0037': {'works': ['001'], 'name': 'Anacharsidis Epistulae'}, 'TLG0657': {'works': ['001'], 'name': 'Crateuas Med.'}, 'TLG2029': {'works': ['001'], 'name': 'Anonymi Geographia In Sphaera Intelligenda'}, 'TLG0098': {'works': ['001'], 'name': 'Zenobius Sophista Paroemiogr.'}, 'TLG2060': {'works': ['001', '002'], 'name': 'Asterius Scr. Eccl.'}, 'TLG1414': {'works': ['001'], 'name': 'Heraclitus Phil.'}, 'TLG1546': {'works': ['001'], 'name': 'Oechaliae Halosis'}, 'TLG2036': {'works': ['001'], 'name': 'Dexippus Phil.'}, 'TLG0555': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Clemens Alexandrinus Theol.'}, 'TLG0417': {'works': ['001', '002', '003', '004'], 'name': 'Archippus Comic.'}, 'TLG0097': {'works': ['001', '002'], 'name': 'Diogenianus Gramm.'}, 'TLG1274': {'works': ['001', '002'], 'name': 'Cleobulus Epigr. et Lyr.'}, 'TLG4293': {'works': ['001'], 'name': 'Fragmentum Lexici Graeci'}, 'TLG1594': {'works': ['002'], 'name': 'Philo Judaeus Senior Epic.'}, 'TLG0203': {'works': ['001'], 'name': 'Limenius Lyr.'}, 'TLG1450': {'works': ['003', '004'], 'name': 'Ister Hist.'}, 'TLG1705': {'works': ['001', '002', '003'], 'name': 'Thales Phil.'}, 'TLG1479': {'works': ['001'], 'name': 'Marci Aurelii Epistula'}, 'TLG2398': {'works': ['001'], 'name': 'Basilides Phil.'}, 'TLG1344': {'works': ['001'], 'name': 'Epica Adespota (CA)'}, 'TLG1700': {'works': ['001'], 'name': 'Testamenta XII Patriarcharum'}, 'TLG2032': {'works': ['001', '002'], 'name': 'Pappus Math.'}, 'TLG0012': {'works': ['001', '002', '003'], 'name': 'Homerus Epic., Homer'}, 'TLG0127': {'works': ['001'], 'name': 'Aulus Licinius Archias Epigr.'}, 'TLG4325': {'works': ['001', '002'], 'name': '[Hermes] Alchem.'}, 'TLG2007': {'works': ['001'], 'name': 'Martyrium Potamiaenae Et Basilidis'}, 'TLG0504': {'works': ['001', '002'], 'name': 'Sosipater Comic.'}, 'TLG4015': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '017', '018'], 'name': 'Joannes Philoponus Phil.'}, 'TLG0322': {'works': ['001'], 'name': 'Dicaeogenes Trag.'}, 'TLG1345': {'works': ['001', '002'], 'name': 'Epica Incerta (CA)'}, 'TLG1377': {'works': ['003'], 'name': 'Favorinus Phil. et Rhet.'}, 'TLG2330': {'works': ['003'], 'name': 'Scamon Hist.'}, 'TLG1814': {'works': ['001'], 'name': 'Ptolemais Phil.'}, 'TLG0246': {'works': ['001'], 'name': 'Dionysius Chalcus Eleg.'}, 'TLG0416': {'works': ['001', '002'], 'name': 'Archedicus Comic.'}, 'TLG1817': {'works': ['001'], 'name': 'Fragmenta Anonyma (PsVTGr)'}, 'TLG2341': {'works': ['003'], 'name': 'Aristocritus Hist.'}, 'TLG1276': {'works': ['003'], 'name': 'Clidemus Hist.'}, 'TLG1907': {'works': ['003'], 'name': 'Cratippus Hist.'}, 'TLG0752': {'works': ['001', '002', '003', '005'], 'name': 'Eutecnius Soph.'}, 'TLG1258': {'works': ['003'], 'name': 'Charon Hist.'}, 'TLG0707': {'works': ['002'], 'name': 'Alexis Hist.'}, 'TLG3159': {'works': ['001'], 'name': 'Barlaam Math., Theol. et Epist.'}, 'TLG1608': {'works': ['001', '002', '003', '004', '005'], 'name': 'Phrynichus Attic.'}, 'TLG1588': {'works': ['001'], 'name': 'Philicus Lyr.'}, 'TLG0023': {'works': ['001'], 'name': 'Oppianus Epic.'}, 'TLG4394': {'works': ['001'], 'name': 'Joannes Antiochenus Hist.'}, 'TLG1783': {'works': ['001', '002'], 'name': 'Callicrates Comic.'}, 'TLG1375': {'works': ['001'], 'name': 'Evangelium Thomae'}, 'TLG1690': {'works': ['001'], 'name': 'Sotadea'}, 'TLG0261': {'works': ['001', '002', '003', '004', '005'], 'name': 'Simonides Lyr.'}, 'TLG0096': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017'], 'name': 'Aesopus Scr. Fab. et Aesopica'}, 'TLG2892': {'works': ['001', '002', '008', '049', '097', '110', '111', '112', '113', '114'], 'name': 'Maximus Confessor Theol.'}, 'TLG0523': {'works': ['001', '002', '003'], 'name': 'Menecrates Comic.'}, 'TLG0509': {'works': ['001'], 'name': 'Myia Phil.'}, 'TLG0348': {'works': ['001'], 'name': 'Biotus Trag.'}, 'TLG1392': {'works': ['001'], 'name': 'Hegesander Hist.'}, 'TLG1186': {'works': ['001'], 'name': 'Aristobulus Judaeus Phil.'}, 'TLG2127': {'works': ['001', '002'], 'name': 'Troilus Soph.'}, 'TLG0006': {'works': ['020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052'], 'name': 'Euripides Trag.'}, 'TLG1917': {'works': ['003'], 'name': 'Demetrius Hist.'}, 'TLG2282': {'works': ['002'], 'name': 'Melisseus Hist.'}, 'TLG5027': {'works': ['001'], 'name': 'Scholia In Iamblichum Philosophum'}, 'TLG0708': {'works': ['001', '002'], 'name': 'Ammonius Gramm.'}, 'TLG0026': {'works': ['001', '002', '003', '004'], 'name': 'Aeschines Orat.'}, 'TLG2017': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '046', '047', '048', '049', '051', '052', '053', '055', '056', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '077', '078', '079', '080', '081', '082', '083', '084'], 'name': 'Gregorius Nyssenus Theol.'}, 'TLG0728': {'works': ['001'], 'name': 'Theophilus Protospatharius, Damascius et Stephanus Atheniensis Med.'}, 'TLG1633': {'works': ['001'], 'name': 'Praxiteles Epigr.'}, 'TLG1189': {'works': ['003'], 'name': 'Aristocrates Hist.'}, 'TLG3069': {'works': ['001'], 'name': 'Leo Diaconus Hist.'}, 'TLG1194': {'works': ['001', '002', '003', '004'], 'name': 'Aristonicus Gramm.'}, 'TLG0201': {'works': ['001'], 'name': 'Isyllus Lyr.'}, 'TLG1250': {'works': ['001'], 'name': 'Cercidas Iamb.'}, 'TLG2625': {'works': ['001'], 'name': 'Herodicus Gramm.'}, 'TLG0475': {'works': ['001', '002'], 'name': 'Metagenes Comic.'}, 'TLG2023': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Iamblichus Phil.'}, 'TLG1525': {'works': ['003'], 'name': 'Neanthes Hist.'}, 'TLG1462': {'works': ['001'], 'name': 'Liber Eldad Et Modad'}, 'TLG1815': {'works': ['001'], 'name': 'Sappho et Alcaeus Lyr.'}, 'TLG2426': {'works': ['002'], 'name': 'Hermaeus Hist.'}, 'TLG1461': {'works': ['001', '002'], 'name': 'Leucippus Phil.'}, 'TLG2051': {'works': ['001', '002', '003'], 'name': 'Himerius Soph.'}, 'TLG0696': {'works': ['002'], 'name': 'Alcmaeonis'}, 'TLG0406': {'works': ['001', '002'], 'name': 'Anaxilas Comic.'}, 'TLG0318': {'works': ['001'], 'name': 'Agathon Trag.'}, 'TLG2305': {'works': ['001'], 'name': 'Clidemus Phil.'}, 'TLG0740': {'works': ['001'], 'name': 'Jusjurandum Medicum'}, 'TLG4014': {'works': ['001'], 'name': 'Priscianus Phil.'}, 'TLG9003': {'works': ['001'], 'name': 'Anonymus Lexicographus Lexicogr.'}, 'TLG0069': {'works': ['001'], 'name': 'Dionysius Geogr.'}, 'TLG1802': {'works': ['002'], 'name': 'Homerica'}, 'TLG4282': {'works': ['001'], 'name': 'Anonymus Manichaeus Biogr.'}, 'TLG1488': {'works': ['001'], 'name': 'Maximus Theol.'}, 'TLG0349': {'works': ['001'], 'name': 'Demonax Trag.'}, 'TLG4301': {'works': ['001'], 'name': 'Lexicon Rhetoricum Cantabrigiense'}, 'TLG0541': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '044', '045', '046', '047', '048', '049'], 'name': 'Menander Comic.'}, 'TLG4239': {'works': ['001'], 'name': 'Severus Soph.'}, 'TLG1271': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012'], 'name': 'Clemens Romanus Theol. et Clementina'}, 'TLG0013': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034'], 'name': 'Hymni Homerici, Homeric Hymns'}, 'TLG4093': {'works': ['001', '002', '005', '007', '008', '009', '010', '013'], 'name': 'Georgius Choeroboscus Gramm.'}, 'TLG1663': {'works': ['003'], 'name': 'Semus Gramm.'}, 'TLG1161': {'works': ['001'], 'name': 'Apocryphon Ezechiel'}, 'TLG2002': {'works': ['001'], 'name': 'Anonymus Seguerianus Rhet.'}, 'TLG1245': {'works': ['001'], 'name': 'Carystius Hist.'}, 'TLG0263': {'works': ['001'], 'name': 'Solon Nomographus et Poeta'}, 'TLG0453': {'works': ['001', '002', '003'], 'name': 'Epilycus Comic.'}, 'TLG0004': {'works': ['001', '002'], 'name': 'Diogenes Laertius Biogr.'}, 'TLG2204': {'works': ['002'], 'name': 'Autocrates Hist.'}, 'TLG2349': {'works': ['002'], 'name': '[Pyrander] Hist.'}, 'TLG4174': {'works': ['001', '002'], 'name': 'Paraphrases In Dionysium Periegetam'}, 'TLG0003': {'works': ['001', '002'], 'name': 'Thucydides Hist.'}, 'TLG2355': {'works': ['001'], 'name': 'Xeniades Soph.'}, 'TLG2030': {'works': ['001'], 'name': 'Geographica Adespota (GGM)'}, 'TLG2594': {'works': ['001'], 'name': 'Phillis Hist.'}, 'TLG2039': {'works': ['001', '002', '003', '004', '005'], 'name': 'Diophantus Math.'}, 'TLG4036': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '020', '021', '023'], 'name': 'Proclus Phil.'}, 'TLG0398': {'works': ['001', '002'], 'name': 'Simylus Comic.'}, 'TLG1361': {'works': ['001'], 'name': 'Eumedes Comic.'}, 'TLG1166': {'works': ['001'], 'name': 'Apollodorus Phil.'}, 'TLG0368': {'works': ['001'], 'name': 'Cydias Lyr.'}, 'TLG0372': {'works': ['001'], 'name': 'Praxilla Lyr.'}, 'TLG0035': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Moschus Bucol.'}, 'TLG2596': {'works': ['001'], 'name': 'Phoebammon Soph.'}, 'TLG1627': {'works': ['002'], 'name': 'Polycrates Hist.'}, 'TLG0215': {'works': ['001', '002'], 'name': 'Antagoras Epic.'}, 'TLG2621': {'works': ['001'], 'name': 'Diophilus vel Diophila Poeta'}, 'TLG2571': {'works': ['001'], 'name': 'Hierocles Phil.'}, 'TLG1613': {'works': ['001'], 'name': 'Pittaci Epistula'}, 'TLG2182': {'works': ['003'], 'name': 'Staphylus Hist.'}, 'TLG1890': {'works': ['001'], 'name': 'Moderatus Phil.'}, 'TLG1429': {'works': ['001', '002', '003'], 'name': 'Hierocles Phil.'}, 'TLG0663': {'works': ['001'], 'name': 'Praecepta Salubria'}, 'TLG2577': {'works': ['001'], 'name': 'Anatolius Math. et Phil.'}, 'TLG0330': {'works': ['001', '002'], 'name': 'Dionysius I Trag.'}, 'TLG1254': {'works': ['003'], 'name': 'Charax Hist.'}, 'TLG2543': {'works': ['003'], 'name': 'Lucius Cincius Alimentus Hist.'}, 'TLG1908': {'works': ['003'], 'name': 'Daimachus Hist.'}, 'TLG0580': {'works': ['001'], 'name': 'Paradoxographus Florentinus'}, 'TLG2649': {'works': ['001'], 'name': 'Amyntas Epigr.'}, 'TLG1569': {'works': ['001'], 'name': 'Pausanias Attic.'}, 'TLG0227': {'works': ['001'], 'name': 'Anonymi Curetum Hymnus'}, 'TLG1712': {'works': ['001'], 'name': 'Thebaïs'}, 'TLG2624': {'works': ['001'], 'name': 'Hermias Poeta'}, 'TLG2648': {'works': ['001', '002', '003', '004'], 'name': 'Adespota Papyracea (SH)'}, 'TLG4088': {'works': ['003', '005'], 'name': 'Anthemius Math. et Mech.'}, 'TLG0459': {'works': ['001', '002'], 'name': 'Eunicus Comic.'}, 'TLG1784': {'works': ['001', '002'], 'name': 'Heraclitus Comic.'}, 'TLG1278': {'works': ['001'], 'name': 'Clitarchus Gnom.'}, 'TLG4201': {'works': ['001'], 'name': 'Joannes Chortasmenus Phil.'}, 'TLG4242': {'works': ['001'], 'name': 'Cyrus Rhet.'}, 'TLG0325': {'works': ['001'], 'name': 'Astydamas Trag.'}, 'TLG5015': {'works': ['001', '002', '003'], 'name': 'Scholia In Aristotelem'}, 'TLG4138': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '077', '078', '079', '080', '081', '082', '083', '084', '085', '086', '087', '088', '089', '090', '091', '092', '093', '094', '095', '096', '097', '098', '099', '100', '101', '102', '103', '104', '105', '106', '107', '108', '109', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '120', '121', '122', '123', '124', '125', '126', '127', '128', '129', '130', '131', '132', '133', '134', '135', '136', '137', '138', '139', '140', '141', '142', '143', '144', '145', '146', '147', '148', '149', '150', '151', '152', '153', '154', '155', '156', '157'], 'name': 'Ephraem Syrus Theol.'}, 'TLG1512': {'works': ['002'], 'name': 'Minyas'}, 'TLG2555': {'works': ['002'], 'name': 'Agesilaus Hist.'}, 'TLG0299': {'works': ['001', '002'], 'name': 'Terpander Lyr.'}, 'TLG0367': {'works': ['001'], 'name': 'Tynnichus Lyr.'}, 'TLG1871': {'works': ['003'], 'name': 'Bion Hist.'}, 'TLG0277': {'works': ['001'], 'name': 'Monodia'}, 'TLG2357': {'works': ['002'], 'name': 'Gorgon Hist.'}, 'TLG1230': {'works': ['001', '002'], 'name': 'Brotinus Phil.'}, 'TLG1170': {'works': ['003'], 'name': 'Apollonius Hist.'}, 'TLG1559': {'works': ['001'], 'name': 'Bucolicum'}, 'TLG0516': {'works': ['001', '002', '003'], 'name': 'Timostratus Comic.'}, 'TLG0463': {'works': ['001', '002', '003'], 'name': 'Hegemon Parodius'}, 'TLG2798': {'works': ['001', '002', '004', '005', '006'], 'name': 'Pseudo-Dionysius Areopagita Scr. Eccl. et Theol.'}, 'TLG1390': {'works': ['001', '002', '003', '004'], 'name': 'Hecataeus Hist.'}, 'TLG0507': {'works': ['001', '002', '003'], 'name': 'Straton Comic.'}, 'TLG2236': {'works': ['001'], 'name': 'Eutropius Hist.'}, 'TLG3139': {'works': ['001'], 'name': 'Laonicus Chalcocondyles Hist.'}, 'TLG0457': {'works': ['001', '002'], 'name': 'Eubulides Comic.'}, 'TLG2545': {'works': ['003'], 'name': 'Gaius Acilius Hist. et Phil.'}, 'TLG1780': {'works': ['001', '002'], 'name': 'Alcimenes Comic.'}, 'TLG9010': {'works': ['001', '002'], 'name': 'Suda, Suidas'}, 'TLG1203': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Paeanes (CA)'}, 'TLG4096': {'works': ['001'], 'name': 'Dositheus Magister Gramm.'}, 'TLG1400': {'works': ['003'], 'name': 'Heliodorus Perieg.'}, 'TLG5038': {'works': ['001'], 'name': 'Scholia In Theocritum'}, 'TLG1485': {'works': ['001'], 'name': 'Martyrium Ptolemaei Et Lucii'}, 'TLG4032': {'works': ['001'], 'name': 'Anonymi In Aristotelis Librum Primum Analyticorum Posteriorum Commentarium'}, 'TLG2694': {'works': ['001'], 'name': 'Sostratus Poeta'}, 'TLG2278': {'works': ['002'], 'name': 'Phanodicus Hist.'}, 'TLG0186': {'works': ['001', '002', '003', '004', '005'], 'name': 'Marcus Cornelius Fronto Rhet.'}, 'TLG1572': {'works': ['001'], 'name': 'Perictione Phil.'}, 'TLG0064': {'works': ['001'], 'name': 'Periplus Hannonis'}, 'TLG3027': {'works': ['001', '002', '003', '004'], 'name': 'Joannes Doxapatres Rhet.'}, 'TLG0514': {'works': ['001', '002', '003'], 'name': 'Thugenides Comic.'}, 'TLG0217': {'works': ['001'], 'name': 'Anacreon Junior Eleg.'}, 'TLG1262': {'works': ['001', '002'], 'name': 'Choerilus Epic.'}, 'TLG3186': {'works': ['001'], 'name': 'Anonymus Dialogus Cum Judaeis'}, 'TLG3156': {'works': ['001'], 'name': 'Anonymi Exegesis In Hesiodi Theogoniam'}, 'TLG1583': {'works': ['003'], 'name': 'Phanodemus Hist.'}, 'TLG0065': {'works': ['001', '002', '003'], 'name': 'Scylax Perieg.'}, 'TLG1915': {'works': ['003'], 'name': 'Eudoxus Hist.'}, 'TLG2548': {'works': ['002'], 'name': 'Promathion Hist.'}, 'TLG0391': {'works': ['001'], 'name': 'Acta Scillitanorum Martyrum'}, 'TLG1297': {'works': ['001'], 'name': 'Damippus Phil.'}, 'TLG1413': {'works': ['001'], 'name': 'Heraclitus Paradox.'}, 'TLG0456': {'works': ['001', '002'], 'name': 'Euangelus Comic.'}, 'TLG1219': {'works': ['003'], 'name': 'Bato Hist. et Rhet.'}, 'TLG3040': {'works': ['001'], 'name': 'Josephus Genesius Hist.'}, 'TLG1128': {'works': ['001'], 'name': 'Anonymi Commentarius In Platonis Theaetetum'}, 'TLG2646': {'works': ['001'], 'name': 'Fragmenta Adespota (SH)'}, 'TLG2860': {'works': ['001', '002', '003'], 'name': 'Alexander Scr. Eccl.'}, 'TLG4165': {'works': ['001'], 'name': 'Anonymi In Aristotelis Librum De Interpretatione Phil.'}, 'TLG2934': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '018', '019', '021', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '050', '051', '052', '053', '054', '055', '056', '057', '059', '060', '061', '062', '064', '066', '067', '068'], 'name': 'Joannes Damascenus Scr. Eccl. et Theol., John of Damascus'}, 'TLG1256': {'works': ['001', '002'], 'name': 'Chares Gnom.'}, 'TLG1167': {'works': ['001'], 'name': 'Apollonius Biogr.'}, 'TLG0392': {'works': ['001', '002', '003', '004'], 'name': 'Acusilaus Hist.'}, 'TLG0208': {'works': ['001', '002'], 'name': 'Dosiadas Lyr.'}, 'TLG1094': {'works': ['001'], 'name': 'Theodorides Trag.'}, 'TLG4347': {'works': ['001'], 'name': 'Andron Hist.'}, 'TLG2168': {'works': ['001'], 'name': 'Apollophanes Phil.'}, 'TLG2234': {'works': ['001'], 'name': 'Oenopides Phil.'}, 'TLG0610': {'works': ['001'], 'name': 'Alcidamas Rhet.'}, 'TLG0652': {'works': ['001'], 'name': 'Philostratus Junior Soph.'}, 'TLG0063': {'works': ['001', '002', '003', '004'], 'name': 'Dionysius Thrax Gramm.'}, 'TLG2622': {'works': ['001'], 'name': 'Dorieus Poeta'}, 'TLG2333': {'works': ['002', '003'], 'name': 'Possis Hist.'}, 'TLG2111': {'works': ['001', '002', '003', '004', '005'], 'name': 'Palladius Scr. Eccl.'}, 'TLG0075': {'works': ['001'], 'name': 'Periplus Ponti Euxini'}, 'TLG0047': {'works': ['001'], 'name': 'Pausaniae I Et Xerxis Epistulae'}, 'TLG4099': {'works': ['001'], 'name': 'Etymologicum Magnum'}, 'TLG2626': {'works': ['001'], 'name': 'Hipparchus Parodius'}, 'TLG0422': {'works': ['001', '002'], 'name': 'Athenio Comic.'}, 'TLG3181': {'works': ['001'], 'name': 'Nicephorus II Phocas Imperator Tact.'}, 'TLG0578': {'works': ['003'], 'name': 'Nymphodorus Hist.'}, 'TLG5021': {'works': ['001'], 'name': 'Scholia In Diophantum'}, 'TLG2265': {'works': ['002'], 'name': 'Diodorus Perieg.'}, 'TLG2391': {'works': ['003'], 'name': 'Hippostratus Hist.'}, 'TLG0737': {'works': ['001'], 'name': 'Julianus Scriptor Legis De Medicis'}, 'TLG1711': {'works': ['001'], 'name': 'Thearidas Phil.'}, 'TLG0331': {'works': ['001'], 'name': 'Polyidus Trag.'}, 'TLG4307': {'works': ['001', '002', '003'], 'name': 'Lexica Synonymica'}, 'TLG0687': {'works': ['002'], 'name': 'Agaclytus Hist.'}, 'TLG0379': {'works': ['001', '002'], 'name': 'Philoxenus Lyr.'}, 'TLG0734': {'works': ['001'], 'name': 'Lucas Apostolus Med.'}, 'TLG3141': {'works': ['002', '003', '005', '006', '007', '008', '009', '010', '011', '012', '013'], 'name': 'Georgius Acropolites Hist.'}, 'TLG0278': {'works': ['001'], 'name': 'Praelusio Mimi'}, 'TLG1368': {'works': ['001'], 'name': 'Evangelium Ebionitum'}, 'TLG3158': {'works': ['001'], 'name': 'Theodorus Epist.'}, 'TLG1505': {'works': ['001'], 'name': 'Menesthenes Hist.'}, 'TLG1506': {'works': ['002'], 'name': 'Menodotus Hist.'}, 'TLG2062': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '077', '078', '079', '080', '081', '082', '083', '084', '085', '086', '087', '088', '089', '090', '091', '092', '093', '094', '095', '096', '097', '098', '099', '100', '101', '103', '104', '105', '106', '107', '108', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '120', '121', '122', '123', '124', '125', '126', '127', '128', '129', '130', '131', '132', '133', '134', '135', '136', '137', '138', '139', '140', '141', '142', '143', '144', '145', '148', '149', '150', '151', '152', '153', '154', '155', '156', '157', '158', '159', '160', '161', '162', '163', '164', '165', '166', '167', '168', '169', '170', '171', '172', '173', '174', '175', '176', '177', '178', '179', '180', '181', '182', '184', '185', '186', '187', '196', '197', '198', '199', '200', '201', '202', '203', '204', '205', '206', '207', '208', '209', '210', '211', '212', '213', '214', '216', '217', '219', '220', '221', '224', '225', '226', '227', '228', '229', '230', '231', '232', '233', '234', '235', '237', '238', '239', '240', '241', '242', '243', '244', '245', '247', '248', '249', '250', '251', '252', '253', '254', '255', '256', '257', '258', '259', '260', '261', '262', '263', '264', '265', '266', '267', '268', '269', '270', '271', '272', '273', '274', '275', '276', '277', '278', '279', '280', '281', '282', '283', '284', '285', '286', '287', '288', '289', '290', '291', '292', '293', '294', '295', '296', '297', '298', '299', '300', '301', '302', '303', '304', '305', '306', '307', '308', '309', '310', '311', '312', '313', '314', '315', '316', '317', '318', '319', '320', '321', '322', '323', '324', '325', '326', '327', '328', '329', '330', '331', '332', '333', '334', '335', '336', '337', '338', '344', '345', '346', '347', '348', '349', '350', '351', '352', '353', '354', '355', '356', '357', '358', '359', '360', '361', '362', '363', '364', '365', '366', '367', '368', '369', '370', '371', '373', '374', '376', '378', '379', '380', '381', '382', '384', '402', '413', '414', '415', '417', '418', '419', '420', '421', '423', '424', '425', '426', '427', '428', '429', '430', '432', '433', '434', '435', '436', '437', '438', '442', '443', '444', '445', '446', '452', '463', '473', '484', '486', '488', '489', '491', '492', '493', '494', '495', '496', '497', '498', '499', '500', '502', '505'], 'name': 'Joannes Chrysostomus Scr. Eccl., John Chrysostom'}, 'TLG0211': {'works': ['001', '002'], 'name': 'Simias Gramm.'}, 'TLG2444': {'works': ['001'], 'name': 'Lycophron Soph.'}, 'TLG0531': {'works': ['001'], 'name': 'Hermias Apol.'}, 'TLG0714': {'works': ['001', '002'], 'name': 'Anaxarchus Phil.'}, 'TLG0666': {'works': ['001'], 'name': 'Adrianus Rhet. et Soph.'}, 'TLG2995': {'works': ['001', '002', '003'], 'name': 'Orus Gramm.'}, 'TLG4001': {'works': ['001', '002'], 'name': 'Aeneas Phil. et Rhet.'}, 'TLG0408': {'works': ['001', '002'], 'name': 'Comica Adespota (CAF)'}, 'TLG2189': {'works': ['001', '002'], 'name': 'Callinicus Soph.'}, 'TLG4090': {'works': ['001', '002', '003', '004', '005', '006', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '026', '027', '029', '030', '031', '032', '095', '096', '097', '098', '099', '100', '101', '102', '103', '104', '105', '106', '107', '108', '109', '110', '112', '114', '115', '116', '117', '118', '119', '120', '121', '122', '123', '124', '125', '126', '127', '129', '130', '135', '140', '144', '148', '149', '162', '163', '165', '166', '167', '170', '175', '176'], 'name': 'Cyrillus Theol.'}, 'TLG1294': {'works': ['001'], 'name': 'Critolaus Phil.'}, 'TLG2587': {'works': ['001'], 'name': 'Ariston Phil.'}, 'TLG0644': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011'], 'name': 'Aristophanes Gramm.'}, 'TLG0099': {'works': ['001', '002', '003'], 'name': 'Strabo Geogr.'}, 'TLG1646': {'works': ['003'], 'name': 'Ptolemaeus Hist.'}, 'TLG0557': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Epictetus Phil.'}, 'TLG0369': {'works': ['001'], 'name': 'Telesilla Lyr.'}, 'TLG1752': {'works': ['003'], 'name': 'Xenagoras Geogr. et Hist.'}, 'TLG2968': {'works': ['001'], 'name': 'Monimus Phil.'}, 'TLG1489': {'works': ['003'], 'name': 'Megasthenes Hist.'}, 'TLG1334': {'works': ['001'], 'name': 'Dius Phil.'}, 'TLG0751': {'works': ['001', '002', '003', '004', '005'], 'name': 'Pseudo-Hippocrates Med.'}, 'TLG4344': {'works': ['001'], 'name': 'Menecrates Hist.'}, 'TLG2644': {'works': ['001'], 'name': 'Sminthes Astron.'}, 'TLG1530': {'works': ['005'], 'name': 'Nicanor Gramm.'}, 'TLG0833': {'works': ['001'], 'name': 'Anaxion Trag.'}, 'TLG3146': {'works': ['001'], 'name': 'Ducas Hist.'}, 'TLG1629': {'works': ['001', '002'], 'name': 'Polystratus Phil.'}, 'TLG1244': {'works': ['002', '003'], 'name': 'Carneiscus Phil.'}, 'TLG0650': {'works': ['001'], 'name': 'Herodas Mimogr.'}, 'TLG2607': {'works': ['001'], 'name': 'Alexinus Phil.'}, 'TLG3079': {'works': ['001'], 'name': 'Michael Attaliates Hist.'}, 'TLG2186': {'works': ['003'], 'name': 'Leo Hist.'}, 'TLG1607': {'works': ['002'], 'name': 'Phoronis'}, 'TLG2393': {'works': ['002'], 'name': 'Andreas Hist.'}, 'TLG1665': {'works': ['001'], 'name': 'Seniores Apud Irenaeum Scr. Eccl.'}, 'TLG2647': {'works': ['001'], 'name': 'Zenothemis Geogr.'}, 'TLG0402': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Alexis Comic.'}, 'TLG1577': {'works': ['001', '002'], 'name': 'Phaedimus Epigr.'}, 'TLG1434': {'works': ['001', '002', '003', '004'], 'name': 'Hippias Soph.'}, 'TLG0632': {'works': ['001', '002', '004', '005', '006', '007'], 'name': 'Pythagoras Phil.'}, 'TLG1087': {'works': ['001'], 'name': 'Cleophon Trag.'}, 'TLG1896': {'works': ['002'], 'name': '[Dositheus] Hist.'}, 'TLG2409': {'works': ['003', '004'], 'name': 'Dioscurides Hist.'}, 'TLG0447': {'works': ['001', '002', '003'], 'name': 'Diphilus Comic.'}, 'TLG0458': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Eubulus Comic.'}, 'TLG2027': {'works': ['001', '002'], 'name': 'Valerius Apsines Rhet.'}, 'TLG1679': {'works': ['002'], 'name': 'Socrates Hist.'}, 'TLG2960': {'works': ['001'], 'name': 'Oracula Tiburtina'}, 'TLG0067': {'works': ['001', '003', '004', '005'], 'name': 'Agatharchides Geogr.'}, 'TLG2255': {'works': ['003'], 'name': 'Gorgias Hist.'}, 'TLG1150': {'works': ['001', '002'], 'name': 'Aphareus Rhet.'}, 'TLG0007': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '048', '049', '050', '051', '052', '053', '054', '055', '056', '057', '058', '059', '060', '061', '062', '063', '064', '065', '066', '067', '068', '069', '070', '071', '072', '073', '074', '075', '076', '077', '078', '079', '080', '081', '082', '083', '084', '085', '086', '087', '088', '089', '090', '091', '092', '093', '094', '095', '096', '097', '098', '099', '100', '101', '102', '103', '104', '105', '106', '107', '108', '109', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '120', '121', '122', '123', '125', '126', '127', '128', '129', '130', '131', '132', '133', '134', '135', '136', '137', '138', '139', '140', '141', '143', '144', '145', '146', '147', '148', '149'], 'name': 'Plutarchus Biogr. et Phil.'}, 'TLG0618': {'works': ['001'], 'name': 'Antigoni Epistula'}, 'TLG1282': {'works': ['002'], 'name': 'Clytus Hist.'}, 'TLG2696': {'works': ['001'], 'name': 'Theodorus Poeta'}, 'TLG5000': {'works': ['001', '002', '003', '004'], 'name': 'Concilia Oecumenica (ACO)'}, 'TLG0625': {'works': ['001'], 'name': 'Polemaeus Trag.'}, 'TLG2651': {'works': ['001'], 'name': 'Artemidorus Eleg.'}, 'TLG0433': {'works': ['001', '002', '003', '004', '005'], 'name': 'Crates Comic.'}, 'TLG1231': {'works': ['001'], 'name': 'Bryson Phil.'}, 'TLG3115': {'works': ['001'], 'name': 'Symeon Metaphrastes Biogr. et Hist.'}, 'TLG1987': {'works': ['002'], 'name': 'Theodorus Poeta'}, 'TLG1544': {'works': ['003'], 'name': 'Nymphis Hist.'}, 'TLG0332': {'works': ['001'], 'name': 'Cleaenetus Trag.'}, 'TLG0022': {'works': ['001', '002', '003', '005', '006'], 'name': 'Nicander Epic.'}, 'TLG3176': {'works': ['001', '002'], 'name': 'Pseudo-Sphrantzes Hist.'}, 'TLG2399': {'works': ['001'], 'name': 'Eudromus Phil.'}, 'TLG2304': {'works': ['001'], 'name': 'Idaeus Phil.'}, 'TLG0604': {'works': ['001'], 'name': 'Ptolemaeus IV Philopator Trag.'}, 'TLG0061': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010'], 'name': 'Pseudo-Lucianus Soph.'}, 'TLG0592': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Hermogenes Rhet.'}, 'TLG3045': {'works': ['001'], 'name': 'Georgius Syncellus Chronogr.'}, 'TLG0301': {'works': ['001'], 'name': 'Thespis Trag.'}, 'TLG4167': {'works': ['001'], 'name': 'Leontius Mech.'}, 'TLG4066': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Damascius Phil.'}, 'TLG0257': {'works': ['001'], 'name': 'Philiscus Rhet.'}, 'TLG0339': {'works': ['001'], 'name': 'Moschion Trag.'}, 'TLG4018': {'works': ['001', '002'], 'name': 'Asclepius Phil.'}, 'TLG0474': {'works': ['001', '002', '003'], 'name': 'Magnes Comic.'}, 'TLG0497': {'works': ['001', '002', '003', '004', '005', '006', '007'], 'name': 'Plato Comic.'}, 'TLG2962': {'works': ['004', '006'], 'name': 'Petrus Scr. Eccl. et Theol.'}, 'TLG1555': {'works': ['001', '002', '003'], 'name': 'Pancrates Epic.'}, 'TLG0040': {'works': ['001'], 'name': 'Calani Epistula'}, 'TLG0668': {'works': ['001'], 'name': 'Aegimius'}, 'TLG2246': {'works': ['001'], 'name': 'Lycon Phil.'}, 'TLG1785': {'works': ['001'], 'name': 'Paramonus Comic.'}, 'TLG0336': {'works': ['001', '002', '003', '004'], 'name': 'Crates Poet. Phil.'}, 'TLG0326': {'works': ['001'], 'name': 'Sophocles Junior Trag.'}, 'TLG2423': {'works': ['002'], 'name': 'Asclepiades Gramm. et Hist.'}, 'TLG4392': {'works': ['001'], 'name': 'Joannes Epiphaniensis Hist.'}, 'TLG1327': {'works': ['001'], 'name': 'Dionis Epistulae'}, 'TLG1812': {'works': ['002'], 'name': 'Demaratus Hist.'}, 'TLG0116': {'works': ['002'], 'name': 'Abydenus Hist.'}, 'TLG1469': {'works': ['002'], 'name': 'Lyceas Hist.'}, 'TLG2196': {'works': ['002'], 'name': '[Dercyllus] Hist.'}, 'TLG0568': {'works': ['001', '002', '003', '004'], 'name': 'Antigonus Paradox.'}, 'TLG4329': {'works': ['001', '002', '003'], 'name': 'Philosophus Anonymus Alchem.'}, 'TLG0174': {'works': ['001', '002', '003'], 'name': 'Diotimus Epic.'}, 'TLG3100': {'works': ['001', '002'], 'name': 'Nicolaus I Mysticus Theol. et Epist.'}, 'TLG1184': {'works': ['001', '002', '003'], 'name': 'Aristides Apol.'}, 'TLG1157': {'works': ['001', '002'], 'name': 'Apocalypsis Esdrae'}, 'TLG0484': {'works': ['001', '002', '003', '004', '005'], 'name': 'Nicostratus Comic.'}, 'TLG2122': {'works': ['004'], 'name': 'Gaius Asinius Quadratus Hist.'}, 'TLG0272': {'works': ['001'], 'name': 'De Arboribus Avibusque Fabulae'}, 'TLG0614': {'works': ['001'], 'name': 'Valerius Babrius Scr. Fab.'}, 'TLG3015': {'works': ['001'], 'name': 'Joannes Cameniates Hist.'}, 'TLG1638': {'works': ['002'], 'name': 'Proxenus Hist.'}, 'TLG0521': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': 'Epicharmus Comic. et Pseudepicharmea'}, 'TLG1311': {'works': ['001'], 'name': 'Didache XII Apostolorum'}, 'TLG1273': {'works': ['001', '002'], 'name': 'Cleon Eleg.'}, 'TLG0635': {'works': ['001', '002'], 'name': 'Zeno Phil.'}, 'TLG2616': {'works': ['001'], 'name': 'Demareta Poeta'}, 'TLG4100': {'works': ['001'], 'name': 'Aphthonius Rhet.'}, 'TLG1408': {'works': ['001', '002'], 'name': 'Heraclides Gramm.'}, 'TLG1212': {'works': ['001'], 'name': 'Atridarum Reditus'}, 'TLG0090': {'works': ['001'], 'name': 'Agathemerus Geogr.'}, 'TLG0569': {'works': ['001'], 'name': 'Apollonius Paradox.'}, 'TLG1443': {'works': ['001', '002', '003'], 'name': 'Ignatius Scr. Eccl.'}, 'TLG2573': {'works': ['003'], 'name': 'Pausanias Hist.'}, 'TLG0327': {'works': ['001'], 'name': 'Carcinus Junior Trag.'}, 'TLG0384': {'works': ['001', '002', '003'], 'name': 'Acta Justini Et Septem Sodalium'}, 'TLG2235': {'works': ['001'], 'name': 'Hippocrates Math.'}, 'TLG2914': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015'], 'name': 'Leontius Scr. Eccl.'}, 'TLG0439': {'works': ['001', '002', '003'], 'name': 'Demetrius Comic.'}, 'TLG0606': {'works': ['001'], 'name': 'Rufus Soph.'}, 'TLG1367': {'works': ['001'], 'name': 'Euripidis Epistulae'}, 'TLG0024': {'works': ['001'], 'name': 'Oppianus Epic.'}, 'TLG0087': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023', '024', '025', '026', '027', '028', '029', '030', '031', '032', '033', '034', '035', '036', '037', '038', '039', '040', '041', '042', '043', '044', '045', '046', '047', '049', '050', '054'], 'name': 'Aelius Herodianus et Pseudo-Herodianus Gramm. et Rhet.'}, 'TLG0280': {'works': ['001'], 'name': 'Andromachus Poet. Med.'}, 'TLG1816': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021'], 'name': 'Epica Adespota (GDRK)'}, 'TLG0029': {'works': ['004', '005', '006', '007', '008'], 'name': 'Dinarchus Orat.'}, 'TLG0971': {'works': ['001'], 'name': 'Oeniades Lyr.'}, 'TLG1288': {'works': ['003'], 'name': 'Craterus Hist.'}, 'TLG0044': {'works': ['001'], 'name': 'Antiochi Regis Epistulae'}, 'TLG1486': {'works': ['001', '002', '003'], 'name': 'Matron Parodius'}, 'TLG1346': {'works': ['001'], 'name': 'Ephraem Scr. Eccl.'}, 'TLG0454': {'works': ['001', '002'], 'name': 'Epinicus Comic.'}, 'TLG5014': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016', '017', '018', '019', '020', '021', '022', '023'], 'name': 'Scholia In Aristophanem'}, 'TLG0743': {'works': ['001'], 'name': 'Nemesius Theol.'}, 'TLG0653': {'works': ['001', '002', '003', '004', '005'], 'name': 'Aratus Astron. et Epic.'}, 'TLG1136': {'works': ['001'], 'name': 'Anonymus Presbyter Scr. Eccl.'}, 'TLG0662': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009'], 'name': 'Comica Adespota (CGFPR)'}, 'TLG0275': {'works': ['001'], 'name': 'Peirazomene'}, 'TLG4126': {'works': ['002', '004'], 'name': 'Theodorus Scr. Eccl.'}, 'TLG0648': {'works': ['001'], 'name': 'Onasander Tact.'}, 'TLG0464': {'works': ['001', '002'], 'name': 'Hegesippus Comic.'}, 'TLG0630': {'works': ['001', '002'], 'name': 'Pherecydes Myth. et Phil.'}, 'TLG1004': {'works': ['001', '002', '003', '004', '005'], 'name': 'Thessalus Astrol. et Med.'}, 'TLG0066': {'works': ['001'], 'name': 'Dicaearchus Phil.'}, 'TLG1340': {'works': ['001'], 'name': 'Eccelus Phil.'}, 'TLG2331': {'works': ['003'], 'name': 'Myrsilus Hist.'}, 'TLG1247': {'works': ['001'], 'name': 'Cebes Phil.'}, 'TLG2945': {'works': ['001'], 'name': 'Gnomologium Vaticanum'}, 'TLG2956': {'works': ['002', '003', '004'], 'name': 'Sextus Julius Africanus Hist.'}, 'TLG1374': {'works': ['001'], 'name': 'Evangelium Secundum Hebraeos'}, 'TLG2605': {'works': ['001'], 'name': 'Agamestor Eleg.'}, 'TLG0243': {'works': ['001'], 'name': 'Callinus Eleg.'}, 'TLG1416': {'works': ['001', '002', '003', '004', '005', '006', '007', '008'], 'name': '(H)eren(n)ius Philo Gramm. et Hist.'}, 'TLG0434': {'works': ['001', '002', '003', '004', '005', '006'], 'name': 'Cratinus Comic.'}, 'TLG0750': {'works': ['001', '002'], 'name': 'Heliodorus Trag.'}, 'TLG1719': {'works': ['001', '002', '003'], 'name': 'Theodosius Astron. et Math.'}, 'TLG2194': {'works': ['002'], 'name': '[Aristides] Hist.'}, 'TLG0505': {'works': ['001', '002', '003'], 'name': 'Sotades Comic.'}, 'TLG0394': {'works': ['001'], 'name': 'Apollonius Comic.'}, 'TLG2169': {'works': ['001'], 'name': 'Herillus Phil.'}, 'TLG0480': {'works': ['001', '002', '003'], 'name': 'Nicochares Comic.'}, 'TLG0141': {'works': ['002', '003'], 'name': 'Athenaeus Epigr.'}, 'TLG1387': {'works': ['003'], 'name': '(H)agias-Dercylus Hist.'}, 'TLG0629': {'works': ['001'], 'name': 'Periander Phil.'}, 'TLG1515': {'works': ['001'], 'name': 'Moeris Attic.'}, 'TLG1483': {'works': ['001'], 'name': 'Martyrium Et Ascensio Isaiae'}, 'TLG4304': {'works': ['001', '002'], 'name': 'Glossae In Herodotum'}, 'TLG0342': {'works': ['001'], 'name': 'Nicomachus Trag.'}, 'TLG0643': {'works': ['001', '002'], 'name': 'Anonymus Londinensis Med.'}, 'TLG0471': {'works': ['001', '002'], 'name': 'Lynceus Comic.'}, 'TLG1967': {'works': ['002'], 'name': 'Leschides Epic.'}, 'TLG0283': {'works': ['001', '002'], 'name': 'Heraclides Ponticus Junior Gramm.'}, 'TLG4393': {'works': ['001'], 'name': 'Nonnosus Hist.'}, 'TLG1446': {'works': ['001', '002'], 'name': 'Ion Eleg.'}, 'TLG3178': {'works': ['001'], 'name': 'Anonymi Lexeis Rhetoricae'}, 'TLG1153': {'works': ['001'], 'name': 'Apocalypsis Adam'}, 'TLG0547': {'works': ['001', '002', '003'], 'name': 'Anaximenes Hist. et Rhet.'}, 'TLG0543': {'works': ['001', '002', '003'], 'name': 'Polybius Hist.'}, 'TLG1289': {'works': ['002'], 'name': 'Crates Hist.'}, 'TLG0033': {'works': ['001', '002', '003', '004', '005'], 'name': 'Pindarus Lyr.'}, 'TLG2702': {'works': ['001', '006', '007', '009', '010', '011', '012', '015', '016', '017', '021', '022'], 'name': 'Michael Psellus Polyhist.'}, 'TLG1133': {'works': ['001'], 'name': 'Anonymus Diodori Phil.'}, 'TLG1800': {'works': ['001', '002'], 'name': 'Euboeus Parodius'}, 'TLG0581': {'works': ['001'], 'name': 'Paradoxographus Palatinus'}, 'TLG5031': {'works': ['001', '002'], 'name': 'Scholia In Nicandrum'}, 'TLG0559': {'works': ['001', '002', '003', '004', '005', '006', '007', '008', '009', '010', '011', '012', '013', '014', '015', '016'], 'name': 'Heron Mech.'}, 'TLG1600': {'works': ['001'], 'name': 'Philostratus Major Soph.'}, 'TLG2345': {'works': ['003'], 'name': 'Agl(a)osthenes Hist.'}, 'TLG2046': {'works': ['001'], 'name': 'Quintus Epic.'}, 'TLG2364': {'works': ['003'], 'name': 'Zeno Hist.'}, 'TLG0706': {'works': ['001'], 'name': 'Philo Med.'}, 'TLG1124': {'works': ['001', '002'], 'name': 'Andronicus Rhodius Phil.'}, 'TLG0727': {'works': ['001'], 'name': 'Joannes Med.'}, 'TLG2566': {'works': ['002'], 'name': '[Agathon] Hist.'}, 'TLG9007': {'works': ['001'], 'name': 'Appendix Proverbiorum'}, 'TLG1833': {'works': ['001', '002'], 'name': 'Pratinas Trag.'}, 'TLG2971': {'works': ['001'], 'name': 'Georgius Peccator Poeta'}, 'TLG0679': {'works': ['001', '002'], 'name': 'Aeschrion Lyr.'}, 'TLG1193': {'works': ['001', '002'], 'name': 'Ariston Phil.'}, 'TLG4193': {'works': ['002', '003', '004', '005', '010', '012'], 'name': 'Anonymi In Aristotelis Sophisticos Elenchos Phil.'}, 'TLG0365': {'works': ['001'], 'name': 'Apollodorus Lyr.'}, 'TLG2306': {'works': ['003'], 'name': 'Xenomedes Hist.'}, 'TLG1444': {'works': ['001'], 'name': 'Ilias Parva'}, 'TLG4172': {'works': ['002', '004', '005', '006'], 'name': 'Vitae Oppiani'}, 'TLG1681': {'works': ['001'], 'name': 'Solonis Epistulae'}, 'TLG1332': {'works': ['001'], 'name': 'Diotogenes Phil.'}, 'TLG2894': {'works': ['001'], 'name': 'Constitutiones Apostolorum'}, 'TLG0492': {'works': ['001', '002', '003'], 'name': 'Philonides Comic.'}, 'TLG2865': {'works': ['001', '002', '003', '004', '005', '006', '007', '009'], 'name': 'Olympiodorus Diaconus Scr. Eccl.'}, 'TLG4149': {'works': ['001'], 'name': 'Sophronius Gramm.'}, 'TLG0526': {'works': ['001', '002', '003', '004'], 'name': 'Flavius Josephus Hist.'}, 'TLG0496': {'works': ['001', '002', '003', '004', '005'], 'name': 'Phrynichus Comic.'}, 'TLG0233': {'works': ['001'], 'name': 'Hipponax Iamb.'}, 'TLG4291': {'works': ['001'], 'name': 'Verba In Scripturis De Christo'}, 'TLG3127': {'works': ['001'], 'name': 'Pseudo-Nonnus'}, 'TLG2354': {'works': ['002'], 'name': 'Dionysius Hist.'}, 'TLG3169': {'works': ['001'], 'name': 'Joannes VI Cantacuzenus'}, 'TLG2172': {'works': ['002'], 'name': 'Andron Hist.'}, 'TLG1232': {'works': ['001'], 'name': 'Butherus Phil.'}, 'TLG2064': {'works': ['002'], 'name': 'Acacius Theol.'}, 'TLG2133': {'works': ['001'], 'name': 'Achilles Tatius Astron.'}, 'TLG0550': {'works': ['001'], 'name': 'Apollonius Geom.'}, 'TLG2946': {'works': ['001', '002'], 'name': 'Priscus Hist. et Rhet.'}, 'TLG1675': {'works': ['002'], 'name': 'Simylus Eleg.'}, 'TLG0378': {'works': ['001'], 'name': 'Ariphron Lyr.'}, 'TLG2025': {'works': ['002'], 'name': 'Maximus Rhet.'}}
TLG_MASTER_INDEX = {'Oracula Sibyllina': {'tlg_id': 'TLG1551', 'names': {'name_authtab': 'Oracula Sibyllina', 'name_idt': 'Oracula Sibyllina'}, 'works': {'Oracula': ['Section', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Demosthenes Epic.': {'tlg_id': 'TLG1308', 'names': {'name_authtab': 'Demosthenes Epic.', 'name_idt': 'Demosthenes Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aesopus et Aesopica Scr. Fab.': {'tlg_id': 'TLG0096', 'names': {'name_authtab': 'Aesopus Scr. Fab. et Aesopica', 'name_idt': 'Aesopus et Aesopica Scr. Fab.'}, 'works': {'Fabulae Theophylacti Simocattae scholastici': ['Fable', 'line'], 'Sententiae': ['Sententia', 'line'], 'Fabulae Libanii': ['Fable', 'line'], 'Fabulae Themistii rhetoris': ['Fable', 'line'], 'Fabulae ap. Dionem Chrysostomum': ['Fable', 'line'], 'Proverbia': ['Proverb', 'line'], 'Fabula Nicephori': ['Fable', 'line'], 'Paroemiae': ['Section', 'line'], 'Fabulae Dosithei': ['Fable', 'line'], 'Fabulae (P. Ryl. 493)': ['Fable', 'line'], 'Fabulae tabulis ceratis Assendelftianis servatae': ['Fable', 'line'], 'Fabulae rhetoris anonymi Brancatiani': ['Fable', 'line'], 'Fabulae Syntipae philosophi': ['Fable', 'line'], 'Fabulae Aphthonii rhetoris': ['Fable', 'line'], 'Epigramma': ['Book', 'epigram', 'line'], 'Fabulae (dodecasyllabi)': ['Fable', 'line'], 'Fabulae': ['Fable', 'version', 'line']}}, 'Anonymus De Scientia Politica Hist.': {'tlg_id': 'TLG3185', 'names': {'name_authtab': 'Anonymus De Scientia Politica Hist.', 'name_idt': 'Anonymus De Scientia Politica Hist.'}, 'works': {'De scientia politica dialogus (olim sub auctore Petro Patricio) (e cod. Vat. gr. 1298)': ['Page', 'line']}}, 'Alexandri Magni Epistulae': {'tlg_id': 'TLG0042', 'names': {'name_authtab': 'Alexandri Magni Epistulae', 'name_idt': 'Alexandri Magni Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Ammonius Scr. Eccl.': {'tlg_id': 'TLG2724', 'names': {'name_authtab': 'Ammonius Scr. Eccl.', 'name_idt': 'Ammonius Scr. Eccl.'}, 'works': {'Fragmenta in Joannem (in catenis)': ['Fragment', 'line']}}, 'Anonymus Diodori Phil.': {'tlg_id': 'TLG1133', 'names': {'name_authtab': 'Anonymus Diodori Phil.', 'name_idt': 'Anonymus Diodori Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Leo Diaconus Hist.': {'tlg_id': 'TLG3069', 'names': {'name_authtab': 'Leo Diaconus Hist.', 'name_idt': 'Leo Diaconus Hist.'}, 'works': {'Historia': ['Page', 'line']}}, 'Seniores Apud Irenaeum Scr. Eccl.': {'tlg_id': 'TLG1665', 'names': {'name_authtab': 'Seniores Apud Irenaeum Scr. Eccl.', 'name_idt': 'Seniores Apud Irenaeum Scr. Eccl.'}, 'works': {'Reliquiae plurium anonymorum': ['Fragment', 'line']}}, 'Autocrates Hist.': {'tlg_id': 'TLG2204', 'names': {'name_authtab': 'Autocrates Hist.', 'name_idt': 'Autocrates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Amphilochius Scr. Eccl.': {'tlg_id': 'TLG2112', 'names': {'name_authtab': 'Amphilochius Scr. Eccl.', 'name_idt': 'Amphilochius Scr. Eccl.'}, 'works': {'Contra haereticos': ['line'], 'De recens baptizatis (orat. 7)': ['line'], '*In illud: Pater si possibile est (orat. 6)': ['line'], '#Encomium sancti Basilii Magni [Sp.]': ['line'], '<Oratio in resurrectionem domini [Sp.] (e cod. Vat. gr. 2194)': ['line'], 'In occursum domini (orat. 2)': ['line'], 'Fragmenta spuria': ['Fragment', 'line'], 'In Lazarum (orat. 3)': ['line'], 'Oratio in mesopentecosten [Sp.]': ['line'], 'Fragmenta': ['Fragment', 'line'], 'In Zacchaeum (orat. 8)': ['line'], 'Epistula synodalis': ['line'], 'Expositio in illud: De meo accipiet et annuntiabit vobis (fr. 13) [Sp.]': ['Volume', 'page', 'line'], 'Fragmentum xxi [Sp.]': ['Volume', 'page', 'line'], ' In diem sabbati sancti (orat. 5)': ['line'], 'In Isaiam (fr. 5) [Sp.]': ['Volume', 'page', 'line'], '<Oratio in resurrectionem domini [Sp.] (e cod. Vat. gr. 1936)': ['Page', 'line'], 'Fragmentum xvii [Sp.]': ['Volume', 'page', 'line'], 'In natalitia domini (orat. 1)': ['line'], 'Fragmenta ex tractatu in illud: Dominus creavit me (fr. 4)': ['Volume', 'page', 'line'], 'In illud: Non potest filius a se facere (orat. 9)': ['line'], 'Fragmentum xx [Sp.]': ['Volume', 'page', 'line'], 'In illud: Solvite templum hoc (fr. 9) [Sp.]': ['Volume', 'page', 'line'], 'In mulierem peccatricem (orat. 4)': ['line']}}, 'Menippus Phil.': {'tlg_id': 'TLG0052', 'names': {'name_authtab': 'Menippus Phil.', 'name_idt': 'Menippus Phil.'}, 'works': {'Epistula [Sp.]': ['line']}}, '[Boeus] Epic.': {'tlg_id': 'TLG1229', 'names': {'name_authtab': '[Boeus] Epic.', 'name_idt': '[Boeus] Epic.'}, 'works': {'Fragmentum': ['line']}}, 'Demetrius Poet. Phil.': {'tlg_id': 'TLG1301', 'names': {'name_authtab': 'Demetrius Poet. Phil.', 'name_idt': 'Demetrius Poet. Phil.'}, 'works': {'Fragmenta et titulus': ['Fragment', 'line']}}, 'Xenophon Hist.': {'tlg_id': 'TLG0032', 'names': {'name_authtab': 'Xenophon Hist.', 'name_idt': 'Xenophon Hist.'}, 'works': {'': ['Apologia Socratis', 'Section', 'line'], 'Memorabilia': ['Book', 'chapter', 'section', 'line'], 'Atheniensium respublica [Sp.]': ['Chapter', 'section', 'line'], 'Cyropaedia': ['Book', 'chapter', 'section', 'line'], 'De vectigalibus': ['Chapter', 'section', 'line'], 'Agesilaus': ['Chapter', 'section', 'line'], 'Hellenica': ['Book', 'chapter', 'section', 'line'], 'Cynegeticus': ['Chapter', 'section', 'line'], 'Anabasis': ['Book', 'chapter', 'section', 'line'], 'Symposium': ['Chapter', 'section', 'line'], 'Hipparchicus': ['Chapter', 'section', 'line'], 'Hiero': ['Chapter', 'section', 'line'], 'De re equestri': ['Chapter', 'section', 'line'], 'De republica Lacedaemoniorum': ['Chapter', 'section', 'line'], 'Oeconomicus': ['Chapter', 'section', 'line']}}, 'Archestratus Parodius': {'tlg_id': 'TLG1175', 'names': {'name_authtab': 'Archestratus Parodius', 'name_idt': 'Archestratus Parodius'}, 'works': {'Fragmenta et tituli': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Philiades Eleg.': {'tlg_id': 'TLG1587', 'names': {'name_authtab': 'Philiades Eleg.', 'name_idt': 'Philiades Eleg.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Cratinus Comic.': {'tlg_id': 'TLG0434', 'names': {'name_authtab': 'Cratinus Comic.', 'name_idt': 'Cratinus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Sositheus Trag.': {'tlg_id': 'TLG0340', 'names': {'name_authtab': 'Sositheus Trag.', 'name_idt': 'Sositheus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Eudoxus Comic.': {'tlg_id': 'TLG0399', 'names': {'name_authtab': 'Eudoxus Comic.', 'name_idt': 'Eudoxus Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Tituli': ['Play', 'fragment', 'line']}}, 'Hippostratus Hist.': {'tlg_id': 'TLG2391', 'names': {'name_authtab': 'Hippostratus Hist.', 'name_idt': 'Hippostratus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scholia In Iamblichum Philosophum': {'tlg_id': 'TLG5027', 'names': {'name_authtab': 'Scholia In Iamblichum Philosophum', 'name_idt': 'Scholia In Iamblichum Philosophum'}, 'works': {'Scholia in librum Iamblichi in Nicomachi arithmeticam introductionem (scholia vetera et recentiora)': ['Page', 'scholion', 'line']}}, 'Antigoni Epistula': {'tlg_id': 'TLG0618', 'names': {'name_authtab': 'Antigoni Epistula', 'name_idt': 'Antigoni Epistula'}, 'works': {'Epistula': ['line']}}, 'Panarces Scriptor Aenigmatum': {'tlg_id': 'TLG0256', 'names': {'name_authtab': 'Panarces Scriptor Aenigmatum', 'name_idt': 'Panarces Scriptor Aenigmatum'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apollonius Phil.': {'tlg_id': 'TLG0619', 'names': {'name_authtab': 'Apollonius Phil.', 'name_idt': 'Apollonius Phil.'}, 'works': {'Apotelesmata [Sp.]': ['Page', 'line'], ':De horis diei et noctis (fragmenta e cod. Berol. 26) [Sp.]': ['Volume', 'page', 'line'], 'Apollonii epistulae [Dub.]': ['Epistle', 'line']}}, 'Crateuas Med.': {'tlg_id': 'TLG0657', 'names': {'name_authtab': 'Crateuas Med.', 'name_idt': 'Crateuas Med.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scholia In Isocratem': {'tlg_id': 'TLG5028', 'names': {'name_authtab': 'Scholia In Isocratem', 'name_idt': 'Scholia In Isocratem'}, 'works': {'Scholia in Isocratem (scholia vetera)': [' Vita-hypothesis-scholion+oration', 'section', 'line']}}, 'Acta Eupli': {'tlg_id': 'TLG2012', 'names': {'name_authtab': 'Acta Eupli', 'name_idt': 'Acta Eupli'}, 'works': {'Acta Eupli': ['Chapter', 'section', 'line']}}, 'Timoxenus Comic.': {'tlg_id': 'TLG1793', 'names': {'name_authtab': 'Timoxenus Comic.', 'name_idt': 'Timoxenus Comic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Dieuchidas Hist.': {'tlg_id': 'TLG1313', 'names': {'name_authtab': 'Dieuchidas Hist.', 'name_idt': 'Dieuchidas Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Diogenes Phil.': {'tlg_id': 'TLG1321', 'names': {'name_authtab': 'Diogenes Phil.', 'name_idt': 'Diogenes Phil.'}, 'works': {'Fragmenta': ['Fragment', 'column', 'line']}}, 'Scholia In Theonem Rhetorem': {'tlg_id': 'TLG5046', 'names': {'name_authtab': 'Scholia In Theonem Rhetorem', 'name_idt': 'Scholia In Theonem Rhetorem'}, 'works': {'Scholia in progymnasmata (scholia recentiora)': ['Page', 'line']}}, 'Demaratus Hist.': {'tlg_id': 'TLG1812', 'names': {'name_authtab': 'Demaratus Hist.', 'name_idt': 'Demaratus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aristaenetus Epist.': {'tlg_id': 'TLG4000', 'names': {'name_authtab': 'Aristaenetus Epist.', 'name_idt': 'Aristaenetus Epist.'}, 'works': {'Epistulae': ['Book', 'letter', 'line']}}, 'Juba II Rex Mauretaniae Hist.': {'tlg_id': 'TLG1452', 'names': {'name_authtab': 'Juba II Rex Mauretaniae Hist.', 'name_idt': 'Juba II Rex Mauretaniae Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Thrasybuli Epistula': {'tlg_id': 'TLG0056', 'names': {'name_authtab': 'Thrasybuli Epistula', 'name_idt': 'Thrasybuli Epistula'}, 'works': {'Epistula': ['line']}}, 'Lydus Hist.': {'tlg_id': 'TLG2580', 'names': {'name_authtab': 'Joannes Laurentius Lydus Hist.', 'name_idt': 'Lydus Hist.'}, 'works': {'De ostentis': ['Section', 'line'], 'De magistratibus populi Romani': ['Page', 'line'], 'De mensibus': ['Book', 'section', 'line']}}, 'Dioscorides Med.': {'tlg_id': 'TLG1118', 'names': {'name_authtab': 'Pseudo-Dioscorides Med.', 'name_idt': 'Dioscorides Med.'}, 'works': {'De iis, quae virus ejaculantur, animalibus libellus, in quo et de rabioso cane (%6 Theriaca)': ['Section', 'line'], 'BDe venenis eorumque praecautione et medicatione (%6 Alexipharmaca)': ['Section', 'line'], 'De lapidibus': ['Section', 'line']}}, 'Ephraem Syrus Theol.': {'tlg_id': 'TLG4138', 'names': {'name_authtab': 'Ephraem Syrus Theol.', 'name_idt': 'Ephraem Syrus Theol.'}, 'works': {'': ['De Iuliano asceta', 'Page', 'line'], 'De compunctione': ['Page', 'line'], 'Sermo alius compunctorius': ['Page', 'line'], '6De latrone in crucem (e cod. Sinaiticus 493, fol. 220)': ['Page', 'line'], 'De uirtutibus et passionibus': ['Page', 'line'], 'qSermo adversus haereticos, in quo tum ex margaritae tum ex aliorum claris argumentis ostenditur credendum esse sa': ['Page', 'line'], '(Sermones paraenetici ad monachos Aegypti': ['Oration', 'line'], '%Sermo de operatione peruersi daemonis': ['Page', 'line'], 'Interpretatio': ['Page', 'line'], '$De recta vivendi ratione (capita xc)': ['Chapter', 'line'], 'De paenitentia': ['Page', 'line'], 'De timore animarum': ['Page', 'line'], 'De festis diebus': ['line'], '*Paraenesis ad ascetas (ordine alphabetico)': ['Page', 'line'], 'De passionibus animi': ['Page', 'line'], 'De statu spirituali': ['line'], '?Aduersus eos, qui dicunt terrae motus a terrae inflatione fieri': ['line'], 'hDe abstinendo a cupiditatibus carnalibus, et de certamine ac de multa securitate, ad fratrem qui excidit': ['Page', 'line'], 'De his, quae haec vita continet': ['line'], '[2Precationes ad dei matrem]2': ['Prayer', 'page', 'line'], 'Sermo de virtutibus et vitiis': ['Section', 'line'], 'Aduersus improbas mulieres': ['Page', 'line'], 'qSermo in martyrium sancti Bonifatii magnimartyris (e cod. 4887.767 Monasterii Iberonum in Monte Athonis, fol. 44v': ['Page', 'line'], 'De quibusdam interrogationibus': ['line'], '!Sermo de iudicio et resurrectione': ['Page', 'line'], 'De perfectione monachi': ['Page', 'line'], 'De humilitate': ['line'], 'qDe non suscipiendis rebus hisce momentaneis, et ne patiamur nos decipi huius vitae oblectamentis; et in psalmum l': ['Page', 'line'], 'Sermo paraeneticus': ['Page', 'line'], '&Reprehensio sui ipsius atque Confessio': ['Page', 'line'], 'HQuomodo anima cum lacrymis debeat orare deum, quando tentatur ab inimico': ['Page', 'line'], 'De oratione': ['Page', 'line'], '5Sermo in secundum adventum domini nostri Iesu Christi': ['Page', 'line'], 'De virtute (capita x)': ['Chapter', 'line'], 'De paenitentia et patientia': ['Page', 'line'], 'Ad imitationem proverbiorum': ['Page', 'line'], 'Sermo alius in patres defunctos': ['Page', 'line'], 'FEncomium in gloriosos martyres, qui in toto mundo martyrium sunt passi': ['Page', 'line'], 'Sermo tetrasyllabus': ['Page', 'line'], '!Ne decipiamur gentilium erroribus': ['Page', 'line'], 'De mansionibus beatis': ['line'], 'PSermo unde magi in Hierosolymam ineunt (e cod. 284 Mosq. [Vlad. 215], fol. 101v)': ['Page', 'line'], '#Sermo de secundo aduentu et iudicio': ['Page', 'line'], 'qQuomodo latro ante resurrectionem in paradisum intrauit (e cod. 115 Monasterii sancti Dochiarii in Monte Athonis,': ['line'], 'Interrogationes ac responsiones': ['Page', 'line'], '<Ad correctionem eorum qui vitiose vivunt et honores appetunt': ['Page', 'line'], '3De recordatione mortis et de uirtute ac de diuitiis': ['Page', 'line'], 'Sermo in Abraham et Isaac (i)': ['Page', 'line'], 'Sermo ad renuntiantes': ['Page', 'line', ''], ' Adhortatio de silentio et quiete': ['Page', 'line'], 'Diuisio affectionum': ['line'], 'ASermo de paenitentia et iudicio et separatione animae et corporis': ['Page', 'line'], '(In illud: Attende tibi ipsi (capita xii)': ['Chapter', 'line'], 'qSermo in Danielem prophetam, et in sanctos tres pueros; et in eum qui dicit: "3Tempora mala sunt, salvari nequeo"': ['line'], 'De diuina gratia': ['Page', 'line'], '`Sermo de Cain, et de Abel caedo (e cod. 99 Monasterii Pantocratoris in Monte Athonis, fol. 375r)': ['Page', 'line'], '9De conuersatione fratrum mutua in concordia et dilectione': ['Page', 'line'], 'qPrecationes e sacris scripturis collectae, quarum pleraequae sunt Sancti Ephraim, pro iis qui uolunt suam ipsorum': ['Prayer', 'page', 'line'], 'Sermo compunctorius': ['Page', 'line'], 'De patientia': ['Page', 'line'], 'Sermo in pulcherrimum Ioseph': ['Page', 'line'], 'Fragmenta paraenetica': ['Section', 'line'], 'Beati Ephraem Testamentum': ['Page', 'line'], 'Sermo in patres defunctos': ['Page', 'line'], 'BAd Ioannem monachum, ut abstineat a Nestorii insania et blasphemia': ['Page', 'line'], '&Adhortatio sive Catechesis ad monachos': ['Page', 'line'], 'De fide': ['Page', 'line'], 'Precatio': ['Page', 'line'], '2De virtute, ad novitium monachum (capita quattuor)': ['Section', 'line'], ' Sermo in sanctum Eliam prophetam': ['Page', 'line'], '[2Precationes]2': ['Page', 'line'], '1Sermo de habenda semper in mente die exitus uitae': ['line'], 'Adhortatio ad fratres': ['Page', 'line'], 'In aduentum domini (sermo i)': ['Page', 'line'], '[2Fragmenta]2': ['Page', 'line'], "'De beatitudinibus atque infelicitatibus": ['line'], '/In sanctam parasceuen, et in latronem et crucem': ['Page', 'line'], 'De caritate': ['Page', 'line'], '1De nostra libertate et quod liber factus est homo': ['line'], 'mSermo de resurrectione, in consecrationibus, et de tumulo sancto (e cod. 244 MPT Athen. Nat. Bibl., fol. 60r)': ['Page', 'line'], '@De abstinendo ab omni consuetudine perniciosa, et de continentia': ['Page', 'line'], '#Beautitudines aliae, capita viginti': ['Chapter', 'line'], 'De paenitentia et compunctione': ['line'], '#Reprehensio sui ipsius et Confessio': ['Page', 'line'], 'Sermo in Abraham': ['Page', 'line'], '(Encomium in sanctos quadraginta martyres': ['Page', 'line'], 'Ad eversionem superbiae': ['Page', 'line'], '[Quod non oporteat ridere et extollli, sed plangere potius et nos ipsos et nos ipsos deflere': ['Page', 'line'], 'Homilia in meretricem': ['Page', 'line'], 'Sermo de sacerdotio': ['Page', 'line'], 'Paraenesis': ['line'], 'Encomium in magnum Basilium': ['Page', 'line'], '?Consilium de vita spiritali, ad monachum novitium (capita xcvi)': ['Chapter', 'line'], 'Institutio ad monachos': ['Page', 'line', '®´»ÈÎÛî', '\\'], 'De locis beatis': ['Page', 'line'], 'Sermo heptasyllabus': ['line'], 'lSermo in crucem, in consecrationibus, et de sancto ligno crucis (e cod. Athen. Nat. Bibl. 244 MPT, fol. 62v)': ['Page', 'line'], 'De panoplia, ad monachos': ['Page', 'line'], ' Septem sunt occupationes monachi': ['line'], '5Capita centum. Quomodo quis humilitatem sibi comparet': ['Chapter', 'line'], 'IDe his, qui animas ad impudicitiam pelliciunt, cum dicant nihil mali esse': ['Page', 'line'], 'Sermo de uirginitate': ['Page', 'line'], 'qSermo de communi resurrectione, de paenitentia et de caritate, et in secundum adventum domini nostri Iesu Christi': ['Page', 'line'], '*Beautitudines, capita quinquaginta quinque': ['Chapter', 'line'], ' De resurrectione mortuorum sermo': ['Page', 'line'], 'Encomium in martyres': ['Page', 'line'], 'Sermo asceticus': ['Page', 'line'], 'Sermo asceticus perutilis': ['Page', 'line'], '4De iis, qui dicunt resurrectionem mortuorum non esse': ['Page', 'line'], 'In aduentum domini (sermo iii)': ['Page', 'line'], 'Modi dei prouidentiae': ['line'], 'bIn sermonem, quem dixit dominus, quod: In hoc mundo pressuram habebitis, et de perfectione hominis': ['Page', 'line'], '.Apologia ad fratrem quendam, de Heli sacerdote': ['Page', 'line'], '/Quod ludicris rebus abstinendum sit christianis': ['Page', 'line'], 'qEpistula ad Ioannem monachum de patientia, et de cavendo nequis decipiatur cogitationibus praetextu iustification': ['Page', 'line'], 'Confessio seu Precatio ad deum': ['Page', 'line'], 'In aduentum domini (sermo ii)': ['Page', 'line'], 'Hypomnesticon, sive Epistula': ['Page', 'line'], '.Paraenesis de patientia et animae compunctione': ['Page', 'line'], 'Interrogationes et responsiones': ['Page', 'line'], 'De monachis': ['line'], 'Ad animam neglegentem': ['Page', 'line'], '1De patientia et compunctione. Sermo adhortatorius': ['Page', 'line'], 'De octo cogitationibus': ['Page', 'line'], 'oEncomium in Petrum et Paulum et Andream, Thomam et Lucam et Ioannem, et in lectionem euangelii secundum Ioannem': ['Page', 'line'], 'NSermo in Abraham et Isaac (ii) (e cod. 163 MPT Athen. Nat. Bibl., fol. 8v-17r)': ['Page', 'line'], 'KOde optime fluens, in eos qui cotidie peccant et cotidie paenitentiam agunt': ['line'], 'GSermo in transfigurationem domini et dei salvatoris nostri Iesu Christi': ['Page', 'line'], '.In vitam beati Abrahamii et neptis eius Mariae': ['Page', 'line'], 'Sermo de passione Saluatoris': ['Page', 'line'], '(Oratio in uanam uitam, et de paenitentia': ['Page', 'line'], '(De iis, qui filii dei naturam scrutantur': ['Page', 'line'], 'Sermo animae utilis': ['Page', 'line'], 'De directione uirtutis': ['line'], 'In Loth, et de securitate': ['Page', 'line'], '\\De vera renuntiatione, et quo pacto anima deum inveniat, quam ob causam ad nos venit dominus': ['line'], 'QSermo in adventum domini, et de consummatione saeculi, et in adventum antichristi': ['Page', 'line'], 'qDe patientia et consummatione huius saeculi, ac de secundo aduentu; necnon de meditatione diuinarum scripturarum;': ['Page', 'line'], '%De morbo linguae et prauis affectibus': ['Page', 'line'], 'De iudicio et compunctione': ['Page', 'line'], '6Sermo in Ionam prophetam et de paenitentia Niniuitarum': ['Page', 'line'], ']Sermo in pretiosam et vivificam crucem, et in secundum adventum, et de caritate et eleemosyna': ['Page', 'line'], '?Sermo paraeneticus de secundo aduentu domini, et de paenitentia': ['Page', 'line'], '?Institutio de exercitatione bonorum operum, et de dei patientia': ['line'], 'De ieiunio': ['line'], '/In secundum adventum domini nostri Iesu Christi': ['Page', 'line'], 'De psalmo': ['line'], ')Sermo in eos, qui in Christo obdormierunt': ['Page', 'line'], 'CDe non scandalizando proximo, et de recta vitae ratione, adhortatio': ['Page', 'line'], 'Sermo de paenitentia': ['line'], '^De continentia ac de non aemulandis peccatoribus qui se temporis praetextu excusant; et in Noe': ['line']}}, 'Andocides Orat.': {'tlg_id': 'TLG0027', 'names': {'name_authtab': 'Andocides Orat.', 'name_idt': 'Andocides Orat.'}, 'works': {'De pace': ['Section', 'line'], 'In Alcibiadem [Sp.]': ['Section', 'line', ''], 'De mysteriis': ['Section', 'line'], 'De reditu suo': ['Section', 'line'], 'Fragmenta': ['Fragment', 'section', 'line', '', '']}}, 'Lachares Soph.': {'tlg_id': 'TLG2937', 'names': {'name_authtab': 'Lachares Soph.', 'name_idt': 'Lachares Soph.'}, 'works': {'3Rhetorica (fragmentum e cod. Paris. suppl. gr. 670)': ['Page', 'line']}}, 'Lucullus Hist.': {'tlg_id': 'TLG1977', 'names': {'name_authtab': 'Lucius Licinius Lucullus Hist.', 'name_idt': 'Lucullus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Elias Phil.': {'tlg_id': 'TLG4020', 'names': {'name_authtab': 'Elias Phil.', 'name_idt': 'Elias Phil.'}, 'works': {',Commentarius in Aristotelis analytica priora': ['Page', 'line'], 'In Porphyrii isagogen': ['Page', 'line'], ';Eliae (olim Davidis) in Aristotelis categorias commentarium': ['Page', 'line']}}, 'Charinus Choliamb.': {'tlg_id': 'TLG1257', 'names': {'name_authtab': 'Charinus Choliamb.', 'name_idt': 'Charinus Choliamb.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Eparchides Hist.': {'tlg_id': 'TLG1343', 'names': {'name_authtab': 'Eparchides Hist.', 'name_idt': 'Eparchides Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Arcesilaus Phil.': {'tlg_id': 'TLG1172', 'names': {'name_authtab': 'Arcesilaus Phil.', 'name_idt': 'Arcesilaus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Lysanias Hist.': {'tlg_id': 'TLG2298', 'names': {'name_authtab': 'Lysanias Hist.', 'name_idt': 'Lysanias Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Crates Hist.': {'tlg_id': 'TLG1289', 'names': {'name_authtab': 'Crates Hist.', 'name_idt': 'Crates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philostephanus Comic.': {'tlg_id': 'TLG0493', 'names': {'name_authtab': 'Philostephanus Comic.', 'name_idt': 'Philostephanus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Patria Constantinopoleos': {'tlg_id': 'TLG3120', 'names': {'name_authtab': 'Patria Constantinopoleos', 'name_idt': 'Patria Constantinopoleos'}, 'works': {'<$*DIH/GHSIS PERI\\ TH=S *(AGI/AS *SOFI/AS &(variae lectiones)': ['Section', 'line'], '#$*PARASTA/SEIS SU/NTOMOI XRONIKAI/&': ['Section', 'line'], ')$*DIH/GHSIS PERI\\ TH=S *(AGI/AS *SOFI/AS&': ['Section', 'line'], 'BDe sepulcris imperatorum quae sunt in templo sanctorum apostolorum': ['Page', 'line']}}, '[Dositheus] Hist.': {'tlg_id': 'TLG1896', 'names': {'name_authtab': '[Dositheus] Hist.', 'name_idt': '[Dositheus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dexicrates Comic.': {'tlg_id': 'TLG0442', 'names': {'name_authtab': 'Dexicrates Comic.', 'name_idt': 'Dexicrates Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Philinus Hist.': {'tlg_id': 'TLG1969', 'names': {'name_authtab': 'Philinus Hist.', 'name_idt': 'Philinus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Antileon Hist.': {'tlg_id': 'TLG2173', 'names': {'name_authtab': 'Antileon Hist.', 'name_idt': 'Antileon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Historia Alexandri Magni': {'tlg_id': 'TLG1386', 'names': {'name_authtab': 'Historia Alexandri Magni', 'name_idt': 'Historia Alexandri Magni'}, 'works': {'Recensio $G& (lib. 2)': ['Section', 'line'], ';Recensio $B& (e cod. Paris. gr. 1685 et cod. Messinensi 62)': ['Book', 'section', 'line'], 'Recensio $G& (lib. 1)': ['Section', 'line'], ',Recensio $D &(e cod. Vat. gr. 1700, 88v-89r)': ['line'], '+Recensio $L& (Pseudo-Methodius, redactio 2)': ['Page', 'line'], 'Recensio $F&': ['Section', 'line'], '"Recensio E (cod. Eton College 163)': ['Chapter', 'section', 'line'], 'Recensio $L& (lib. 3)': ['Page', 'line'], '1Recensio F (cod. Flor. Laurentianus Ashburn 1444)': ['Chapter', 'section', 'line'], '+Recensio $L& (Pseudo-Methodius, redactio 1)': ['Page', 'line'], 'Recensio $E&': ['Chapter', 'section', 'line'], '3Recensio K (cod. 236 Kutlumussiu-Kloster des Athos)': ['Page', 'line'], '"Recensio $A& sive Recensio vetusta': ['Book', 'chapter', 'section', 'line'], '/Recensio Byzantina poetica (cod. Marcianus 408)': ['line'], "'Recensio $B& (e cod. Leidensi Vulc. 93)": ['Book', 'section', 'line'], '&Recensio V (cod. Vind. theol. gr. 244)': ['Page', 'line'], 'Recensio $G& (lib. 3)': ['Section', 'line'], 'Recensio $B&': ['Book', 'section', 'line'], 'Recensio poetica (recensio R)': ['line']}}, 'Lycophron Soph.': {'tlg_id': 'TLG2444', 'names': {'name_authtab': 'Lycophron Soph.', 'name_idt': 'Lycophron Soph.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Ephraem Hist., Poeta': {'tlg_id': 'TLG3170', 'names': {'name_authtab': 'Ephraem Hist. et Poeta', 'name_idt': 'Ephraem Hist., Poeta'}, 'works': {'Chronicon': ['line', 'î³´î³´', '', 'î³î³', '', 'î³î³', '»\x12î³î³\x12\x12\x12\x12\x12\x12î³´¶î³´¶\x12\x13î³´¶î³´¶\x13\x8c§\x14î³¶³î³¶³\x14í\x16î´¶î´¶\x16ºÖ\x92Í\x1aî´³\x1a¿§ù©«ü\x1eî¶î¶\x1e««Öþ"î¶î¶"³Í%î¶î¶%Û¶Â&î´î´&Ñ&îî&Òû´ºí¼½«*îî*½½¿ÀÂÃÉÉ0î¶î¶0ÊÆ¿ÇüÈ2îî2ÈɶÊÜ3î¶ÊîÌÍϧÐÑ8ó³']}}, 'Hermogenes Rhet.': {'tlg_id': 'TLG0592', 'names': {'name_authtab': 'Hermogenes Rhet.', 'name_idt': 'Hermogenes Rhet.'}, 'works': {'': ['$*$*PERI\\ STA/SEWN& !!! TRANSLITERATE', 'Section', 'line'], '$*PERI\\ I)DEW=N LO/GOU&': ['Chapter', 'section', 'line'], 'Testimonia': ['line', 'fragment', 'line'], 'Progymnasmata [Dub.]': ['Section', 'line'], '$*PERI\\ EU(RE/SEWS& [Sp.]': ['Chapter', 'section', 'line'], '#$*PERI\\ MEQO/DOU DEINO/THTOS& [Sp.]': ['Section', 'line']}}, 'Cratetis Epistulae': {'tlg_id': 'TLG0623', 'names': {'name_authtab': 'Cratetis Epistulae', 'name_idt': 'Cratetis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Agathemerus Geogr.': {'tlg_id': 'TLG0090', 'names': {'name_authtab': 'Agathemerus Geogr.', 'name_idt': 'Agathemerus Geogr.'}, 'works': {'Geographiae informatio': ['Section', 'line']}}, 'Philostorgius Scr. Eccl.': {'tlg_id': 'TLG2058', 'names': {'name_authtab': 'Philostorgius Scr. Eccl.', 'name_idt': 'Philostorgius Scr. Eccl.'}, 'works': {'5Historia ecclesiastica (fragmenta e passione Artemii)': ['Book', 'fragment', 'line'], 'HHistoria ecclesiastica (fragmenta e vita Constantini) (cod. Angelic. 22)': ['Book', 'fragment', 'line'], '.Historia ecclesiastica (fragmenta ap. Photium)': ['Book', 'fragment', 'line']}}, 'Eurytus Phil.': {'tlg_id': 'TLG1362', 'names': {'name_authtab': 'Eurytus Phil.', 'name_idt': 'Eurytus Phil.'}, 'works': {'Fragmentum': ['Page', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Eustochius Soph.': {'tlg_id': 'TLG2499', 'names': {'name_authtab': 'Eustochius Soph.', 'name_idt': 'Eustochius Soph.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Bion Math., Phil.': {'tlg_id': 'TLG2153', 'names': {'name_authtab': 'Bion Math. et Phil.', 'name_idt': 'Bion Math., Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Marci Aurelii Epistula': {'tlg_id': 'TLG1479', 'names': {'name_authtab': 'Marci Aurelii Epistula', 'name_idt': 'Marci Aurelii Epistula'}, 'works': {'EEpistula ad senatum, qua testatur Christianos victoriae causam fuisse': ['Page', 'line']}}, 'Zeno Phil.': {'tlg_id': 'TLG2294', 'names': {'name_authtab': 'Zeno Phil.', 'name_idt': 'Zeno Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Boiscus Iamb.': {'tlg_id': 'TLG2610', 'names': {'name_authtab': 'Boiscus Iamb.', 'name_idt': 'Boiscus Iamb.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Pisander Epic.': {'tlg_id': 'TLG0288', 'names': {'name_authtab': 'Pisander Epic.', 'name_idt': 'Pisander Epic.'}, 'works': {'Heraclea (fragmenta)': ['Fragment', 'line'], 'Epigramma': ['Book', 'epigram', 'line']}}, '[Clitophon] Hist.': {'tlg_id': 'TLG1281', 'names': {'name_authtab': '[Clitophon] Hist.', 'name_idt': '[Clitophon] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Moses Alchem.': {'tlg_id': 'TLG2181', 'names': {'name_authtab': 'Moses Alchem.', 'name_idt': 'Moses Alchem.'}, 'works': {'q$*EU)POI/A KAI\\ EU)TUXI/A TOU= KTISAME/NOU KAI\\ E)PITUXI/A KAMA/TOU KAI\\ MAKROXRONI/A BI/OU &(e cod. Paris. B.N. ': ['Volume', 'page', 'line'], '9$*MWSE/WS DI/PLWSIS &(e cod. Venet. Marc. 299, fol. 185r)': ['Volume', 'page', 'line']}}, 'Lamprocles Lyr.': {'tlg_id': 'TLG0370', 'names': {'name_authtab': 'Lamprocles Lyr.', 'name_idt': 'Lamprocles Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sthenidas Phil.': {'tlg_id': 'TLG1695', 'names': {'name_authtab': 'Sthenidas Phil.', 'name_idt': 'Sthenidas Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Hipparchus Epigr.': {'tlg_id': 'TLG1433', 'names': {'name_authtab': 'Hipparchus Epigr.', 'name_idt': 'Hipparchus Epigr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hermocles Lyr.': {'tlg_id': 'TLG0207', 'names': {'name_authtab': 'Hermocles Lyr.', 'name_idt': 'Hermocles Lyr.'}, 'works': {'Ithyphalli': ['line']}}, 'Epistula Ad Diognetum': {'tlg_id': 'TLG1350', 'names': {'name_authtab': 'Epistula Ad Diognetum', 'name_idt': 'Epistula Ad Diognetum'}, 'works': {'Epistula ad Diognetum': ['Chapter', 'section', 'line']}}, 'Dosiadas Lyr.': {'tlg_id': 'TLG0208', 'names': {'name_authtab': 'Dosiadas Lyr.', 'name_idt': 'Dosiadas Lyr.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], '$*BWMO/S&': ['line']}}, 'Isaeus Orat.': {'tlg_id': 'TLG0017', 'names': {'name_authtab': 'Isaeus Orat.', 'name_idt': 'Isaeus Orat.'}, 'works': {'De Cleonymo': ['Section', 'line'], 'De Apollodoro': ['Section', 'line', '¤<\x14'], 'De Hagnia': ['Section', 'line'], 'Pro Euphileto': ['Section', 'line'], 'De Aristarcho': ['Section', 'line'], 'De Astyphilo': ['Section', 'line'], 'De Menecle': ['Section', 'line'], 'De Dicaeogene': ['Section', 'line'], 'De Philoctemone': ['Section', 'line', ''], 'Fragmenta': ['Oration', 'fragment', 'section', 'line'], 'De Pyrrho': ['Section', 'line'], 'De Cirone': ['Section', 'line'], 'De Nicostrato': ['Section', 'line']}}, 'Anonymus Discipulus Isidori Milesii Mech.': {'tlg_id': 'TLG4005', 'names': {'name_authtab': 'Anonymus Discipulus Isidori Milesii Mech.', 'name_idt': 'Anonymus Discipulus Isidori Milesii Mech.'}, 'works': {'(Euclidis elementorum qui fertur liber xv': ['Section', 'line']}}, 'Licymnius Lyr.': {'tlg_id': 'TLG0374', 'names': {'name_authtab': 'Licymnius Lyr.', 'name_idt': 'Licymnius Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Astrampsychus Magus Onir.': {'tlg_id': 'TLG2642', 'names': {'name_authtab': 'Astrampsychus Magus Onir.', 'name_idt': 'Astrampsychus Magus Onir.'}, 'works': {'Oracula': ['Chapter', 'section', 'line'], 'Sortes': ['Section', 'line']}}, 'Stephanus Gramm.': {'tlg_id': 'TLG4028', 'names': {'name_authtab': 'Stephanus Gramm.', 'name_idt': 'Stephanus Gramm.'}, 'works': {'': ['Ethnica (epitome)', 'Page', 'line'], 'Epigramma': ['Book', 'epigram', 'line']}}, 'Asclepiodotus Tact.': {'tlg_id': 'TLG0556', 'names': {'name_authtab': 'Asclepiodotus Tact.', 'name_idt': 'Asclepiodotus Tact.'}, 'works': {'Tactica': ['Chapter', 'section', 'line']}}, 'Adamantius Judaeus Med.': {'tlg_id': 'TLG0731', 'names': {'name_authtab': 'Adamantius Judaeus Med.', 'name_idt': 'Adamantius Judaeus Med.'}, 'works': {'De ventis': ['Page', 'line'], '%Physiognomonica (epitome Matritensis)': ['Section', 'line'], 'Physiognomonica': ['Book', 'section', 'line']}}, 'Sotion Paradox.': {'tlg_id': 'TLG0587', 'names': {'name_authtab': 'Sotion Paradox.', 'name_idt': 'Sotion Paradox.'}, 'works': {'Fragmenta': ['Section', 'line']}}, 'Celsus Phil.': {'tlg_id': 'TLG1248', 'names': {'name_authtab': 'Celsus Phil.', 'name_idt': 'Celsus Phil.'}, 'works': {'$*)ALHQH\\S LO/GOS&': ['Chapter', 'section', 'line']}}, 'Strattis Comic.': {'tlg_id': 'TLG0508', 'names': {'name_authtab': 'Strattis Comic.', 'name_idt': 'Strattis Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Orion Gramm.': {'tlg_id': 'TLG2591', 'names': {'name_authtab': 'Orion Gramm.', 'name_idt': 'Orion Gramm.'}, 'works': {'Anthologion': ['Title number', 'entry', 'line'], '0Etymologicum (excerpta e cod. regio Paris. 2630)': ['Page', 'line'], ')Etymologicum (excerpta e cod. regio 2610)': ['Page', 'line'], ',Etymologicum (excerpta e cod. Vat. gr. 1456)': ['Entry', 'line'], 'Etymologicum': ['', 'Alphabetic letter', 'page', 'line'], '/Etymologicum (excerpta e cod. Darmstadino 2773)': ['', 'Alphabetic letter', 'page', 'line']}}, 'Antimachus Epic.': {'tlg_id': 'TLG1141', 'names': {'name_authtab': 'Antimachus Epic.', 'name_idt': 'Antimachus Epic.'}, 'works': {'': ['Fragmentum [Dub.]', 'Fragment', 'line'], 'Fragmentum': ['Fragment', 'line']}}, 'Heracliti Ephesii Epistulae': {'tlg_id': 'TLG1411', 'names': {'name_authtab': 'Heracliti Ephesii Epistulae', 'name_idt': 'Heracliti Ephesii Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Scholia In Demosthenem': {'tlg_id': 'TLG5017', 'names': {'name_authtab': 'Scholia In Demosthenem', 'name_idt': 'Scholia In Demosthenem'}, 'works': {'?Scholia in Demosthenem (scholia vetera) (fort. auctore Ulpiano)': ['Oration', 'section', 'line']}}, 'Melito Trag.': {'tlg_id': 'TLG0825', 'names': {'name_authtab': 'Melito Trag.', 'name_idt': 'Melito Trag.'}, 'works': {'Titulus': ['line']}}, 'Diophantus Comic.': {'tlg_id': 'TLG0395', 'names': {'name_authtab': 'Diophantus Comic.', 'name_idt': 'Diophantus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Page', 'line']}}, 'Pamprepius Epic.': {'tlg_id': 'TLG4038', 'names': {'name_authtab': 'Pamprepius Epic.', 'name_idt': 'Pamprepius Epic.'}, 'works': {' Fragmenta (P. Vindob. 29788 A-C)': ['Fragment', 'line']}}, 'Evagrius Scr. Eccl.': {'tlg_id': 'TLG4110', 'names': {'name_authtab': 'Evagrius Scr. Eccl.', 'name_idt': 'Evagrius Scr. Eccl.'}, 'works': {'Capita paraenetica': ['Chapter', 'line'], '6De octo spiritibus malitiae (sub nomine Nili Ancyrani)': ['Volume', 'page', 'line'], 'Practicus (capita centum)': ['\x19Prologue-chapter-epilogue', 'line'], '*Scholia in Proverbia (fragmenta e catenis)': ['Scholion', 'line'], '9Institutio sive Paraenesis ad monachos (recensio brevior)': ['Volume', 'page', 'line'], '0Tractatus ad Eulogium (sub nomine Nili Ancyrani)': ['Volume', 'page', 'line'], 'BDe vitiis quae opposita sunt virtutibus (sub nomine Nili Ancyrani)': ['Volume', 'page', 'line'], '5De malignis cogitationibus (sub nomine Nili Ancyrani)': ['Volume', 'page', 'line'], '1Spiritales sententiae per alphabeticum dispositae': ['Chapter', 'line'], 'Rerum monachalium rationes': ['Volume', 'page', 'line'], '$*EI)S TO\\ PIPI& [Sp.]': ['line'], 'aDe magistris et discipulis (sub nomine Nili Ancyrani) (fragmenta e codd. Paris. gr. 1188 %7 1066)': ['line'], ':Capitula xxxiii (definitiones passionum animae rationalis)': ['Volume', 'page', 'line'], 'Aliae sententiae': ['Chapter', 'line'], 'Sententiae ad monachos': ['Sententia', 'line'], 'Sententiae ad virginem': ['Sententia', 'line'], '-Scholia in Ecclesiasten (fragmenta e catenis)': ['Scholion', 'line'], ' Expositio in Proverbia Salomonis': ['Page', 'line'], '&De oratione (sub nomine Nili Ancyrani)': ['Volume', 'page', 'line'], 'Gnosticus (fragmenta Graeca)': ['Chapter', 'line']}}, 'Alcmaeonis': {'tlg_id': 'TLG0696', 'names': {'name_authtab': 'Alcmaeonis', 'name_idt': 'Alcmaeonis'}, 'works': {'Alcmaeonis (fragmenta)': ['Fragment', 'line']}}, 'Cassius Dio Hist.': {'tlg_id': 'TLG0385', 'names': {'name_authtab': 'Cassius Dio Hist., Dio Cassius', 'name_idt': 'Cassius Dio Hist.'}, 'works': {'': ['Historiae Romanae', 'Book', 'chapter', 'section', 'line'], 'GHistoriae Romanae (excerpta Constantiniana cum Dionis verbis composita)': ['Fragment', 'line'], '*Historiae Romanae (versio 2 in volumine 3)': ['Book', 'chapter', 'section', 'line'], 'Reliquiae incertae sedis': ['Fragment', 'section', 'line'], '*Historiae Romanae (versio 1 in volumine 2)': ['Book', 'chapter', 'section', 'line'], '.Historiae Romanae (ap. Photium, Bibl. cod. 71)': ['line'], '*Historiae Romanae (versio 2 in volumine 2)': ['Book', 'chapter', 'section', 'line'], '*Historiae Romanae (versio 1 in volumine 1)': ['Page', 'line'], '@Historiae Romanae (Joannis Antiocheni excerpta e Dione derivata)': ['Page', 'line'], '*Historiae Romanae (versio 2 in volumine 1)': ['Page', 'line'], "'Historiae Romanae (excerpta Salmasiana)": ['Page', 'line'], 'Testimonia': ['line', 'fragment', 'line'], '%Historiae Romanae (Xiphilini epitome)': ['Dindorf-Stephanus page', 'line'], '*Historiae Romanae (versio 1 in volumine 3)': ['Book', 'chapter', 'section', 'line'], '%Historiae Romanae (excerpta Planudea)': ['Excerpt', 'line'], '*Historiae Romanae (versio 3 in volumine 1)': ['Page', 'line'], '@Historiae Romanae (Petri Patricii excerpta Vaticana sive Maiana)': ['Excerpt', 'line']}}, 'Joannes Med.': {'tlg_id': 'TLG0727', 'names': {'name_authtab': 'Joannes Med.', 'name_idt': 'Joannes Med.'}, 'works': {'1Commentarii in Hippocratis librum de natura pueri': ['Volume', 'page', 'line']}}, 'Calliphon et Democedes Med., Phil.': {'tlg_id': 'TLG2218', 'names': {'name_authtab': 'Calliphon et Democedes Med. et Phil.', 'name_idt': 'Calliphon et Democedes Med., Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Joannes Antiochenus Hist.': {'tlg_id': 'TLG4394', 'names': {'name_authtab': 'Joannes Antiochenus Hist.', 'name_idt': 'Joannes Antiochenus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Moderatus Phil.': {'tlg_id': 'TLG1890', 'names': {'name_authtab': 'Moderatus Phil.', 'name_idt': 'Moderatus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Theodorus Math.': {'tlg_id': 'TLG2237', 'names': {'name_authtab': 'Theodorus Math.', 'name_idt': 'Theodorus Math.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Clearchus Comic.': {'tlg_id': 'TLG0432', 'names': {'name_authtab': 'Clearchus Comic.', 'name_idt': 'Clearchus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Fragmenta Adespota (SH)': {'tlg_id': 'TLG2646', 'names': {'name_authtab': 'Fragmenta Adespota (SH)', 'name_idt': 'Fragmenta Adespota (SH)'}, 'works': {'Frustula adespota ex auctoribus': ['Fragment', 'line']}}, 'Leontius Scr. Eccl.': {'tlg_id': 'TLG2914', 'names': {'name_authtab': 'Leontius Scr. Eccl.', 'name_idt': 'Leontius Scr. Eccl.'}, 'works': {'In Job (homilia 5)': ['line'], 'IIn nativitatem Christi (homilia 12) (olim sub nomine Joannis Chrysostomi)': ['line'], '?In ramos palmarum (homilia 3a) (sub nomine Joannis Chrysostomi)': ['line'], 'In mesopentecosten (homilia 10)': ['line'], 'CIn ramos palmarum (homilia 3) (olim sub nomine Joannis Chrysostomi)': ['line'], 'In Job (homilia 4)': ['line'], '.In natale sancti Joannis prophetae (homilia 1)': ['line'], '1In uxorem Job et in proditionem Judae (homilia 6)': ['line'], 'AIn pentecosten (homilia 13) (olim sub nomine Joannis Chrysostomi)': ['line'], 'GIn transfigurationem (homilia 14) (olim sub nomine Joannis Chrysostomi)': ['line'], 'In pentecosten (homilia 11)': ['line'], 'In sanctum pascha (homilia 8)': ['line'], '!In sanctam parasceven (homilia 7)': ['line'], '$In resurrectionem domini (homilia 9)': ['line'], 'In ramos palmarum (homilia 2)': ['line']}}, 'Lucianus Soph.': {'tlg_id': 'TLG0062', 'names': {'name_authtab': 'Lucianus Soph.', 'name_idt': 'Lucianus Soph.'}, 'works': {'': ['Dialogi mortuorum', 'Dialogue', 'section', 'line'], 'Dialogi deorum': ['Dialogue', 'section', 'line'], 'Icaromenippus': ['Section', 'line'], 'Cataplus': ['Section', 'line'], 'Timon': ['Section', 'line'], 'Muscae encomium': ['Section', 'line'], 'Zeuxis': ['Section', 'line'], 'De astrologia': ['Section', 'line'], 'Gallus': ['Section', 'line'], 'Herodotus': ['Section', 'line'], 'Rhetorum praeceptor': ['Section', 'line'], 'Saturnalia': ['Section', 'line'], 'Abdicatus': ['Section', 'line'], 'De domo': ['Section', 'line', ''], 'Charon sive contemplantes': ['Section', 'line'], 'Patriae encomium': ['Section', 'line', '\x8c', '>\x12'], 'Pro imaginibus': ['Section', 'line'], 'Calumniae non temere credendum': ['Section', 'line'], 'Scytha': ['Section', 'line'], 'Verae historiae': ['Chapter', 'section', 'line'], 'Menippus sive necyomantia': ['Section', 'line'], 'Demonax': ['Section', 'line'], 'De saltatione': ['Section', 'line'], 'Symposium': ['Section', 'line'], 'De morte Peregrini': ['Section', 'line'], 'De sacrificiis': ['Section', 'line'], 'Phalaris': ['Chapter', 'section', 'line'], 'Juppiter confutatus': ['Section', 'line'], '+De mercede conductis potentium familiaribus': ['Section', 'line'], 'Nigrinus': ['Section', 'line'], 'Apologia': ['Section', 'line'], 'Eunuchus': ['Section', 'line'], 'De luctu': ['Section', 'line'], 'Dialogi marini': ['Dialogue', 'section', 'line'], 'Juppiter tragoedus': ['Section', 'line'], 'Hesiodus': ['Section', 'line'], 'Harmonides': ['Section', 'line'], "'Lis consonantium (%6 Judicium vocalium)": ['Section', 'line'], 'Revivescentes sive piscator': ['Section', 'line'], 'Alexander': ['Section', 'line'], 'Electrum': ['Section', 'line'], 'Bis accusatus sive tribunalia': ['Section', 'line'], 'Dipsades': ['Section', 'line'], 'Philopseudes sive incredulus': ['Section', 'line'], 'Fugitivi': ['Section', 'line'], 'Lexiphanes': ['Section', 'line'], 'Prometheus es in verbis': ['Section', 'line'], '*Adversus indoctum et libros multos ementem': ['Section', 'line'], 'Vitarum auctio': ['Section', 'line'], 'Dialogi meretricii': ['Dialogue', 'section', 'line'], 'Prometheus': ['Section', 'line'], 'Toxaris vel amicitia': ['Section', 'line'], 'Hermotimus': ['Section', 'line'], 'De Syria dea': ['Section', 'line'], 'Podagra': ['line'], 'Anacharsis': ['Section', 'line'], 'Pro lapsu inter salutandum': ['Section', 'line'], 'Somnium sive vita Luciani': ['Section', 'line'], "'De parasito sive artem esse parasiticam": ['Section', 'line'], 'Hercules': ['Section', 'line'], 'Hippias': ['Section', 'line'], 'Imagines': ['Section', 'line'], 'Macrobii': ['Section', 'line'], 'Deorum concilium': ['Section', 'line'], '!Quomodo historia conscribenda sit': ['Section', 'line'], 'Navigium': ['Section', 'line'], 'Soloecista': ['Section', 'line'], 'Dearum judicium': ['Section', 'line'], 'Bacchus': ['Section', 'line'], 'Pseudologista': ['Section', 'line'], 'Tyrannicida': ['Section', 'line']}}, 'Mnesimachus Comic.': {'tlg_id': 'TLG0476', 'names': {'name_authtab': 'Mnesimachus Comic.', 'name_idt': 'Mnesimachus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Pisistrati Epistula': {'tlg_id': 'TLG0049', 'names': {'name_authtab': 'Pisistrati Epistula', 'name_idt': 'Pisistrati Epistula'}, 'works': {'Epistula': ['line']}}, 'Critias Eleg., Phil., Trag.': {'tlg_id': 'TLG0319', 'names': {'name_authtab': 'Critias Eleg., Phil. et Trag.', 'name_idt': 'Critias Eleg., Phil., Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line'], '2Pirithous (fragmenta) (P. Oxy. 17.2078 %7 50.3531)': ['Fragment', 'line']}}, 'Phylarchus Hist.': {'tlg_id': 'TLG1609', 'names': {'name_authtab': 'Phylarchus Hist.', 'name_idt': 'Phylarchus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Didache XII Apostolorum': {'tlg_id': 'TLG1311', 'names': {'name_authtab': 'Didache XII Apostolorum', 'name_idt': 'Didache XII Apostolorum'}, 'works': {'$*DIDAXAI\\ TW=N A)POSTOLW=N&': ['Chapter', 'section', 'line']}}, 'Philyllius Comic.': {'tlg_id': 'TLG0494', 'names': {'name_authtab': 'Philyllius Comic.', 'name_idt': 'Philyllius Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Apollodorus Phil.': {'tlg_id': 'TLG2319', 'names': {'name_authtab': 'Apollodorus Phil.', 'name_idt': 'Apollodorus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Herillus Phil.': {'tlg_id': 'TLG2169', 'names': {'name_authtab': 'Herillus Phil.', 'name_idt': 'Herillus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aristias Trag.': {'tlg_id': 'TLG0305', 'names': {'name_authtab': 'Aristias Trag.', 'name_idt': 'Aristias Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Antagoras Epic.': {'tlg_id': 'TLG0215', 'names': {'name_authtab': 'Antagoras Epic.', 'name_idt': 'Antagoras Epic.'}, 'works': {'Epigrammata': ['Book', 'epigram', 'line']}}, 'Tynnichus Lyr.': {'tlg_id': 'TLG0367', 'names': {'name_authtab': 'Tynnichus Lyr.', 'name_idt': 'Tynnichus Lyr.'}, 'works': {'Fragmentum': ['line']}}, 'Eusebius Scr. Eccl.': {'tlg_id': 'TLG4124', 'names': {'name_authtab': 'Eusebius Scr. Eccl.', 'name_idt': 'Eusebius Scr. Eccl.'}, 'works': {'.Fragmenta in epistulam ad Galatas (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], ';Fragmentum in epistulam i ad Corinthios (in catenis) [Dub.]': ['Page', 'line']}}, 'Archytas Phil.': {'tlg_id': 'TLG1177', 'names': {'name_authtab': 'Pseudo-Archytas Phil.', 'name_idt': 'Archytas Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Hermonax Epic.': {'tlg_id': 'TLG1425', 'names': {'name_authtab': 'Hermonax Epic.', 'name_idt': 'Hermonax Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Perictione Phil.': {'tlg_id': 'TLG1572', 'names': {'name_authtab': 'Perictione Phil.', 'name_idt': 'Perictione Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Historia Monachorum In Aegypto': {'tlg_id': 'TLG2744', 'names': {'name_authtab': 'Historia Monachorum In Aegypto', 'name_idt': 'Historia Monachorum In Aegypto'}, 'works': {'Historia monachorum in Aegypto': ['Vita', 'line']}}, 'Arcesilaus Comic.': {'tlg_id': 'TLG0520', 'names': {'name_authtab': 'Arcesilaus Comic.', 'name_idt': 'Arcesilaus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Parodica Anonyma': {'tlg_id': 'TLG1801', 'names': {'name_authtab': 'Parodica Anonyma', 'name_idt': 'Parodica Anonyma'}, 'works': {'Incertorum fragmenta': ['Fragment', 'line'], 'Fragmenta dubia': ['Fragment', 'line']}}, 'Anonymus Alexandri Phil.': {'tlg_id': 'TLG1132', 'names': {'name_authtab': 'Anonymus Alexandri Phil.', 'name_idt': 'Anonymus Alexandri Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Apollophanes Phil.': {'tlg_id': 'TLG2168', 'names': {'name_authtab': 'Apollophanes Phil.', 'name_idt': 'Apollophanes Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Periander Phil.': {'tlg_id': 'TLG0629', 'names': {'name_authtab': 'Periander Phil.', 'name_idt': 'Periander Phil.'}, 'works': {'Epistulae [Sp.]': ['Epistle', 'line']}}, 'Etymologia Alphabeti': {'tlg_id': 'TLG4287', 'names': {'name_authtab': 'Etymologia Alphabeti', 'name_idt': 'Etymologia Alphabeti'}, 'works': {'Etymologia alphabeti': ['Page', 'line']}}, 'Leucippus Phil.': {'tlg_id': 'TLG1461', 'names': {'name_authtab': 'Leucippus Phil.', 'name_idt': 'Leucippus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Choerilus Trag.': {'tlg_id': 'TLG0302', 'names': {'name_authtab': 'Choerilus Trag.', 'name_idt': 'Choerilus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pappus Math.': {'tlg_id': 'TLG2032', 'names': {'name_authtab': 'Pappus Math.', 'name_idt': 'Pappus Math.'}, 'works': {'Synagoge': ['Book', 'page', 'line'], '2Commentaria in Ptolemaei syntaxin mathematicam 5-6': ['Page', 'line']}}, 'Vitae Aristotelis': {'tlg_id': 'TLG2695', 'names': {'name_authtab': 'Vitae Aristotelis', 'name_idt': 'Vitae Aristotelis'}, 'works': {'DVita Marciana (post epitomen Ptolemaeeae vitae) (cod. Marc. gr. 257)': ['Section', 'line'], '.Vita vulgata (post epitomen Ptolemaeeae vitae)': ['Section', 'line']}}, 'Aeschines Orat.': {'tlg_id': 'TLG0026', 'names': {'name_authtab': 'Aeschines Orat.', 'name_idt': 'Aeschines Orat.'}, 'works': {'In Timarchum': ['Section', 'line'], 'In Ctesiphontem': ['Section', 'line'], 'Epistulae [Sp.]': ['Epistle', 'section', 'line'], 'De falsa legatione': ['Section', 'line']}}, 'Philo Med.': {'tlg_id': 'TLG0706', 'names': {'name_authtab': 'Philo Med.', 'name_idt': 'Philo Med.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Melampus Scriptor De Divinatione': {'tlg_id': 'TLG1365', 'names': {'name_authtab': 'Melampus Scriptor De Divinatione', 'name_idt': 'Melampus Scriptor De Divinatione'}, 'works': {'@$*PERI\\ PALMW=N MANTIKH\\ PRO\\S *PTOLEMAI=ON BASILE/A& (versio A)': ['Section', 'line'], 'M$*PERI\\ PALMW=N A)RXOME/NOU A)PO\\ KEFALH=S E(/WS PODW=N& (e cod. Berol. 1577)': ['Section', 'line'], 'A$*PERI\\ PALMW=N TI/ SHMAI/NOUSIN E)N E(KA/STW| ME/REI& (versio P)': ['Section', 'line'], ';$*PERI\\ E)LAIW=N TOU= SW/MATOS PRO\\S *PTOLEMAI=ON BASILE/A&': ['Page', 'line']}}, 'Ar(i)aethus Hist.': {'tlg_id': 'TLG2215', 'names': {'name_authtab': 'Ar(i)aethus Hist.', 'name_idt': 'Ar(i)aethus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Telegonia': {'tlg_id': 'TLG4163', 'names': {'name_authtab': 'Telegonia', 'name_idt': 'Telegonia'}, 'works': {'Telegonia (fragmentum)': ['Fragment', 'line']}}, 'Apion Gramm.': {'tlg_id': 'TLG1152', 'names': {'name_authtab': 'Apion Gramm.', 'name_idt': 'Apion Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta de glossis Homericis': ['Fragment', 'line']}}, 'Dionis Epistulae': {'tlg_id': 'TLG1327', 'names': {'name_authtab': 'Dionis Epistulae', 'name_idt': 'Dionis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Balbilla Lyr.': {'tlg_id': 'TLG1213', 'names': {'name_authtab': 'Julia Balbilla Lyr.', 'name_idt': 'Balbilla Lyr.'}, 'works': {'Epigrammata': ['Epigram', 'line']}}, 'Nessas Phil.': {'tlg_id': 'TLG2456', 'names': {'name_authtab': 'Nessas Phil.', 'name_idt': 'Nessas Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Theognostus Gramm.': {'tlg_id': 'TLG3128', 'names': {'name_authtab': 'Theognostus Gramm.', 'name_idt': 'Theognostus Gramm.'}, 'works': {'Canones sive De orthographia': ['Section', 'line']}}, 'Clemens Romanus et Clementina Theol.': {'tlg_id': 'TLG1271', 'names': {'name_authtab': 'Clemens Romanus Theol. et Clementina', 'name_idt': 'Clemens Romanus et Clementina Theol.'}, 'works': {'': ['Contestatio [Sp.]', 'Chapter', 'section', 'line'], ' Recognitiones (ex Eusebio) [Sp.]': ['Book', 'chapter', 'line'], 'Epistula i ad Corinthios': ['Chapter', 'section', 'line'], 'Recognitiones [Sp.]': ['Book', 'chapter', 'section', 'line'], 'CPseudo-Clementina (epitome de gestis Petri praemetaphrastica) [Sp.]': ['Section', 'line'], "'Recognitiones (e Pseudo-Caesario) [Sp.]": ['Book', 'chapter', 'line'], 'Epistula Petri ad Jacobum [Sp.]': ['Chapter', 'section', 'line'], '#Epistula Clementis ad Jacobum [Sp.]': ['Chapter', 'section', 'line'], 'DPseudo-Clementina (epitome altera auctore Symeone Metaphrasta) [Sp.]': ['Section', 'line'], 'Epistulae de virginitate [Sp.]': ['Book', 'chapter', 'section', 'line'], 'Homiliae [Sp.]': ['Homily', 'chapter', 'section', 'line'], 'Epistula ii ad Corinthios [Sp.]': ['Chapter', 'section', 'line']}}, 'Praxilla Lyr.': {'tlg_id': 'TLG0372', 'names': {'name_authtab': 'Praxilla Lyr.', 'name_idt': 'Praxilla Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philippus Hist.': {'tlg_id': 'TLG1590', 'names': {'name_authtab': 'Philippus Hist.', 'name_idt': 'Philippus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cineas Rhet.': {'tlg_id': 'TLG2417', 'names': {'name_authtab': 'Cineas Rhet.', 'name_idt': 'Cineas Rhet.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Theages Phil.': {'tlg_id': 'TLG1710', 'names': {'name_authtab': 'Theages Phil.', 'name_idt': 'Theages Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Diocles Comic.': {'tlg_id': 'TLG0443', 'names': {'name_authtab': 'Diocles Comic.', 'name_idt': 'Diocles Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Philetaerus Comic.': {'tlg_id': 'TLG0489', 'names': {'name_authtab': 'Philetaerus Comic.', 'name_idt': 'Philetaerus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Archemachus Hist.': {'tlg_id': 'TLG1174', 'names': {'name_authtab': 'Archemachus Hist.', 'name_idt': 'Archemachus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Menophilus Poeta': {'tlg_id': 'TLG2631', 'names': {'name_authtab': 'Menophilus Poeta', 'name_idt': 'Menophilus Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Joel Chronogr.': {'tlg_id': 'TLG3140', 'names': {'name_authtab': 'Joel Chronogr.', 'name_idt': 'Joel Chronogr.'}, 'works': {'Chronographia compendiaria': ['Page', 'line']}}, 'Oratio Josephi': {'tlg_id': 'TLG1552', 'names': {'name_authtab': 'Oratio Josephi', 'name_idt': 'Oratio Josephi'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Paron Phil.': {'tlg_id': 'TLG2227', 'names': {'name_authtab': 'Paron Phil.', 'name_idt': 'Paron Phil.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, 'Chares Gnom.': {'tlg_id': 'TLG1256', 'names': {'name_authtab': 'Chares Gnom.', 'name_idt': 'Chares Gnom.'}, 'works': {'Sententiae': ['Sententia', 'line']}}, 'Philoxenus Gramm.': {'tlg_id': 'TLG1602', 'names': {'name_authtab': 'Philoxenus Gramm.', 'name_idt': 'Philoxenus Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line', '³³³', '³³', '³³³³\x12³³¶³³\x14³´³\x15³´\x15´´\x16´³´¶\x16´\x16´´\x16´\x16´³¶³´ ¶³¶"']}}, 'Anaxippus Comic.': {'tlg_id': 'TLG0407', 'names': {'name_authtab': 'Anaxippus Comic.', 'name_idt': 'Anaxippus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Anaximenes Phil.': {'tlg_id': 'TLG0617', 'names': {'name_authtab': 'Anaximenes Phil.', 'name_idt': 'Anaximenes Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Anaxagoras Phil.': {'tlg_id': 'TLG0713', 'names': {'name_authtab': 'Anaxagoras Phil.', 'name_idt': 'Anaxagoras Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Euthycles Comic.': {'tlg_id': 'TLG0462', 'names': {'name_authtab': 'Euthycles Comic.', 'name_idt': 'Euthycles Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Heraclitus Paradox.': {'tlg_id': 'TLG1413', 'names': {'name_authtab': 'Heraclitus Paradox.', 'name_idt': 'Heraclitus Paradox.'}, 'works': {'': ['De incredibilibus', 'Section', 'line']}}, 'Pelagius Alchem.': {'tlg_id': 'TLG2019', 'names': {'name_authtab': 'Pelagius Alchem.', 'name_idt': 'Pelagius Alchem.'}, 'works': {'j$*PELAGI/OU FILOSO/FOU PERI\\ TH=S QEI/AS TAU/THS KAI\\ I(ERA=S TE/XNHS &(e cod. Venet. Marc. 299, fol. 62v)': ['Volume', 'page', 'line']}}, '[Dercyllus] Hist.': {'tlg_id': 'TLG2196', 'names': {'name_authtab': '[Dercyllus] Hist.', 'name_idt': '[Dercyllus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, '(H)eren(n)ius Philo Gramm., Hist.': {'tlg_id': 'TLG1416', 'names': {'name_authtab': '(H)eren(n)ius Philo Gramm. et Hist.', 'name_idt': '(H)eren(n)ius Philo Gramm., Hist.'}, 'works': {"qDe diversis verborum significationibus (%6 $*PERI\\ DIAFO/ROUS SHMASI/AS KAT' A)LFA/BHTON&) (epitome operis Herenn": ['', 'Alphabetic letter', 'entry', 'line', 'Æíî', 'óîê', 'ë\x0f\x0f\x10ú\x10', '\x10ú¿', '', '', ''], 'qDe aetatum cognitione (%6 $*GNW=SIS PERI\\ H(LIKIW=N& (epitome opusculi sub nomine Herennii Philonis) (e codd. Amb': ['line'], 'Testimonia': ['line', 'fragment', 'line'], 'qDe propria dictione (%6$ *PERI\\ KURIOLECI/AS& (epitome operis sub nomine Herennii Philonis) (e cod. Venet. Marcia': ['Entry', 'line'], 'qDe diversis verborum significationibus (%6 $*PERI\\ DIAFO/ROUS SHMASI/AS&) (epitome operis Herennii Philonis) (e c': ['', 'Alphabetic letter', 'entry', 'line'], 'Fragmenta': ['Fragment', 'line', 'ÈÊ', '', '\x14\x15\x15\x16\x16'], 'qDe adfinium vocabulorum differentia (lexeis additae e similibus epitomis operis ejusdem cum titulis aliis e codic': ['Lexical entry', 'line']}}, 'Hippodamus Phil.': {'tlg_id': 'TLG1436', 'names': {'name_authtab': 'Hippodamus Phil.', 'name_idt': 'Hippodamus Phil.'}, 'works': {'Fragmenta [Sp.]': ['Page', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Armenidas Hist.': {'tlg_id': 'TLG0360', 'names': {'name_authtab': 'Armenidas Hist.', 'name_idt': 'Armenidas Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Julianus Scr. Eccl.': {'tlg_id': 'TLG4105', 'names': {'name_authtab': 'Julianus Scr. Eccl.', 'name_idt': 'Julianus Scr. Eccl.'}, 'works': {'Commentarius in Job': ['Page', 'line']}}, 'Leschides Epic.': {'tlg_id': 'TLG1967', 'names': {'name_authtab': 'Leschides Epic.', 'name_idt': 'Leschides Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Theagenes Phil.': {'tlg_id': 'TLG2275', 'names': {'name_authtab': 'Theagenes Phil.', 'name_idt': 'Theagenes Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Pancrates Epic.': {'tlg_id': 'TLG1555', 'names': {'name_authtab': 'Pancrates Epic.', 'name_idt': 'Pancrates Epic.'}, 'works': {'Fragmentum': ['line', 'fragment', 'line'], 'Fragmenta': ['\x0fFragment+column', 'line'], 'Testimonium': ['line', 'fragment', 'line']}}, 'Philostephanus Hist.': {'tlg_id': 'TLG0584', 'names': {'name_authtab': 'Philostephanus Hist.', 'name_idt': 'Philostephanus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dionysius Halicarnassensis Hist., Rhet.': {'tlg_id': 'TLG0081', 'names': {'name_authtab': 'Dionysius Halicarnassensis Hist. et Rhet.', 'name_idt': 'Dionysius Halicarnassensis Hist., Rhet.'}, 'works': {'De Isaeo': ['Section', 'line'], 'Antiquitates Romanae': ['Book', 'chapter', 'section', 'line', '\x92\x12º\x13¤\x8e\x92\x17\x92\x8c\x92\x1b0Iby«ÇßI\x1b'], 'Ad Ammaeum': ['Section', 'line'], 'Epistula ad Pompeium Geminum': ['Chapter', 'section', 'line'], 'Ars rhetorica [Sp.]': ['Chapter', 'section', 'line'], 'De Dinarcho': ['Section', 'line'], 'De Isocrate': ['Section', 'line'], 'De imitatione (fragmenta)': ['Fragment', 'line'], '/De Thucydidis idiomatibus (epistula ad Ammaeum)': ['Section', 'line'], 'De compositione verborum': ['Section', 'line'], 'Testimonium': ['line', 'fragment', 'line'], '.Libri secundi de antiquis oratoribus reliquiae': ['Section', 'line'], 'De Demosthenis dictione': ['Section', 'line'], '"De compositione verborum (epitome)': ['Section', 'line'], 'De Thucydide': ['Section', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'De antiquis oratoribus': ['Section', 'line'], 'De Lysia': ['Section', 'line']}}, 'Dexippus Hist.': {'tlg_id': 'TLG2141', 'names': {'name_authtab': 'Publius Herennius Dexippus Hist.', 'name_idt': 'Dexippus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cosmas Hieromonachus Alchem.': {'tlg_id': 'TLG4330', 'names': {'name_authtab': 'Cosmas Hieromonachus Alchem.', 'name_idt': 'Cosmas Hieromonachus Alchem.'}, 'works': {'q$*(ERMHNEI/A TH=S E)PISTH/MHS TH=S XRUSOPOII/AS I(EROMONA/XOU TOU= *KOSMA= &(e cod. Paris. B.N. gr. 2327, fol. 15': ['Volume', 'page', 'line']}}, 'Maximus Rhet.': {'tlg_id': 'TLG2025', 'names': {'name_authtab': 'Maximus Rhet.', 'name_idt': 'Maximus Rhet.'}, 'works': {'C$*PERI\\ TW=N A)LU/TWN A)NTIQE/SEWN &(fort. auctore Maximo Byzantio)': ['Volume', 'page', 'line']}}, 'Iophon Trag.': {'tlg_id': 'TLG0311', 'names': {'name_authtab': 'Iophon Trag.', 'name_idt': 'Iophon Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, '[Agathon] Hist.': {'tlg_id': 'TLG2566', 'names': {'name_authtab': '[Agathon] Hist.', 'name_idt': '[Agathon] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Alexis Comic.': {'tlg_id': 'TLG0402', 'names': {'name_authtab': 'Alexis Comic.', 'name_idt': 'Alexis Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Diophantus Hist.': {'tlg_id': 'TLG2539', 'names': {'name_authtab': 'Diophantus Hist.', 'name_idt': 'Diophantus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Archias Epigr.': {'tlg_id': 'TLG0127', 'names': {'name_authtab': 'Aulus Licinius Archias Epigr.', 'name_idt': 'Archias Epigr.'}, 'works': {'Epigramma': ['Epigram', 'line']}}, 'Patrocles Hist.': {'tlg_id': 'TLG2479', 'names': {'name_authtab': 'Patrocles Hist.', 'name_idt': 'Patrocles Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Joannes Malalas Chronogr.': {'tlg_id': 'TLG2871', 'names': {'name_authtab': 'Joannes Malalas Chronogr.', 'name_idt': 'Joannes Malalas Chronogr.'}, 'works': {'@Chronologica (fort. auctore anonymo excerptorum chronologicorum)': ['Page', 'line'], 'Chronographia': ['Page', 'line'], '.Chronographia (eclogae e cod. Paris. gr. 1336)': ['Page', 'line']}}, 'Scholia In Pindarum': {'tlg_id': 'TLG5034', 'names': {'name_authtab': 'Scholia In Pindarum', 'name_idt': 'Scholia In Pindarum'}, 'works': {'bScholia in Pythia v-vii (scholia vetera et recentiora Thomae Magistri et Triclinii) (e cod. Flor.)': ['Ode', 'scholion', 'line'], '6Capitula ad praefationem scholiorum ad Pindari carmina': ['Page', 'line'], '$Scholia in Pindarum (scholia vetera)': ['Ode', 'scholion', 'line'], '3Scholia in paeanes (scholia vetera) (P. Oxy. 5.841)': ['Paean', 'scholion', 'line'], 'qScholia et glossae in Olympia et Pythia (scholia recentiora Triclinii, Thomae Magistri, Moschopuli, Germani) (col': ['Ode-treatise', '\x10scholion-section', 'line'], '^Scholia in Nemea et Isthmia (scholia vetera et recentiora partim Thomae Magistri et Triclinii)': ['Ode', 'scholion', 'line'], 'mScholia in Pindarum (scholia vetera et recentiora partim Thomae Magistri et Alexandri Phortii) (e cod. Patm.)': ['Ode', 'scholion', 'line']}}, 'Timachidas Hist.': {'tlg_id': 'TLG1732', 'names': {'name_authtab': 'Timachidas Hist.', 'name_idt': 'Timachidas Hist.'}, 'works': {'Fragmenta et tituli': ['Fragment', 'line']}}, 'Scholia In Theocritum': {'tlg_id': 'TLG5038', 'names': {'name_authtab': 'Scholia In Theocritum', 'name_idt': 'Scholia In Theocritum'}, 'works': {'&Scholia in Theocritum (scholia vetera)': ['\x1aProlegomenon-anecdote-poem', 'section-verse', 'line']}}, 'Heraclides Gramm.': {'tlg_id': 'TLG1408', 'names': {'name_authtab': 'Heraclides Gramm.', 'name_idt': 'Heraclides Gramm.'}, 'works': {'T$*PERI\\ DUSKLI/TWN R(HMA/TWN &(fragmentum) (P. Rain. 3.33A %6 P. Vindob. gr. 29815A)': ['line'], 'Fragmenta': ['Fragment', 'line']}}, 'Hephaestion Gramm.': {'tlg_id': 'TLG1402', 'names': {'name_authtab': 'Hephaestion Gramm.', 'name_idt': 'Hephaestion Gramm.'}, 'works': {'De poematis': ['Page', 'line'], 'Enchiridion de metris': ['Page', 'line'], 'Introductio metrica': ['Page', 'line'], 'De signis': ['Page', 'line'], 'Fragmenta Hephaestionea': ['Page', 'line']}}, 'Scholia In Platonem': {'tlg_id': 'TLG5035', 'names': {'name_authtab': 'Scholia In Platonem', 'name_idt': 'Scholia In Platonem'}, 'works': {'0Scholia in Platonem (scholia recentiora Arethae)': ['Dialogue', 'Stephanus page', 'line'], '$Scholia in Platonem (scholia vetera)': ['Dialogue', 'Stephanus page', 'line', 'ÐÝ', 'Ç¿¿óÉ×óúó\x17ÍîÆ\x18ÈÍ\x18ÈÍí\x18Éî\x92\x19Íë\x19Ã\x19ÒÇÌÛóûóÍóÇíó&ùóó(Ãó)Íî»)ÌùöúÉÊóó÷óÇÉ:îÍÛà;¾ÎÜóë>?Êóö÷?Öú?íüó?Óó??óÃÃÐÐíÐÓíÐü\x0e\x0eÈ\x0fí\x0f\x0fÃí\x10Ì\x10Ìù\x10', 'Ð', 'Ç\x15\x17Íî\x18ÈÍ\x18ÈÍ\x18Éî\x19Í\x19Ã\x19Ò&ù&&ó(Ã)Íî)Ìù/ó888:î;;;;Û;>?Êó?Ö?í?Óó??Q@']}}, 'Amometus Hist.': {'tlg_id': 'TLG2445', 'names': {'name_authtab': 'Amometus Hist.', 'name_idt': 'Amometus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Nico Comic.': {'tlg_id': 'TLG0479', 'names': {'name_authtab': 'Nico Comic.', 'name_idt': 'Nico Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Agathias Scholasticus Epigr., Hist.': {'tlg_id': 'TLG4024', 'names': {'name_authtab': 'Agathias Scholasticus Epigr. et Hist.', 'name_idt': 'Agathias Scholasticus Epigr., Hist.'}, 'works': {'Historiae': ['Page', 'line']}}, 'Dionysius Geogr.': {'tlg_id': 'TLG0083', 'names': {'name_authtab': 'Dionysius Geogr.', 'name_idt': 'Dionysius Geogr.'}, 'works': {'Per Bosporum navigatio': ['Section', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Thomas Magister Philol.': {'tlg_id': 'TLG9023', 'names': {'name_authtab': 'Thomas Magister Philol.', 'name_idt': 'Thomas Magister Philol.'}, 'works': {'$Ecloga nominum et verborum Atticorum': ['', 'Alphabetic letter', 'page', 'line'], 'Poemata de Arato [Dub.]': ['Poem', 'line']}}, 'Dionysius Scymnaeus Trag. vel Comic.': {'tlg_id': 'TLG0350', 'names': {'name_authtab': 'Dionysius Scymnaeus Trag. vel Comic.', 'name_idt': 'Dionysius Scymnaeus Trag. vel Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Lexica Synonymica': {'tlg_id': 'TLG4307', 'names': {'name_authtab': 'Lexica Synonymica', 'name_idt': 'Lexica Synonymica'}, 'works': {'RDifferentiae verborum (e cod. Paris. suppl. gr. 1238 servante litteram $A &tantum)': ['Alphabetic entry', 'line'], 'oDe differentia vocabulorum (%6 $*PERI\\ DIAFORA=S LE/CEWN&) (e cod. Vat. gr. 2226, servante litteram $A &tantum)': ['line'], 'TExcerptum Casanatense sive Ecloga $DIAFO/RWN LE/CEWN &(e cod. bibl. Casanatense 264)': ['Entry', 'line']}}, 'Theodorus Theol.': {'tlg_id': 'TLG4135', 'names': {'name_authtab': 'Theodorus Theol.', 'name_idt': 'Theodorus Theol.'}, 'works': {'.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], '4Fragmenta in epistulam ii ad Corinthios (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam i ad Corinthios (in catenis)': ['Page', 'line'], '#Fragmenta in Matthaeum (in catenis)': ['Fragment', 'line'], '/Fragmenta in epistulam ad Hebraeos (in catenis)': ['Page', 'line']}}, 'Ephraem Scr. Eccl.': {'tlg_id': 'TLG1346', 'names': {'name_authtab': 'Ephraem Scr. Eccl.', 'name_idt': 'Ephraem Scr. Eccl.'}, 'works': {'De miraculo Clementis Romani': ['Page', 'line']}}, 'Iamblichus Phil.': {'tlg_id': 'TLG2023', 'names': {'name_authtab': 'Iamblichus Phil.', 'name_idt': 'Iamblichus Phil.'}, 'works': {'De vita Pythagorica': ['Chapter', 'section', 'line'], 'De communi mathematica scientia': ['Section', 'line'], '(In Nicomachi arithmeticam introductionem': ['Page', 'line'], 'Protrepticus': ['Page', 'line'], 'De mysteriis': ['Chapter', 'section', 'line'], 'Theologoumena arithmeticae': ['Page', 'line']}}, 'Phileas Scr. Eccl.': {'tlg_id': 'TLG2966', 'names': {'name_authtab': 'Phileas Scr. Eccl.', 'name_idt': 'Phileas Scr. Eccl.'}, 'works': {'%Epistula ad Thmuitanos (ap. Eusebium)': ['Section', 'line']}}, 'Apophthegmata': {'tlg_id': 'TLG2742', 'names': {'name_authtab': 'Apophthegmata', 'name_idt': 'Apophthegmata'}, 'works': {'.Quaestiones et responsa senum de tentationibus': ['\x0fQuestion+answer', 'line'], ']Apophthegmata patrum (collectio anonyma) (e codd. Coislin. 126, 127 %7 Paris. gr. 1596, 2474)': ['Page', 'line'], 'Dialogus de contemplatione': ['\x0fQuestion+answer', 'line'], 'HApophthegma patrum (e collectione anonyma) (e codd. Vat. gr. 1599, 1632)': ['Page', 'line'], '(De meditationibus duodecim anachoretarum': ['Section', 'line'], ',Apophthegmata patrum (collectio alphabetica)': ['Page', 'line'], '7Apophthegmata (collectio anonyma) (e cod. Coislin. 126)': ['Apophthegm', 'line'], '7Apophthegmata patrum (collectio systematica) (cap. 1-9)': ['Chapter', 'paragraph', 'line']}}, 'Basilis Hist.': {'tlg_id': 'TLG1218', 'names': {'name_authtab': 'Basilis Hist.', 'name_idt': 'Basilis Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Capito Hist.': {'tlg_id': 'TLG2506', 'names': {'name_authtab': 'Capito Hist.', 'name_idt': 'Capito Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cebes Phil.': {'tlg_id': 'TLG1247', 'names': {'name_authtab': 'Cebes Phil.', 'name_idt': 'Cebes Phil.'}, 'works': {'Cebetis tabula': ['Chapter', 'section', 'line']}}, 'Maeandrius Hist.': {'tlg_id': 'TLG2339', 'names': {'name_authtab': 'Maeandrius Hist.', 'name_idt': 'Maeandrius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Callinicus Soph.': {'tlg_id': 'TLG2189', 'names': {'name_authtab': 'Callinicus Soph.', 'name_idt': 'Callinicus Soph.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Cassius Iatrosophista Med.': {'tlg_id': 'TLG0733', 'names': {'name_authtab': 'Cassius Iatrosophista Med.', 'name_idt': 'Cassius Iatrosophista Med.'}, 'works': {')Quaestiones medicae et problemata physica': ['Section', 'line']}}, 'Aëtius Med.': {'tlg_id': 'TLG0718', 'names': {'name_authtab': 'Aëtius Med.', 'name_idt': 'Aëtius Med.'}, 'works': {'Iatricorum liber iii': ['Chapter', 'line'], 'Iatricorum liber xv': ['Chapter', 'line'], 'Iatricorum liber xi': ['Chapter', 'line'], 'Iatricorum liber viii': ['Chapter', 'line'], 'Iatricorum liber vi': ['Chapter', 'line'], 'Iatricorum liber iv': ['Chapter', 'line'], 'Iatricorum liber ix': ['Chapter', 'line'], 'Iatricorum liber xii': ['Chapter', 'line'], 'Iatricorum liber v': ['Chapter', 'line'], 'Iatricorum liber xvi': ['Chapter', 'line'], 'Iatricorum liber i': ['Chapter', 'line'], 'Iatricorum liber vii': ['Chapter', 'line'], 'Iatricorum liber ii': ['Chapter', 'line'], 'Iatricorum liber xiii': ['Chapter', 'line']}}, 'Straton Phil.': {'tlg_id': 'TLG1696', 'names': {'name_authtab': 'Straton Phil.', 'name_idt': 'Straton Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Gnomologium Vaticanum': {'tlg_id': 'TLG2945', 'names': {'name_authtab': 'Gnomologium Vaticanum', 'name_idt': 'Gnomologium Vaticanum'}, 'works': {'Gnomologium Vaticanum': ['Sententia', 'line']}}, 'Metrodorus Hist.': {'tlg_id': 'TLG1976', 'names': {'name_authtab': 'Metrodorus Hist.', 'name_idt': 'Metrodorus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heron Mech.': {'tlg_id': 'TLG0559', 'names': {'name_authtab': 'Heron Mech.', 'name_idt': 'Heron Mech.'}, 'works': {'Liber geeponicus [Sp.]': ['Section', 'line'], 'Geodaesia [Sp.]': ['Chapter', 'section', 'line'], 'Catoptrica': ['line'], 'Stereometrica': ['Chapter', 'subchapter', 'section', 'line'], 'Belopoeica': ['Section', 'line'], 'Fragmenta Heroniana': ['Fragment', 'section', 'line'], 'Fragmenta de horoscopiis': ['Fragment', 'line'], 'Metrica': ['Book', 'chapter', 'line'], 'Definitiones': ['Chapter', 'section', 'line'], 'Mechanicorum fragmenta': ['Book', 'fragment', 'line'], 'Dioptra': ['Section', 'line'], 'De automatis': ['Chapter', 'section', 'line'], 'De mensuris': ['Chapter', 'section', 'line'], '.$*XEIROBALLI/STRAS KATASKEUH\\ KAI\\ SUMMETRI/A&': ['Chapter', 'section', 'line'], 'Geometrica': ['Chapter', 'section', 'line'], 'Pneumatica': ['Book', 'chapter', 'line']}}, 'Theophanes Continuatus': {'tlg_id': 'TLG4153', 'names': {'name_authtab': 'Theophanes Continuatus', 'name_idt': 'Theophanes Continuatus'}, 'works': {'Chronographia (lib. 1-6)': ['Page', 'line']}}, 'Antenor Hist.': {'tlg_id': 'TLG2322', 'names': {'name_authtab': 'Antenor Hist.', 'name_idt': 'Antenor Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Bias Phil.': {'tlg_id': 'TLG1223', 'names': {'name_authtab': 'Bias Phil.', 'name_idt': 'Bias Phil.'}, 'works': {'Fragmentum': ['line'], 'Testimonium': ['line', 'fragment', 'line']}}, 'Euphorion Epic.': {'tlg_id': 'TLG0221', 'names': {'name_authtab': 'Euphorion Epic.', 'name_idt': 'Euphorion Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Callisthenes Hist.': {'tlg_id': 'TLG0534', 'names': {'name_authtab': 'Callisthenes Hist.', 'name_idt': 'Callisthenes Hist.'}, 'works': {'Testimonium et fragmentum': ['FGrH fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Cleopatra Alchem.': {'tlg_id': 'TLG4335', 'names': {'name_authtab': 'Cleopatra Alchem.', 'name_idt': 'Cleopatra Alchem.'}, 'works': {'De ponderibus et mensuris': ['Fragment', 'section', 'line']}}, 'Pratinas Trag.': {'tlg_id': 'TLG1833', 'names': {'name_authtab': 'Pratinas Trag.', 'name_idt': 'Pratinas Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Numenius Poet. Didac.': {'tlg_id': 'TLG0703', 'names': {'name_authtab': 'Numenius Poet. Didac.', 'name_idt': 'Numenius Poet. Didac.'}, 'works': {'Fragmenta et tituli': ['Fragment', 'line']}}, 'Blaesus Comic.': {'tlg_id': 'TLG1227', 'names': {'name_authtab': 'Blaesus Comic.', 'name_idt': 'Blaesus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Petron Phil.': {'tlg_id': 'TLG2247', 'names': {'name_authtab': 'Petron Phil.', 'name_idt': 'Petron Phil.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, 'Theodorus Scr. Eccl.': {'tlg_id': 'TLG4126', 'names': {'name_authtab': 'Theodorus Scr. Eccl.', 'name_idt': 'Theodorus Scr. Eccl.'}, 'works': {'!Fragmenta in Joannem (in catenis)': ['Fragment', 'line'], '#Fragmenta in Matthaeum (in catenis)': ['Fragment', 'line']}}, 'Damon et Phintias Phil.': {'tlg_id': 'TLG2244', 'names': {'name_authtab': 'Damon et Phintias Phil.', 'name_idt': 'Damon et Phintias Phil.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, 'Theophanes Hist.': {'tlg_id': 'TLG1981', 'names': {'name_authtab': 'Theophanes Hist.', 'name_idt': 'Theophanes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hermarchus Phil.': {'tlg_id': 'TLG1439', 'names': {'name_authtab': 'Hermarchus Phil.', 'name_idt': 'Hermarchus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hellenica': {'tlg_id': 'TLG0558', 'names': {'name_authtab': 'Hellenica', 'name_idt': 'Hellenica'}, 'works': {'"Fragmenta Florentina (PSI 13.1304)': ['Fragment', 'column', 'section', 'line'], 'Fragmenta (P. Oxy. 5.842)': ['line', 'fragment', 'line'], '4Fragmenta Londinensia incertae sedis (P. Oxy. 5.842)': ['Fragment', 'line'], '-Fragmentum (P. Cairo inv. 26%3`6%3`27%3`1-35)': ['line'], '%Fragmenta Londinensia (P. Oxy. 5.842)': ['Fragment', 'column', 'section', 'line']}}, 'Catenae (Novum Testamentum)': {'tlg_id': 'TLG4102', 'names': {'name_authtab': 'Catenae (Novum Testamentum)', 'name_idt': 'Catenae (Novum Testamentum)'}, 'works': {'\\Supplementum et varietas lectionis ad catenam in evangelium sancti Joannis (e cod. Bodl. B.)': ['Page', 'line'], 'DCatena in Matthaeum (catena integra) (e cod. Paris. Coislin. gr. 23)': ['Page', 'line'], 'VCatena in epistulam ii ad Corinthios (catena Pseudo-Oecumenii) (e cod. Paris. gr. 223)': ['Page', 'line'], 'ZCatena in Joannem (catena integra) (e codd. Paris. Coislin. 23 %7 Oxon. Bodl. Auct. T.1.4)': ['Page', 'line'], '?Catena in epistulam i ad Timotheum (e cod. Paris. Coislin. 204)': ['Page', 'line'], 'VCatena in epistulam ii ad Corinthios (catena Pseudo-Oecumenii) (e cod. Paris. gr. 216)': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam ad Galatas (catena Pseudo-Oecumenii) (e cod. Bodl. Auct. T.1.7 [%': ['Page', 'line', '', '©\x12¶'], 'HCatena in epistulam ad Hebraeos (catena Nicetae) (e cod. Paris. gr. 238)': ['Page', 'line'], 'pSupplementum et varietas lectionis in epistulam ad Galatas (catena Pseudo-Oecumenii) (e cod. Oxon. Bodl. Roe 16)': ['Page', 'line'], 'KCatena in epistulam ad Philippenses (typus Parisinus) (e cod. Coislin. 204)': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam ad Ephesios (catena Pseudo-Oecumenii) (e cod. Oxon. Bodl. Roe 16)': ['Page', 'line'], '<Catena in epistulam ad Hebraeos (e cod. Paris. Coislin. 204)': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam i ad Thessalonicenses (catena Pseudo-Oecumenii) (e cod. Bodl. Auc': ['Page', 'line'], 'KCatena in epistulam Joannis i (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], 'JCatena in epistulam ad Colossenses (typus Parisinus) (e cod. Coislin. 204)': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam ad Ephesios (catena Pseudo-Oecumenii) (e cod. Bodl. Auct. T.1.7 [': ['Page', 'line'], '>Catena in epistulam ad Philemonem (e cod. Paris. Coislin. 204)': ['Page', 'line'], 'qSupplementum et varietas lectionis ad epistulam ii ad Corinthios (catena Pseudo-Oecumenii) (e cod. Oxon. Bodl. Ro': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam ad Colossenses (catena Pseudo-Oecumenii) (e cod. Oxon. Bodl. Roe ': ['Page', 'line'], 'fSupplementum et varietas lectionis ad catenam in evangelium sancti Lucae (e cod. Oxon. Bodl. Laud. 33)': ['Page', 'line'], '<Catena in Acta (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], 'QCatena in epistulam i ad Thessalonicenses (typus Parisinus) (e cod. Coislin. 204)': ['Page', 'line'], 'RCatena in epistulam ii ad Thessalonicenses (typus Parisinus) (e cod. Coislin. 204)': ['Page', 'line', ''], '9Catena in epistulam ad Titum (e cod. Paris. Coislin. 204)': ['Page', 'line'], 'qSupplementum et varietas lectionis ad epistulam i ad Corinthios (catena Pseudo-Oecumenii) (e cod. Bodl. Auct. T.1': ['Page', 'line'], 'JCatena in epistulam Petri ii (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], 'GCatena in epistulam ad Ephesios (typus Parisinus) (e cod. Coislin. 204)': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam i ad Thessalonicenses (catena Pseudo-Oecumenii) (e cod. Oxon. Bod': ['Page', 'line'], 'MCatena in epistulam Joannis iii (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], '@Catena in epistulam ii ad Timotheum (e cod. Paris. Coislin. 204)': ['Page', 'line'], '`Catena in epistulam ad Romanos (typus Vaticanus) (e cod. Oxon. Bodl. Auct. E.2.20 [%6 Misc. 48])': ['Page', 'line'], 'ICatena in epistulam Petri i (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], 'FCatena in epistulam ad Galatas (typus Parisinus) (e cod. Coislin. 204)': ['Page', 'line'], 'MCatena in epistulam i ad Corinthios (typus Vaticanus) (e cod. Paris. gr. 227)': ['Page', 'line'], 'HCatena in epistulam Jacobi (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], 'qSupplementum et varietas lectionis ad epistulam ii ad Corinthios (catena Pseudo-Oecumenii) (e cod. Bodl. Auct. T.': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam ii ad Thessalonicenses (catena Pseudo-Oecumenii) (e cod. Oxon. Bo': ['Page', 'line'], 'FCatena in epistulam Juda (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], 'ICatena in epistulam ad Romanos (typus Monacensis) (e cod. Monac. gr. 412)': ['Page', 'line'], 'qSupplementum et varietas lectionis ad epistulam i ad Corinthios (catena Pseudo-Oecumenii) (e cod. Oxon. Bodl. Roe': ['Page', 'line'], 'qSupplementum et varietas lectionis ad commentarium Chrysostomi in evangelium sancti Matthaei (e cod. Oxon. Bodl. ': ['Page', 'line'], 'LCatena in epistulam Joannis ii (catena Andreae) (e cod. Oxon. coll. nov. 58)': ['Page', 'line'], 'qSupplementum et varietas lectionis in epistulam ad Philippenses (catena Pseudo-Oecumenii) (e cod. Oxon. Bodl. Roe': ['Page', 'line'], 'eCatena in Marcum (recensio ii) (e codd. Oxon. Bodl. Laud. 33 %7 Paris. Coislin. 23 %7 Paris. gr. 178)': ['Page', 'line'], 'OCatena in Lucam (typus B) (e codd. Paris. Coislin. 23 %7 Oxon. Bodl. Misc. 182)': ['Page', 'line']}}, 'Serapion Scr. Eccl.': {'tlg_id': 'TLG1670', 'names': {'name_authtab': 'Serapion Scr. Eccl.', 'name_idt': 'Serapion Scr. Eccl.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Anonymi In Oppiani Opera': {'tlg_id': 'TLG4171', 'names': {'name_authtab': 'Anonymi In Oppiani Opera', 'name_idt': 'Anonymi In Oppiani Opera'}, 'works': {'7In Oppiani halieutica exegesis (e cod. Paris. gr. 2735)': ['Page', 'column', 'line']}}, 'Herodicus Gramm.': {'tlg_id': 'TLG2625', 'names': {'name_authtab': 'Herodicus Gramm.', 'name_idt': 'Herodicus Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aeneas Tact.': {'tlg_id': 'TLG0058', 'names': {'name_authtab': 'Aeneas Tact.', 'name_idt': 'Aeneas Tact.'}, 'works': {'Poliorcetica': ['Chapter', 'section', 'line']}}, 'Democles Hist.': {'tlg_id': 'TLG4390', 'names': {'name_authtab': 'Democles Hist.', 'name_idt': 'Democles Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Xenomedes Hist.': {'tlg_id': 'TLG2306', 'names': {'name_authtab': 'Xenomedes Hist.', 'name_idt': 'Xenomedes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heniochus Comic.': {'tlg_id': 'TLG0465', 'names': {'name_authtab': 'Heniochus Comic.', 'name_idt': 'Heniochus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Paraphrases In Dionysium Periegetam': {'tlg_id': 'TLG4174', 'names': {'name_authtab': 'Paraphrases In Dionysium Periegetam', 'name_idt': 'Paraphrases In Dionysium Periegetam'}, 'works': {'*In Dionysii periegetae orbis descriptionem': ['Section', 'line']}}, 'Pherecydis Epistula': {'tlg_id': 'TLG1585', 'names': {'name_authtab': 'Pherecydis Epistula', 'name_idt': 'Pherecydis Epistula'}, 'works': {'Epistula': ['line']}}, 'Hegesippus Scr. Eccl.': {'tlg_id': 'TLG1398', 'names': {'name_authtab': 'Hegesippus Scr. Eccl.', 'name_idt': 'Hegesippus Scr. Eccl.'}, 'works': {'Fragmenta (ex incerto libro)': ['Page', 'line']}}, 'Gaius Scr. Eccl.': {'tlg_id': 'TLG0572', 'names': {'name_authtab': 'Gaius Scr. Eccl.', 'name_idt': 'Gaius Scr. Eccl.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Sopater Rhet.': {'tlg_id': 'TLG2031', 'names': {'name_authtab': 'Sopater Rhet.', 'name_idt': 'Sopater Rhet.'}, 'works': {'1Scholia ad Hermogenis status seu artem rhetoricam': ['Volume', 'page', 'line'], 'Prolegomena in Aristidem': ['Volume', 'page', 'line'], '$*DIAI/RESIS ZHTHMA/TWN&': ['Volume', 'page', 'line']}}, 'Teles Phil.': {'tlg_id': 'TLG1699', 'names': {'name_authtab': 'Teles Phil.', 'name_idt': 'Teles Phil.'}, 'works': {'$*PERI\\ AU)TARKEI/AS&': ['Page', 'line'], '$*PERI\\ FUGH=S&': ['Page', 'line'], '9$*PERI\\ SUGKRI/SEWS PENI/AS KAI\\ PLOU/TOU &(ap. Stobaeum)': ['Page', 'line'], "'$*PERI\\ TOU= DOKEI=N KAI\\ TOU= EI)=NAI&": ['Page', 'line'], '$*PERI\\ A)PAQEI/AS&': ['Page', 'line'], ')$*PERI\\ TOU= MH\\ EI)=NAI TE/LOS H(DONH/N&': ['Page', 'line'], '$*PERI\\ PERISTA/SEWN&': ['Page', 'line']}}, 'Alcibiades Eleg.': {'tlg_id': 'TLG0236', 'names': {'name_authtab': 'Alcibiades Eleg.', 'name_idt': 'Alcibiades Eleg.'}, 'works': {'Fragmentum': ['line']}}, 'Evangelium Petri': {'tlg_id': 'TLG1371', 'names': {'name_authtab': 'Evangelium Petri', 'name_idt': 'Evangelium Petri'}, 'works': {'Evangelium Petri': ['Section', 'line']}}, 'Vitae Pindari Et Varia De Pindaro': {'tlg_id': 'TLG4170', 'names': {'name_authtab': 'Vitae Pindari Et Varia De Pindaro', 'name_idt': 'Vitae Pindari Et Varia De Pindaro'}, 'works': {'!Vitae Pindari et varia de Pindaro': ['Page', 'line']}}, 'Alexander Med.': {'tlg_id': 'TLG0744', 'names': {'name_authtab': 'Alexander Med.', 'name_idt': 'Alexander Med.'}, 'works': {'Epistula de lumbricis': ['Volume', 'page', 'line'], 'De oculis libri tres': ['Page', 'line'], 'De febribus': ['Volume', 'page', 'line'], 'Dedicatio ad Cosman': ['Volume', 'page', 'line'], 'Therapeutica': ['Volume', 'page', 'line']}}, 'Epicharmus et Pseudepicharmea Comic.': {'tlg_id': 'TLG0521', 'names': {'name_authtab': 'Epicharmus Comic. et Pseudepicharmea', 'name_idt': 'Epicharmus et Pseudepicharmea Comic.'}, 'works': {'Fragmentum Epicharmi': ['Fragment', 'line'], 'Fragmenta Epicharmi': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Fragmenta Pseudepicharmea': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Nicephorus II Phocas Imperator Tact.': {'tlg_id': 'TLG3181', 'names': {'name_authtab': 'Nicephorus II Phocas Imperator Tact.', 'name_idt': 'Nicephorus II Phocas Imperator Tact.'}, 'works': {'7De velitatione bellica (sub nomine Nicephori II Phocae)': ['Chapter', 'section', 'line']}}, '[Hegesinus] Epic.': {'tlg_id': 'TLG1395', 'names': {'name_authtab': '[Hegesinus] Epic.', 'name_idt': '[Hegesinus] Epic.'}, 'works': {'4Atthis (fragmentum spurium) (fort. auctore Callippo)': ['line']}}, 'Diotimus Phil.': {'tlg_id': 'TLG2340', 'names': {'name_authtab': 'Diotimus Phil.', 'name_idt': 'Diotimus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Philo Poeta': {'tlg_id': 'TLG2638', 'names': {'name_authtab': 'Philo Poeta', 'name_idt': 'Philo Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Phormis Comic.': {'tlg_id': 'TLG1788', 'names': {'name_authtab': 'Phormis Comic.', 'name_idt': 'Phormis Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Hypsicles Astron., Math.': {'tlg_id': 'TLG0717', 'names': {'name_authtab': 'Hypsicles Astron. et Math.', 'name_idt': 'Hypsicles Astron., Math.'}, 'works': {'Anaphoricus': ['line'], '5Hypsiclis liber sive elementorum liber xiv qui fertur': ['Section', 'line']}}, 'Antisthenes Phil.': {'tlg_id': 'TLG2313', 'names': {'name_authtab': 'Antisthenes Phil.', 'name_idt': 'Antisthenes Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Lycus Hist.': {'tlg_id': 'TLG1470', 'names': {'name_authtab': 'Lycus Hist.', 'name_idt': 'Lycus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aristeae Epistula': {'tlg_id': 'TLG1183', 'names': {'name_authtab': 'Aristeae Epistula', 'name_idt': 'Aristeae Epistula'}, 'works': {' Aristeae epistula ad Philocratem': ['Section', 'line']}}, 'Beros(s)us Astrol., Hist.': {'tlg_id': 'TLG1222', 'names': {'name_authtab': 'Beros(s)us Astrol. et Hist.', 'name_idt': 'Beros(s)us Astrol., Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scylitzes Continuatus': {'tlg_id': 'TLG3064', 'names': {'name_authtab': 'Scylitzes Continuatus', 'name_idt': 'Scylitzes Continuatus'}, 'works': {'Continuatio Scylitzae': ['Page', 'line']}}, 'Anacharsidis Epistulae': {'tlg_id': 'TLG0037', 'names': {'name_authtab': 'Anacharsidis Epistulae', 'name_idt': 'Anacharsidis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Pempelus Phil.': {'tlg_id': 'TLG1571', 'names': {'name_authtab': 'Pempelus Phil.', 'name_idt': 'Pempelus Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Sogenes Comic.': {'tlg_id': 'TLG1786', 'names': {'name_authtab': 'Sogenes Comic.', 'name_idt': 'Sogenes Comic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Theophilus Scr. Eccl.': {'tlg_id': 'TLG4115', 'names': {'name_authtab': 'Theophilus Scr. Eccl.', 'name_idt': 'Theophilus Scr. Eccl.'}, 'works': {'!Fragmenta in Joannem (in catenis)': ['Fragment', 'line'], '#Fragmenta in Matthaeum (in catenis)': ['Fragment', 'line']}}, 'Pythermus Hist.': {'tlg_id': 'TLG1651', 'names': {'name_authtab': 'Pythermus Hist.', 'name_idt': 'Pythermus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Iambica Adespota (ALG)': {'tlg_id': 'TLG1821', 'names': {'name_authtab': 'Iambica Adespota (ALG)', 'name_idt': 'Iambica Adespota (ALG)'}, 'works': {'Anonymorum iambica': ['Fragment', 'section', 'line'], 'Fragmenta iambica adespota': ['Fragment', 'line']}}, 'Boethus Epigr.': {'tlg_id': 'TLG0146', 'names': {'name_authtab': 'Boethus Epigr.', 'name_idt': 'Boethus Epigr.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Eumelus Epic.': {'tlg_id': 'TLG0298', 'names': {'name_authtab': 'Eumelus Epic.', 'name_idt': 'Eumelus Epic.'}, 'works': {'Fragmenta epica': ['Fragment', 'line'], 'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line'], 'Corinthiaca (fragmenta)': ['line', 'fragment', 'line']}}, 'Sciras Comic.': {'tlg_id': 'TLG1662', 'names': {'name_authtab': 'Sciras Comic.', 'name_idt': 'Sciras Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Phintys Phil.': {'tlg_id': 'TLG1603', 'names': {'name_authtab': 'Phintys Phil.', 'name_idt': 'Phintys Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Antigonus': {'tlg_id': 'TLG2547', 'names': {'name_authtab': 'Antigonus', 'name_idt': 'Antigonus'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Rhinthon Comic.': {'tlg_id': 'TLG1654', 'names': {'name_authtab': 'Rhinthon Comic.', 'name_idt': 'Rhinthon Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Heraclitus Comic.': {'tlg_id': 'TLG1784', 'names': {'name_authtab': 'Heraclitus Comic.', 'name_idt': 'Heraclitus Comic.'}, 'works': {'Titulus': ['Page', 'line']}}, 'Valentinus Gnost.': {'tlg_id': 'TLG1746', 'names': {'name_authtab': 'Valentinus Gnost.', 'name_idt': 'Valentinus Gnost.'}, 'works': {'Valentini hymnus': ['line']}}, 'Aristobulus Judaeus Phil.': {'tlg_id': 'TLG1186', 'names': {'name_authtab': 'Aristobulus Judaeus Phil.', 'name_idt': 'Aristobulus Judaeus Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Cinnamus Gramm., Hist.': {'tlg_id': 'TLG3020', 'names': {'name_authtab': 'Joannes Cinnamus Gramm. et Hist.', 'name_idt': 'Cinnamus Gramm., Hist.'}, 'works': {'3Epitome rerum ab Joanne et Alexio Comnenis gestarum': ['Page', 'line'], 'Ethopoeia': ['line']}}, 'Aristophanes Comic.': {'tlg_id': 'TLG0019', 'names': {'name_authtab': 'Aristophanes Comic.', 'name_idt': 'Aristophanes Comic.'}, 'works': {'': ['Thesmophoriazusae', 'line'], 'Equites': ['line'], 'Plutus': ['line'], 'Vespae': ['line'], 'Aves': ['line'], 'Acharnenses': ['line'], 'Pax': ['line'], 'Lysistrata': ['line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Nubes': ['line'], 'Ranae': ['line'], 'Ecclesiazusae': ['line']}}, 'Monodia': {'tlg_id': 'TLG0277', 'names': {'name_authtab': 'Monodia', 'name_idt': 'Monodia'}, 'works': {'"Mirmillonis amatrix (P. Ryl. 1.15)': ['line']}}, 'Alcaeus Comic.': {'tlg_id': 'TLG0400', 'names': {'name_authtab': 'Alcaeus Comic.', 'name_idt': 'Alcaeus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Stesiclides Hist.': {'tlg_id': 'TLG2171', 'names': {'name_authtab': 'Stesiclides Hist.', 'name_idt': 'Stesiclides Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hermodorus Phil.': {'tlg_id': 'TLG0095', 'names': {'name_authtab': 'Hermodorus Phil.', 'name_idt': 'Hermodorus Phil.'}, 'works': {'/De Platone (fort. auctore Hermodoro Syracusano)': ['Fragment', 'column', 'line'], 'Testimonia et fragmenta': ['Fragment', 'line']}}, 'Aethiopis': {'tlg_id': 'TLG0683', 'names': {'name_authtab': 'Aethiopis', 'name_idt': 'Aethiopis'}, 'works': {'Aethiopis (fragmenta)': ['Fragment', 'line']}}, 'Athenaeus Soph.': {'tlg_id': 'TLG0008', 'names': {'name_authtab': 'Athenaeus Soph.', 'name_idt': 'Athenaeus Soph.'}, 'works': {'Fragmentum': ['line', 'fragment', 'line'], 'Deipnosophistae (epitome)': ['Volume', 'page', 'line'], 'Deipnosophistae': ['Book', 'Kaibel paragraph', 'line']}}, 'Stesichorus II Lyr.': {'tlg_id': 'TLG0981', 'names': {'name_authtab': 'Stesichorus II Lyr.', 'name_idt': 'Stesichorus II Lyr.'}, 'works': {'Titulus': ['line']}}, 'Demon Hist.': {'tlg_id': 'TLG1307', 'names': {'name_authtab': 'Demon Hist.', 'name_idt': 'Demon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hippiatrica': {'tlg_id': 'TLG0738', 'names': {'name_authtab': 'Hippiatrica', 'name_idt': 'Hippiatrica'}, 'works': {'Fragmenta Anatolii de bubus': ['Chapter', 'section', 'line'], 'Fragmenta Timothei Gazaei': ['Section', 'line'], 'Hippiatrica Berolinensia': ['Chapter', 'section', 'line'], '&Appendices ad hippiatrica Berolinensia': ['Appendix', 'line'], 'Fragmenta Anatolii de equis': ['Chapter', 'section', 'line'], 'Fragmenta Anatolii': ['Section', 'line'], 'Hippiatrica Parisina': ['Section', 'line'], 'Hippiatrica Cantabrigiensia': ['Chapter', 'section', 'line'], '6Additamenta Londinensia ad hippiatrica Cantabrigiensia': ['Section', 'line'], 'Excerpta Lugdunensia': ['Section', 'line']}}, 'Brotinus Phil.': {'tlg_id': 'TLG1230', 'names': {'name_authtab': 'Brotinus Phil.', 'name_idt': 'Brotinus Phil.'}, 'works': {'Fragmentum': ['Page', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Certamen Homeri Et Hesiodi': {'tlg_id': 'TLG1252', 'names': {'name_authtab': 'Certamen Homeri Et Hesiodi', 'name_idt': 'Certamen Homeri Et Hesiodi'}, 'works': {'Certamen Homeri et Hesiodi': ['line'], ')Certamen Homeri et Hesiodi (P. Petrie 25)': ['line']}}, 'Menander Rhet.': {'tlg_id': 'TLG2586', 'names': {'name_authtab': 'Menander Rhet.', 'name_idt': 'Menander Rhet.'}, 'works': {'$*PERI\\ E)PIDEIKTIKW=N&': ['Spengel page', 'line'], '>$*DIAI/RESIS TW=N E)PIDEIKTIKW=N &(olim sub auctore Genethlio)': ['Spengel page', 'line']}}, 'Gorgias Rhet., Soph.': {'tlg_id': 'TLG0593', 'names': {'name_authtab': 'Gorgias Rhet. et Soph.', 'name_idt': 'Gorgias Rhet., Soph.'}, 'works': {'Testimonium': ['line', 'fragment', 'line'], 'Testimonia': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Ducas Hist.': {'tlg_id': 'TLG3146', 'names': {'name_authtab': 'Ducas Hist.', 'name_idt': 'Ducas Hist.'}, 'works': {'Historia Turcobyzantina': ['Chapter', 'section', 'line']}}, 'Cephalion Hist., Rhet.': {'tlg_id': 'TLG1249', 'names': {'name_authtab': 'Cephalion Hist. et Rhet.', 'name_idt': 'Cephalion Hist., Rhet.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Demetrius Hist.': {'tlg_id': 'TLG1917', 'names': {'name_authtab': 'Demetrius Hist.', 'name_idt': 'Demetrius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Menander Comic.': {'tlg_id': 'TLG0541', 'names': {'name_authtab': 'Menander Comic.', 'name_idt': 'Menander Comic.'}, 'works': {'.Fragmenta longiora apud alios auctores servata': ['Fragment', 'line'], 'Sententiae': ['Sententia', 'section', 'line'], 'Epitrepontum fragmenta': ['Fragment', 'line'], 'Epitrepontes': ['line'], 'Colacis fragmenta aliunde nota': ['Fragment', 'line'], 'Misumenus': ['line'], 'Theophorumene': ['line'], 'Carchedonius': ['line', '¶'], '!Sententiae e codicibus Byzantinis': ['line'], 'Phasma': ['line'], 'Misumeni nova fragmenta': ['Fragment', 'column', 'line'], '%Theophorumenae fragmenta aliunde nota': ['Fragment', 'line'], "'Coneazomenarum fragmentum aliunde notum": ['Fragment', 'line'], 'Colax': ['line', 'Ö', 'F\x12'], 'Aspis': ['line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Sicyonius': ['line'], 'Dyscolus': ['line'], 'Heros': ['line'], 'Samiae fragmentum aliunde notum': ['line'], 'Georgi fragmenta aliunde nota': ['Fragment', 'line'], 'Sicyonii fragmenta aliunde nota': ['Fragment', 'line'], '$Periciromenae fragmenta aliunde nota': ['Fragment', 'line'], '!Perinthiae fragmenta aliunde nota': ['Fragment', 'line'], 'Aspidis fragmenta aliunde nota': ['Fragment', 'line'], 'Misumeni fragmenta': ['Fragment', 'line'], 'Dis exapaton': ['line'], '"Carchedonii fragmenta aliunde nota': ['Fragment', 'line', '.', ''], '"Citharistae fragmenta aliunde nota': ['Fragment', 'line', '\x8c,', ''], 'Herois fragmenta aliunde nota': ['Fragment', 'line'], ' Theophorumenae fragmentum dubium': ['line'], 'Perinthia': ['line'], '&Dis exapatontis fragmenta aliunde nota': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Citharista': ['line', '', 'K', ''], 'Epigramma': ['Epigram', 'fragment', 'line'], 'Sententiae e papyris': ['Sententia', 'line'], 'Samia': ['line'], 'Georgus': ['line'], '#Fragmentum dubium (P. Oxy. 31.2533)': ['line'], 'Coneazomenae': ['line'], 'Periciromene': ['line'], 'Fabula incerta': ['line']}}, 'Antonius Diogenes Scr. Erot.': {'tlg_id': 'TLG1148', 'names': {'name_authtab': 'Antonius Diogenes Scr. Erot.', 'name_idt': 'Antonius Diogenes Scr. Erot.'}, 'works': {'>De incredibilibus vel Herpyllis (?) (fragmentum) (P. Dubl. C3)': ['Column', 'line'], '0De incredibilibus (fragmentum) (P. Oxy. 42.3012)': ['line'], ',De incredibilibus (fragmentum) (PSI 10.1177)': ['line']}}, 'Clytus Hist.': {'tlg_id': 'TLG1282', 'names': {'name_authtab': 'Clytus Hist.', 'name_idt': 'Clytus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Damascius Phil.': {'tlg_id': 'TLG4066', 'names': {'name_authtab': 'Damascius Phil.', 'name_idt': 'Damascius Phil.'}, 'works': {'In Phaedonem (versio 2)': ['Section', 'line'], '0Vita Isidori (ap. Photium, Bibl. codd. 181, 242)': ['Fragment', 'line'], '@Vita Isidori (ap. Sudam, Hesychium, Photium et e cod. Vat. 1950)': ['Fragment', 'line'], 'In Phaedonem (versio 1)': ['Section', 'line'], 'Epigramma': ['Book', 'epigram', 'line'], 'In Parmenidem': ['Page', 'line'], 'In Philebum': ['Section', 'line'], 'De principiis': ['Volume', 'page', 'line']}}, 'Theseus Hist.': {'tlg_id': 'TLG1728', 'names': {'name_authtab': 'Theseus Hist.', 'name_idt': 'Theseus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Parthenius Myth.': {'tlg_id': 'TLG0655', 'names': {'name_authtab': 'Parthenius Myth.', 'name_idt': 'Parthenius Myth.'}, 'works': {'Poesis reliquiae': ['Fragment', 'line'], 'Narrationes amatoriae': ['Chapter', 'section', 'line'], 'Fragmenta et tituli': ['Fragment', 'line']}}, 'Philo Paradox.': {'tlg_id': 'TLG2595', 'names': {'name_authtab': 'Philo Paradox.', 'name_idt': 'Philo Paradox.'}, 'works': {'De septem orbis spectaculis': ['Page', 'line']}}, 'Andriscus Hist.': {'tlg_id': 'TLG2346', 'names': {'name_authtab': 'Andriscus Hist.', 'name_idt': 'Andriscus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Polycarpus Scr. Eccl.': {'tlg_id': 'TLG1622', 'names': {'name_authtab': 'Polycarpus Scr. Eccl.', 'name_idt': 'Polycarpus Scr. Eccl.'}, 'works': {'Epistula ad Philippenses': ['Chapter', 'section', 'line']}}, 'Caecalus (?) Epic.': {'tlg_id': 'TLG2612', 'names': {'name_authtab': 'Caecalus (?) Epic.', 'name_idt': 'Caecalus (?) Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Metrophanes Hist.': {'tlg_id': 'TLG2531', 'names': {'name_authtab': 'Metrophanes Hist.', 'name_idt': 'Metrophanes Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Archinus Hist.': {'tlg_id': 'TLG2418', 'names': {'name_authtab': 'Archinus Hist.', 'name_idt': 'Archinus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dionysius I Trag.': {'tlg_id': 'TLG0330', 'names': {'name_authtab': 'Dionysius I Trag.', 'name_idt': 'Dionysius I Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonium': ['line', 'fragment', 'line']}}, 'Vitae Dionysii Periegetae': {'tlg_id': 'TLG4173', 'names': {'name_authtab': 'Vitae Dionysii Periegetae', 'name_idt': 'Vitae Dionysii Periegetae'}, 'works': {'Vita Dionysii': ['line']}}, 'Aspasius Phil.': {'tlg_id': 'TLG0615', 'names': {'name_authtab': 'Aspasius Phil.', 'name_idt': 'Aspasius Phil.'}, 'works': {'!In ethica Nichomachea commentaria': ['Page', 'line']}}, 'Xenocles Trag.': {'tlg_id': 'TLG0316', 'names': {'name_authtab': 'Xenocles Trag.', 'name_idt': 'Xenocles Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Nicochares Comic.': {'tlg_id': 'TLG0480', 'names': {'name_authtab': 'Nicochares Comic.', 'name_idt': 'Nicochares Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Maximus Confessor Theol.': {'tlg_id': 'TLG2892', 'names': {'name_authtab': 'Maximus Confessor Theol.', 'name_idt': 'Maximus Confessor Theol.'}, 'works': {'Mystagogia': ['Chapter', 'line'], 'Expositio in Psalmum LIX': ['line'], 'Liber asceticus': ['Section', 'line'], 'Quaestiones et dubia': ['Section', 'line'], 'Hymni [Sp.]': ['Hymn', 'line'], '9Scholia in Ecclesiasten (in catenis: catena trium patrum)': ['Section', 'line'], 'Capita de caritate': ['Book', 'section', 'line'], 'Opusculum de anima [Sp.]': ['Section', 'line'], 'Quaestiones ad Thalassium': ['Section', 'line'], 'Expositio orationis dominicae': ['line']}}, 'Dinarchus Orat.': {'tlg_id': 'TLG0029', 'names': {'name_authtab': 'Dinarchus Orat.', 'name_idt': 'Dinarchus Orat.'}, 'works': {'In Demosthenem': ['Section', 'line'], 'Fragmenta incertae sedis': ['Fragment', 'line'], 'In Aristogitonem': ['Section', 'line'], 'Fragmenta': ['Oration', 'fragment', 'line'], 'In Philoclem': ['Section', 'line']}}, 'Mnesimachus Hist.': {'tlg_id': 'TLG2565', 'names': {'name_authtab': 'Mnesimachus Hist.', 'name_idt': 'Mnesimachus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sosibius Gramm.': {'tlg_id': 'TLG1685', 'names': {'name_authtab': 'Sosibius Gramm.', 'name_idt': 'Sosibius Gramm.'}, 'works': {'Fragmentum (P. Oxy. 24.2389)': ['FGrH fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Sotadea': {'tlg_id': 'TLG1690', 'names': {'name_authtab': 'Sotadea', 'name_idt': 'Sotadea'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymi Medici Med.': {'tlg_id': 'TLG0721', 'names': {'name_authtab': 'Anonymi Medici Med.', 'name_idt': 'Anonymi Medici Med.'}, 'works': {'': ['Mensium adornatio', 'line'], 'De cibis': ['Chapter', 'line', '\x8c', 'd\x15'], 'De diaeta': ['Chapter', 'section', 'line'], 'De urinis in febribus': ['Volume', 'page', 'line', ''], 'De pulsibus': ['line'], 'De urinis secundum Persos': ['line'], 'De duodecim mensium natura': ['Chapter', 'section', 'line'], 'De urinis secundum Syros': ['Section', 'line'], '$*PERI\\ TROFW=N DUNA/MEWS&': ['Page', 'line'], 'In aphorismos [Hippocratis]': ['line'], 'Physiognomonica': ['Section', 'line'], 'Fragmenta varia': ['Section', 'line'], '%$*PERI\\ TH=S TW=N PURETW=N DIAFORA=S&': ['Page', 'line'], 'De corporis hominis natura': ['Section', 'line'], 'Commentatio de urinis': ['Volume', 'page', 'line'], ')$*)ONOMATOPOII/A TH=S A)NQRW/POU FU/SEWS&': ['Page', 'line'], '-$*)ONOMASI/AI TW=N KATA\\ A)/NQRWPON& (lib. 1)': ['Section', 'line'], 'De alimentis': ['Chapter', 'line'], '$*PERI\\ LUKANQRWPI/AS&': ['line'], 'De generatione et semine': ['Section', 'line'], '_$*)ONO/MATA TW=N I)ATRIKW=N E)RGALEI/WN KATA\\ STOIXEI=A OI(=S E)N TAI=S XEIROURGI/AIS XRW/MEQA&': ['Page', 'line'], '9$*DIA/GNWSIS PERI\\ TW=N O)CE/WN KAI\\ XRONI/WN NOSHMA/TWN&': ['Section', 'line'], 'Y$*PERI\\ XROIA=S TOU= AI(/MATOS TOU= A)PO\\ FLEBOTOMI/AS E)K TH=S I)ATRIKH=S TW=N *PERSW=N&': ['Section', 'line']}}, 'Aristoteles et Corpus Aristotelicum Phil.': {'tlg_id': 'TLG0086', 'names': {'name_authtab': 'Aristoteles Phil. et Corpus Aristotelicum, Aristotle', 'name_idt': 'Aristoteles et Corpus Aristotelicum Phil.'}, 'works': {'': ['De motu animalium', 'Bekker page', 'line'], 'De somno et vigilia': ['Bekker page', 'line'], 'Meteorologica': ['Bekker page', 'line'], '2Physicorum libri octavi textus alter (post 267b26)': ['Bekker page', 'line'], 'Poetica': ['Bekker page', 'line'], 'Politica': ['Bekker page', 'line'], '!De longitudine et brevitate vitae': ['Bekker page', 'line'], '-De juventute et senectute %7 De vita et morte': ['Bekker page', 'line'], 'De insomniis': ['Bekker page', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Problemata': ['Bekker page', 'line'], 'De generatione et corruptione': ['Bekker page', 'line'], 'Mechanica': ['Bekker page', 'line'], 'Fragmenta varia': ['Category', '\x0etreatise title', 'fragment', 'line'], 'De sensu et sensibilibus': ['Bekker page', 'line'], 'Sophistici elenchi': ['Bekker page', 'line'], 'Topica': ['Bekker page', 'line'], 'Protrepticus': ['Fragment', 'line'], 'De respiratione': ['Bekker page', 'line'], 'Rhetorica': ['Bekker page', 'line'], 'De coloribus': ['Bekker page', 'line'], 'De spiritu': ['Bekker page', 'line'], 'De interpretatione': ['Bekker page', 'line'], 'Testimonia': ['line', 'fragment', 'line'], 'Historia animalium': ['Bekker page', 'line'], 'De mundo': ['Bekker page', 'line'], 'Metaphysica': ['Bekker page', 'line'], '"De Xenophane, de Zenone, de Gorgia': ['Bekker page', 'line'], 'De caelo': ['Bekker page', 'line'], 'De divinatione per somnum': ['Bekker page', 'line'], 'Categoriae': ['Bekker page', 'line'], 'Mirabilium auscultationes': ['Bekker page', 'line'], 'QDe anima (codicis P lectiones quae valde a lectionibus ceterorum codicum distant)': ['Fragment', 'Bekker page', 'line'], 'De lineis insecabilibus': ['Bekker page', 'line'], 'Epistulae': ['Epistle', 'line'], 'De incessu animalium': ['Bekker page', 'line'], 'Divisiones Aristoteleae': ['Page+column', 'line'], 'Fragmentum': ['line'], '=De anima (codicis E fragmenta recensionis a vulgata diversae)': ['Fragment', 'Bekker page', 'line'], 'Physiognomonica': ['Bekker page', 'line'], 'Oeconomica': ['Bekker page', 'line', '³'], 'Physica': ['Bekker page', 'line'], 'De generatione animalium': ['Bekker page', 'line'], 'De anima': ['Bekker page', 'line'], 'De partibus animalium': ['Bekker page', 'line', '\x8e¤¤§©®\x8c³', '4³'], 'De audibilibus': ['Bekker page', 'line'], '$*)AQHNAI/WN POLITEI/A&': ['Section', 'subsection', 'line'], 'De ventorum situ et nominibus': ['Bekker page', 'line'], 'De virtutibus et vitiis': ['Bekker page', 'line'], 'Ethica Eudemia': ['Bekker page', 'line'], 'Magna moralia': ['Book', 'chapter', 'section', 'line'], 'De memoria et reminiscentia': ['Bekker page', 'line'], 'Analytica priora et posteriora': ['Bekker page', 'line']}}, 'Anonymi In Aristotelis Categorias Phil.': {'tlg_id': 'TLG4027', 'names': {'name_authtab': 'Anonymi In Aristotelis Categorias Phil.', 'name_idt': 'Anonymi In Aristotelis Categorias Phil.'}, 'works': {'Paraphrasis categoriarum': ['Page', 'line']}}, 'Etymologicum Parvum': {'tlg_id': 'TLG4101', 'names': {'name_authtab': 'Etymologicum Parvum', 'name_idt': 'Etymologicum Parvum'}, 'works': {'Etymologicum parvum': ['Letter', 'entry', 'line']}}, 'Dictys Hist.': {'tlg_id': 'TLG1310', 'names': {'name_authtab': 'Dictys Hist.', 'name_idt': 'Dictys Hist.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Timonax Hist.': {'tlg_id': 'TLG1736', 'names': {'name_authtab': 'Timonax Hist.', 'name_idt': 'Timonax Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sophaenetus Hist.': {'tlg_id': 'TLG1683', 'names': {'name_authtab': 'Sophaenetus Hist.', 'name_idt': 'Sophaenetus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hierocles Phil.': {'tlg_id': 'TLG2571', 'names': {'name_authtab': 'Hierocles Phil.', 'name_idt': 'Hierocles Phil.'}, 'works': {'In aureum carmen': ['Chapter', 'section', 'line']}}, 'David Phil.': {'tlg_id': 'TLG4021', 'names': {'name_authtab': 'David Phil.', 'name_idt': 'David Phil.'}, 'works': {'"In Porphyrii isagogen commentarium': ['Page', 'line'], 'Prolegomena philosophiae': ['Page', 'line']}}, 'Melanthius Eleg., Trag.': {'tlg_id': 'TLG0254', 'names': {'name_authtab': 'Melanthius Eleg. et Trag.', 'name_idt': 'Melanthius Eleg., Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Georgius Gramm.': {'tlg_id': 'TLG3187', 'names': {'name_authtab': 'Georgius Gramm.', 'name_idt': 'Georgius Gramm.'}, 'works': {'Anacreontea': ['Fragment', 'line']}}, 'Simonides Epic.': {'tlg_id': 'TLG1906', 'names': {'name_authtab': 'Simonides Epic.', 'name_idt': 'Simonides Epic.'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Aratus Hist.': {'tlg_id': 'TLG2162', 'names': {'name_authtab': 'Aratus Hist.', 'name_idt': 'Aratus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Damon Mus.': {'tlg_id': 'TLG2232', 'names': {'name_authtab': 'Damon Mus.', 'name_idt': 'Damon Mus.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Epica Incerta (CA)': {'tlg_id': 'TLG1345', 'names': {'name_authtab': 'Epica Incerta (CA)', 'name_idt': 'Epica Incerta (CA)'}, 'works': {'Fragmentum': ['line'], 'Fragmenta': ['Fragment', 'line']}}, 'Ammonius Phil.': {'tlg_id': 'TLG4016', 'names': {'name_authtab': 'Ammonius Phil.', 'name_idt': 'Ammonius Phil.'}, 'works': {'%In Aristotelis analytica priora [Sp.]': ['Page', 'line'], '9In Aristotelis analyticorum priorum librum i commentarium': ['Page', 'line'], '&In Aristotelis categorias commentarius': ['Page', 'line'], '(In Porphyrii isagogen sive quinque voces': ['Page', 'line'], '5In Aristotelis librum de interpretatione commentarius': ['Page', 'line']}}, 'Stephanus Med.': {'tlg_id': 'TLG0736', 'names': {'name_authtab': 'Stephanus Med.', 'name_idt': 'Stephanus Med.'}, 'works': {'#In Magni sophistae librum de urinis': ['Section', 'line']}}, 'Antonini Pii Imperatoris Epistula': {'tlg_id': 'TLG1149', 'names': {'name_authtab': 'Antonini Pii Imperatoris Epistula', 'name_idt': 'Antonini Pii Imperatoris Epistula'}, 'works': {'Epistula ad commune Asiae': ['line']}}, 'Acta Joannis': {'tlg_id': 'TLG0317', 'names': {'name_authtab': 'Acta Joannis', 'name_idt': 'Acta Joannis'}, 'works': {'Acta Joannis': ['Section', 'line'], 'Acta Joannis (recensio)': ['Section', 'line']}}, 'Strabo Geogr.': {'tlg_id': 'TLG0099', 'names': {'name_authtab': 'Strabo Geogr.', 'name_idt': 'Strabo Geogr.'}, 'works': {'Geographica': ['Book', 'chapter', 'section', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Simplicius Phil.': {'tlg_id': 'TLG4013', 'names': {'name_authtab': 'Simplicius Phil.', 'name_idt': 'Simplicius Phil.'}, 'works': {"'De caelo i (interpretatio Graeca ex Kc)": ['Volume', 'page', 'line'], '&In Aristotelis categorias commentarium': ['Volume', 'page', 'line'], 'PIn Aristotelis libros de anima commentaria [Sp.?] (fort. auctore Prisciano Lydo)': ['Volume', 'page', 'line'], '$Commentarius in Epicteti enchiridion': ['Page', 'line'], ',In Aristotelis physicorum libros commentaria': ['Volume', 'page', 'line'], '3In Aristotelis quattuor libros de caelo commentaria': ['Volume', 'page', 'line']}}, '[Clitonymus] Hist.': {'tlg_id': 'TLG2190', 'names': {'name_authtab': '[Clitonymus] Hist.', 'name_idt': '[Clitonymus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymus Presbyter Scr. Eccl.': {'tlg_id': 'TLG1136', 'names': {'name_authtab': 'Anonymus Presbyter Scr. Eccl.', 'name_idt': 'Anonymus Presbyter Scr. Eccl.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Theodosius Diaconus Hist., Poeta': {'tlg_id': 'TLG3125', 'names': {'name_authtab': 'Theodosius Diaconus Hist. et Poeta', 'name_idt': 'Theodosius Diaconus Hist., Poeta'}, 'works': {'De Creta capta': ['\x0ePraefatio-poem', 'line']}}, 'Scholia In Lucianum': {'tlg_id': 'TLG5029', 'names': {'name_authtab': 'Scholia In Lucianum', 'name_idt': 'Scholia In Lucianum'}, 'works': {'4Scholia in Pseudo-Luciani Halcyonem (scholia vetera)': ['Hermann page', 'line'], ':Scholia in Lucianum (scholia vetera et recentiora Arethae)': ['Lucianic work', 'section', 'line', '\x92\x13\x14î\x16º\x18\x19´\x1b´¾\x1f\x1fî\x8c \x92 î½"""î©#\x92\x8c$$î$î$î%¼&î\'¼\'\x92\'\x8c*\x92\x8c**¶+î+\x92,\x8c\x8e,\x92,î-\x92..\x92®¾/î/\x92¾00\x920î1\x9211112\x922¾2½Ñ3334Í4Íî4î\x9244445\x925\x9255Í5Í555\x925666\x926Í66\x926\x926Í\x926\x926Í6ͳÍͳ7Î7Î7\x92777î\x9277Î77Î7δ7\x927Ï7Ï\x927888϶\x9288\x9288Ï88\x928888\x9288Ï\x928Ï88888Ï´9Ð9Ð99\x9299\x9299:Ð:Ð:\x92::::\x92\x8e\x92', '\x13\x16\x18\x19\x1b\x1f ""#$%\'\'\'***+³,,-../»001¿11112223334Í4ͳ4445555Í5Í55556666Í6666Í66Í7Î7Î7777ζ7Î77Î7δ77Ï7Ï7888϶8888Ï88888888Ï8Ï88889Ð\x8e;']}}, 'Rutilius Rufus Hist.': {'tlg_id': 'TLG2546', 'names': {'name_authtab': 'Publius Rutilius Rufus Hist.', 'name_idt': 'Rutilius Rufus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Bato Comic.': {'tlg_id': 'TLG0425', 'names': {'name_authtab': 'Bato Comic.', 'name_idt': 'Bato Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Diogenes Phil., Trag.': {'tlg_id': 'TLG0334', 'names': {'name_authtab': 'Diogenes Phil. et Trag.', 'name_idt': 'Diogenes Phil., Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apollas Hist.': {'tlg_id': 'TLG1162', 'names': {'name_authtab': 'Apollas Hist.', 'name_idt': 'Apollas Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, '[Homerus] Epic.': {'tlg_id': 'TLG0253', 'names': {'name_authtab': '[Homerus] Epic.', 'name_idt': '[Homerus] Epic.'}, 'works': {'Margites (fragmenta)': ['Fragment', 'line']}}, 'Acesander Hist.': {'tlg_id': 'TLG1832', 'names': {'name_authtab': 'Acesander Hist.', 'name_idt': 'Acesander Hist.'}, 'works': {'Fragmentum (P. Oxy. 32.2637)': ['FGrH fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line']}}, 'Lobo Poeta': {'tlg_id': 'TLG2630', 'names': {'name_authtab': 'Lobo Poeta', 'name_idt': 'Lobo Poeta'}, 'works': {'Fragmenta et titulus': ['Fragment', 'line'], '9Epigrammata in poetas ante Alexandrinorum aetatem condita': ['Page', 'line']}}, 'Iamblichus Scr. Erot.': {'tlg_id': 'TLG1441', 'names': {'name_authtab': 'Iamblichus Scr. Erot.', 'name_idt': 'Iamblichus Scr. Erot.'}, 'works': {'Babyloniaca': ['Fragment', 'line']}}, 'Archilochus Eleg., Iamb.': {'tlg_id': 'TLG0232', 'names': {'name_authtab': 'Archilochus Eleg. et Iamb.', 'name_idt': 'Archilochus Eleg., Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta lyrica': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Demetrii Phalerei Epistula': {'tlg_id': 'TLG1298', 'names': {'name_authtab': 'Demetrii Phalerei Epistula', 'name_idt': 'Demetrii Phalerei Epistula'}, 'works': {'Epistula': ['line']}}, 'Testamenta XII Patriarcharum': {'tlg_id': 'TLG1700', 'names': {'name_authtab': 'Testamenta XII Patriarcharum', 'name_idt': 'Testamenta XII Patriarcharum'}, 'works': {'Testamenta xii patriarcharum': ['Testamentum', 'chapter', 'section', 'line']}}, 'Antiphon Orat.': {'tlg_id': 'TLG0028', 'names': {'name_authtab': 'Antiphon Orat.', 'name_idt': 'Antiphon Orat.'}, 'works': {'Tetralogia 3': ['Tetralogy', 'section', 'line'], 'Fragmenta': ['Fragment', 'subfragment', 'line'], 'Tetralogia 2': ['Tetralogy', 'section', 'line'], 'De caede Herodis': ['Section', 'line'], 'In novercam': ['Section', 'line'], 'Tetralogia 1': ['Tetralogy', 'section', 'line'], 'De choreuta': ['Section', 'line', '']}}, 'Dieuches Med.': {'tlg_id': 'TLG0856', 'names': {'name_authtab': 'Dieuches Med.', 'name_idt': 'Dieuches Med.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Anthologia Graeca': {'tlg_id': 'TLG7000', 'names': {'name_authtab': 'Anthologia Graeca, AG', 'name_idt': 'Anthologia Graeca'}, 'works': {'': ['Anthologia Graeca', 'Book', 'epigram', 'line']}}, 'Diogenianus Phil.': {'tlg_id': 'TLG1322', 'names': {'name_authtab': 'Diogenianus Phil.', 'name_idt': 'Diogenianus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Agroetas Hist.': {'tlg_id': 'TLG1835', 'names': {'name_authtab': 'Agroetas Hist.', 'name_idt': 'Agroetas Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Fabius Pictor Hist.': {'tlg_id': 'TLG2542', 'names': {'name_authtab': 'Quintus Fabius Pictor Hist.', 'name_idt': 'Fabius Pictor Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hephaestion Astrol.': {'tlg_id': 'TLG2043', 'names': {'name_authtab': 'Hephaestion Astrol.', 'name_idt': 'Hephaestion Astrol.'}, 'works': {'"Excerptum (e cod. Paris. gr. 2506)': ['Page', 'line'], '#Excerptum (e cod. Marcian. gr. 334)': ['Page', 'line'], 'Apotelesmatica': ['Page', 'line'], ' Excerptum (e cod. Vat. gr. 1056)': ['Page', 'line'], '"Apotelesmatica (epitomae quattuor)': ['Page', 'line']}}, 'Lexica Segueriana': {'tlg_id': 'TLG4289', 'names': {'name_authtab': 'Lexica Segueriana', 'name_idt': 'Lexica Segueriana'}, 'works': {'+Anonymus antatticista (e cod. Coislin. 345)': ['Alphabetic entry', 'page', 'line'], 'qCollectio verborum utilium e differentibus rhetoribus et sapientibus multis ($*S&<6b>6) (recensio aucta e cod. Co': ['Alphabetic entry', 'page', 'line'], '(Glossae rhetoricae (e cod. Coislin. 345)': ['Alphabetic entry', 'page', 'line'], 'qCollectio verborum utilium e differentibus rhetoribus et sapientibus multis (%6 $*SUNAGWGH\\ LE/CEWN XRHSI/MWN E)K': ['Page', 'line'], '$De syntacticis (e cod. Coislin. 345)': ['Alphabetic entry', 'page', 'line'], ')$*DIKW=N O)NO/MATA &(e cod. Coislin. 345)': ['Alphabetic entry', 'page', 'line']}}, 'Amelii Epistula': {'tlg_id': 'TLG2004', 'names': {'name_authtab': 'Amelii Epistula', 'name_idt': 'Amelii Epistula'}, 'works': {'Amelii epistula': ['line']}}, 'Carmen Astrologicum': {'tlg_id': 'TLG0286', 'names': {'name_authtab': 'Carmen Astrologicum', 'name_idt': 'Carmen Astrologicum'}, 'works': {'Fragmentum': ['line']}}, 'Sosiphanes Trag.': {'tlg_id': 'TLG0338', 'names': {'name_authtab': 'Sosiphanes Trag.', 'name_idt': 'Sosiphanes Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heraclides Ponticus Phil.': {'tlg_id': 'TLG1409', 'names': {'name_authtab': 'Heraclides Ponticus Phil.', 'name_idt': 'Heraclides Ponticus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Theodorus Studites Scr. Eccl., Theol.': {'tlg_id': 'TLG2714', 'names': {'name_authtab': 'Theodorus Studites Scr. Eccl. et Theol.', 'name_idt': 'Theodorus Studites Scr. Eccl., Theol.'}, 'works': {'Epistulae': ['Epistle', 'line'], 'Iambi de variis argumentis': ['Epigram', 'line'], 'AHomilia in nativitatem Mariae (olim sub auctore Joanne Damasceno)': ['Volume', 'page', 'line']}}, 'Commentaria In Dionysii Thracis Artem Grammaticam': {'tlg_id': 'TLG4175', 'names': {'name_authtab': 'Commentaria In Dionysii Thracis Artem Grammaticam', 'name_idt': 'Commentaria In Dionysii Thracis Artem Grammaticam'}, 'works': {'Commentariolus Byzantinus': ['Page', 'line'], 'Prolegomena Vossiana': ['Page', 'line'], '0Commentarius (sub auctore Melampode vel Diomede)': ['Page', 'line'], 'qScholia Marciana (partim excerpta ex Heliodoro, Tryphone, Diomede, Stephano, Georgio Choerobosco, Gregorio Corint': ['Page', 'line'], '2Scholia Londinensia (partim excerpta ex Heliodoro)': ['Page', 'line'], 'qScholia Vaticana (partim excerpta ex Georgio Choerobosco, Georgio quodam, Porphyrio, Melampode, Stephano, Diomede': ['Page', 'line'], '$Commentarius (sub auctore Heliodoro)': ['Page', 'line']}}, 'Euripides Trag.': {'tlg_id': 'TLG0006', 'names': {'name_authtab': 'Euripides Trag.', 'name_idt': 'Euripides Trag.'}, 'works': {'Fragmenta Alexandri': ['Fragment', 'line'], '': ['Iphigenia Taurica', 'line'], 'Electra': ['line'], 'Cyclops': ['line'], 'Alcestis': ['line'], '#Fragmenta Phrixei (P. Oxy. 34.2685)': ['Fragment', 'line'], 'Fragmenta Antiopes': ['Fragment', 'line'], 'Troiades': ['line'], 'Heraclidae': ['line'], 'Iphigenia Aulidensis': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Helena': ['line'], 'Hippolytus': ['line'], 'Medea': ['line'], 'Fragmenta Phaethontis': ['line'], 'Andromacha': ['line'], 'Supplices': ['line'], 'Fragmenta fabulae incertae': ['Column', 'line'], 'Fragmenta Hypsipyles': ['Fragment', 'line'], 'Fragmenta Oenei': ['Page', 'fragment', 'line'], 'Rhesus': ['line'], 'Hercules': ['line'], 'Bacchae': ['line'], 'Phoenisae': ['line'], 'Orestes': ['line'], 'Ion': ['line'], 'Hecuba': ['line'], 'Epigrammata': ['Book', 'epigram', 'line'], '$Fragmenta Phaethontis incertae sedis': ['Fragment', 'line'], 'Fragmenta papyracea': ['Fragment', 'line'], '#Epinicium in Alcibiadem (fragmenta)': ['Fragment', 'line']}}, 'Amipsias Comic.': {'tlg_id': 'TLG0403', 'names': {'name_authtab': 'Amipsias Comic.', 'name_idt': 'Amipsias Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Minucianus Junior Rhet.': {'tlg_id': 'TLG2903', 'names': {'name_authtab': 'Minucianus Junior Rhet.', 'name_idt': 'Minucianus Junior Rhet.'}, 'works': {'$*PERI\\ E)PIXEIRHMA/TWN&': ['Page', 'line']}}, 'Phaedimus Epigr.': {'tlg_id': 'TLG1577', 'names': {'name_authtab': 'Phaedimus Epigr.', 'name_idt': 'Phaedimus Epigr.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Tyrannion Junior Gramm.': {'tlg_id': 'TLG1611', 'names': {'name_authtab': 'Tyrannion Junior Gramm.', 'name_idt': 'Tyrannion Junior Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Ptolemaeus Gnost.': {'tlg_id': 'TLG1641', 'names': {'name_authtab': 'Ptolemaeus Gnost.', 'name_idt': 'Ptolemaeus Gnost.'}, 'works': {'Epistula ad Floram': ['Chapter', 'section', 'line']}}, 'Sallustius Phil.': {'tlg_id': 'TLG2049', 'names': {'name_authtab': 'Sallustius Phil.', 'name_idt': 'Sallustius Phil.'}, 'works': {'De deis et mundo': ['Chapter', 'section', 'line']}}, 'Hermolochus Lyr.': {'tlg_id': 'TLG0240', 'names': {'name_authtab': 'Hermolochus Lyr.', 'name_idt': 'Hermolochus Lyr.'}, 'works': {'Fragmentum': ['line']}}, 'Scholia In Diophantum': {'tlg_id': 'TLG5021', 'names': {'name_authtab': 'Scholia In Diophantum', 'name_idt': 'Scholia In Diophantum'}, 'works': {'hScholia in Diophanti arithmetica (scholia recentiora e codd. Matr. Bibl. Nat. 4678; Vat. gr. 191 et 304)': ['Scholion', 'line']}}, 'Ilias Parva': {'tlg_id': 'TLG1444', 'names': {'name_authtab': 'Ilias Parva', 'name_idt': 'Ilias Parva'}, 'works': {'Ilias parva (fragmenta)': ['Fragment', 'line']}}, 'Melinno Lyr.': {'tlg_id': 'TLG1493', 'names': {'name_authtab': 'Melinno Lyr.', 'name_idt': 'Melinno Lyr.'}, 'works': {'$*EI)S *(RW/MHN&': ['Fragment', 'line']}}, 'Cleomedes Astron.': {'tlg_id': 'TLG1272', 'names': {'name_authtab': 'Cleomedes Astron.', 'name_idt': 'Cleomedes Astron.'}, 'works': {'%De motu circulari corporum caelestium': ['Page', 'line']}}, 'Codinus Hist.': {'tlg_id': 'TLG3168', 'names': {'name_authtab': 'Pseudo-Codinus Hist.', 'name_idt': 'Codinus Hist.'}, 'works': {'QPatria Constantinopoleos (ordo et tituli paragraphorum, quem sequitur recensio M)': ['Book', 'section', 'line'], '+Patria Constantinopoleos (variae lectiones)': ['Book', 'section', 'line'], 'Patria Constantinopoleos': ['Book', 'section', 'line'], 'ODe officiis (%6 officia palatii Constantinopoleos) (e codd Vat. gr. 162 %7 975)': ['Page', 'line'], 'CDe officiis (%6 officia magnae ecclesiae) (auctore Andrea Darmario)': ['Page', 'line'], '2De officiis (%6 officia palatii Constantinopoleos)': ['Page', 'line'], 'De annis ab orbe condito': ['Section', 'line'], 'fPatria Constantinopoleos (ordo et tituli paragraphorum, quem sequitur recensio C, ejusque additamenta)': ['Book', 'section', 'line']}}, 'Persinus Poeta': {'tlg_id': 'TLG2635', 'names': {'name_authtab': 'Persinus Poeta', 'name_idt': 'Persinus Poeta'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Geoponica': {'tlg_id': 'TLG4080', 'names': {'name_authtab': 'Geoponica', 'name_idt': 'Geoponica'}, 'works': {'Geoponica': ['Book', 'chapter', 'section', 'line']}}, 'Prodicus Soph.': {'tlg_id': 'TLG1634', 'names': {'name_authtab': 'Prodicus Soph.', 'name_idt': 'Prodicus Soph.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Cyranides': {'tlg_id': 'TLG1482', 'names': {'name_authtab': 'Cyranides', 'name_idt': 'Cyranides'}, 'works': {'Cyranides': ['Book', 'section', 'line']}}, 'Scholia In Aristophanem': {'tlg_id': 'TLG5014', 'names': {'name_authtab': 'Scholia In Aristophanem', 'name_idt': 'Scholia In Aristophanem'}, 'works': {'TCommentarium in ranas (scholia recentiora Tzetzae) (cod. Ambrosianus gr. C 222 inf.)': ['\x1aDramatis personae-scholion', 'verse', 'line'], '@Commentarium in plutum (recensio 1) (scholia recentiora Tzetzae)': ['Argumentum-dramatis personae-scholion', 'verse', 'line'], 'IScholia in nubes (scholia scholiorumque partes editionis Aldinae propria)': ['Play', 'verse', 'line'], '@Commentarium in plutum (recensio 2) (scholia recentiora Tzetzae)': ['Argumentum-dramatis personae-scholion', 'verse', 'line'], '!Scholia in nubes (scholia vetera)': ['Argumentum-dramatis personae-scholion', 'verse', 'line'], '2Commentarium in ranas (scholia recentiora Tzetzae)': ['Argumentum-dramatis personae-scholion', 'verse', 'line'], 'MScholia in nubes (scholia recentiora Eustathii, Thomae Magistri et Triclinii)': ['Argumentum-dramatis personae-scholion', 'verse', 'line'], ' Scholia in aves (scholia vetera)': ['Argumentum-scholion', 'verse', 'line'], '7Scholia in Acharnenses (scholia vetera) (P. Oxy. 6.856)': ['Play', '', 'fragment + column', 'line'], ';Commentarium in aves (scholia vetera et recentiora Tzetzae)': ['Argumentum-dramatis personae-scholion', 'section-verse', 'line'], '-Scholia in Thesmophoriazusas (scholia vetera)': ['Scholion', 'verse', 'line'], '-Scholia in nubes (scholia anonyma recentiora)': ['Play', 'verse', 'line'], '.Glossae in plutum (scholia recentiora Tzetzae)': ['Play', 'verse', 'line'], '2Commentarium in nubes (scholia recentiora Tzetzae)': ['Argumentum-dramatis personae-scholion', 'verse-column', 'line'], ')Scholia in ecclesiazusas (scholia vetera)': ['Argumentum-scholion', 'verse', 'line'], 'DScholia in vespas (scholia vetera, recentiora Tricliniana et Aldina)': ['Argumentum-dramatis personae-scholion', 'verse', 'line'], 'MScholia in plutum (scholia vetera et fort. recentiora sub auctore Moschopulo)': ['Argumentum-scholion', 'verse', 'line'], '-Argumentum in equites (argumentum Tzetzianum)': ['Argumentum-dramatis personae', 'line'], ';Scholia in equites (scholia vetera et recentiora Triclinii)': ['Argumentum-dramatis personae-scholion', 'section-verse', 'line'], '?Scholia in Acharnenses (scholia vetera et recentiora Triclinii)': ['\x1bHypothesis-epigram-scholion', 'verse', 'line'], '!Scholia in ranas (scholia vetera)': ['Argumentum-scholion', 'verse', 'line'], "'Scholia in Lysistratam (scholia vetera)": ['Argumentum-scholion', 'verse', 'line'], '9Scholia in pacem (scholia vetera et recentiora Triclinii)': ['Argumentum-dramatis personae-scholion', 'verse', 'line']}}, 'Ulpianus Gramm., Rhet.': {'tlg_id': 'TLG2604', 'names': {'name_authtab': 'Ulpianus Gramm. et Rhet.', 'name_idt': 'Ulpianus Gramm., Rhet.'}, 'works': {'?Prolegomena in Demosthenis orationes Olynthiacas et Philippicas': ['Page', 'line']}}, 'Constantinus VII Porphyrogenitus Imperator Hist.': {'tlg_id': 'TLG3023', 'names': {'name_authtab': 'Constantinus VII Porphyrogenitus Imperator Hist.', 'name_idt': 'Constantinus VII Porphyrogenitus Imperator Hist.'}, 'works': {'': ['Oratio ad milites', 'line'], 'De sententiis': ['Page', 'line'], '5De strategematibus (olim sub auctore Herone Byzantio)': ['Wescher page', 'line'], 'De legationibus': ['Page', 'line'], '/De cerimoniis aulae Byzantinae (lib. 1.84-2.56)': ['Page', 'line'], 'De virtutibus et vitiis': ['Volume', 'page', 'line'], 'De insidiis': ['Page', 'line'], '"Oratio de translatione Chrysostomi': ['Page', 'line'], 'De contionibus militaribus': ['Section', 'line', '.'], 'De administrando imperio': ['Chapter', 'line'], 'Narratio de imagine Edessena': ['Section', 'line'], ',De cerimoniis aulae Byzantinae (lib. 1.1-92)': ['Volume', 'page', 'line'], 'De thematibus': ['Asia-Europe', 'chapter', 'line']}}, 'Blemmydes Alchem.': {'tlg_id': 'TLG4333', 'names': {'name_authtab': 'Nicephorus Blemmydes Alchem.', 'name_idt': 'Blemmydes Alchem.'}, 'works': {'q$*NIKHFO/ROU TOU= *BLEMMU/DOU PERI\\ TH=S XRUSOPOII/AS &(fort. auctore Nicephoro Blemmyde alio) (e cod. Paris. B.N': ['Volume', 'page', 'line'], 'q$*(/APER XRH/|ZEI H( PAROU=SA KATASKEUH/ &(fort. auctore Nicephoro Blemmyde alio) (e cod. Paris. B.N. gr. 2509, f': ['Volume', 'page', 'line']}}, 'Theophrastus Alchem., Poeta': {'tlg_id': 'TLG4338', 'names': {'name_authtab': 'Theophrastus Alchem. et Poeta', 'name_idt': 'Theophrastus Alchem., Poeta'}, 'works': {'q$*QEOFRA/STOU FILOSO/FOU PERI\\ TH=S QEI/AS TE/XNHS DIA\\ STI/XWN I)A/MBWN &(fort. auctore Heliodoro alchemista et ': ['line']}}, 'Scholia In Lycophronem': {'tlg_id': 'TLG5030', 'names': {'name_authtab': 'Scholia In Lycophronem', 'name_idt': 'Scholia In Lycophronem'}, 'works': {'UScholia in Lycophronem (scholia vetera et recentiora partim Isaac et Joannis Tzetzae)': ['Scholion', 'line']}}, '[Agatharchides] Hist.': {'tlg_id': 'TLG2192', 'names': {'name_authtab': '[Agatharchides] Hist.', 'name_idt': '[Agatharchides] Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, '[Hermesianax] Hist.': {'tlg_id': 'TLG2532', 'names': {'name_authtab': '[Hermesianax] Hist.', 'name_idt': '[Hermesianax] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Acta Phileae': {'tlg_id': 'TLG2014', 'names': {'name_authtab': 'Acta Phileae', 'name_idt': 'Acta Phileae'}, 'works': {'Acta Phileae (P. Bodmer 20)': ['Column', 'line']}}, 'Hermias Apol.': {'tlg_id': 'TLG0531', 'names': {'name_authtab': 'Hermias Apol.', 'name_idt': 'Hermias Apol.'}, 'works': {'Irrisio gentilium philosophorum': ['Section', 'line']}}, 'Archippus Comic.': {'tlg_id': 'TLG0417', 'names': {'name_authtab': 'Archippus Comic.', 'name_idt': 'Archippus Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, '[Ath]enodorus Trag.': {'tlg_id': 'TLG0621', 'names': {'name_authtab': '[Ath]enodorus Trag.', 'name_idt': '[Ath]enodorus Trag.'}, 'works': {'Titulus': ['line']}}, 'Charax Hist.': {'tlg_id': 'TLG1254', 'names': {'name_authtab': 'Charax Hist.', 'name_idt': 'Charax Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Arethas Philol., Scr. Eccl.': {'tlg_id': 'TLG2130', 'names': {'name_authtab': 'Arethas Philol. et Scr. Eccl.', 'name_idt': 'Arethas Philol., Scr. Eccl.'}, 'works': {';Fragmentum in epistulam ii ad Thessalonicenses (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam i ad Corinthios (in catenis)': ['Page', 'line'], 'kScholia Arethae in Cyrilli apologiam xii anathematismorum contra Theodoretum et in Theodoreti impugnationem': ['Page', 'line'], '3Fragmentum in epistulam i ad Timotheum (in catenis)': ['Page', 'line'], '0Fragmentum in epistulam ad Hebraeos (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], '4Fragmenta in epistulam ii ad Corinthios (in catenis)': ['Page', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Timaeus Phil.': {'tlg_id': 'TLG1734', 'names': {'name_authtab': 'Timaeus Phil.', 'name_idt': 'Timaeus Phil.'}, 'works': {'Fragmenta et titulus [Sp.]': ['Page', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Anonymus De Viribus Herbarum': {'tlg_id': 'TLG0282', 'names': {'name_authtab': 'Anonymus De Viribus Herbarum', 'name_idt': 'Anonymus De Viribus Herbarum'}, 'works': {"'Carminis de viribus herbarum fragmentum": ['line']}}, 'Hyperochus Hist.': {'tlg_id': 'TLG2396', 'names': {'name_authtab': 'Hyperochus Hist.', 'name_idt': 'Hyperochus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Lesbonax Rhet.': {'tlg_id': 'TLG0649', 'names': {'name_authtab': 'Lesbonax Rhet.', 'name_idt': 'Lesbonax Rhet.'}, 'works': {'$*POLITIKO/S&': ['Section', 'line'], '$*PROTREPTIKO\\S& B': ['Section', 'line'], '$*PROTREPTIKO\\S& A': ['Section', 'line']}}, 'Phillis Hist.': {'tlg_id': 'TLG2594', 'names': {'name_authtab': 'Phillis Hist.', 'name_idt': 'Phillis Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Asclepiades Epigr.': {'tlg_id': 'TLG0137', 'names': {'name_authtab': 'Asclepiades Epigr.', 'name_idt': 'Asclepiades Epigr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Diogenes Trag.': {'tlg_id': 'TLG0320', 'names': {'name_authtab': 'Diogenes Trag.', 'name_idt': 'Diogenes Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Cornutus Phil.': {'tlg_id': 'TLG0654', 'names': {'name_authtab': 'Lucius Annaeus Cornutus Phil.', 'name_idt': 'Cornutus Phil.'}, 'works': {'De natura deorum': ['Page', 'line']}}, 'Fragmentum Stoicum': {'tlg_id': 'TLG2287', 'names': {'name_authtab': 'Fragmentum Stoicum', 'name_idt': 'Fragmentum Stoicum'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Philistus Hist.': {'tlg_id': 'TLG1591', 'names': {'name_authtab': 'Philistus Hist.', 'name_idt': 'Philistus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hippocrates Med.': {'tlg_id': 'TLG0751', 'names': {'name_authtab': 'Pseudo-Hippocrates Med.', 'name_idt': 'Hippocrates Med.'}, 'works': {'-$*PERI\\ DIAFORA=S TROFW=N PRO\\S *PTOLEMAI=ON&': ['Page', 'line'], ')$*PERI\\ DIAFO/RWN KAI\\ PANTOI/WN TROFW=N&': ['Page', 'line'], 'Epistula ad Ptolemaeum regem': ['Page', 'line'], '/Epistula ad Ptolemaeum regem de hominis fabrica': ['Page', 'line'], '$$*(ERMHNEI/A PERI\\ E)NERGW=N LI/QWN&': ['Lexical entry', 'line']}}, 'Periplus Maris Erythraei': {'tlg_id': 'TLG0071', 'names': {'name_authtab': 'Periplus Maris Erythraei', 'name_idt': 'Periplus Maris Erythraei'}, 'works': {'5Anonymi (Arriani, ut fertur) periplus maris Erythraei': ['Section', 'line']}}, 'Orphica': {'tlg_id': 'TLG0579', 'names': {'name_authtab': 'Orphica', 'name_idt': 'Orphica'}, 'works': {'Argonautica': ['line', '³'], '': ['Lithica kerygmata', 'Section', 'line'], 'Fragmenta (P. Derveni)': ['Column', 'line'], 'Lithica': ['line'], 'Testimonia': ['Fragment', 'line'], 'Hymni': ['Hymn', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Fragmentum astrologicum': ['Volume', 'page', 'line']}}, 'Myia Phil.': {'tlg_id': 'TLG0509', 'names': {'name_authtab': 'Myia Phil.', 'name_idt': 'Myia Phil.'}, 'works': {'Epistula ad Phyllidem': ['Page', 'line']}}, 'Cleomenes Lyr.': {'tlg_id': 'TLG0900', 'names': {'name_authtab': 'Cleomenes Lyr.', 'name_idt': 'Cleomenes Lyr.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Gregorius Nyssenus Theol.': {'tlg_id': 'TLG2017', 'names': {'name_authtab': 'Gregorius Nyssenus Theol.', 'name_idt': 'Gregorius Nyssenus Theol.'}, 'works': {'': ['De paradiso [Sp.]', 'Page', 'line'], '+Adversus eos qui castigationes aegre ferunt': ['Volume', 'page', 'line'], 'OSermo in sanctum Romanum (ap. Joannem Damascenum, Sacra parallela) (fragmentum)': ['Volume', 'page', 'line'], 'IIn sanctum et salutare pascha (vulgo In Christi resurrectionem oratio iv)': ['Volume', 'page', 'line'], '%Ad Theophilum adversus Apollinaristas': ['Volume', 'page', 'line'], 'De vita Mosis': ['Chapter', 'section', 'line'], '&De creatione hominis sermo alter [Sp.]': ['Page', 'line'], 'PSermo in Mariam et Joseph (ap. Joannem Damascenum, Sacra parallela) (fragmentum)': ['Volume', 'page', 'line'], '[In luciferam sanctam domini resurrectionem (vulgo In Christi resurrectionem oratio v) [Sp.]': ['Volume', 'page', 'line'], ' Orationes viii de beatitudinibus': ['Volume', 'page', 'line'], 'De sancto Theodoro': ['Volume', 'page', 'line'], 'Epistula canonica ad Letoium': ['Volume', 'page', 'line'], '3In diem luminum (vulgo In baptismum Christi oratio)': ['Volume', 'page', 'line'], '#Antirrheticus adversus Apollinarium': ['Volume', 'page', 'line'], 'Refutatio confessionis Eunomii': ['Section', 'line'], '/De beneficentia (vulgo De pauperibus amandis i)': ['Volume', 'page', 'line'], '%De pythonissa ad Theodosium episcopum': ['Page', 'line'], '4De creatione hominis sermo primus (recensio C) [Sp.]': ['Page', 'line'], '"Ad Ablabium quod non sint tres dei': ['Volume', 'page', 'line'], 'Contra Eunomium': ['Book', 'chapter', 'section', 'line'], '$In Canticum canticorum (homiliae 15)': ['Volume', 'page', 'line'], 'De instituto Christiano': ['Volume', 'page', 'line'], '#Ad Graecos ex communibus notionibus': ['Volume', 'page', 'line'], 'In inscriptiones Psalmorum': ['Volume', 'page', 'line'], 'De iis qui baptismum differunt': ['Volume', 'page', 'line'], 'VEpistula ad Philippum monachum (ap. Joannem Damascenum, Contra Jacobitas) (fragmentum)': ['Page', 'line'], 'In annuntiationem [Sp.]': ['line'], 'UIn illud: Quatenus uni ex his fecistis mihi fecistis (vulgo De pauperibus amandis ii)': ['Volume', 'page', 'line'], '!Ad Eustathium de sancta trinitate': ['Volume', 'page', 'line'], '#De deitate filii et spiritus sancti': ['Volume', 'page', 'line'], '.Encomium in sanctum Stephanum protomartyrem ii': ['Volume', 'page', 'line'], 'Contra fatum': ['Page', 'line'], '(Epistula xxvi ad Evagrium monachum [Sp.]': ['Volume', 'page', 'line'], '"Dialogus de anima et resurrectione': ['Volume', 'page', 'line'], '%Oratio funebris in Meletium episcopum': ['Volume', 'page', 'line'], ' De oratione dominica orationes v': ['Page', 'line'], 'Vita sanctae Macrinae': ['Section', 'line'], 'In Ecclesiasten (homiliae 8)': ['Volume', 'page', 'line'], '#Tractatus ad Xenodorum (fragmentum)': ['line'], 'In Basilium fratrem': ['Section', 'line'], 'Oratio catechetica magna': ['Section', 'line'], 'In ascensionem Christi': ['Volume', 'page', 'line'], '%De spiritu sancto sive In pentecosten': ['Volume', 'page', 'line'], "'De creatione hominis sermo primus [Sp.]": ['Page', 'line'], '"De paradiso (recensio $*L&F) [Sp.]': ['Page', 'line'], '>In sanctum pascha (vulgo In Christi resurrectionem oratio iii)': ['Volume', 'page', 'line'], 'De vita Gregorii Thaumaturgi': ['Volume', 'page', 'line'], '!De infantibus praemature abreptis': ['Page', 'line'], 'In sanctum Ephraim': ['Volume', 'page', 'line'], ')Ad imaginem dei et ad similitudinem [Sp.]': ['Volume', 'page', 'line'], 'De opificio hominis': ['Page', 'line'], '9De deitate adversus Evagrium (vulgo In suam ordinationem)': ['Volume', 'page', 'line'], '!Oratio consolatoria in Pulcheriam': ['Volume', 'page', 'line'], 'Epistulae': ['Epistle', 'section', 'line'], 'Encomium in xl martyres ii': ['Volume', 'page', 'line'], 'Encomium in xl martyres i': ['Volume', 'page', 'line'], '!Testimonia adversus Judaeos [Sp.]': ['Volume', 'page', 'line'], '-Adversus Arium et Sabellium de patre et filio': ['Volume', 'page', 'line'], '(Decem syllogismi contra Manichaeos [Sp.]': ['Volume', 'page', 'line'], '%Inventio imaginis in Camulianis [Sp.]': ['Section', 'line'], 'De mortuis non esse dolendum': ['Volume', 'page', 'line'], ')Oratio funebris in Flacillam imperatricem': ['Volume', 'page', 'line'], 'Apologia in hexaemeron': ['Page', 'line'], 'bSermo in illud: Hic est filius meus dilectus (ap. Joannem Damascenum, Sacra parallela) (fragmenta)': ['Volume', 'page', 'line'], 'Ad Simplicium de fide': ['Volume', 'page', 'line'], "'Adversus Macedonianos de spiritu sancto": ['Volume', 'page', 'line'], 'Contra usurarios': ['Volume', 'page', 'line'], 'qDe tridui inter mortem et resurrectionem domini nostri Jesu Christi spatio (vulgo In Christi resurrectionem orati': ['Volume', 'page', 'line'], '&De professione Christiana ad Harmonium': ['Volume', 'page', 'line'], 'De virginitate': ['Chapter', 'section', 'line'], '.De perfectione Christiana ad Olympium monachum': ['Volume', 'page', 'line'], ' De virginitate (recensio altera)': ['Chapter', 'section', 'line'], '3De creatione hominis sermo alter (recensio C) [Sp.]': ['Page', 'line'], '-Encomium in sanctum Stephanum protomartyrem i': ['Page', 'line'], 'Oratio in diem natalem Christi': ['MPG page', 'line'], 'Contra fornicarios': ['Volume', 'page', 'line'], 'hLiber de cognitione dei (%6 $*QEOGNWSI/A&) (fragmenta ap. Euthymium Zigabenum, Panoplia dogmatica) [Sp.]': ['Volume', 'page', 'line'], 'De occursu domini [Sp.]': ['Volume', 'page', 'line'], 'In illud: Tunc et ipse filius': ['Page', 'line']}}, 'Joannes VI Cantacuzenus': {'tlg_id': 'TLG3169', 'names': {'name_authtab': 'Joannes VI Cantacuzenus', 'name_idt': 'Joannes VI Cantacuzenus'}, 'works': {'Historiae': ['Volume', 'page', 'line']}}, 'Hippasus Phil.': {'tlg_id': 'TLG2260', 'names': {'name_authtab': 'Hippasus Phil.', 'name_idt': 'Hippasus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line'], 'Tituli': ['Page', 'line']}}, 'Democritus Phil.': {'tlg_id': 'TLG1304', 'names': {'name_authtab': 'Democritus Phil.', 'name_idt': 'Democritus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line', '´\x8eÂüÞ«\x12´\x14ë\x14\x15¶\x16¶\x16³'], 'Testimonia': ['Fragment', 'line', '']}}, 'Chamaeleon Phil.': {'tlg_id': 'TLG1251', 'names': {'name_authtab': 'Chamaeleon Phil.', 'name_idt': 'Chamaeleon Phil.'}, 'works': {'Fragmenta': ['\x0fWehrli fragment', 'line']}}, 'Sophron Mimogr.': {'tlg_id': 'TLG0524', 'names': {'name_authtab': 'Sophron Mimogr.', 'name_idt': 'Sophron Mimogr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hicetas Phil.': {'tlg_id': 'TLG2240', 'names': {'name_authtab': 'Hicetas Phil.', 'name_idt': 'Hicetas Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Scholia In Aeschylum': {'tlg_id': 'TLG5010', 'names': {'name_authtab': 'Scholia In Aeschylum', 'name_idt': 'Scholia In Aeschylum'}, 'works': {'.Scholia in Prometheum vinctum (scholia vetera)': [' Vita-argumentum-scholion-epigram', 'verse', 'line'], 'VScholia in Persas (scholia vetera et recentiora Thomae Magistri et Demetrii Triclinii)': ['\x0eScholion-gloss', '\x10hypothesis-verse', 'line'], 'qScholia in Prometheum vinctum (scholia recentiora Thomae Magistri et Demetrii Triclinii) (e cod. Neapol. II.F.31)': ['\x18Hypothesis-verse of play', 'line'], 'qArgumentum in margine et glossae interlineariae ad Persas (glossae recentiores) (e codd. Vindob. 197; Palatino 18': ['Scholion', 'line'], '%Scholia in Aeschylum (scholia vetera)': ['Play', 'hypothesis-epigram-scholion', 'line', '', '\x92', '\x12\x12óíîëÎÎÓà´í³¾ÊÒê´úê곳곳ËëÐÝë÷³\x8e³¿´´Ìíë´³þ´¶ÆÓßû¶¶®¶ê¿´ÉÞ´\x8cî÷¶¶³Ç¶Üêê÷¶´§¶ùÃíùÓ\x10ù\x10\x10', '', '', '\x12\x12óí\x14\x14\x1aÎ\x1bÎ\x1b/³´/³¶0003³³8÷´¶8Bë´¶IIN¶´R®¶RRXÞ³\\^¶_¶ako'], '*Catalogus in fabulas (e cod. Mediceo 32.9)': ['line'], '<Scholia in Aeschylum (scholia recentiora Demetrii Triclinii)': ['Play', '\x13hypothesis-scholion', 'line'], ':Scholia prototricliniana in Aeschylum (scholia recentiora)': ['Play', 'scholion', 'line'], 'BScholia de metris Aeschyli (scholia recentiora Demetrii Triclinii)': ['Play', 'verse of play', 'line'], '8Scholia in Persas (scholia vetera) (e cod. Mediceo 32.9)': ['Scholion', 'line'], 'qScholia et glossae in Persas (scholia vetera et recentiora Thomae Magistri et Demetrii Triclinii) (e cod. Laur. 3': ['Verse of play', 'line'], '_Scholia in Eumenides (scholia vetera et recentiora Demetrii Triclinii) (e cod. Neapol. II.F.31)': ['Argumentum-scholion', 'line'], '&Scholia in Persas (scholia recentiora)': ['Hypothesis-scholion', 'line'], ')Scholia in Aeschylum (scholia recentiora)': ['Play', 'hypothesis-verse of play', 'line'], '"Scholia in Persas (scholia vetera)': ['\x18Hypothesis-verse of play', 'line']}}, 'Bato Hist., Rhet.': {'tlg_id': 'TLG1219', 'names': {'name_authtab': 'Bato Hist. et Rhet.', 'name_idt': 'Bato Hist., Rhet.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pittaci Epistula': {'tlg_id': 'TLG1613', 'names': {'name_authtab': 'Pittaci Epistula', 'name_idt': 'Pittaci Epistula'}, 'works': {'Epistula': ['line']}}, 'Staphylus Hist.': {'tlg_id': 'TLG2182', 'names': {'name_authtab': 'Staphylus Hist.', 'name_idt': 'Staphylus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymus De Plantis Aegyptiis': {'tlg_id': 'TLG1813', 'names': {'name_authtab': 'Anonymus De Plantis Aegyptiis', 'name_idt': 'Anonymus De Plantis Aegyptiis'}, 'works': {'Fragmentum (P. Oxy. 15.1796)': ['Column', 'line']}}, 'Timagenes Hist.': {'tlg_id': 'TLG1918', 'names': {'name_authtab': 'Timagenes Hist.', 'name_idt': 'Timagenes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Julius Epic.': {'tlg_id': 'TLG1757', 'names': {'name_authtab': 'Julius Epic.', 'name_idt': 'Julius Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Procopius Rhet., Scr. Eccl.': {'tlg_id': 'TLG2598', 'names': {'name_authtab': 'Procopius Rhet. et Scr. Eccl.', 'name_idt': 'Procopius Rhet., Scr. Eccl.'}, 'works': {'!Epistula (e cod. Barocc. gr. 131)': ['line'], 'Commentarii in Isaiam': ['Page', 'line'], 'Horologium': ['line'], 'Declamationes': ['Declamation', 'line'], '2Refutatio Procli (fragmentum e cod. Vat. gr. 1096)': ['Page', 'line'], 'Epistula (e cod. Esc. gr. 234)': ['line'], 'Descriptio imaginis': ['Section', 'line'], 'Epistulae 1-166': ['Epistle', 'line'], ',Catena in Ecclesiasten (e cod. Marc. gr. 22)': ['Chapter', 'section', 'line'], 'Catena in Canticum canticorum': ['Page', 'line']}}, 'Androtion Hist.': {'tlg_id': 'TLG1125', 'names': {'name_authtab': 'Androtion Hist.', 'name_idt': 'Androtion Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Timaeus Sophista Gramm.': {'tlg_id': 'TLG2602', 'names': {'name_authtab': 'Timaeus Sophista Gramm.', 'name_idt': 'Timaeus Sophista Gramm.'}, 'works': {'(Lexicon Platonicum (e cod. Coislin. 345)': ['\x19Epistle-alphabetic letter', 'page', 'line']}}, 'Eccelus Phil.': {'tlg_id': 'TLG1340', 'names': {'name_authtab': 'Eccelus Phil.', 'name_idt': 'Eccelus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Thearidas Phil.': {'tlg_id': 'TLG1711', 'names': {'name_authtab': 'Thearidas Phil.', 'name_idt': 'Thearidas Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Symeon Metaphrastes Biogr., Hist.': {'tlg_id': 'TLG3115', 'names': {'name_authtab': 'Symeon Metaphrastes Biogr. et Hist.', 'name_idt': 'Symeon Metaphrastes Biogr., Hist.'}, 'works': {'/Chronicon breve (lib. 7-8) (redactio recentior)': ['Page', 'line']}}, 'Menecles Hist.': {'tlg_id': 'TLG1499', 'names': {'name_authtab': 'Menecles Hist.', 'name_idt': 'Menecles Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Polybius Hist.': {'tlg_id': 'TLG0543', 'names': {'name_authtab': 'Polybius Hist.', 'name_idt': 'Polybius Hist.'}, 'works': {'Fragmenta ex incertis libris': ['Fragment', 'line'], 'Testimonium': ['line', 'fragment', 'line'], 'Historiae': ['Book', 'chapter', 'section', 'line']}}, 'Scholia In Euclidem': {'tlg_id': 'TLG5022', 'names': {'name_authtab': 'Scholia In Euclidem', 'name_idt': 'Scholia In Euclidem'}, 'works': {'9Scholia in opticorum recensionem Theonis (scholia vetera)': ['Scholion', 'line'], ';Scholia in Euclidis elementa (scholia vetera et recentiora)': ['Book', 'scholion', 'line', "\x15î\x16ó\x17ù³\x1b¶\x1e¶$$%&¤&''*³+½¶.14½¶599;;<==«´>A´EѳK¶¶LS³¶Vë³¶\\^´_``afjî´lmîoÀr"], ')Scholia in Euclidis data (scholia vetera)': ['Section', 'scholion', 'line'], '/Scholia in Euclidis catoptrica (scholia vetera)': ['Scholion', 'line'], '/Scholia in Euclidis phaenomena (scholia vetera)': ['Scholion', 'line'], '+Scholia in Euclidis optica (scholia vetera)': ['Scholion', 'line'], '7Scholia in Euclidis data et catoptrica (scholia vetera)': ['Page', 'line']}}, 'Epicrates Comic.': {'tlg_id': 'TLG0451', 'names': {'name_authtab': 'Epicrates Comic.', 'name_idt': 'Epicrates Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Lycurgus Orat.': {'tlg_id': 'TLG0034', 'names': {'name_authtab': 'Lycurgus Orat.', 'name_idt': 'Lycurgus Orat.'}, 'works': {'Fragmenta': ['Oration', 'fragment', 'line'], 'Oratio in Leocratem': ['Section', 'line']}}, 'Anonymi Historici (FGrH)': {'tlg_id': 'TLG1139', 'names': {'name_authtab': 'Anonymi Historici (FGrH)', 'name_idt': 'Anonymi Historici (FGrH)'}, 'works': {')Alexandri historia (e cod. Sabbaitico 29)': ['line', 'fragment', 'line'], '': ['Anonymus Milesius', 'line', 'fragment', 'line'], 'De finibus urbis': ['line', 'fragment', 'line'], 'Chronicon Romanum (IG 14.1297)': ['line', 'fragment', 'line'], 'Apophthegmata Romana': ['line', 'fragment', 'line'], 'Anonymus exegeta': ['line', 'fragment', 'line'], 'Chronicon Pergamenum': ['line', 'fragment', 'line'], '1De historia diadochorum (epitome Heidelbergensis)': ['line', 'fragment', 'line'], '.Heraclis historia (Tabula Albana) (IG 14.1293)': ['line', 'fragment', 'line'], 'De Theramene (P. Mich. 5982)': ['line', ':', '³'], 'Enchiridion (P. Ryl. 22)': ['line', 'fragment', 'line'], 'Anonymus philosophus': ['line', 'fragment', 'line'], 'De Lesbo': ['line', 'fragment', 'line'], 'Anonymi ex historiis Polybii': ['line', 'fragment', 'line'], '%$*EU)MOLPIDW=N PA/TRIA& (testimonium)': ['line', 'fragment', 'line'], '#Victores olympici (P. Oxy. 23.2381)': ['FGrH fragment', 'line', ''], 'KVictores Olympici (fort. auctore Phlegonte vel Eratosthene) (P. Oxy. 2.222)': ['line', 'fragment', 'line'], '%Chronicon Archontum (P. Oxy. 13.1613)': ['line', 'fragment', 'line'], '#Chronicon Oxyrhynchi (P. Oxy. 1.12)': ['line', 'fragment', 'line'], '$$*EU)PATRIDW=N PA/TRIA& (fragmentum)': ['line', 'fragment', 'line'], 'Anonymus de conditu Hermopolis': ['line', 'fragment', 'line'], '!Alexandri historia (P. Hamb. 652)': ['line', 'Q', '´'], 'Philippica (P. Ryl. 3.490)': ['line', 'U', '³'], 'Scriptores de Athenis': ['line', 'fragment', 'line', '³'], '7De agrimensore Syriae (fort. auctore Xenophonte quodam)': ['line', 'fragment', 'line'], 'Fragmenta historica': ['line', 'fragment', 'line'], '-Chronicon Olympicum (fort. auctore Phlegonte)': ['line', 'fragment', 'line'], 'De sacris Atheniensibus': ['line', 'fragment', 'line'], '2Belli Syrii tertii annales (P. Petrie 2.45; 3.144)': ['line', 'fragment', 'line'], 'De historia Alexandri': ['line', 'fragment', 'line'], 'De Pyrrho (testimonium)': ['line', 'fragment', 'line'], '&Anonymus periegeta (P. Hawara 80%3`81)': ['line', 'fragment', 'line'], 'Anagraphe Sicyonia': ['line', 'fragment', 'line'], 'De Nilo': ['line', 'fragment', 'line'], '$Alexandri historia (P. Oxy. 17.2081)': ['FGrH fragment', 'line', 'A', '´'], "'De Marco Aurelio Antonino (testimonium)": ['line', 'fragment', 'line'], 'Anonymus Corinthius': ['line', 'fragment', 'line'], '$Alexandri historia (P. Oxy. 15.1798)': ['line', 'fragment', 'line'], 'De Hannibale': ['line', 'fragment', 'line']}}, 'Aristonicus Hist.': {'tlg_id': 'TLG1899', 'names': {'name_authtab': 'Aristonicus Hist.', 'name_idt': 'Aristonicus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cantharus Comic.': {'tlg_id': 'TLG0428', 'names': {'name_authtab': 'Cantharus Comic.', 'name_idt': 'Cantharus Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Scholia In Dionysium Byzantium': {'tlg_id': 'TLG5018', 'names': {'name_authtab': 'Scholia In Dionysium Byzantium', 'name_idt': 'Scholia In Dionysium Byzantium'}, 'works': {'KScholia in Dionysii Byzantii per Bosporum navigationem (scholia recentiora)': ['Scholion', 'line']}}, 'Aristocles Phil.': {'tlg_id': 'TLG1188', 'names': {'name_authtab': 'Aristocles Phil.', 'name_idt': 'Aristocles Phil.'}, 'works': {'Fragmenta': ['\x15Fragment or vestigium', 'line']}}, 'Aristides Quintilianus Mus.': {'tlg_id': 'TLG2054', 'names': {'name_authtab': 'Aristides Quintilianus Mus.', 'name_idt': 'Aristides Quintilianus Mus.'}, 'works': {'De musica': ['Book', 'section', 'line']}}, 'Anonymus Seguerianus Rhet.': {'tlg_id': 'TLG2002', 'names': {'name_authtab': 'Anonymus Seguerianus Rhet.', 'name_idt': 'Anonymus Seguerianus Rhet.'}, 'works': {"'Ars rhetorica (olim sub nomine Cornuti)": ['Section', 'line']}}, 'Philolaus Phil.': {'tlg_id': 'TLG1596', 'names': {'name_authtab': 'Philolaus Phil.', 'name_idt': 'Philolaus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta [Sp.]': ['Page', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Lynceus Comic.': {'tlg_id': 'TLG0471', 'names': {'name_authtab': 'Lynceus Comic.', 'name_idt': 'Lynceus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Nausicrates Comic.': {'tlg_id': 'TLG0478', 'names': {'name_authtab': 'Nausicrates Comic.', 'name_idt': 'Nausicrates Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Artemidorus Eleg.': {'tlg_id': 'TLG2651', 'names': {'name_authtab': 'Artemidorus Eleg.', 'name_idt': 'Artemidorus Eleg.'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Demonicus Comic.': {'tlg_id': 'TLG0441', 'names': {'name_authtab': 'Demonicus Comic.', 'name_idt': 'Demonicus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Hermippus Comic.': {'tlg_id': 'TLG0252', 'names': {'name_authtab': 'Hermippus Comic.', 'name_idt': 'Hermippus Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmentum (P. Oxy. 13.1611)': ['Fragment', 'line']}}, 'Herodianus Hist.': {'tlg_id': 'TLG0015', 'names': {'name_authtab': 'Herodianus Hist.', 'name_idt': 'Herodianus Hist.'}, 'works': {'Ab excessu divi Marci': ['Book', 'chapter', 'section', 'line']}}, 'Hegesippus Hist.': {'tlg_id': 'TLG1397', 'names': {'name_authtab': 'Hegesippus Hist.', 'name_idt': 'Hegesippus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Antigenes Hist.': {'tlg_id': 'TLG1945', 'names': {'name_authtab': 'Antigenes Hist.', 'name_idt': 'Antigenes Hist.'}, 'works': {'Fragmentum': ['FGrH fragment', 'line']}}, 'Themistius Phil., Rhet.': {'tlg_id': 'TLG2001', 'names': {'name_authtab': 'Themistius Phil. et Rhet.', 'name_idt': 'Themistius Phil., Rhet.'}, 'works': {'': ['$*$*PENTAETHRIKO/S& !!! TRANSLITERATE', 'Harduin page', 'section', 'line'], '&$*FILA/DELFOI H)\\ PERI\\ FILANQRWPI/AS&': ['Harduin page', 'section', 'line'], '!$*(H E)PI\\ TW=| LO/GW| DIA/LECIS&': ['Harduin page', 'section', 'line'], 'b$*EI)S *KWNSTA/NTION TO\\N AU)TOKRA/TORA, O(/TI MA/LISTA FILO/SOFOS O( BASILEU/S, H)\\ XARISTH/RIOS&': ['Harduin page', 'section', 'line'], '-$*PERI\\ TW=N H)TUXHKO/TWN E)PI\\ *OU)A/LENTOS&': ['Harduin page', 'section', 'line'], '/$*PRESBEUTIKO\\S EI)S *QEODO/SION AU)TOKRA/TORA&': ['Harduin page', 'section', 'line'], '+(Sophoniae) in parva naturalia commentarium': ['Volume', 'page', 'line'], 'j$*XARISTH/RIOS TW=| AU)TOKRA/TORI U(PE\\R TH=S EI)RH/NHS KAI\\ TH=S U(PATEI/AS TOU= STRATHGOU= *SATORNI/NOU&': ['Harduin page', 'section', 'line'], '0$*PROTREPTIKO\\S *NIKOMHDEU=SIN EI)S FILOSOFI/AN&': ['Harduin page', 'section', 'line'], 'B$*PRESBEUTIKO\\S U(PE\\R *KWNSTANTINOUPO/LEWS R(HQEI\\S E)N *(RW/MH|&': ['Harduin page', 'section', 'line'], '#$*)EPI\\ TH=S EI)RH/NHS *OU)A/LENTI&': ['Harduin page', 'section', 'line'], '+$*)ERWTIKO\\S H)\\ PERI\\ KA/LLOUS BASILIKOU=&': ['Harduin page', 'section', 'line'], '+$*)EPI\\ TH=| XEIROTONI/A| TH=S POLIARXI/AS&': ['Harduin page', 'section', 'line'], '[2$*F&]2$ILO/POLIS&': ['line'], '($*PERI\\ PROEDRI/AS EI)S TH\\N SU/GKLHTON&': ['Harduin page', 'section', 'line'], '$*QE/SIS EI) GEWRGHTE/ON&': ['Harduin page', 'section', 'line'], 'DQuae fertur in Aristotelis analyticorum priorum librum i paraphrasis': ['Volume', 'page', 'line'], ' $*PERI\\ FRONH/SEWS &(fragmentum)': ['Dindorf page', 'section', 'line'], '9$*PRO\\S TOU\\S OU)K O)RQW=S E)CHGOUME/NOUS TO\\N SOFISTH/N&': ['Harduin page', 'section', 'line'], '$*PERI\\ FILI/AS&': ['Harduin page', 'section', 'line'], '*In Aristotelis libros de anima paraphrasis': ['Volume', 'page', 'line'], '<[2$*(UPE\\R TOU= LE/GEIN H)\\ PW=S TW=| FILOSO/FW| LEKTE/ON&]2': ['Harduin page', 'section', 'line'], '$Analyticorum posteriorum paraphrasis': ['Volume', 'page', 'line'], 'G$*PERI\\ TOU= MH\\ DEI=N TOI=S TO/POIS A)LLA\\ TOI=S A)NDRA/SI PROSE/XEIN&': ['Harduin page', 'section', 'line'], '($*PROTREPTIKO\\S *OU)ALENTINIANW=| NE/W|&': ['Harduin page', 'section', 'line'], '$*SOFISTH/S&': ['Harduin page', 'section', 'line'], '>$*DEKETHRIKO\\S H)\\ PERI\\ TW=N PREPO/NTWN LO/GWN TW=| BASILEI=&': ['Harduin page', 'section', 'line'], '"In Aristotelis physica paraphrasis': ['Volume', 'page', 'line'], '9$*EI)S *QEODO/SION: TI/S H( BASILIKWTA/TH TW=N A)RETW=N &': ['Harduin page', 'section', 'line'], '$*METRIOPAQH\\S H)\\ FILO/TEKNOS&': ['Harduin page', 'section', 'line'], '@$*PRO\\S TOU\\S AI)TIASAME/NOUS E)PI\\ TW=| DE/CASQAI TH\\N A)RXH/N&': ['Section', 'line'], ';$*)EPI\\ TH=| FILANQRWPI/A| TOU= AU)TOKRA/TOROS *QEODOSI/OU&': ['Harduin page', 'section', 'line'], '$*PERI\\ YUXH=S &(fragmenta)': ['Fragment', 'line'], '>[2$*PERI\\ TW=N O)NOMA/TWN TOU= BASILE/WS KAI\\ TOU= U(PA/TOU&]2': ['Harduin page', 'section', 'line'], '5$*PRO\\S TO\\N A)CIW/SANTA LE/GEIN E)K TOU= PARAXRH=MA&': ['Harduin page', 'section', 'line'], '1$*(UPATIKO\\S EI)S TO\\N AU)TOKRA/TORA *)IOBIANO/N&': ['Harduin page', 'section', 'line'], '($*PERI\\ TH=S TOU= BASILE/WS FILHKOI/+AS&': ['Harduin page', 'section', 'line'], ')$*EI)S TO\\N AU)TOKRA/TORA *KWNSTA/NTION &': ['Harduin page', 'section', 'line'], '($*PERI\\ FILANQRWPI/AS H)\\ *KWNSTA/NTIOS&': ['Harduin page', 'section', 'line'], ' $*)EPITA/FIOS E)PI\\ TW=| PATRI/&': ['Harduin page', 'section', 'line'], '$*BASANISTH\\S H)\\ FILO/SOFOS&': ['Harduin page', 'section', 'line']}}, 'Harpocration Gramm.': {'tlg_id': 'TLG1389', 'names': {'name_authtab': 'Harpocration Gramm.', 'name_idt': 'Harpocration Gramm.'}, 'works': {'!Lexicon in decem oratores Atticos': ['Page', 'line']}}, 'Xenocrates Phil.': {'tlg_id': 'TLG0634', 'names': {'name_authtab': 'Xenocrates Phil.', 'name_idt': 'Xenocrates Phil.'}, 'works': {'!Testimonia, doctrina et fragmenta': ['Fragment', 'line']}}, 'Anonymi In Aristotelis Librum De Interpretatione Phil.': {'tlg_id': 'TLG4165', 'names': {'name_authtab': 'Anonymi In Aristotelis Librum De Interpretatione Phil.', 'name_idt': 'Anonymi In Aristotelis Librum De Interpretatione Phil.'}, 'works': {'qCommentarium in librum de interpretatione (e cod. Paris. gr. 2064) (fort. auctore quodam Alexandrino vel Constant': ['Page', 'line']}}, 'Butherus Phil.': {'tlg_id': 'TLG1232', 'names': {'name_authtab': 'Butherus Phil.', 'name_idt': 'Butherus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Oeniades Lyr.': {'tlg_id': 'TLG0971', 'names': {'name_authtab': 'Oeniades Lyr.', 'name_idt': 'Oeniades Lyr.'}, 'works': {'Titulus': ['line']}}, 'Theon Gramm.': {'tlg_id': 'TLG1838', 'names': {'name_authtab': 'Theon Gramm.', 'name_idt': 'Theon Gramm.'}, 'works': {'Fragmenta': ['Page', 'line'], '5Commentarium de Pythiis xii Pindari (P. Oxy. 31.2536)': ['Column', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Joannes Chrysostomus Scr. Eccl.': {'tlg_id': 'TLG2062', 'names': {'name_authtab': 'Joannes Chrysostomus Scr. Eccl., John Chrysostom', 'name_idt': 'Joannes Chrysostomus Scr. Eccl.'}, 'works': {'': ['In infirmos [Sp.]', 'Pg', 'ln\x0eÃÆ\x0eÃK\x0e´'], '1Adversus oppugnatores vitae monasticae (lib. 1-3)': ['Vol', 'pg', 'ln\x10¿ÂÇÉË\x15\x15Ë\x92Í϶Ò\x8cÖ¤ÛÝß¼\x92ê«´ó«÷úüþ\x10¿\x15Ë\x8c.´'], 'De futurae vitae deliciis': ['Vol', 'pg', 'ln³Û\x8eޮ༳Û\x8cp©'], ')Ad Stagirium a daemone vexatum (lib. 1-3)': ['Vol', 'pg', 'ln;§©«¤´´¶»½¿E©F¿®ÂÆÉËÍϫѻ֮ÀÝß§ê³î;§F¿«Z'], 'In filium viduae [Sp.]': ['Vol', 'pg', 'ln½É½Èd³'], '#De sancta pentecoste (homiliae 1-2)': ['Vol', 'pg', 'lnÓÇÉ´ÌÎФÒ\x8cÓb³'], ',De jejunio, dominica quinta jejuniorum [Sp.]': ['Vol', 'pg', 'ln»¾Û»¾ÛZ¼³'], 'DIn illud: Propter fornicationes autem unusquisque suam uxorem habeat': ['Vol', 'pg', 'lnj³ÏÒ³×j³Ï\x92ao'], 'Expositiones in Psalmos': ['Vol', 'pg', 'ln§©«´»¾ÀÂÇÉ˧ÎÐÒ§×ÛÞàêó³öú´¶§º§º³´¶\x8eº½¿Â\x8cÆÈ¶ËÍÏÒÖÛÝßëí¶\x8c÷ù\x8eû§\x92«¤©«®´¤¶»¾\x8eÀÃÇÊÌÏÑÓÖ«Ýß§¼©ëí¤öû®®\x92®¤§©«®³º¼«¿\x8cÃÆ\x8cÈÊÍÏÑÖÛÝߺ®\x8cî§Ï´´'], '+In epistulam i ad Timotheum (homiliae 1-18)': ['Vol', 'pg', 'ln¾û§«³§©«\x8c©¼§©\x19\x19©«¿\x1b\x1b³¤»»\x8e½¿´»Ã%%ýÆÈ(´)É̺ÏÑ\x8eÓ§«¾i/¶'], 'Contra Anomoeos (homilia 11)': ['Vol', 'pg', 'lnº§º\x8c½'], 'In sanctam Pelagiam [Sp.]': ['line'], '&Ad Stelechium de compunctione (lib. 2)': ['Vol', 'pg', 'ln6«»6=;¶'], '!In Juventinum et Maximum martyres': ['Vol', 'pg', 'ln໽§¿Âà»m´³'], '*De prophetiarum obscuritate (homiliae 1-2)': ['Vol', 'pg', 'ln¾§©«º®«´¼»½À¾\x92}Ë'], '.Quod grave sit dei clementiam contemnere [Sp.]': ['Vol', 'pg', 'ln\x0e}À´\x0e}À©`\x0e}³¶'], 'De Joseph et de castitate [Sp.]': ['Vol', 'pg', 'lníËÍ®íËT'], 'De circo [Sp.]': ['Vol', 'pg', 'ln\x15»®«Ë\x15»\x16³'], '"Sermo catecheticus in pascha [Sp.]': ['Vol', 'pg', 'ln:»Ñ:»Ñq:¶'], '6In illud: Diligentibus deum omnia cooperantur in bonum': ['Vol', 'pg', 'lnY³\x8c´©Y³\\¶'], '.Epistula ad episcopos, presbyteros et diaconos': ['Vol', 'pg', 'ln\x1b´\x1b´w\x1b'], '(In illud: Pater meus usque modo operatur': ['Vol', 'pg', 'lnß¿§ß¿i'], 'In Psalmum 100 [Sp.]': ['Vol', 'pg', 'lno÷»ù¤ûoÊs¶'], 'De precatione [Sp.]': ['Vol', 'pg', 'ln\x0eÀÍÑ©\x0eÀÍ\\\x0e³¶¶'], 'Precatio [Sp.]': ['Vol', 'pg', 'ln\x0eÀ\x0eÀ\x0e³³'], 'GIn sanctum pascha (sermo 2) [Sp.] (fort. auctore Apollinare Laodicense)': ['Sect', 'ln<m>¶'], '(In epistulam ad Hebraeos (homiliae 1-34)': ['Vol', 'pg', 'lnc¿d\x8ee\x92jj\x8c½¤§©«rs§´¶»»½¿§Ã||ÃÆÈÊÍÏÑÖÛݧßß®ëí§÷ùûû\x8c®«®¿º½\x8e®\x8c³¤©§©«º\x8c\x8c³»¶º¼¶¿Ã³ÆÈÊÍÏ\x92ѩӺ֩Ûݧ߳¤³ê½c¿mƶ'], "'In sanctum Paulum apostolum (excerptum)": ['Pg', 'ln\x0f«®\x0f«\x0f´¶'], '%De confessione pretiosae crucis [Sp.]': ['Vol', 'pg', 'ln^´É«Ì^´ÉQ`'], 'Oratio de epiphania [Sp.]': ['Sect', 'ln\x0f\x0f>\x0f´¶³'], 'Oratio ante lectionem [Sp.]': ['Vol', 'pg', 'ln\x0er¿\x0er¿V\x0er³´¶'], 'De pseudoprophetis [Sp.]': ['Vol', 'pg', 'ln»©«¿«Â¤»©L\x15³'], ' Quod frequenter conveniendum sit': ['Vol', 'pg', 'lnË¿ÍÏѤ¤Ë¿ÍiÎ'], 'De Melchisedech [Sp.]': ['Vol', 'pg', 'ln³®³q'], 'De sancto hieromartyre Phoca': ['Vol', 'pg', 'ln\x0e»½¿Â\x0e»]', ''], 'In catechumenos [Sp.]': ['Vol', 'pg', 'lnu¼¶u¼`v'], 'De cruce et latrone (homilia 1)': ['Vol', 'pg', 'ln½»¾½\x8eyÀ³³'], '/De cognitione dei et in sancta theophania [Sp.]': ['Vol', 'pg', 'ln\x0eÀ«®\x8c\x0eÀ«|\x0e³¶'], 'De regressu': ['Sect', 'ln\x0e§\x0e§\x0e³¶'], '$In epistulam ad Titum (homiliae 1-6)': ['Vol', 'pg', 'lnK¾¤N´N¶¼\x92©S©S©³º³ºº¼»K¾\\¶'], 'In assumptionem domini [Sp.]': ['line'], '!In sanctum pascha (sermo 6) [Sp.]': ['Chapter', 'section', 'line'], 'In Isaiam': ['Chapter', 'section', 'line'], '!In sanctum Eustathium Antiochenum': ['Vol', 'pg', 'ln©Ü¶Þ§h´¶'], '!Fragmenta in epistulas catholicas': ['Vol', 'pg', 'lnPÀ¤\x92PÀPWT¶'], '8Ad illuminandos catecheses 1-2 (series prima et secunda)': ['Vol', 'pg', 'lnvߤy\x8cy\x92¼îvßy\x8eÛ¶'], '&De turture seu de ecclesia sermo [Sp.]': ['Vol', 'pg', 'lni×i×Zk³'], '%In illud: Utinam sustineretis modicum': ['Vol', 'pg', 'ln³³f'], ' Adversus Judaeos (orationes 1-8)': ['Vol', 'pg', 'lnËÎÀÑÓ×ÛÝÉÉÝ©à\x92ë¼î\x8c÷ù¶üþ¤\x92¤®«ËÉÝ\x8e\\í'], 'In Genesim (sermones 1-9)': ['Vol', 'pg', 'lnm¶îÉ\x8cËÍÐÒÖ\x92ÛÝ´à\x8e\x8cëöm¶À´'], 'In Joannem theologum [Sp.]': ['Vol', 'pg', "ln%»\x92¤%»e'´"], 'De Lazaro et divite [Sp.]': ['Vol', 'pg', 'ln»Ï¾ÑӻϽd#´'], 'In ramos palmarum [Sp.]': ['Pg', 'ln\x0eû\x92\x0eûN\x0eü´³¶'], 'In praecursorem domini [Sp.]': ['Vol', 'pg', 'lnó»§¶ó»]¶'], '!In venerabilem crucem sermo [Sp.]': ['Vol', 'pg', 'ln׳׶l´'], '$De decem millium talentorum debitore': ['Vol', 'pg', 'ln\x1f³\x92«©\x1f³v%¶'], 'De perfecta caritate [Sp.]': ['Vol', 'pg', 'ln\x8c©Mº'], '2In epistulam ii ad Thessalonicenses (homiliae 1-5)': ['Vol', 'pg', 'ln¾Ó×®ÜÞà»§ëí¿®¾Ó§ü¶´'], '$De adoratione pretiosae crucis [Sp.]': ['Vol', 'pg', 'ln[´ÃÆÈÍ[´Ãi^'], '!In poenitentiam Ninivitarum [Sp.]': ['Vol', 'pg', 'lnÀ©À\x8cùî´'], 'De sanctis Bernice et Prosdoce': ['Vol', 'pg', 'lnó÷ù§û¶þÀó\x8cU´'], 'In illud: Vidua eligatur': ['Vol', 'pg', 'ln³ÆÉËͧÏÒ³\x8ce'], 'In Lazarum (homilia 2) [Sp.]': ['Vol', 'pg', 'lnÖ¾©Ö¾X׳³¶'], 'In illud: In faciem ei restiti': ['Vol', 'pg', 'ln³ó´úü§þ³\x8e³ó'], 'De sancta Thecla martyre [Sp.]': ['Vol', 'pg', 'lnÂ\x92Âó'], '!In sanctum pascha (sermo 4) [Sp.]': ['Vol', 'pg', 'ln?»ÛÀ?»Ûe@¶´'], '&De fato et providentia (orationes 1-6)': ['Vol', 'pg', 'ln\x14í®÷ùû¤\x1b\x1b³«\x14í\x1b{\x1f¶'], 'In sanctum Julianum martyrem': ['Vol', 'pg', 'ln½¤¤c´'], '&In sanctum Stephanum (homilia 3) [Sp.]': ['Vol', 'pg', 'ln\x0ew¿\x92\x0ew¿{\x0ex³'], 'Peccata fratrum non evulganda': ['Vol', 'pg', 'ln©³³ë¤´©³c³'], '9In illud: Simile est regnum caelorum patri familias [Sp.]': ['Vol', 'pg', 'ln\x1a»³Çɤ\x1a»\x1e´'], 'De pharisaeo [Sp.]': ['Vol', 'pg', 'ln »ÍϺ »Í´\\´´'], "'In illud: Homo quidam descendebat [Sp.]": ['Vol', 'pg', 'ln©½óÊö©½óo³'], '3In laudem sancti Joannis theologi (homilia 1) [Sp.]': ['Vol', 'pg', 'ln½Ï«½Ïm'], '&In sanctum Stephanum (homilia 1) [Sp.]': ['Vol', 'pg', 'ln\x0ev¿Ê¤³\x0ev¿É`\x0ew³´'], '&Catechesis de juramento (series prima)': ['Pg', 'ln\x0eÀ\x0eÀr\x0eó'], '.De iis qui in jejunio continenter vivunt [Sp.]': ['Vol', 'pg', 'ln\x0e|ÀÀÉ\x0e|À]\x0e}³´'], 'In sanctum Lucianum martyrem': ['Vol', 'pg', 'lnÜ\x8cº\x8eÜcÞ´'], 'Epistula ad abbatem [Sp.]': ['line'], 'De Eleazaro et septem pueris': ['Vol', 'pg', 'ln¿\x8e¿h'], '!In illud: Exiit qui seminat [Sp.]': ['Vol', 'pg', 'ln½¿º½¾{´³'], 'De non judicando proximo [Sp.]': ['Vol', 'pg', 'ln¼û«þ¼ûR'], '(In sanctum Stephanum protomartyrem [Sp.]': ['Vol', 'pg', 'ln»úü»xü³'], 'In Heliam et viduam': ['Vol', 'pg', 'ln³Ñ¤×\x92ܳÑf'], 'De spe [Sp.]': ['Vol', 'pg', 'ln¼¼O'], '.Encomium in sanctum Joannem evangelistam [Sp.]': ['Pg', 'ln\x0eþ×\x8e\x0eþC\x0f´³'], 'In ascensionem (sermo 1) [Sp.]': ['Vol', 'pg', 'lnN´¤N´kN'], 'De sanctis martyribus': ['Vol', 'pg', 'ln', '©®Ç', '§K\x13'], '0De angusta porta et in orationem dominicam [Sp.]': ['Vol', 'pg', 'lnÛ³©®Û³©Þ´'], 'De profectu evangelii': ['Vol', 'pg', 'ln³º¼¿¿³\x8e}'], '"In operarios undecimae horae [Sp.]': ['line'], 'Ad Eudoxiam (epist. 1-7) [Sp.]': ['Pg', 'ln\x0e§û[\x0e³¶'], 'De paenitentia (sermo 3) [Sp.]': ['Vol', 'pg', 'lna¼a¼Wc'], 'In magnam feriam v [Sp.]': ['Pg', 'ln\x0eÒI\x0e´'], 'Ad viduam juniorem': ['line'], '$In principium Actorum (homiliae 1-4)': ['Vol', 'pg', 'ln/³¶®ÈÊ\x92ÌÏÑÓºÝß<=Àê½/³¶=C¶'], 'In transfigurationem [Sp.]': ['Vol', 'pg', 'ln½Ñ½ÑO³'], '+In epistulam ad Colossenses (homiliae 1-12)': ['Vol', 'pg', 'ln«¾«´¶»½¿¾ÆÈÊÍÏÑ»¼ÑÓºÖÝ\x8cßß\x8c\x8e³ë\x8cí\x8cÇ\x8cÈíºöû¼\x92«¾«qÓ¶'], 'In diem natalem': ['Vol', 'pg', 'ln©ß³ê©ßc®'], 'De nativitate [Sp.]': ['line'], '8In lacum Genesareth et in sanctum Petrum apostolum [Sp.]': ['Vol', 'pg', 'ln\x0eÀÉ´\x0eÀ]\x0e³¶³'], '+In illud: Pater, si possibile est, transeat': ['Vol', 'pg', 'ln%³\x92´§\x92«%³y)¶³'], 'In principium indictionis [Sp.]': ['Vol', 'pg', 'ln.»\x8c¶.»Z/'], "'In ingressum sanctorum jejuniorum [Sp.]": ['Vol', 'pg', 'ln»¾×¿»¾×e»³'], '4De patientia et de consummatione huius saeculi [Sp.]': ['Vol', 'pg', 'ln\x0ex¿©®\x0ex¿©½À\x0ez³'], 'De sancta Droside martyre': ['Vol', 'pg', 'ln«®³¾¶\x8e«W¶'], 'In Christi ascensionem [Sp.]': ['line'], 'In sanctum Romanum (homilia 1)': ['Vol', 'pg', 'lnÝà§Ýpî´'], 'Adversus eos qui non adfuerant': ['Vol', 'pg', 'lnοÝߧοÝ\\ѳ'], 'De Maccabeis (homiliae 1-3)': ['Vol', 'pg', 'lnîî\x8eî\x92wó´'], 'In parabolam Samaritani [Sp.]': ['Vol', 'pg', 'lnʾó\x8eʾóN˳'], '3Quod regulares feminae viris cohabitare non debeant': ['Sect', 'lncÓÛcËk'], '.De occursu domini, de deipara et Symeone [Sp.]': ['Vol', 'pg', 'lnÓ§©«Ó§j³'], 'In Rachelem et infantes [Sp.]': ['Vol', 'pg', 'ln\x8e½Ë¼\x8e½Z'], 'De libello repudii': ['Vol', 'pg', 'lno³Û½Þào³r'], '&In sanctum Stephanum (homilia 2) [Sp.]': ['Vol', 'pg', 'ln\x0ew¿Æ\x92\x0ew¿^\x0ew³'], 'In omnes sanctos [Sp.]': ['Pg', 'ln\x0e\x8e\x0e<\x0e´'], '%In sanctum Joannem praecursorem [Sp.]': ['Vol', 'pg', 'lnÏ\x92ËÏpÒ³¶'], 'In synaxim incorporalium [Sp.]': ['Sect', 'ln\x0eü\x0eük\x0eþ´³'], 'In quatriduanum Lazarum': ['Vol', 'pg', 'ln½\x8ceù'], 'In illud: Messis quidem multa': ['Vol', 'pg', 'ln¿³®´¾\x8c¿r'], ',In principium indictionis, in martyres [Sp.]': ['Vol', 'pg', 'ln\x18»¿³Â¤\x18»¿\x1a´'], '/In illud: Si qua in Christo nova creatura [Sp.]': ['Vol', 'pg', 'ln\x0eÀ§\x0eÀt\x0e³¶'], 'Contra haereticos [Sp.]': ['Vol', 'pg', 'lnx¼x¼Zy'], 'De gloria in tribulationibus': ['Vol', 'pg', 'lnU³\x8eU³Y¶'], 'In venerandum crucem [Sp.]': ['Vol', 'pg', 'ln/»À/»d1³'], 'Ad eos qui scandalizati sunt': ['Chapter', 'section', 'line'], '#In parabolam de filio prodigo [Sp.]': ['Vol', 'pg', 'ln»´©»³c³'], '%Ad eos qui magni aestimant opes [Sp.]': ['Vol', 'pg', 'ln\x0eÀ§ÈÍ\x0eÀT\x0e³¶'], '(In triduanam resurrectionem domini [Sp.]': ['Vol', 'pg', 'ln\x8cwÛ´'], '(In epistulam ad Ephesios (homiliae 1-24)': ['Vol', 'pg', 'ln1¾\x92\x92´¾©<<§®³\x8e¤\x92DDº¼¾À³ÃÇÉËMMËÎÐÒ×ÛºÞ\x92à´Z\x8e[\x8eî®ó÷úüþ®gg¤º\x8c\x8e§\x92pp¤¤´§©«©¶¤1¾\x0ez¶'], 'De negatione Petri [Sp.]': ['Vol', 'pg', "ln'»½ë'»»¼r*´"], '=De sancta Thecla martyre (e cod. Athon. Panteleimon 58) [Sp.]': ['line'], '!In sanctum Thomam apostolum [Sp.]': ['Vol', 'pg', 'ln÷»÷»¤u'], '"Encomium in sanctos martyres [Sp.]': ['line'], ' Homilia de capto Eutropio [Dub.]': ['Vol', 'pg', 'lnÞ´¿\x8c§³Þ´´¶´³'], 'Oratio secunda [Sp.]': ['Vol', 'pg', 'ln\x0er¿\x8c\x0er¿t\x0et³´'], 'De paenitentia (sermo 1) [Sp.]': ['Vol', 'pg', 'lnS¼©®«Í\x92´©Â¼S¼©d^'], 'De patientia (sermo 1) [Sp.]': ['Vol', 'pg', 'lnl¼Ó©Ð®´l¼Ófp'], 'Stichoi [Sp.]': ['line'], 'In Psalmum 75 [Sp.]': ['Vol', 'pg', 'lngѶӼÂgÑ´ji'], 'GIn sanctum pascha (sermo 3) [Sp.] (fort. auctore Apollinare Laodicense)': ['Sect', 'ln>\\?¶³'], '0In illud: Credidi propter quod locutus sum [Sp.]': ['Pg', 'ln\x0fß\x0fßE\x0f´´´'], '.In illud: Verumtamen frustra conturbatur [Sp.]': ['Vol', 'pg', 'lnX®´XwZ'], '/In novam dominicam et in apostolum Thomam [Sp.]': ['Vol', 'pg', 'ln\x0et¿\x8eÆÉ\x0et¿c\x0ev³´'], 'BDe incomprehensibili dei natura (%6 Contra Anomoeos, homiliae 1-5)': ['Homily', 'line'], 'De coemeterio et de cruce': ['Vol', 'pg', 'lnº\x8c\x8e³ºo½³'], 'Visio Danielis [Sp.]': ['Pg', 'ln\x0e\x0ea\x0e´'], 'In ascensionem (sermo 5) [Sp.]': ['Vol', 'pg', 'lnW´ÇÊW´«dX'], 'De mansuetudine sermo [Sp.]': ['Vol', 'pg', 'ln¿§¿³³'], 'De paenitentia [Sp.]': ['Vol', 'pg', 'ln¼§¼J¶'], '"Fragmenta in Jeremiam (in catenis)': ['Vol', 'pg', 'ln\x19À¶ù³¤©\x92´³À¶ÉÐ\x92Üü\x8c©¤©´®½\x8eÉÍà§\x8eù\x8c\x19À\x8e\x92sP'], 'In Petrum et Paulum [Sp.]': ['Vol', 'pg', 'ln»ëíûëYö'], '$De sancta Pelagia virgine et martyre': ['Vol', 'pg', 'lnÿÈÃk´´'], '4Quales ducendae sint uxores (%6 Encomium ad Maximum)': ['Vol', 'pg', 'lnr³®¶½êír³{y³'], '?In oraculum Zachariae redditum [Sp.] (fort. sub auctore Proclo)': ['Vol', 'pg', 'lnÈÈɳ'], 'De jejunio (sermones 1-7) [Sp.]': ['Vol', 'pg', 'lne¼ÇÊgÃhËÆÍ¤hhͺÏiiÏÑjjÑ©e¼ÇhËhÍiÏjÑil´'], 'De cruce et latrone (homilia 2)': ['Vol', 'pg', 'lnÀ\x8e¤À³´'], 'De Anna (sermones 1-5)': ['Vol', 'pg', 'ln¶÷©îùü\x8cþ®º\x8c\x8e\x92¤¤¤§¶÷«'], 'In Joannem (homiliae 1-88)': ['Vol', 'pg', 'ln»\x92\x92´\x8c¶\x8e«³\x12\x12«»\x15\x16»¤½\x16¤\x16½ÀÂÇÉ\x1b\x1bÉËÍÍÐÒÖ«¼ÛÝß®&&´((êî¼ó÷ùû23ûþ44©®;<®§¤»©«\x8e\x92JK³NN»P§Q»¾ÀÂ\x8c©UU´È®ÊÍÏYYÏ\x8eÑÓ[[Ó§¾×À__ÛÞà¾c§dÀ®êºíó¤÷lm÷ù½û¿\x8eqq½sºt«\x8c\x8e§©«§\x92©§\x8c©´¶³»½¿¤Ã©Ç¤\x92ǧɳ˴ÍÏ®ÏÑÀÓ¾\x92³ÜÞ\x92¤î¤Àö³¼û««\x8e\x8c\x8e\x8c\x8c\x8e\x92\x8e§©À©®´¶³½»\x8e½¿\x8cÊÊ¿\x8eÃÇÎÎÇÉËÐÑËÍÏ»ÒÓÖܤÞà³»¤©\x12\x16»\x16½©\x1bÉÍ&(3û4<KNQ»«U«YÏ[Ó_Ûd¿m÷§qt§«ÇÏ«©Ê¿ÎÇÑËÓ%Û´'], '2In epistulam i ad Thessalonicenses (homiliae 1-11)': ['Vol', 'pg', 'lnÓ¾\x8c«\x8eº¼³§©®³´»º½¤êê½À§¶Çɳ˾Î\x92ÐÒӾö³'], 'In Zacchaeum publicanum [Sp.]': ['Vol', 'pg', 'ln½Ì̽\x8eT³³'], '1Caritatem secundum deum rem esse deo dignam [Sp.]': ['Vol', 'pg', 'ln½©¤½©X'], '!In sanctum pascha (sermo 7) [Sp.]': ['Sect', 'lnHºYM¶'], 'In sanctum Stephanum [Sp.]': ['Vol', 'pg', 'ln2»»¾´2»»´c3'], 'In centurionem [Sp.]': ['Vol', 'pg', 'ln½¿½½e³´'], 'In ascensionem (sermo 4) [Sp.]': ['Vol', 'pg', 'lnV´«V´]W¶'], '-In epistulam ii ad Corinthios (homiliae 1-30)': ['Vol', 'pg', 'ln½®§\x92\x92¤¶©´Îϼ¾À©ÃÓÇ´Ê\x92ÌÏÑÓ³ÖÛÝध§ùûþ\x8e\x8eíí\x8c\x92´«´§»¾ÀéÈÊÍÏÒ«×ÛÞཀྵ6\x13'], ')Homilia dicta postquam reliquiae martyrum': ['Vol', 'pg', 'lnƿӤ©Ö½³Æ¿ÓdÈ'], 'In Psalmos 101-107 [Sp.]': ['Vol', 'pg', 'lnsû½\x8eÀ§¼\x8c\x8e\x8c½ÍúËsû¼À'], 'Commentarius in Job': ['Pg', 'ln\x0fb\x8e§«\x8c³¼ÀÉÍÒ×Û\x8eàí\x8eöúþ\x92\x8c\x8c\x92©®»ÀÈ\x8e\x0fb'], '#In Acta apostolorum (homiliae 1-55)': ['Vol', 'pg', 'lnÛ¼\x8eà®§©«´«¶´»½¿ÃÈÊÌÎÐÒ×ÛÝÝß´\x92êîºó÷÷ùºüþ¾\x15\x15\x8e§\x92\x19\x19©\x92§§©¤»©«##«&&³¤§)*½¼¾ÀÂÆ«ÈÊÍÏÑ\x8cÓ78×ÛÞà\x8c«´ëíóFF\x92÷ù³û³I\x8c´Jû¶þ\x8e´N³³O¶ºTUWW§\x8e§©«©»³c\x92c³´¶º¼¾®ÀÃ\x8eÇÉˤͶÐqrѧִܺßwxß\x8c¶ëí¶öú©Û¼Ý÷\x15\x19#«&*§8FJûOUWc³rÑxß\x1b'], 'In Psalmum 139 [Sp.]': ['Vol', 'pg', 'lnÃä'], 'De beato Abraham [Sp.]': ['Vol', 'pg', 'ln¿¶ê¿_Â'], '.Catecheses ad illuminandos 1-8 (series tertia)': ['Catechesis', 'section', 'line'], '(Epistula ad Antiochum (epist. 233) [Sp.]': ['line'], '%In decollationem sancti Joannis [Sp.]': ['Vol', 'pg', 'ln»\x8eÀê»\x8cZó'], 'In Christi natalem diem [Sp.]': ['Vol', 'pg', 'ln½Í̽j³'], ',In illud: Ignem veni mittere in terram [Sp.]': ['Vol', 'pg', 'lnÀ¾¿À¾\\³´'], '2De consubstantiali (%6 Contra Anomoeos, homilia 7)': ['Vol', 'pg', 'lnó÷ùû\x92©ó«¶'], 'VContra Judaeos, gentiles et haereticos et in illud: Vocatus est Jesus ad nuptias [Sp.]': ['Vol', 'pg', 'ln®³³®³l³'], '#In illud: Domine, non est in homine': ['Vol', 'pg', 'ln»\x8e³»\x8c®¾'], ',In epistulam ii ad Timotheum (homiliae 1-10)': ['Vol', 'pg', 'ln/¾×Ü12ݺàº\x92ëí9:\x8c<<ú§´?´?û¼þ¼\x8c\x92E\x8eF¾\x8e\x92§´/¾×K¶¶'], 'Precatio in obsessos [Sp.]': ['Vol', 'pg', 'ln\x0eÀ\x0eÀ\x0eH\x0e³¶'], 'In principium jejuniorum [Sp.]': ['Vol', 'pg', 'lnþËþs³¶'], 'In decem virgines [Sp.]': ['Vol', 'pg', 'ln»§¶»a³'], '6De Christi divinitate (%6 Contra Anomoeos, homilia 12)': ['Vol', 'pg', 'ln½»\x8c«½º'], 'FQuod mari similis sit haec vita [Sp.] (fort. auctore quodam Cappadoce)': ['Vol', 'pg', 'ln\x0eÀÿ\x0eÀÂq\x0e³'], 'Contra theatra [Sp.]': ['Vol', 'pg', 'ln¿\x8e¾Xë'], "'De inani gloria et de educandis liberis": ['line'], '*Interpretatio orationis Pater noster [Sp.]': ['Vol', 'pg', 'ln.»ó.»óZ.'], '#In Psalmum 118 (homiliae 1-3) [Sp.]': ['Vol', 'pg', 'ln§©¿®È´©¶½»\x8c¾©À\x8eV'], 'In Genesim (sermo 3) [Sp.]': ['Vol', 'pg', 'lnÝ\x92ɳ«Ýo'], '1In illud: Habentes eundem spiritum (homiliae 1-3)': ['Vol', 'pg', 'ln³\x92º\x92\x8c\x8c\x8e³¤³§\x8e©«´®³\x8eu'], 'In Herodem et infantes [Sp.]': ['Vol', 'pg', 'ln½»¤¾§½»g³'], '-Contra eos qui subintroductas habent virgines': ['Sect', 'lnZͳÍÓZc'], '4De Christi precibus (%6 Contra Anomoeos, homilia 10)': ['Vol', 'pg', 'ln¶\x92¶jº'], 'Laus Diodori episcopi': ['Vol', 'pg', 'lnJ´ùü\x92þWK'], '&In nativitatem Joannis Baptistae [Sp.]': ['Sect', 'ln\x0e\x0eE\x0eí´´'], '*In illud: Ascendit dominus in templo [Sp.]': ['Vol', 'pg', 'ln½½X³¶'], 'De corruptoribus virginum [Sp.]': ['Vol', 'pg', 'lnv¼¿v¼Tx'], 'In Eliam prophetam [Sp.]': ['Vol', 'pg', 'lnëÇÉ\x8cëÇ_í'], '>In drachmam et in illud: Homo quidam habebat duos filios [Sp.]': ['Vol', 'pg', 'ln´½Í´½\x8eP³¶'], 'Fragmenta in Job (in catenis)': ['Vol', 'pg', 'lnîÀù«¤©´\x8c½Èͧà®üîÀù'], 'De siccitate [Sp.]': ['Vol', 'pg', 'ln½ÓÖ½ÓW³'], '/In illud: Apparuit gratia dei omnibus hominibus': ['Sect', 'ln\x0e¾\x8c\x0e¾i\x0eÀ³'], 'De resurrectione mortuorum': ['Vol', 'pg', 'ln¿§\x8e˳'], '%Ad Demetrium de compunctione (lib. 1)': ['Vol', 'pg', 'ln.\x8c\x8e®¶º.|6'], 'In catenas sancti Petri [Sp.]': ['Sect', 'ln\x0eó¤\x8e³¶\x0eó0\x0eú´³³'], '"In illud: Collegerunt Judaei [Sp.]': ['Vol', 'pg', 'ln»¤»[³´'], '&Ad populum Antiochenum (homiliae 1-21)': ['Vol', 'pg', 'ln\x18\x92©\x1f ¤¤®³\x8c»++»½´¿ºÂ/´0úÆÈÊÌγлÓ×Û:;ÛÝ®ß==ëíCCó÷GG÷\x8eúüþ«ºRR\x8c¼¶®³»f¤g»©¾ÀÂÇÉËÍÐÒÖ³¾Ý\x18 +»\x8c\x8e0Ã;Û=CG÷Rg»§Ãv'], '%De Babyla contra Julianum et gentiles': ['Sect', 'ln\x0e\x8c©ºÂÉÐàíó\x8c\x0e9\x0e§³´'], 'In Bassum martyrem [Dub.]': ['Vol', 'pg', 'lnÏÓÖÏ\x8exº'], '%In illud: Vidi dominum (homiliae 1-6)': ['Homily', 'section', 'line'], '%In mediam hebdomadam jejuniorum [Sp.]': ['Vol', 'pg', 'ln3»½³¿À3»½^4¶'], 'In Kalendas': ['Vol', 'pg', 'lní¼¾íQ³'], 'De virtute animi [Sp.]': ['Vol', 'pg', 'ln\x0eÀÝà\x0eÀJ\x0e³¶'], 'In Genesim (homiliae 1-67)': ['Vol', 'pg', 'ln`³¤³¤©»½¿§ÃÀÈÊÌÎÐÒֳܻßëí«ó÷ùüþ\x92\x8c\x8e¤\x92§§©«´¶º¼¤¾À¶Ã\x8eÇÉË\x8eÍÏÑÓ×Û¶Þà\x8c\x8eêîö®ú¶üþ¶»\x8c¼½½¼Ã¤®\x92´¶º¼¤¾ÀÂÇÉË\x8eÍÏ\x92ÑÓ¤×Ü\x92Þàê§î´»÷ù\x8cû¾½\x92¾»\x8c¤®´¶º¼¿ÃÇÉ˳ÍÏ«ÑӶ׺¿ÛÞà\x8cê©îö¼¶úº§\x8c\x92¤®³î´½»½¿Ãî`Ðm³'], 'In Eutropium': ['Vol', 'pg', 'ln\x0f´\x8c\x0f´', ''], ')In ascensionem domini nostri Jesu Christi': ['Vol', 'pg', 'lnϼ©¿Ï\x92Ó³'], '*Homilia dicta in templo sanctae Anastasiae': ['Vol', 'pg', 'ln׿í׿í\x8c'], '!Quod nemo laeditur nisi a se ipso': ['Sect', 'lnÖ½\x8eÇÖÞ'], 'De Susanna [Sp.]': ['Vol', 'pg', 'lnÍÏÍÒÍm´'], 'De sancta trinitate [Sp.]': ['Vol', 'pg', 'ln¿¶Ã\x8eÈ¿\x92o´'], '(In illud: Sufficit tibi gratia mea [Sp.]': ['Vol', 'pg', 'lnü»ûÉ»ü»ûo³'], 'De studio praesentium': ['Vol', 'pg', 'lnÑ¿êÑ¿N´'], '"In sancta et magna parasceve [Sp.]': ['Vol', 'pg', 'ln««´«©i׳'], 'De paenitentia (homiliae 1-9)': ['Vol', 'pg', 'ln¼®«¶³¼¾À¤ÂÇɩˮʹϤ§Ï«ÒÖݳ³Ï©e©'], ' Non esse ad gratiam concionandum': ['Vol', 'pg', 'lnü\x92³\x8cüS'], '7In illud: Salutate Priscillam et Aquilam (sermones 1-2)': ['Vol', 'pg', 'lnb³»½¿¶Â\x8e¤ÆÈºËÍÐb³»\x8ej'], 'In Psalmum 50 (homilia 1) [Sp.]': ['Vol', 'pg', 'lnZº»½¿Zs`'], '"In illud: Filius ex se nihil facit': ['Vol', 'pg', 'ln÷úü¶³÷c'], 'Epistula ad Caesarium [Sp.]': ['Version', 'fragment', 'line'], 'In illud: Memor fui dei [Sp.]': ['Vol', 'pg', 'ln½´Ï®½[\x8e'], ';Homilia habita postquam presbyter Gothus concionatus fuerat': ['Vol', 'pg', 'ln¿ó¶÷ùû¿ónß'], '$In meretricem et in pharisaeum [Sp.]': ['Vol', 'pg', 'ln½´ºÈ½³k¶'], 'Ad Theodorum lapsum (lib. 1)': ['Sect', 'lnÂÎ\x8eÆ\x92¤®>\x10³'], 'Epistulae 18-242': ['Vol', 'pg', 'ln\x1b´\x8eö©ù\x92û´þ³³\x8e¤«\x92º¼¿Â\x92Ç<=Ç\x8eÊÌÏÒ×Ýßê\x1b´=ÇIJ'], '!In sanctum pascha (sermo 5) [Sp.]': ['Vol', 'pg', 'ln@»Ûݻ߫@»ÛkB¶'], 'PIn laudem conceptionis sancti Joannis Baptistae [Sp.] (fort. sub auctore Proclo)': ['Vol', 'pg', 'lnÉÉ´n˳³'], 'In natalem Christi diem [Dub.]': ['Vol', 'pg', 'lnÛ\x8cÛݶ'], '@Ad Theodorum lapsum (lib. 2) (%6 Epistula ad Theodorum monachum)': ['Sect', 'ln'], 'In saltationem Herodiadis [Sp.]': ['Vol', 'pg', 'ln»´Ê\x8e\x92»³f³³'], 'In ascensionem (sermo 3) [Sp.]': ['Vol', 'pg', 'lnU´¶U´_V'], 'De continentia [Sp.]': ['Pg', 'lnº¿º¿\x0e¼³'], '%De nativitate Joannis Baptistae [Sp.]': ['line'], 'DIn illud: Dominus regnavit et in illud: Dies diei dicit verbum [Sp.]': ['Sect', 'ln\x0eî\x0eîN\x0e´¶'], 'De non iterando conjugio': ['line'], 'Sermo cum iret in exsilium': ['Vol', 'pg', 'ln\x15´³´¶\x15´³l\x16³'], '%Ascetam facetiis uti non debere [Sp.]': ['Vol', 'pg', 'lnƤ_'], '/In illud: Hoc scitote quod in novissimis diebus': ['Vol', 'pg', 'lnËËÎ'], 'De meretrice [Sp.]': ['Pg', 'ln\x0e\x8e\x0eP\x0e´'], '8In illud: Simile est regnum caelorum grano sinapis [Sp.]': ['Vol', 'pg', 'ln\x0eÀÂ\x0eÀ\x0e³'], '2In sanctam theophaniam seu baptismum Christi [Sp.]': ['Vol', 'pg', 'lnÒ§\x8cÒuÓ³'], 'CIn illud: Ne timueritis cum dives factus fuerit homo (homiliae 1-2)': ['Vol', 'pg', 'lnó÷ùû¤¤¤®ó§a´'], '/Catechesis ultima ad baptizandos (series prima)': ['Pg', 'ln\x0eÃ\x0eÃ\x0eƳ'], 'De Lazaro (homiliae 1-7)': ['Vol', 'pg', 'lnÃÆÉËÍÐÒפÛÞ஫íó÷ú\x8eü§þ\x8c\x92©Ãíh\x18´'], '!In publicanum et pharisaeum [Sp.]': ['Vol', 'pg', 'ln¾ÓоӮ_»³'], '+Eclogae i-xlviii ex diversis homiliis [Sp.]': ['Vol', 'pg', 'ln¿»½§ÀÃÇɳ˼ÍÍ©ÐÒ¶\x92׳ÜÞà³î««ê\x8cî¤ó\x8c÷\x92ö÷ùûþ¼\x8c\x0e«\x0e»³»§©\x0e\x0e©«\x0e\x0e\x0e\x0f\x8c»½\x0e\x15\x0e\x15½\x8eÀ³ƽÉËÍÏÑ´Ö©Üß\x92\x0e(\x0e(ê\x8eî§ó÷ùû¾¿\x0e5\x0e5´\x8e¤³®§¶©º«\x0eG\x0eG«³®¼\x0eJ\x0eK¿´¶»½¿ÃÇ\x0eT\x0eTǤÉË»ÍÀÏ\x0eX\x0eYÏÒ\x8e\x0e[\x0e[ÜÞ\x8e\x0ed\x0edë½îöúü\x0ep\x0eq¿Í\x8e©ö÷\x0eº\x0e©\x0e\x0f¶\x0e\x15½\x8c\x0e(\x0e5\x0eG«\x0eK½¾\x0eTÇ\x0eYÏ®\x0e[©\x0ed\x0eqL\x0er³´´'], '1In passionem salvatoris nostri Jesu Christi [Sp.]': ['Pg', 'ln\x0eú³\x0eú³J\x0eû´³'], '#De diabolo tentatore (homiliae 1-3)': ['Vol', 'pg', 'ln´öû\x8c\x92¶´³¶U'], 'IIn illud: Attendite ne eleemosynam vestram faciatis coram hominibus [Sp.]': ['Vol', 'pg', 'ln\x16»»½\x16»»k\x18´'], '0De laudibus sancti Pauli apostoli (homiliae 1-7)': ['Homily', 'section', 'line'], '@Adversus ebriosos et de resurrectione domini nostri Jesu Christi': ['Vol', 'pg', 'lnË´ºËxϳ¶'], 'De sacerdotio (lib. 1-6)': ['Chapter', 'section', 'lnö\x8c\x8eÀ§\x8c\x8cÓ´oÖ¶'], '"In paralyticum demissum per tectum': ['Vol', 'pg', 'ln)³º´\x8e¶º´½À)³§/¶´'], '"In dictum Pauli: Nolo vos ignorare': ['Vol', 'pg', 'lny³\x8eö¤ú§üy³y´'], 'Epitimia lxxiii [Sp.]': ['Sect', 'ln\x0e©É\x0es\x0e´³'], 'In Matthaeum (homiliae 1-90)': ['Vol', 'pg', 'lnΤ¤«§©\x92®³³º½¿Â¤ÇÉËÎдӳº¼¾À½Ç\x92ÉËÎÐÒ¤Ö¶Û\x8eÝ\x92ßêó÷®ùüþ«´\x8e³\x92§³³´º¼¾À©Â¶ÇÉ̼ÐÒÖÛÝߺëíó÷ù¼üþ\x8e\x8e\x92¶\x92®³³º¼¾À§Â³ÇÉËÍÐÒÖ×§ÜÞ\x8c«ê\x92îó÷ùûþº\x8e\x8e»¤©«©³¶º\x92¼¾¤ÀÃÇÉÌÎ\x8eÐÒÖÜß©êóúüþ\x8c½\x92\x92©³¤\x92³¶º\x8c¼¾À´ÇÉ«ËÍÐÒ«ÖÛݤ߮êî»ó÷³úüþ\x8e\x92\x92\x8eÎÖÖºü϶ü»\x15\x19\x92##³¶1È\x8c4Î\x8cRRR[¤`«`³`»pÏp½¶¾¤©Ë©³Û\x8eº½÷½½»Ï»Îíí¼öZ³'], 'EDe petitione matris filiorum Zebedaei (%6 Contra Anomoeos, homilia 8)': ['Vol', 'pg', 'ln´'], 'Admonitiones spirituales [Sp.]': ['Vol', 'pg', 'ln¾Â̾^ó'], '/In Samaritanam, in die mediae pentecostes [Sp.]': ['Vol', 'pg', 'ln½\x8c½ê½j§³'], '(In natale sancti Joannis prophetae [Sp.]': ['Vol', 'pg', 'ln½¼÷´ù½\x92³'], '#De mutatione nominum (homiliae 1-4)': ['Vol', 'pg', 'lnC³ó¿\x92ú§JJ§\x8c\x8e´\x8c¼\x92C³JnU¶¶'], '4Cum Saturninus et Aurelianus acti essent in exsilium': ['Vol', 'pg', 'ln', '´¤', '´®h\x13'], 'In Psalmum 50 (homilia 2) [Sp.]': ['Vol', 'pg', 'ln`¿Ë¾ÆÈ§ÊÌ\x8c[g'], 'De precatione (orat. 1-2) [Sp.]': ['Vol', 'pg', 'lnÃ\x8e\x92Ã}ȳ'], 'In Samaritanam [Sp.]': ['Vol', 'pg', 'ln»\x8e«¼»³'], '"Sermo cum presbyter fuit ordinatus': ['line'], 'De sacerdotio (lib. 7) [Sp.]': ['Vol', 'pg', 'ln«®«o«'], 'Ad Innocentium papam (epist. 1)': ['Vol', 'pg', 'ln\x18´¤³\x18´^\x1a'], 'In synaxim archangelorum [Sp.]': ['Vol', 'pg', 'lnM»óÀM»óeN¶'], 'In Psalmum 94 [Sp.]': ['Vol', 'pg', 'lnm´ê³m®ao'], 'In Christi natalem [Sp.]': ['line'], 'De sancto Meletio Antiocheno': ['Vol', 'pg', 'lnfÜ´'], 'De eleemosyna [Sp.]': ['Vol', 'pg', 'ln\x0eÀ´¼\x92\x0eÀh\x0e³¶´'], '&In adorationem venerandae crucis [Sp.]': ['Vol', 'pg', 'ln¾ë´î¾ë\x92[ɳ'], ' In annuntiationem deiparae [Sp.]': ['Vol', 'pg', 'lnϾû¶®Ï¾ûMÒ³³'], 'De salute animae [Sp.]': ['Vol', 'pg', 'lns¼ßs¼ßRu'], '-In annuntiationem sanctissimae deiparae [Sp.]': ['Vol', 'pg', 'ln¼ó¶Â¼ó³'], 'In illud: Exiit edictum [Sp.]': ['Vol', 'pg', 'lnÍ®ÆÍnϳ'], '0Epistula ad Cyriacum (epist. 125 %7 recensiones)': ['\x14Version or recension', 'line'], '0In assumptionem domini nostri Jesu Christi [Sp.]': ['Vol', 'pg', 'ln½ÇɽÇ\x92Z'], 'De jejunio et eleemosyna [Sp.]': ['Vol', 'pg', 'lnÎ\\'], 'In martyres Aegyptios': ['Vol', 'pg', 'lng\x0e'], ')In epistulam ad Philemonem (homiliae 1-3)': ['Vol', 'pg', 'ln\\¾½¿\\\\¿¤´ÂÇÉËͳÐ\\¾½\x8cVc¶'], '%In Romanum martyrem (homilia 2) [Sp.]': ['Vol', 'pg', 'ln®êY'], '+In evangelii dictum et de virginitate [Sp.]': ['Vol', 'pg', 'ln\x0eÀ§©«\x0eÀ©n\x0e³¶'], '!De fugienda simulata specie [Sp.]': ['Vol', 'pg', 'ln´\x8c®'], '!In secundum domini adventum [Sp.]': ['Vol', 'pg', 'ln*»ëí*»ë©b.'], '!De Davide et Saule (homiliae 1-3)': ['Vol', 'pg', 'ln¶î§©¼\x8e®³\x92¼¾À«Ãº¶®i¶'], ' Synopsis scripturae sacrae [Sp.]': ['Vol', 'pg', 'ln¼¼¾Ã³ÈÊ̩δÑÓ§\x8cÝß´\x8cêî¼ó÷úüþ³¼dÛ´'], 'Fragmenta ex homiliis diversis': ['Fragment', 'line'], 'De eleemosyna': ['Vol', 'pg', 'ln³³¶'], 'De paenitentia (sermo 2) [Sp.]': ['Vol', 'pg', 'ln^¼»¾ÇÂ^¼»]a'], 'Ad Innocentium papam (epist. 2)': ['Vol', 'pg', 'ln\x1a´\x8e\x1a´\x8cn\x1b¶'], '?De remissione peccatorum [Sp.] (fort. auctore quodam Cappadoce)': ['Vol', 'pg', 'ln¼÷ú\x8cü\x92¼÷\x8e]´'], 'De baptismo Christi': ['Vol', 'pg', 'ln®ë뮳'], '.Contra haereticos et in sanctam deiparam [Sp.]': ['Vol', 'pg', 'ln7»½È\x92Ê´7»¼O9'], 'In mediam pentecosten [Sp.]': ['Vol', 'pg', 'ln½½l³'], 'Deprecatio [Sp.]': ['line'], 'De Chananaea [Dub.]': ['Vol', 'pg', 'lnN´Æ¤ÈʺÌN´bS³'], '3De beato Philogonio (%6 Contra Anomoeos, homilia 6)': ['Vol', 'pg', 'ln§ëí§ë\x8e'], 'In sanctum Ignatium martyrem': ['Vol', 'pg', 'lnË´ÏÑËq´'], '&In dictum Pauli: Oportet haereses esse': ['Vol', 'pg', 'ln³û³û«^'], '#In Martham, Mariam et Lazarum [Sp.]': ['Vol', 'pg', 'ln½½Àɽ½©e´'], ',In illud Isaiae: Ego dominus deus feci lumen': ['Vol', 'pg', 'ln¶§¶s»´'], '"Comparatio regis et monachi [Dub.]': ['Vol', 'pg', 'lni'], 'In Ecclesiasten [Sp.]': ['Sect', "ln\x0f \x0fü§\x0f V\x0f'´¶"], 'De jejunio, de Davide [Sp.]': ['Vol', 'pg', 'ln̾÷úü³Ì¾÷iϳ³'], 'De virginitate': ['Sect', 'lnk\x8eÍ»¼¤\x92Ýþ´\x8e̽\x8eÉËÎÑ\x8ekE'], '$In epistulam ad Galatas commentarius': ['Vol', 'pg', 'ln\x13½«î¶óú\x8e³&&\x8c-.¤«\x13½@1'], 'Contra ludos et theatra': ['Vol', 'pg', 'ln\x8c\x8et×¶'], '2In Psalmum 50 (homilia 1) [Sp.] (P. Berol. 6788 A)': ['Sect', 'ln\x0faP\x0fa'], 'In Lazarum (homilia 3) [Sp.]': ['Vol', 'pg', 'ln×¾\x8c×¾a³³'], '"De proditione Judae (homiliae 1-2)': ['Vol', 'pg', 'ln÷ùû¶¾¶©bº³'], 'De terrae motu': ['Vol', 'pg', 'ln\x13ÉÌ\x13É\x14¶'], 'In Psalmum 145': ['Vol', 'pg', 'ln\x8c§\x8e¶¶´'], 'In Lazarum (homilia 1) [Sp.]': ['Vol', 'pg', 'ln¾À§¾¿ZÖ³³'], '!In pharisaeum et meretricem [Sp.]': ['Vol', 'pg', 'ln½×½Ý½×\x8eX³´'], '&In illud: Pater si possibile est [Sp.]': ['Vol', 'pg', 'ln§½É§½h©³'], '%Prooemia in Psalmos (fragmenta) [Sp.]': ['Vol', 'pg', 'lnUÇÃUsX'], '3In laudem sancti Joannis theologi (homilia 2) [Sp.]': ['Vol', 'pg', 'ln½Ï®Ò\x8e½ÏV³'], '%Epistulae ad Olympiadem (epist. 1-17)': ['Epistle', 'section', 'line'], 'In resurrectionem domini [Sp.]': ['line'], '#In sanguinis fluxu laborantem [Sp.]': ['Vol', 'pg', 'ln\x0e}À¶Æ¿\x0e}À\x0e³'], '=In quatriduanum Lazarum (%6 Contra Anomoeos, homilia 9) [Sp.]': ['Vol', 'pg', 'ln´¼¤´¶'], "'In annuntiationem beatae virginis [Sp.]": ['Vol', 'pg', 'lnË»«Ëºeͳ´'], 'In Psalmum 50 [Sp.]': ['Vol', 'pg', 'lnTToU'], '6In natale domini et in sanctam Mariam genitricem [Sp.]': ['Sect', 'ln\x0eà\x92¤\x0eàJ\x0e´´'], 'In Jordanem fluvium [Sp.]': ['Vol', 'pg', 'ln½¼\x8c½m³³'], ' In resurrectionem domini B [Sp.]': ['line'], "'In epistulam ad Romanos (homiliae 1-32)": ['Vol', 'pg', 'ln¼\x8c«\x8eº´\x92¤§¶®¼³\x8c»§½®¿½¤ÈÊ̫κÑÓ«Ó×ÛÝß½êî¶ó÷\x8eùû½¾û®³½\x8e¤«\x92´§©«³³¶ºÜÝ»¾À¼ÇÇÉËͳϺѾÓ\x8cÓ\x8e»ÖÜ´ÞÀíí¾¤ó§óí©«½÷ùûúú\x8cº¶\x92¼\x8c\x92©´º§¼¶®«Ó¾û³Ý»ÇÓíóíú#\x0f¶'], 'Sermo antequam iret in exsilium': ['Vol', 'pg', 'ln\x13´«®\x13´«]\x15'], 'De patientia (sermo 2) [Sp.]': ['Vol', 'pg', 'lnp¼¶ÛÌÝßp¼Ts¶'], 'In ascensionem (sermo 2) [Sp.]': ['Vol', 'pg', 'lnS´§¿ÍS´^U´'], 'In pentecosten (sermo 1) [Sp.]': ['Vol', 'pg', 'lnX´\x8e§X´\x8c`Z'], '!In sanctos Petrum et Heliam [Sp.]': ['Vol', 'pg', 'lnºÜߺ\x8eb¿'], '3De cruce et latrone [Sp.] (fort. auctore Severiano)': ['Sect', 'ln\x0e\x92\x0eE\x0e´'], 'In sanctum pascha [Sp.]': ['line'], 'Epistula ad monachos [Sp.]': ['line'], '(Sermo exhortatorius de temperantia [Sp.]': ['Vol', 'pg', 'ln\x0e}À©\x0e}Àh\x0e}³'], "'In exaltationem venerandae crucis [Sp.]": ['Vol', 'pg', 'ln1»§1»§X2´'], '#Fragmenta in Proverbia (in catenis)': ['Vol', 'pg', 'lnÀ\x8c¶ÀÉÐ\x8eݧÀ\x19¶'], 'In proditionem Judae [Sp.]': ['Vol', 'pg', 'ln½³Ë½o'], "'Post reditum a priore exsilio (sermo 2)": ['Vol', 'pg', 'ln\x16´»¾À\x8c\x16´»h\x18´'], '@De paenitentia et in lectionem de Davide et de uxore Uriae [Sp.]': ['Vol', 'pg', 'ln\x0ezÀ\x0ezÀg\x0e|³³'], 'Non esse desperandum': ['Vol', 'pg', 'ln³ë³î³ë´'], 'In sanctum Barlaam martyrem': ['Vol', 'pg', 'ln§n'], ',In epistulam i ad Corinthios (homiliae 1-44)': ['Vol', 'pg', 'ln\x0f½\x8c¼¤\x17\x17¤´§\x1b\x1b§©«§\x1f\x1f´»½¿®Ã((ÃÆÈÊ̾Ï\x8eÑÓ¼×11×§ÜÞà\x8eë::ëí³=>\x92öú³\x8e\x8c\x8eRS¤¼«³½º_`»³¾ÀÂÇÉËÍghÍÏÑÓjkÓ¤Öܩ޴ë¿î÷ù{|ùû§¾\x8c¿³º§©«®§©´»»½ÀÂÇÉˤÎÐÒ×\x8cÛ§§Û\x8e¤Þà©ëî\x8c÷ùûºþ\x0f½'], 'In illud: Si esurierit inimicus': ['Vol', 'pg', 'ln\\³«®³\x92³º\\³«b¶'], 'Encomium in sanctum Polycarpum': ['line'], 'KIn natale domini nostri Jesu Christi [Sp.] (fort. auctore quodam Cappadoce)': ['Vol', 'pg', 'ln½û¾þ¤\x8c½ûX³'], 'In duodecim apostolos [Sp.]': ['Vol', 'pg', 'lnö»º\x8cö»\x8cb÷'], '"In illud: Exeuntes pharisaei [Sp.]': ['Vol', 'pg', 'ln½ÊýÉb'], 'De jejunio [Sp.]': ['Vol', 'pg', 'ln˾ÆË¾¶b̳³'], 'Homilia in martyres': ['Vol', 'pg', 'ln³¼n³'], ')Interpretatio in Danielem prophetam [Sp.]': ['Vol', 'pg', 'lnÇÊÌÎÑÓÖ\x8eÛ«Þ§\x8c³ëíö[³'], '-Christi discipulum benignum esse debere [Sp.]': ['Vol', 'pg', 'ln«È«`'], '"Homilia dicta praesente imperatore': ['Vol', 'pg', 'lnÈ¿ÛÞÈ¿mË'], 'In Psalmum 92 [Sp.]': ['Vol', 'pg', 'lnkº¤§kZm´'], ',In nativitatem Christi (fragmenta duo) [Sp.]': ['Fragment', 'line'], ';In parabolam de ficu [Sp.] (fort. auctore quodam Cappadoce)': ['Vol', 'pg', 'ln\x1e»ÉËÍ\x1e»É§P ´³'], 'De sancto hieromartyre Babyla': ['Vol', 'pg', 'lnÞ\x92©Þjà´'], 'Oratio de hypapante [Sp.]': ['Pg', 'ln\x0f¾Ì\x0fi\x0f´´³'], ';In illud: Nolite thesaurizare vobis thesauros in terra[Sp.]': ['Pg', 'ln\x0e\x92÷ù\x0ef\x0eó´³'], 'GIn sanctum pascha (sermo 1) [Sp.] (fort. auctore Apollinare Laodicense)': ['Sect', 'ln:s<¶'], 'In pentecosten (sermo 2) [Sp.]': ['Vol', 'pg', 'lnZ´§ÃZ´§k['], ',In epistulam ad Philippenses (homiliae 1-15)': ['Vol', 'pg', 'lnz¾´¼¾ÃÈËÍÍ϶Ò×ÜÞà¶\x8cê\x8eöùû©\x92©´\x8c\x8c©¤®z¾«¶']}}, 'Antisthenes Phil., Rhet.': {'tlg_id': 'TLG0591', 'names': {'name_authtab': 'Antisthenes Phil. et Rhet.', 'name_idt': 'Antisthenes Phil., Rhet.'}, 'works': {'Fragmenta varia': ['Fragment', 'line'], 'Declamationes (fragmenta)': ['Fragment', 'section', 'line']}}, 'Aristodemus Hist.': {'tlg_id': 'TLG2148', 'names': {'name_authtab': 'Aristodemus Hist.', 'name_idt': 'Aristodemus Hist.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Fragmentum (P. Oxy. 27.2469)': ['FGrH fragment', 'line']}}, 'Aristonicus Gramm.': {'tlg_id': 'TLG1194', 'names': {'name_authtab': 'Aristonicus Gramm.', 'name_idt': 'Aristonicus Gramm.'}, 'works': {'': ['De signis Iliadis', 'Book of Iliad', 'verse in book', 'line'], 'Fragmentum': ['line', 'fragment', 'line'], 'De signis Odysseae': ['Book of Odyssey', 'verse in book', 'line', '\x12©×\x14\x16\x92ɽ¶\x18îù®³\x19\x92¾©\x1a\x1b\x92\x1b׫§³³\x1e\x1e\x92\x1f³\x1fÓ¶´³ ©\x16l '], 'Testimonia': ['line', 'fragment', 'line']}}, 'Archebulus Poeta': {'tlg_id': 'TLG2608', 'names': {'name_authtab': 'Archebulus Poeta', 'name_idt': 'Archebulus Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Aelianus Tact.': {'tlg_id': 'TLG0546', 'names': {'name_authtab': 'Aelianus Tact.', 'name_idt': 'Aelianus Tact.'}, 'works': {'Tactica': ['Chapter', 'section', 'line']}}, 'Pherenicus Epic.': {'tlg_id': 'TLG2636', 'names': {'name_authtab': 'Pherenicus Epic.', 'name_idt': 'Pherenicus Epic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Nicias Epigr.': {'tlg_id': 'TLG1533', 'names': {'name_authtab': 'Nicias Epigr.', 'name_idt': 'Nicias Epigr.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Scholia In Thucydidem': {'tlg_id': 'TLG5039', 'names': {'name_authtab': 'Scholia In Thucydidem', 'name_idt': 'Scholia In Thucydidem'}, 'works': {'4Scholia in Thucydidem (scholia vetera et recentiora)': ['Book', 'chapter', 'section', 'line']}}, 'Mimnermus Trag.': {'tlg_id': 'TLG1511', 'names': {'name_authtab': 'Mimnermus Trag.', 'name_idt': 'Mimnermus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Memnon Hist.': {'tlg_id': 'TLG1496', 'names': {'name_authtab': 'Memnon Hist.', 'name_idt': 'Memnon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Simus Phil.': {'tlg_id': 'TLG2245', 'names': {'name_authtab': 'Simus Phil.', 'name_idt': 'Simus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Damon Hist.': {'tlg_id': 'TLG2273', 'names': {'name_authtab': 'Damon Hist.', 'name_idt': 'Damon Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Etymologicum Gudianum': {'tlg_id': 'TLG4098', 'names': {'name_authtab': 'Etymologicum Gudianum', 'name_idt': 'Etymologicum Gudianum'}, 'works': {'qAdditamenta in Etymologicum Gudianum ($A)A/LION_ZEIAI/&) (e codd. Vat. Barber. gr. 70 [olim Barber. I 70] %7 Pari': ['Alphabetic entry', 'page', 'line'], '$Additamenta in Etymologicum Gudianum': ['Page', 'line'], ')Etymologicum Gudianum ($A)A/LION_ZEIAI/&)': ['Alphabetic entry', 'page', 'line'], '*Etymologicum Gudianum ($ZEI/DWROS_W)=MAI&)': ['Alphabetic entry', 'page', 'line']}}, 'Crates Comic.': {'tlg_id': 'TLG0433', 'names': {'name_authtab': 'Crates Comic.', 'name_idt': 'Crates Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Oenomaus Phil.': {'tlg_id': 'TLG1548', 'names': {'name_authtab': 'Oenomaus Phil.', 'name_idt': 'Oenomaus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cleobulus Epigr., Lyr.': {'tlg_id': 'TLG1274', 'names': {'name_authtab': 'Cleobulus Epigr. et Lyr.', 'name_idt': 'Cleobulus Epigr., Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Anonymus Iamblichi Phil.': {'tlg_id': 'TLG1134', 'names': {'name_authtab': 'Anonymus Iamblichi Phil.', 'name_idt': 'Anonymus Iamblichi Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Paulus Silentiarius Poeta': {'tlg_id': 'TLG4039', 'names': {'name_authtab': 'Paulus Silentiarius Poeta', 'name_idt': 'Paulus Silentiarius Poeta'}, 'works': {'Descriptio ambonis': ['line'], 'Descriptio Sanctae Sophiae': ['line']}}, 'Autolycus Astron.': {'tlg_id': 'TLG1210', 'names': {'name_authtab': 'Autolycus Astron.', 'name_idt': 'Autolycus Astron.'}, 'works': {'De ortibus et occasibus': ['Chapter', 'section', 'line'], 'De sphaera quae movetur': ['Section', 'line']}}, 'Menecrates Comic.': {'tlg_id': 'TLG0523', 'names': {'name_authtab': 'Menecrates Comic.', 'name_idt': 'Menecrates Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Titulus': ['Page', 'line']}}, 'Philetas Eleg., Gramm.': {'tlg_id': 'TLG0212', 'names': {'name_authtab': 'Philetas Eleg. et Gramm.', 'name_idt': 'Philetas Eleg., Gramm.'}, 'works': {'': ['Fragmenta poetica', 'Title', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Fragmenta grammatica': ['Fragment', 'line']}}, '[Musaeus] Phil.': {'tlg_id': 'TLG2691', 'names': {'name_authtab': '[Musaeus] Phil.', 'name_idt': '[Musaeus] Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Sotades Iamb.': {'tlg_id': 'TLG1691', 'names': {'name_authtab': 'Sotades Iamb.', 'name_idt': 'Sotades Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Severianus Scr. Eccl.': {'tlg_id': 'TLG4139', 'names': {'name_authtab': 'Severianus Scr. Eccl.', 'name_idt': 'Severianus Scr. Eccl.'}, 'works': {';In Job (sermones 1-4) (olim sub auctore Joanne Chrysostomo)': ['Volume', 'page', 'line'], '3Fragmenta in epistulam i ad Corinthios (in catenis)': ['Page', 'line', '', '\x12\x13í\x13í\x13í\x8e\x15\x15\x8c\x15\x8c\x92\x15ü\x18\x92\x92\x19\x1a\x1a\x92\x92\x92\x1e´'], '2Fragmentum in epistulam ad Philemonem (in catenis)': ['Page', 'line'], '/Fragmenta in epistulam ad Ephesios (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Galatas (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam ad Philippenses (in catenis)': ['Page', 'line'], '2Fragmenta in epistulam i ad Timotheum (in catenis)': ['Page', 'line'], '9Fragmenta in epistulam i ad Thessalonicenses (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam ii ad Timotheum (in catenis)': ['Page', 'line'], ':Fragmenta in epistulam ii ad Thessalonicenses (in catenis)': ['Page', 'line'], '4Fragmenta in epistulam ii ad Corinthios (in catenis)': ['Page', 'line'], 'JIn illud: Quando ipsi subiciet omnia (olim sub auctore Joanne Chrysostomo)': ['Page', 'line'], '6De tribus pueris (olim sub auctore Joanne Chrysostomo)': ['Volume', 'page', 'line'], '/Fragmenta in epistulam ad Hebraeos (in catenis)': ['Page', 'line'], '2Fragmenta in epistulam ad Colossenses (in catenis)': ['Page', 'line'], '3De caeco nato (olim sub auctore Joanne Chrysostomo)': ['Volume', 'page', 'line'], ',Fragmenta in epistulam ad Titum (in catenis)': ['Page', 'line'], ':De caeco et Zacchaeo (olim sub auctore Joanne Chrysostomo)': ['Volume', 'page', 'line'], ':In Genesim (sermo 1) (olim sub auctore Joanne Chrysostomo)': ['Volume', 'page', 'line']}}, 'Phoenix Iamb.': {'tlg_id': 'TLG1606', 'names': {'name_authtab': 'Phoenix Iamb.', 'name_idt': 'Phoenix Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Athenodorus Phil.': {'tlg_id': 'TLG1206', 'names': {'name_authtab': 'Athenodorus Phil.', 'name_idt': 'Athenodorus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Symeon Logothetes Hist.': {'tlg_id': 'TLG3070', 'names': {'name_authtab': 'Symeon Logothetes Hist.', 'name_idt': 'Symeon Logothetes Hist.'}, 'works': {'qChronicon (sub nomine Leonis Grammatici vel Theodosii Melisseni vel Julii Pollucis) (redactio A %7 B operis sub t': ['Page', 'line']}}, 'Anacreon Lyr.': {'tlg_id': 'TLG0237', 'names': {'name_authtab': 'Anacreon Lyr.', 'name_idt': 'Anacreon Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Diodorus Comic.': {'tlg_id': 'TLG0444', 'names': {'name_authtab': 'Diodorus Comic.', 'name_idt': 'Diodorus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Apollodorus Mech.': {'tlg_id': 'TLG1165', 'names': {'name_authtab': 'Apollodorus Mech.', 'name_idt': 'Apollodorus Mech.'}, 'works': {'Poliorcetica': ['Wescher page', 'line']}}, 'Euagon Hist.': {'tlg_id': 'TLG2372', 'names': {'name_authtab': 'Euagon Hist.', 'name_idt': 'Euagon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Menander Protector Hist.': {'tlg_id': 'TLG4076', 'names': {'name_authtab': 'Menander Protector Hist.', 'name_idt': 'Menander Protector Hist.'}, 'works': {'+Fragmentum (e cod. Paris. gr. 1140A) [Dub.]': ['Page', 'line'], '?De sententiis (ap. Constantinum Porphyrogenitum, De sententiis)': ['Section', 'line'], 'aDe legationibus Romanorum ad gentes (fragmenta ap. Constantinum Porphyrogenitum, De legationibus)': ['Section', 'line'], '`De legationibus gentium ad Romanos (fragmenta ap. Constantinum Porphyrogenitum, De legationibus)': ['Section', 'line']}}, 'Bion Phil.': {'tlg_id': 'TLG1224', 'names': {'name_authtab': 'Bion Phil.', 'name_idt': 'Bion Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Nemesius Theol.': {'tlg_id': 'TLG0743', 'names': {'name_authtab': 'Nemesius Theol.', 'name_idt': 'Nemesius Theol.'}, 'works': {'': ['De natura hominis', 'Section', 'line']}}, 'Dioscurides Hist.': {'tlg_id': 'TLG2409', 'names': {'name_authtab': 'Dioscurides Hist.', 'name_idt': 'Dioscurides Hist.'}, 'works': {'Fragmentum': ['FGrH fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Julianus Imperator Phil.': {'tlg_id': 'TLG2003', 'names': {'name_authtab': 'Flavius Claudius Julianus Imperator Phil., Julian the Apostate', 'name_idt': 'Julianus Imperator Phil.'}, 'works': {'+$*)AQHNAI/WN TH=| BOULH=| KAI\\ TW=| DH/MW|&': ['Section', 'line'], '$*QEMISTI/W| FILOSO/FW|&': ['Section', 'line'], '3$*)EGKW/MION EI)S TO\\N AU)TOKRA/TORA *KWNSTA/NTION&': ['Section', 'line'], '1$*EI)S TO\\N BASILE/A *(/HLION PRO\\S *SALOU/STION&': ['Section', 'line'], 'Epistulae dubiae': ['Epistle', 'line'], 'Poematia et fragmenta': ['Fragment', 'line'], 'Fragmentum': ['line'], '/Misopogon (sc.$ *)ANTIOXIKO\\S H)\\ *MISOPW/GWN&)': ['Section', 'line'], 'Contra Galilaeos': ['Page', 'line'], '': ['Epistulae spuriae', 'Epistle', 'line'], 'R$*)EPI\\ TH=| E)CO/DW| TOU= A)GAQWTA/TOU *SALOUSTI/OU PARAMUQHTIKO\\S EI)S E(AUTO/N&': ['Section', 'line'], '$*EI)S TH\\N MHTE/RA TW=N QEW=N&': ['Section', 'line'], 'Testimonia': ['line', 'fragment', 'line'], '"$*EI)S TOU\\S A)PAIDEU/TOUS KU/NAS&': ['Section', 'line'], 'Epistulae': ['Epistle', 'line'], '($*EU)SEBI/AS TH=S BASILI/DOS E)GKW/MION&': ['Section', 'line'], '?$*PERI\\ TW=N TOU= AU)TOKRA/TOROS PRA/CEWN H)\\ PERI\\ BASILEI/AS&': ['Section', 'line'], '($*SUMPO/SION H)\\ *KRO/NIA &sive Caesares': ['Section', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'g$*PRO\\S *(HRA/KLEION KUNIKO\\N PERI\\ TOU= PW=S KUNISTE/ON KAI\\ EI) PRE/PEI TW=| KUNI\\ MU/QOUS PLA/TTEIN&': ['Section', 'line']}}, 'Moschus Bucol.': {'tlg_id': 'TLG0035', 'names': {'name_authtab': 'Moschus Bucol.', 'name_idt': 'Moschus Bucol.'}, 'works': {'Megara [Sp.]': ['line'], 'Epitaphius Bionis [Sp.]': ['line'], 'Europa': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Eros drapeta': ['line']}}, 'Severus Iatrosophista Med.': {'tlg_id': 'TLG0748', 'names': {'name_authtab': 'Severus Iatrosophista Med.', 'name_idt': 'Severus Iatrosophista Med.'}, 'works': {'7De instrumentis infusoriis seu clysteribus ad Timotheum': ['Page', 'line']}}, 'Timaeus Praxidas Astrol.': {'tlg_id': 'TLG1105', 'names': {'name_authtab': 'Timaeus Praxidas Astrol.', 'name_idt': 'Timaeus Praxidas Astrol.'}, 'works': {'Fragmentum': ['Volume', 'page', 'line']}}, 'Martyrium Agapae, Irenae, Chionae Et Sodalium': {'tlg_id': 'TLG2011', 'names': {'name_authtab': 'Martyrium Agapae, Irenae, Chionae Et Sodalium', 'name_idt': 'Martyrium Agapae, Irenae, Chionae Et Sodalium'}, 'works': {'-Martyrium Agapae, Irenae, Chionae et sodalium': ['Chapter', 'section', 'line']}}, 'Xanthus Hist.': {'tlg_id': 'TLG1751', 'names': {'name_authtab': 'Xanthus Hist.', 'name_idt': 'Xanthus Hist.'}, 'works': {'Fragmentum': ['FGrH fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Damianus Scriptor De Opticis': {'tlg_id': 'TLG2627', 'names': {'name_authtab': 'Damianus Scriptor De Opticis', 'name_idt': 'Damianus Scriptor De Opticis'}, 'works': {'Optica': ['Section', 'line']}}, 'Timolaus Rhet.': {'tlg_id': 'TLG2697', 'names': {'name_authtab': 'Timolaus Rhet.', 'name_idt': 'Timolaus Rhet.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Fragmenta Anonyma (PsVTGr)': {'tlg_id': 'TLG1817', 'names': {'name_authtab': 'Fragmenta Anonyma (PsVTGr)', 'name_idt': 'Fragmenta Anonyma (PsVTGr)'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Ptolemaeus Math.': {'tlg_id': 'TLG0363', 'names': {'name_authtab': 'Claudius Ptolemaeus Math.', 'name_idt': 'Ptolemaeus Math.'}, 'works': {'': ['Inscriptio Canobi', 'Volume', 'page', 'line'], 'Hypotheses': ['Volume', 'page', 'line'], 'Geographia (lib. 4-8)': ['Book', 'chapter', 'section', 'line'], 'Phaseis': ['Volume', 'page', 'line'], 'Syntaxis mathematica': ['Volume', 'page', 'line'], 'Geographia (lib. 1-3)': ['Book', 'chapter', 'section', 'line'], 'Apotelesmatica (%6 Tetrabiblos)': ['Book', 'chapter', 'section', 'line'], '*De judicandi facultate et animi principatu': ['Volume', 'page', 'line'], 'De analemmate': ['Volume', 'page', 'line'], '0$*PROXEI/RWN KANO/NWN DIA/TACIS KAI\\ YHFOFORI/A&': ['Volume', 'page', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Harmonica': ['Chapter', 'section', 'line'], 'Musica': ['Section', 'line']}}, 'Stephanus Alchem.': {'tlg_id': 'TLG9021', 'names': {'name_authtab': 'Stephanus Alchem.', 'name_idt': 'Stephanus Alchem.'}, 'works': {'CDe magna et sacra arte (sub nomine Stephani Alexandrini philosophi)': ['Volume', 'page', 'line']}}, 'Autocharis Hist.': {'tlg_id': 'TLG2175', 'names': {'name_authtab': 'Autocharis Hist.', 'name_idt': 'Autocharis Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Scholia In Clementem Alexandrinum': {'tlg_id': 'TLG5048', 'names': {'name_authtab': 'Scholia In Clementem Alexandrinum', 'name_idt': 'Scholia In Clementem Alexandrinum'}, 'works': {'TScholia in protrepticum et paedagogum (scholia recentiora partim sub auctore Aretha)': ['Page', 'line']}}, 'Moschion Trag.': {'tlg_id': 'TLG0339', 'names': {'name_authtab': 'Moschion Trag.', 'name_idt': 'Moschion Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pindarus Lyr.': {'tlg_id': 'TLG0033', 'names': {'name_authtab': 'Pindarus Lyr.', 'name_idt': 'Pindarus Lyr.'}, 'works': {'Olympia': ['Ode', 'line'], 'Nemea': ['Ode', 'line', '³', '\x12\x13o\x13´'], 'Isthmia': ['Ode', 'line'], 'Fragmenta': ['Type of poem', 'fragment', 'line'], 'Pythia': ['Ode', 'line']}}, 'Chilonis Epistula': {'tlg_id': 'TLG0386', 'names': {'name_authtab': 'Chilonis Epistula', 'name_idt': 'Chilonis Epistula'}, 'works': {'Epistula': ['line']}}, 'Aeschines Socraticus Phil.': {'tlg_id': 'TLG0673', 'names': {'name_authtab': 'Aeschines Socraticus Phil.', 'name_idt': 'Aeschines Socraticus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'subfragment', 'line']}}, 'Monimus Phil.': {'tlg_id': 'TLG2968', 'names': {'name_authtab': 'Monimus Phil.', 'name_idt': 'Monimus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Diodorus Rhet.': {'tlg_id': 'TLG1318', 'names': {'name_authtab': 'Diodorus Rhet.', 'name_idt': 'Diodorus Rhet.'}, 'works': {'Fragmentum de viris duobus': ['Page', 'line']}}, 'Theognis Trag.': {'tlg_id': 'TLG0313', 'names': {'name_authtab': 'Theognis Trag.', 'name_idt': 'Theognis Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Acta Thomae': {'tlg_id': 'TLG2038', 'names': {'name_authtab': 'Acta Thomae', 'name_idt': 'Acta Thomae'}, 'works': {'Actorum Thomae consummatio': ['Page', 'line'], 'Acta Thomae (recensio)': ['Section', 'line'], '2Carmen animae (De margarita) (paraphrasis Nicetae)': ['line'], ';Carmen animae (De margarita) (cod. Rom. vallicellanus B 35)': ['line'], 'Acta Thomae': ['Section', 'line']}}, 'Gregorius Paroemiogr.': {'tlg_id': 'TLG9006', 'names': {'name_authtab': 'Gregorius Paroemiogr.', 'name_idt': 'Gregorius Paroemiogr.'}, 'works': {'Paroemiae (e cod. Vat.)': ['Centuria', 'section', 'line'], 'Paroemiae': ['Centuria', 'section', 'line'], 'Paroemiae (e cod. Mosq.)': ['Centuria', 'section', 'line'], 'Paroemiae (e cod. Leidense)': ['Centuria', 'section', 'line']}}, 'Eubulus Comic.': {'tlg_id': 'TLG0458', 'names': {'name_authtab': 'Eubulus Comic.', 'name_idt': 'Eubulus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Pigres Eleg.': {'tlg_id': 'TLG0258', 'names': {'name_authtab': 'Pigres Eleg.', 'name_idt': 'Pigres Eleg.'}, 'works': {'Fragmentum': ['line']}}, 'Alexis Hist.': {'tlg_id': 'TLG0707', 'names': {'name_authtab': 'Alexis Hist.', 'name_idt': 'Alexis Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Diodorus Scr. Eccl.': {'tlg_id': 'TLG4134', 'names': {'name_authtab': 'Diodorus Scr. Eccl.', 'name_idt': 'Diodorus Scr. Eccl.'}, 'works': {'.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line']}}, 'Tatianus Apol.': {'tlg_id': 'TLG1766', 'names': {'name_authtab': 'Tatianus Apol.', 'name_idt': 'Tatianus Apol.'}, 'works': {'': ['Oratio ad Graecos', 'Chapter', 'section', 'line'], 'Diatesseron': ['line']}}, 'Musaeus Grammaticus Epic.': {'tlg_id': 'TLG4082', 'names': {'name_authtab': 'Musaeus Grammaticus Epic.', 'name_idt': 'Musaeus Grammaticus Epic.'}, 'works': {'Hero et Leander': ['line']}}, 'Acilius Hist., Phil.': {'tlg_id': 'TLG2545', 'names': {'name_authtab': 'Gaius Acilius Hist. et Phil.', 'name_idt': 'Acilius Hist., Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Martyrium Et Ascensio Isaiae': {'tlg_id': 'TLG1483', 'names': {'name_authtab': 'Martyrium Et Ascensio Isaiae', 'name_idt': 'Martyrium Et Ascensio Isaiae'}, 'works': {'Fragmenta': ['Chapter', 'section', 'line']}}, 'Sophocles Trag.': {'tlg_id': 'TLG0011', 'names': {'name_authtab': 'Sophocles Trag.', 'name_idt': 'Sophocles Trag.'}, 'works': {'Oedipus tyrannus': ['line'], 'Trachiniae': ['line'], 'Electra': ['line'], 'Philoctetes': ['line'], 'Antigone': ['line'], 'Ajax': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Oedipus Coloneus': ['line']}}, 'Dioscorus Poeta': {'tlg_id': 'TLG2121', 'names': {'name_authtab': 'Dioscorus Poeta', 'name_idt': 'Dioscorus Poeta'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Arcesilai Epistula': {'tlg_id': 'TLG0038', 'names': {'name_authtab': 'Arcesilai Epistula', 'name_idt': 'Arcesilai Epistula'}, 'works': {'Epistula': ['line']}}, 'Cinesias Lyr.': {'tlg_id': 'TLG0375', 'names': {'name_authtab': 'Cinesias Lyr.', 'name_idt': 'Cinesias Lyr.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Nicomachus Comic.': {'tlg_id': 'TLG0482', 'names': {'name_authtab': 'Nicomachus Comic.', 'name_idt': 'Nicomachus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Acta Scillitanorum Martyrum': {'tlg_id': 'TLG0391', 'names': {'name_authtab': 'Acta Scillitanorum Martyrum', 'name_idt': 'Acta Scillitanorum Martyrum'}, 'works': {';Acta Scillitanorum martyrum sive Passio Sperati et sociorum': ['Page', 'line']}}, 'Iliu Persis': {'tlg_id': 'TLG1445', 'names': {'name_authtab': 'Iliu Persis', 'name_idt': 'Iliu Persis'}, 'works': {'Iliu persis (fragmenta)': ['Fragment', 'line']}}, 'Anna Comnena Hist.': {'tlg_id': 'TLG2703', 'names': {'name_authtab': 'Anna Comnena Hist.', 'name_idt': 'Anna Comnena Hist.'}, 'works': {'Alexias': ['Book', 'chapter', 'section', 'line']}}, 'Chionis Epistulae': {'tlg_id': 'TLG0041', 'names': {'name_authtab': 'Chionis Epistulae', 'name_idt': 'Chionis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Mithridatis Epistula': {'tlg_id': 'TLG0039', 'names': {'name_authtab': 'Mithridatis Epistula', 'name_idt': 'Mithridatis Epistula'}, 'works': {'Epistula': ['Section', 'line']}}, 'Cercidas Iamb.': {'tlg_id': 'TLG1250', 'names': {'name_authtab': 'Cercidas Iamb.', 'name_idt': 'Cercidas Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Basilius Theol.': {'tlg_id': 'TLG2040', 'names': {'name_authtab': 'Basilius Theol.', 'name_idt': 'Basilius Theol.'}, 'works': {'': ['De spiritu sancto', 'Chapter', 'section', 'line'], 'Prologus 7 (de judicio dei)': ['Volume', 'page', 'line'], '4Poenae in monachos delinquentes (epitimia 24) [Dub.]': ['Volume', 'page', 'line'], 'Epistulae tres': ['Epistle', 'line'], '(Sermo 12 (de ascetica disciplina) [Dub.]': ['Volume', 'page', 'line'], '3Consolatoria ad aegrotum [Sp.] (sub auctore Proclo)': ['Volume', 'page', 'line'], 'Homilia in Psalmum 132 [Sp.]': ['Volume', 'page', 'line'], '3Prologus 3 (prooemium in regulas brevius tractatas)': ['Volume', 'page', 'line'], '#Oratio pro inimicis et amicis [Sp.]': ['Volume', 'page', 'line'], 'Homilia in Psalmum 37 [Sp.]': ['Volume', 'page', 'line'], 'In ebriosos': ['Volume', 'page', 'line'], 'In Gordium martyrem': ['Volume', 'page', 'line'], 'In Barlaam martyrem [Sp.]': ['Volume', 'page', 'line'], 'Orationes sive Exorcismi [Sp.]': ['Volume', 'page', 'line'], 'Homilia de invidia': ['Volume', 'page', 'line'], ':Sermo ob sacerdotum instructionem (recensio brevior) [Sp.]': ['Volume', 'page', 'line'], '=Asceticon magnum sive Quaestiones (regulae brevius tractatae)': ['Volume', 'page', 'line'], 'Homiliae in hexaemeron': ['Homily', 'section', 'line'], '#Homilia adversus eos qui irascuntur': ['Volume', 'page', 'line'], 'FSermo 11 (sermo asceticus et exhortatio de renuntiatione mundi) [Dub.]': ['Volume', 'page', 'line'], 'In sanctam Christi generationem': ['Volume', 'page', 'line'], 'De humilitate': ['Volume', 'page', 'line'], '9Sermo ob sacerdotum instructionem (recensio fusior) [Sp.]': ['Page', 'line'], 'Sermo 14 (De fide) [Sp.]': ['line'], '*Epitimia in canonicas (epitimia 25) [Dub.]': ['Volume', 'page', 'line'], '%Prologus 6 (prooemium ad Hypotyposin)': ['line'], '#Prologus 5 (sermo asceticus) [Dub.]': ['Volume', 'page', 'line'], 'Sermo 16 (De calumnia) [Sp.]': ['line'], 'In Mamantem martyrem': ['Volume', 'page', 'line'], '$Enarratio in prophetam Isaiam [Dub.]': ['Chapter', 'section', 'line'], '#Homilia in illud: Attende tibi ipsi': ['Page', 'line'], ':Homilia de paenitentia [Sp.] (sub auctore Eusebio Emeseno)': ['Volume', 'page', 'line'], 'In Psalmum 28 (homilia 2) [Sp.]': ['Volume', 'page', 'line'], 'De legendis gentilium libris': ['Section', 'line'], '<Adversus eos qui per calumniam dicunt dici a nobis tres deos': ['Volume', 'page', 'line'], 'Homilia in aquas [Sp.]': ['line'], 'Homilia de gratiarum actione': ['Volume', 'page', 'line'], '(Homilia de misericordia et judicio [Sp.]': ['Volume', 'page', 'line'], 'Homilia dicta in Lacisis': ['Volume', 'page', 'line'], 'De baptismo libri duo': ['Volume', 'page', 'line'], "'Contra Sabellianos et Arium et Anomoeos": ['Volume', 'page', 'line'], 'Homilia in martyrem Julittam': ['Volume', 'page', 'line'], '"Homilia in principium proverbiorum': ['Volume', 'page', 'line'], '%Homilia in illud: Destruam horrea mea': ['Section', 'line'], '#In quadraginta martyres Sebastenses': ['Volume', 'page', 'line'], '.Sermo 15 (De vita monastica) (excerptum) [Sp.]': ['line'], 'Homilia in Psalmum 115': ['Volume', 'page', 'line'], ')Homilia dicta tempore famis et siccitatis': ['Volume', 'page', 'line'], '<Asceticon magnum sive Quaestiones (regulae fusius tractatae)': ['Volume', 'page', 'line'], '!Sermo 13 (sermo asceticus) [Dub.]': ['Volume', 'page', 'line'], 'Homilia in divites': ['Section', 'line'], 'Epistulae': ['Epistle', 'section', 'line'], '*Prologus 4 (prooemium in asceticum magnum)': ['Volume', 'page', 'line'], '"In illud: In principio erat verbum': ['Volume', 'page', 'line'], 'Epitimia (epitimia 26) [Sp.]': ['Volume', 'page', 'line'], '(Homilia exhortatoria ad sanctum baptisma': ['Volume', 'page', 'line'], 'Regulae morales': ['Volume', 'page', 'line'], 'Adversus Eunomium (libri 5)': ['Volume', 'page', 'line'], 'Prologus 8 (de fide)': ['Volume', 'page', 'line'], '%Canon 96 (De haereticis) (fragmentum)': ['Page', 'line'], '#Liturgia (recensio brevior vetusta)': ['Volume', 'page', 'line'], 'Homilia de virginitate [Sp.]': ['Chapter', 'section', 'line'], 'Homiliae super Psalmos': ['Volume', 'page', 'line'], 'Homilia de spiritu sancto [Sp.]': ['Volume', 'page', 'line'], '5Homilia in illud: Ne dederis somnum oculis tuis [Sp.]': ['Volume', 'page', 'line'], 'De fide': ['Volume', 'page', 'line'], 'De jejunio (homilia 1)': ['Volume', 'page', 'line'], 'De jejunio (homilia 2)': ['Volume', 'page', 'line'], ' Quod deus non est auctor malorum': ['Volume', 'page', 'line'], '2Sermones de moribus a Symeone Metaphrasta collecti': ['Volume', 'page', 'line'], 'Sermo de contubernalibus [Sp.]': ['Volume', 'page', 'line'], "'Quod rebus mundanis adhaerendum non sit": ['Volume', 'page', 'line'], '-Sermo 10 (praevia institutio ascetica) [Dub.]': ['Volume', 'page', 'line'], 'De jejunio (homilia 3) [Sp.]': ['Volume', 'page', 'line'], 'Expositio fidei Nicaenae [Sp.]': ['line'], 'De spiritu [Sp.]': ['Page', 'line'], 'Constitutiones asceticae [Sp.]': ['Volume', 'page', 'line']}}, 'Spintharus Trag.': {'tlg_id': 'TLG1846', 'names': {'name_authtab': 'Spintharus Trag.', 'name_idt': 'Spintharus Trag.'}, 'works': {'Tituli': ['line']}}, 'Philiscus Trag.': {'tlg_id': 'TLG0335', 'names': {'name_authtab': 'Philiscus Trag.', 'name_idt': 'Philiscus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Callistratus Trag.': {'tlg_id': 'TLG1845', 'names': {'name_authtab': 'Callistratus Trag.', 'name_idt': 'Callistratus Trag.'}, 'works': {'Tituli': ['line']}}, 'Isyllus Lyr.': {'tlg_id': 'TLG0201', 'names': {'name_authtab': 'Isyllus Lyr.', 'name_idt': 'Isyllus Lyr.'}, 'works': {'Fragmenta (IG 4.950)': ['line']}}, 'Aristodemus Hist., Myth.': {'tlg_id': 'TLG1875', 'names': {'name_authtab': 'Aristodemus Hist. et Myth.', 'name_idt': 'Aristodemus Hist., Myth.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Paulus Astrol.': {'tlg_id': 'TLG2053', 'names': {'name_authtab': 'Paulus Astrol.', 'name_idt': 'Paulus Astrol.'}, 'works': {'Elementa apotelesmatica': ['Page', 'line'], 'Anacephalaeosis': ['Page', 'line']}}, '[Alexarchus] Hist.': {'tlg_id': 'TLG2556', 'names': {'name_authtab': '[Alexarchus] Hist.', 'name_idt': '[Alexarchus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Morsimus Trag.': {'tlg_id': 'TLG0314', 'names': {'name_authtab': 'Morsimus Trag.', 'name_idt': 'Morsimus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, '[Chrysippus] Hist.': {'tlg_id': 'TLG2559', 'names': {'name_authtab': '[Chrysippus] Hist.', 'name_idt': '[Chrysippus] Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Patrocles Trag.': {'tlg_id': 'TLG0324', 'names': {'name_authtab': 'Patrocles Trag.', 'name_idt': 'Patrocles Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Oecumenius Phil., Rhet.': {'tlg_id': 'TLG2866', 'names': {'name_authtab': 'Oecumenius Phil. et Rhet.', 'name_idt': 'Oecumenius Phil., Rhet.'}, 'works': {'/Fragmenta in epistulam ad Ephesios (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam i ad Corinthios (in catenis)': ['Page', 'line'], '2Fragmentum in epistulam ad Philemonem (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Galatas (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam ad Philippenses (in catenis)': ['Page', 'line'], '2Fragmenta in epistulam i ad Timotheum (in catenis)': ['Page', 'line'], 'Commentarius in Apocalypsin': ['Page', 'line'], '9Fragmenta in epistulam i ad Thessalonicenses (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam ii ad Timotheum (in catenis)': ['Page', 'line'], ':Fragmenta in epistulam ii ad Thessalonicenses (in catenis)': ['Page', 'line'], '4Fragmenta in epistulam ii ad Corinthios (in catenis)': ['Page', 'line'], '/Fragmenta in epistulam ad Hebraeos (in catenis)': ['Page', 'line'], '2Fragmenta in epistulam ad Colossenses (in catenis)': ['Page', 'line'], ',Fragmenta in epistulam ad Titum (in catenis)': ['Page', 'line']}}, 'Sphaerus Phil.': {'tlg_id': 'TLG1693', 'names': {'name_authtab': 'Sphaerus Phil.', 'name_idt': 'Sphaerus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Neoptolemus Gramm.': {'tlg_id': 'TLG1526', 'names': {'name_authtab': 'Neoptolemus Gramm.', 'name_idt': 'Neoptolemus Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Bacchylides Lyr.': {'tlg_id': 'TLG0199', 'names': {'name_authtab': 'Bacchylides Lyr.', 'name_idt': 'Bacchylides Lyr.'}, 'works': {'Paeanes (fragmenta)': ['Fragment', 'line'], 'Dithyramborum fragmenta': ['Fragment', 'line'], 'Hymnorum fragmenta': ['Fragment', 'line'], 'Partheneia (titulus solum)': ['line'], 'Dithyrambi': ['Dithyramb', 'line'], 'Epigrammata': ['Epigram', 'line'], 'Encomia (fragmenta)': ['Fragment', 'line'], 'Fragmenta dubia': ['Fragment', 'line'], 'Erotica (fragmenta)': ['Fragment', 'line'], 'Epinicia': ['Ode', 'line'], 'Hyporchemata (fragmenta)': ['Fragment', 'line'], 'Fragmenta ex operibus incertis': ['Fragment', 'line'], 'Prosodia (fragmenta)': ['Fragment', 'line'], 'Epinicorum fragmenta': ['Fragment', 'line']}}, 'Christodorus Epic.': {'tlg_id': 'TLG2119', 'names': {'name_authtab': 'Christodorus Epic.', 'name_idt': 'Christodorus Epic.'}, 'works': {'Fragmentum': ['line', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Testimonium': ['line', 'fragment', 'line']}}, 'Phanodemus Hist.': {'tlg_id': 'TLG1583', 'names': {'name_authtab': 'Phanodemus Hist.', 'name_idt': 'Phanodemus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hermippus Gramm., Hist.': {'tlg_id': 'TLG1421', 'names': {'name_authtab': 'Hermippus Gramm. et Hist.', 'name_idt': 'Hermippus Gramm., Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Fragmentum Synodicae Epistulae Concilii Caesariensis': {'tlg_id': 'TLG1381', 'names': {'name_authtab': 'Fragmentum Synodicae Epistulae Concilii Caesariensis', 'name_idt': 'Fragmentum Synodicae Epistulae Concilii Caesariensis'}, 'works': {'Fragmentum epistulae': ['Page', 'line']}}, 'Timotheus Trag.': {'tlg_id': 'TLG0467', 'names': {'name_authtab': 'Timotheus Trag.', 'name_idt': 'Timotheus Trag.'}, 'works': {'Tituli': ['line']}}, 'Potamon Hist.': {'tlg_id': 'TLG1949', 'names': {'name_authtab': 'Potamon Hist.', 'name_idt': 'Potamon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aeschrion Lyr.': {'tlg_id': 'TLG0679', 'names': {'name_authtab': 'Aeschrion Lyr.', 'name_idt': 'Aeschrion Lyr.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta et tituli': ['Fragment', 'line']}}, 'Astydamas Trag.': {'tlg_id': 'TLG0325', 'names': {'name_authtab': 'Astydamas Trag.', 'name_idt': 'Astydamas Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scholia In Pausaniam': {'tlg_id': 'TLG5033', 'names': {'name_authtab': 'Scholia In Pausaniam', 'name_idt': 'Scholia In Pausaniam'}, 'works': {'DScholia in Pausaniae periegesin (scholia vetera sub auctore Agathia)': ['\x1ePausanias book+chapter+section', 'line']}}, 'Andron Hist.': {'tlg_id': 'TLG2172', 'names': {'name_authtab': 'Andron Hist.', 'name_idt': 'Andron Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Stephanus Comic.': {'tlg_id': 'TLG0506', 'names': {'name_authtab': 'Stephanus Comic.', 'name_idt': 'Stephanus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Ariston Phil.': {'tlg_id': 'TLG1192', 'names': {'name_authtab': 'Ariston Phil.', 'name_idt': 'Ariston Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Epicurus Phil.': {'tlg_id': 'TLG0537', 'names': {'name_authtab': 'Epicurus Phil.', 'name_idt': 'Epicurus Phil.'}, 'works': {'Ratae sententiae': ['Section', 'line'], 'Deperditorum librorum reliquiae': ['Fragment', 'section', 'line'], 'Incertae sedis fragmenta': ['Fragment', 'line'], 'Epistularum fragmenta': ['Fragment', 'line'], 'Epistula ad Pythoclem': ['Section', 'line'], 'Epistula ad Herodotum': ['Section', 'line'], 'Epistula ad Menoeceum': ['Section', 'line'], 'Gnomologium Vaticanum Epicureum': ['Fragment', 'line']}}, 'Marcellinus Biogr.': {'tlg_id': 'TLG2585', 'names': {'name_authtab': 'Marcellinus Biogr.', 'name_idt': 'Marcellinus Biogr.'}, 'works': {'Vita Thucydidis': ['Section', 'line']}}, 'Polyclitus Phil.': {'tlg_id': 'TLG1625', 'names': {'name_authtab': 'Polyclitus Phil.', 'name_idt': 'Polyclitus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Marinus Phil.': {'tlg_id': 'TLG4075', 'names': {'name_authtab': 'Marinus Phil.', 'name_idt': 'Marinus Phil.'}, 'works': {'Commentarium in Euclidis data': ['Page', 'line']}}, 'Timesitheus Trag.': {'tlg_id': 'TLG0889', 'names': {'name_authtab': 'Timesitheus Trag.', 'name_idt': 'Timesitheus Trag.'}, 'works': {'Tituli': ['line']}}, 'Aristippus Hist.': {'tlg_id': 'TLG2216', 'names': {'name_authtab': 'Aristippus Hist.', 'name_idt': 'Aristippus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sodamus Eleg.': {'tlg_id': 'TLG1680', 'names': {'name_authtab': 'Sodamus Eleg.', 'name_idt': 'Sodamus Eleg.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Nicephorus Bryennius Hist.': {'tlg_id': 'TLG3088', 'names': {'name_authtab': 'Nicephorus Bryennius Hist.', 'name_idt': 'Nicephorus Bryennius Hist.'}, 'works': {'Historiae': ['Book', 'section', 'line']}}, 'Corinna Lyr.': {'tlg_id': 'TLG0294', 'names': {'name_authtab': 'Corinna Lyr.', 'name_idt': 'Corinna Lyr.'}, 'works': {'Fragmenta': ['Fragment', '\x15column or subfragment', 'line']}}, 'Polyphrasmon Trag.': {'tlg_id': 'TLG1839', 'names': {'name_authtab': 'Polyphrasmon Trag.', 'name_idt': 'Polyphrasmon Trag.'}, 'works': {'Tituli': ['line']}}, 'Diodorus Perieg.': {'tlg_id': 'TLG2265', 'names': {'name_authtab': 'Diodorus Perieg.', 'name_idt': 'Diodorus Perieg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Synesius Alchem.': {'tlg_id': 'TLG4324', 'names': {'name_authtab': 'Synesius Alchem.', 'name_idt': 'Synesius Alchem.'}, 'works': {'q$*SUNESI/OU FILOSO/FOU PRO\\S *DIO/SKORON EI)S TH\\N BI/BLON *DHMOKRI/TOU, W(S E)N SXOLI/OIS &(e cod. Venet. Marc. ': ['Volume', 'page', 'line']}}, 'Epistula Ecclesiarum Apud Lugdunum Et Viennam': {'tlg_id': 'TLG1352', 'names': {'name_authtab': 'Epistula Ecclesiarum Apud Lugdunum Et Viennam', 'name_idt': 'Epistula Ecclesiarum Apud Lugdunum Et Viennam'}, 'works': {'-Epistula ecclesiarum apud Lugdunum et Viennam': ['Chapter', 'section', 'line']}}, 'Dionysius Areopagita Scr. Eccl., Theol.': {'tlg_id': 'TLG2798', 'names': {'name_authtab': 'Pseudo-Dionysius Areopagita Scr. Eccl. et Theol.', 'name_idt': 'Dionysius Areopagita Scr. Eccl., Theol.'}, 'works': {'Epistulae': ['Epistle', 'section', 'line'], 'De divinis nominibus': ['Page', 'line'], 'De mystica theologia': ['Page', 'line'], 'De ecclesiastica hierarchia': ['Page', 'line'], 'De caelesti hierarchia': ['Page', 'line']}}, 'Hermias Phil.': {'tlg_id': 'TLG2317', 'names': {'name_authtab': 'Hermias Phil.', 'name_idt': 'Hermias Phil.'}, 'works': {'In Platonis Phaedrum scholia': ['Page', 'line']}}, 'Agatharchides Geogr.': {'tlg_id': 'TLG0067', 'names': {'name_authtab': 'Agatharchides Geogr.', 'name_idt': 'Agatharchides Geogr.'}, 'works': {'Fragmenta sedis incertae': ['Fragment', 'line'], 'De mari Erythraeo (excerpta)': ['Section', 'line'], 'Testimonia': ['line', 'fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line']}}, 'Axionicus Comic.': {'tlg_id': 'TLG0424', 'names': {'name_authtab': 'Axionicus Comic.', 'name_idt': 'Axionicus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Lepidus Hist.': {'tlg_id': 'TLG1459', 'names': {'name_authtab': 'Lepidus Hist.', 'name_idt': 'Lepidus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Eudromus Phil.': {'tlg_id': 'TLG2399', 'names': {'name_authtab': 'Eudromus Phil.', 'name_idt': 'Eudromus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Nicolaus Comic.': {'tlg_id': 'TLG0481', 'names': {'name_authtab': 'Nicolaus Comic.', 'name_idt': 'Nicolaus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Posidonius Phil.': {'tlg_id': 'TLG1052', 'names': {'name_authtab': 'Posidonius Phil.', 'name_idt': 'Posidonius Phil.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Timocreon Lyr.': {'tlg_id': 'TLG0265', 'names': {'name_authtab': 'Timocreon Lyr.', 'name_idt': 'Timocreon Lyr.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Alcidamas Rhet.': {'tlg_id': 'TLG0610', 'names': {'name_authtab': 'Alcidamas Rhet.', 'name_idt': 'Alcidamas Rhet.'}, 'works': {'Fragmenta': ['Fragment', 'section', 'line']}}, 'Scholia In Euripidem': {'tlg_id': 'TLG5023', 'names': {'name_authtab': 'Scholia In Euripidem', 'name_idt': 'Scholia In Euripidem'}, 'works': {'AGlossae codicis Vaticani 909 in Euripidis Rhesum (scholia vetera)': ['Section', 'line'], '.Glossae in Euripidis Troiades (scholia vetera)': ['Section', 'line'], '6Glossae codicis C in Euripidis Rhesum (scholia vetera)': ['Section', 'line'], '%Scholia in Euripidem (scholia vetera)': ['Vita-argumentum-scholion', 'section', 'line'], '=Scholia in Euripidem (cod. Hierosolymitanus patriarchalis 36)': ['Play', 'verse', 'line']}}, 'Sophilus Comic.': {'tlg_id': 'TLG0502', 'names': {'name_authtab': 'Sophilus Comic.', 'name_idt': 'Sophilus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Archedicus Comic.': {'tlg_id': 'TLG0416', 'names': {'name_authtab': 'Archedicus Comic.', 'name_idt': 'Archedicus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Theodotus Judaeus Epic.': {'tlg_id': 'TLG1720', 'names': {'name_authtab': 'Theodotus Judaeus Epic.', 'name_idt': 'Theodotus Judaeus Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aglaïs Poet. Med.': {'tlg_id': 'TLG0676', 'names': {'name_authtab': 'Aglaïs Poet. Med.', 'name_idt': 'Aglaïs Poet. Med.'}, 'works': {'Fragmentum': ['Fragment', 'line'], ' Adversus suffusiones incipientes': ['line']}}, 'Troilus Soph.': {'tlg_id': 'TLG2127', 'names': {'name_authtab': 'Troilus Soph.', 'name_idt': 'Troilus Soph.'}, 'works': {'%Epigramma (auctore Troilo Grammatico)': ['Book', 'epigram', 'line'], '*Prolegomena in Hermogenis artem rhetoricam': ['Page', 'line']}}, 'Magica': {'tlg_id': 'TLG5002', 'names': {'name_authtab': 'Magica', 'name_idt': 'Magica'}, 'works': {'Papyri magicae': ['Preisendanz number', 'line'], 'Papyri magicae (tabulae)': ['Preisendanz number', 'line'], 'Papyri magicae (ostraca)': ['Preisendanz number', 'line'], '%Papyri magicae (fragmenta Christiana)': ['Preisendanz number', 'line']}}, 'Hellanicus Hist.': {'tlg_id': 'TLG0539', 'names': {'name_authtab': 'Hellanicus Hist.', 'name_idt': 'Hellanicus Hist.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Fragmentum (P. Oxy. 26.2442)': ['FGrH fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Anonymi Paradoxographi': {'tlg_id': 'TLG4037', 'names': {'name_authtab': 'Anonymi Paradoxographi', 'name_idt': 'Anonymi Paradoxographi'}, 'works': {'De Cleobi et Bitone': ['line'], 'De fratribus amicis': ['line'], '%De incredibilibus (excerpta Vaticana)': ['Section', 'line'], 'De amicis': ['line'], 'De transformationibus': ['Page', 'line'], 'Tractatus de mulieribus': ['Section', 'line'], '7$*TI/NES OI)=KOI A)NA/STATOI DIA\\ GUNAI=KAS E)GE/NONTO&': ['line'], 'De impiis': ['Page', 'line']}}, 'Heraclides Phil.': {'tlg_id': 'TLG1954', 'names': {'name_authtab': 'Heraclides Phil.', 'name_idt': 'Heraclides Phil.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Demetrius Trag.': {'tlg_id': 'TLG1849', 'names': {'name_authtab': 'Demetrius Trag.', 'name_idt': 'Demetrius Trag.'}, 'works': {'Titulus (%7 dramatis personae)': ['line']}}, 'Claudius Casilon Gramm.': {'tlg_id': 'TLG4305', 'names': {'name_authtab': 'Claudius Casilon Gramm.', 'name_idt': 'Claudius Casilon Gramm.'}, 'works': {'o$*PARA\\ TOI=S *)ATTIKOI=S R(H/TORSI ZHTOU/MENA &(fragmentum) (e cod. Paris. suppl. gr. 1164 [olim cod. Athon.])': ['Page', 'line']}}, 'Nicophon Comic.': {'tlg_id': 'TLG0483', 'names': {'name_authtab': 'Nicophon Comic.', 'name_idt': 'Nicophon Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Aristombrotus Phil.': {'tlg_id': 'TLG1191', 'names': {'name_authtab': 'Aristombrotus Phil.', 'name_idt': 'Aristombrotus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Platonius Gramm.': {'tlg_id': 'TLG1615', 'names': {'name_authtab': 'Platonius Gramm.', 'name_idt': 'Platonius Gramm.'}, 'works': {'Fragmenta de comoedia Graeca': ['line']}}, 'Ptolemaeus Gramm.': {'tlg_id': 'TLG1643', 'names': {'name_authtab': 'Ptolemaeus Gramm.', 'name_idt': 'Ptolemaeus Gramm.'}, 'works': {'lDe differentia vocabulorum (%6 $*PERI\\ DIAFORA=S LE/CEWN KATA\\ STOIXEI=ON&) [Sp.] (e cod. Ambros. E 26 sup.)': ['', 'Alphabetic letter', 'entry', 'line'], 'jDe differentia vocabulorum (%6 $*PERI\\ DIAFORA=S LE/CEWN&) [Sp.] (e codd. Ottobon. gr. 43 %7 Vat. gr. 197)': ['Page', 'line']}}, 'Theophilus Protospatharius et Stephanus Atheniensis Med.': {'tlg_id': 'TLG0746', 'names': {'name_authtab': 'Theophilus Protospatharius et Stephanus Atheniensis Med.', 'name_idt': 'Theophilus Protospatharius et Stephanus Atheniensis Med.'}, 'works': {'De febrium differentia': ['Page', 'line']}}, 'Polycrates Hist.': {'tlg_id': 'TLG1627', 'names': {'name_authtab': 'Polycrates Hist.', 'name_idt': 'Polycrates Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Thales Phil.': {'tlg_id': 'TLG1705', 'names': {'name_authtab': 'Thales Phil.', 'name_idt': 'Thales Phil.'}, 'works': {'Epistulae': ['Epistle', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Sapphus vel Alcaei Fragmenta': {'tlg_id': 'TLG0387', 'names': {'name_authtab': 'Sapphus vel Alcaei Fragmenta', 'name_idt': 'Sapphus vel Alcaei Fragmenta'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scolia Alphabetica': {'tlg_id': 'TLG0273', 'names': {'name_authtab': 'Scolia Alphabetica', 'name_idt': 'Scolia Alphabetica'}, 'works': {'Fragmenta (P. Oxy. 15.1795)': ['Column', 'fragment', 'line'], 'Fragmenta (P. Oxy. 1.15)': ['Column', 'line']}}, 'Anonymi In Aristotelis Ethica Nicomachea Phil.': {'tlg_id': 'TLG4033', 'names': {'name_authtab': 'Anonymi In Aristotelis Ethica Nicomachea Phil.', 'name_idt': 'Anonymi In Aristotelis Ethica Nicomachea Phil.'}, 'works': {'$In ethica Nicomachea vii commentaria': ['Page', 'line'], 'qIn ethica Nicomachea paraphrasis (pseudepigraphum olim a Constantino Palaeocappa confectum et olim sub auctore He': ['Page', 'line'], '%In ethica Nicomachea ii-v commentaria': ['Page', 'line']}}, 'Epimenides Phil.': {'tlg_id': 'TLG1347', 'names': {'name_authtab': 'Epimenides Phil.', 'name_idt': 'Epimenides Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmentum (P. Oxy. 26.2442)': ['FGrH fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Justinus Martyr': {'tlg_id': 'TLG0646', 'names': {'name_authtab': 'Pseudo-Justinus Martyr', 'name_idt': 'Justinus Martyr'}, 'works': {'Epistula ad Zenam et Serenum': ['Morel page', 'section', 'line'], '%Quaestiones Christianorum ad gentiles': ['Morel page', 'section', 'line'], 'De resurrectione': ['Morel page', 'section', 'line'], ')Quaestiones et responsiones ad orthodoxos': ['Morel page', 'section', 'line'], 'Expositio rectae fidei': ['Morel page', 'section', 'line'], 'De monarchia': ['Morel page', 'section', 'line'], '-Confutatio dogmatum quorundam Aristotelicorum': ['Morel page', 'section', 'line'], 'Oratio ad gentiles': ['Morel page', 'section', 'line'], '$Quaestiones gentilium ad Christianos': ['Morel page', 'section', 'line'], 'Epistula ad Diognetum': ['Morel page', 'section', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Cohortatio ad gentiles': ['Morel page', 'section', 'line']}}, 'Crinis Phil.': {'tlg_id': 'TLG1293', 'names': {'name_authtab': 'Crinis Phil.', 'name_idt': 'Crinis Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scholia in Maximum Confessorem': {'tlg_id': 'TLG5052', 'names': {'name_authtab': 'Scholia in Maximum Confessorem', 'name_idt': 'Scholia in Maximum Confessorem'}, 'works': {'Scholia': ['Section', 'line']}}, 'Androetas Hist.': {'tlg_id': 'TLG2412', 'names': {'name_authtab': 'Androetas Hist.', 'name_idt': 'Androetas Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Serapion Trag.': {'tlg_id': 'TLG0347', 'names': {'name_authtab': 'Serapion Trag.', 'name_idt': 'Serapion Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Anonymi In Aristotelis Artem Rhetoricam Rhet.': {'tlg_id': 'TLG4026', 'names': {'name_authtab': 'Anonymi In Aristotelis Artem Rhetoricam Rhet.', 'name_idt': 'Anonymi In Aristotelis Artem Rhetoricam Rhet.'}, 'works': {'/Fragmentum commentarii in Aristotelis rhetorica': ['Page', 'line'], ',In Aristotelis artem rhetoricam commentarium': ['Page', 'line'], '/Fragmentum paraphrasis in Aristotelis rhetorica': ['Page', 'line']}}, 'Anaximenis Milesii Epistulae': {'tlg_id': 'TLG1121', 'names': {'name_authtab': 'Anaximenis Milesii Epistulae', 'name_idt': 'Anaximenis Milesii Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Demochares Hist., Orat.': {'tlg_id': 'TLG1303', 'names': {'name_authtab': 'Demochares Hist. et Orat.', 'name_idt': 'Demochares Hist., Orat.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Ariston Apol.': {'tlg_id': 'TLG1992', 'names': {'name_authtab': 'Ariston Apol.', 'name_idt': 'Ariston Apol.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Erotica Adespota': {'tlg_id': 'TLG5003', 'names': {'name_authtab': 'Erotica Adespota', 'name_idt': 'Erotica Adespota'}, 'works': {'Apollonius (PSI 2.151)': ['line'], 'Sesonchosis (P. Oxy 15.1826)': ['Recto-verso', 'line'], 'Fragmentum (P. Oxy. 3.416)': ['line'], 'Calligone (PSI 8.981)': ['line'], '>Metiochus et Parthenope (P. Berol. inv. 7927 %7 9588 %7 21179)': ['Column', 'line'], '0Tefnut (P. Lit. Lond. 192 [Brit. Mus. inv. 274])': ['Fragment', 'column', 'line'], ' Apollonius (P. Mil. Vogl. 6.260)': ['line'], '<Fragmentum (fort. auctore Antonio Diogene) (P. Mich. inv. 5)': ['line'], '<Chione (fort. auctore Charitone) (codex Thebanus deperditus)': ['Column', 'line'], 'Theano (P. Oxy 3.417)': ['Column', 'line'], '4Antheia (fort. epitome operis Ephesiaca) (PSI 6.726)': ['Column', 'line'], 'Fragmenta (P. Michael. 4)': ['Column', 'line'], ')Metiochus et Parthenope (O. Bodl. 2.2175)': ['line'], 'Staphylus (PSI 11.1220)': ['Column', 'line'], 'Sesonchosis (P. Oxy. 47.3319)': ['Column', 'line'], 'Sesonchosis (P. Oxy. 27.2466)': ['line'], '.Tinouphis (P. Turner 8 [%6 P. Haun. inv. 400])': ['line'], 'Daulis (P. Berol. inv. 11517)': ['Column', 'line'], 'Fragmentum (P. Ant. 1.18)': ['line'], 'Fragmentum (PSI inv. 516)': ['Column', 'line'], 'IFragmenta (fort. pars operis Chione vel Ninus) (P. Berol. 10535 %7 21234)': ['Papyrus', 'column', 'line'], '+Metiochus et Parthenope (?) (P. Oxy. 3.435)': ['Column', 'line'], 'Fragmentum (P. Mich. inv. 3378)': ['line'], 'Iolaus (P. Oxy. 42.3010)': ['line'], 'Fragmentum (PSI 3.725)': ['line']}}, 'Nicander Epic.': {'tlg_id': 'TLG0022', 'names': {'name_authtab': 'Nicander Epic.', 'name_idt': 'Nicander Epic.'}, 'works': {'Alexipharmaca': ['line'], 'Theriaca': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Hippias Soph.': {'tlg_id': 'TLG1434', 'names': {'name_authtab': 'Hippias Soph.', 'name_idt': 'Hippias Soph.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Cantus Lugubris': {'tlg_id': 'TLG0276', 'names': {'name_authtab': 'Cantus Lugubris', 'name_idt': 'Cantus Lugubris'}, 'works': {'!Fragmentum (Brit. Mus. inv. 2103)': ['line']}}, 'Agaclytus Hist.': {'tlg_id': 'TLG0687', 'names': {'name_authtab': 'Agaclytus Hist.', 'name_idt': 'Agaclytus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Constitutiones Apostolorum': {'tlg_id': 'TLG2894', 'names': {'name_authtab': 'Constitutiones Apostolorum', 'name_idt': 'Constitutiones Apostolorum'}, 'works': {'=Constitutiones apostolorum (fort. compilatore Juliano Ariano)': ['Book', 'chapter', 'line']}}, 'Nostoi': {'tlg_id': 'TLG1541', 'names': {'name_authtab': 'Nostoi', 'name_idt': 'Nostoi'}, 'works': {'Nostoi (fragmenta)': ['Fragment', 'line']}}, 'Alexander Polyhist.': {'tlg_id': 'TLG0697', 'names': {'name_authtab': 'Cornelius Alexander Polyhist.', 'name_idt': 'Alexander Polyhist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Metopus Phil.': {'tlg_id': 'TLG1507', 'names': {'name_authtab': 'Metopus Phil.', 'name_idt': 'Metopus Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Satyrus Hist.': {'tlg_id': 'TLG1661', 'names': {'name_authtab': 'Satyrus Hist.', 'name_idt': 'Satyrus Hist.'}, 'works': {'Fragmentum (P. Oxy. 27.2465)': ['(FGrH fragment+papyrus fragment or column', 'line']}}, 'Demades Orat., Rhet.': {'tlg_id': 'TLG0535', 'names': {'name_authtab': 'Demades Orat. et Rhet.', 'name_idt': 'Demades Orat., Rhet.'}, 'works': {'Fragmentum': ['line', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Testimonium': ['line', 'fragment', 'line']}}, 'Apollonius Comic.': {'tlg_id': 'TLG0394', 'names': {'name_authtab': 'Apollonius Comic.', 'name_idt': 'Apollonius Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Clinias Phil.': {'tlg_id': 'TLG1277', 'names': {'name_authtab': 'Clinias Phil.', 'name_idt': 'Clinias Phil.'}, 'works': {'Fragmenta': ['Page', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Eumedes Comic.': {'tlg_id': 'TLG1361', 'names': {'name_authtab': 'Eumedes Comic.', 'name_idt': 'Eumedes Comic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Atridarum Reditus': {'tlg_id': 'TLG1212', 'names': {'name_authtab': 'Atridarum Reditus', 'name_idt': 'Atridarum Reditus'}, 'works': {'Fragmentum': ['line']}}, 'Phrynichus Trag.': {'tlg_id': 'TLG0303', 'names': {'name_authtab': 'Phrynichus Trag.', 'name_idt': 'Phrynichus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pittacus Lyr.': {'tlg_id': 'TLG0631', 'names': {'name_authtab': 'Pittacus Lyr.', 'name_idt': 'Pittacus Lyr.'}, 'works': {'Fragmentum': ['line'], 'Epigramma': ['Book', 'epigram', 'line']}}, 'Manetho Astrol.': {'tlg_id': 'TLG2583', 'names': {'name_authtab': 'Manetho Astrol.', 'name_idt': 'Manetho Astrol.'}, 'works': {'Apotelesmatica': ['Book', 'line']}}, 'Sotades Comic.': {'tlg_id': 'TLG0505', 'names': {'name_authtab': 'Sotades Comic.', 'name_idt': 'Sotades Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Antiphanes Comic.': {'tlg_id': 'TLG0410', 'names': {'name_authtab': 'Antiphanes Comic.', 'name_idt': 'Antiphanes Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Pyrrhus Hist.': {'tlg_id': 'TLG2160', 'names': {'name_authtab': 'Pyrrhus Hist.', 'name_idt': 'Pyrrhus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hippon Phil.': {'tlg_id': 'TLG1437', 'names': {'name_authtab': 'Hippon Phil.', 'name_idt': 'Hippon Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Oedipodea': {'tlg_id': 'TLG1547', 'names': {'name_authtab': 'Oedipodea', 'name_idt': 'Oedipodea'}, 'works': {'1Oedipodea (fragmentum) (fort. auctore Cinaethone)': ['Fragment', 'line']}}, 'Glaucus Hist.': {'tlg_id': 'TLG4391', 'names': {'name_authtab': 'Glaucus Hist.', 'name_idt': 'Glaucus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Marcellus Theol.': {'tlg_id': 'TLG2041', 'names': {'name_authtab': 'Marcellus Theol.', 'name_idt': 'Marcellus Theol.'}, 'works': {'Fragmenta': ['Fragment', 'line'], '!De incarnatione et contra Arianos': ['Page', 'line'], 'Expositio fidei': ['Chapter', 'section', 'line']}}, 'Hereas Hist.': {'tlg_id': 'TLG2336', 'names': {'name_authtab': 'Hereas Hist.', 'name_idt': 'Hereas Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dioscorides Pedanius Med.': {'tlg_id': 'TLG0656', 'names': {'name_authtab': 'Dioscorides Pedanius Med.', 'name_idt': 'Dioscorides Pedanius Med.'}, 'works': {'': ['De materia medica', 'Book', 'chapter', 'section', 'line'], 'Y$*PERI\\ PAIWNI/AS KAI\\ O(/SA POIEI=N DU/NATAI& (e cod. Matrit. Bibl. Nat. 4616, fol. 159)': ['Volume', 'page', 'line'], '&Euporista vel De simplicibus medicinis': ['Book', 'chapter', 'section', 'line'], 'oDe materia medica (recensiones e codd. Vindob. med. gr. 1 %7 suppl. gr. 28; Laur. 73, 41 %7 73, 16 %7 Vind. 93)': ['Book', 'section', 'line']}}, 'Montanus et Montanistae Theol.': {'tlg_id': 'TLG1771', 'names': {'name_authtab': 'Montanus et Montanistae Theol.', 'name_idt': 'Montanus et Montanistae Theol.'}, 'works': {'Oracula': ['Oracle number', 'line']}}, 'Eudemus Phil.': {'tlg_id': 'TLG1357', 'names': {'name_authtab': 'Eudemus Phil.', 'name_idt': 'Eudemus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cleon Eleg.': {'tlg_id': 'TLG1273', 'names': {'name_authtab': 'Cleon Eleg.', 'name_idt': 'Cleon Eleg.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line']}}, 'Trophonius Rhet., Soph.': {'tlg_id': 'TLG4236', 'names': {'name_authtab': 'Trophonius Rhet. et Soph.', 'name_idt': 'Trophonius Rhet., Soph.'}, 'works': {'Prolegomena in artem rhetoricam': ['Page', 'line']}}, 'Justinianus Imperator Theol.': {'tlg_id': 'TLG2734', 'names': {'name_authtab': 'Flavius Justinianus Imperator Theol.', 'name_idt': 'Justinianus Imperator Theol.'}, 'works': {'Edictum contra Origenem': ['Page', 'line'], '*Edictum de aphthartodocetismo (fragmentum)': ['line'], 'Edictum de asylo': ['line'], 'Epistula dogmatica ad Zoilum': ['Page', 'line'], 'Epistula contra tria capitula': ['Section', 'line'], 'Epistula ad synodum de Origene': ['Page', 'line'], ' Decretum ad abbatem montis Sinai': ['line'], 'Troparium': ['line'], 'Contra monophysitas': ['Section', 'line'], '+Contra Nestorianos (ap. Chronicon paschale)': ['Page', 'line'], '6Constitutio contra Anthimum, Severum, Petrum et Zooram': ['Page', 'line'], 'Edictum rectae fidei': ['Page', 'line'], 'AContra Nestorianos et Acephalos (ap. acta concilii oecumenici vi)': ['line'], 'Novellae': ['Page', 'line'], '7Epistula ad synodum de Theodoro Mopsuesteno et reliquis': ['Page', 'line'], '#Appendix constitutionum dispersarum': ['Page', 'line']}}, 'Aristophon Comic.': {'tlg_id': 'TLG0421', 'names': {'name_authtab': 'Aristophon Comic.', 'name_idt': 'Aristophon Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, '[Ctesiphon] Hist.': {'tlg_id': 'TLG2201', 'names': {'name_authtab': '[Ctesiphon] Hist.', 'name_idt': '[Ctesiphon] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Chionides Comic.': {'tlg_id': 'TLG0431', 'names': {'name_authtab': 'Chionides Comic.', 'name_idt': 'Chionides Comic.'}, 'works': {'Fragmentum': ['Page', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Amasis Epistulae': {'tlg_id': 'TLG0043', 'names': {'name_authtab': 'Amasis Epistulae', 'name_idt': 'Amasis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Sosipater Comic.': {'tlg_id': 'TLG0504', 'names': {'name_authtab': 'Sosipater Comic.', 'name_idt': 'Sosipater Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Chalcocondyles Hist.': {'tlg_id': 'TLG3139', 'names': {'name_authtab': 'Laonicus Chalcocondyles Hist.', 'name_idt': 'Chalcocondyles Hist.'}, 'works': {'Historiae': ['Volume', 'page', 'line']}}, 'Vitae Arati Et Varia De Arato': {'tlg_id': 'TLG4161', 'names': {'name_authtab': 'Vitae Arati Et Varia De Arato', 'name_idt': 'Vitae Arati Et Varia De Arato'}, 'works': {'qVita Arati (%6 Vita 4) (e codd. Matrit. 4691 %7 4629; Vat. gr. 1910; Paris. gr. 2403; Scorial. $*S &III 3; Palat.': ['Page', 'line'], '5Prolegomena in Aratum (e cod. Paris. suppl. gr. 607A)': ['Section', 'line'], 'I$*)EC E(TE/RWN SXOLI/WN EI)SAGWGH/ &(%6 Anonymus I) (e cod. Vat. gr. 191)': ['Section', 'line'], '7Excerptum praefationis in phaenomena (%6 Anonymus II.3)': ['Page', 'line'], '#Excerpta varia de phaenomenis Arati': ['Section', 'line'], '/De zodiaco (olim sub auctore Leontio Mechanico)': ['Page', 'line'], '5Vita Arati (%6 Vita 2) (e codd. Matrit. 4691 %7 4629)': ['Page', 'line'], 'MVita Arati (%6 Vita 1) (olim sub auctore Achille Tatio) (e cod. Vat. gr. 191)': ['Page', 'line'], '$Sphaera (olim sub auctore Empedocle)': ['Section', 'line'], '7Astronomica (in appendice cod. Scorialensis $*S &III 3)': ['Section', 'line'], 'MEpistula ad Julianum quendam data (olim sub auctore Theone Alexandrino Math.)': ['Page', 'line'], 'fProlegomena in Aratum (%6 $*PERI\\ E)CHGH/SEWS&) (olim sub auctore Achille Tatio) (e cod. Vat. gr. 191)': ['Page', 'line'], 'qArati genus (%6 Vita 3) (olim sub auctore Theone Alexandrino Gramm. vel Theone Alexandrino Math.) (e codd. Edimbu': ['Page', 'line'], 'Prooemium in Arati phaenomena': ['Section', 'line']}}, 'Theodosius Gramm.': {'tlg_id': 'TLG2020', 'names': {'name_authtab': 'Theodosius Gramm.', 'name_idt': 'Theodosius Gramm.'}, 'works': {'?$*PERI\\ KLI/SEWS TW=N EI)S <WN> BARUTO/NWN &(e cod. Haun. 1965)': ['Page', 'line'], '%Canones isagogici de flexione nominum': ['Part', 'volume', 'page', 'line'], '&Canones isagogici de flexione verborum': ['Part', 'volume', 'page', 'line'], 'LEpitome catholicae Herodiani [Sp.] (fort. auctore quodam Theodosio Byzantio)': ['Page', 'line'], '=De dialectis [Sp.] (fort. auctore Theodosio alio vel anonymo)': ['Dialect', 'section', 'line'], '?$*PERI\\ KLI/SEWS TW=N EI)S <WN> O)CUTO/NWN &(e cod. Haun. 1965)': ['Page', 'line'], '=$*PERI\\ GRAMMATIKH=S& [Sp.] (fort. auctore Theodoro Prodromo)': ['Page', 'line'], '7$*PERI\\ TO/NOU& [Sp.] (fort. auctore Theodoro Prodromo)': ['Page', 'line']}}, 'Aristophanes Hist.': {'tlg_id': 'TLG1196', 'names': {'name_authtab': 'Aristophanes Hist.', 'name_idt': 'Aristophanes Hist.'}, 'works': {'Fragmentum (P. Oxy. 27.2463)': ['FGrH fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Apollodorus Myth.': {'tlg_id': 'TLG0548', 'names': {'name_authtab': 'Pseudo-Apollodorus Myth.', 'name_idt': 'Apollodorus Myth.'}, 'works': {'#Bibliotheca (sub nomine Apollodori)': ['Chapter', 'section', 'line']}}, 'Hegemon Parodius': {'tlg_id': 'TLG0463', 'names': {'name_authtab': 'Hegemon Parodius', 'name_idt': 'Hegemon Parodius'}, 'works': {'Fragmentum': ['line']}}, 'Hermias Iamb.': {'tlg_id': 'TLG1420', 'names': {'name_authtab': 'Hermias Iamb.', 'name_idt': 'Hermias Iamb.'}, 'works': {'Fragmentum': ['line']}}, 'Polemon Perieg.': {'tlg_id': 'TLG0586', 'names': {'name_authtab': 'Polemon Perieg.', 'name_idt': 'Polemon Perieg.'}, 'works': {'Testimonium et fragmenta': ['FHG fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Dionysius Perieg.': {'tlg_id': 'TLG0084', 'names': {'name_authtab': 'Dionysius Perieg.', 'name_idt': 'Dionysius Perieg.'}, 'works': {' Lithiaca vel lithica (fragmenta)': ['line'], 'Orbis descriptio': ['line'], 'CIxeuticon sive De aucupio (paraphrasis) (olim sub auctore Eutecnio)': ['Chapter', 'section', 'line']}}, 'Acta Et Martyrium Apollonii': {'tlg_id': 'TLG0304', 'names': {'name_authtab': 'Acta Et Martyrium Apollonii', 'name_idt': 'Acta Et Martyrium Apollonii'}, 'works': {'Acta et martyrium Apollonii': ['Section', 'line']}}, 'Ptolemaeus IV Philopator Trag.': {'tlg_id': 'TLG0604', 'names': {'name_authtab': 'Ptolemaeus IV Philopator Trag.', 'name_idt': 'Ptolemaeus IV Philopator Trag.'}, 'works': {'Titulus': ['line']}}, 'Simias Gramm.': {'tlg_id': 'TLG0211', 'names': {'name_authtab': 'Simias Gramm.', 'name_idt': 'Simias Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Philodemus Phil.': {'tlg_id': 'TLG1595', 'names': {'name_authtab': 'Philodemus Phil.', 'name_idt': 'Philodemus Phil.'}, 'works': {'Z$*PERI\\ EU)SEBEI/AS &(pars i) (P. Herc. 229, 247%3`242, 437%3`452, 1077, 1098, 1610, 1788)': ['Fragment', 'line']}}, 'Hegesippus Comic.': {'tlg_id': 'TLG0464', 'names': {'name_authtab': 'Hegesippus Comic.', 'name_idt': 'Hegesippus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Zenobius Sophista Paroemiogr.': {'tlg_id': 'TLG0098', 'names': {'name_authtab': 'Zenobius Sophista Paroemiogr.', 'name_idt': 'Zenobius Sophista Paroemiogr.'}, 'works': {'/Epitome collectionum Lucilli Tarrhaei et Didymi': ['Centuria', 'section', 'line']}}, 'Empedocles Poet. Phil.': {'tlg_id': 'TLG1342', 'names': {'name_authtab': 'Empedocles Poet. Phil.', 'name_idt': 'Empedocles Poet. Phil.'}, 'works': {'Epigramma': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Neophron Trag.': {'tlg_id': 'TLG0307', 'names': {'name_authtab': 'Neophron Trag.', 'name_idt': 'Neophron Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sententiae Pythagoreorum': {'tlg_id': 'TLG1759', 'names': {'name_authtab': 'Sententiae Pythagoreorum', 'name_idt': 'Sententiae Pythagoreorum'}, 'works': {'ASententiae Pythagoreorum (fort. auctore vel collectore Demophilo)': ['Sententia', 'line'], 'Sententiae Pythagoreorum': ['Sententia', 'line']}}, 'Theophylactus Simocatta Epist., Hist.': {'tlg_id': 'TLG3130', 'names': {'name_authtab': 'Theophylactus Simocatta Epist. et Hist.', 'name_idt': 'Theophylactus Simocatta Epist., Hist.'}, 'works': {'Epistulae': ['Epistle', 'line'], 'De vitae termino': ['Section', 'line'], 'Historiae': ['\x13Book-dialogue-index', 'chapter', 'section', 'line'], 'Quaestiones physicae': ['Page', 'line']}}, 'Theognis Hist.': {'tlg_id': 'TLG2367', 'names': {'name_authtab': 'Theognis Hist.', 'name_idt': 'Theognis Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Xenion Hist.': {'tlg_id': 'TLG1753', 'names': {'name_authtab': 'Xenion Hist.', 'name_idt': 'Xenion Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Asclepiades Gramm., Hist.': {'tlg_id': 'TLG1199', 'names': {'name_authtab': 'Asclepiades Gramm. et Hist.', 'name_idt': 'Asclepiades Gramm., Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Lycophron Trag.': {'tlg_id': 'TLG0341', 'names': {'name_authtab': 'Lycophron Trag.', 'name_idt': 'Lycophron Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Alexandra': ['line']}}, 'Priscus Epic.': {'tlg_id': 'TLG2641', 'names': {'name_authtab': 'Priscus Epic.', 'name_idt': 'Priscus Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, '[Menippus] Comic.': {'tlg_id': 'TLG1787', 'names': {'name_authtab': '[Menippus] Comic.', 'name_idt': '[Menippus] Comic.'}, 'works': {'Tituli': ['Page', 'line']}}, 'Marcianus Geogr.': {'tlg_id': 'TLG4003', 'names': {'name_authtab': 'Marcianus Geogr.', 'name_idt': 'Marcianus Geogr.'}, 'works': {'(Artemidori geographia (epitome Marciani)': ['Fragment', 'line'], '1Menippi periplus maris interni (epitome Marciani)': ['Section', 'line'], 'Periplus maris exteri': ['Book', 'section', 'line']}}, 'Ammonius Gramm.': {'tlg_id': 'TLG0708', 'names': {'name_authtab': 'Ammonius Gramm.', 'name_idt': 'Ammonius Gramm.'}, 'works': {'jDe impropriis (%6 $*PERI\\ A)KUROLOGI/AS&) (quoque sub nominibus Anonymi et Herennii Philonis et Herodiani)': ['Section', 'line', '', '©³', ''], 'qDe adfinium vocabulorum differentia (%6 $*PERI\\ O(MOI/WN KAI\\ DIAFO/RWN LE/CEWN&) (fort. epitome operis sub aucto': ['Lexical entry', 'line', '']}}, 'Georgius Monachus Chronogr.': {'tlg_id': 'TLG3043', 'names': {'name_authtab': 'Georgius Monachus Chronogr.', 'name_idt': 'Georgius Monachus Chronogr.'}, 'works': {'Chronicon (lib. 1-4)': ['Page', 'line'], '/Chronicon breve (lib. 1-6) (redactio recentior)': ['Volume', 'page', 'line']}}, 'Proclus Phil.': {'tlg_id': 'TLG4036', 'names': {'name_authtab': 'Proclus Phil.', 'name_idt': 'Proclus Phil.'}, 'works': {'1In primum Euclidis elementorum librum commentarii': ['Page', 'line'], 'BDe providentia et fato et eo quod in nobis ad Theodorum mechanicum': ['Section', 'line'], 'De sacrificio et magia': ['Page', 'line'], '*De decem dubitationibus circa providentiam': ['Section', 'line'], ' In Platonis Cratylum commentaria': ['Section', 'line'], 'Chrestomathia [Dub.] (epitome)': ['line'], ' Eclogae de philosophia Chaldaica': ['Fragment', 'line'], 'Institutio theologica': ['Section', 'line'], 'Hymnorum fragmenta': ['Fragment', 'line'], 'Theologia Platonica (lib. 1-5)': ['Volume', 'page', 'line'], 'Institutio physica': ['Book', 'section', 'line'], 'De malorum subsistentia': ['Section', 'line'], '%Excerpta e Platonica Procli theologia': ['Page', 'line'], 'Epigramma': ['Book', 'epigram', 'line'], 'In Platonis Parmenidem': ['Page', 'line'], 'In Platonis Timaeum commentaria': ['Volume', 'page', 'line'], 'Hymni 1-7': ['Hymn', 'line'], '%Hypotyposis astronomicarum positionum': ['Chapter', 'section', 'line'], 'Epigrammata': ['Epigram', 'line'], 'In Platonis Alcibiadem i': ['Section', 'line'], '$In Platonis rem publicam commentarii': ['Volume', 'page', 'line']}}, 'Praxiteles Epigr.': {'tlg_id': 'TLG1633', 'names': {'name_authtab': 'Praxiteles Epigr.', 'name_idt': 'Praxiteles Epigr.'}, 'works': {'Epigramma': ['Epigram', 'line']}}, 'Satyrus Biogr.': {'tlg_id': 'TLG0608', 'names': {'name_authtab': 'Satyrus Biogr.', 'name_idt': 'Satyrus Biogr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Vita Euripidis (P. Oxy. 9.1176)': ['Fragment', 'line']}}, 'Ecphantides Comic.': {'tlg_id': 'TLG0449', 'names': {'name_authtab': 'Ecphantides Comic.', 'name_idt': 'Ecphantides Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Nicias Hist.': {'tlg_id': 'TLG2217', 'names': {'name_authtab': 'Nicias Hist.', 'name_idt': 'Nicias Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Speusippus Phil.': {'tlg_id': 'TLG1692', 'names': {'name_authtab': 'Speusippus Phil.', 'name_idt': 'Speusippus Phil.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Epistulae [Sp.]': ['Epistle', 'section', 'line'], '!Epistula ad Philippum regem [Sp.]': ['Page', 'line']}}, 'Ariphron Lyr.': {'tlg_id': 'TLG0378', 'names': {'name_authtab': 'Ariphron Lyr.', 'name_idt': 'Ariphron Lyr.'}, 'works': {'Fragmentum': ['line']}}, 'Metrodorus Major Phil.': {'tlg_id': 'TLG1811', 'names': {'name_authtab': 'Metrodorus Major Phil.', 'name_idt': 'Metrodorus Major Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Antiochus Hist.': {'tlg_id': 'TLG1145', 'names': {'name_authtab': 'Antiochus Hist.', 'name_idt': 'Antiochus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Simylus Eleg.': {'tlg_id': 'TLG1675', 'names': {'name_authtab': 'Simylus Eleg.', 'name_idt': 'Simylus Eleg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Oracula Tiburtina': {'tlg_id': 'TLG2960', 'names': {'name_authtab': 'Oracula Tiburtina', 'name_idt': 'Oracula Tiburtina'}, 'works': {'Prophetia': ['line']}}, 'Carmina Popularia (PMG)': {'tlg_id': 'TLG0295', 'names': {'name_authtab': 'Carmina Popularia (PMG)', 'name_idt': 'Carmina Popularia (PMG)'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Lasus Lyr.': {'tlg_id': 'TLG0366', 'names': {'name_authtab': 'Lasus Lyr.', 'name_idt': 'Lasus Lyr.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Dionysius Chalcus Eleg.': {'tlg_id': 'TLG0246', 'names': {'name_authtab': 'Dionysius Chalcus Eleg.', 'name_idt': 'Dionysius Chalcus Eleg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hippolytus Scr. Eccl.': {'tlg_id': 'TLG2115', 'names': {'name_authtab': 'Hippolytus Scr. Eccl.', 'name_idt': 'Hippolytus Scr. Eccl.'}, 'works': {'': ['In canticum Mosis', 'Fragment', 'line', '', '', '4', ''], 'Fragmentum in Danielem 1.18.3': ['line'], 'De universo': ['line'], '&Chronicon (fragmentum) (P. Oxy. 6.870)': ['\x12Verso-recto+column', 'line'], '"Fragmentum in Matthaeum 6.11 [Sp.]': ['Fragment', 'line'], '!Contra Beronem et Heliconem [Sp.]': ['Page', 'line'], ',Fragmenta in Proverbia (e cod. Coislin. 193)': ['Fragment', 'line'], '/De benedictione Balaam (fragmenta ap. Irenaeum)': ['Fragment', 'line'], 'Canon paschalis': ['line'], '(Fragmentum e traditione apostolica [Sp.]': ['line'], '!De benedictione Mosis (fragmenta)': ['Fragment', 'line'], 'EDe resurrectione ad Mammaeam imperatricem (cod. Achrid. Mus. nat. 86)': ['line'], 'PDe resurrectione ad Mammaeam imperatricem (fragmenta ap. Theodoretum, Eranistes)': ['Fragment', 'line'], ' Fragmentum in Ecclesiasten [Sp.]': ['Fragment', 'line'], 'QFragmentum de resurrectione et incorruptione (ap. Anastasium Sinai+tam, Viae dux)': ['line'], 'In principium Isaiae': ['Fragment', 'line'], 'De theophania [Dub.]': ['Section', 'line'], 'Fragmenta in Proverbia [Dub.]': ['Fragment', 'line'], '4Fragmenta in Proverbia (e Pseudo-Anastasio Sinai+ta)': ['Fragment', 'line'], 'Commentarium in Danielem': ['Book', 'chapter', 'section', 'line'], 'Fragmenta in Proverbia [Sp.]': ['Fragment', 'line'], '&Narratio de virgine Corinthiaca [Dub.]': ['Page', 'line'], '-In Ecclesiasten (fragmentum e cod. Vat. 1694)': ['Fragment', 'line'], 'Traditio apostolica': ['Page', 'line'], '8Fragmentum in Genesim 4.23 (e cod. Ath. Bibl. Nat. 2492)': ['Page', 'line'], 'Ex interpretatione Ruth': ['line', 'R', ''], 'Fragmenta in Genesim': ['Fragment', 'line'], 'Fragmenta in Proverbia': ['Fragment', 'section', 'line'], '.De benedictione Balaam (fragmentum ex Leontio)': ['line', '', '', '', 'K', ''], 'BDe universo (fragmentum ap. Joannem Philoponum, De opificio mundi)': ['Fragment', 'line'], 'In Canticum canticorum': ['line'], 'Fragmenta in Psalmos': ['Section', 'line'], 'Fragmentum in Helcanam et Annam': ['line'], '7In evangelium Joannis et de resurrectione Lazari [Dub.]': ['Page', 'line'], 'Fragmentum in Ezechielem': ['Volume', 'page', 'line'], ',Syntagma (fragmentum ap. Chronicon paschale)': ['Volume', 'page', 'line'], 'Fragmenta in Psalmos [Sp.]': ['Fragment', 'line'], '$De duobus latronibus (Joh. 19.33-34)': ['Fragment', 'line'], '#De benedictionibus Isaaci et Jacobi': ['Page', 'line'], '.Refutatio omnium haeresium (%6 Philosophumena)': ['Book', 'chapter', 'section', 'line'], '!Fragmentum de engastrimytho [Sp.]': ['line'], 'Fragmenta varia [Dub.]': ['Fragment', 'line'], '#Demonstratio adversus Judaeos [Sp.]': ['Page', 'line'], 'In Helcanam et Annam': ['Fragment', 'line', '', '', 'D\x12'], 'Chronicon': ['Section', 'line'], 'De consummatione mundi [Sp.]': ['Section', 'line'], '5Fragmentum de distributione talentorum (Matth. 25.24)': ['Fragment', 'line'], 'Contra haeresin Noeti': ['Chapter', 'section', 'line'], 'De antichristo': ['Section', 'line'], 'Fragmenta in Genesim [Sp.]': ['Fragment', 'line', '¶'], ',Demonstratio temporum paschatis (in catenis)': ['Fragment', 'line'], 'Commentarium in Danielem 1.18': ['Section', 'line'], 'De universo (fragmenta)': ['Fragment', 'line'], '$In Canticum canticorum (paraphrasis)': ['Chapter', 'section', 'line']}}, 'Evagrius Scholasticus Scr. Eccl.': {'tlg_id': 'TLG2733', 'names': {'name_authtab': 'Evagrius Scholasticus Scr. Eccl.', 'name_idt': 'Evagrius Scholasticus Scr. Eccl.'}, 'works': {'Historia ecclesiastica': ['Page', 'line']}}, 'Polemon': {'tlg_id': 'TLG2233', 'names': {'name_authtab': 'Pseudo-Polemon', 'name_idt': 'Polemon'}, 'works': {'Physiognomonica': ['Section', 'line']}}, 'Callimachus Philol.': {'tlg_id': 'TLG0533', 'names': {'name_authtab': 'Callimachus Philol.', 'name_idt': 'Callimachus Philol.'}, 'works': {'In Cererem (hymn. 6)': ['line'], ' Carmina epica et elegiaca minora': ['Fragment', 'line'], 'Fragmenta incertae sedis': ['Fragment', 'line'], 'Aetia': ['Fragment', 'line'], '5Fragmenta incerti auctoris (fort. auctore Callimacho)': ['Fragment', 'line'], 'Hecala': ['Fragment', 'line', '\x8eù\x12'], 'In Jovem (hymn. 1)': ['line'], 'Lyrica': ['Fragment', 'line', ''], 'Iambi': ['Fragment', 'line'], 'In Apollinem (hymn. 2)': ['line'], 'Fragmenta grammatica': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line'], 'Epigrammatum fragmenta': ['Fragment', 'line'], 'In Delum (hymn. 4)': ['line'], 'In Dianam (hymn. 3)': ['line'], 'In lavacrum Palladis (hymn. 5)': ['line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Euclides Comic. vel Iamb.': {'tlg_id': 'TLG0250', 'names': {'name_authtab': 'Euclides Comic. vel Iamb.', 'name_idt': 'Euclides Comic. vel Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Suetonius Tranquillus Gramm., Hist.': {'tlg_id': 'TLG1760', 'names': {'name_authtab': 'Gaius Suetonius Tranquillus Gramm. et Hist.', 'name_idt': 'Suetonius Tranquillus Gramm., Hist.'}, 'works': {"%$*PERI\\ TW=N PAR' (/*ELLHSI PAIDIW=N&": ['Section', 'line'], ')$*PERI\\ BLASFHMIW=N KAI\\ PO/QEN E(KA/STH&': ['Section', 'line']}}, 'Castorion Lyr.': {'tlg_id': 'TLG0382', 'names': {'name_authtab': 'Castorion Lyr.', 'name_idt': 'Castorion Lyr.'}, 'works': {'Fragmentum': ['line'], 'Fragmenta': ['Fragment', 'line']}}, 'Hipparchus Parodius': {'tlg_id': 'TLG2626', 'names': {'name_authtab': 'Hipparchus Parodius', 'name_idt': 'Hipparchus Parodius'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Evangelium Ebionitum': {'tlg_id': 'TLG1368', 'names': {'name_authtab': 'Evangelium Ebionitum', 'name_idt': 'Evangelium Ebionitum'}, 'works': {'Evangelium Ebionitum': ['Fragment', 'line']}}, 'Apollodorus Trag.': {'tlg_id': 'TLG0700', 'names': {'name_authtab': 'Apollodorus Trag.', 'name_idt': 'Apollodorus Trag.'}, 'works': {'Tituli': ['line']}}, 'Attalus Astron., Math.': {'tlg_id': 'TLG1207', 'names': {'name_authtab': 'Attalus Astron. et Math.', 'name_idt': 'Attalus Astron., Math.'}, 'works': {'Fragmenta Aratea': ['Fragment', 'line']}}, 'Anonymus Dialogus Cum Judaeis': {'tlg_id': 'TLG3186', 'names': {'name_authtab': 'Anonymus Dialogus Cum Judaeis', 'name_idt': 'Anonymus Dialogus Cum Judaeis'}, 'works': {'WAnonymus dialogus cum Judaeis (e cod. Vatoped. 236) (olim sub auctore Joanne Damasceno)': ['Chapter', 'line']}}, 'Biton Mech.': {'tlg_id': 'TLG1226', 'names': {'name_authtab': 'Biton Mech.', 'name_idt': 'Biton Mech.'}, 'works': {'6$*KATASKEUAI\\ POLEMIKW=N O)RGA/NWN KAI\\ KATAPALTIKW=N&': ['Section', 'line']}}, 'Philiscus Rhet.': {'tlg_id': 'TLG0257', 'names': {'name_authtab': 'Philiscus Rhet.', 'name_idt': 'Philiscus Rhet.'}, 'works': {'Fragmentum': ['line']}}, 'Hedyle Epigr.': {'tlg_id': 'TLG0197', 'names': {'name_authtab': 'Hedyle Epigr.', 'name_idt': 'Hedyle Epigr.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Lycon Phil.': {'tlg_id': 'TLG2246', 'names': {'name_authtab': 'Lycon Phil.', 'name_idt': 'Lycon Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Concilia Oecumenica (ACO)': {'tlg_id': 'TLG5000', 'names': {'name_authtab': 'Concilia Oecumenica (ACO)', 'name_idt': 'Concilia Oecumenica (ACO)'}, 'works': {'7Synodus Constantinopolitana et Hierosolymitana anno 536': ['Tome', 'page', 'line'], '+Concilium universale Chalcedonense anno 451': ['\x10Tome+volume+part', 'page', 'line'], "'Concilium universale Ephesenum anno 431": ['\x10Tome+volume+part', 'page', 'line']}}, 'Amphicrates Rhet.': {'tlg_id': 'TLG2699', 'names': {'name_authtab': 'Amphicrates Rhet.', 'name_idt': 'Amphicrates Rhet.'}, 'works': {'Fragmenta': ['Fragment', ' line']}}, 'Antyllus Med.': {'tlg_id': 'TLG0749', 'names': {'name_authtab': 'Antyllus Med.', 'name_idt': 'Antyllus Med.'}, 'works': {'F$*)EK TOU= PERI\\ KLUSMW=N O(/TI DIA\\ TREI=S AI)TI/AS PARALAMBA/NONTAI&': ['Page', 'line']}}, 'Melanippides Lyr.': {'tlg_id': 'TLG0373', 'names': {'name_authtab': 'Melanippides Lyr.', 'name_idt': 'Melanippides Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sostratus Poeta': {'tlg_id': 'TLG2694', 'names': {'name_authtab': 'Sostratus Poeta', 'name_idt': 'Sostratus Poeta'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Euanthes Epic.': {'tlg_id': 'TLG2623', 'names': {'name_authtab': 'Euanthes Epic.', 'name_idt': 'Euanthes Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Socrates Phil.': {'tlg_id': 'TLG0262', 'names': {'name_authtab': 'Socrates Phil.', 'name_idt': 'Socrates Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Eusebius Scr. Eccl., Theol.': {'tlg_id': 'TLG2018', 'names': {'name_authtab': 'Eusebius Scr. Eccl. et Theol.', 'name_idt': 'Eusebius Scr. Eccl., Theol.'}, 'works': {'De solemnitate paschali': ['Volume', 'page', 'line'], ':Generalis elementaria introductio (%6 Eclogae propheticae)': ['Page', 'line'], 'Commentarius in Isaiam': ['Book', 'section', 'line'], '-Generalis elementaria introductio (fragmenta)': ['Fragment', 'line'], 'Fragmenta in proverbia': ['Volume', 'page', 'line'], 'Epistula ad Caesarienses': ['Section', 'line'], ' Epistula ad Constantiam Augustam': ['Volume', 'page', 'line'], '7Passio sanctorum decem martyrum Aegyptiorum (fragmenta)': ['Volume', 'page', 'line'], 'Commentaria in Psalmos': ['Volume', 'page', 'line'], 'Onomasticon': ['Page', 'line'], 'Demonstratio evangelica': ['Book', 'chapter', 'section', 'line'], 'Fragmenta in Hebraeos': ['Volume', 'page', 'line'], 'De theophania (fragmenta)': ['Fragment', 'line'], ',Demonstratio evangelica (fragmenta libri xv)': ['Fragment', 'line'], '2Constantini imperatoris oratio ad coetum sanctorum': ['Chapter', 'section', 'line'], ',De martyribus Palaestinae (recensio brevior)': ['Chapter', 'section', 'line'], 'Contra Marcellum': ['Book', 'chapter', 'section', 'line'], 'Epistula ad Euphrationem': ['Section', 'line'], ' De vitis prophetarum (fragmenta)': ['Volume', 'page', 'line'], '.De martyribus Palaestinae (recensio prolixior)': ['Chapter', 'section', 'line'], '7Epistula ad Carpianum ad canones evangeliorum praemissa': ['line'], ',Supplementa minora ad quaestiones ad Marinum': ['Volume', 'page', 'line'], 'Contra Hieroclem': ['Page', 'line'], 'Fragmenta in Lucam': ['Volume', 'page', 'line'], 'Epistula ad Flacillum': ['line'], 'Praeparatio evangelica': ['Book', 'chapter', 'section', 'line'], '"Quaestiones evangelicae ad Marinum': ['Volume', 'page', 'line'], "'Supplementa ad quaestiones ad Stephanum": ['Volume', 'page', 'line'], '%Supplementa ad quaestiones ad Marinum': ['Volume', 'page', 'line'], 'Historia ecclesiastica': ['Book', 'chapter', 'section', 'line'], '$Quaestiones evangelicae ad Stephanum': ['Volume', 'page', 'line'], '#Epistula ad Alexandrum Alexandrinum': ['Section', 'line'], ',Antiquorum martyriorum collectio (fragmenta)': ['Volume', 'page', 'line'], '%De mensuris et ponderibus (fragmenta)': ['Section', 'line'], 'De laudibus Constantini': ['Chapter', 'section', 'line'], '#In cantica canticorum interpretatio': ['Volume', 'page', 'line'], 'Fragmenta in Danielem': ['Volume', 'page', 'line'], 'De ecclesiastica theologia': ['Book', 'chapter', 'section', 'line'], 'Vita Constantini': ['Book', 'chapter', 'section', 'line']}}, 'Hippocrates et Corpus Hippocraticum Med.': {'tlg_id': 'TLG0627', 'names': {'name_authtab': 'Hippocrates Med. et Corpus Hippocraticum', 'name_idt': 'Hippocrates et Corpus Hippocraticum Med.'}, 'works': {'': ['De judicationibus', 'Section', 'line'], 'De visu': ['Section', 'line'], 'De articulis': ['Section', 'line'], 'De natura muliebri': ['Section', 'line'], 'De morbis i-iii': ['Book', 'section', 'line'], 'De ae+re aquis et locis': ['Section', 'line'], 'De carnibus': ['Section', 'line'], 'Lex': ['Section', 'line'], 'De affectionibus interioribus': ['Section', 'line'], 'Prognosticon': ['Section', 'line', '´'], 'Praeceptiones': ['Section', 'line'], 'De dentitione': ['Section', 'line'], 'Aphorismi': ['Chapter', 'section', 'line'], 'De octimestri partu': ['Section', 'line'], 'De flatibus': ['Section', 'line'], 'De diaeta in morbis acutis': ['Section', 'line', '\x8e\x8c\x92º', '_\x17'], 'De medico': ['Section', 'line'], 'De mulierum affectibus i-iii': ['Section', 'line'], 'De corde': ['Section', 'line'], '$De morbis popularibus (%6 Epidemiae)': ['Book', 'chapter', 'section', 'line'], 'De virginum morbis': ['Section', 'line'], 'Epistulae': ['Epistle', 'line'], 'Prorrheticon': ['Book', 'section', 'line'], 'Coa praesagia': ['Section', 'line'], 'De alimento': ['Section', 'line'], 'De humoribus': ['Section', 'line'], 'De exsectione foetus': ['Section', 'line'], '(De semine, de natura pueri, de morbis iv': ['Section', 'line'], 'De affectionibus': ['Section', 'line'], 'Vectiarius': ['Section', 'line'], 'De ulceribus': ['Section', 'line'], 'De morbo sacro': ['Section', 'line'], 'De diaeta i-iv': ['Section', 'line'], 'De capitis vulneribus': ['Section', 'line'], 'De septimestri partu [Sp.]': ['Page', 'line'], 'De diaeta acutorum [Sp.]': ['Section', 'line'], 'Jusjurandum metricum': ['line'], 'De fistulis': ['Section', 'line'], '"De septimanis (%6 De hebdomadibus)': ['Section', 'line'], 'De officina medici': ['Section', 'line'], 'De arte': ['Section', 'line'], 'De anatome': ['Section', 'line'], 'De purgantibus (%6 De remediis)': ['line'], 'De prisca medicina': ['Section', 'line'], 'De septimestri partu': ['Section', 'line'], 'De haemorrhoidibus': ['Section', 'line'], 'De diebus judicatoriis': ['Section', 'line'], 'De locis in homine': ['Section', 'line'], 'De ossium natura': ['Section', 'line'], 'De glandulis': ['Section', 'line'], 'De fracturis': ['Section', 'line'], 'De humidorum usu': ['Section', 'line'], 'Jusjurandum': ['line']}}, 'Metrodorus Phil.': {'tlg_id': 'TLG1508', 'names': {'name_authtab': 'Metrodorus Phil.', 'name_idt': 'Metrodorus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Myrtilus Comic.': {'tlg_id': 'TLG0477', 'names': {'name_authtab': 'Myrtilus Comic.', 'name_idt': 'Myrtilus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Amyntas Epigr.': {'tlg_id': 'TLG2649', 'names': {'name_authtab': 'Amyntas Epigr.', 'name_idt': 'Amyntas Epigr.'}, 'works': {'-Fragmenta (P. Oxy. 4.662 %6 P. Lit. Lond. 61)': ['Fragment', 'line']}}, 'Melanthius Trag.': {'tlg_id': 'TLG0344', 'names': {'name_authtab': 'Melanthius Trag.', 'name_idt': 'Melanthius Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Aratus Astron., Epic.': {'tlg_id': 'TLG0653', 'names': {'name_authtab': 'Aratus Astron. et Epic.', 'name_idt': 'Aratus Astron., Epic.'}, 'works': {'Phaenomena': ['Book', 'line'], 'Fragmenta et tituli': ['Fragment', 'line'], '!Fragmentum (e cod. Vat. gr. 2130)': ['Volume', 'page', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], ' Fragmentum (e cod. Matrit. 4616)': ['Volume', 'page', 'line']}}, 'Scylax Perieg.': {'tlg_id': 'TLG0065', 'names': {'name_authtab': 'Scylax Perieg.', 'name_idt': 'Scylax Perieg.'}, 'works': {'': ['Periplus Scylacis', 'Section', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Philocles Comic.': {'tlg_id': 'TLG1794', 'names': {'name_authtab': 'Philocles Comic.', 'name_idt': 'Philocles Comic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Euripidis Epistulae': {'tlg_id': 'TLG1367', 'names': {'name_authtab': 'Euripidis Epistulae', 'name_idt': 'Euripidis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Moeris Attic.': {'tlg_id': 'TLG1515', 'names': {'name_authtab': 'Moeris Attic.', 'name_idt': 'Moeris Attic.'}, 'works': {'Lexicon Atticum': ['Page', 'line']}}, 'Callicratidas Phil.': {'tlg_id': 'TLG1237', 'names': {'name_authtab': 'Callicratidas Phil.', 'name_idt': 'Callicratidas Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Demosthenes Orat.': {'tlg_id': 'TLG0014', 'names': {'name_authtab': 'Demosthenes Orat.', 'name_idt': 'Demosthenes Orat.'}, 'works': {'': ['Contra Phormionem', 'Section', 'line'], 'Eroticus [Sp.]': ['Section', 'line'], 'In Dionysodorum [Sp.]': ['Section', 'line'], 'In Evergum et Mnesibulum [Sp.]': ['Section', 'line'], 'In Theocrinem [Sp.]': ['Section', 'line'], 'Contra Nicostratum': ['Section', 'line'], 'Epistulae': ['Epistle', 'section', 'line'], 'Adversus Androtionem': ['Section', 'line'], 'De Chersoneso': ['Section', 'line'], 'In Stephanum 2 [Sp.]': ['Section', 'line'], 'Olynthiaca 3': ['Section', 'line'], 'De pace': ['Section', 'line'], 'Fragmenta': ['Oration', 'fragment', 'line'], 'Contra Pantaenetum': ['Section', 'line'], '!Contra Nausimachum et Xenopeithea': ['Section', 'line'], 'In Aristogitonem 2': ['Section', 'line'], 'De corona': ['Section', 'line'], 'Contra Aphobum': ['Section', 'line'], 'Contra Calliclem': ['Section', 'line'], 'In Stephanum 1': ['Section', 'line'], '1$*PERI\\ TW=N PRO\\S *)ALE/CANDRON SUNQHKW=N& [Sp.]': ['Section', 'line'], 'In Aphobum 2': ['Section', 'line'], 'Epitaphius': ['Section', 'line'], 'In Olympiodorum [Sp.]': ['Section', 'line'], 'Contra Boeotum 1': ['Section', 'line'], 'De Rhodiorum libertate': ['Section', 'line'], 'Pro Megalopolitanis': ['Section', 'line'], 'Contra Polyclem [Sp.]': ['Section', 'line'], 'De corona trierarchiae': ['Section', 'line'], 'Contra Phaenippum [Sp.]': ['Section', 'line'], 'In Cononem': ['Section', 'line'], 'In Midiam': ['Section', 'line'], 'Pro Phormione': ['Section', 'line'], 'Philippica 4 [Sp.]': ['Section', 'line'], 'Contra Timotheum [Sp.]': ['Section', 'line'], 'De falsa legatione': ['Section', 'line'], 'Contra Lacritum [Sp.]': ['Section', 'line'], 'Philippica 3': ['Section', 'line'], 'In Timocratem': ['Section', 'line'], 'Contra Callippum [Sp.]': ['Section', 'line'], 'Contra Macartatum [Sp.]': ['Section', 'line'], 'In epistulam Philippi [Sp.]': ['Section', 'line'], 'De Halonneso': ['Section', 'line'], 'Exordia': ['Exordium', 'section', 'line'], '$*PERI\\ TW=N SUMMORIW=N&': ['Section', 'line'], 'Contra Eubulidem': ['Section', 'line'], 'Philippica 1': ['Section', 'line'], 'Contra Spudiam': ['Section', 'line'], 'In Aristogitonem 1': ['Section', 'line'], 'Contra Boeotum 2 [Sp.]': ['Section', 'line'], 'In Neaeram [Sp.]': ['Section', 'line'], 'Contra Leocharem [Sp.]': ['Section', 'line'], '$*PERI\\ SUNTA/CEWS& [Sp.]': ['Section', 'line'], 'In Aphobum 1': ['Section', 'line'], 'Olynthiaca 2': ['Section', 'line'], '[Philippi] epistula': ['Section', 'line'], 'Philippica 2': ['Section', 'line'], 'In Aristocratem': ['Section', 'line'], 'Olynthiaca 1': ['Section', 'line'], 'Contra Apatourium [Sp.]': ['Section', 'line']}}, 'Hipparchus Comic.': {'tlg_id': 'TLG0468', 'names': {'name_authtab': 'Hipparchus Comic.', 'name_idt': 'Hipparchus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Acta Petri': {'tlg_id': 'TLG0389', 'names': {'name_authtab': 'Acta Petri', 'name_idt': 'Acta Petri'}, 'works': {'Martyrium Petri': ['Section', 'line']}}, 'Novum Testamentum': {'tlg_id': 'TLG0031', 'names': {'name_authtab': 'Novum Testamentum, New Testament', 'name_idt': 'Novum Testamentum'}, 'works': {'': ['Epistula Petri ii', 'Chapter', 'section', 'line'], 'Epistula Pauli ad Colossenses': ['Chapter', 'section', 'line'], 'Epistula Petri i': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Ephesios': ['Chapter', 'section', 'line'], 'Apocalypsis Joannis': ['Chapter', 'section', 'line'], 'Acta apostolorum': ['Chapter', 'section', 'line'], '$Epistula Pauli ad Thessalonicenses i': ['Chapter', 'section', 'line'], 'Evangelium secundum Joannem': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Corinthios ii': ['Chapter', 'section', 'line'], 'Epistula Jacobi': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Timotheum ii': ['Chapter', 'section', 'line'], 'Evangelium secundum Lucam': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Galatas': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Timotheum i': ['Chapter', 'section', 'line'], 'Epistula Joannis ii': ['Section', 'line'], '%Epistula Pauli ad Thessalonicenses ii': ['Chapter', 'section', 'line'], 'Epistula Joannis iii': ['Section', 'line'], 'Epistula Pauli ad Romanos': ['Chapter', 'section', 'line'], 'Epistula Joannis i': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Titum': ['Chapter', 'section', 'line'], 'Epistula Juda': ['Section', 'line'], 'Epistula Pauli ad Corinthios i': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Philemonem': ['Section', 'line'], 'Evangelium secundum Matthaeum': ['Chapter', 'section', 'line', ''], 'Evangelium secundum Marcum': ['Chapter', 'section', 'line', '¤\x92\x8eÈ', '³'], 'Epistula Pauli ad Philippenses': ['Chapter', 'section', 'line'], 'Epistula Pauli ad Hebraeos': ['Chapter', 'section', 'line']}}, 'Zenonis Epistula': {'tlg_id': 'TLG0125', 'names': {'name_authtab': 'Zenonis Epistula', 'name_idt': 'Zenonis Epistula'}, 'works': {'Epistula': ['line']}}, 'Minyas': {'tlg_id': 'TLG1512', 'names': {'name_authtab': 'Minyas', 'name_idt': 'Minyas'}, 'works': {'Minyas (fragmenta)': ['Fragment', 'line']}}, 'Diotogenes Phil.': {'tlg_id': 'TLG1332', 'names': {'name_authtab': 'Diotogenes Phil.', 'name_idt': 'Diotogenes Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Autesion Hist.': {'tlg_id': 'TLG2205', 'names': {'name_authtab': 'Autesion Hist.', 'name_idt': 'Autesion Hist.'}, 'works': {'Fragmenta': ['FGrH fragment', 'line']}}, 'Thallus Hist.': {'tlg_id': 'TLG1706', 'names': {'name_authtab': 'Thallus Hist.', 'name_idt': 'Thallus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hedylus Epigr.': {'tlg_id': 'TLG0198', 'names': {'name_authtab': 'Hedylus Epigr.', 'name_idt': 'Hedylus Epigr.'}, 'works': {'Fragmentum et titulus': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Vitae Hesiodi Particula': {'tlg_id': 'TLG1749', 'names': {'name_authtab': 'Vitae Hesiodi Particula', 'name_idt': 'Vitae Hesiodi Particula'}, 'works': {'Vitae Hesiodi particula': ['line']}}, 'Phocylides Gnom.': {'tlg_id': 'TLG1605', 'names': {'name_authtab': 'Pseudo-Phocylides Gnom.', 'name_idt': 'Phocylides Gnom.'}, 'works': {'Sententiae': ['line']}}, 'Zonaras Gramm., Hist.': {'tlg_id': 'TLG3135', 'names': {'name_authtab': 'Joannes Zonaras Gramm. et Hist.', 'name_idt': 'Zonaras Gramm., Hist.'}, 'works': {' Epitome historiarum (lib. 13-18)': ['Page', 'line'], 'Epitome historiarum (lib. 1-12)': ['Volume', 'page', 'line'], '4Epitome historiarum (lib. 12, clausula varia) [Dub.]': ['Page', 'line']}}, 'Hermas Scr. Eccl.': {'tlg_id': 'TLG1419', 'names': {'name_authtab': 'Hermas Scr. Eccl., Pastor Hermae', 'name_idt': 'Hermas Scr. Eccl.'}, 'works': {'&Fragmentum in F (cod. Paris. gr. 1143)': ['Chapter', 'section', 'line'], 'Pastor': ['Chapter', 'section', 'line'], 'Fragmenta (P. Oxy. 3.404)': ['Chapter', 'section', 'line'], 'Fragmenta (ap. Antiochum)': ['Chapter', 'section', 'line']}}, 'Plotinus Phil.': {'tlg_id': 'TLG2000', 'names': {'name_authtab': 'Plotinus Phil.', 'name_idt': 'Plotinus Phil.'}, 'works': {'Enneades': ['Ennead', 'chapter', 'section', 'line']}}, 'Python Trag.': {'tlg_id': 'TLG0337', 'names': {'name_authtab': 'Python Trag.', 'name_idt': 'Python Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Scholia In Callimachum': {'tlg_id': 'TLG5016', 'names': {'name_authtab': 'Scholia In Callimachum', 'name_idt': 'Scholia In Callimachum'}, 'works': {';Argumentum Hecalae (P. Oxy. 20.2258, olim inedita A, fr. 9)': ['line'], '#Scholia in Lyrica (P. Berol. 13417)': ['Fragment', 'scholion', 'line'], 'LScholia in Epica et elegiaca minora (P. Oxy. 20.2258, olim inedita C, fr. 2)': ['Fragment', 'scholion', 'line'], ',Diegeseis in Hymnos i et ii (scholia vetera)': ['Hymn', 'column', 'line'], '%Diegeseis in Hecalam (scholia vetera)': ['Fragment', 'line'], '3Scholia in Iambos (scholia Florentina) (PSI 9.1094)': ['Fragment', 'line'], 'CCommentarius ad Aetia i (P. Oxy. 20.2262, olim inedita a, frr. 1-2)': ['Fragment', 'line'], '9Scholia in Hymnos ii et iii (scholia vetera) (P. Ant. 20)': ['Hymn', 'scholion', 'line'], '=Scholia in Hymnos (scholia vetera) (scholia $Y &ex archetypo)': ['Hymn', 'scholion', 'line'], '8Scholia in Hymnum iii (scholia vetera) (P. Cair. 47993b)': ['Hymn', 'scholion', 'line'], '$Diegeseis in Iambos (scholia vetera)': ['Fragment', 'column', 'line'], '5Scholia in Aetia i (scholia Florentina) (PSI 11.1219)': ['Fragment', 'line'], 'OFragmenta scholiorum incertae sedis (P. Oxy. 20.2258, olim inedita, frr. 10-11)': ['Fragment', 'column', 'line'], 'UScholia in Aetia i (scholia Londinensia) (P. Lit. Lond. 181 [%6 Brit. Mus. inv. 131])': ['Fragment', 'line'], '@Scholia in Aetia i (commentarius Berolinensis) (P. Berol. 11521)': ['Fragment', 'line'], '#Diegeseis in Aetia (scholia vetera)': ['Fragment', 'column', 'line'], '"Scholia in Iambos (P. Oxy. 7.1011)': ['Fragment', 'scholion', 'line'], '$Diegeseis in Lyrica (scholia vetera)': ['Fragment', 'column', 'line'], '%Diegeseis fabularum (P. Oxy. 20.2263)': ['Fragment', 'column', 'line'], 'SScholia in Hymnos (scholia vetera) (P. Oxy. 20.2258, olim inedita A, frr. 2, 4, 10)': ['Hymn', 'scholion', 'line'], 'hScholia in Aetia (P. Berol. 11629 %7 P. Oxy. 18.2169; 19.2208, 2212; 20.2258 addenda, fragmenta inedita)': ['Fragment', 'scholion', 'line'], '3Scholia in Hymnum iii (scholia vetera) (P. Amh. 20)': ['Scholion', 'line']}}, 'Hippocrates Math.': {'tlg_id': 'TLG2235', 'names': {'name_authtab': 'Hippocrates Math.', 'name_idt': 'Hippocrates Math.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Comica Adespota (CGFPR)': {'tlg_id': 'TLG0662', 'names': {'name_authtab': 'Comica Adespota (CGFPR)', 'name_idt': 'Comica Adespota (CGFPR)'}, 'works': {'': ['$*$*KWMW|DOU/MENOI& !!! TRANSLITERATE|$*KWMW|DOU/MENOI& !!! TRANSLITERATE', 'Fragment', 'line'], 'Adespota Doriensium comoediae': ['Fragment', 'line'], 'Argumenta comica': ['Fragment', 'line'], 'Adespota veteris comoediae': ['Fragment', 'line'], '"Excerpta, florilegia et sententiae': ['Fragment', 'line'], 'Dubia': ['Fragment', 'line'], 'Adespota novae comoediae': ['Fragment', 'line'], '$*LE/CEIS KWMIKAI/&': ['Fragment', 'line']}}, 'Papias Scr. Eccl.': {'tlg_id': 'TLG1558', 'names': {'name_authtab': 'Papias Scr. Eccl.', 'name_idt': 'Papias Scr. Eccl.'}, 'works': {'Fragmenta': ['Fragment', 'section', 'line']}}, 'Terpander Lyr.': {'tlg_id': 'TLG0299', 'names': {'name_authtab': 'Terpander Lyr.', 'name_idt': 'Terpander Lyr.'}, 'works': {'$Fragmentum (fort. auctore Terpandro)': ['Fragment', 'line'], '#Fragmenta (fort. auctore Terpandro)': ['Fragment', 'line']}}, 'Epinicus Comic.': {'tlg_id': 'TLG0454', 'names': {'name_authtab': 'Epinicus Comic.', 'name_idt': 'Epinicus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Euphronius Lyr.': {'tlg_id': 'TLG0210', 'names': {'name_authtab': 'Euphronius Lyr.', 'name_idt': 'Euphronius Lyr.'}, 'works': {'Priapeia': ['line']}}, 'Artemon Hist.': {'tlg_id': 'TLG2307', 'names': {'name_authtab': 'Artemon Hist.', 'name_idt': 'Artemon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Athenagoras Apol.': {'tlg_id': 'TLG1205', 'names': {'name_authtab': 'Athenagoras Apol.', 'name_idt': 'Athenagoras Apol.'}, 'works': {'De resurrectione': ['Chapter', 'section', 'line'], '(Legatio sive Supplicatio pro Christianis': ['Chapter', 'section', 'line']}}, 'Olympiodorus Phil.': {'tlg_id': 'TLG4019', 'names': {'name_authtab': 'Olympiodorus Phil.', 'name_idt': 'Olympiodorus Phil.'}, 'works': {'LScholia in Aristotelis librum de interpretatione (e cod. Vat. Urbin. gr. 35)': ['Page', 'line'], '&In Aristotelis categorias commentarium': ['Page', 'line'], '!In Platonis Phaedonem commentaria': ['Chapter', 'section', 'line'], '"In Aristotelis meteora commentaria': ['Page', 'line'], 'Prolegomena': ['Page', 'line'], 'In Platonis Gorgiam commentaria': ['Chapter', 'section', 'line'], '"In Platonis Alcibiadem commentarii': ['Section', 'line']}}, 'Isigonus Paradox.': {'tlg_id': 'TLG1083', 'names': {'name_authtab': 'Isigonus Paradox.', 'name_idt': 'Isigonus Paradox.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Meletius Med.': {'tlg_id': 'TLG0730', 'names': {'name_authtab': 'Meletius Med.', 'name_idt': 'Meletius Med.'}, 'works': {'': ['De natura hominis', 'Page', 'line'], '<Hypothesis ad opus De natura hominis (e cod. Barocciano 131)': ['Page', 'line']}}, 'Priscus Hist., Rhet.': {'tlg_id': 'TLG2946', 'names': {'name_authtab': 'Priscus Hist. et Rhet.', 'name_idt': 'Priscus Hist., Rhet.'}, 'works': {'Fragmenta': ['Fragment', 'line', '´´', '¶'], 'Testimonia': ['Fragment', 'line']}}, 'Tyrannion Gramm.': {'tlg_id': 'TLG1266', 'names': {'name_authtab': 'Tyrannion Gramm.', 'name_idt': 'Tyrannion Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Carmina Convivialia (PMG)': {'tlg_id': 'TLG0296', 'names': {'name_authtab': 'Carmina Convivialia (PMG)', 'name_idt': 'Carmina Convivialia (PMG)'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Epica Adespota (GDRK)': {'tlg_id': 'TLG1816', 'names': {'name_authtab': 'Epica Adespota (GDRK)', 'name_idt': 'Epica Adespota (GDRK)'}, 'works': {'*Fragmentum (sine titulo) (P. Berol. 5227r)': ['line'], 'In Thebas (P. Berol. 5226v)': ['line'], 'KFragmentum epicum historicum (P. Argent. 480 [%6 P. Strassb. inv. Gr. 480])': ['Fragment', 'line'], 'FLaudatio professoris in universitate Beryti docentis (P. Berol. 10558)': ['line'], '1Exercitationes ethopoeiacae (collectio C. Graves)': ['Fragment', 'line'], '&Encomium ducis Romani (P. Flor. 2.114)': ['Fragment', 'line'], 'Encomium (PSI 2.149)': ['line'], '1Exercitatio ethopoeiaca (Tab. lignea Caironensis)': ['line'], '/$*LO/GOS E)PIBATH/RIOS &(P. Vindob. gr. 29788a)': ['Fragment', 'line'], 'Lusus verborum': ['line'], "'Exercitatio ethopoeiaca (P. Ryl. 3.487)": ['line'], '(Fragmentum epicum (Brit. Mus. inv. 1181)': ['Fragment', 'line'], 'VLaudatio professoris Smyrnaei in universitate Beryti docentis (P. Berol. 10559 A et B)': ['line'], '#Encomium Heraclii ducis (PSI 3.253)': ['line'], '#Polyxena et Achilles (P. Flor. 390)': ['line'], '\\Mercurius mundi et Hermupolis magnae conditor (P. Argent. 481 [%6 P. Strassb. inv. Gr. 481])': ['Fragment', 'line'], ',Laudes Theonis gymnasiarchi (P. Oxy. 7.1015)': ['line'], '&Carmen in Nilum crescentem (PSI 7.845)': ['line'], '-Fragmentum epicum historicum (P. Berol. 5003)': ['line'], ')Encomium iambicum (P. Vindob. gr. 29788b)': ['Fragment', 'line'], 'Epithalamium (P. Ryl. 1.17)': ['line']}}, 'Nicolaus Hist.': {'tlg_id': 'TLG0577', 'names': {'name_authtab': 'Nicolaus Hist.', 'name_idt': 'Nicolaus Hist.'}, 'works': {'': ['Nicolaus Hist. !!! AUTHOR NAME'], 'Fragmenta': ['Fragment', 'line']}}, 'Demetrius Hist., Phil.': {'tlg_id': 'TLG0624', 'names': {'name_authtab': 'Demetrius Hist. et Phil.', 'name_idt': 'Demetrius Hist., Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apollonius Biogr.': {'tlg_id': 'TLG1167', 'names': {'name_authtab': 'Apollonius Biogr.', 'name_idt': 'Apollonius Biogr.'}, 'works': {'Vita Aeschinis': ['line']}}, 'Cleonides Mus.': {'tlg_id': 'TLG0361', 'names': {'name_authtab': 'Cleonides Mus.', 'name_idt': 'Cleonides Mus.'}, 'works': {'Introductio harmonica': ['Section', 'line']}}, 'Andronicus Rhodius Phil.': {'tlg_id': 'TLG1124', 'names': {'name_authtab': 'Andronicus Rhodius Phil.', 'name_idt': 'Andronicus Rhodius Phil.'}, 'works': {'De passionibus (lib. 1) [Sp.]': ['Chapter', 'section', 'line'], 'De passionibus (lib. 2) [Sp.]': ['Chapter', 'section', 'line']}}, 'Apollodorus Carystius vel Apollodorus Gelous Comic.': {'tlg_id': 'TLG0412', 'names': {'name_authtab': 'Apollodorus Carystius vel Apollodorus Gelous Comic.', 'name_idt': 'Apollodorus Carystius vel Apollodorus Gelous Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Eugenius Alchem.': {'tlg_id': 'TLG4323', 'names': {'name_authtab': 'Eugenius Alchem.', 'name_idt': 'Eugenius Alchem.'}, 'works': {'@$*EU)GENI/OU [2DI/PLWSIS]2 &(e cod. Venet. Marc. 299, fol. 185r)': ['Volume', 'page', 'line']}}, 'Artemon Gramm.': {'tlg_id': 'TLG1197', 'names': {'name_authtab': 'Artemon Gramm.', 'name_idt': 'Artemon Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Oppianus Epic.': {'tlg_id': 'TLG0023', 'names': {'name_authtab': 'Oppianus Epic.', 'name_idt': 'Oppianus Epic.'}, 'works': {'Halieutica': ['Book', 'line']}}, 'Scymnus Geogr.': {'tlg_id': 'TLG0068', 'names': {'name_authtab': 'Pseudo-Scymnus Geogr.', 'name_idt': 'Scymnus Geogr.'}, 'works': {' Ad Nicomedem regem, vv. 722-1026': ['line'], ';Ad Nicomedem regem, vv. 1-980 (sub titulo Orbis descriptio)': ['line']}}, 'Pamphilus Trag.': {'tlg_id': 'TLG1399', 'names': {'name_authtab': 'Pamphilus Trag.', 'name_idt': 'Pamphilus Trag.'}, 'works': {'Titulus': ['line']}}, 'Philippus II Rex Macedonum Epist.': {'tlg_id': 'TLG0048', 'names': {'name_authtab': 'Philippus II Rex Macedonum Epist.', 'name_idt': 'Philippus II Rex Macedonum Epist.'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Sphrantzes Hist.': {'tlg_id': 'TLG3143', 'names': {'name_authtab': 'Georgius Sphrantzes Hist.', 'name_idt': 'Sphrantzes Hist.'}, 'works': {'Chronicon sive Minus [Sp.]': ['Chapter', 'section', 'line']}}, 'Alcmaeon Phil.': {'tlg_id': 'TLG0766', 'names': {'name_authtab': 'Alcmaeon Phil.', 'name_idt': 'Alcmaeon Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Olympiodorus Alchem.': {'tlg_id': 'TLG2589', 'names': {'name_authtab': 'Olympiodorus Alchem.', 'name_idt': 'Olympiodorus Alchem.'}, 'works': {"q$*EI)S TO\\ KAT' E)NE/RGEIAN ZWSI/MOU O(/SA A)PO\\ *(ERMOU= KAI\\ TW=N FILOSO/FWN H)=SAN EI)RHME/NA &(%6 De arte sac": ['Volume', 'page', 'line'], 'KDe arte sacra (appendices e codd. Venet. Marc. 299 %7 Paris. B.N. gr. 2250)': ['Volume', 'page', 'line']}}, 'Clidemus Hist.': {'tlg_id': 'TLG1276', 'names': {'name_authtab': 'Clidemus Hist.', 'name_idt': 'Clidemus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hipponax Iamb.': {'tlg_id': 'TLG0233', 'names': {'name_authtab': 'Hipponax Iamb.', 'name_idt': 'Hipponax Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Zosimus Alchem.': {'tlg_id': 'TLG4319', 'names': {'name_authtab': 'Zosimus Alchem.', 'name_idt': 'Zosimus Alchem.'}, 'works': {'q$*PERI\\ TH=S E)CATMI/SEWS TOU= QEI/OU U(/DATOS TOU= PH/SSONTOS TH\\N U(DRA/RGURON &(e codd. Venet. Marc. 299, fol.': ['line'], 'q$*PERI\\ TOU= O(/TI PA/NTWN TW=N U(GRW=N TO\\ QEI=ON U(/DWR KALOU=SIN: KAI\\ TOU=TO SUNQETO/N E)STIN KAI\\ OU)X A(PLO': ['Volume', 'page', 'line'], 'qExcerptum alchemicum (sine titulo) (e codd. Venet. Marc. 299, fol. 186v, 192v; Paris. B.N. gr. 2325, fol. 82v %7 ': ['line'], '[$*PERI\\ LEUKW/SEWS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 118r)': ['Volume', 'page', 'line'], '[$*KADMI/AS PLU/SIS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 137r)': ['Volume', 'page', 'line'], 'V$*PERI\\ I)OU= &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 136v)': ['Volume', 'page', 'line'], 'qExcerptum $PERI\\ XALKANQRW/PWN &(sine titulo) (fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 1': ['Volume', 'page', 'line'], 'N$*ZWSI/MOU PERI\\ O)RGA/NWN KAI\\ KAMI/NWN &(e cod. Venet. Marc. 299, fol. 186r)': ['Volume', 'page', 'line'], 'q$*PERI\\ SW/MATOS MAGNHSI/AS KAI\\ OI)KONOMI/AS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. ': ['Volume', 'page', 'line'], 'W$*PERI\\ QEI/WN &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 152r)': ['Volume', 'page', 'line'], 'q$*PERI\\ OI)KONOMI/AS TOU= TH=S MAGNHSI/AS SW/MATOS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, ': ['Volume', 'page', 'line', '¼¾\x92', '¼\x12'], 'q$*PERI\\ TOU= QEI/OU U(/DATOS &(%6 $*ZWSI/MOU TOU= *PANOPOLI/TOU GNH/SIA U(POMNH/MATA PERI\\ TOU= QEI/OU U(/DATOS&)': ['Volume', 'page', 'line'], 'q$*PERI\\ O)RGA/NWN KAI\\ KAMI/NWN GNH/SIA U(POMNH/MATA PERI\\ TOU= W STOIXEI/OU &(e cod. Venet. Marc. 299, fol. 189r': ['line'], 'q$*ZWSI/MOU PERI\\ O)RGA/NWN KAI\\ KAMI/NWN GNH/SIA U(POMNH/MATA PERI\\ TOU= W STOIXEI/OU &(e cod. Venet. Marc. 299, ': ['Volume', 'page', 'line'], 'q$*PERI\\ TOU= LI/QOU TH=S FILOSOFI/AS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Paris. B.N. gr. 2327, fol. 136v)': ['Volume', 'page', 'line'], 'b$*TO\\ A)E/RION U(/DWR &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Paris. B.N. gr. 2327, fol. 111r)': ['Volume', 'page', 'line'], 'q$*PERI\\ TOU= O(/TI PA/NTA PERI\\ MIA=S BAFH=S H( TE/XNH LELA/LHKEN &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Ven': ['Volume', 'page', 'line'], 'q$*BI/BLOS A)LHQH\\S *SOFE\\ *AI)GUPTI/OU KAI\\ QEI/OU *(EBRAI/WN KURI/OU TW=N DUNA/MEWN *SABAW/Q &(e cod. Paris. B.N': ['Volume', 'page', 'line'], 'q$*PERI\\ TOU= QEI/OU U(/DATOS &(e codd. Venet. Marc. 299, fol. 113v; Paris. B.N. gr. 2325, fol. 86r %7 2327, fol. ': ['line'], 'qExcerptum de partibus alchimiae (sine titulo) (e codd. Paris. B.N. gr. 2327, fol. 238v %7 Venet. Marc. 299, fol. ': ['Volume', 'page', 'line'], 'e$*PERI\\ A)FORMW=N SUNQE/SEWS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 161v)': ['Volume', 'page', 'line'], '][2$*PERI\\ AI)TIW=N&]2 (fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 136v)': ['Volume', 'page', 'line'], '=$*(UDRARGU/ROU POI/HSIS &(e cod. Venet. Marc. 299, fol. 107r)': ['Volume', 'page', 'line'], 'q$*ZWSI/MOU PERI\\ O)RGA/NWN KAI\\ KAMI/NWN &(e codd. Venet. Marc. 299, fol. 186r, 195r %7 Paris. B.N. gr. 2327, fol': ['line'], '`$*ZWSI/MOU TOU= QEI/OU PERI\\ A)RETH=S KAI\\ E(RMHNEI/AS &(e cod. Paris. B.N. gr. 2327, fol. 168v)': ['Volume', 'page', 'line'], 'q$*BI/BLOS A)LHQH\\S *SOFE\\ *AI)GUPTI/OU KAI\\ QEI/OU *(EBRAI/WN KURI/OU TW=N DUNA/MEWN *SABAW/Q. *ZWSI/MOU *QHBAI/O': ['Volume', 'page', 'line'], "q$*PERI\\ TOU= TROFH\\N EI)=NAI TA\\ D' SW/MATA TW=N BAFW=N: EI)SI\\N DE/ &(fort. pars operis $*XEIRO/MHKTA&) (e cod. ": ['Volume', 'page', 'line'], '7$*PERI\\ AI)QALW=N &(e cod. Venet. Marc. 299, fol. 116v)': ['Volume', 'page', 'line'], 'q$*PERI\\ TOU= E)N PANTI\\ KAIRW=| A)RKTE/ON TO\\ E)/RGON &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 29': ['Volume', 'page', 'line'], '`$*PERI\\ QEI/OU U(/DATOS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 156r)': ['Volume', 'page', 'line', '¶'], 'JExcerptum de cerussa (sine titulo) (e cod. Paris. B.N. gr. 2327, fol. 265)': ['Volume', 'page', 'line'], 'c$*PERI\\ SKEUASI/AS W)/XRAS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 157r)': ['Volume', 'page', 'line', 'º', 'º¶', ''], 'q$*PERI\\ TOU= TI/ E)STIN KATA\\ TH\\N TE/XNHN, OU)SI/A KAI\\ A)NOUSI/A &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Ve': ['Volume', 'page', 'line'], 'q$*ZW/SIMOS LE/GEI PERI\\ TH=S A)SBE/STOU &(e codd. Venet. Marc. 299, fol. 95r %7 Paris. B.N. gr. 2327, fol. 8r %7 ': ['line'], '>$*ZWSI/MOU PRA=CIS B# &(e cod. Paris. B.N. gr. 2327, fol. 87v)': ['Volume', 'page', 'line'], 'K$*ZWSI/MOU PRO\\S *QEO/DWRON KEFA/LAIA &(e cod. Venet. Marc. 299, fol. 179r)': ['Volume', 'page', 'line'], '[$*PERI\\ CANQW/SEWS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 137v)': ['Volume', 'page', 'line'], 'O$*PERI\\ TH=S E)CATMI/SEWS U(/DATOS QEI/OU &(e cod. Venet. Marc. 299, fol. 112r)': ['Volume', 'page', 'line'], 'Y$*ZWSI/MOU TOU= QEI/OU PERI\\ A)RETH=S [2PRA=CIS A#]2 &(e cod. Venet. Marc. 299, fol. 92v)': ['Volume', 'page', 'line'], 'c$*(ERMHNEI/A PERI\\ PA/NTWN A(PLW=S KAI\\ PERI\\ TW=N FW/TWN &(e cod. Paris. B.N. gr. 2327, fol. 264r)': ['Volume', 'page', 'line'], 'n$*ZW/SIMOS LE/GEI PERI\\ TH=S A)SBE/STOU &(e codd. Venet. Marc. 299, fol. 95r %7 Paris. B.N. gr. 2327, fol. 8v)': ['Volume', 'page', 'line'], '\\$*ZWSI/MOU PRA=CIS B# &(e codd. Paris. B.N. gr. 2327, fol. 87v %7 Laur. gr. 86.16, fol. 93v)': ['line'], 'B$*PERI\\ TOU= QEI/OU U(/DATOS &(e cod. Venet. Marc. 299, fol. 113v)': ['Volume', 'page', 'line'], 'G$*POI/HSIS E)K TOUTI/AS A)RGU/ROU &(e cod. Venet. Marc. 299, fol. 188r)': ['Volume', 'page', 'line'], 'n$*PERI\\ DIAFORA=S XALKOU= KEKAUME/NOU &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 144r)': ['Volume', 'page', 'line'], ';$*PERI\\ LEUKW/SEWS &(e cod. Paris. B.N. gr. 2327, fol. 265)': ['Volume', 'page', 'line'], 'q$*PERI\\ TW=N U(POSTA/TWN KAI\\ TW=N D# SWMA/TWN KATA\\ TO\\N *DHMO/KRITON TO\\N EI)PO/NTA &(fort. pars operis $*XEIRO': ['Volume', 'page', 'line'], 'O$*PERI\\ TOU= TRIBI/KOU KAI\\ TOU= SWLH=NOS &(e cod. Venet. Marc. 299, fol. 194r)': ['Volume', 'page', 'line'], 'b$*PERI\\ KAU/SEWS SWMA/TWN &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 154r)': ['Volume', 'page', 'line'], 'q$*ZWSI/MOU TOU= QEI/OU PERI\\ A)RETH=S:PERI\\ SUNQE/SEWS U(DA/TWN [2PRA=CIS A#]2 &(e codd. Venet. Marc. 299, fol. 9': ['line'], 'qExcerptum de vinctione virginis (sine titulo) (fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 1': ['Volume', 'page', 'line'], 'UExcerptum alchemicum (sine titulo) (e cod. Venet. Marc. 299, fol. 186v %7 187r, 195r)': ['Column', 'line'], 'q$*PERI\\ TOU TRIBI/KOU KAI\\ TOU= SWLH=NOS &(e codd. Venet. Marc. 299, fol. 187r %7`186v, 194r; Paris. B.N. gr. 232': ['line'], 'H$*(ERMHNEI/A PERI\\ TW=N FW/TWN &(e cod. Paris. B.N. gr. 2327, fol. 265v)': ['Volume', 'page', 'line'], 'O$*PERI\\ DIAFORA=S XALKOU= KEKAUME/NOU &(e cod. Paris. B.N. gr. 2327, fol. 249v)': ['Volume', 'page', 'line'], 'Y$*PERI\\ STAQMW=N &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 153r)': ['Volume', 'page', 'line'], 'q$*PERI\\ TH=S KATA\\ PLA/TOS E)KDO/SEWS TO\\ E)/RGON &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, f': ['Volume', 'page', 'line'], 'W$*PERI\\ BAFH=S &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 137v)': ['Volume', 'page', 'line'], 'a$*PARAINE/SEIS SUSTATIKAI\\ TW=N E)GXEIROU/NTWN TH\\N TE/XNHN &(e cod. Venet. Marc. 299, fol. 115r)': ['Volume', 'page', 'line'], 'q$*ZWSI/MOU TOU= *PANOPOLI/TOU GNHSI/A GRAFH\\ PERI\\ TH=S I(ERA=S KAI\\ QEI/AS TE/XNHS, TH=S TOU XRUSOU= KAI\\ A)RGU/': ['Volume', 'page', 'line'], 'qDiagramma (e codd. Venet. Marc. 299, fol. 188v; Paris. B.N. gr. 2325, fol. 82r %7 2327, fol. 80r; Laur. gr. 86.16': ['line'], '$*PERI\\ STAQMOU= CANQW/SEWS &': ['Volume', 'page', 'line'], 'X$*PERI\\ CHRI/OU &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Marc. 299, fol. 136v)': ['Volume', 'page', 'line'], 'q$*PERI\\ TOU= XRHSTE/ON STUPTHRI/A| STROGGU/LH| A)NTI/LOGOS &(fort. pars operis $*XEIRO/MHKTA&) (e cod. Venet. Mar': ['Volume', 'page', 'line'], 'q$*PERI\\ TOU= QEI/OU U(/DATOS &(e codd. Venet. Marc. 299, fol. 188r; Paris. B.N. gr. 2325, fol. 82r %7 2327, fol. ': ['line'], 'n$*POI/HMA TOU= *ZWSI/MOU &($PRA=CIS G#&) (e codd. Paris. B.N. gr. 2327, fol. 88r %7 Laur. gr. 86.16, fol. 95r)': ['line'], 'K$*POI/HMA *ZWSI/MOU &($PRA=CIS G#&) (e cod. Paris. B.N. gr. 2327, fol. 88r)': ['Volume', 'page', 'line'], 'n$*TO\\ PRW=TON BIBLI/ON TH=S TELEUTAI/AS A)POXH=S *ZWSI/MOU *QHBAI/OU &(e cod. Paris. B.N. gr. 2327, fol. 251v)': ['Volume', 'page', 'line']}}, 'Paradoxographus Vaticanus': {'tlg_id': 'TLG0582', 'names': {'name_authtab': 'Paradoxographus Vaticanus', 'name_idt': 'Paradoxographus Vaticanus'}, 'works': {'Admiranda': ['Section', 'line']}}, 'Sthenelus Trag.': {'tlg_id': 'TLG0315', 'names': {'name_authtab': 'Sthenelus Trag.', 'name_idt': 'Sthenelus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Demetrius Junior Comic.': {'tlg_id': 'TLG0440', 'names': {'name_authtab': 'Demetrius Junior Comic.', 'name_idt': 'Demetrius Junior Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Joannes Gramm., Theol.': {'tlg_id': 'TLG2816', 'names': {'name_authtab': 'Joannes Gramm. et Theol.', 'name_idt': 'Joannes Gramm., Theol.'}, 'works': {'2Apologia concilii Chalcedonensis (excerpta Graeca)': ['line'], 'Adversus Manichaeos (homilia 1)': ['line'], 'FIn evangelium secundum Joannem (excerpta duo) (e cod. Vallicell. E 40)': ['line'], 'Adversus Aphthartodocetas': ['line'], '!Capitula xvii contra monophysitas': ['line'], 'Disputatio cum Manichaeo': ['line'], 'Syllogismi sanctoruum patrum': ['line'], 'Adversus Manichaeos (homilia 2)': ['line']}}, 'Lexicon De Atticis Nominibus': {'tlg_id': 'TLG4292', 'names': {'name_authtab': 'Lexicon De Atticis Nominibus', 'name_idt': 'Lexicon De Atticis Nominibus'}, 'works': {'qDe Atticis nominibus (%6 $*PERI\\ *)ATTIKW=N O)NOMA/TWN&) (sub nomine cuiusdam Theaeteti grammatici) (e codd. Laur': ['Entry', 'line'], 'qDe Atticis nominibus (%6 $*PERI\\ *)ATTIKW=N O)NOMA/TWN&) (sub nomine cuiusdam Theaeteti grammatici) (e cod. Laur.': ['Entry', 'line']}}, 'Fronto Rhet.': {'tlg_id': 'TLG0186', 'names': {'name_authtab': 'Marcus Cornelius Fronto Rhet.', 'name_idt': 'Fronto Rhet.'}, 'works': {'+Additamentum epistularum variarum acephalum': ['Epistle', 'section', 'line'], '&Ad Marcum Caesarem et invicem (lib. 2)': ['Epistle', 'section', 'line'], '&Ad Marcum Caesarem et invicem (lib. 1)': ['Epistle', 'section', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Ad amicos (lib. 1)': ['Epistle', 'section', 'line']}}, 'Ptolemaeus': {'tlg_id': 'TLG1642', 'names': {'name_authtab': 'Pseudo-Ptolemaeus', 'name_idt': 'Ptolemaeus'}, 'works': {'Fructus sive centiloquium': ['Section', 'line']}}, 'Pediasimus Philol., Rhet.': {'tlg_id': 'TLG2592', 'names': {'name_authtab': 'Joannes Pediasimus Philol. et Rhet.', 'name_idt': 'Pediasimus Philol., Rhet.'}, 'works': {'WScholia in Hesiodi scutum (scholia paraphrastica Pediasimi et exegesis Joannis Tzetzae)': ['Page', 'line']}}, 'Aristocreon Hist.': {'tlg_id': 'TLG2455', 'names': {'name_authtab': 'Aristocreon Hist.', 'name_idt': 'Aristocreon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dositheus Magister Gramm.': {'tlg_id': 'TLG4096', 'names': {'name_authtab': 'Dositheus Magister Gramm.', 'name_idt': 'Dositheus Magister Gramm.'}, 'works': {'Ars grammatica': ['Paragraph', 'line']}}, 'Nicostratus Comic.': {'tlg_id': 'TLG0484', 'names': {'name_authtab': 'Nicostratus Comic.', 'name_idt': 'Nicostratus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['line']}}, 'Thrasyalces Phil.': {'tlg_id': 'TLG2231', 'names': {'name_authtab': 'Thrasyalces Phil.', 'name_idt': 'Thrasyalces Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Anonymus De Metrorum Ratione': {'tlg_id': 'TLG2117', 'names': {'name_authtab': 'Anonymus De Metrorum Ratione', 'name_idt': 'Anonymus De Metrorum Ratione'}, 'works': {'Fragmentum (P. Berol. 9734r)': ['line']}}, 'Conventus Avium': {'tlg_id': 'TLG0271', 'names': {'name_authtab': 'Conventus Avium', 'name_idt': 'Conventus Avium'}, 'works': {' Fragmentum (P. Cairo inv. 67860)': ['line']}}, 'Diagoras Lyr.': {'tlg_id': 'TLG0371', 'names': {'name_authtab': 'Diagoras Lyr.', 'name_idt': 'Diagoras Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Syriani, Sopatri Et Marcellini Scholia Ad Hermogenis Status': {'tlg_id': 'TLG2047', 'names': {'name_authtab': 'Syriani, Sopatri Et Marcellini Scholia Ad Hermogenis Status', 'name_idt': 'Syriani, Sopatri Et Marcellini Scholia Ad Hermogenis Status'}, 'works': {'-Scholia ad Hermogenis librum $PERI\\ STA/SEWN&': ['Volume', 'page', 'line']}}, 'Menecrates Poet. Phil.': {'tlg_id': 'TLG1500', 'names': {'name_authtab': 'Menecrates Poet. Phil.', 'name_idt': 'Menecrates Poet. Phil.'}, 'works': {'Fragmentum et titulus': ['Fragment', 'line']}}, 'Euboeus Parodius': {'tlg_id': 'TLG1800', 'names': {'name_authtab': 'Euboeus Parodius', 'name_idt': 'Euboeus Parodius'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line']}}, 'Crito Comic.': {'tlg_id': 'TLG0436', 'names': {'name_authtab': 'Crito Comic.', 'name_idt': 'Crito Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Ctesias Hist., Med.': {'tlg_id': 'TLG0845', 'names': {'name_authtab': 'Ctesias Hist. et Med.', 'name_idt': 'Ctesias Hist., Med.'}, 'works': {'Fragmentum (P. Oxy. 24.2389)': ['FGrH fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Milon Phil.': {'tlg_id': 'TLG1509', 'names': {'name_authtab': 'Milon Phil.', 'name_idt': 'Milon Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Eustathius Scr. Eccl., Theol.': {'tlg_id': 'TLG4117', 'names': {'name_authtab': 'Eustathius Scr. Eccl. et Theol.', 'name_idt': 'Eustathius Scr. Eccl., Theol.'}, 'works': {'9Homilia christologica in Lazarum, Mariam et Martham [Sp.]': ['Section', 'line'], 'QDe anima contra philosophos (ap. Joannem Damascenum, Sacra parallela) (fragmenta)': ['Fragment', 'line'], '$Orationes contra Arianos (fragmenta)': ['Fragment', 'line'], '%Sermo catecheticus [Sp.] (fragmentum)': ['Fragment', 'line', 'Ñ', 'l', ''], ' De engastrimytho contra Origenem': ['Chapter', 'section', 'line'], '+Allocutio ad imperatorem Constantinum [Sp.]': ['Page', 'line'], ' Commentarius in hexaemeron [Sp.]': ['Page', 'line', 'ÉÍѶÜüp#³'], ')In Genesim de creatione [Sp.] (fragmenta)': ['Fragment', 'line', '×', 'Q', ''], '>Commentarius in evangelium secundum Joannem [Sp.] (fragmentum)': ['Fragment', 'line', 'Ò', '\\', ''], 'In Proverbia (fragmenta)': ['Fragment', 'line', ''], 'De hebraismo (fragmenta)': ['Fragment', 'line'], '($*)EK TOU= PANEKKLHSIASTOU= &(fragmenta)': ['line', 'S', ''], '&Commentarius in Psalmum 92 (fragmenta)': ['Fragment', 'line'], '!Fragmenta varia [Sp.] (fragmenta)': ['Fragment', 'line', '', 'c', ''], '"De fide contra Arianos (fragmenta)': ['Fragment', 'line'], ',Commentarius in Psalmum 15 [Sp.] (fragmenta)': ['Fragment', 'line', '', '®', ''], 'De Melchisedech (fragmenta)': ['Fragment', 'line'], 'In Joseph (fragmenta)': ['Fragment', 'line'], '%In Ecclesiasten (fragmenta e catenis)': ['Fragment', 'line', 'Ï', 'G', '¶'], '4Oratio in inscriptione psalmorum graduum (fragmenta)': ['Fragment', 'line'], '%In inscriptione titulorum (fragmenta)': ['Fragment', 'line'], 'EOratio in illud: Dominus creavit me initium viarum suarum (fragmenta)': ['Fragment', 'line'], '1In Samaritanum (fragmenta e cod. Paris. gr. 1115)': ['Fragment', 'line'], '#De anima contra Arianos (fragmenta)': ['Fragment', 'line']}}, 'Testamentum XL Martyrum': {'tlg_id': 'TLG2015', 'names': {'name_authtab': 'Testamentum XL Martyrum', 'name_idt': 'Testamentum XL Martyrum'}, 'works': {'Testamentum xl martyrum': ['Chapter', 'section', 'line']}}, 'Eudemus Poet. Med.': {'tlg_id': 'TLG0888', 'names': {'name_authtab': 'Eudemus Poet. Med.', 'name_idt': 'Eudemus Poet. Med.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Archelaus Paradox.': {'tlg_id': 'TLG0570', 'names': {'name_authtab': 'Archelaus Paradox.', 'name_idt': 'Archelaus Paradox.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Vita Sophoclis': {'tlg_id': 'TLG4318', 'names': {'name_authtab': 'Vita Sophoclis', 'name_idt': 'Vita Sophoclis'}, 'works': {'Vita Sophoclis': ['line']}}, 'Gregorius Thaumaturgus Scr. Eccl.': {'tlg_id': 'TLG2063', 'names': {'name_authtab': 'Gregorius Thaumaturgus Scr. Eccl.', 'name_idt': 'Gregorius Thaumaturgus Scr. Eccl.'}, 'works': {'': ['Epistula canonica', 'Section', 'line'], 'De fide capitula duodecim': ['line'], 'In Origenem oratio panegyrica': ['Section', 'line'], '>In annuntiationem sanctae virginis Mariae (homiliae 1-2) [Sp.]': ['Volume', 'page', 'line'], '6Fragmentum in evangelium Matthaei 6.22-23 (in catenis)': ['Volume', 'page', 'line'], '%Metaphrasis in Ecclesiasten Salamonis': ['Page', 'line'], '"Sententiae (ap. Antonium Melissam)': ['Fragment', 'line'], 'Fragmentum in Job (in catenis)': ['Page', 'line'], '"Fragmenta in Jeremiam (in catenis)': ['Page', 'line'], '6$*EI)S TO\\ OU)DE\\N EI)/DWLON E)N KO/SMW| &(fragmentum)': ['Fragment', 'line'], '0Ad Tatianum de anima per capita disputatio [Sp.]': ['Volume', 'page', 'line'], 'Sermo in omnes sanctos [Sp.]': ['Volume', 'page', 'line']}}, 'Barlaam Math., Theol., Epist.': {'tlg_id': 'TLG3159', 'names': {'name_authtab': 'Barlaam Math., Theol. et Epist.', 'name_idt': 'Barlaam Math., Theol., Epist.'}, 'works': {'3Paraphrasis in Euclidis elementorum librum secundum': ['Page', 'line']}}, 'Socraticorum Epistulae': {'tlg_id': 'TLG0637', 'names': {'name_authtab': 'Socraticorum Epistulae', 'name_idt': 'Socraticorum Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Oenopides Phil.': {'tlg_id': 'TLG2234', 'names': {'name_authtab': 'Oenopides Phil.', 'name_idt': 'Oenopides Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Chronographiae Anonymae': {'tlg_id': 'TLG2738', 'names': {'name_authtab': 'Chronographiae Anonymae', 'name_idt': 'Chronographiae Anonymae'}, 'works': {'2Chronographia brevis (e cod. Paris. suppl. gr. 67)': ['Page', 'line'], '*Chronographia brevis (e cod. Coislin. 193)': ['Page', 'line'], ',Chronographia brevis (e cod. Monac. gr. 510)': ['Page', 'line']}}, 'Hesychius Scr. Eccl.': {'tlg_id': 'TLG2797', 'names': {'name_authtab': 'Hesychius Scr. Eccl.', 'name_idt': 'Hesychius Scr. Eccl.'}, 'works': {'(In sanctos Petrum et Paulum (homilia 13)': ['Section', 'line', '', '[\x13´'], 'CHomilia ii in sanctum pascha (homilia 4) (e cod. Sinaitico gr. 492)': ['Section', 'line'], '.Homilia ii de sancta Maria deipara (homilia 6)': ['Section', 'line'], ':Homilia de jejunio (homilia 15) (e cod. Sinaitico gr. 491)': ['Section', 'line'], '>Homilia ii in sanctum Longinum centurionem (homilia 20) [Dub.]': ['Section', 'line'], '#Homilia ii de Hypapante (homilia 2)': ['Section', 'line'], 'TIn Lazarum et in ramos palmarum (homilia 18) (olim sub nomine Titi Bostrensis) [Sp.]': ['Section', 'line'], '"Homilia i de Hypapante (homilia 1)': ['Section', 'line'], 'HIn sanctos Jacobum et David (homilia 10) (e Photii Bibliotheca cod. 275)': ['Section', 'line'], 'BHomilia i in sanctum pascha (homilia 3) (e cod. Sinaitico gr. 492)': ['Section', 'line'], '!In sanctum Procopium (homilia 14)': ['Section', 'line'], '=Homilia i in sanctum Longinum centurionem (homilia 19) [Dub.]': ['Section', 'line'], '5In conceptionem venerabilis praecursoris (homilia 16)': ['Section', 'line'], '4In sanctos martyres (fragmentum) (homilia 17) [Dub.]': ['Section', 'line'], '-Homilia i de sancta Maria deipara (homilia 5)': ['Section', 'line'], '$In sanctum Lucam (homilia 21) [Dub.]': ['Section', 'line'], '*Homilia ii in sanctum Lazarum (homilia 12)': ['Section', 'line', '´'], ' In sanctum Stephanum (homilia 9)': ['Section', 'line'], ')Homilia i in sanctum Lazarum (homilia 11)': ['Section', 'line'], 'In sanctum Antonium (homilia 8)': ['Section', 'line'], 'In sanctum Andream (homilia 7)': ['Section', 'line']}}, 'Philocles Trag.': {'tlg_id': 'TLG0312', 'names': {'name_authtab': 'Philocles Trag.', 'name_idt': 'Philocles Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dionysius Thrax Gramm.': {'tlg_id': 'TLG0063', 'names': {'name_authtab': 'Dionysius Thrax Gramm.', 'name_idt': 'Dionysius Thrax Gramm.'}, 'works': {'Fragmentum': ['line', 'fragment', 'line'], 'Testimonium': ['line', 'fragment', 'line'], 'Ars grammatica': ['Part', 'volume', 'page', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Timagetus Hist.': {'tlg_id': 'TLG4396', 'names': {'name_authtab': 'Timagetus Hist.', 'name_idt': 'Timagetus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cedrenus Chronogr.': {'tlg_id': 'TLG3018', 'names': {'name_authtab': 'Georgius Cedrenus Chronogr.', 'name_idt': 'Cedrenus Chronogr.'}, 'works': {'Compendium historiarum': ['Volume', 'page', 'line']}}, 'Vettius Valens Astrol.': {'tlg_id': 'TLG1764', 'names': {'name_authtab': 'Vettius Valens Astrol.', 'name_idt': 'Vettius Valens Astrol.'}, 'works': {'Anthologiarum libri ix': ['Page', 'line']}}, 'Polycharmus Hist.': {'tlg_id': 'TLG1623', 'names': {'name_authtab': 'Polycharmus Hist.', 'name_idt': 'Polycharmus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, '[Menyllus] Hist.': {'tlg_id': 'TLG2202', 'names': {'name_authtab': '[Menyllus] Hist.', 'name_idt': '[Menyllus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Euphro Comic.': {'tlg_id': 'TLG0460', 'names': {'name_authtab': 'Euphro Comic.', 'name_idt': 'Euphro Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Martyrium Ptolemaei Et Lucii': {'tlg_id': 'TLG1485', 'names': {'name_authtab': 'Martyrium Ptolemaei Et Lucii', 'name_idt': 'Martyrium Ptolemaei Et Lucii'}, 'works': {'Martyrium Ptolemaei et Lucii': ['Section', 'line']}}, 'Hipparchus Phil.': {'tlg_id': 'TLG1432', 'names': {'name_authtab': 'Hipparchus Phil.', 'name_idt': 'Hipparchus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Aethlius Hist.': {'tlg_id': 'TLG0686', 'names': {'name_authtab': 'Aethlius Hist.', 'name_idt': 'Aethlius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Macarius Scr. Eccl.': {'tlg_id': 'TLG2109', 'names': {'name_authtab': 'Pseudo-Macarius Scr. Eccl.', 'name_idt': 'Macarius Scr. Eccl.'}, 'works': {'Sermo 28 (recensio brevior)': ['Page', 'line'], 'Homiliae 7 (collectio HA)': ['Homily', 'section', 'line'], 'Sermones 1-22, 24-27': ['Homily', 'section', 'line'], 'Preces': ['Volume', 'page', 'line'], '%Homiliae spirituales 50 (collectio H)': ['Homily', 'line'], '#Opusculum 1 (%6 De custodia cordis)': ['Volume', 'page', 'line'], 'Sermo 23 (recensio excerpta)': ['Page', 'line'], 'Sermones 64 (collectio B)': ['Homily', 'chapter', 'section', 'line'], 'Epistula magna': ['Page', 'line'], 'Sermo 23 (recensio completa)': ['Page', 'line'], 'Sermo 28 (recensio expletior)': ['Page', 'line'], 'Apophthegmata': ['Volume', 'page', 'line'], 'Sermo 17 (excerpta)': ['Page', 'line']}}, 'Maximus Soph.': {'tlg_id': 'TLG0563', 'names': {'name_authtab': 'Maximus Soph.', 'name_idt': 'Maximus Soph.'}, 'works': {'Dialexeis': ['Lecture', 'chapter', 'section', 'line']}}, 'Theocritus Bucol.': {'tlg_id': 'TLG0005', 'names': {'name_authtab': 'Theocritus Bucol.', 'name_idt': 'Theocritus Bucol.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Idyllia': ['Idyll', 'line'], 'Syrinx': ['line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Scholia In Xenophontem': {'tlg_id': 'TLG5040', 'names': {'name_authtab': 'Scholia In Xenophontem', 'name_idt': 'Scholia In Xenophontem'}, 'works': {')Scholia in anabasin Cyri (scholia vetera)': ['Scholion', 'line']}}, 'Timocles Comic.': {'tlg_id': 'TLG0515', 'names': {'name_authtab': 'Timocles Comic.', 'name_idt': 'Timocles Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Lexicon Sabbaiticum': {'tlg_id': 'TLG4300', 'names': {'name_authtab': 'Lexicon Sabbaiticum', 'name_idt': 'Lexicon Sabbaiticum'}, 'works': {'+Lexicon Sabbaiticum (e cod. Sabbaitico 137)': ['', 'Alphabetic letter', 'page', 'line']}}, 'Hegesander Hist.': {'tlg_id': 'TLG1392', 'names': {'name_authtab': 'Hegesander Hist.', 'name_idt': 'Hegesander Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Nicomachus Trag.': {'tlg_id': 'TLG1843', 'names': {'name_authtab': 'Nicomachus Trag.', 'name_idt': 'Nicomachus Trag.'}, 'works': {'Tituli': ['line']}}, 'Ptolemaei II Philadelphi Et Eleazari Epistulae': {'tlg_id': 'TLG0050', 'names': {'name_authtab': 'Ptolemaei II Philadelphi Et Eleazari Epistulae', 'name_idt': 'Ptolemaei II Philadelphi Et Eleazari Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Parmenides Poet. Phil.': {'tlg_id': 'TLG1562', 'names': {'name_authtab': 'Parmenides Poet. Phil.', 'name_idt': 'Parmenides Poet. Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, '[Pyrander] Hist.': {'tlg_id': 'TLG2349', 'names': {'name_authtab': '[Pyrander] Hist.', 'name_idt': '[Pyrander] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Diphilus Epic., Iamb.': {'tlg_id': 'TLG0248', 'names': {'name_authtab': 'Diphilus Epic. et Iamb.', 'name_idt': 'Diphilus Epic., Iamb.'}, 'works': {'Fragmentum': ['line']}}, 'Demonax Trag.': {'tlg_id': 'TLG0349', 'names': {'name_authtab': 'Demonax Trag.', 'name_idt': 'Demonax Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Andromachus Poet. Med.': {'tlg_id': 'TLG0280', 'names': {'name_authtab': 'Andromachus Poet. Med.', 'name_idt': 'Andromachus Poet. Med.'}, 'works': {'Fragmentum': ['line']}}, 'Metagenes Comic.': {'tlg_id': 'TLG0475', 'names': {'name_authtab': 'Metagenes Comic.', 'name_idt': 'Metagenes Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Thebaïs': {'tlg_id': 'TLG1712', 'names': {'name_authtab': 'Thebaïs', 'name_idt': 'Thebaïs'}, 'works': {'Thebai+s (fragmenta)': ['Fragment', 'line']}}, 'Clidemus Phil.': {'tlg_id': 'TLG2305', 'names': {'name_authtab': 'Clidemus Phil.', 'name_idt': 'Clidemus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Phrynichus II Trag.': {'tlg_id': 'TLG0876', 'names': {'name_authtab': 'Phrynichus II Trag.', 'name_idt': 'Phrynichus II Trag.'}, 'works': {'Tituli': ['line']}}, 'Parmeno Iamb.': {'tlg_id': 'TLG1566', 'names': {'name_authtab': 'Parmeno Iamb.', 'name_idt': 'Parmeno Iamb.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Horapollo Gramm.': {'tlg_id': 'TLG2052', 'names': {'name_authtab': 'Horapollo Gramm.', 'name_idt': 'Horapollo Gramm.'}, 'works': {'#Hieroglyphica (translatio Philippi)': ['Book', 'section', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Theodorus Scutariota Hist.': {'tlg_id': 'TLG3157', 'names': {'name_authtab': 'Theodorus Scutariota Hist.', 'name_idt': 'Theodorus Scutariota Hist.'}, 'works': {',Additamenta ad Georgii Acropolitae historiam': ['Fragment', 'line']}}, 'Aristagoras Comic.': {'tlg_id': 'TLG0418', 'names': {'name_authtab': 'Aristagoras Comic.', 'name_idt': 'Aristagoras Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Comica Adespota (FCG)': {'tlg_id': 'TLG0602', 'names': {'name_authtab': 'Comica Adespota (FCG)', 'name_idt': 'Comica Adespota (FCG)'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Fragmenta comicorum anonymorum': ['Play', 'fragment', 'line']}}, 'Harmodius Hist.': {'tlg_id': 'TLG1388', 'names': {'name_authtab': 'Harmodius Hist.', 'name_idt': 'Harmodius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Vitae Oppiani': {'tlg_id': 'TLG4172', 'names': {'name_authtab': 'Vitae Oppiani', 'name_idt': 'Vitae Oppiani'}, 'works': {'IVita Oppiani Anazarbensis (e cod. phil. gr. 135 in Bibl. nat. in Vindob.)': ['line'], 'Vita Oppiani (Vita $B&)': ['line'], 'NVita Tzetziana (e codd. Laur. gr. 31.3, Ambros. gr. C 222 inf., Vat. gr. 1345)': ['line'], 'Vita Oppiani (Vita $A&)': ['line']}}, 'Apollodorus Comic.': {'tlg_id': 'TLG0413', 'names': {'name_authtab': 'Apollodorus Comic.', 'name_idt': 'Apollodorus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Heraclides Hist.': {'tlg_id': 'TLG1406', 'names': {'name_authtab': 'Heraclides Hist.', 'name_idt': 'Heraclides Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Lexica Syntactica': {'tlg_id': 'TLG4286', 'names': {'name_authtab': 'Lexica Syntactica', 'name_idt': 'Lexica Syntactica'}, 'works': {'%Lexicon syntacticum (specimen tantum)': ['Page', 'line'], 'RLexicon syntacticum (%6$ *)ARXH\\ SU\\N QEW=| TH=S SUNTA/CEWS&) (e cod. Laur. 59,16)': ['', 'Alphabetic letter', 'page', 'line'], '(Lexicon syntacticum (e cod. Laur. 59,16)': ['Entry', 'line'], 'qLexicon syntacticum (%6 $*)ARXH\\ SU\\N QEW=| TW=N SUNTA/CEWN PW=S DEI= O)FEI/LEIN SUNTA/SSEIN TA\\S R(HMATIKA\\S LE/': ['', 'Alphabetic letter', 'page', 'line']}}, 'Adrianus Rhet., Soph.': {'tlg_id': 'TLG0666', 'names': {'name_authtab': 'Adrianus Rhet. et Soph.', 'name_idt': 'Adrianus Rhet., Soph.'}, 'works': {'Declamatio': ['Page', 'line']}}, 'Gennadius I Scr. Eccl.': {'tlg_id': 'TLG2762', 'names': {'name_authtab': 'Gennadius I Scr. Eccl.', 'name_idt': 'Gennadius I Scr. Eccl.'}, 'works': {'3Fragmenta in epistulam i ad Corinthios (in catenis)': ['Page', 'line'], '5Fragmentum in epistulam ii ad Corinthios (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Galatas (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], ';Fragmentum in epistulam ii ad Thessalonicenses (in catenis)': ['Page', 'line'], '/Fragmenta in epistulam ad Hebraeos (in catenis)': ['Page', 'line']}}, 'Xenagoras Geogr., Hist.': {'tlg_id': 'TLG1752', 'names': {'name_authtab': 'Xenagoras Geogr. et Hist.', 'name_idt': 'Xenagoras Geogr., Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Acropolites Hist.': {'tlg_id': 'TLG3141', 'names': {'name_authtab': 'Georgius Acropolites Hist.', 'name_idt': 'Acropolites Hist.'}, 'works': {'Laudatio Petri et Pauli': ['Section', 'line'], '!Epitaphius in Irenam imperatricem': ['line'], '(Praefatio in epistulas Theodori Lascaris': ['line'], 'Epitaphius in Joannem Ducam': ['Section', 'line'], 'In imaginem beatae virginis': ['line'], 'Annales': ['Section', 'line'], '!In Gregorii Nazianzeni sententias': ['Section', 'line'], 'Epistula ad Joannem Tornicem': ['Page', 'line'], 'Carmen in magnum sabbatum': ['line'], 'Historia in brevius redacta': ['Section', 'line'], 'Contra Latinos': ['Oration', 'section', 'line']}}, 'Danaïs vel Danaïdes': {'tlg_id': 'TLG0364', 'names': {'name_authtab': 'Danaïs vel Danaïdes', 'name_idt': 'Danaïs vel Danaïdes'}, 'works': {'"Danai+s vel Danai+des (fragmentum)': ['Fragment', 'line']}}, 'Antimachus Eleg., Epic.': {'tlg_id': 'TLG0239', 'names': {'name_authtab': 'Antimachus Eleg. et Epic.', 'name_idt': 'Antimachus Eleg., Epic.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Antidotus Comic.': {'tlg_id': 'TLG0409', 'names': {'name_authtab': 'Antidotus Comic.', 'name_idt': 'Antidotus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Sozomenus Scr. Eccl.': {'tlg_id': 'TLG2048', 'names': {'name_authtab': 'Salaminius Hermias Sozomenus Scr. Eccl.', 'name_idt': 'Sozomenus Scr. Eccl.'}, 'works': {'Historia ecclesiastica': ['Book', 'chapter', 'section', 'line']}}, 'Joannes Philoponus Phil.': {'tlg_id': 'TLG4015', 'names': {'name_authtab': 'Joannes Philoponus Phil.', 'name_idt': 'Joannes Philoponus Phil.'}, 'works': {'': ['De opificio mundi', 'Page', 'line'], '+In Aristotelis analytica priora commentaria': ['Volume', 'page', 'line'], '/In Aristotelis analytica posteriora commentaria': ['Volume', 'page', 'line'], '.In libros de generatione animalium commentaria': ['Volume', 'page', 'line'], ']De vocabulis quae diversum significatum exhibent secundum differentiam accentus (additamenta)': ['Page', 'line'], "'De usu astrolabii eiusque constructione": ['Page', 'line'], 'ODe vocabulis quae diversum significatum exhibent secundum differentiam accentus': ['Recensio', '', 'alphabetic letter', 'entry', 'line'], '?In Aristotelis libros de generatione et corruptione commentaria': ['Volume', 'page', 'line'], ':In Aristotelis meteorologicorum librum primum commentarium': ['Volume', 'page', 'line'], 'GIn Aristotelis analytica posteriora commentaria (prooemium e codd. BRL)': ['Volume', 'page', 'line'], '*In Aristotelis libros de anima commentaria': ['Volume', 'page', 'line'], '&In Aristotelis categorias commentarium': ['Volume', 'page', 'line'], 'De aeternitate mundi': ['Page', 'line'], ',In Aristotelis physicorum libros commentaria': ['Volume', 'page', 'line']}}, 'Cincius Alimentus Hist.': {'tlg_id': 'TLG2543', 'names': {'name_authtab': 'Lucius Cincius Alimentus Hist.', 'name_idt': 'Cincius Alimentus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philippus Comic.': {'tlg_id': 'TLG1781', 'names': {'name_authtab': 'Philippus Comic.', 'name_idt': 'Philippus Comic.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Lyrica Adespota (SLG)': {'tlg_id': 'TLG1471', 'names': {'name_authtab': 'Lyrica Adespota (SLG)', 'name_idt': 'Lyrica Adespota (SLG)'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymi De Astrologia Dialogus Astrol.': {'tlg_id': 'TLG4374', 'names': {'name_authtab': 'Anonymi De Astrologia Dialogus Astrol.', 'name_idt': 'Anonymi De Astrologia Dialogus Astrol.'}, 'works': {'EDe astrologia dialogus (%6 Hermippus) (fort. auctore Joanne Catrario)': ['Page', 'line']}}, 'Didymus Gramm.': {'tlg_id': 'TLG1312', 'names': {'name_authtab': 'Didymus Gramm.', 'name_idt': 'Didymus Gramm.'}, 'works': {'In Demosthenem (P. Berol. 9780)': ['Column', 'line'], ')De dubiis apud Platonem lectionibus [Sp.]': ['Page', 'line']}}, 'Teucer Hist.': {'tlg_id': 'TLG1704', 'names': {'name_authtab': 'Teucer Hist.', 'name_idt': 'Teucer Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Canon Librorum': {'tlg_id': 'TLG1242', 'names': {'name_authtab': 'Canon Librorum', 'name_idt': 'Canon Librorum'}, 'works': {'Canon librorum': ['Section', 'line']}}, 'Teucer Astrol.': {'tlg_id': 'TLG1703', 'names': {'name_authtab': 'Teucer Astrol.', 'name_idt': 'Teucer Astrol.'}, 'works': {'CDe duodecim signis (Rhetorii Aegyptii excerpta) (e cod. Berol. 173)': ['Volume', 'page', 'line'], ':De sideribus consurgentibus (fragmenta) (e cod. Danensi 2)': ['Volume', 'page', 'line']}}, 'Chariclides Comic.': {'tlg_id': 'TLG0430', 'names': {'name_authtab': 'Chariclides Comic.', 'name_idt': 'Chariclides Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Callicrates Comic.': {'tlg_id': 'TLG1783', 'names': {'name_authtab': 'Callicrates Comic.', 'name_idt': 'Callicrates Comic.'}, 'works': {'Titulus': ['Page', 'line']}}, 'Nicolaus I Mysticus Theol., Epist.': {'tlg_id': 'TLG3100', 'names': {'name_authtab': 'Nicolaus I Mysticus Theol. et Epist.', 'name_idt': 'Nicolaus I Mysticus Theol., Epist.'}, 'works': {'Epistulae': ['Epistle', 'line'], 'Opuscula diversa': ['Section', 'line']}}, 'Martyrium Marini': {'tlg_id': 'TLG2009', 'names': {'name_authtab': 'Martyrium Marini', 'name_idt': 'Martyrium Marini'}, 'works': {'Martyrium Marini': ['Section', 'line']}}, 'Dionysius Scytobrachion Gramm.': {'tlg_id': 'TLG1881', 'names': {'name_authtab': 'Dionysius Scytobrachion Gramm.', 'name_idt': 'Dionysius Scytobrachion Gramm.'}, 'works': {'Fragmentum (P. Mich. 1316)': ['FGrH fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Symeon Hist.': {'tlg_id': 'TLG3182', 'names': {'name_authtab': 'Pseudo-Symeon Hist.', 'name_idt': 'Symeon Hist.'}, 'works': {'3Chronographia (partim edita e cod. Paris. gr. 1712)': ['Page', 'line']}}, 'Matron Parodius': {'tlg_id': 'TLG1486', 'names': {'name_authtab': 'Matron Parodius', 'name_idt': 'Matron Parodius'}, 'works': {'': ['Convivium Atticum', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Dromo Comic.': {'tlg_id': 'TLG0448', 'names': {'name_authtab': 'Dromo Comic.', 'name_idt': 'Dromo Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Neanthes Hist.': {'tlg_id': 'TLG1525', 'names': {'name_authtab': 'Neanthes Hist.', 'name_idt': 'Neanthes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apollodorus Lyr.': {'tlg_id': 'TLG0365', 'names': {'name_authtab': 'Apollodorus Lyr.', 'name_idt': 'Apollodorus Lyr.'}, 'works': {'Fragmentum': ['line']}}, 'Apocalypsis Sophoniae': {'tlg_id': 'TLG1160', 'names': {'name_authtab': 'Apocalypsis Sophoniae', 'name_idt': 'Apocalypsis Sophoniae'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Philodamus Lyr.': {'tlg_id': 'TLG0205', 'names': {'name_authtab': 'Philodamus Lyr.', 'name_idt': 'Philodamus Lyr.'}, 'works': {'': ['Paean in Dionysum', 'line'], '-Paean in Dionysum (fragmenta incerti ordinis)': ['Fragment', 'line']}}, 'Apollonius Paradox.': {'tlg_id': 'TLG0569', 'names': {'name_authtab': 'Apollonius Paradox.', 'name_idt': 'Apollonius Paradox.'}, 'works': {'Historiae mirabiles': ['Chapter', 'section', 'line']}}, 'Evangelium Bartholomaei': {'tlg_id': 'TLG1366', 'names': {'name_authtab': 'Evangelium Bartholomaei', 'name_idt': 'Evangelium Bartholomaei'}, 'works': {' Fragmenta evangelii Bartholomaei': ['Fragment', 'section', 'line'], 'Evangelium Bartholomaei': ['Chapter', 'section', 'line']}}, 'Dei(l)ochus Hist.': {'tlg_id': 'TLG2326', 'names': {'name_authtab': 'Dei(l)ochus Hist.', 'name_idt': 'Dei(l)ochus Hist.'}, 'works': {'Fragmentum': ['FGrH fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Diodorus Siculus Hist.': {'tlg_id': 'TLG0060', 'names': {'name_authtab': 'Diodorus Siculus Hist.', 'name_idt': 'Diodorus Siculus Hist.'}, 'works': {'!Bibliotheca historica (lib. 1-20)': ['Book', 'chapter', 'section', 'line'], 'Fragmenta sedis incertae': ['Fragment', 'line'], '"Bibliotheca historica (lib. 21-40)': ['Book', 'chapter', 'section', 'line']}}, 'Diogenis Sinopensis Epistulae': {'tlg_id': 'TLG1325', 'names': {'name_authtab': 'Diogenis Sinopensis Epistulae', 'name_idt': 'Diogenis Sinopensis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Eutychianus Hist.': {'tlg_id': 'TLG2158', 'names': {'name_authtab': 'Eutychianus Hist.', 'name_idt': 'Eutychianus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Ergias Hist.': {'tlg_id': 'TLG1354', 'names': {'name_authtab': 'Ergias Hist.', 'name_idt': 'Ergias Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Dionysius Scr. Eccl.': {'tlg_id': 'TLG1329', 'names': {'name_authtab': 'Dionysius Scr. Eccl.', 'name_idt': 'Dionysius Scr. Eccl.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Eutocius Math.': {'tlg_id': 'TLG4072', 'names': {'name_authtab': 'Eutocius Math.', 'name_idt': 'Eutocius Math.'}, 'works': {'': ['&1Eutocius& Math.'], '#Commentarius in dimensionem circuli': ['Page', 'line'], 'Commentaria in conica': ['Page', 'line'], ',Commentarii in libros de sphaera et cylindro': ['Page', 'line'], '/Commentarius in libros de planorum aequilibriis': ['Page', 'line']}}, 'Herodianus et Pseudo-Herodianus Gramm., Rhet.': {'tlg_id': 'TLG0087', 'names': {'name_authtab': 'Aelius Herodianus et Pseudo-Herodianus Gramm. et Rhet.', 'name_idt': 'Herodianus et Pseudo-Herodianus Gramm., Rhet.'}, 'works': {'': ['$*$*PERI\\ METOXW=N& !!! TRANSLITERATE', 'Part+volume', 'page', 'line'], '$*PERI\\ O)NOMA/TWN&': ['Part+volume', 'page', 'line'], "'$*PERI\\ SOLOIKISMOU= KAI\\ BARBARISMOU=&": ['Page', 'line'], '$*PERI\\ A)NTWNUMIW=N&': ['Part+volume', 'page', 'line'], 'XPhiletaerus [Sp.?] (fort. auctore Corneliano) (e codd. Vat. gr. 2226 %7 Paris. gr. 2552)': ['Section', 'line'], '&$*PAREKBOLAI\\ TOU= MEGA/LOU R(H/MATOS&': ['Page', 'line'], '#$*PERI\\ *)ODUSSEIAKH=S PROSW|DI/AS&': ['Part+volume', 'page', 'line'], 'jFragmentum grammaticum quod incipit a vocibus $ZHTOU=MEN KAI\\ TH\\N TOU= *)/ARHS& [Sp.] (e cod. Barocc. 76)': ['Page', 'line'], '!De enclisi (epitome ap. Arcadium)': ['Part+volume', 'page', 'line'], '$*MONO/BIBLON PERI\\ TOU= H)=N&': ['Part+volume', 'page', 'line'], '$*PERI\\ O)RQOGRAFI/AS&': ['Part+volume', 'page', 'line'], 'Schematismi Homerici': ['Section', 'line'], '"De figuris (%6 $*PERI\\ SXHMA/TWN&)': ['Part+volume', 'page', 'line'], 'De versibus': ['line'], '1$*EI)S TO\\ PERI\\ GENW=N *)APOLLWNI/OU U(PO/MNHMA&': ['Part+volume', 'page', 'line'], '$*PERI\\ PAQW=N&': ['Part+volume', 'page', 'line'], '$*PROTA/SEIS&': ['Part+volume', 'page', 'line'], '$*PERI\\ DIXRO/NWN&': ['Part+volume', 'page', 'line'], '$*PERI\\ *)ATTIKH=S PROSW|DI/AS&': ['Part+volume', 'page', 'line'], '&$*EI)S TH\\N *)APOLLWNI/OU EI)SAGWGH/N&': ['Part+volume', 'page', 'line'], '$*PERI\\ MONOSULLA/BWN&': ['Part+volume', 'page', 'line'], '$*SUMPO/SION&': ['Part+volume', 'page', 'line'], '$*PERI\\ SUZUGIW=N&': ['Part+volume', 'page', 'line'], '$*PERI\\ TOU= ZW/S&': ['Part+volume', 'page', 'line'], 'qDe locutionum pravitatibus (prior pars operis) [Sp.] (fort. auctore Corneliano) (e codd. Barocc. 76 %7 Laur. VI-2': ['Page', 'line'], '*$*PERI\\ AU)QUPOTA/KTWN KAI\\ A)NUPOTA/KTWN&': ['Page', 'line'], '3Excerpta e Herodiano [Sp.] (e cod. Paris. gr. 2552)': ['Page', 'line'], '$*PERI\\ PNEUMA/TWN&': ['Part+volume', 'page', 'line'], 'FPartitiones (%6$ *)EPIMERISMOI/&) [Sp.?] (e codd. Paris. 2543 %7 2570)': ['Page', 'line'], '$*PERI\\ KLI/SEWS O)NOMA/TWN&': ['Part+volume', 'page', 'line'], 'A$*PERI\\ PARAGWGW=N GENIKW=N A)PO\\ DIALE/KTWN &(e cod. Barroc. 76)': ['Page', 'line'], '?$*PERI\\ KURI/WN KAI\\ E)PIQE/TWN KAI\\ PROSHGORIKW=N MONO/BIBLON&': ['Part+volume', 'page', 'line'], ' $*PERI\\ GA/MOU KAI\\ SUMBIW/SEWS&': ['Part+volume', 'page', 'line'], '(De figuris (%6 $*PERI\\ SXHMA/TWN&) [Sp.]': ['Page', 'line'], '$*PERI\\ LE/CEWS TW=N STI/XWN&': ['line'], '$*PERI\\ *)ILIAKH=S PROSW|DI/AS&': ['Part+volume', 'page', 'line'], 'PExcerpta e Herodiano [Sp.] (e codd. Paris. gr. 2650 %7 2662 %7 Paris. suppl. 70)': ['Fragment', 'line'], '#$*PERI\\ SUNTA/CEWS TW=N STOIXEI/WN&': ['Part+volume', 'page', 'line'], '$*PERI\\ PARWNU/MWN&': ['Part+volume', 'page', 'line'], '"$*PERI\\ A)RIQMW=N &(ap. Stephanum)': ['line'], '$*PERI\\ R(HMATIKW=N O)NOMA/TWN&': ['Part+volume', 'page', 'line'], '$*PERI\\ R(HMA/TWN&': ['Part+volume', 'page', 'line'], 'De prosodia catholica': ['Part+volume', 'page', 'line'], '$*PERI\\ PAQW=N &(supplementum)': ['Part+volume', 'page', 'line'], '$*PERI\\ E)PIRRHMA/TWN&': ['Part+volume', 'page', 'line'], '$*PERI\\ TW=N EI)S <MI>&': ['Part+volume', 'page', 'line'], 'qDe locutionum pravitatibus (posterior pars operis) [Sp.] (fort. auctore Corneliano) (e cod. Paris. suppl. gr. 123': ['Page', 'line'], ' $*MONO/BIBLON PERI\\ TOU= U(/DWR&': ['Part+volume', 'page', 'line'], 'X$*MONO/BIBLON PERI\\ TOU= MH\\ PA/NTA TA\\ R(H/MATA KLI/NESQAI EI)S PA/NTAS TOU\\S XRO/NOUS&': ['Part+volume', 'page', 'line'], '$*PERI\\ MONH/ROUS LE/CEWS&': ['Part+volume', 'page', 'line']}}, 'Vitae Homeri': {'tlg_id': 'TLG1805', 'names': {'name_authtab': 'Vitae Homeri', 'name_idt': 'Vitae Homeri'}, 'works': {'[2Plutarchi]2 De Homero 1': ['line'], '*Vita septima (Eustathii vita, Od. 1713.17)': ['line'], 'Tzetzae vita (Chil. 13.626-665)': ['Chiliad line'], '[2Plutarchi]2 De Homero 2': ['line'], 'Vita sexta': ['line'], 'Vita quarta': ['line'], 'Vita quinta': ['line'], 'Vita Herodotea': ['line'], 'Vita Proculea (e Chrestomathia)': ['Page', 'line'], 'Sudae vita': ['line'], '[2Plutarchi]2 vita': ['Part', 'line'], 'Eustathii vita (Il. 4.17)': ['line']}}, 'Anthemius Math., Mech.': {'tlg_id': 'TLG4088', 'names': {'name_authtab': 'Anthemius Math. et Mech.', 'name_idt': 'Anthemius Math., Mech.'}, 'works': {' $*PERI\\ PARADO/CWN MHXANHMA/TWN&': ['Page', 'line'], ' Fragmentum mathematicum Bobiense': ['Page', 'line']}}, 'Zeno Hist.': {'tlg_id': 'TLG2364', 'names': {'name_authtab': 'Zeno Hist.', 'name_idt': 'Zeno Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Plutarchus Biogr., Phil.': {'tlg_id': 'TLG0007', 'names': {'name_authtab': 'Plutarchus Biogr. et Phil.', 'name_idt': 'Plutarchus Biogr., Phil.'}, 'works': {'': ['Agis et Cleomenes', 'Chapter', 'section', 'line'], ' Comparatio Pelopidae et Marcelli': ['Chapter', 'section', 'line'], '1Quomodo adulator ab amico internoscatur (48e-74e)': ['Stephanus page', 'section', 'line'], '2De Alexandri magni fortuna aut virtute (326d-345b)': ['Stephanus page', 'section', 'line'], '#De tranquillitate animi (464e-477f)': ['Stephanus page', 'section', 'line'], 'De Iside et Osiride (351c-384c)': ['Stephanus page', 'section', 'line'], 'Cato Maior': ['Chapter', 'section', 'line'], 'De vitioso pudore (528c-536d)': ['Stephanus page', 'section', 'line'], '"De vitando aere alieno (827d-832a)': ['Stephanus page', 'section', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Theseus': ['Chapter', 'section', 'line'], 'Antonius': ['Chapter', 'section', 'line'], '&Bruta animalia ratione uti (985d-992e)': ['Stephanus page', 'section', 'line'], 'Lycurgus': ['Chapter', 'section', 'line'], '>Maxime cum principibus philosopho esse disserendum (776a-779c)': ['Stephanus page', 'section', 'line'], '#De liberis educandis [Sp.] (1a-14c)': ['Stephanus page', 'section', 'line'], 'Comparatio Eumenis et Sertorii': ['Chapter', 'section', 'line'], 'Titus Flamininus': ['Chapter', 'section', 'line'], 'De virtute et vitio (100b-101e)': ['Stephanus page', 'section', 'line'], 'Nicias': ['Chapter', 'section', 'line'], 'Publicola': ['Chapter', 'section', 'line'], 'De invidia et odio (536e-538e)': ['Stephanus page', 'section', 'line'], 'RDe unius in republica dominatione, populari statu, et paucorum imperio (826a-827c)': ['Stephanus page', 'section', 'line'], 'Sertorius': ['Chapter', 'section', 'line'], '"De proverbiis Alexandrinorum [Sp.]': ['Fragment', 'line'], '"De sollertia animalium (959a-985c)': ['Stephanus page', 'section', 'line'], 'De fortuna (97c-100a)': ['Stephanus page', 'section', 'line'], '.De animae procreatione in Timaeo (1012b-1030c)': ['Stephanus page', 'section', 'line'], ',$*PAROIMI/AI AI(=S *)ALECANDREI=S E)XRW=NTO&': ['Centuria', 'section', 'line'], 'De fraterno amore (478a-492d)': ['Stephanus page', 'section', 'line'], '*An seni respublica gerenda sit (783b-797f)': ['Stephanus page', 'section', 'line'], '(Comparatio Aemilii Paulli et Timoleontis': ['Chapter', 'section', 'line'], 'Comparatio Dionis et Bruti': ['Chapter', 'section', 'line'], 'Galba': ['Chapter', 'section', 'line'], 'Comparatio Cimonis et Luculli': ['Chapter', 'section', 'line'], '"Aetia Romana et Graeca (263d-304f)': ['Stephanus page', 'section', 'line'], '#Ad principem ineruditum (779d-782f)': ['Stephanus page', 'section', 'line'], 'Eumenes': ['Chapter', 'section', 'line'], 'Alexander': ['Chapter', 'section', 'line'], 'Agesilaus': ['Chapter', 'section', 'line'], '!De defectu oraculorum (409e-438d)': ['Stephanus page', 'section', 'line'], 'Comparatio Agesilai et Pompeii': ['Chapter', 'section', 'line'], 'Philopoemen': ['Chapter', 'section', 'line'], 'De libidine et aegritudine': ['Section', 'line'], 'Alcibiades': ['Chapter', 'section', 'line'], 'De garrulitate (502b-515a)': ['Stephanus page', 'section', 'line'], 'Pericles': ['Chapter', 'section', 'line'], '*Comparatio Philopoemenis et Titi Flaminini': ['Chapter', 'section', 'line'], 'Comparatio Demetrii et Antonii': ['Chapter', 'section', 'line'], ' Conjugalia praecepta (138a-146a)': ['Stephanus page', 'section', 'line'], 'Fabius Maximus': ['Chapter', 'section', 'line'], '*Praecepta gerendae reipublicae (798a-825f)': ['Stephanus page', 'section', 'line'], 'Timoleon': ['Chapter', 'section', 'line'], 'De cohibenda ira (452f-464d)': ['Stephanus page', 'section', 'line'], '*Consolatio ad Apollonium [Sp.] (101f-122a)': ['Stephanus page', 'section', 'line'], 'Aemilius Paullus': ['Chapter', 'section', 'line'], 'Pompeius': ['Chapter', 'section', 'line'], 'De E apud Delphos (384d-394c)': ['Stephanus page', 'section', 'line'], '(De tuenda sanitate praecepta (122b-137e)': ['Stephanus page', 'section', 'line'], ':Comparatio Agidis et Cleomenis cum Tiberio et Gaio Graccho': ['Chapter', 'section', 'line'], 'Crassus': ['Chapter', 'section', 'line'], '$De sera numinis vindicta (548a-568a)': ['Stephanus page', 'section', 'line'], '#Platonicae quaestiones (999c-1011e)': ['Stephanus page', 'section', 'line'], '5Regum et imperatorum apophthegmata [Sp.?] (172b-208a)': ['Stephanus page', 'section', 'line'], 'Cicero': ['Chapter', 'section', 'line'], 'De exilio (599a-607f)': ['Stephanus page', 'section', 'line'], 'Comparatio Lysandri et Sullae': ['Chapter', 'section', 'line'], 'Marcius Coriolanus': ['Chapter', 'section', 'line'], 'Romulus': ['Chapter', 'section', 'line', '³'], '#De recta ratione audiendi (37b-48d)': ['Stephanus page', 'section', 'line'], 'Aratus': ['Chapter', 'section', 'line'], 'Pyrrhus': ['Chapter', 'section', 'line'], 'Demetrius': ['Chapter', 'section', 'line'], '"Quaestiones convivales (612c-748d)': ['Stephanus page', 'section', 'line'], '&Vitae decem oratorum [Sp.] (832b-852e)': ['Stephanus page', 'section', 'line'], 'Caesar': ['Chapter', 'section', 'line'], '7Non posse suaviter vivi secundum Epicurum (1086c-1107c)': ['Stephanus page', 'section', 'line'], '<Epitome libri de animae procreatione in Timaeo (1030d-1032f)': ['Stephanus page', 'section', 'line'], 'Aetia physica (911c-919e)': ['Stephanus page', 'section', 'line'], 'Cimon': ['Chapter', 'section', 'line'], 'Cato Minor': ['Chapter', 'section', 'line'], 'De laude ipsius (539a-547f)': ['Stephanus page', 'section', 'line'], '#An virtus doceri possit (439a-440c)': ['Stephanus page', 'section', 'line'], 'De superstitione (164e-171f)': ['Stephanus page', 'section', 'line'], '=Comparationis Aristophanis et Menandri compendium (853a-854d)': ['Stephanus page', 'section', 'line'], 'Comparatio Niciae et Crassi': ['Chapter', 'section', 'line'], '!De latenter vivendo (1128a-1130e)': ['Stephanus page', 'section', 'line'], '8Animine an corporis affectiones sint peiores (500b-502a)': ['Stephanus page', 'section', 'line'], ')Comparatio Alcibiadis et Marcii Coriolani': ['Chapter', 'section', 'line'], '+De capienda ex inimicis utilitate (86b-92f)': ['Stephanus page', 'section', 'line'], 'Marcellus': ['Chapter', 'section', 'line'], 'Aristides': ['Chapter', 'section', 'line'], '$De cupiditate divitiarum (523c-528b)': ['Stephanus page', 'section', 'line'], '#Comparatio Demosthenis et Ciceronis': ['Chapter', 'section', 'line'], 'Camillus': ['Chapter', 'section', 'line'], 'Dion': ['Chapter', 'section', 'line'], 'De virtute morali (440d-452d)': ['Stephanus page', 'section', 'line'], 'De fato [Sp.] (568b-574f)': ['Stephanus page', 'section', 'line'], 'Comparatio Aristidis et Catonis': ['Chapter', 'section', 'line'], 'Mulierum virtutes (242e-263c)': ['Stephanus page', 'section', 'line'], 'Comparatio Thesei et Romuli': ['Chapter', 'section', 'line', '\x92n\x12´'], '"De gloria Atheniensium (345c-351b)': ['Stephanus page', 'section', 'line'], '4An vitiositas ad infelicitatem sufficiat (498a-500a)': ['Stephanus page', 'section', 'line'], 'Sulla': ['Chapter', 'section', 'line'], 'Phocion': ['Chapter', 'section', 'line'], 'Pelopidas': ['Chapter', 'section', 'line'], 'Tiberius et Gaius Gracchus': ['Chapter', 'section', 'line'], 'Amatorius (748e-771e)': ['Stephanus page', 'section', 'line'], "'De Stoicorum repugnantiis (1033a-1057b)": ['Stephanus page', 'section', 'line'], 'De esu carnium ii (996d-999b)': ['Stephanus page', 'section', 'line'], 'Brutus': ['Chapter', 'section', 'line'], 'De genio Socratis (575a-598f)': ['Stephanus page', 'section', 'line'], '#Comparatio Periclis et Fabii Maximi': ['Chapter', 'section', 'line'], '.Stoicos absurdiora poetis dicere (1057c-1058e)': ['Stephanus page', 'section', 'line'], 'Demosthenes': ['Chapter', 'section', 'line'], '#De Herodoti malignitate (854e-874c)': ['Stephanus page', 'section', 'line'], 'Solon': ['Chapter', 'section', 'line'], 'De Pythiae oraculis (394d-409d)': ['Stephanus page', 'section', 'line'], 'Otho': ['Chapter', 'section', 'line'], 'De curiositate (515b-523b)': ['Stephanus page', 'section', 'line'], 'Lysander': ['Chapter', 'section', 'line'], 'Marius': ['Chapter', 'section', 'line'], '!$*)EKLOGH\\ PERI\\ TW=N A)DUNA/TWN&': ['line'], 'De amore prolis (493a-497e)': ['Stephanus page', 'section', 'line'], "'Septem sapientium convivium (146b-164d)": ['Stephanus page', 'section', 'line'], ' De fortuna Romanorum (316c-326c)': ['Stephanus page', 'section', 'line'], ')Apophthegmata Laconica [Sp.?] (208b-242d)': ['Stephanus page', 'section', 'line'], 'Lucullus': ['Chapter', 'section', 'line'], '8Quomodo quis suos in virtute sentiat profectus (75a-86a)': ['Stephanus page', 'section', 'line'], 'Adversus Colotem (1107d-1127e)': ['Stephanus page', 'section', 'line'], '5De communibus notitiis adversus Stoicos (1058e-1086b)': ['Stephanus page', 'section', 'line'], 'Themistocles': ['Chapter', 'section', 'line'], ')Parsne an facultas animi sit vita passiva': ['Section', 'line'], 'Artaxerxes': ['Chapter', 'section', 'line'], '"De facie in orbe lunae (920b-945e)': ['Stephanus page', 'section', 'line'], ' Comparatio Solonis et Publicolae': ['Chapter', 'section', 'line'], 'Numa': ['Chapter', 'section', 'line'], '!De amicorum multitudine (93a-97b)': ['Stephanus page', 'section', 'line'], ' Consolatio ad uxorem (608a-612b)': ['Stephanus page', 'section', 'line'], 'De primo frigido (945f-955c)': ['Stephanus page', 'section', 'line'], '1Quomodo adolescens poetas audire debeat (14d-37b)': ['Stephanus page', 'section', 'line'], '-Aquane an ignis sit utilior [Sp.] (955d-958e)': ['Stephanus page', 'section', 'line'], 'De esu carnium i (993a-996c)': ['Stephanus page', 'section', 'line'], 'Comparatio Lycurgi et Numae': ['Chapter', 'section', 'line'], '"Parallela minora [Sp.] (305a-316b)': ['Stephanus page', 'section', 'line'], "'Amatoriae narrationes [Sp.] (771e-775e)": ['Stephanus page', 'section', 'line']}}, 'Protevangelium Jacobi': {'tlg_id': 'TLG1637', 'names': {'name_authtab': 'Protevangelium Jacobi', 'name_idt': 'Protevangelium Jacobi'}, 'works': {'Protevangelium Jacobi': ['Section', 'line']}}, 'Eudocia Augusta Poeta': {'tlg_id': 'TLG2766', 'names': {'name_authtab': 'Eudocia Augusta Poeta', 'name_idt': 'Eudocia Augusta Poeta'}, 'works': {'KHomerocentones (fort. conditore operis et auctore Patricio quodam episcopo)': ['Hypothesis-apologia-cento', 'line'], '>De martyrio sancti Cypriani (e cod. Florent. Laurent. VII, 10)': ['Book', 'line']}}, 'Apollonius Geom.': {'tlg_id': 'TLG0550', 'names': {'name_authtab': 'Apollonius Geom.', 'name_idt': 'Apollonius Geom.'}, 'works': {'Conica': ['Book', 'section', 'line']}}, 'Babrius Scr. Fab.': {'tlg_id': 'TLG0614', 'names': {'name_authtab': 'Valerius Babrius Scr. Fab.', 'name_idt': 'Babrius Scr. Fab.'}, 'works': {'Mythiambi Aesopici': ['Section', 'fable', 'line']}}, 'Alexander Theol.': {'tlg_id': 'TLG2059', 'names': {'name_authtab': 'Alexander Theol.', 'name_idt': 'Alexander Theol.'}, 'works': {'"Tractatus de placitis Manichaeorum': ['Section', 'line']}}, 'Theophilus Protospatharius, Damascius et Stephanus Atheniensis Med.': {'tlg_id': 'TLG0728', 'names': {'name_authtab': 'Theophilus Protospatharius, Damascius et Stephanus Atheniensis Med.', 'name_idt': 'Theophilus Protospatharius, Damascius et Stephanus Atheniensis Med.'}, 'works': {'%Commentarii in Hippocratis aphorismos': ['Volume', 'page', 'line']}}, 'Alciphron Rhet., Soph.': {'tlg_id': 'TLG0640', 'names': {'name_authtab': 'Alciphron Rhet. et Soph.', 'name_idt': 'Alciphron Rhet., Soph.'}, 'works': {'Epistulae': ['Book', 'epistle', 'section', 'line']}}, 'Timotheus Lyr.': {'tlg_id': 'TLG0376', 'names': {'name_authtab': 'Timotheus Lyr.', 'name_idt': 'Timotheus Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Rhianus Epic.': {'tlg_id': 'TLG0219', 'names': {'name_authtab': 'Rhianus Epic.', 'name_idt': 'Rhianus Epic.'}, 'works': {'Fragmentum et titulus': ['Fragment', 'line'], 'Fragmenta': ['FGrH fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Carneiscus Phil.': {'tlg_id': 'TLG1244', 'names': {'name_authtab': 'Carneiscus Phil.', 'name_idt': 'Carneiscus Phil.'}, 'works': {'#Philistas (lib. ii) (P. Herc. 1027)': ['Section', 'fragment', 'line'], 'Fragmenta (P. Herc. 1027)': ['Fragment', 'line']}}, 'Choerilus Epic.': {'tlg_id': 'TLG1262', 'names': {'name_authtab': 'Choerilus Epic.', 'name_idt': 'Choerilus Epic.'}, 'works': {'Fragmentum': ['line'], 'Fragmentum et titulus': ['Fragment', 'line']}}, 'Nicanor Gramm.': {'tlg_id': 'TLG1530', 'names': {'name_authtab': 'Nicanor Gramm.', 'name_idt': 'Nicanor Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Asopodorus Iamb.': {'tlg_id': 'TLG2609', 'names': {'name_authtab': 'Asopodorus Iamb.', 'name_idt': 'Asopodorus Iamb.'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Comica Adespota (CAF)': {'tlg_id': 'TLG0408', 'names': {'name_authtab': 'Comica Adespota (CAF)', 'name_idt': 'Comica Adespota (CAF)'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta incertorum poetarum': ['Fragment', 'line']}}, 'Epica Adespota (CA)': {'tlg_id': 'TLG1344', 'names': {'name_authtab': 'Epica Adespota (CA)', 'name_idt': 'Epica Adespota (CA)'}, 'works': {'Epica adespota': ['Fragment', 'line']}}, 'Mnaseas Perieg.': {'tlg_id': 'TLG1514', 'names': {'name_authtab': 'Mnaseas Perieg.', 'name_idt': 'Mnaseas Perieg.'}, 'works': {'Fragmenta': ['FHG fragment', 'line']}}, 'Ecphantus Phil.': {'tlg_id': 'TLG1341', 'names': {'name_authtab': 'Ecphantus Phil.', 'name_idt': 'Ecphantus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line'], '%$*PERI\\ BASILEI/AS& (fragmenta) [Sp.]': ['Page', 'line']}}, 'Julius Africanus Hist.': {'tlg_id': 'TLG2956', 'names': {'name_authtab': 'Sextus Julius Africanus Hist.', 'name_idt': 'Julius Africanus Hist.'}, 'works': {'': ['Cesti (fragmenta)', 'Book', 'chapter', 'line'], 'Epistula ad Origenem': ['Page', 'line'], 'Epistula ad Aristidem': ['Page', 'line']}}, 'Theagenes Hist.': {'tlg_id': 'TLG1709', 'names': {'name_authtab': 'Theagenes Hist.', 'name_idt': 'Theagenes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Lyceas Hist.': {'tlg_id': 'TLG1469', 'names': {'name_authtab': 'Lyceas Hist.', 'name_idt': 'Lyceas Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Niceratus Epic.': {'tlg_id': 'TLG2633', 'names': {'name_authtab': 'Niceratus Epic.', 'name_idt': 'Niceratus Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Xenophanes Poet. Phil.': {'tlg_id': 'TLG0267', 'names': {'name_authtab': 'Xenophanes Poet. Phil.', 'name_idt': 'Xenophanes Poet. Phil.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Fragmenta (Silli et De natura)': ['Fragment', 'line'], 'Testimonium': ['line', 'fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Georgius Monachus Continuatus': {'tlg_id': 'TLG3051', 'names': {'name_authtab': 'Georgius Monachus Continuatus', 'name_idt': 'Georgius Monachus Continuatus'}, 'works': {'$Chronicon (continuatio) (redactio A)': ['Page', 'line']}}, 'Eudemus Rhet.': {'tlg_id': 'TLG1376', 'names': {'name_authtab': 'Eudemus Rhet.', 'name_idt': 'Eudemus Rhet.'}, 'works': {"'$*PERI\\ LE/CEWN R(HTORIKW=N& (excerpta)": ['Folio', 'line']}}, 'Solonis Epistulae': {'tlg_id': 'TLG1681', 'names': {'name_authtab': 'Solonis Epistulae', 'name_idt': 'Solonis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Andreas Hist.': {'tlg_id': 'TLG2393', 'names': {'name_authtab': 'Andreas Hist.', 'name_idt': 'Andreas Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Vitae Aeschinis': {'tlg_id': 'TLG4166', 'names': {'name_authtab': 'Vitae Aeschinis', 'name_idt': 'Vitae Aeschinis'}, 'works': {'Vitae Aeschinis': ['Vita', 'line']}}, 'Joannes Protospatharius Gramm.': {'tlg_id': 'TLG3155', 'names': {'name_authtab': 'Joannes Protospatharius Gramm.', 'name_idt': 'Joannes Protospatharius Gramm.'}, 'works': {'.$*)ECH/GHSIS FUSIKH\\ TW=N H(MERW=N *(HSIO/DOU&': ['Page', 'line']}}, 'Vita Et Sententiae Secundi': {'tlg_id': 'TLG1521', 'names': {'name_authtab': 'Vita Et Sententiae Secundi', 'name_idt': 'Vita Et Sententiae Secundi'}, 'works': {'Sententiae': ['Sententia', 'line'], 'Vita Secundi': ['Page', 'line']}}, 'Acta Xanthippae Et Polyxenae': {'tlg_id': 'TLG2248', 'names': {'name_authtab': 'Acta Xanthippae Et Polyxenae', 'name_idt': 'Acta Xanthippae Et Polyxenae'}, 'works': {'2Acta Xanthippae et Polyxenae (sub auctore Onesimo)': ['Section', 'line']}}, 'Callixenus Hist.': {'tlg_id': 'TLG1240', 'names': {'name_authtab': 'Callixenus Hist.', 'name_idt': 'Callixenus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Paeanes (CA)': {'tlg_id': 'TLG1203', 'names': {'name_authtab': 'Paeanes (CA)', 'name_idt': 'Paeanes (CA)'}, 'works': {')Fragmentum Erythraeum paeanis in Seleucum': ['line'], "'Paean Erythraeus ad urbem Dium repertus": ['line'], '&Fragmentum paeanis in Titum Flamininum': ['line'], '*Fragmentum Erythraeum paeanis in Apollinem': ['line'], 'Paean Erythraeus in Aesculapium': ['line'], 'Paean Delphicus i in Apollinem': ['Fragment', 'line']}}, 'Sosicrates Hist.': {'tlg_id': 'TLG1687', 'names': {'name_authtab': 'Sosicrates Hist.', 'name_idt': 'Sosicrates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dexippus Phil.': {'tlg_id': 'TLG2036', 'names': {'name_authtab': 'Dexippus Phil.', 'name_idt': 'Dexippus Phil.'}, 'works': {'&In Aristotelis categorias commentarium': ['Page', 'line']}}, 'Dionysius Hist.': {'tlg_id': 'TLG2466', 'names': {'name_authtab': 'Dionysius Hist.', 'name_idt': 'Dionysius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, '[Chersias] Epic.': {'tlg_id': 'TLG1260', 'names': {'name_authtab': '[Chersias] Epic.', 'name_idt': '[Chersias] Epic.'}, 'works': {'1Fragmentum epicum [Dub.] (fort. auctore Callippo)': ['line']}}, 'Ostanes Magus Alchem.': {'tlg_id': 'TLG1016', 'names': {'name_authtab': 'Ostanes Magus Alchem.', 'name_idt': 'Ostanes Magus Alchem.'}, 'works': {'q$*)OSTA/NOU FILOSO/FOU PRO\\S *PETA/SION PERI\\ TH=S I(ERA=S TAU/THS KAI\\ QEI/AS TE/XNHS& (e cod. Venet. Marc. 299,': ['Volume', 'page', 'line']}}, 'Autocrates Comic.': {'tlg_id': 'TLG0423', 'names': {'name_authtab': 'Autocrates Comic.', 'name_idt': 'Autocrates Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Diogenes Hist.': {'tlg_id': 'TLG2328', 'names': {'name_authtab': 'Diogenes Hist.', 'name_idt': 'Diogenes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Joannes Chortasmenus Phil.': {'tlg_id': 'TLG4201', 'names': {'name_authtab': 'Joannes Chortasmenus Phil.', 'name_idt': 'Joannes Chortasmenus Phil.'}, 'works': {'qIn Aristotelis sophisticos elenchos (excerpta e codd. Bolon., B.U. gr. 3637; Lond., B.L. Harl. 5697; Flor. Laur. ': ['Page', 'line']}}, 'Apocalypsis Sedrach': {'tlg_id': 'TLG2243', 'names': {'name_authtab': 'Apocalypsis Sedrach', 'name_idt': 'Apocalypsis Sedrach'}, 'works': {'Apocalypsis Sedrach': ['Section', 'line']}}, 'Philochorus Hist.': {'tlg_id': 'TLG0583', 'names': {'name_authtab': 'Philochorus Hist.', 'name_idt': 'Philochorus Hist.'}, 'works': {'Fragmentum (P. Oslo 1662)': ['FGrH fragment', 'line', ''], 'Fragmenta': ['line', 'fragment', 'line', '³'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Sextus Empiricus Phil.': {'tlg_id': 'TLG0544', 'names': {'name_authtab': 'Sextus Empiricus Phil.', 'name_idt': 'Sextus Empiricus Phil.'}, 'works': {'Pyrrhoniae hypotyposes': ['Book', 'section', 'line'], 'Adversus mathematicos': ['Book', 'section', 'line']}}, 'Diyllus Hist.': {'tlg_id': 'TLG1911', 'names': {'name_authtab': 'Diyllus Hist.', 'name_idt': 'Diyllus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dio Chrysostomus Soph.': {'tlg_id': 'TLG0612', 'names': {'name_authtab': 'Dio Chrysostomus Soph.', 'name_idt': 'Dio Chrysostomus Soph.'}, 'works': {'Encomium comae': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Orationes': ['Oration', 'section', 'line']}}, 'Alexander Rhet., Soph.': {'tlg_id': 'TLG0594', 'names': {'name_authtab': 'Alexander Rhet. et Soph.', 'name_idt': 'Alexander Rhet., Soph.'}, 'works': {'De figuris': ['Page', 'line'], '*$*PERI\\ R(HTORIKW=N A)FORMW=N& (fragmenta)': ['Page', 'line']}}, 'Alexander Rhet.': {'tlg_id': 'TLG0698', 'names': {'name_authtab': 'Alexander Rhet.', 'name_idt': 'Alexander Rhet.'}, 'works': {'Fragmenta et titulus': ['Fragment', 'line']}}, 'Hierotheus Alchem., Poeta': {'tlg_id': 'TLG4332', 'names': {'name_authtab': 'Hierotheus Alchem. et Poeta', 'name_idt': 'Hierotheus Alchem., Poeta'}, 'works': {'q$*(IEROQE/OU FILOSO/FOU PERI\\ TH=S QEI/AS KAI\\ I(ERA=S TE/XNHS DIA\\ STI/XWN [2I)A/MBWN]2& (fort. auctore Heliodor': ['line']}}, 'Apocalypsis Adam': {'tlg_id': 'TLG1153', 'names': {'name_authtab': 'Apocalypsis Adam', 'name_idt': 'Apocalypsis Adam'}, 'works': {'1$*NUXQH/MERON& (fort. auctore Apollonio Tyanensi)': ['Fragment', 'section', 'line']}}, 'Theophrastus Phil.': {'tlg_id': 'TLG0093', 'names': {'name_authtab': 'Theophrastus Phil.', 'name_idt': 'Theophrastus Phil.'}, 'works': {'Metaphysica (%6 fr. 12, Wimmer)': ['Usener page', 'line'], 'Historia plantarum': ['Book', 'chapter', 'section', 'line'], 'De igne (%6 fr. 3, Wimmer)': ['Fragment', 'line'], 'Physicorum opiniones': ['Section', 'line'], 'De causis plantarum (lib. 2-6)': ['Book', 'chapter', 'section', 'line'], '+De sensu et sensibilibus (%6 fr. 1, Wimmer)': ['Section', 'line'], 'De pietate': ['Fragment', 'line'], '&De eligendis magistratibus (fragmenta)': ['Folio', 'line'], 'Fragmenta': ['Fragment', 'section', 'line'], 'Characteres': ['Chapter', 'section', 'line'], 'De lapidibus (%6 fr. 2, Wimmer)': ['Section', 'line'], 'De causis plantarum (lib. 1)': ['Book', 'chapter', 'section', 'line']}}, 'Lyrica Adespota (CA)': {'tlg_id': 'TLG0230', 'names': {'name_authtab': 'Lyrica Adespota (CA)', 'name_idt': 'Lyrica Adespota (CA)'}, 'works': {'Fragmenta lyrica': ['Fragment', 'line']}}, 'Parrhasius Epigr.': {'tlg_id': 'TLG1567', 'names': {'name_authtab': 'Parrhasius Epigr.', 'name_idt': 'Parrhasius Epigr.'}, 'works': {'Epigrammata': ['Epigram', 'line']}}, 'Uranius Hist.': {'tlg_id': 'TLG2461', 'names': {'name_authtab': 'Uranius Hist.', 'name_idt': 'Uranius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Eunapius Hist., Soph.': {'tlg_id': 'TLG2050', 'names': {'name_authtab': 'Eunapius Hist. et Soph.', 'name_idt': 'Eunapius Hist., Soph.'}, 'works': {'': ['Vitae sophistarum', 'Book', 'chapter', 'section', 'line', '\x8c', '', '', '\x12\x12\x12\x15¿\x15'], 'Fragmenta historica': ['Volume', 'page', 'line']}}, 'Ephippus Comic.': {'tlg_id': 'TLG0450', 'names': {'name_authtab': 'Ephippus Comic.', 'name_idt': 'Ephippus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Ninus': {'tlg_id': 'TLG1804', 'names': {'name_authtab': 'Ninus', 'name_idt': 'Ninus'}, 'works': {'&Ninus (fragmenta A-B) (P. Berol. 6926)': ['Column', 'line'], '!Ninus (fragmentum D) (P. Gen. 85)': ['line'], '"Ninus (fragmentum C) (PSI 13.1305)': ['line']}}, 'Theophanes Confessor Chronogr.': {'tlg_id': 'TLG4046', 'names': {'name_authtab': 'Theophanes Confessor Chronogr.', 'name_idt': 'Theophanes Confessor Chronogr.'}, 'works': {'Chronographia': ['Page', 'line']}}, 'Cleobuli Epistula': {'tlg_id': 'TLG0622', 'names': {'name_authtab': 'Cleobuli Epistula', 'name_idt': 'Cleobuli Epistula'}, 'works': {'Epistula': ['line']}}, 'Maximus Theol.': {'tlg_id': 'TLG1488', 'names': {'name_authtab': 'Maximus Theol.', 'name_idt': 'Maximus Theol.'}, 'works': {'Fragmentum ex libro de materia': ['Page', 'line']}}, 'Hipparchus Astron., Geogr.': {'tlg_id': 'TLG1431', 'names': {'name_authtab': 'Hipparchus Astron. et Geogr.', 'name_idt': 'Hipparchus Astron., Geogr.'}, 'works': {'6In Arati et Eudoxi phaenomena commentariorum libri iii': ['Book', 'chapter', 'section', 'line'], 'Fragmenta geographica': ['Fragment', 'line']}}, 'Heliodorus Scr. Erot.': {'tlg_id': 'TLG0658', 'names': {'name_authtab': 'Heliodorus Scr. Erot.', 'name_idt': 'Heliodorus Scr. Erot.'}, 'works': {'Aethiopica': ['Book', 'chapter', 'section', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Menetor Hist.': {'tlg_id': 'TLG4395', 'names': {'name_authtab': 'Menetor Hist.', 'name_idt': 'Menetor Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Lysis Phil.': {'tlg_id': 'TLG0633', 'names': {'name_authtab': 'Lysis Phil.', 'name_idt': 'Lysis Phil.'}, 'works': {'Epistula ad Hipparchum': ['Page', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Eudoxus Hist.': {'tlg_id': 'TLG1915', 'names': {'name_authtab': 'Eudoxus Hist.', 'name_idt': 'Eudoxus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Silenus Hist.': {'tlg_id': 'TLG1970', 'names': {'name_authtab': 'Silenus Hist.', 'name_idt': 'Silenus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymi Aulodia': {'tlg_id': 'TLG1836', 'names': {'name_authtab': 'Anonymi Aulodia', 'name_idt': 'Anonymi Aulodia'}, 'works': {'!Anonymi aulodia (P. Oxy. 15.1795)': ['Fragment', 'line']}}, 'Magnus Hist.': {'tlg_id': 'TLG2157', 'names': {'name_authtab': 'Magnus Hist.', 'name_idt': 'Magnus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Ignatius Biogr., Poeta': {'tlg_id': 'TLG9012', 'names': {'name_authtab': 'Ignatius Biogr. et Poeta', 'name_idt': 'Ignatius Biogr., Poeta'}, 'works': {'Vita Nicephori': ['Page', 'line']}}, 'Eunicus Comic.': {'tlg_id': 'TLG0459', 'names': {'name_authtab': 'Eunicus Comic.', 'name_idt': 'Eunicus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Anonymi In Aristotelis Librum Alterum Analyticorum Posteriorum Commentarium': {'tlg_id': 'TLG9004', 'names': {'name_authtab': 'Anonymi In Aristotelis Librum Alterum Analyticorum Posteriorum Commentarium', 'name_idt': 'Anonymi In Aristotelis Librum Alterum Analyticorum Posteriorum Commentarium'}, 'works': {'?Anonymi in analyticorum posteriorum librum alterum commentarium': ['Volume', 'page', 'line']}}, 'Molpis Hist.': {'tlg_id': 'TLG1516', 'names': {'name_authtab': 'Molpis Hist.', 'name_idt': 'Molpis Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Telestes Lyr.': {'tlg_id': 'TLG0377', 'names': {'name_authtab': 'Telestes Lyr.', 'name_idt': 'Telestes Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Cyrillus Biogr.': {'tlg_id': 'TLG2877', 'names': {'name_authtab': 'Cyrillus Biogr.', 'name_idt': 'Cyrillus Biogr.'}, 'works': {'Vita Theodosii': ['Page', 'line'], 'Vita Cyriaci': ['Page', 'line'], 'Vita Euthymii': ['Page', 'line'], 'Vita Joannis Hesychastae': ['Page', 'line'], 'Vita Theognii': ['Page', 'line'], 'Vita Sabae': ['Page', 'line'], 'Vita Gerasimi [Sp.]': ['Page', 'line'], 'Vita Abramii': ['Page', 'line']}}, 'Onasander Tact.': {'tlg_id': 'TLG0648', 'names': {'name_authtab': 'Onasander Tact.', 'name_idt': 'Onasander Tact.'}, 'works': {'Strategicus': ['Chapter', 'section', 'line']}}, 'Archimedes Geom.': {'tlg_id': 'TLG0552', 'names': {'name_authtab': 'Archimedes Geom.', 'name_idt': 'Archimedes Geom.'}, 'works': {'': ['Liber assumptorum', 'Volume', 'page', 'line'], 'Ad Eratosthenem methodus': ['Volume', 'page', 'line'], 'De planorum aequilibriis': ['Volume', 'page', 'line'], 'De lineis spiralibus': ['Volume', 'page', 'line'], 'Stomachion': ['Volume', 'page', 'line'], 'De conoidibus et sphaeroidibus': ['Volume', 'page', 'line'], 'Problema bovinum': ['Volume', 'page', 'line'], 'Dimensio circuli': ['Volume', 'page', 'line'], 'Arenarius': ['Volume', 'page', 'line'], 'Problema bovinum [Dub.]': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Quadratura parabolae': ['Volume', 'page', 'line'], 'De corporibus fluitantibus': ['Volume', 'page', 'line'], 'De sphaera et cylindro': ['Volume', 'page', 'line']}}, 'Heracliti Epistulae': {'tlg_id': 'TLG1412', 'names': {'name_authtab': 'Pseudo-Heracliti Epistulae', 'name_idt': 'Heracliti Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Themison Hist.': {'tlg_id': 'TLG1713', 'names': {'name_authtab': 'Themison Hist.', 'name_idt': 'Themison Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Philostratus Soph.': {'tlg_id': 'TLG0638', 'names': {'name_authtab': 'Flavius Philostratus Soph.', 'name_idt': 'Philostratus Soph.'}, 'works': {'': ['Vitae sophistarum', 'Chapter', 'Olearius page', 'line'], 'Nero': ['Olearius page', 'line'], 'Vita Apollonii': ['Chapter', 'section', 'line'], 'Heroicus': ['Olearius page', 'line'], 'Epigramma': ['Book', 'epigram', 'line'], 'De gymnastica': ['Section', 'line'], 'Epistulae et dialexeis': ['Section', '\x14epistle or discourse', 'line']}}, 'Arrianus Hist., Phil.': {'tlg_id': 'TLG0074', 'names': {'name_authtab': 'Flavius Arrianus Hist. et Phil.', 'name_idt': 'Arrianus Hist., Phil.'}, 'works': {'Alexandri anabasis': ['Book', 'chapter', 'section', 'line'], 'EHistoria successorum Alexandri (fragmenta ap. Photium, Bibl. cod. 92)': ['Fragment', 'line'], 'Parthicorum fragmenta': ['Fragment', 'line'], 'Periplus ponti Euxini': ['Chapter', 'section', 'line'], 'Bithynicorum fragmenta': ['Fragment', 'line'], 'Cynegeticus': ['Chapter', 'section', 'line'], 'Fragmenta de rebus physicis': ['Section', 'line'], 'Acies contra Alanos': ['Section', 'line'], '6Parthicorum fragmenta (ap. Joannem Lydum et Syncellum)': ['line'], 'Tactica': ['Chapter', 'section', 'line'], 'Fragmentum (PSI 12.1284)': ['Column', 'line'], 'XFragmenta incerta (utrum e Parthicis an ex historia successorum Alexandri desumpta sint)': ['Fragment', 'line'], '"Fragmentum ex historia Alanica (?)': ['line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Epistula ad Lucium Gellium': ['Section', 'line'], 'EHistoria successorum Alexandri (fragmenta ap. Photium, Bibl. cod. 82)': ['Section', 'line'], 'Historia Indica': ['Chapter', 'section', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Idomeneus Hist.': {'tlg_id': 'TLG1442', 'names': {'name_authtab': 'Idomeneus Hist.', 'name_idt': 'Idomeneus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Bion Hist.': {'tlg_id': 'TLG1871', 'names': {'name_authtab': 'Bion Hist.', 'name_idt': 'Bion Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Herodes Atticus Soph.': {'tlg_id': 'TLG1426', 'names': {'name_authtab': 'Herodes Atticus Soph.', 'name_idt': 'Herodes Atticus Soph.'}, 'works': {'$*PERI\\ POLITEI/AS& [Dub.]': ['Section', 'line']}}, 'Polyzelus Comic.': {'tlg_id': 'TLG0499', 'names': {'name_authtab': 'Polyzelus Comic.', 'name_idt': 'Polyzelus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Oechaliae Halosis': {'tlg_id': 'TLG1546', 'names': {'name_authtab': 'Oechaliae Halosis', 'name_idt': 'Oechaliae Halosis'}, 'works': {'7Oechaliae halosis (fragmenta) (fort. auctore Creophylo)': ['Fragment', 'line']}}, '[Aristides] Hist.': {'tlg_id': 'TLG2194', 'names': {'name_authtab': '[Aristides] Hist.', 'name_idt': '[Aristides] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Phrynichus Comic.': {'tlg_id': 'TLG0496', 'names': {'name_authtab': 'Phrynichus Comic.', 'name_idt': 'Phrynichus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Diogenes Laertius Biogr.': {'tlg_id': 'TLG0004', 'names': {'name_authtab': 'Diogenes Laertius Biogr.', 'name_idt': 'Diogenes Laertius Biogr.'}, 'works': {'Vitae philosophorum': ['Book', 'section', 'line', '¶¶´', '¶´\x15\x15¶\x16³\x17\x17´\x17\x17´´\x19"#¶$¶$³%´%´\'´¶(¶(¶¶¶)¶)³,³¶.¶´/¶´01¶´239³9´9³:´:¶:;;¶I¶¶´J¶¶¶J¶¶¶\x92J¶¶KKNRUU³U³UU´U¶VXX³X´XY³³³Y³´´[¶[\\¶\\¶`¶a´Fo'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Semonides Eleg., Iamb.': {'tlg_id': 'TLG0260', 'names': {'name_authtab': 'Semonides Eleg. et Iamb.', 'name_idt': 'Semonides Eleg., Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Bryson Phil.': {'tlg_id': 'TLG1231', 'names': {'name_authtab': 'Bryson Phil.', 'name_idt': 'Bryson Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Apollodorus Gramm.': {'tlg_id': 'TLG0549', 'names': {'name_authtab': 'Apollodorus Gramm.', 'name_idt': 'Apollodorus Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hera[clides] Trag.': {'tlg_id': 'TLG1844', 'names': {'name_authtab': 'Hera[clides] Trag.', 'name_idt': 'Hera[clides] Trag.'}, 'works': {'Titulus': ['line']}}, 'Theon Rhet.': {'tlg_id': 'TLG0607', 'names': {'name_authtab': 'Aelius Theon Rhet.', 'name_idt': 'Theon Rhet.'}, 'works': {'Progymnasmata': ['Page', 'line']}}, 'Antigonus Paradox.': {'tlg_id': 'TLG0568', 'names': {'name_authtab': 'Antigonus Paradox.', 'name_idt': 'Antigonus Paradox.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line'], ' Historiarum mirabilium collectio': ['Chapter', 'section', 'line'], 'Fragmentum et titulus': ['Fragment', 'line']}}, 'Apostolius Paroemiogr.': {'tlg_id': 'TLG9009', 'names': {'name_authtab': 'Michael Apostolius Paroemiogr.', 'name_idt': 'Apostolius Paroemiogr.'}, 'works': {'Collectio paroemiarum': ['Centuria', 'section', 'line']}}, 'Phaedimus Epic.': {'tlg_id': 'TLG1576', 'names': {'name_authtab': 'Phaedimus Epic.', 'name_idt': 'Phaedimus Epic.'}, 'works': {'Fragmentum': ['line']}}, 'Timostratus Comic.': {'tlg_id': 'TLG0516', 'names': {'name_authtab': 'Timostratus Comic.', 'name_idt': 'Timostratus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Tituli': ['Play', 'fragment', 'line']}}, 'Araros Comic.': {'tlg_id': 'TLG0415', 'names': {'name_authtab': 'Araros Comic.', 'name_idt': 'Araros Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Euphanes Comic.': {'tlg_id': 'TLG0396', 'names': {'name_authtab': 'Euphanes Comic.', 'name_idt': 'Euphanes Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Scythinus Poet. Phil.': {'tlg_id': 'TLG0259', 'names': {'name_authtab': 'Scythinus Poet. Phil.', 'name_idt': 'Scythinus Poet. Phil.'}, 'works': {'Fragmentum': ['line', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Bolus Med., Phil.': {'tlg_id': 'TLG1306', 'names': {'name_authtab': 'Bolus Med. et Phil.', 'name_idt': 'Bolus Med., Phil.'}, 'works': {'Testimonium': ['Fragment', 'line'], '>$*PERI\\ SUMPAQEIW=N KAI\\ A)NTIPAQEIW=N& (sub nomine Democriti)': ['Section', 'line'], 'iPhysica et mystica (fort. opus $*XEIRO/MHKTA&) (sub nomine Democriti) (e cod. Venet. Marc. 299, fol. 66v)': ['Volume', 'page', 'line'], 'Testimonia': ['line', 'fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'RAd Leucippem (sub nomine Democriti) [Sp.] (e cod. Paris. B.N. gr. 2327, fol. 258r)': ['Volume', 'page', 'line']}}, 'Polemon Soph.': {'tlg_id': 'TLG1617', 'names': {'name_authtab': 'Marcus Antonius Polemon Soph.', 'name_idt': 'Polemon Soph.'}, 'works': {'Fragmentum physiognomonicum': ['Page', 'line'], 'Declamationes': ['Declamation', 'section', 'line']}}, 'Anonymus Manichaeus Biogr.': {'tlg_id': 'TLG4282', 'names': {'name_authtab': 'Anonymus Manichaeus Biogr.', 'name_idt': 'Anonymus Manichaeus Biogr.'}, 'works': {'N$*PERI\\ TH=S GE/NNHS TOU= SW/MATOS AU)TOU= &(%6 Codex Manichaicus Coloniensis)': ['Codex page', 'line']}}, 'Callistratus Soph.': {'tlg_id': 'TLG4091', 'names': {'name_authtab': 'Callistratus Soph.', 'name_idt': 'Callistratus Soph.'}, 'works': {'Statuarum descriptiones': ['Chapter', 'section', 'line']}}, 'Dionysius Epic.': {'tlg_id': 'TLG1326', 'names': {'name_authtab': 'Dionysius Epic.', 'name_idt': 'Dionysius Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Libanius Rhet., Soph.': {'tlg_id': 'TLG2200', 'names': {'name_authtab': 'Libanius Rhet. et Soph.', 'name_idt': 'Libanius Rhet., Soph.'}, 'works': {'Orationes 1-64': ['Oration', 'section', 'line'], '5Epistularum Basilii et Libanii quod fertur commercium': ['Epistle', 'section', 'line'], 'Epistulae pseudepigraphae': ['Epistle', 'section', 'line'], '(Declamatio 3 (Legatio Menelai, Theorema)': ['Section', 'line'], 'Fragmenta de declamationibus': ['Fragment', 'section', 'line'], 'Epistulae 1-1544': ['Epistle', 'section', 'line'], 'Characteres epistolici [Sp.]': ['Section', 'line'], '#Argumenta orationum Demosthenicarum': ['Oration', 'section', 'line'], 'Epigramma': ['Book', 'epigram', 'line'], 'Progymnasmata': ['Progymnasma', 'section', 'subsection', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Declamationes 1-51': ['Declamation', '(subdivision)', 'section', 'line']}}, 'Proxenus Hist.': {'tlg_id': 'TLG1638', 'names': {'name_authtab': 'Proxenus Hist.', 'name_idt': 'Proxenus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pappus Alchem.': {'tlg_id': 'TLG4326', 'names': {'name_authtab': 'Pappus Alchem.', 'name_idt': 'Pappus Alchem.'}, 'works': {'F$*PA/PPOU FILOSO/FOU [2O(/RKOS]2 &(e cod. Venet. Marc. 299, fol. 184v)': ['Volume', 'page', 'line']}}, 'Theopompus Comic.': {'tlg_id': 'TLG0513', 'names': {'name_authtab': 'Theopompus Comic.', 'name_idt': 'Theopompus Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Prodromus Poeta, Polyhist.': {'tlg_id': 'TLG2721', 'names': {'name_authtab': 'Theodorus Prodromus Poeta et Polyhist.', 'name_idt': 'Prodromus Poeta, Polyhist.'}, 'works': {',Epithalamium fortunatissimis caesaris filiis': ['Page', 'line'], '&Epitaphius in Theodoram nurum Bryennii': ['line']}}, 'Mace(donius) Lyr.': {'tlg_id': 'TLG0202', 'names': {'name_authtab': 'Mace(donius) Lyr.', 'name_idt': 'Mace(donius) Lyr.'}, 'works': {'/Paean in Apollinem et Aesculapium (IG 3.1.171b)': ['line']}}, 'Athanasius Soph.': {'tlg_id': 'TLG4238', 'names': {'name_authtab': 'Athanasius Soph.', 'name_idt': 'Athanasius Soph.'}, 'works': {';Prolegomena in Hermogenis librum $PERI\\ STA/SEWN &(epitome)': ['Volume', 'page', 'line']}}, 'Herodotus Hist.': {'tlg_id': 'TLG0016', 'names': {'name_authtab': 'Herodotus Hist.', 'name_idt': 'Herodotus Hist.'}, 'works': {'Historiae': ['Book', 'section', 'line']}}, 'Phaenias Phil.': {'tlg_id': 'TLG1578', 'names': {'name_authtab': 'Phaenias Phil.', 'name_idt': 'Phaenias Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymi De Barbarismo Et Soloecismo Gramm.': {'tlg_id': 'TLG1129', 'names': {'name_authtab': 'Anonymi De Barbarismo Et Soloecismo Gramm.', 'name_idt': 'Anonymi De Barbarismo Et Soloecismo Gramm.'}, 'works': {'De barbarismo et soloecismo': ['Page', 'line']}}, 'Lexica In Opera Gregorii Nazianzeni': {'tlg_id': 'TLG4303', 'names': {'name_authtab': 'Lexica In Opera Gregorii Nazianzeni', 'name_idt': 'Lexica In Opera Gregorii Nazianzeni'}, 'works': {'cLexicon in carmina Gregorii Nazianzeni (%6 Lexicon Casinense) (e cod. Casinensi Arch. Abbat. T 550)': ['', 'Alphabetic letter', 'line'], 'cLexicon in orationes Gregorii Nazianzeni (%6 $*LE/CEIS E)K TOU= *QEOLO/GOU&) (e cod. Barocciano 50)': ['', 'Alphabetic letter', 'page', 'line'], 'XLexicon in carmina Gregorii Nazianzeni (ordine alphabetico) (e cod. Paris. Coislin. 394)': ['', 'Alphabetic letter', 'lemma', 'line'], '7Lexicon in carmina Gregorii Nazianzeni (ordine versuum)': ['Lemma', 'line']}}, 'Leontius Mech.': {'tlg_id': 'TLG4167', 'names': {'name_authtab': 'Leontius Mech.', 'name_idt': 'Leontius Mech.'}, 'works': {'!De sphaerae Arateae constructione': ['Section', 'line']}}, 'Martyrium Cononis': {'tlg_id': 'TLG2008', 'names': {'name_authtab': 'Martyrium Cononis', 'name_idt': 'Martyrium Cononis'}, 'works': {'': ['Martyrium Cononis', 'Chapter', 'section', 'line']}}, 'Philo Judaeus Phil.': {'tlg_id': 'TLG0018', 'names': {'name_authtab': 'Philo Judaeus Phil.', 'name_idt': 'Philo Judaeus Phil.'}, 'works': {'': ['De opificio mundi', 'Section', 'line'], 'De aeternitate mundi': ['Section', 'line'], '&Quod deterius potiori insidiari soleat': ['Section', 'line'], 'In Flaccum': ['Section', 'line'], 'De sobrietate': ['Section', 'line'], 'De gigantibus': ['Section', 'line'], 'Legum allegoriarum libri i-iii': ['Book', 'section', 'line'], 'De Josepho': ['Section', 'line'], 'Quod omnis probus liber sit': ['Section', 'line'], 'De providentia': ['Fragment', 'section', 'line'], 'De agricultura': ['Section', 'line'], 'De confusione linguarum': ['Section', 'line'], 'Fragmenta': ['Fragment', 'line'], 'De vita Mosis (lib. i-ii)': ['Book', 'section', 'line'], 'De mutatione nominum': ['Section', 'line'], '3$*PERI\\ A)RIQMW=N &sive$ *)ARIQMHTIKA/ &(fragmenta)': ['Fragment', 'line'], '"De specialibus legibus (lib. i-iv)': ['Book', 'section', 'line'], 'De ebrietate ii': ['Fragment', 'line'], 'Quod deus sit immutabilis': ['Section', 'line'], 'De Abrahamo': ['Section', 'line'], '*Fragmenta incerti operis (P. Oxy. 18.2158)': ['line'], 'De sacrificiis Abelis et Caini': ['Section', 'line'], '%Hypothetica sive Apologia pro Judaeis': ['Page', 'line'], 'De fuga et inventione': ['Section', 'line'], 'De congressu eruditionis gratia': ['Section', 'line'], 'De deo (P. Berol. inv. 17027)': ['line'], 'De plantatione': ['Section', 'line'], 'Quis rerum divinarum heres sit': ['Section', 'line'], 'De cherubim': ['Section', 'line'], 'Legatio ad Gaium': ['Section', 'line'], 'De migratione Abrahami': ['Section', 'line'], 'De virtutibus': ['Section', 'line'], 'De decalogo': ['Section', 'line'], '"Quaestiones in Genesim (fragmenta)': ['Book', 'fragment', 'line'], '+De praemiis et poenis %7 De exsecrationibus': ['Section', 'line'], 'De posteritate Caini': ['Section', 'line'], 'De ebrietate': ['Section', 'line'], '!Quaestiones in Exodum (fragmenta)': ['Book', 'fragment', 'line'], 'De vita contemplativa': ['Section', 'line'], 'De somniis (lib. i-ii)': ['Book', 'section', 'line']}}, 'Isis Prophetissa] Alchem.': {'tlg_id': 'TLG4334', 'names': {'name_authtab': '[Isis Prophetissa] Alchem.', 'name_idt': 'Isis Prophetissa] Alchem.'}, 'works': {'c$*)/ISIS PROFH=TIS TW=| UI(W=| (/*WRW| &(redactio secunda) (e cod. Paris. B.N. gr. 2250, fol. 217r)': ['Volume', 'page', 'line'], 'a$*)/ISIS PROFH=TIS TW=| UI(W=| (/*WRW| &(redactio prima) (e cod. Paris. B.N. gr. 2327, fol. 256r)': ['Volume', 'page', 'line']}}, 'Pronomus Lyr.': {'tlg_id': 'TLG0397', 'names': {'name_authtab': 'Pronomus Lyr.', 'name_idt': 'Pronomus Lyr.'}, 'works': {'Titulus': ['line']}}, 'Eubulides Comic.': {'tlg_id': 'TLG0457', 'names': {'name_authtab': 'Eubulides Comic.', 'name_idt': 'Eubulides Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Euaretus Trag.': {'tlg_id': 'TLG1096', 'names': {'name_authtab': 'Euaretus Trag.', 'name_idt': 'Euaretus Trag.'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Erycius Poeta': {'tlg_id': 'TLG2653', 'names': {'name_authtab': 'Erycius Poeta', 'name_idt': 'Erycius Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Origenes Theol.': {'tlg_id': 'TLG2042', 'names': {'name_authtab': 'Origenes Theol.', 'name_idt': 'Origenes Theol.'}, 'works': {'': ['Homiliae in Lucam', 'Homily', 'page', 'line'], '0Commentarium in evangelium Matthaei (lib. 10-11)': ['Book', 'section', 'line'], '-Scholia in Lucam (fragmenta e cod. Venet. 28)': ['Volume', 'page', 'line'], ' Homiliae in Genesim (in catenis)': ['Page', 'line'], 'Scholia in Canticum canticorum': ['Volume', 'page', 'line'], '<Commentarii in epistulam ad Romanos (e cod. Vindob. gr. 166)': ['Fragment', 'line'], '*Fragmentum ex homiliis in Acta apostolorum': ['Volume', 'page', 'line'], 'Fragmenta de principiis': ['Fragment', 'line'], 'Dialogus cum Heraclide': ['Section', 'line'], '"Fragmenta in Jeremiam (in catenis)': ['Fragment', 'line'], 'Excerpta in Psalmos [Dub.]': ['Volume', 'page', 'line'], '(Scholia in Apocalypsem (scholia 1, 3-39)': ['Scholion', 'line'], "'Selecta in Exodum (fragmenta e catenis)": ['Volume', 'page', 'line'], 'In Ruth (fragmentum)': ['Volume', 'page', 'line'], '/Adnotationes in Leviticum (fragmenta e catenis)': ['Volume', 'page', 'line'], '>Commentariorum series in evangelium Matthaei (Mt. 22.34-27.63)': ['Page', 'line', 'î§\x8cà\x15'], 'RFragmenta ex commentariis in Exodum (%6 In illud: Induravit dominus cor Pharaonis)': ['Volume', 'page', 'line'], '1Fragmentum in librum primum Regnorum (in catenis)': ['line'], '0In Jesu Nave homiliae xxvi (fragmenta e catenis)': ['Page', 'line'], 'Homiliae in Ezechielem': ['Page', 'line', ''], '0Fragmenta ex commentariis in evangelium Matthaei': ['Fragment', 'line'], '*Selecta in Jesu Nave (fragmenta e catenis)': ['Volume', 'page', 'line'], '=Commentarii in epistulam ad Romanos (I.1-XII.21) (in catenis)': ['Section', 'line'], '8De engastrimytho (%6 Homilia in i Reg. [i Sam.] 28.3-25)': ['Section', 'line'], '&Fragmenta ex commentariis in Proverbia': ['Volume', 'page', 'line'], '"Fragmentum ex commentariis in Osee': ['Volume', 'page', 'line'], 'De oratione': ['Chapter', 'section', 'line'], '(Fragmentum in Lamentationes (in catenis)': ['line'], '(Selecta in Genesim (fragmenta e catenis)': ['Volume', 'page', 'line'], 'Adnotationes in Genesim': ['Volume', 'page', 'line'], '0Commentarium in evangelium Matthaei (lib. 12-17)': ['Book', 'chapter', 'line'], "'Fragmenta ex commentariis in Ezechielem": ['Volume', 'page', 'line'], '%De resurrectione libri ii (fragmenta)': ['Volume', 'page', 'line'], "'Fragmenta in Lamentationes (in catenis)": ['Fragment', 'line'], 'Adnotationes in Numeros': ['Volume', 'page', 'line'], 'CFragmenta ex commentariis in epistulam i ad Corinthios (in catenis)': ['Section', 'line'], 'LHomiliae in Job (fragmenta in catenis, typus II) (e codd. Marc. gr. 21, 538)': ['Volume', 'page', 'line'], 'GEpistula quibusdam qui ei obtrectabant (ad Alexandrum Hierosolymitanum)': ['line'], ',Fragmenta in evangelium Joannis (in catenis)': ['Fragment', 'line'], '$Fragmenta in Jeremiam (e Philocalia)': ['Fragment', 'section', 'line'], 'IIn epistulam ad Hebraeos homiliae (fragmenta ap. Eusebium, HE 6.25.11-14)': ['Volume', 'page', 'line'], '*Selecta in Leviticum (fragmenta e catenis)': ['Volume', 'page', 'line'], 'Homiliae in Exodum': ['Page', 'line'], 'Epistula ad Africanum': ['Volume', 'page', 'line'], '@In Canticum canticorum (libri duo quos scripsit in adulescentia)': ['Volume', 'page', 'line'], 'Selecta in Numeros': ['Volume', 'page', 'line'], '&Scholia in Apocalypsem (scholia 28-38)': ['Scholion', 'line'], '&Epistula ad ignotum (Fabianum Romanum)': ['line'], '"Commentarii in Genesim (fragmenta)': ['Volume', 'page', 'line'], 'Adnotationes in Judices': ['Volume', 'page', 'line'], '+Selecta in Ezechielem (fragmenta e catenis)': ['Volume', 'page', 'line'], 'Contra Celsum': ['Book', 'section', 'line'], '7Commentarii in evangelium Joannis (lib. 19, 20, 28, 32)': ['Book', 'chapter', 'section', 'line'], 'De principiis': ['Book', 'chapter', 'section', 'line'], '/Selecta in Psalmos [Dub.] (fragmenta e catenis)': ['Volume', 'page', 'line'], '2Commentarii in Romanos (cod. Athon. Laura 184 B64)': ['Chapter', 'section', 'line'], 'In Jeremiam (homiliae 1-11)': ['Homily', 'section', 'line'], '6Adnotationes in Jesu filium Nave (fragmenta e catenis)': ['Volume', 'page', 'line'], '>Commentarii in evangelium Joannis (lib. 1, 2, 4, 5, 6, 10, 13)': ['Book', 'chapter', 'section', 'line'], '@Homiliae in Job (fragmenta in catenis, typus I) (e codd. Paris.)': ['Volume', 'page', 'line'], 'Adnotationes in Exodum': ['Volume', 'page', 'line'], 'BHomiliae in Job (fragmenta in catenis, typus I%7II) (e codd. Vat.)': ['Page', 'line'], '3Adnotationes in Deuteronomium (fragmenta e catenis)': ['Volume', 'page', 'line'], '(Selecta in Judices (fragmenta e catenis)': ['Volume', 'page', 'line'], '.Selecta in Deuteronomium (fragmenta e catenis)': ['Volume', 'page', 'line'], '*Libri x in Canticum canticorum (fragmenta)': ['Page', 'line'], '!Fragmenta in Psalmos 1-150 [Dub.]': ['Psalm', 'verse', 'line', '©ö', 'ö³¶¶¤Íö¶ù««««\x92\x8e«\x8e¶\x92«««»', '©ö', 'm(´'], 'Scholia in Matthaeum': ['Volume', 'page', 'line'], ' Fragmenta in evangelium Matthaei': ['Page', 'line'], 'Fragmenta alia de principiis': ['Fragment', 'line'], 'cPhilocalia sive Ecloga de operibus Origenis a Basilio et Gregorio Nazianzeno facta (cap. 23, 25-27)': ['Chapter', 'section', 'line'], '?Fragmenta ex commentariis in epistulam ad Ephesios (in catenis)': ['Section', 'line'], 'Fragmenta in Lucam (in catenis)': ['Fragment', 'line'], 'In Jeremiam (homiliae 12-20)': ['Homily', 'section', 'line'], 'HCommentarii in Romanos (III.5-V.7) (P. Cair. 88748 %7 cod. Vat. gr. 762)': ['Page', 'line'], '1Epistula ad Gregorium Thaumaturgum (e Philocalia)': ['Section', 'line'], '0Fragmenta in librum primum Regnorum (in catenis)': ['Fragment', 'line'], '^Philocalia sive Ecloga de operibus Origenis a Basilio et Gregorio Nazianzeno facta (cap. 1-27)': ['Chapter', 'section', 'line'], 'Exhortatio ad martyrium': ['Section', 'line'], ',Expositio in Proverbia (fragmenta e catenis)': ['Volume', 'page', 'line'], 'Homiliae in Leviticum': ['Page', 'line']}}, 'Eustratius Phil.': {'tlg_id': 'TLG4031', 'names': {'name_authtab': 'Eustratius Phil.', 'name_idt': 'Eustratius Phil.'}, 'works': {'/In Aristotelis ethica Nicomachea vi commentaria': ['Page', 'line'], 'DIn Aristotelis analyticorum posteriorum librum secundum commentarium': ['Page', 'line'], '.In Aristotelis ethica Nicomachea i commentaria': ['Page', 'line']}}, 'Praecepta Salubria': {'tlg_id': 'TLG0663', 'names': {'name_authtab': 'Praecepta Salubria', 'name_idt': 'Praecepta Salubria'}, 'works': {'Praecepta salubria': ['line']}}, 'Scholia In Dionysium Periegetam': {'tlg_id': 'TLG5019', 'names': {'name_authtab': 'Scholia In Dionysium Periegetam', 'name_idt': 'Scholia In Dionysium Periegetam'}, 'works': {'jScholia in Dionysii periegetae orbis descriptionem (scholia vetera) (olim sub auctore Demetrio Lampsaceno)': ['\x1eVita-verse of Orbis descriptio', 'line'], 'CScholia in Dionysii periegetae orbis descriptionem (scholia vetera)': ['Vita-scholion', 'line']}}, 'Anaximander Phil.': {'tlg_id': 'TLG0725', 'names': {'name_authtab': 'Anaximander Phil.', 'name_idt': 'Anaximander Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Philes Poeta, Scr. Rerum Nat.': {'tlg_id': 'TLG2718', 'names': {'name_authtab': 'Manuel Philes Poeta et Scr. Rerum Nat.', 'name_idt': 'Philes Poeta, Scr. Rerum Nat.'}, 'works': {'Carmina': ['Chapter', 'poem', 'line', 'ù', '', '\x17¶u'], 'Carmina inedita': ['Poem', 'line']}}, 'Parm(en)iscus Phil.': {'tlg_id': 'TLG2225', 'names': {'name_authtab': 'Parm(en)iscus Phil.', 'name_idt': 'Parm(en)iscus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Cleaenetus Trag.': {'tlg_id': 'TLG0332', 'names': {'name_authtab': 'Cleaenetus Trag.', 'name_idt': 'Cleaenetus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymi De Terrae Motibus': {'tlg_id': 'TLG2972', 'names': {'name_authtab': 'Anonymi De Terrae Motibus', 'name_idt': 'Anonymi De Terrae Motibus'}, 'works': {'': ['De terrae motibus', 'Page', 'line']}}, 'Lysippus Comic.': {'tlg_id': 'TLG0472', 'names': {'name_authtab': 'Lysippus Comic.', 'name_idt': 'Lysippus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Cosmas Indicopleustes Geogr.': {'tlg_id': 'TLG4061', 'names': {'name_authtab': 'Cosmas Indicopleustes Geogr.', 'name_idt': 'Cosmas Indicopleustes Geogr.'}, 'works': {'Topographia Christiana': ['Book', 'section', 'line', '', '', '', '', '', '', '', '', '', '', '\x12\x12\x12\x12\x8e\x12\x8e\x12\x92\x12\x8c\x12\x12\x8e\x13\x13\x13\x13\x8e\x13\x13\x13\x8e\x13\x13\x13\x14\x14\x14\x14\x8c\x14\x14\x14\x14\x14\x15\x15\x15\x15\x15\x15\x92\x15\x15\x15\x15\x15\x16\x16\x16\x8e\x16\x16\x16\x16\x17\x17\x17\x17\x92\x17\x92\x17\x17\x17\x17\x18\x8e\x18\x18\x18\x18\x18\x18\x18\x18\x19\x19\x8c\x19\x19\x8e\x19\x19\x19\x19\x8c\x1a\x1a\x1a\x1a\x1a\x1a\x1a\x1a\x8c\x1a\x1a\x1a\x1a\x1a\x1b\x1b\x1b\x1b\x1b\x1b\x1b\x1b\x1b\x8e\x1b\x1b\x1b\x1b\x1b\x1b\x8c\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1e\x1f\x8e\x1f\x1f\x8e\x1f\x1f\x1f\x1f\x1f\x8c\x1f\x1f\x8c\x8e \x8c \x8c\x8c\x8c\x8c\x8c""""""""\x92""###\x8c#######$$\x8e$$$$$\x8c$$$%%%\x8c%%\x8c%%%\x8c%%&&&&&\x8c&&&&\'\x8c\'\'\'\x8c\'\'\'\'\'((((\x8c((((((\x8e))))\x8c)\x8c)))\x8e)\x8e****\x8c*****+++\x8c+++\x8e++++\x8c++,,\x8e,,\x8e,,\x92,,\x8c,----\x8c-----\x8c.\x92..\x8c..\x8c...\x8c../\x8e/////////0000000\x8c000111111\x8e1112\x8c2222\x922\x922333333\x8e333\x8c3444\x924\x8c4444\x924\x9245\x9255\x8e5555\x8e5666666667777\x8e7777777\x928\x8c88\x8c88\x8c88\x8c88\x8c8\x8c8999999999::::::::::;;;;\x92;\x8c;;;;\x92<<<<<<\x8c<<<<<<===\x8e=\x8e=\x92===\x8c\x8c>>>\x92>>>>>????\x8e???\x8c???@@@\x8c@\x8c@@\x8c@@@AA\x8eAA\x8eA\x8cAA\x8eA\x8eABBBBB\x8cBBB\x8cBCC\x8cCC\x8eCCCC\x8eCCC\x8eD\x8cDDDDD\x8eDDD\x8eEEEEEEEEFFFFFFF\x8eF\x8eFFGGG\x8eG\x8cGG\x8cGGGGGH\x8eH\x8eHHHHHHHHHHI\x8cIIIIIIII\x8eIJ\x8eJ\x8eJJJJ\x8eJJ\x8eJJKKKK\x8eKKKKK\x8cKK\x8eKLLLLLL\x8cLLL\x8cL\x8eLM\x92MMMMMMMMNN\x8cNNNNNNNNNNNOOOOOOOOOO\x8cOO\x8ePPPPPPPPPPPPPPQQQQQQQQQQ\x8cQQQ\x8cR\x8cRR\x8cR\x8cRR\x8cRRRSS\x92SSSSS\x8eS\x8cSTT\x8cTTTTTT\x8cîùÍ\x8e\x8eÖ\x0eß\x0e\x0f\x8e\x10\x10', '', '', '\x8e\x13\x13\x92\x14\x15\x18Æ\x19Ï\x1a\x1a\x1a\x1a\x8e\x1b\x8c\x1e\x1e\x1f\x1f\x1f\x1f\x1f¤\x8c\x1f \x92\x92""\x92#Ë$Ò$%ß%&&&\'î\'\'ó(÷(ù)*\x8e*\x92**+\x92+,,,-§-©----\x8c-./Â00Ç0Ì1Ò1112Û2Ý33\x92355÷\x8e6\x8c68:CÒCCÛ\x8eD\x8cDG\x92GJJ\x92JJ\x8cJJ\x8eKKKK\x8cKKK\x8e\x92K\x8eKL\x8eLLLLLLMMMMMMNN\x92N\x8cN\x8eNNNO\x8eO\x8cO\x8cO¾OPPÃPPPÇ\x8cPPQ\x8cR']}}, 'Timotheus Comic.': {'tlg_id': 'TLG0517', 'names': {'name_authtab': 'Timotheus Comic.', 'name_idt': 'Timotheus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Tragica Adespota': {'tlg_id': 'TLG1738', 'names': {'name_authtab': 'Tragica Adespota', 'name_idt': 'Tragica Adespota'}, 'works': {'Fragmenta': ['Fragment', 'line', 'Ñ', 'ÑÝÉÞ\x0eîî', 'Ñ', 'Ñ']}}, 'Charondas Nomographus Phil.': {'tlg_id': 'TLG1259', 'names': {'name_authtab': 'Charondas Nomographus Phil.', 'name_idt': 'Charondas Nomographus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Theodoretus Scr. Eccl., Theol.': {'tlg_id': 'TLG4089', 'names': {'name_authtab': 'Theodoretus Scr. Eccl. et Theol.', 'name_idt': 'Theodoretus Scr. Eccl., Theol.'}, 'works': {'De sancta trinitate': ['Volume', 'page', 'line'], 'Interpretatio in Psalmos': ['Volume', 'page', 'line'], 'Eranistes': ['Page', 'line'], 'Commentaria in Isaiam': ['Section', 'line'], 'Interpretatio in Danielem': ['Volume', 'page', 'line'], '/Epistulae: Collectio Patmensis (epistulae 1-52)': ['Epistle', 'line'], '&Interpretatio in xii prophetas minores': ['Volume', 'page', 'line'], 'Historia ecclesiastica': ['Page', 'line'], '!Explanatio in Canticum canticorum': ['Volume', 'page', 'line'], 'Interpretatio in Jeremiam': ['Volume', 'page', 'line'], '1Epistulae: Collectio Sirmondiana (epistulae 1-95)': ['Epistle', 'line'], 'Quaestiones in Octateuchum': ['Page', 'line'], ',Libellus contra Nestorium ad Sporacium [Sp.]': ['Volume', 'page', 'line'], 'Interpretatio in Ezechielem': ['Volume', 'page', 'line'], 'Graecarum affectionum curatio': ['Book', 'section', 'line'], 'qAd eos qui in Euphratesia et Osrhoena regione, Syria, Phoenicia et Cilicia vitam monasticam degunt (ex epistula 1': ['Volume', 'page', 'line'], '+Interpretatio in xiv epistulas sancti Pauli': ['Volume', 'page', 'line'], '"Historia religiosa (%6 Philotheus)': ['Vita', 'section', 'line'], '3Epistulae: Collectio Sirmondiana (epistulae 96-147)': ['Epistle', 'line'], 'De providentia orationes decem': ['Volume', 'page', 'line'], 'De incarnatione domini': ['Volume', 'page', 'line'], '/Quaestiones in libros Regnorum et Paralipomenon': ['Volume', 'page', 'line'], 'FQuod unicus filius sit dominus noster Jesus Christus (ex epistula 151)': ['Volume', 'page', 'line'], '0Quaestiones et responsiones ad orthodoxos [Dub.]': ['Page', 'line'], '!Haereticarum fabularum compendium': ['Volume', 'page', 'line']}}, 'Aristides Apol.': {'tlg_id': 'TLG1184', 'names': {'name_authtab': 'Aristides Apol.', 'name_idt': 'Aristides Apol.'}, 'works': {'Fragmenta (P. Lond. 2486)': ['line'], 'Fragmenta (P. Oxy. 15.1778)': ['Fragment', 'line'], 'Fragmenta': ['Chapter', 'section', 'line']}}, 'Chaeremon Trag.': {'tlg_id': 'TLG0328', 'names': {'name_authtab': 'Chaeremon Trag.', 'name_idt': 'Chaeremon Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philemon Comic.': {'tlg_id': 'TLG0487', 'names': {'name_authtab': 'Philemon Comic.', 'name_idt': 'Philemon Comic.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Pythaenetus Hist.': {'tlg_id': 'TLG1649', 'names': {'name_authtab': 'Pythaenetus Hist.', 'name_idt': 'Pythaenetus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Euthydemus Med.': {'tlg_id': 'TLG0897', 'names': {'name_authtab': 'Euthydemus Med.', 'name_idt': 'Euthydemus Med.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Pausanias Perieg.': {'tlg_id': 'TLG0525', 'names': {'name_authtab': 'Pausanias Perieg.', 'name_idt': 'Pausanias Perieg.'}, 'works': {'Graeciae descriptio': ['Book', 'chapter', 'section', 'line']}}, 'Photius Lexicogr., Scr. Eccl., Theol.': {'tlg_id': 'TLG4040', 'names': {'name_authtab': 'Photius Lexicogr., Scr. Eccl. et Theol.', 'name_idt': 'Photius Lexicogr., Scr. Eccl., Theol.'}, 'works': {'#Commentarii in Joannem (in catenis)': ['Fragment', 'line'], '/Fragmenta in epistulam ad Ephesios (in catenis)': ['Page', 'line'], '%Commentarii in Matthaeum (in catenis)': ['Fragment', 'line'], '2Fragmentum in epistulam ad Philemonem (in catenis)': ['Page', 'line'], '': ['Lexicon', '', 'Alphabetic letter', 'Page', 'line'], '3Fragmenta in epistulam I ad Corinthios (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Galatas (in catenis)': ['Page', 'line'], '.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], '4Fragmentum in epistulam ii ad Timotheum (in catenis)': ['Page', 'line'], '3Fragmenta in epistulam ad Philippenses (in catenis)': ['Page', 'line'], '2Fragmenta in epistulam i ad Timotheum (in catenis)': ['Page', 'line'], 'Bibliotheca': ['Codex', 'Bekker page', 'line'], ':Fragmenta in epistulam ii ad Thessalonicenses (in catenis)': ['Page', 'line'], '4Fragmenta in epistulam ii ad Corinthios (in catenis)': ['Page', 'line'], '/Fragmenta in epistulam ad Hebraeos (in catenis)': ['Page', 'line'], 'Epigramma': ['Book', 'epigram', 'line'], '2Fragmenta in epistulam ad Colossenses (in catenis)': ['Page', 'line'], '9Fragmenta in epistulam I ad Thessalonicenses (in catenis)': ['Page', 'line']}}, 'Carystius Hist.': {'tlg_id': 'TLG1245', 'names': {'name_authtab': 'Carystius Hist.', 'name_idt': 'Carystius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Diodorus Phil.': {'tlg_id': 'TLG2681', 'names': {'name_authtab': 'Diodorus Phil.', 'name_idt': 'Diodorus Phil.'}, 'works': {'Fragmentum': ['line']}}, 'Philemon Junior Comic.': {'tlg_id': 'TLG0488', 'names': {'name_authtab': 'Philemon Junior Comic.', 'name_idt': 'Philemon Junior Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Severus Phil.': {'tlg_id': 'TLG2970', 'names': {'name_authtab': 'Severus Phil.', 'name_idt': 'Severus Phil.'}, 'works': {'$*PERI\\ YUXH=S &(fragmentum)': ['Page+column', 'line']}}, 'Theophilus Apol.': {'tlg_id': 'TLG1725', 'names': {'name_authtab': 'Theophilus Apol.', 'name_idt': 'Theophilus Apol.'}, 'works': {'Ad Autolycum': ['Book', 'section', 'line']}}, 'Eumachus Hist.': {'tlg_id': 'TLG1972', 'names': {'name_authtab': 'Eumachus Hist.', 'name_idt': 'Eumachus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Epistula A Martyribus Lugdunensibus': {'tlg_id': 'TLG1349', 'names': {'name_authtab': 'Epistula A Martyribus Lugdunensibus', 'name_idt': 'Epistula A Martyribus Lugdunensibus'}, 'works': {'/Fragmentum epistulae a martyribus Lugdunensibus': ['Page', 'line']}}, 'Aëtius Doxogr.': {'tlg_id': 'TLG0528', 'names': {'name_authtab': 'Aëtius Doxogr.', 'name_idt': 'Aëtius Doxogr.'}, 'works': {'(De placitis reliquiae (Stobaei excerpta)': ['Page', 'line'], '6De placitis reliquiae (Theodoreti et Nemesii excerpta)': ['Page', 'line']}}, 'Zaleucus Nomographus Phil.': {'tlg_id': 'TLG0601', 'names': {'name_authtab': 'Zaleucus Nomographus Phil.', 'name_idt': 'Zaleucus Nomographus Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Mamercus Eleg.': {'tlg_id': 'TLG1476', 'names': {'name_authtab': 'Mamercus Eleg.', 'name_idt': 'Mamercus Eleg.'}, 'works': {'Epigramma': ['Epigram', 'line']}}, 'Periplus Hannonis': {'tlg_id': 'TLG0064', 'names': {'name_authtab': 'Periplus Hannonis', 'name_idt': 'Periplus Hannonis'}, 'works': {'': ['Periplus Hannonis', 'Section', 'line']}}, '[Hermes] Alchem.': {'tlg_id': 'TLG4325', 'names': {'name_authtab': '[Hermes] Alchem.', 'name_idt': '[Hermes] Alchem.'}, 'works': {'m$*AI)/NIGMA TOU= FILOSOFIKOU= LI/QOU *(ERMOU= KAI\\ *)AGAQODAI/MONOS &(e cod. Paris. B.N. gr. 2327, fol. 234r)': ['Volume', 'page', 'line'], '8Aenigma (sine titulo) (e cod. Venet. Marc. 299, fol. 95)': ['Volume', 'page', 'line']}}, 'Stephanus Med., Phil.': {'tlg_id': 'TLG0724', 'names': {'name_authtab': 'Stephanus Med. et Phil.', 'name_idt': 'Stephanus Med., Phil.'}, 'works': {'?Commentarii in priorem Galeni librum therapeuticum ad Glauconem': ['Volume', 'page', 'line'], '#Scholia in Hippocratis de fracturis': ['Page', 'line'], '<Collyrium ophthalmicum (olim sub auctore Stephano Archiatro)': ['Page', 'line'], '#Scholia in Hippocratis prognosticon': ['Chapter', 'section', 'line']}}, 'Philosophus Anonymus Alchem.': {'tlg_id': 'TLG4329', 'names': {'name_authtab': 'Philosophus Anonymus Alchem.', 'name_idt': 'Philosophus Anonymus Alchem.'}, 'works': {'q$*)ANEPIGRA/FOU FILOSO/FOU KATA\\ A)KOLOUQI/AN XRH/SEWS E)MFAI=NON TO\\ TH=S XRUSOPOII/AS SUNEPTUGME/NON SU\\N QEW=|': ['Volume', 'page', 'line'], 'e$*)ANEPIGRA/FOU FILOSO/FOU PERI\\ QEI/OU U(/DATOS TH=S LEUKW/SEWS &(e cod. Venet. Marc. 299, fol. 78r)': ['Volume', 'page', 'line'], 'q$*)ANEPIGRA/FOU FILOSO/FOU PERI\\ TH=S QEI/AS KAI\\ I(ERA=S TE/XNHS FILOSO/FWN &(e codd. Venet. Marc. 299, fol. 181': ['Volume', 'page', 'line']}}, 'Cratinus Junior Comic.': {'tlg_id': 'TLG0435', 'names': {'name_authtab': 'Cratinus Junior Comic.', 'name_idt': 'Cratinus Junior Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Pompeius Macer Trag.': {'tlg_id': 'TLG0346', 'names': {'name_authtab': 'Pompeius Macer Trag.', 'name_idt': 'Pompeius Macer Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Apollonius Rhodius Epic.': {'tlg_id': 'TLG0001', 'names': {'name_authtab': 'Apollonius Rhodius Epic.', 'name_idt': 'Apollonius Rhodius Epic.'}, 'works': {'Argonautica': ['Book', 'line', "Íßó×\x1bíÇÝó´\x8cÈÞ2'"], 'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line']}}, '[Timotheus] Hist.': {'tlg_id': 'TLG2213', 'names': {'name_authtab': '[Timotheus] Hist.', 'name_idt': '[Timotheus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Isidorus Scriptor Hymnorum': {'tlg_id': 'TLG0359', 'names': {'name_authtab': 'Isidorus Scriptor Hymnorum', 'name_idt': 'Isidorus Scriptor Hymnorum'}, 'works': {'Hymni in Isim': ['Hymn', 'line']}}, 'Xenophilus Mus., Phil.': {'tlg_id': 'TLG2241', 'names': {'name_authtab': 'Xenophilus Mus. et Phil.', 'name_idt': 'Xenophilus Mus., Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Mimnermus Eleg.': {'tlg_id': 'TLG0255', 'names': {'name_authtab': 'Mimnermus Eleg.', 'name_idt': 'Mimnermus Eleg.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['line', 'fragment', 'line']}}, 'Democritus Hist.': {'tlg_id': 'TLG1305', 'names': {'name_authtab': 'Democritus Hist.', 'name_idt': 'Democritus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Martyrium Ignatii': {'tlg_id': 'TLG2657', 'names': {'name_authtab': 'Martyrium Ignatii', 'name_idt': 'Martyrium Ignatii'}, 'works': {'4Martyrium Ignatii Antiocheni (martyrium Antiochenum)': ['Chapter', 'section', 'line'], '0Martyrium Ignatii Antiocheni (martyrium Romanum)': ['Chapter', 'section', 'line']}}, 'Geminus Astron.': {'tlg_id': 'TLG1383', 'names': {'name_authtab': 'Geminus Astron.', 'name_idt': 'Geminus Astron.'}, 'works': {'Fragmenta optica [Dub.]': ['Page', 'line'], 'Calendarium [Sp.?]': ['Page', 'line'], 'Elementa astronomiae': ['Chapter', 'section', 'line']}}, 'Asterius Scr. Eccl.': {'tlg_id': 'TLG2060', 'names': {'name_authtab': 'Asterius Scr. Eccl.', 'name_idt': 'Asterius Scr. Eccl.'}, 'works': {'"Homilia 9 (ex Symeone Metaphraste)': ['Homily', 'page', 'line'], 'Homiliae 1-14': ['Homily', 'chapter', 'section', 'line']}}, 'Achilles Tatius Scr. Erot.': {'tlg_id': 'TLG0532', 'names': {'name_authtab': 'Achilles Tatius Scr. Erot.', 'name_idt': 'Achilles Tatius Scr. Erot.'}, 'works': {'Leucippe et Clitophon': ['Book', 'chapter', 'section', 'line']}}, 'Camaterus Astrol., Astron.': {'tlg_id': 'TLG3014', 'names': {'name_authtab': 'Joannes Camaterus Astrol. et Astron.', 'name_idt': 'Camaterus Astrol., Astron.'}, 'works': {'De zodiaco': ['line'], 'Introductio in astronomiam': ['line']}}, 'Asius Eleg., Epic.': {'tlg_id': 'TLG0242', 'names': {'name_authtab': 'Asius Eleg. et Epic.', 'name_idt': 'Asius Eleg., Epic.'}, 'works': {'Fragmenta epica': ['Fragment', 'line'], 'Fragmentum elegiacum': ['line']}}, 'Semus Gramm.': {'tlg_id': 'TLG1663', 'names': {'name_authtab': 'Semus Gramm.', 'name_idt': 'Semus Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Alexinus Phil.': {'tlg_id': 'TLG2607', 'names': {'name_authtab': 'Alexinus Phil.', 'name_idt': 'Alexinus Phil.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Anatolius Math., Phil.': {'tlg_id': 'TLG2577', 'names': {'name_authtab': 'Anatolius Math. et Phil.', 'name_idt': 'Anatolius Math., Phil.'}, 'works': {'5$*PERI\\ DEKA/DOS KAI\\ TW=N E)NTO\\S AU)TH=S A)RIQMW=N&': ['Page', 'line']}}, 'Pamphilus Poeta': {'tlg_id': 'TLG2634', 'names': {'name_authtab': 'Pamphilus Poeta', 'name_idt': 'Pamphilus Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Arius Didymus Doxogr.': {'tlg_id': 'TLG0529', 'names': {'name_authtab': 'Arius Didymus Doxogr.', 'name_idt': 'Arius Didymus Doxogr.'}, 'works': {'Physica (fragmenta)': ['Fragment', 'line'], '4Liber de philosophorum sectis (epitome ap. Stobaeum)': ['Page+column', 'line']}}, 'Callinus Eleg.': {'tlg_id': 'TLG0243', 'names': {'name_authtab': 'Callinus Eleg.', 'name_idt': 'Callinus Eleg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Callias Comic.': {'tlg_id': 'TLG0426', 'names': {'name_authtab': 'Callias Comic.', 'name_idt': 'Callias Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Doctrina Patrum': {'tlg_id': 'TLG7051', 'names': {'name_authtab': 'Doctrina Patrum', 'name_idt': 'Doctrina Patrum'}, 'works': {'MDoctrina patrum (fort. auctore Anastasio Sinai+ta vel Anastasio Apocrisiario)': ['Page', 'line']}}, 'Scythinus Epigr.': {'tlg_id': 'TLG2680', 'names': {'name_authtab': 'Scythinus Epigr.', 'name_idt': 'Scythinus Epigr.'}, 'works': {'Epigrammata': ['Book', 'epigram', 'line']}}, 'Cydias Lyr.': {'tlg_id': 'TLG0368', 'names': {'name_authtab': 'Cydias Lyr.', 'name_idt': 'Cydias Lyr.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Epilycus Comic.': {'tlg_id': 'TLG0453', 'names': {'name_authtab': 'Epilycus Comic.', 'name_idt': 'Epilycus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Basilides Phil.': {'tlg_id': 'TLG2398', 'names': {'name_authtab': 'Basilides Phil.', 'name_idt': 'Basilides Phil.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Antiochus Phil.': {'tlg_id': 'TLG1143', 'names': {'name_authtab': 'Antiochus Phil.', 'name_idt': 'Antiochus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hippys Hist.': {'tlg_id': 'TLG1438', 'names': {'name_authtab': 'Hippys Hist.', 'name_idt': 'Hippys Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Crito Hist.': {'tlg_id': 'TLG1867', 'names': {'name_authtab': 'Crito Hist.', 'name_idt': 'Crito Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Serenus Geom.': {'tlg_id': 'TLG2055', 'names': {'name_authtab': 'Serenus Geom.', 'name_idt': 'Serenus Geom.'}, 'works': {'De sectione cylindri': ['Page', 'line'], 'De sectione coni': ['Page', 'line']}}, 'Artaxerxis Epistulae': {'tlg_id': 'TLG0045', 'names': {'name_authtab': 'Artaxerxis Epistulae', 'name_idt': 'Artaxerxis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Melissa Phil.': {'tlg_id': 'TLG0051', 'names': {'name_authtab': 'Melissa Phil.', 'name_idt': 'Melissa Phil.'}, 'works': {'!Fragmentum epistulae ad Clearetam': ['Page', 'line']}}, 'Paraleipomena Jeremiou': {'tlg_id': 'TLG1772', 'names': {'name_authtab': 'Paraleipomena Jeremiou', 'name_idt': 'Paraleipomena Jeremiou'}, 'works': {'Paraleipomena Jeremiou': ['Chapter', 'section', 'line']}}, 'Tryphon I Gramm.': {'tlg_id': 'TLG0609', 'names': {'name_authtab': 'Tryphon I Gramm.', 'name_idt': 'Tryphon I Gramm.'}, 'works': {'$*PERI\\ PAQW=N&': ['Chapter', 'section', 'line'], 'Fragmenta': ['Treatise', 'fragment', 'line'], '$*PERI\\ TRO/PWN&': ['Page', 'line']}}, 'Nicephorus I Scr. Eccl., Hist., Theol.': {'tlg_id': 'TLG3086', 'names': {'name_authtab': 'Nicephorus I Scr. Eccl., Hist. et Theol.', 'name_idt': 'Nicephorus I Scr. Eccl., Hist., Theol.'}, 'works': {'.Chronographia brevis [Dub.] (recensiones duae)': ['Page', 'line', 'Ñßíüê\x18'], '4Refutatio et eversio definitionis synodalis anni 815': ['Chapter', 'line'], 'RBreviarium historicum de rebus gestis post imperium Mauricii (e cod. Vat. gr. 977)': ['Page', 'line', '']}}, 'Callinicus Biogr.': {'tlg_id': 'TLG2770', 'names': {'name_authtab': 'Callinicus Biogr.', 'name_idt': 'Callinicus Biogr.'}, 'works': {'Vita sancti Hypatii': ['\x1bDedication-prologue-chapter', 'section', 'line']}}, 'Praelusio Mimi': {'tlg_id': 'TLG0278', 'names': {'name_authtab': 'Praelusio Mimi', 'name_idt': 'Praelusio Mimi'}, 'works': {'Fragmentum (P. Giss. 1.1)': ['line']}}, '[Agathodaemon] Alchem.': {'tlg_id': 'TLG4086', 'names': {'name_authtab': '[Agathodaemon] Alchem.', 'name_idt': '[Agathodaemon] Alchem.'}, 'works': {'q$*)AGAQODAI/MWN EI)S TO\\N XRHSMO/N&:$ *)ORFE/WS SUNAGWGH\\ KAI\\ U(PO/MNHMA &(e cod. Paris. B.N. gr. 2327, fol. 262': ['Volume', 'page', 'line'], 'GFragmentum alchemicum (sine titulo) (e cod. Venet. Marc. 299, fol. 95v)': ['Volume', 'page', 'line']}}, 'Thessalus Astrol., Med.': {'tlg_id': 'TLG1004', 'names': {'name_authtab': 'Thessalus Astrol. et Med.', 'name_idt': 'Thessalus Astrol., Med.'}, 'works': {'_De virtutibus herbarum (e codd. Paris. gr. 2502 %7 Vindob. med. gr. 23 %7 Londin. reg. 16 C II)': ['Book', 'chapter', 'section', 'line'], 'UDe virtutibus herbarum (e codd. Paris. gr. 2256 %7 Venet. App. cl. V 13 %7 Mosq. 415)': ['Book', 'chapter', 'section', 'line'], '*De virtutibus herbarum (e cod. Monac. 542)': ['Book', 'chapter', 'section', 'line'], 'FDe virtutibus herbarum (e cod. Paris. gr. 2502 %7 Vindob. med. gr. 23)': ['Book', 'chapter', 'section', 'line'], 'BDe virtutibus herbarum (e cod. Matrit. Bibl. Nat. 4631 [olim 110])': ['Book', 'chapter', 'section', 'line']}}, 'Cleanthes Phil.': {'tlg_id': 'TLG1269', 'names': {'name_authtab': 'Cleanthes Phil.', 'name_idt': 'Cleanthes Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia et fragmenta': ['Fragment', 'line']}}, 'Josephus Hist.': {'tlg_id': 'TLG0526', 'names': {'name_authtab': 'Flavius Josephus Hist.', 'name_idt': 'Josephus Hist.'}, 'works': {'Josephi vita': ['Section', 'line'], 'Antiquitates Judaicae': ['Book', 'chapter', 'line'], 'De bello Judaico libri vii': ['Book', 'section', 'line'], '*Contra Apionem (%6 De Judaeorum vetustate)': ['Book', 'section', 'line']}}, 'Sminthes Astron.': {'tlg_id': 'TLG2644', 'names': {'name_authtab': 'Sminthes Astron.', 'name_idt': 'Sminthes Astron.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Longus Scr. Erot.': {'tlg_id': 'TLG0561', 'names': {'name_authtab': 'Longus Scr. Erot.', 'name_idt': 'Longus Scr. Erot.'}, 'works': {'Daphnis et Chloe': ['Book', 'chapter', 'section', 'line']}}, 'Didymarchus Poeta': {'tlg_id': 'TLG2618', 'names': {'name_authtab': 'Didymarchus Poeta', 'name_idt': 'Didymarchus Poeta'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Phocylides Eleg., Gnom.': {'tlg_id': 'TLG1604', 'names': {'name_authtab': 'Phocylides Eleg. et Gnom.', 'name_idt': 'Phocylides Eleg., Gnom.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Sententiae': ['Fragment', 'line']}}, 'Hypermenes Hist.': {'tlg_id': 'TLG2277', 'names': {'name_authtab': 'Hypermenes Hist.', 'name_idt': 'Hypermenes Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Leo Magentinus Phil.': {'tlg_id': 'TLG4187', 'names': {'name_authtab': 'Leo Magentinus Phil.', 'name_idt': 'Leo Magentinus Phil.'}, 'works': {'FCommentarium in Aristotelis categorias (excerptum e cod. Vat. gr. 244)': ['line'], 'OCommentarium in Aristotelis sophisticos elenchos (excerpta e cod. Vat. gr. 244)': ['\x10Bekker page+line', 'line'], 'YCommentarium in Aristotelis sophisticos elenchos (excerpta praecipue e cod. Vat. gr. 244)': ['Scholion', 'line']}}, 'Comarius Alchem.': {'tlg_id': 'TLG2632', 'names': {'name_authtab': 'Comarius Alchem.', 'name_idt': 'Comarius Alchem.'}, 'works': {'?De lapide philosophorum (e cod. Paris. B.N. gr. 2327, fol. 74r)': ['Volume', 'page', 'line']}}, 'Damigeron Magus': {'tlg_id': 'TLG2655', 'names': {'name_authtab': 'Damigeron Magus', 'name_idt': 'Damigeron Magus'}, 'works': {'6De lapidibus (e codd. Vat. gr. 578 %7 Ambros. 95 sup.)': ['Page', 'line']}}, 'Scholia In Oppianum': {'tlg_id': 'TLG5032', 'names': {'name_authtab': 'Scholia In Oppianum', 'name_idt': 'Scholia In Oppianum'}, 'works': {'?Scholia et glossae in cynegetica (scholia vetera et recentiora)': ['Book', 'scholion', 'line'], '?Scholia et glossae in halieutica (scholia vetera et recentiora)': ['\x0fHypothesis-book', 'scholion', 'line']}}, 'Myrsilus Hist.': {'tlg_id': 'TLG2331', 'names': {'name_authtab': 'Myrsilus Hist.', 'name_idt': 'Myrsilus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Agathon Trag.': {'tlg_id': 'TLG0318', 'names': {'name_authtab': 'Agathon Trag.', 'name_idt': 'Agathon Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Phoenicides Comic.': {'tlg_id': 'TLG0495', 'names': {'name_authtab': 'Phoenicides Comic.', 'name_idt': 'Phoenicides Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Cercops Phil.': {'tlg_id': 'TLG2286', 'names': {'name_authtab': 'Cercops Phil.', 'name_idt': 'Cercops Phil.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, 'Hesychius Lexicogr.': {'tlg_id': 'TLG4085', 'names': {'name_authtab': 'Hesychius Lexicogr.', 'name_idt': 'Hesychius Lexicogr.'}, 'works': {'': ['Lexicon', '', 'Alphabetic letter', 'entry', 'line'], 'Epistula ad Eulogium': ['line']}}, 'Demosthenes Epigr.': {'tlg_id': 'TLG1819', 'names': {'name_authtab': 'Pseudo-Demosthenes Epigr.', 'name_idt': 'Demosthenes Epigr.'}, 'works': {'Epigramma': ['Epigram', 'line']}}, 'Echephylidas Hist.': {'tlg_id': 'TLG2289', 'names': {'name_authtab': 'Echephylidas Hist.', 'name_idt': 'Echephylidas Hist.'}, 'works': {'Fragmenta': ['FGrH fragment', 'line']}}, 'Zenodorus Gramm.': {'tlg_id': 'TLG0597', 'names': {'name_authtab': 'Zenodorus Gramm.', 'name_idt': 'Zenodorus Gramm.'}, 'works': {'F$*PERI\\ SUNHQEI/AS& (e cod. Paris. suppl. gr. 1164 [olim cod. Athon.])': ['Page', 'line']}}, 'Evangelium Philippi': {'tlg_id': 'TLG1373', 'names': {'name_authtab': 'Evangelium Philippi', 'name_idt': 'Evangelium Philippi'}, 'works': {'Evangelium Philippi': ['line']}}, 'Joannes Rhet.': {'tlg_id': 'TLG4157', 'names': {'name_authtab': 'Joannes Rhet.', 'name_idt': 'Joannes Rhet.'}, 'works': {'WProlegomena in Hermogenis librum $PERI\\ EU(RE/SEWS &(olim sub auctore Georgio Diaereta)': ['Volume', 'page', 'line']}}, 'Charon Hist.': {'tlg_id': 'TLG1258', 'names': {'name_authtab': 'Charon Hist.', 'name_idt': 'Charon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dicaeogenes Trag.': {'tlg_id': 'TLG0322', 'names': {'name_authtab': 'Dicaeogenes Trag.', 'name_idt': 'Dicaeogenes Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philoxenus Lyr.': {'tlg_id': 'TLG0380', 'names': {'name_authtab': 'Philoxenus Lyr.', 'name_idt': 'Philoxenus Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmentum [Sp.]': ['line']}}, 'Anonyma De Musica Scripta Bellermanniana': {'tlg_id': 'TLG1127', 'names': {'name_authtab': 'Anonyma De Musica Scripta Bellermanniana', 'name_idt': 'Anonyma De Musica Scripta Bellermanniana'}, 'works': {'(Anonyma de musica scripta Bellermanniana': ['Section', 'line']}}, 'Theodorides Trag.': {'tlg_id': 'TLG1094', 'names': {'name_authtab': 'Theodorides Trag.', 'name_idt': 'Theodorides Trag.'}, 'works': {'Tituli': ['line']}}, 'Harmodius Trag.': {'tlg_id': 'TLG0720', 'names': {'name_authtab': 'Harmodius Trag.', 'name_idt': 'Harmodius Trag.'}, 'works': {'Titulus': ['line']}}, '[Theophilus] Hist.': {'tlg_id': 'TLG2203', 'names': {'name_authtab': '[Theophilus] Hist.', 'name_idt': '[Theophilus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apollinarius Apol.': {'tlg_id': 'TLG1163', 'names': {'name_authtab': 'Claudius Apollinarius Apol.', 'name_idt': 'Apollinarius Apol.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Porphyrius Phil.': {'tlg_id': 'TLG2034', 'names': {'name_authtab': 'Porphyrius Phil.', 'name_idt': 'Porphyrius Phil.'}, 'works': {'Vita Plotini': ['Section', 'line'], '.$*EI)S TA\\ A(RMONIKA\\ *PTOLEMAI/OU U(PO/MNHMA&': ['Page', 'line'], ':Quaestionum Homericarum ad Odysseam pertinentium reliquiae': ['Odyssey book', 'section', 'line'], 'De abstinentia': ['Book', 'section', 'line'], '!Historia philosophiae (fragmenta)': ['Fragment', 'line'], '/Quaestionum Homericarum liber i (recensio $*X&)': ['Section', 'line'], 'De philosophia ex oraculis': ['Page', 'line'], 'Epistula ad Anebonem': ['Chapter', 'section', 'line'], '$*PERI\\ A)GALMA/TWN&': ['Section', 'line'], 'Contra Christianos (fragmenta)': ['Fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'GIn Aristotelis categorias expositio per interrogationem et responsionem': ['Volume', 'page', 'line'], '.In Platonis Parmenidem commentaria (fragmenta)': ['Section', 'line'], 'Chronica': ['Fragment', 'section', 'line'], '%Sententiae ad intelligibilia ducentes': ['Sententia', 'line'], 'De antro nympharum': ['Section', 'line'], 'Isagoge sive quinque voces': ['Volume', 'page', 'line'], '+In Platonis Timaeum commentaria (fragmenta)': ['Book', 'fragment', 'line'], ',Quaestionum Homericarum liber i (recensio V)': ['Section', 'line'], ',Quaestionum Homericarum liber i (recensio T)': ['Page', 'line'], 'Vita Pythagorae': ['Section', 'line'], 'Testimonia': ['line', 'fragment', 'line'], ',Quaestionum Homericarum liber i (recensio B)': ['Page', 'line'], '9Quaestionum Homericarum ad Iliadem pertinentium reliquiae': ['Iliad book', 'section', 'line'], '6Commentarium in Platonis Timaeum (fragmentum incertum)': ['Fragment', 'line'], 'Ad Marcellam': ['Section', 'line'], 'Zetemata codicis Vaticani': ['Page', 'line']}}, 'Agl(a)osthenes Hist.': {'tlg_id': 'TLG2345', 'names': {'name_authtab': 'Agl(a)osthenes Hist.', 'name_idt': 'Agl(a)osthenes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cameniates Hist.': {'tlg_id': 'TLG3015', 'names': {'name_authtab': 'Joannes Cameniates Hist.', 'name_idt': 'Cameniates Hist.'}, 'works': {'De expugnatione Thessalonicae': ['Chapter', 'section', 'line']}}, 'Critobulus Hist.': {'tlg_id': 'TLG3147', 'names': {'name_authtab': 'Michael Critobulus Hist.', 'name_idt': 'Critobulus Hist.'}, 'works': {'Poema': ['line'], 'Precatio': ['Page', 'line'], 'Epistula ad Mechemet II': ['Codex', 'section', 'line'], 'Historiae': ['Book', 'chapter', 'section', 'line']}}, 'Alexander Comic.': {'tlg_id': 'TLG0401', 'names': {'name_authtab': 'Alexander Comic.', 'name_idt': 'Alexander Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Callimachus Junior Epic.': {'tlg_id': 'TLG2613', 'names': {'name_authtab': 'Callimachus Junior Epic.', 'name_idt': 'Callimachus Junior Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Pythocles Hist.': {'tlg_id': 'TLG2560', 'names': {'name_authtab': 'Pythocles Hist.', 'name_idt': 'Pythocles Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Alcman Lyr.': {'tlg_id': 'TLG0291', 'names': {'name_authtab': 'Alcman Lyr.', 'name_idt': 'Alcman Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apollinaris Theol.': {'tlg_id': 'TLG2074', 'names': {'name_authtab': 'Apollinaris Theol.', 'name_idt': 'Apollinaris Theol.'}, 'works': {'.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], '!Fragmenta in Joannem (in catenis)': ['Fragment', 'line'], '#Fragmenta in Matthaeum (in catenis)': ['Fragment', 'line'], '!Fragmenta in Psalmos (in catenis)': ['Fragment', 'line']}}, 'Lexicon Vindobonense': {'tlg_id': 'TLG4294', 'names': {'name_authtab': 'Lexicon Vindobonense', 'name_idt': 'Lexicon Vindobonense'}, 'works': {'NLexicon Vindobonense (auctore Andrea Lopadiota) (e cod. phil. gr. Vindob. 169)': ['', 'Alphabetic letter', 'entry', 'line']}}, 'Tiberius Rhet.': {'tlg_id': 'TLG2601', 'names': {'name_authtab': 'Tiberius Rhet.', 'name_idt': 'Tiberius Rhet.'}, 'works': {'De figuris Demosthenicis': ['Section', 'line']}}, 'Geographica Adespota (GGM)': {'tlg_id': 'TLG2030', 'names': {'name_authtab': 'Geographica Adespota (GGM)', 'name_idt': 'Geographica Adespota (GGM)'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Lollianus Scr. Erot.': {'tlg_id': 'TLG1466', 'names': {'name_authtab': 'Lollianus Scr. Erot.', 'name_idt': 'Lollianus Scr. Erot.'}, 'works': {'/$*FOINIKIKA/ &(fragmenta) (P. Colon. inv. 3328)': ['Fragment', 'line'], ',$*FOINIKIKA/& (fragmentum) (P. Oxy. 11.1368)': ['Column', 'line']}}, 'Ananius Iamb.': {'tlg_id': 'TLG0238', 'names': {'name_authtab': 'Ananius Iamb.', 'name_idt': 'Ananius Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pythagoristae (D-K) Phil.': {'tlg_id': 'TLG2239', 'names': {'name_authtab': 'Pythagoristae (D-K) Phil.', 'name_idt': 'Pythagoristae (D-K) Phil.'}, 'works': {'Testimonia et fragmenta': ['Fragment', 'line']}}, 'Gregorius Nazianzenus Theol.': {'tlg_id': 'TLG2022', 'names': {'name_authtab': 'Gregorius Nazianzenus Theol.', 'name_idt': 'Gregorius Nazianzenus Theol.'}, 'works': {'': ['Carmina dogmatica', 'Page', 'line'], '!In Machabaeorum laudem (orat. 15)': ['Volume', 'page', 'line'], 'In theophania (orat. 38)': ['Volume', 'page', 'line'], 'In sancta lumina (orat. 39)': ['Volume', 'page', 'line'], 'De filio (orat. 29)': ['Section', 'line'], 'K$*(O PROTREPTIKO\\S EI)S U(POMONH\\N H)\\ PRO\\S TOU\\S NEWSTI\\ BEBAPTISME/NOUS&': ['line'], 'De theologia (orat. 28)': ['Section', 'line'], '%In laudem sororis Gorgoniae (orat. 8)': ['Volume', 'page', 'line'], 'In novam Dominicam (orat. 44)': ['Volume', 'page', 'line'], '"In Aegyptiorum adventum (orat. 34)': ['Volume', 'page', 'line'], 'De pace 3 (orat. 23)': ['Volume', 'page', 'line'], 'Ad patrem (orat. 12)': ['Volume', 'page', 'line'], 'Supremum vale (orat. 42)': ['Volume', 'page', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Carmina moralia': ['Page', 'line'], "'Comparatio vitarum (%6 carmen morale 8)": ['line'], 'De filio (orat. 30)': ['Section', 'line'], 'De vita sua': ['line'], '7In consecratione Eulalii Doarensium episcopi (orat. 13)': ['Volume', 'page', 'line'], 'In patrem tacentem (orat. 16)': ['Volume', 'page', 'line'], ' Ad Gregorium Nyssenum (orat. 11)': ['Volume', 'page', 'line'], ' Apologeticus ad patrem (orat. 9)': ['Volume', 'page', 'line'], '2In seipsum ad patrem et Basilium magnum (orat. 10)': ['Volume', 'page', 'line'], '.Fragmentum ex oratione contra astronomos [Sp.]': ['Volume', 'page', 'line'], 'In laudem Cypriani (orat. 24)': ['Volume', 'page', 'line'], '2De dogmate et constitutione episcoporum (orat. 20)': ['Volume', 'page', 'line'], 'De pauperum amore (orat. 14)': ['Volume', 'page', 'line'], 'Ad cives Nazianzenos (orat. 17)': ['Volume', 'page', 'line'], ' Significatio in Ezechielem [Sp.]': ['Volume', 'page', 'line'], '5Ad eos qui ipsum acciverant nec occurrerant (orat. 3)': ['Volume', 'page', 'line'], 'De pace 1 (orat. 6)': ['Volume', 'page', 'line'], 'In sanctum pascha (orat. 45)': ['Volume', 'page', 'line'], 'Testamentum': ['Page', 'line'], '-Alphabeticum paraeneticum 1 (e cod. Patm. 33)': ['line'], 'De spiritu sancto (orat. 31)': ['Section', 'line'], 'Adversus Eunomianos (orat. 27)': ['Section', 'line'], 'SIn seipsum, cum rure rediisset, post ea quae a Maximo perpetrata fuerant (orat. 26)': ['Volume', 'page', 'line'], "'De moderatione in disputando (orat. 32)": ['Volume', 'page', 'line'], ',In sanctum pascha et in tarditatem (orat. 1)': ['Volume', 'page', 'line'], 'ZDe seipso et ad eos qui ipsum cathedram Constantinopolitanam affectare dicebant (orat. 36)': ['Volume', 'page', 'line'], 'Carmina de se ipso': ['Page', 'line'], "'In laudem Heronis philosophi (orat. 25)": ['Volume', 'page', 'line'], 'In sanctum baptisma (orat. 40)': ['Volume', 'page', 'line'], '2De martyribus et adversus Arianos (orat. 35) [Sp.]': ['Volume', 'page', 'line'], 'Epistulae': ['Epistle', 'section', 'line'], 'Liturgia sancti Gregorii [Sp.]': ['Volume', 'page', 'line'], "'Contra Julianum imperatorem 2 (orat. 5)": ['Volume', 'page', 'line'], 'SFunebris oratio in laudem Basilii Magni Caesareae in Cappadocia episcopi (orat. 43)': ['Chapter', 'section', 'line'], '4Funebris in laudem Caesarii fratris oratio (orat. 7)': ['Chapter', 'section', 'line'], 'CIn dictum evangelii: Cum consummasset Jesus hos sermones (orat. 37)': ['Volume', 'page', 'line'], '[De testamentis et adventu Christi (%6 carmen dogmaticum 9, additamentum inter vv. 18 et 19)': ['line'], 'De pace 2 (orat. 22)': ['Volume', 'page', 'line'], '$Funebris oratio in patrem (orat. 18)': ['Volume', 'page', 'line'], 'Carmina quae spectant ad alios': ['Page', 'line'], 'Apologetica (orat. 2)': ['Volume', 'page', 'line'], 'In laudem Athanasii (orat. 21)': ['Volume', 'page', 'line'], '&Contra Arianos et de seipso (orat. 33)': ['Volume', 'page', 'line'], "'Contra Julianum imperatorem 1 (orat. 4)": ['Volume', 'page', 'line'], '7$*(ALA/TION SKEUASQE\\N U(PO\\ TH=S E)NERGEI/AS TOIA/SDE&': ['Section', 'line'], '.Ad Julianum tributorum exaequatorem (orat. 19)': ['Volume', 'page', 'line'], 'Alphabeticum A [Sp.]': ['line'], 'In pentecosten (orat. 41)': ['Volume', 'page', 'line'], 'Epistulae theologicae': ['Epistle', 'section', 'line'], ';Christus patiens [Dub.] (fort. auctore Constantino Manasse)': ['line']}}, 'Homerica': {'tlg_id': 'TLG1802', 'names': {'name_authtab': 'Homerica', 'name_idt': 'Homerica'}, 'works': {'-Ilias Homerica in cyclum inclusa (fragmentum)': ['line']}}, 'Laon Comic.': {'tlg_id': 'TLG0469', 'names': {'name_authtab': 'Laon Comic.', 'name_idt': 'Laon Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Parthax Hist.': {'tlg_id': 'TLG1568', 'names': {'name_authtab': 'Parthax Hist.', 'name_idt': 'Parthax Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Marcellinus I Med.': {'tlg_id': 'TLG0667', 'names': {'name_authtab': 'Marcellinus I Med.', 'name_idt': 'Marcellinus I Med.'}, 'works': {'De pulsibus': ['line']}}, 'Hieronymus Phil.': {'tlg_id': 'TLG1430', 'names': {'name_authtab': 'Hieronymus Phil.', 'name_idt': 'Hieronymus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dionysius Soph.': {'tlg_id': 'TLG4184', 'names': {'name_authtab': 'Dionysius Soph.', 'name_idt': 'Dionysius Soph.'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Theognis Eleg.': {'tlg_id': 'TLG0002', 'names': {'name_authtab': 'Theognis Eleg.', 'name_idt': 'Theognis Eleg.'}, 'works': {'Fragmenta dubia': ['Fragment', 'line'], 'Elegiae': ['Book', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Fragmenta sedis incertae': ['line']}}, 'Chronicon Paschale': {'tlg_id': 'TLG2371', 'names': {'name_authtab': 'Chronicon Paschale', 'name_idt': 'Chronicon Paschale'}, 'works': {'Chronicon paschale': ['Page', 'line']}}, 'Anonymi Curetum Hymnus': {'tlg_id': 'TLG0227', 'names': {'name_authtab': 'Anonymi Curetum Hymnus', 'name_idt': 'Anonymi Curetum Hymnus'}, 'works': {'Hymnus Curetum': ['line']}}, 'Leo Phil.': {'tlg_id': 'TLG0723', 'names': {'name_authtab': 'Leo Phil.', 'name_idt': 'Leo Phil.'}, 'works': {'De natura hominum synopsis': ['Section', 'line'], 'Conspectus medicinae': ['Chapter', 'section', 'line']}}, 'Martyrium Dasii': {'tlg_id': 'TLG2010', 'names': {'name_authtab': 'Martyrium Dasii', 'name_idt': 'Martyrium Dasii'}, 'works': {'Martyrium Dasii': ['Chapter', 'section', 'line']}}, 'Telesilla Lyr.': {'tlg_id': 'TLG0369', 'names': {'name_authtab': 'Telesilla Lyr.', 'name_idt': 'Telesilla Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Alcimenes Comic.': {'tlg_id': 'TLG1780', 'names': {'name_authtab': 'Alcimenes Comic.', 'name_idt': 'Alcimenes Comic.'}, 'works': {'Titulus': ['Page', 'line']}}, 'Melito Apol.': {'tlg_id': 'TLG1495', 'names': {'name_authtab': 'Melito Apol.', 'name_idt': 'Melito Apol.'}, 'works': {':De pascha (P. Beatty 8 %7 P. Bodmer 13 %7 P. Oxy. 13.1600)': ['line'], 'Fragmenta': ['Fragment', 'section', 'line'], 'Fragmentum (P. Bodmer 12)': ['line']}}, 'Dius Phil.': {'tlg_id': 'TLG1334', 'names': {'name_authtab': 'Dius Phil.', 'name_idt': 'Dius Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Menesthenes Hist.': {'tlg_id': 'TLG1505', 'names': {'name_authtab': 'Menesthenes Hist.', 'name_idt': 'Menesthenes Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Galenus Gramm.': {'tlg_id': 'TLG3039', 'names': {'name_authtab': 'Joannes Galenus Gramm.', 'name_idt': 'Galenus Gramm.'}, 'works': {' Allegoriae in Hesiodi theogoniam': ['Page', 'line'], '"Allegoriae in Homeri Iliadem 4.1-4': ['Page', 'line']}}, 'Liber Jannes Et Jambres': {'tlg_id': 'TLG1859', 'names': {'name_authtab': 'Liber Jannes Et Jambres', 'name_idt': 'Liber Jannes Et Jambres'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Cleophon Trag.': {'tlg_id': 'TLG1087', 'names': {'name_authtab': 'Cleophon Trag.', 'name_idt': 'Cleophon Trag.'}, 'works': {'Tituli': ['line']}}, 'Thucydides Hist.': {'tlg_id': 'TLG0003', 'names': {'name_authtab': 'Thucydides Hist.', 'name_idt': 'Thucydides Hist.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Historiae': ['Book', 'chapter', 'section', 'line']}}, 'Basilius Scr. Eccl.': {'tlg_id': 'TLG2800', 'names': {'name_authtab': 'Basilius Scr. Eccl.', 'name_idt': 'Basilius Scr. Eccl.'}, 'works': {'Homilia in passionem domini': ['Volume', 'page', 'line'], 'Sermones xli': ['Page', 'line'], '3De vita et miraculis sanctae Theclae libri ii [Sp.]': ['Book', 'section', 'line'], 'Homilia in assumptionem domini': ['Volume', 'page', 'line'], 'Homilia in sanctum Andream': ['Volume', 'page', 'line'], 'Homilia in pentecosten': ['Volume', 'page', 'line'], '2Homilia in sanctum pascha et in recens illuminatos': ['Volume', 'page', 'line'], 'Homilia in sanctum pascha': ['Volume', 'page', 'line'], '+Homilia in feriam v et in proditionem Judae': ['Volume', 'page', 'line']}}, 'Apollonides Trag.': {'tlg_id': 'TLG0345', 'names': {'name_authtab': 'Apollonides Trag.', 'name_idt': 'Apollonides Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Antoninus Liberalis Myth.': {'tlg_id': 'TLG0651', 'names': {'name_authtab': 'Antoninus Liberalis Myth.', 'name_idt': 'Antoninus Liberalis Myth.'}, 'works': {'Metamorphoseon synagoge': ['Chapter', 'section', 'line']}}, 'Ion Phil., Poeta': {'tlg_id': 'TLG0308', 'names': {'name_authtab': 'Ion Phil. et Poeta', 'name_idt': 'Ion Phil., Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Tituli': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Thrasyllus Hist.': {'tlg_id': 'TLG2428', 'names': {'name_authtab': 'Thrasyllus Hist.', 'name_idt': 'Thrasyllus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Simylus Iamb.': {'tlg_id': 'TLG1676', 'names': {'name_authtab': 'Simylus Iamb.', 'name_idt': 'Simylus Iamb.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Chariton Scr. Erot.': {'tlg_id': 'TLG0554', 'names': {'name_authtab': 'Chariton Scr. Erot.', 'name_idt': 'Chariton Scr. Erot.'}, 'works': {'De Chaerea et Callirhoe': ['Book', 'chapter', 'section', 'line']}}, 'Boïdas Phil.': {'tlg_id': 'TLG2230', 'names': {'name_authtab': 'Boïdas Phil.', 'name_idt': 'Boïdas Phil.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, '(H)agias-Dercylus Hist.': {'tlg_id': 'TLG1387', 'names': {'name_authtab': '(H)agias-Dercylus Hist.', 'name_idt': '(H)agias-Dercylus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anonymi Lexeis Rhetoricae': {'tlg_id': 'TLG3178', 'names': {'name_authtab': 'Anonymi Lexeis Rhetoricae', 'name_idt': 'Anonymi Lexeis Rhetoricae'}, 'works': {'$*(RHTORIKAI\\ LE/CEIS&': ['Entry', 'line']}}, 'Polycritus Hist.': {'tlg_id': 'TLG2385', 'names': {'name_authtab': 'Polycritus Hist.', 'name_idt': 'Polycritus Hist.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Ophelio Comic.': {'tlg_id': 'TLG0485', 'names': {'name_authtab': 'Ophelio Comic.', 'name_idt': 'Ophelio Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Marcus Aurelius Antoninus Imperator Phil.': {'tlg_id': 'TLG0562', 'names': {'name_authtab': 'Marcus Aurelius Antoninus Imperator Phil.', 'name_idt': 'Marcus Aurelius Antoninus Imperator Phil.'}, 'works': {'$*TA\\ EI)S E(AUTO/N&': ['Book', 'chapter', 'section', 'line']}}, 'Aegimius': {'tlg_id': 'TLG0668', 'names': {'name_authtab': 'Aegimius', 'name_idt': 'Aegimius'}, 'works': {'Aegimius (fragmenta)': ['Fragment', 'line']}}, 'Fragmentum Lexici Graeci': {'tlg_id': 'TLG4293', 'names': {'name_authtab': 'Fragmentum Lexici Graeci', 'name_idt': 'Fragmentum Lexici Graeci'}, 'works': {'OLexicon (fragmentum) (fort. auctore Nicephoro Gregora) (e cod. Paris. gr. 3027)': ['Entry', 'line']}}, 'Aristagoras Hist.': {'tlg_id': 'TLG1190', 'names': {'name_authtab': 'Aristagoras Hist.', 'name_idt': 'Aristagoras Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philo Mech.': {'tlg_id': 'TLG1599', 'names': {'name_authtab': 'Philo Mech.', 'name_idt': 'Philo Mech.'}, 'works': {'Belopoeica': ['Thevenot page', 'line'], 'Parasceuastica et poliorcetica': ['Thevenot page', 'line']}}, 'Titanomachia': {'tlg_id': 'TLG1737', 'names': {'name_authtab': 'Titanomachia', 'name_idt': 'Titanomachia'}, 'works': {'Titanomachia (fragmenta)': ['Fragment', 'line']}}, 'Soranus Med.': {'tlg_id': 'TLG0565', 'names': {'name_authtab': 'Soranus Med.', 'name_idt': 'Soranus Med.'}, 'works': {'De signis fracturarum': ['Chapter', 'section', 'line'], 'Vita Hippocratis': ['Section', 'line'], 'De fasciis': ['Section', 'line'], 'Gynaeciorum libri iv': ['Book', 'chapter', 'section', 'line']}}, 'Anonymi Grammatici Gramm.': {'tlg_id': 'TLG0072', 'names': {'name_authtab': 'Anonymi Grammatici Gramm.', 'name_idt': 'Anonymi Grammatici Gramm.'}, 'works': {'0Fragmentum grammaticum (P. Iand. 83a [inv. 664])': ['line'], '+De participiis (P. Rain. 1.19 [inv. 29772])': ['line'], 'L$*PERI\\ *AI)OLI/DOS &(?) (fragmentum) (P. Bouriant 8 [P. Sorbonne inv. 833])': ['line'], '8Fragmentum grammaticum (P. Harr. 59 [inv. 172b %7 182h])': ['line'], 'LCompendium Herodiani operis$ PERI\\ KLI/SEWS O)NOMA/TWN &(P. Flor. inv. 3005)': ['line'], '%Fragmentum grammaticum (P. Oslo 2.13)': ['line'], '3Fragmentum grammaticum (P. Brooklyn inv. 47.218.36)': ['line'], ':Fragmentum grammaticum (P. Heid. Siegmann 197 [inv. 1893])': ['line'], '.Fragmentum grammaticum (P. Iand. 1.5 [inv. 2])': ['line'], '3Fragmentum grammaticum (PSI sine numero [inv. 505])': ['line'], '_Fragmentum grammaticum (P. Lit. Lond. 182 %6 P. Lond. 126) (fort. auctore Tryphone Alexandrino)': ['line'], '%Supplementa artis Dionysianae vetusta': ['Part', 'volume', 'page', 'line'], '"Fragmentum grammaticum (PSI 7.849)': ['line'], '.Compendium catholicae Herodiani (P. Ant. 2.67)': ['line'], 'NFragmentum grammaticum (P. Yale 1.25 [inv. 446]) (fort. epitome operis Comani)': ['line'], '%Fragmentum grammaticum (P. Amh. 2.21)': ['line'], ':Fragmentum grammaticum (P. Heid. Siegmann 198 [inv. 201a])': ['line'], '1Fragmentum grammaticum (P. Iand. 5.83 [inv. 555])': ['line'], '&Fragmentum grammaticum (P. Oxy. 3.469)': ['line'], '"Fragmentum grammaticum (PSI 7.761)': ['line'], '%Fragmentum grammaticum (P. Ant. 2.68)': ['line'], 'KCommentarium in anonymi opus$ PERI\\ KLI/SEWS O)NOMA/TWN &(P. Oxy. 15.1801v)': ['line']}}, 'Zenothemis Geogr.': {'tlg_id': 'TLG2647', 'names': {'name_authtab': 'Zenothemis Geogr.', 'name_idt': 'Zenothemis Geogr.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Aristomenes Comic.': {'tlg_id': 'TLG0419', 'names': {'name_authtab': 'Aristomenes Comic.', 'name_idt': 'Aristomenes Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Persaeus Phil.': {'tlg_id': 'TLG1574', 'names': {'name_authtab': 'Persaeus Phil.', 'name_idt': 'Persaeus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Diophilus vel Diophila Poeta': {'tlg_id': 'TLG2621', 'names': {'name_authtab': 'Diophilus vel Diophila Poeta', 'name_idt': 'Diophilus vel Diophila Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Choeroboscus Gramm.': {'tlg_id': 'TLG4093', 'names': {'name_authtab': 'Georgius Choeroboscus Gramm.', 'name_idt': 'Choeroboscus Gramm.'}, 'works': {'Epimerismi in Psalmos': ['Page', 'line'], '-De orthographia (epitome) (e cod. Barocc. 50)': ['Page', 'line'], 'WProlegomena et scholia in Theodosii Alexandrini canones isagogicos de flexione verborum': ['Page', 'line'], 'De spiritibus (excerpta)': ['Page', 'line'], 'kDe accentibus (excerpta e Choerobosco, Aetherio, Philopono et aliis) (e codd. Urbin. 151 et Laurent. 57.34)': ['Excerpt', 'paragraph', 'line'], 'Scholia in Hephaestionem': ['Page', 'line'], 'VProlegomena et scholia in Theodosii Alexandrini canones isagogicos de flexione nominum': ['Page', 'line'], '"$*PERI\\ TRO/PWN POIHTIKW=N& [Dub.]': ['Page', 'line']}}, 'Anonymi In Aristotelis Librum Primum Analyticorum Posteriorum Commentarium': {'tlg_id': 'TLG4032', 'names': {'name_authtab': 'Anonymi In Aristotelis Librum Primum Analyticorum Posteriorum Commentarium', 'name_idt': 'Anonymi In Aristotelis Librum Primum Analyticorum Posteriorum Commentarium'}, 'works': {'6In primum librum analyticorum posteriorum commentarium': ['Page', 'line']}}, 'Scriptor Incertus De Leone Armenio Hist.': {'tlg_id': 'TLG3177', 'names': {'name_authtab': 'Scriptor Incertus De Leone Armenio Hist.', 'name_idt': 'Scriptor Incertus De Leone Armenio Hist.'}, 'works': {"'De Leone Armenio (e cod. Vat. gr. 2014)": ['line'], ')De Leone Armenio (e cod. Paris. gr. 1711)': ['Page', 'line']}}, 'Demareta Poeta': {'tlg_id': 'TLG2616', 'names': {'name_authtab': 'Demareta Poeta', 'name_idt': 'Demareta Poeta'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Didymus Scriptor De Mensuris': {'tlg_id': 'TLG0357', 'names': {'name_authtab': 'Didymus Scriptor De Mensuris', 'name_idt': 'Didymus Scriptor De Mensuris'}, 'works': {'Mensurae marmorum ac lignorum': ['Section', 'line']}}, 'Anonymus Epicureus Phil.': {'tlg_id': 'TLG1779', 'names': {'name_authtab': 'Anonymus Epicureus Phil.', 'name_idt': 'Anonymus Epicureus Phil.'}, 'works': {'Fragmenta (P. Herc. 176)': ['Fragment', 'line'], "'Fragmenta (ad P. Herc. 176 pertinentia)": ['Fragment', 'line']}}, 'Susarion Comic.': {'tlg_id': 'TLG0264', 'names': {'name_authtab': 'Susarion Comic.', 'name_idt': 'Susarion Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Aphthonius Rhet.': {'tlg_id': 'TLG4100', 'names': {'name_authtab': 'Aphthonius Rhet.', 'name_idt': 'Aphthonius Rhet.'}, 'works': {'Progymnasmata': ['Volume', 'page', 'line']}}, 'Justinus Martyr Apol.': {'tlg_id': 'TLG0645', 'names': {'name_authtab': 'Justinus Martyr Apol.', 'name_idt': 'Justinus Martyr Apol.'}, 'works': {'Dialogus cum Tryphone': ['Chapter', 'section', 'line', '¤§\x92\x92\x92§«®\x92³\x92\x8eº¼\x92¾ÀÃÈÌ\x92ÎÑÖ\x8cÜß\x92\x92ú«\x92«««\x8c«\x8e', 'JC´'], 'Apologia': ['Chapter', 'section', 'line'], 'Fragmenta operum deperditorum': ['Fragment', 'line'], 'Apologia secunda': ['Chapter', 'section', 'line', '³']}}, 'Iamblichus Alchem.': {'tlg_id': 'TLG2140', 'names': {'name_authtab': 'Iamblichus Alchem.', 'name_idt': 'Iamblichus Alchem.'}, 'works': {'<Fragmenta alchemica (e cod. Paris. B.N. gr. 2327, fol. 266r)': ['Volume', 'page', 'line']}}, 'Anthologiae Graecae Appendix': {'tlg_id': 'TLG7052', 'names': {'name_authtab': 'Anthologiae Graecae Appendix', 'name_idt': 'Anthologiae Graecae Appendix'}, 'works': {')Epigrammata exhortatoria et supplicatoria': ['Epigram', 'line'], 'Problemata et aenigmata': ['Epigram', 'line'], 'Epigrammata sepulcralia': ['Epigram', 'line'], 'Oracula': ['Epigram', 'line'], 'Epigrammata dedicatoria': ['Epigram', 'line'], 'Epigrammata irrisoria': ['Epigram', 'line'], 'Epigrammatis addenda': ['Epigram', 'line'], 'Epigrammata demonstrativa': ['Epigram', 'line']}}, 'Anonymus Lexicographus Lexicogr.': {'tlg_id': 'TLG9003', 'names': {'name_authtab': 'Anonymus Lexicographus Lexicogr.', 'name_idt': 'Anonymus Lexicographus Lexicogr.'}, 'works': {'"Fragmenta quattuor apud Eustathium': ['Lexical entry', 'line']}}, 'Assumptio Mosis': {'tlg_id': 'TLG1201', 'names': {'name_authtab': 'Assumptio Mosis', 'name_idt': 'Assumptio Mosis'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Philogelos': {'tlg_id': 'TLG2404', 'names': {'name_authtab': 'Philogelos', 'name_idt': 'Philogelos'}, 'works': {'?Philogelos sive Facetiae (sub auctoribus Hierocle et Philagrio)': ['Section', 'line']}}, 'Heliodorus Trag.': {'tlg_id': 'TLG0750', 'names': {'name_authtab': 'Heliodorus Trag.', 'name_idt': 'Heliodorus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line'], '$*)ITALIKA\\ QAU/MATA&': ['line']}}, 'Matthiae Traditiones': {'tlg_id': 'TLG1560', 'names': {'name_authtab': 'Matthiae Traditiones', 'name_idt': 'Matthiae Traditiones'}, 'works': {'Matthiae traditiones': ['Fragment', 'line']}}, '[Aristobulus] Hist.': {'tlg_id': 'TLG2557', 'names': {'name_authtab': '[Aristobulus] Hist.', 'name_idt': '[Aristobulus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Menodotus Hist.': {'tlg_id': 'TLG1506', 'names': {'name_authtab': 'Menodotus Hist.', 'name_idt': 'Menodotus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Acacius Theol.': {'tlg_id': 'TLG2064', 'names': {'name_authtab': 'Acacius Theol.', 'name_idt': 'Acacius Theol.'}, 'works': {'.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line']}}, 'Arcadius Gramm.': {'tlg_id': 'TLG2116', 'names': {'name_authtab': 'Arcadius Gramm.', 'name_idt': 'Arcadius Gramm.'}, 'works': {'De accentibus [Sp.]': ['Page', 'line']}}, 'Joannes Gramm., Poeta': {'tlg_id': 'TLG2578', 'names': {'name_authtab': 'Joannes Gramm. et Poeta', 'name_idt': 'Joannes Gramm., Poeta'}, 'works': {'%$*)/EKFRASIS TOU= KOSMIKOU= PI/NAKOS&': ['Section', 'line'], 'Anacreontea': ['Section', 'line']}}, 'Leo Hist.': {'tlg_id': 'TLG2186', 'names': {'name_authtab': 'Leo Hist.', 'name_idt': 'Leo Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Quintus Epic.': {'tlg_id': 'TLG2046', 'names': {'name_authtab': 'Quintus Epic.', 'name_idt': 'Quintus Epic.'}, 'works': {'Posthomerica': ['Book', 'line']}}, 'Augeas Comic.': {'tlg_id': 'TLG1782', 'names': {'name_authtab': 'Augeas Comic.', 'name_idt': 'Augeas Comic.'}, 'works': {'Fragmentum': ['Page', 'line'], 'Tituli': ['Page', 'line']}}, 'Acta Philippi': {'tlg_id': 'TLG2948', 'names': {'name_authtab': 'Acta Philippi', 'name_idt': 'Acta Philippi'}, 'works': {'Acta Philippi': ['Section', 'line'], 'Acta Philippi (epitome)': ['Section', 'line'], 'Acta Philippi (recensio)': ['Section', 'line']}}, 'Musaeus Epic.': {'tlg_id': 'TLG0576', 'names': {'name_authtab': 'Musaeus Epic.', 'name_idt': 'Musaeus Epic.'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Niciae Epistula': {'tlg_id': 'TLG0046', 'names': {'name_authtab': 'Niciae Epistula', 'name_idt': 'Niciae Epistula'}, 'works': {'Epistula': ['line']}}, 'Michael Phil.': {'tlg_id': 'TLG4034', 'names': {'name_authtab': 'Michael Phil.', 'name_idt': 'Michael Phil.'}, 'works': {'6In librum quintum ethicorum Nicomacheorum commentarium': ['Page', 'line'], 'dIn Aristotelis sophisticos elenchos commentarius (selecta) (%6 Pseudo-Alexander 2 %7 commentarium 5)': ['Scholion', 'line'], '+In libros de partibus animalium commentaria': ['Page', 'line'], '+In librum de animalium incessu commentarium': ['Page', 'line'], '%In ethica Nicomachea ix-x commentaria': ['Page', 'line'], 'qIn Aristotelis sophisticos elenchos commentarius (%6 Pseudo-Alexander 1) (olim sub auctore Alexandro Aphrodisiens': ['Page', 'line'], '+In libros de animalium motione commentarium': ['Page', 'line'], 'In parva naturalia commentaria': ['Page', 'line']}}, 'Theolytus Epic.': {'tlg_id': 'TLG1723', 'names': {'name_authtab': 'Theolytus Epic.', 'name_idt': 'Theolytus Epic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Heliodorus Perieg.': {'tlg_id': 'TLG1400', 'names': {'name_authtab': 'Heliodorus Perieg.', 'name_idt': 'Heliodorus Perieg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heraclides Lembus Hist.': {'tlg_id': 'TLG1407', 'names': {'name_authtab': 'Heraclides Lembus Hist.', 'name_idt': 'Heraclides Lembus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Excerpta politiarum': ['Section', 'line']}}, 'Oribasius Med.': {'tlg_id': 'TLG0722', 'names': {'name_authtab': 'Oribasius Med.', 'name_idt': 'Oribasius Med.'}, 'works': {'Libri ad Eunapium (lib. 1-4)': ['Book', 'chapter', 'section', 'line'], 'Testimonia': ['line', 'fragment', 'line'], '.Collectiones medicae (lib. 1-16, 24-25, 43-50)': ['Book', 'chapter', 'section', 'line'], 'Synopsis ad Eustathium filium': ['Book', 'chapter', 'section', 'line'], 'Eclogae medicamentorum': ['Chapter', 'section', 'line'], '$Collectiones medicae (libri incerti)': ['Chapter', 'section', 'line']}}, 'Alexander Scr. Eccl.': {'tlg_id': 'TLG2860', 'names': {'name_authtab': 'Alexander Scr. Eccl.', 'name_idt': 'Alexander Scr. Eccl.'}, 'works': {'.Inventio crucis (fort. auctore Alexandro alio)': ['Page', 'line'], ')Inventio crucis (epitome prioris libelli)': ['Page', 'line'], 'Laudatio Barnabae apostoli': ['line']}}, 'Philiscus Comic.': {'tlg_id': 'TLG0491', 'names': {'name_authtab': 'Philiscus Comic.', 'name_idt': 'Philiscus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Bucolicum': {'tlg_id': 'TLG1559', 'names': {'name_authtab': 'Bucolicum', 'name_idt': 'Bucolicum'}, 'works': {'4Fragmentum bucolicum: Pan et Echo (P. Vindob. 29801)': ['Fragment', 'line']}}, 'Stesimbrotus Hist.': {'tlg_id': 'TLG1923', 'names': {'name_authtab': 'Stesimbrotus Hist.', 'name_idt': 'Stesimbrotus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pyrgion Hist.': {'tlg_id': 'TLG1648', 'names': {'name_authtab': 'Pyrgion Hist.', 'name_idt': 'Pyrgion Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Erinna Lyr.': {'tlg_id': 'TLG1355', 'names': {'name_authtab': 'Erinna Lyr.', 'name_idt': 'Erinna Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Anonymi Hymnus In Dactylos Idaeos': {'tlg_id': 'TLG0228', 'names': {'name_authtab': 'Anonymi Hymnus In Dactylos Idaeos', 'name_idt': 'Anonymi Hymnus In Dactylos Idaeos'}, 'works': {"'Hymnus in Dactylos Idaeos (IG 12.9.259)": ['line']}}, 'Posidippus Epigr.': {'tlg_id': 'TLG1632', 'names': {'name_authtab': 'Posidippus Epigr.', 'name_idt': 'Posidippus Epigr.'}, 'works': {'Fragmenta et tituli': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Myron Hist.': {'tlg_id': 'TLG1523', 'names': {'name_authtab': 'Myron Hist.', 'name_idt': 'Myron Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Ephorus Hist.': {'tlg_id': 'TLG0536', 'names': {'name_authtab': 'Ephorus Hist.', 'name_idt': 'Ephorus Hist.'}, 'works': {'Fragmenta': ['FGrH fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Fragmenta Alchemica': {'tlg_id': 'TLG1379', 'names': {'name_authtab': 'Fragmenta Alchemica', 'name_idt': 'Fragmenta Alchemica'}, 'works': {'R$*LABU/RINQOS H(/NPER *SOLOMW\\N E)TEKTH/NATO& (e cod. Venet. Marc. 299, fol. 102v)': ['Volume', 'page', 'line'], '?$*(/ORKOS TOU= FILOSO/FOU& (e cod. Venet. Marc. 299, fol. 128v)': ['Volume', 'page', 'line'], '=$*POI/HSIS KRUSTALLI/WN& (e cod. Venet. Marc. 299, fol. 116r)': ['Volume', 'page', 'line'], 'k$*KATABAFH\\ LI/QWN KAI\\ SMARA/GDWN KAI\\ LIXNITW=N KAI\\ U(AKI/NQWN& (e cod. Paris. B.N. gr. 2327, fol. 147r)': ['Volume', 'page', 'line'], 'q$*DIA/GRAMMA TH=S MEGA/LHS H(LIOURGI/AS PARABALLO/MENON EI)S TH\\N OI)KONOMI/AN TOU= PANTO/S& (e cod. Venet. Marc.': ['Volume', 'page', 'line'], ' Fragmentum alchemicum (P. Flor.)': ['line'], 'kLexicon alchemicum (%6 $*LECIKO\\N KATA\\ STOIXEI=ON TH=S XRUSOPOII/AS&) (e cod. Venet. Marc. 299, fol. 131r)': ['Volume', 'page', 'line'], 'B$*KINNABA/REWS SKEUASI/A& (e cod. Paris. B.N. gr. 2327, fol. 232r)': ['Volume', 'page', 'line'], "q$*LEU/KWSIS U(/DATOS, DI' OU(= LEUKAI/NETAI OI)KONOMOU/MENON TO\\ A)RSENIKO\\N KAI\\ H( SANDARA/XH& (e cod. Paris. B": ['Volume', 'page', 'line'], ':$*POI/HSIS A)RGU/ROU& (e cod. Venet. Marc. 299, fol. 194v)': ['Volume', 'page', 'line'], 'q$*BAFH\\ TOU= PARA\\ *PE/RSAIS E)CEURHME/NOU XALKOU= GRAFEI=SA A)PO\\ A)RXH=S *FILI/PPOU& (e cod. Venet. Marc. 299, ': ['Volume', 'page', 'line'], 'P$*TI/S H( TOU= ME/LANOS CHRI/OU KATASKEUH/& (e cod. Venet. Marc. 299, fol. 128r)': ['Volume', 'page', 'line'], '[$*XRH=SIS *)IOUSTINIANOU= BASILE/WS& (sine titulo) (e cod. Paris. B.N. gr. 2327, fol. 240v)': ['Volume', 'page', 'line'], '@$*EU)XH\\ EI)S TO\\ MELI/SSION& (e cod. Venet. Marc. 299, fol. 3r)': ['Volume', 'page', 'line'], 'q$*)ONOMATOPOII/A TOU= W)OU=: AU)TO\\ GA/R E)STIN TO\\ MUSTH/RION TH=S TE/XNHS& (e cod. Paris. B.N. gr. 2327, fol. 2': ['Volume', 'page', 'line'], '.Tractatus alchemicus (fragmenta) (P. Leid. 10)': ['Fragment', 'line'], 'GFragmentum alchemicum (sine titulo) (e cod. Venet. Marc. 299, fol. 99v)': ['Volume', 'page', 'line'], '@$*)EK TW=N METALLIKW=N& (e cod. Paris. B.N. gr. 2327, fol. 280r)': ['Volume', 'page', 'line'], '=$*PERI\\ BAFH=S SIDH/ROU& (e cod. Venet. Marc. 299, fol. 104r)': ['Volume', 'page', 'line'], 'q$*PERI\\ TOU= METALLIKOU= LIQOU= E)N OI(=S TOI=S TO/POIS E)KEI/NOIS KATASKEUA/ZETAI& (e cod. Paris. B.N. gr. 2327,': ['Volume', 'page', 'line'], '9Dedicatio ad Theodorum (e cod. Venet. Marc. 299, fol. 5v)': ['Volume', 'page', 'line'], 'I$*PERI\\ TOU= XRUSW=SAI SI/DHRON& (e cod. Paris. B.N. gr. 2327, fol. 295r)': ['Volume', 'page', 'line'], '`$*PERI\\ TH=S TIMIWTA/THS KAI\\ POLUFH/MOU XRUSOXOI+KH=S& (e cod. Paris. B.N. gr. 2327, fol. 280r)': ['Volume', 'page', 'line'], 'K$*(ERMOU= TRISMEGI/STOU O)/RGANON& (e cod. Paris. B.N. gr. 2327, fol. 293r)': ['Volume', 'page', 'line'], ':$*POI/HSIS A)SBE/STOU& (e cod. Venet. Marc. 299, fol. 99v)': ['Volume', 'page', 'line'], 'V$*(O LI/QOS TH=S FILOSOFI/AS& (fort. auctore Zosimo) (e cod. B.N. gr. 2327, fol. 215v)': ['Volume', 'page', 'line'], 'h$*BAFH\\ TOU= I)NDIKOU= SIDH/ROU GRAFEI=SA A)PO\\ A)RXH=S *FILI/PPOU& (e cod. Venet. Marc. 299, fol. 118v)': ['Volume', 'page', 'line'], 'q$*SKEUASI/A A)FRONI/TROU TOU= ZHTOUME/NOU EI)S TA\\S KOLLH/SEIS XRUSOU= KAI\\ A)RGU/ROU KAI\\ XALKOU=& (e cod. Paris': ['Volume', 'page', 'line'], 'C$*PERI\\ TOU= O)REIXA/LKOU& (e cod. Paris. B.N. gr. 2329, fol. 184v)': ['Volume', 'page', 'line'], 'D$*POI/HSIS MA=LLON TOU= PANTO/S& (e cod. Venet. Marc. 299, fol. 97r)': ['Volume', 'page', 'line'], 'D$*PERI\\ POIH/SEWS KINNABA/REWS& (e cod. Venet. Marc. 299, fol. 106r)': ['Volume', 'page', 'line'], '%Fragmentum alchemicum (P. Oxy. 3.467)': ['line'], 'K$*PERI\\ SUNA/CEWS TW=N FILOSO/FWN& (e cod. Paris. B.N. gr. 2327, fol. 233r)': ['Volume', 'page', 'line'], 'B$*SUMPE/RASMA TH=S POIH/SEWS& (e cod. Venet. Marc. 299, fol. 101r)': ['Volume', 'page', 'line'], '0Fragmentum alchemicum (P. Iand. 3.85 [inv. 212])': ['line'], 'b$*PERI\\ TH=S QEI/AS KAI\\ I(ERA=S TE/XNHS TW=N FILOSO/FWN& (e cod. Paris. B.N. gr. 2327, fol. 230r)': ['Volume', 'page', 'line'], 'I$*PERI\\ TOU= POIH=SAI TURO/KOLLAN& (e cod. Paris. B.N. gr. 2327, fol. 7r)': ['Volume', 'page', 'line'], '>$*PERI\\ ZU/QWN POIH/SEWS& (e cod. Venet. Marc. 299, fol. 162r)': ['Volume', 'page', 'line'], 'HFragmentum alchemicum (sine titulo) (e cod. Venet. Marc. 299, fol. 100v)': ['Volume', 'page', 'line'], '[$*PERI\\ LEUKW/SEWS TOU= A)RSENIKOU= TOU= SXISTOU=& (e cod. Paris. B.N. gr. 2327, fol. 279v)': ['Volume', 'page', 'line'], '9$*STA/KTHS POI/HSIS& (e cod. Venet. Marc. 299, fol. 162v)': ['Volume', 'page', 'line'], 'H$*TI/S H( TH=S KOMA/REWS SU/NQESIS& (e cod. Venet. Marc. 299, fol. 128r)': ['Volume', 'page', 'line'], 'HFragmentum alchemicum (sine titulo) (e cod. Venet. Marc. 299, fol. 100r)': ['Volume', 'page', 'line'], 'F$*PERI\\ TOU= LI/QOU TW=N FILOSO/FWN& (e cod. B.N. gr. 2327, fol. 216r)': ['Volume', 'page', 'line'], 'i$*POI=ON EI)=NAI XRH\\ TOI=S H)/QESI TO\\N METIO/NTA TH\\N E)PISTH/MHN& (e cod. Venet. Marc. 299, fol. 128r)': ['Volume', 'page', 'line'], '<$*XRUSOU= POI/HSIS& (e cod. Paris. B.N. gr. 2327, fol. 232r)': ['Volume', 'page', 'line'], '-$*(H A)GWGH/& (e cod. Venet. Marc. 299, 101r)': ['Volume', 'page', 'line'], '@$*PERI\\ POIH/SEWS A)SH/MOU& (e cod. Venet. Marc. 299, fol. 106r)': ['Volume', 'page', 'line'], 'H$*PERI\\ TOU= QEI/OU A)KAU/STOU& (e cod. Paris. B.N. gr. 2327, fol. 279r)': ['Volume', 'page', 'line'], 'N$*PERI\\ TOU= POIH=SAI O)CUGGOSA/POUNON& (e cod. Paris. B.N. gr. 2327, fol. 7v)': ['Volume', 'page', 'line'], 'V$*)ONO/MATA TW=N XRUSOPOIHTW=N& (sine titulo) (e cod. Paris. B.N. gr. 2327, fol. 195v)': ['Volume', 'page', 'line'], 'n$*(/OTI SU/NQETON KAI\\ OU)X A(PLOU=N TO\\ EI)=DOS KAI\\ TI/S H( OI)KONOMI/A& (e cod. Venet. Marc. 299, fol. 96r)': ['Volume', 'page', 'line'], '+Tractatus alchemicus (fragmenta) (P. Holm.)': ['Fragment', 'line'], 'qDe quattuor elementis (tractatus qui incipit a vocibus $A)RXH\\ TH=S KATA\\ PLA/TOS TOU= E)/RGOU E)CHGH/SEWS&) (e c': ['Volume', 'page', 'line'], 'q$*EI) QE/LEIS POIH=SAI FOU/RMAS KAI\\ TU/LOUS A)PO\\ BRONTHSI/OU, POI/EI OU(/TWS& (e cod. Venet. Marc. 299, fol. 12': ['Volume', 'page', 'line'], 'H$*TI/S H( TW=N A)RXAI/WN A)/SBESTOS& (e cod. Venet. Marc. 299, fol. 99r)': ['Volume', 'page', 'line'], 'q$*PO/SOS O( TW=N BAPTOME/NWN E)RI/WN STAQMO\\S W)/FEILEN KAI\\ PO/SOS O( TH=S KOMA/REWS KAI\\ PO/SOS O( TW=N BEBAMME': ['Volume', 'page', 'line'], 'qDe margaritis (collectio excerptorum quae incipit a vocibus $*SMH=CIS KAI\\ LA/MPRUNSIS MARGA/RWN H(=| POLLA/KIS O': ['Volume', 'page', 'line'], '5$*(H OI)KONOMI/A& (e cod. Venet. Marc. 299, fol. 98v)': ['Volume', 'page', 'line'], '[$*(O OU)ROBO/ROS DRA/KWN& (versio 2) (sine titulo) (e cod. Paris. B.N. gr. 2327, fol. 279r)': ['Volume', 'page', 'line'], 'S$*PERI\\ TOU= W)OU= OI( PALAIOI/ FASIN OU(/TWS& (e cod. Venet. Marc. 299, fol. 106v)': ['Volume', 'page', 'line'], '"Fragmentum alchemicum (P. Leid. 5)': ['line'], 'N$*TI/S H( META\\ TH\\N I)/WSIN OI)KONOMI/A& (e cod. Venet. Marc. 299, fol. 128r)': ['Volume', 'page', 'line'], 'B$*OI)KONOMI/A TH=S A)SBE/STOU& (e cod. Venet. Marc. 299, fol. 99v)': ['Volume', 'page', 'line'], 'LExcerptum de mensibus (sine titulo) (e cod. Paris. B.N. gr. 2327, fol. 240v)': ['Volume', 'page', 'line'], 'N$*DIAFORAI\\ MOLI/BDOU KAI\\ XRUSOPETA/LOU& (e cod. Venet. Marc. 299, fol. 130r)': ['Volume', 'page', 'line'], '[$*(O OU)ROBO/ROS DRA/KWN& (versio 1) (sine titulo) (e cod. Paris. B.N. gr. 2327, fol. 196r)': ['Volume', 'page', 'line'], '[Fragmentum $PERI\\ LEUKW/SEWS& ($XALKOU=&) (sine titulo) (e cod. Paris. gr. 2327, fol. 231v)': ['Volume', 'page', 'line'], '3$*(H POI/HSIS& (e cod. Venet. Marc. 299, fol. 100v)': ['Volume', 'page', 'line']}}, 'Socratis Epistulae': {'tlg_id': 'TLG0636', 'names': {'name_authtab': 'Socratis Epistulae', 'name_idt': 'Socratis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Pherecydes Hist.': {'tlg_id': 'TLG1584', 'names': {'name_authtab': 'Pherecydes Hist.', 'name_idt': 'Pherecydes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Barnabae Epistula': {'tlg_id': 'TLG1216', 'names': {'name_authtab': 'Barnabae Epistula', 'name_idt': 'Barnabae Epistula'}, 'works': {'': ['Barnabae epistula', 'Chapter', 'section', 'line']}}, 'Theodorus Heracleensis vel Theodorus Mopsuestenus Scr. Eccl.': {'tlg_id': 'TLG2967', 'names': {'name_authtab': 'Theodorus Heracleensis vel Theodorus Mopsuestenus Scr. Eccl.', 'name_idt': 'Theodorus Heracleensis vel Theodorus Mopsuestenus Scr. Eccl.'}, 'works': {'#Fragmenta in Matthaeum (in catenis)': ['Fragment', 'line']}}, 'Andron Geogr.': {'tlg_id': 'TLG2536', 'names': {'name_authtab': 'Andron Geogr.', 'name_idt': 'Andron Geogr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aristophanes Gramm.': {'tlg_id': 'TLG0644', 'names': {'name_authtab': 'Aristophanes Gramm.', 'name_idt': 'Aristophanes Gramm.'}, 'works': {'%Ceteri Aristophanis libri (fragmenta)': ['Treatise', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line'], '3Argumenta fabularum Aristophani tributa (fragmenta)': ['Fragment', 'line'], 'Nomina aetatum (fragmenta)': ['Page', 'line'], 'Paroemiae (fragmenta)': ['Fragment', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], '%Nomina aetatum (fragmentum Parisinum)': ['Section', 'line'], 'WAristophanis historiae animalium epitome subjunctis Aeliani Timothei aliorumque eclogis': ['Chapter', 'section', 'line'], ',De suspectis apud veteres verbis (fragmenta)': ['Page', 'line'], '-Commentaria in Callimachi pinaces (fragmenta)': ['Fragment', 'line']}}, 'Cyrus Rhet.': {'tlg_id': 'TLG4242', 'names': {'name_authtab': 'Cyrus Rhet.', 'name_idt': 'Cyrus Rhet.'}, 'works': {'$*PERI\\ DIAFORA=S STA/SEWS&': ['Section', 'line']}}, 'Etymologicum Magnum': {'tlg_id': 'TLG4099', 'names': {'name_authtab': 'Etymologicum Magnum', 'name_idt': 'Etymologicum Magnum'}, 'works': {'Etymologicum magnum': ['\x0fKallierges page', 'line']}}, 'Nicolaus Rhet., Soph.': {'tlg_id': 'TLG2904', 'names': {'name_authtab': 'Nicolaus Rhet. et Soph.', 'name_idt': 'Nicolaus Rhet., Soph.'}, 'works': {'qProgymnasmata (capita $PERI\\ SUGKRI/SEWS, PERI\\ H)QOPOII/AS, PERI\\ E)KFRA/SEWS, PERI\\ QE/SEWS, PERI\\ NO/MOU EI)SF': ['Page', 'line'], 'Progymnasmata': ['Page', 'line'], 'JProgymnasmata (caput $PERI\\ SUGKRI/SEWS&) (e cod. Brit. Mus. addit. 11889)': ['Page', 'line']}}, 'Ptolemaeus Hist.': {'tlg_id': 'TLG1646', 'names': {'name_authtab': 'Ptolemaeus Hist.', 'name_idt': 'Ptolemaeus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aristoxenus Comic.': {'tlg_id': 'TLG0241', 'names': {'name_authtab': 'Aristoxenus Comic.', 'name_idt': 'Aristoxenus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Isidorus Trag.': {'tlg_id': 'TLG0352', 'names': {'name_authtab': 'Isidorus Trag.', 'name_idt': 'Isidorus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heraclides Comic.': {'tlg_id': 'TLG0466', 'names': {'name_authtab': 'Heraclides Comic.', 'name_idt': 'Heraclides Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Nymphodorus Hist.': {'tlg_id': 'TLG0578', 'names': {'name_authtab': 'Nymphodorus Hist.', 'name_idt': 'Nymphodorus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Antiphon Trag.': {'tlg_id': 'TLG0323', 'names': {'name_authtab': 'Antiphon Trag.', 'name_idt': 'Antiphon Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Physiologus': {'tlg_id': 'TLG2654', 'names': {'name_authtab': 'Physiologus', 'name_idt': 'Physiologus'}, 'works': {'Physiologus (redactio prima)': ['Section', 'line']}}, 'Sannyrion Comic.': {'tlg_id': 'TLG0501', 'names': {'name_authtab': 'Sannyrion Comic.', 'name_idt': 'Sannyrion Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Timolaus Hist.': {'tlg_id': 'TLG2533', 'names': {'name_authtab': 'Timolaus Hist.', 'name_idt': 'Timolaus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Plato Comic.': {'tlg_id': 'TLG0497', 'names': {'name_authtab': 'Plato Comic.', 'name_idt': 'Plato Comic.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Fragmentum': ['Fragment', 'line']}}, 'Menandri Et Philistionis Sententiae': {'tlg_id': 'TLG1791', 'names': {'name_authtab': 'Menandri Et Philistionis Sententiae', 'name_idt': 'Menandri Et Philistionis Sententiae'}, 'works': {'#Sententiae Menandri et Philistionis': ['Sententia', 'section', 'line'], '#Comparatio Menandri et Philistionis': ['Section', 'line']}}, 'Simonides Lyr.': {'tlg_id': 'TLG0261', 'names': {'name_authtab': 'Simonides Lyr.', 'name_idt': 'Simonides Lyr.'}, 'works': {'': ['Simonides& Lyr. !!! AUTHOR NAME'], 'Fragmenta': ['line', 'fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Testimonium': ['line', 'fragment', 'line']}}, 'Anacreon Junior Eleg.': {'tlg_id': 'TLG0217', 'names': {'name_authtab': 'Anacreon Junior Eleg.', 'name_idt': 'Anacreon Junior Eleg.'}, 'works': {'Fragmentum': ['line']}}, 'Theotimus Hist.': {'tlg_id': 'TLG1727', 'names': {'name_authtab': 'Theotimus Hist.', 'name_idt': 'Theotimus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Septuaginta': {'tlg_id': 'TLG0527', 'names': {'name_authtab': 'Septuaginta', 'name_idt': 'Septuaginta'}, 'works': {'*Regnorum iii (Regum i in textu Masoretico)': ['Chapter', 'section', 'line'], '': ['Epistula Jeremiae', 'Section', 'line'], 'Ruth': ['Chapter', 'section', 'line'], 'Judices (Cod. Alexandrinus)': ['Chapter', 'section', 'line'], 'Genesis': ['Chapter', 'section', 'line'], 'Numeri': ['Chapter', 'section', 'line'], 'Sophonias': ['Chapter', 'section', 'line'], 'Judith': ['Chapter', 'section', 'line'], '"Paralipomenon ii sive Chronicon ii': ['Chapter', 'section', 'line'], 'Ezechiel': ['Chapter', 'section', 'line'], 'Canticum': ['Chapter', 'section', 'line'], 'Tobias (Cod. Sinaiticus)': ['Chapter', 'section', 'line'], 'Abdias': ['Section', 'line'], 'Machabaeorum ii': ['Chapter', 'section', 'line'], 'Josue (Cod. Alexandrinus)': ['Chapter', 'section', 'line'], 'Joel': ['Chapter', 'section', 'line'], '"Bel et Draco (Theodotionis versio)': ['Section', 'line'], 'Aggaeus': ['Chapter', 'section', 'line'], 'Esther': ['Chapter', 'section', 'line'], 'Odae': ['Ode', 'section', 'line'], 'Isaias': ['Chapter', 'section', 'line'], 'Jeremias': ['Chapter', 'section', 'line'], 'Osee': ['Chapter', 'section', 'line'], 'Machabaeorum i': ['Chapter', 'section', 'line'], 'Jonas': ['Chapter', 'section', 'line'], 'Judices (Cod. Vaticanus)': ['Chapter', 'section', 'line'], 'Nahum': ['Chapter', 'section', 'line'], 'Habacuc': ['Chapter', 'section', 'line'], 'Deuteronomium': ['Chapter', 'section', 'line'], 'Esdras i (liber apocryphus)': ['Chapter', 'section', 'line'], 'Exodus': ['Chapter', 'section', 'line'], 'Susanna (Theodotionis versio)': ['Section', 'line'], ' Paralipomenon i sive Chronicon i': ['Chapter', 'section', 'line'], '0Esdras ii (Ezra et Nehemias in textu Masoretico)': ['Chapter', 'section', 'line'], '-Regnorum ii (Samuelis ii in textu Masoretico)': ['Chapter', 'section', 'line'], '*Regnorum iv (Regum ii in textu Masoretico)': ['Chapter', 'section', 'line'], 'Amos': ['Chapter', 'section', 'line'], 'Threni seu Lamentationes': ['Chapter', 'section', 'line'], '+Josue (Cod. Vaticanus %7 Cod. Alexandrinus)': ['Chapter', 'section', 'line'], 'Susanna (translatio Graeca)': ['Section', 'line'], 'Job': ['Chapter', 'section', 'line'], 'Zacharias': ['Chapter', 'section', 'line'], 'Psalmi': ['Psalm', 'section', 'line'], 'Psalmi Salomonis': ['Psalm', 'section', 'line'], 'Proverbia': ['Proverb', 'section', 'line'], '+Regnorum i (Samuelis i in textu Masoretico)': ['Chapter', 'section', 'line'], ';Ecclesiasticus sive Siracides (Sapientia Jesu filii Sirach)': ['Chapter', 'section', 'line'], ',Tobias (Cod. Vaticanus %7 Cod. Alexandrinus)': ['Chapter', 'section', 'line'], 'Daniel (Theodotionis versio)': ['Chapter', 'section', 'line'], 'Leviticus': ['Chapter', 'section', 'line'], ' Bel et Draco (translatio Graeca)': ['Section', 'line'], 'Baruch': ['Chapter', 'section', 'line'], 'Machabaeorum iv': ['Chapter', 'section', 'line'], 'Daniel (translatio Graeca)': ['Chapter', 'section', 'line'], 'Malachias': ['Chapter', 'section', 'line'], 'Ecclesiastes': ['Chapter', 'section', 'line'], 'Michaeas': ['Chapter', 'section', 'line'], 'Machabaeorum iii': ['Chapter', 'section', 'line'], 'Sapientia Salomonis': ['Chapter', 'section', 'line']}}, 'Callippus Comic.': {'tlg_id': 'TLG0427', 'names': {'name_authtab': 'Callippus Comic.', 'name_idt': 'Callippus Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Sosicrates Comic.': {'tlg_id': 'TLG0503', 'names': {'name_authtab': 'Sosicrates Comic.', 'name_idt': 'Sosicrates Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Promathidas Hist.': {'tlg_id': 'TLG2300', 'names': {'name_authtab': 'Promathidas Hist.', 'name_idt': 'Promathidas Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Limenius Lyr.': {'tlg_id': 'TLG0203', 'names': {'name_authtab': 'Limenius Lyr.', 'name_idt': 'Limenius Lyr.'}, 'works': {',Paean Delphicus ii et prosodium in Apollinem': ['line']}}, 'Calani Epistula': {'tlg_id': 'TLG0040', 'names': {'name_authtab': 'Calani Epistula', 'name_idt': 'Calani Epistula'}, 'works': {'Epistula': ['line']}}, 'Polycrates Scr. Eccl.': {'tlg_id': 'TLG1626', 'names': {'name_authtab': 'Polycrates Scr. Eccl.', 'name_idt': 'Polycrates Scr. Eccl.'}, 'works': {'Fragmentum synodicae epistulae': ['Page', 'line']}}, 'Palladius Scr. Eccl.': {'tlg_id': 'TLG2111', 'names': {'name_authtab': 'Palladius Scr. Eccl.', 'name_idt': 'Palladius Scr. Eccl.'}, 'works': {'Historia Lausiaca (recensio G)': ['Vita', 'section', 'line'], '$Dialogus de vita Joannis Chrysostomi': ['Page', 'line'], "'De gentibus Indiae et Bragmanibus [Sp.]": ['Chapter', 'section', 'line'], 'Epistula ad Lausum': ['Page', 'line'], '&Prooemium ad historiam Lausiacam [Sp.]': ['Page', 'line']}}, 'Euphantus Phil.': {'tlg_id': 'TLG1912', 'names': {'name_authtab': 'Euphantus Phil.', 'name_idt': 'Euphantus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Prorus Phil.': {'tlg_id': 'TLG2729', 'names': {'name_authtab': 'Prorus Phil.', 'name_idt': 'Prorus Phil.'}, 'works': {'Titulus': ['Page', 'line']}}, 'Menestor Phil.': {'tlg_id': 'TLG2228', 'names': {'name_authtab': 'Menestor Phil.', 'name_idt': 'Menestor Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Tryphon II Gramm.': {'tlg_id': 'TLG1763', 'names': {'name_authtab': 'Tryphon II Gramm.', 'name_idt': 'Tryphon II Gramm.'}, 'works': {'/De tropis (olim sub auctore Gregorio Corinthio)': ['Chapter', 'section', 'line']}}, 'Evangelium Aegyptium': {'tlg_id': 'TLG1364', 'names': {'name_authtab': 'Evangelium Aegyptium', 'name_idt': 'Evangelium Aegyptium'}, 'works': {'Evangelium Aegyptium': ['Fragment', 'line']}}, 'Martyrium Carpi, Papyli Et Agathonicae': {'tlg_id': 'TLG0390', 'names': {'name_authtab': 'Martyrium Carpi, Papyli Et Agathonicae', 'name_idt': 'Martyrium Carpi, Papyli Et Agathonicae'}, 'works': {'0Martyrium sanctorum Carpi, Papyli et Agathonicae': ['Section', 'line']}}, 'Manasses Hist., Poeta': {'tlg_id': 'TLG3074', 'names': {'name_authtab': 'Constantinus Manasses Hist. et Poeta', 'name_idt': 'Manasses Hist., Poeta'}, 'works': {'Vita Oppiani': ['line'], 'Compendium chronicum': ['line']}}, 'Theocles Lyr.': {'tlg_id': 'TLG0206', 'names': {'name_authtab': 'Theocles Lyr.', 'name_idt': 'Theocles Lyr.'}, 'works': {'Ithyphalli': ['line']}}, 'Theodectas Trag.': {'tlg_id': 'TLG0329', 'names': {'name_authtab': 'Theodectas Trag.', 'name_idt': 'Theodectas Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Arrianus Epic.': {'tlg_id': 'TLG2650', 'names': {'name_authtab': 'Arrianus Epic.', 'name_idt': 'Arrianus Epic.'}, 'works': {'Fragmentum et tituli': ['Fragment', 'line']}}, 'Scholia In Homerum': {'tlg_id': 'TLG5026', 'names': {'name_authtab': 'Scholia In Homerum', 'name_idt': 'Scholia In Homerum'}, 'works': {'IScholia in Iliadem (scholia vetera et recentiora e cod. Genevensi gr. 44)': ['Book of Iliad', 'verse', 'line'], '#Scholia in Iliadem (scholia vetera)': ['Book of Iliad', 'verse', 'line'], "'Inscriptiones et hypothesis in Odysseam": ['\x16Inscription-hypothesis', 'line'], 'WScholia in Iliadem (scholia recentiora Theodori Meliteniotis) (e cod. Genevensi gr. 44)': ['Book of Iliad', 'verse', 'line'], '$Hypotheses in Iliadem (e D scholiis)': ['Book of Iliad', 'hypothesis', 'line'], '2Scholia in Iliadem (scholia vetera) (%6 D scholia)': ['Book of Iliad', 'verse', 'line'], ',Scholia in Odysseam 1.1-309 (scholia vetera)': ['\x1bHypothesis-verse of Odyssey', 'line'], '$Scholia in Odysseam (scholia vetera)': ['Book', '\x10hypothesis-verse', 'line']}}, 'Martyrium Pionii': {'tlg_id': 'TLG2005', 'names': {'name_authtab': 'Martyrium Pionii', 'name_idt': 'Martyrium Pionii'}, 'works': {"'Martyrium Pionii presbyteri et sodalium": ['Chapter', 'section', 'line']}}, 'Homerus Epic.': {'tlg_id': 'TLG0012', 'names': {'name_authtab': 'Homerus Epic., Homer', 'name_idt': 'Homerus Epic.'}, 'works': {'Ilias': ['Book', 'line', '¶ÃÐ\x17³\x1b®¼Ì\x1f\x8e#´ÂÉ(®Ã,÷\x92¼Ð2ú×5Ðþ;>\x92ºÊêDîþ\x8e®¾Jêù\x8cùOÇÖS©ºV¼Ê÷Zíü\x8c^Òbû§¶h̤', '\x17\x1b\x1f#(,25;>DJOSVZ^bhn'], 'Odyssea': ['Book', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Marcellus Hist.': {'tlg_id': 'TLG2458', 'names': {'name_authtab': 'Marcellus Hist.', 'name_idt': 'Marcellus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Orus Gramm.': {'tlg_id': 'TLG2995', 'names': {'name_authtab': 'Orus Gramm.', 'name_idt': 'Orus Gramm.'}, 'works': {'qOrthographia ($PERI\\ TH=S <I> A)NEKFWNH/TOU&) (olim sub titulo Lexicon Messanense) (fragmenta e cod. S. Salvatore': ['Folio r %9 v', 'line'], '9Vocum Atticarum collectio (fragmenta ap. Zonarae lexicon)': ['Fragment', 'line'], 'QVocum Atticarum collectio (fragmenta ap. alios auctores et in aliis Ori scriptis)': ['Fragment', 'line']}}, 'Paulus Med.': {'tlg_id': 'TLG0715', 'names': {'name_authtab': 'Paulus Med.', 'name_idt': 'Paulus Med.'}, 'works': {'Epitomae medicae libri septem': ['Book', 'chapter', 'section', 'line']}}, 'Epigenes Comic.': {'tlg_id': 'TLG0452', 'names': {'name_authtab': 'Epigenes Comic.', 'name_idt': 'Epigenes Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Himerius Soph.': {'tlg_id': 'TLG2051', 'names': {'name_authtab': 'Himerius Soph.', 'name_idt': 'Himerius Soph.'}, 'works': {'Declamationes et orationes': ['Oration', 'line'], 'Fragmenta (P. Oslo inv. 1478)': ['Fragment', 'line'], '!Fragmenta ex incertis orationibus': ['Fragment', 'line']}}, 'Dionysius II Eleg.': {'tlg_id': 'TLG0247', 'names': {'name_authtab': 'Dionysius II Eleg.', 'name_idt': 'Dionysius II Eleg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Nicetas Choniates Hist., Scr. Eccl., Rhet.': {'tlg_id': 'TLG3094', 'names': {'name_authtab': 'Nicetas Choniates Hist., Scr. Eccl. et Rhet.', 'name_idt': 'Nicetas Choniates Hist., Scr. Eccl., Rhet.'}, 'works': {'#Historia (%6$ *XRONIKH\\ DIH/GHSIS&)': ['Reign', 'page', 'line']}}, 'Herodas Mimogr.': {'tlg_id': 'TLG0650', 'names': {'name_authtab': 'Herodas Mimogr.', 'name_idt': 'Herodas Mimogr.'}, 'works': {'Mimiambi': ['Mime', 'line']}}, 'Sophronius Gramm.': {'tlg_id': 'TLG4149', 'names': {'name_authtab': 'Sophronius Gramm.', 'name_idt': 'Sophronius Gramm.'}, 'works': {'JExcerpta ex Joannis Characis commentariis in Theodosii Alexandrini canones': ['Page', 'line']}}, 'Procopius Hist.': {'tlg_id': 'TLG4029', 'names': {'name_authtab': 'Procopius Hist.', 'name_idt': 'Procopius Hist.'}, 'works': {'De aedificiis (lib. 1-6)': ['Book', 'chapter', 'section', 'line'], 'De bellis': ['Book', 'chapter', 'section', 'line'], 'Historia arcana (%6 Anecdota)': ['Chapter', 'section', 'line']}}, 'Pancrates Epigr.': {'tlg_id': 'TLG1556', 'names': {'name_authtab': 'Pancrates Epigr.', 'name_idt': 'Pancrates Epigr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Menander Hist.': {'tlg_id': 'TLG1498', 'names': {'name_authtab': 'Menander Hist.', 'name_idt': 'Menander Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Bion Bucol.': {'tlg_id': 'TLG0036', 'names': {'name_authtab': 'Bion Bucol.', 'name_idt': 'Bion Bucol.'}, 'works': {'': ['Epitaphius Adonis', 'line'], ')Epithalamium Achillis et Deidameiae [Sp.]': ['line'], 'Fragmenta': ['Fragment', 'line']}}, 'Epigoni': {'tlg_id': 'TLG1351', 'names': {'name_authtab': 'Epigoni', 'name_idt': 'Epigoni'}, 'works': {'Epigoni (fragmenta)': ['Fragment', 'line']}}, 'Athanis Hist.': {'tlg_id': 'TLG2387', 'names': {'name_authtab': 'Athanis Hist.', 'name_idt': 'Athanis Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hermesianax Eleg.': {'tlg_id': 'TLG0213', 'names': {'name_authtab': 'Hermesianax Eleg.', 'name_idt': 'Hermesianax Eleg.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Chrysippus Phil.': {'tlg_id': 'TLG1264', 'names': {'name_authtab': 'Chrysippus Phil.', 'name_idt': 'Chrysippus Phil.'}, 'works': {'': ['Fragmenta poetica', 'Fragment', 'line'], '>Fragmenta quae ad explicationem carminum Homericorum pertinent': ['Fragment', 'line'], '#Fragmenta ad singulos libros relata': ['Treatise', 'fragment', 'line'], 'Fragmentum (P. Ant. 2.61)': ['line'], 'Fragmenta logica et physica': ['Fragment', 'line']}}, 'Alcaeus Lyr.': {'tlg_id': 'TLG0383', 'names': {'name_authtab': 'Alcaeus Lyr.', 'name_idt': 'Alcaeus Lyr.'}, 'works': {'Fragmentis addenda': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Discipulorum Cantiuncula': {'tlg_id': 'TLG0279', 'names': {'name_authtab': 'Discipulorum Cantiuncula', 'name_idt': 'Discipulorum Cantiuncula'}, 'works': {'Fragmentum (P. Med.)': ['line']}}, 'Hermias Poeta': {'tlg_id': 'TLG2624', 'names': {'name_authtab': 'Hermias Poeta', 'name_idt': 'Hermias Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Protagoras Soph.': {'tlg_id': 'TLG1635', 'names': {'name_authtab': 'Protagoras Soph.', 'name_idt': 'Protagoras Soph.'}, 'works': {'Fragmentum': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Theopompus Hist.': {'tlg_id': 'TLG0566', 'names': {'name_authtab': 'Theopompus Hist.', 'name_idt': 'Theopompus Hist.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Fragmentum (P. Colon. 5861)': ['FGrH fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Apollonius Dyscolus Gramm.': {'tlg_id': 'TLG0082', 'names': {'name_authtab': 'Apollonius Dyscolus Gramm.', 'name_idt': 'Apollonius Dyscolus Gramm.'}, 'works': {'De constructione': ['Part', 'volume', 'page', 'line'], 'De pronominibus': ['Part', '\x0fvolume+fascicle', 'page', 'line'], 'De adverbiis': ['Part', '\x0fvolume+fascicle', 'page', 'line'], 'De conjunctionibus': ['Part', '\x0fvolume+fascicle', 'page', 'line']}}, 'Batrachomyomachia': {'tlg_id': 'TLG1220', 'names': {'name_authtab': 'Batrachomyomachia', 'name_idt': 'Batrachomyomachia'}, 'works': {'': ['Batrachomyomachia', 'line'], '&Batrachomyomachia (prosodia Byzantina)': ['line']}}, 'Xuthus Phil.': {'tlg_id': 'TLG2229', 'names': {'name_authtab': 'Xuthus Phil.', 'name_idt': 'Xuthus Phil.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, 'Damastes Hist.': {'tlg_id': 'TLG1868', 'names': {'name_authtab': 'Damastes Hist.', 'name_idt': 'Damastes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Synesius Phil.': {'tlg_id': 'TLG2006', 'names': {'name_authtab': 'Synesius Phil.', 'name_idt': 'Synesius Phil.'}, 'works': {'': ['Calvitii encomium', 'Section', 'line'], 'Dion': ['Section', 'line'], 'Aegyptii sive de providentia': ['Chapter', 'section', 'line'], 'De insomniis': ['Section', 'line'], 'Oratio de regno': ['Section', 'line'], 'Hymni': ['Hymn', 'line'], 'Catastases': ['Oration', 'section', 'line'], 'Epistulae': ['Epistle', 'line'], 'Ad Paeonium de dono astrolabii': ['Section', 'line'], 'Homiliae': ['Homily', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Hegemon Epic.': {'tlg_id': 'TLG1391', 'names': {'name_authtab': 'Hegemon Epic.', 'name_idt': 'Hegemon Epic.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Testimonium': ['line', 'fragment', 'line'], 'Fragmentum': ['line', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Aristonymus Comic.': {'tlg_id': 'TLG0420', 'names': {'name_authtab': 'Aristonymus Comic.', 'name_idt': 'Aristonymus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Anaxandridas Hist.': {'tlg_id': 'TLG2284', 'names': {'name_authtab': 'Anaxandridas Hist.', 'name_idt': 'Anaxandridas Hist.'}, 'works': {'Fragmenta': ['Fragment', ' line']}}, 'Archedemus Phil.': {'tlg_id': 'TLG1173', 'names': {'name_authtab': 'Archedemus Phil.', 'name_idt': 'Archedemus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sappho et Alcaeus Lyr.': {'tlg_id': 'TLG1815', 'names': {'name_authtab': 'Sappho et Alcaeus Lyr.', 'name_idt': 'Sappho et Alcaeus Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Onatas Phil.': {'tlg_id': 'TLG1549', 'names': {'name_authtab': 'Onatas Phil.', 'name_idt': 'Onatas Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Irenaeus Theol.': {'tlg_id': 'TLG1447', 'names': {'name_authtab': 'Irenaeus Theol.', 'name_idt': 'Irenaeus Theol.'}, 'works': {'Adversus haereses (liber 3)': ['Section', 'line'], 'Adversus haereses (liber 4)': ['Fragment', 'line'], '"Adversus haereses 5.3-13 (P. Jena)': ['Fragment', 'section', 'line'], '%Adversus haereses 3.9 (P. Oxy. 3.405)': ['Section', 'line'], 'Adversus haereses (libri 1-2)': ['Book', 'chapter', 'section', 'line'], 'Fragmenta deperditorum operum': ['Fragment', 'line'], 'Adversus haereses (liber 5)': ['Fragment', 'line']}}, 'Evangelium Mariae': {'tlg_id': 'TLG1369', 'names': {'name_authtab': 'Evangelium Mariae', 'name_idt': 'Evangelium Mariae'}, 'works': {'': ['Evangelium Mariae', 'Section', 'line']}}, 'Diphilus Comic.': {'tlg_id': 'TLG0447', 'names': {'name_authtab': 'Diphilus Comic.', 'name_idt': 'Diphilus Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Euenus Eleg.': {'tlg_id': 'TLG0251', 'names': {'name_authtab': 'Euenus Eleg.', 'name_idt': 'Euenus Eleg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scholia In Apollonium Rhodium': {'tlg_id': 'TLG5012', 'names': {'name_authtab': 'Scholia In Apollonium Rhodium', 'name_idt': 'Scholia In Apollonium Rhodium'}, 'works': {'8Scholia in Apollonii Rhodii Argonautica (scholia vetera)': ['Page', 'line']}}, 'Alexander Lyr., Trag.': {'tlg_id': 'TLG0216', 'names': {'name_authtab': 'Alexander Lyr. et Trag.', 'name_idt': 'Alexander Lyr., Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Triphiodorus Epic., Gramm.': {'tlg_id': 'TLG0647', 'names': {'name_authtab': 'Triphiodorus Epic. et Gramm.', 'name_idt': 'Triphiodorus Epic., Gramm.'}, 'works': {'$*(/ALWSIS *)ILI/OU&': ['line']}}, 'Socrates Hist.': {'tlg_id': 'TLG1678', 'names': {'name_authtab': 'Socrates Hist.', 'name_idt': 'Socrates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Menecrates Hist.': {'tlg_id': 'TLG4344', 'names': {'name_authtab': 'Menecrates Hist.', 'name_idt': 'Menecrates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Eriphus Comic.': {'tlg_id': 'TLG0455', 'names': {'name_authtab': 'Eriphus Comic.', 'name_idt': 'Eriphus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Aelius Dius Hist.': {'tlg_id': 'TLG2434', 'names': {'name_authtab': 'Aelius Dius Hist.', 'name_idt': 'Aelius Dius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Acta Alexandrinorum': {'tlg_id': 'TLG0300', 'names': {'name_authtab': 'Acta Alexandrinorum', 'name_idt': 'Acta Alexandrinorum'}, 'works': {'Acta Alexandrinorum': ['Chapter', 'column or fragment', 'line']}}, 'Xeno Comic.': {'tlg_id': 'TLG0519', 'names': {'name_authtab': 'Xeno Comic.', 'name_idt': 'Xeno Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Sostratus Gramm.': {'tlg_id': 'TLG1688', 'names': {'name_authtab': 'Sostratus Gramm.', 'name_idt': 'Sostratus Gramm.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Menelaus Epic.': {'tlg_id': 'TLG1504', 'names': {'name_authtab': 'Menelaus Epic.', 'name_idt': 'Menelaus Epic.'}, 'works': {'Fragmenta et titulus': ['Fragment', 'line']}}, 'Conon Hist.': {'tlg_id': 'TLG1285', 'names': {'name_authtab': 'Conon Hist.', 'name_idt': 'Conon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Priscianus Phil.': {'tlg_id': 'TLG4014', 'names': {'name_authtab': 'Priscianus Phil.', 'name_idt': 'Priscianus Phil.'}, 'works': {'Metaphrasis in Theophrastum': ['Page', 'line']}}, 'Philostratus Major Soph.': {'tlg_id': 'TLG1600', 'names': {'name_authtab': 'Philostratus Major Soph.', 'name_idt': 'Philostratus Major Soph.'}, 'works': {'Imagines': ['Book', 'chapter', 'section', 'line']}}, 'Plutarchus': {'tlg_id': 'TLG0094', 'names': {'name_authtab': 'Pseudo-Plutarchus', 'name_idt': 'Plutarchus'}, 'works': {'De fluviis': ['Chapter', 'section', 'line'], 'De musica (1131b-1147a)': ['Stephanus page', 'section', 'line'], '!Placita philosophorum (874d-911c)': ['Stephanus page', 'section', 'line']}}, 'Scamon Hist.': {'tlg_id': 'TLG2330', 'names': {'name_authtab': 'Scamon Hist.', 'name_idt': 'Scamon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Polyaenus Rhet.': {'tlg_id': 'TLG0616', 'names': {'name_authtab': 'Polyaenus Rhet.', 'name_idt': 'Polyaenus Rhet.'}, 'works': {'': ['Excerpta Polyaeni', 'Excerpt', 'section', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line'], 'Strategemata': ['Book', 'chapter', 'section', 'line']}}, 'Apocalypsis Esdrae': {'tlg_id': 'TLG1157', 'names': {'name_authtab': 'Apocalypsis Esdrae', 'name_idt': 'Apocalypsis Esdrae'}, 'works': {'Apocalypsis Esdrae': ['Page', 'line'], 'Apocalypsis Esdrae quarta': ['Page', 'line']}}, 'Polybius Rhet.': {'tlg_id': 'TLG0605', 'names': {'name_authtab': 'Polybius Rhet.', 'name_idt': 'Polybius Rhet.'}, 'works': {'Fragmenta de figuris': ['Page', 'line'], 'De barbarismo et soloecismo': ['Page', 'line']}}, 'Aristides Rhet.': {'tlg_id': 'TLG0284', 'names': {'name_authtab': 'Aelius Aristides Rhet.', 'name_idt': 'Aristides Rhet.'}, 'works': {'': ['Fragmenta poetica', 'Fragment', 'line'], '$*MONW|DI/A E)PI\\ *SMU/RNH|&': ['Jebb page', 'line'], '$*EI)S TO\\ E)NANTI/ON&': ['Jebb page', 'line'], '$*EI)S *)ETEWNE/A E)PIKH/DEIOS&': ['Jebb page', 'line'], '5$*PERI\\ TOU= PE/MPEIN BOH/QEIAN TOI=S E)N *SIKELI/A|&': ['Jebb page', 'line'], '1$*LEUKTRIKO\\S E# &($U(PE\\R MHDETE/ROIS BOHQEI=N&)': ['Jebb page', 'line'], '2$*SUMBOULEUTIKO\\S PERI\\ TOU= MH\\ DEI=N KWMW|DEI=N&': ['Jebb page', 'line'], '$*(RODIAKO/S& [Sp.]': ['Jebb page', 'line'], '<$*SUMMAXIKO\\S B# &($PRO\\S *QHBAI/OUS PERI\\ TH=S SUMMAXI/AS&)': ['Jebb page', 'line'], '$*EI)S BASILE/A& [Sp.]': ['Jebb page', 'line'], '$$*EI)S TO\\ FRE/AR TOU= *)ASKLHPIOU=&': ['Jebb page', 'line'], '$*EI)S *DI/A&': ['Jebb page', 'line'], '$*(IEROI\\ LO/GOI G#&': ['Jebb page', 'line'], '$*)APELLA= GENEQLIAKO/S&': ['Jebb page', 'line'], '$*PRO\\S *KAPI/TWNA&': ['Jebb page', 'line'], '.$*LEUKTRIKO\\S B# &($U(PE\\R *QHBAI/WN PRW=TOS&)': ['Jebb page', 'line'], '%$*PRO\\S *LEPTI/NHN U(PE\\R A)TELEI/AS&': ['Jebb page', 'line'], '!$*PRESBEUTIKO\\S PRO\\S *)AXILLE/A&': ['Jebb page', 'line'], '%$*PRO\\S *DHMOSQE/NH PERI\\ A)TELEI/AS&': ['Jebb page', 'line'], '$*LALIA\\ EI)S *)ASKLHPIO/N&': ['Jebb page', 'line'], '$*AI)GU/PTIOS&': ['Jebb page', 'line'], '$*EI)S TO\\N *SA/RAPIN&': ['Jebb page', 'line'], '"$*PERI\\ O(MONOI/AS TAI=S PO/LESIN&': ['Jebb page', 'line'], '($*PRO\\S *PLA/TWNA U(PE\\R TW=N TETTA/RWN&': ['Jebb page', 'line'], '$*(IEROI\\ LO/GOI B#&': ['Jebb page', 'line'], '$*(IEROI\\ LO/GOI D#&': ['Jebb page', 'line'], '/$*(UPE\\R TH=S PRO\\S *LAKEDAIMONI/OUS EI)RH/NHS&': ['Jebb page', 'line'], '6$*LEUKTRIKO\\S G# &($U(PE\\R *LAKEDAIMONI/WN DEU/TEROS&)': ['Jebb page', 'line'], '$*)AQHNA=&': ['Jebb page', 'line'], '$*)ASKLHPIA/DAI&': ['Jebb page', 'line'], '0$*PRO\\S TOU\\S AI)TIWME/NOUS O(/TI MH\\ MELETW/|H&': ['Jebb page', 'line'], '$*PROSFWNHTIKO/S *SMURNAI+KO/S&': ['Jebb page', 'line'], '"$*)EPI\\ *)ALECA/NDRW| E)PITA/FIOS&': ['Jebb page', 'line'], '$*SMURNAI+KO\\S POLITIKO/S&': ['Jebb page', 'line'], '.$*PANHGURIKO\\S E)N *KUZI/KW| PERI\\ TOU= NAOU=&': ['Jebb page', 'line'], 'Ars rhetorica [Sp.]': ['Book', 'chapter', 'section', 'subsection', 'line'], '$$*PRO\\S *PLA/TWNA PERI\\ R(HTORIKH=S&': ['Jebb page', 'line'], '$*)ELEUSI/NIOS&': ['Jebb page', 'line'], '$*)EPISTOLH\\ PERI\\ *SMU/RNHS&': ['Jebb page', 'line'], '$*KATA\\ TW=N E)CORXOUME/NWN&': ['Jebb page', 'line'], '$*(IEROI\\ LO/GOI S#&': ['Jebb page', 'line'], '$*(IEROI\\ LO/GOI A#&': ['Jebb page', 'line'], '$*(HRAKLH=S&': ['Jebb page', 'line'], '$*(RW/MHS E)GKW/MION&': ['Jebb page', 'line'], '$*EI)S TO\\ *AI)GAI=ON PE/LAGOS&': ['Jebb page', 'line'], '0$*LEUKTRIKO\\S D# &($U(PE\\R *QHBAI/WN DEU/TEROS&)': ['Jebb page', 'line'], '$*PERI\\ TOU= PARAFQE/GMATOS&': ['Jebb page', 'line'], '$*)ISQMIKO\\S EI)S *POSEIDW=NA&': ['Jebb page', 'line'], '$*(IEROI\\ LO/GOI E#&': ['Jebb page', 'line'], '4$*LEUKTRIKO\\S A# &($U(PE\\R *LAKEDAIMONI/WN PRW=TOS&)': ['Jebb page', 'line'], '=$*PALINW|DI/A E)PI\\ *SMU/RNH| KAI\\ TW=| TAU/THS A)NOIKISMW=|&': ['Jebb page', 'line'], '+$*(UPE\\R TH=S PRO\\S *)AQHNAI/OUS EI)RH/NHS&': ['Jebb page', 'line'], '$*(RODI/OIS PERI\\ O(MONOI/AS&': ['Jebb page', 'line'], '1$*PANHGURIKO\\S E)PI\\ TW=| U(/DATI E)N *PERGA/MW|&': ['line'], '$*DIO/NUSOS&': ['Jebb page', 'line']}}, 'Archimelus Epigr.': {'tlg_id': 'TLG0131', 'names': {'name_authtab': 'Archimelus Epigr.', 'name_idt': 'Archimelus Epigr.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], '!Fragmentum de Hieronis II navigio': ['Fragment', 'line']}}, 'Epictetus Phil.': {'tlg_id': 'TLG0557', 'names': {'name_authtab': 'Epictetus Phil.', 'name_idt': 'Epictetus Phil.'}, 'works': {'"Dissertationes ab Arriano digestae': ['Book', 'chapter', 'section', 'line', '\x92\x92¤\x92$\x92\x92\x8c\x8eÍ\x92½à§8Âà\x92', '$8SH'], 'Enchiridion': ['Chapter', 'section', 'line'], 'NDissertationum Epictetearum sive ab Arriano sive ab aliis digestarum fragmenta': ['Fragment', 'line'], '-Gnomologium Epicteteum (e Stobaei libris 1-2)': ['Sententia', 'line'], '-Gnomologium Epicteteum (e Stobaei libris 3-4)': ['Sententia', 'line'], '"Arriani epistula ad Lucium Gellium': ['Section', 'line']}}, 'Aristarchus Trag.': {'tlg_id': 'TLG0306', 'names': {'name_authtab': 'Aristarchus Trag.', 'name_idt': 'Aristarchus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Harpocrationis Epistula': {'tlg_id': 'TLG0691', 'names': {'name_authtab': 'Harpocrationis Epistula', 'name_idt': 'Harpocrationis Epistula'}, 'works': {'Epistula': ['Section', 'line']}}, 'Hecataeus Hist.': {'tlg_id': 'TLG0538', 'names': {'name_authtab': 'Hecataeus Hist.', 'name_idt': 'Hecataeus Hist.'}, 'works': {'Fragmenta': ['FGrH fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Aresas Phil.': {'tlg_id': 'TLG1178', 'names': {'name_authtab': 'Aresas Phil.', 'name_idt': 'Aresas Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Anonymus De Philosophia Platonica Phil.': {'tlg_id': 'TLG4227', 'names': {'name_authtab': 'Anonymus De Philosophia Platonica Phil.', 'name_idt': 'Anonymus De Philosophia Platonica Phil.'}, 'works': {'VProlegomena philosophiae Platonicae (fort. auctore Elia, olim sub auctore Olympiodoro)': ['Section', 'line']}}, 'Anaxarchus Phil.': {'tlg_id': 'TLG0714', 'names': {'name_authtab': 'Anaxarchus Phil.', 'name_idt': 'Anaxarchus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Aristarchus Astron.': {'tlg_id': 'TLG1181', 'names': {'name_authtab': 'Aristarchus Astron.', 'name_idt': 'Aristarchus Astron.'}, 'works': {'.De magnitudinibus et distantiis solis et lunae': ['Section', 'line']}}, 'Scholia In Hesiodum': {'tlg_id': 'TLG5025', 'names': {'name_authtab': 'Scholia In Hesiodum', 'name_idt': 'Scholia In Hesiodum'}, 'works': {'Glossae in theogoniam': ['Verse', 'line'], '&Scholia in theogoniam (scholia vetera)': ['Verse', 'line'], 'qScholia in opera et dies (scholia vetera partim Procli et recentiora partim Moschopuli, Tzetzae et Joannis Galeni': ['Prolegomenon-scholion', 'page-verse', 'line'], ')Scholia in opera et dies (scholia vetera)': ['Prolegomenon-scholion', 'section-verse', 'line']}}, 'Aristaeus Phil.': {'tlg_id': 'TLG1180', 'names': {'name_authtab': 'Aristaeus Phil.', 'name_idt': 'Aristaeus Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Mauricius Tact.': {'tlg_id': 'TLG3075', 'names': {'name_authtab': 'Pseudo-Mauricius Tact.', 'name_idt': 'Mauricius Tact.'}, 'works': {'9Strategicon (sub nomine Mauricii Imperatoris vel Urbicii)': ['Book', 'chapter', 'section', 'line', '', '©', '©', '', '', '©\x12©\x12\x12\x12©\x12©\x12©\x12©\x12©\x12©\x12©\x12©\x12©\x12©\x12©\x12©\x12\x12©\x12©\x12\x12\x12©\x12©\x12\x12\x12\x13\x8c\x13©\x8c\x13©\x13©\x8e\x13©\x13©\x13\x13\x13\x13©\x8c\x13\x13\x13\x13©\x13\x13\x13\x13©\x8e\x13©\x13']}}, 'Teleclides Comic.': {'tlg_id': 'TLG0510', 'names': {'name_authtab': 'Teleclides Comic.', 'name_idt': 'Teleclides Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Phlegon Paradox.': {'tlg_id': 'TLG0585', 'names': {'name_authtab': 'Publius Aelius Phlegon Paradox.', 'name_idt': 'Phlegon Paradox.'}, 'works': {'De mirabilibus': ['Chapter', 'section', 'line'], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, 'Florilegium Cyrillianum': {'tlg_id': 'TLG4147', 'names': {'name_authtab': 'Florilegium Cyrillianum', 'name_idt': 'Florilegium Cyrillianum'}, 'works': {'Florilegium Cyrillianum': ['Page', 'line']}}, 'Hieronymus Hist.': {'tlg_id': 'TLG1953', 'names': {'name_authtab': 'Hieronymus Hist.', 'name_idt': 'Hieronymus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Liber Enoch': {'tlg_id': 'TLG1463', 'names': {'name_authtab': 'Liber Enoch', 'name_idt': 'Liber Enoch'}, 'works': {'+Apocalypsis Enochi (recensio ap. Syncellum)': ['Chapter', 'section', 'line'], 'Apocalypsis Enochi': ['Chapter', 'section', 'line']}}, 'Joannes Damascenus Scr. Eccl., Theol.': {'tlg_id': 'TLG2934', 'names': {'name_authtab': 'Joannes Damascenus Scr. Eccl. et Theol., John of Damascus', 'name_idt': 'Joannes Damascenus Scr. Eccl., Theol.'}, 'works': {'7Fragmenta philosophica (e cod. Oxon. Bodl. Auct. T.1.6)': ['Section', 'line'], '': ['Contra Manichaeos', 'Section', 'line'], 'De haeresibus': ['Section', 'line'], '&De partibus animae (fragmentum) [Dub.]': ['Volume', 'page', 'line'], '#Homilia in transfigurationem domini': ['Volume', 'page', 'line'], 'Contra Jacobitas': ['Section', 'line'], ')De virtutibus et vitiis (fragmenta) [Sp.]': ['Volume', 'page', 'line'], '$Sermo in annuntiationem Mariae [Sp.]': ['Volume', 'page', 'line'], '(Disputatio Christiani et Saraceni [Dub.]': ['Section', 'line'], '.Qua ratione homo imago dei (fragmentum) [Dub.]': ['Volume', 'page', 'line'], '%Commentarii in epistulas Pauli [Dub.]': ['Volume', 'page', 'line'], 'LEpistula ad Theophilum imperatorem de sanctis et venerandis imaginibus [Sp.]': ['Volume', 'page', 'line'], '!De duabus in Christo voluntatibus': ['Section', 'line'], 'De animato (fragmentum) [Dub.]': ['Volume', 'page', 'line'], 'qSacra parallela (recensiones secundum alphabeti litteras dispositae, quae tres libros conflant) (fragmenta e cod.': ['Volume', 'page', 'line'], '0Fragmenta in Matthaeum (e catena Nicetae) [Dub.]': ['Volume', 'page', 'line'], '/De octo spiritibus nequitiae (fragmentum) [Sp.]': ['Volume', 'page', 'line'], '"Quid est homo? (fragmentum) [Dub.]': ['Volume', 'page', 'line'], 'Expositio fidei': ['Section', 'line'], 'Homilia in ficum arefactam': ['Volume', 'page', 'line'], 'De sacris jejuniis': ['Volume', 'page', 'line'], '*De mensibus Macedonicis (fragmenta) [Dub.]': ['Volume', 'page', 'line'], 'Contra Nestorianos': ['Section', 'line'], 'De unione (fragmentum) [Dub.]': ['Volume', 'page', 'line'], '%Contra Severianos (fragmentum) [Dub.]': ['Volume', 'page', 'line'], 'De fide contra Nestorianos': ['Section', 'line'], 'Deprecationes i-iii [Dub.]': ['Volume', 'page', 'line'], ' De theologia (fragmentum) [Dub.]': ['Volume', 'page', 'line'], 'Vita Barlaam et Joasaph [Sp.]': ['Page', 'line'], "'De sancta trinitate (fragmentum) [Dub.]": ['Volume', 'page', 'line'], 'De immaculato corpore [Sp.]': ['Volume', 'page', 'line'], 'De azymis (fragmenta duo) [Sp.]': ['Volume', 'page', 'line'], '5Dialectica sive Capita philosophica (recensio fusior)': ['Section', 'line'], '&Fragmenta in Lucam (in catenis) [Dub.]': ['Volume', 'page', 'line'], '(Encomium in sanctum Joannem Chrysostomum': ['Volume', 'page', 'line'], 'Passio sancti Artemii [Dub.]': ['Volume', 'page', 'line'], 'MDialectica sive Capita philosophica (recensio brevior, $E(/TERON KEFA/LAION&)': ['Section', 'line'], '=Ex thesauro orthodoxiae Nicetae Choniatae (fragmentum) [Dub.]': ['Volume', 'page', 'line'], 'Epistula de hymno trisagio': ['Section', 'line'], 'Orationes de imaginibus tres': ['Section', 'line'], '6Dialectica sive Capita philosophica (recensio brevior)': ['Section', 'line'], 'Institutio elementaris': ['Section', 'line'], 'Laudatio sanctae Barbarae': ['Volume', 'page', 'line'], ')De natura composita sive Contra acephalos': ['Section', 'line'], 'Homilia in sabbatum sanctum': ['Volume', 'page', 'line'], '*Oratio de his qui in fide dormierunt [Sp.]': ['Volume', 'page', 'line']}}, 'Anonymi Exegesis In Hesiodi Theogoniam': {'tlg_id': 'TLG3156', 'names': {'name_authtab': 'Anonymi Exegesis In Hesiodi Theogoniam', 'name_idt': 'Anonymi Exegesis In Hesiodi Theogoniam'}, 'works': {'Exegesis in Hesiodi theogoniam': ['Page', 'line']}}, 'De Arboribus Avibusque Fabulae': {'tlg_id': 'TLG0272', 'names': {'name_authtab': 'De Arboribus Avibusque Fabulae', 'name_idt': 'De Arboribus Avibusque Fabulae'}, 'works': {'Fragmenta (P. Heidelb. 222)': ['Fragment', 'column', 'line']}}, 'Thrasymachus Rhet., Soph.': {'tlg_id': 'TLG1729', 'names': {'name_authtab': 'Thrasymachus Rhet. et Soph.', 'name_idt': 'Thrasymachus Rhet., Soph.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Nonnus': {'tlg_id': 'TLG3127', 'names': {'name_authtab': 'Pseudo-Nonnus', 'name_idt': 'Nonnus'}, 'works': {'Scholia mythologica': ['Oration', 'historia', 'line']}}, 'Paradoxographus Florentinus': {'tlg_id': 'TLG0580', 'names': {'name_authtab': 'Paradoxographus Florentinus', 'name_idt': 'Paradoxographus Florentinus'}, 'works': {'Mirabilia de aquis': ['Section', 'line']}}, 'Hierotheus Alchem.': {'tlg_id': 'TLG4331', 'names': {'name_authtab': 'Hierotheus Alchem.', 'name_idt': 'Hierotheus Alchem.'}, 'works': {'P$*(IEROQE/OU PERI\\ TH=S I(ERA=S TE/XNHS &(e cod. Paris. B.N. gr. 2249, fol. 94r)': ['Volume', 'page', 'line']}}, 'Pamphila Hist.': {'tlg_id': 'TLG1828', 'names': {'name_authtab': 'Pamphila Hist.', 'name_idt': 'Pamphila Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Thespis Trag.': {'tlg_id': 'TLG0301', 'names': {'name_authtab': 'Thespis Trag.', 'name_idt': 'Thespis Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hestiaeus Hist.': {'tlg_id': 'TLG1428', 'names': {'name_authtab': 'Hestiaeus Hist.', 'name_idt': 'Hestiaeus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Laetus Hist.': {'tlg_id': 'TLG2525', 'names': {'name_authtab': 'Laetus Hist.', 'name_idt': 'Laetus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Achilles Tatius Astron.': {'tlg_id': 'TLG2133', 'names': {'name_authtab': 'Achilles Tatius Astron.', 'name_idt': 'Achilles Tatius Astron.'}, 'works': {'Isagoga excerpta': ['Section', 'line']}}, 'Aeschylus Trag.': {'tlg_id': 'TLG0321', 'names': {'name_authtab': 'Aeschylus Trag.', 'name_idt': 'Aeschylus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Testimonium': ['line', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Testamentum Salomonis': {'tlg_id': 'TLG2679', 'names': {'name_authtab': 'Testamentum Salomonis', 'name_idt': 'Testamentum Salomonis'}, 'works': {'UNarratio de propheta et sapientissimo rege Salomone (cod. Monasterii sancti Saba 290)': ['Page', 'line'], '*Testamentum Salomonis (recensio A) (ms. L)': ['Page', 'line'], 'Sigilla anuli Salomonis': ['Page', 'line'], 'Conspectus titulorum': ['Page', 'line'], ',Testamentum Salomonis (recensio A) (mss. HI)': ['Page', 'line'], '3Testamentum Salomonis (recensio C, I.1-3) (mss. VW)': ['Page', 'line'], '7Testamentum Salomonis (recensiones A et B) (mss. HILPQ)': ['Page', 'line'], '/Testamentum Salomonis (recensio C) (mss. VWSTU)': ['Page', 'line'], '6Testamentum Salomonis (recensiones A et B) (mss. HIPQ)': ['Page', 'line'], 'BVita Salomonis (cod. 132 Monasterii sancti Dionysii in Monte Atho)': ['Page', 'line']}}, 'Diogenianus Gramm.': {'tlg_id': 'TLG0097', 'names': {'name_authtab': 'Diogenianus Gramm.', 'name_idt': 'Diogenianus Gramm.'}, 'works': {'CParoemiae (epitome operis sub nomine Diogeniani) (e cod. Mazarinco)': ['Centuria', 'section', 'line'], 'EParoemiae (epitome operis sub nomine Diogeniani) (e cod. Vindob. 133)': ['Centuria', 'section', 'line']}}, 'Agathon Epigr.': {'tlg_id': 'TLG1775', 'names': {'name_authtab': 'Pseudo-Agathon Epigr.', 'name_idt': 'Agathon Epigr.'}, 'works': {'Epigramma': ['Epigram', 'line']}}, 'Hegesianax Astron., Epic.': {'tlg_id': 'TLG1393', 'names': {'name_authtab': 'Hegesianax Astron. et Epic.', 'name_idt': 'Hegesianax Astron., Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line']}}, 'Creophylus Hist.': {'tlg_id': 'TLG1291', 'names': {'name_authtab': 'Creophylus Hist.', 'name_idt': 'Creophylus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Psellus Polyhist.': {'tlg_id': 'TLG2702', 'names': {'name_authtab': 'Michael Psellus Polyhist.', 'name_idt': 'Psellus Polyhist.'}, 'works': {'&De Euripide et Georgio Piside judicium': ['line'], 'Orationes forenses et acta': ['oration', 'line'], 'Chronographia': ['Chapter', 'section', 'line'], 'Poemata': ['Poem', 'line'], 'Oratoria minora': ['Oration', 'line'], '0Opuscula psychologica, theologica, daemonologica': ['Page', 'line'], 'In Mariam Sclerenam': ['line'], 'Encomium in matrem': ['line'], 'Orationes panegyricae': ['Oration', 'line'], '&De Heliodoro et Achille Tatio judicium': ['line'], '*Opuscula logica, physica, allegorica, alia': ['Opusculum', 'line'], 'Theologica': ['Opusculum', 'line']}}, 'Theano Phil.': {'tlg_id': 'TLG0054', 'names': {'name_authtab': 'Theano Phil.', 'name_idt': 'Theano Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Xenophontis Epistulae': {'tlg_id': 'TLG1754', 'names': {'name_authtab': 'Xenophontis Epistulae', 'name_idt': 'Xenophontis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Pherecydes Myth., Phil.': {'tlg_id': 'TLG0630', 'names': {'name_authtab': 'Pherecydes Myth. et Phil.', 'name_idt': 'Pherecydes Myth., Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Poliochus Comic.': {'tlg_id': 'TLG0498', 'names': {'name_authtab': 'Poliochus Comic.', 'name_idt': 'Poliochus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Amphiarai Exilium (?)': {'tlg_id': 'TLG0710', 'names': {'name_authtab': 'Amphiarai Exilium (?)', 'name_idt': 'Amphiarai Exilium (?)'}, 'works': {'Fragmentum': ['line']}}, 'Apocalypsis Eliae': {'tlg_id': 'TLG1156', 'names': {'name_authtab': 'Apocalypsis Eliae', 'name_idt': 'Apocalypsis Eliae'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Evangelium Thomae': {'tlg_id': 'TLG1375', 'names': {'name_authtab': 'Evangelium Thomae', 'name_idt': 'Evangelium Thomae'}, 'works': {'': ['Evangelium Thomae', 'line']}}, 'Dorotheus Astrol.': {'tlg_id': 'TLG1337', 'names': {'name_authtab': 'Dorotheus Astrol.', 'name_idt': 'Dorotheus Astrol.'}, 'works': {'Fragmenta Graeca': ['Page', 'line'], '<Fragmenta e Hephaestionis $*)APOTELESMATIKW=N& libris hausta': ['Fragment', 'section', 'line'], 'Fragmenta alia antiqua': ['Fragment', 'line']}}, 'Apollodorus Hist.': {'tlg_id': 'TLG1164', 'names': {'name_authtab': 'Apollodorus Hist.', 'name_idt': 'Apollodorus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Timagoras Hist.': {'tlg_id': 'TLG2268', 'names': {'name_authtab': 'Timagoras Hist.', 'name_idt': 'Timagoras Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Eupolis Comic.': {'tlg_id': 'TLG0461', 'names': {'name_authtab': 'Eupolis Comic.', 'name_idt': 'Eupolis Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Jusjurandum Medicum': {'tlg_id': 'TLG0740', 'names': {'name_authtab': 'Jusjurandum Medicum', 'name_idt': 'Jusjurandum Medicum'}, 'works': {'Jusjurandum medicum': ['line']}}, 'Nicocrates Hist.': {'tlg_id': 'TLG1535', 'names': {'name_authtab': 'Nicocrates Hist.', 'name_idt': 'Nicocrates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heraclides Ponticus Junior Gramm.': {'tlg_id': 'TLG0283', 'names': {'name_authtab': 'Heraclides Ponticus Junior Gramm.', 'name_idt': 'Heraclides Ponticus Junior Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line']}}, 'Sophocles Junior Trag.': {'tlg_id': 'TLG0326', 'names': {'name_authtab': 'Sophocles Junior Trag.', 'name_idt': 'Sophocles Junior Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Oracula Chaldaica': {'tlg_id': 'TLG1550', 'names': {'name_authtab': 'Oracula Chaldaica', 'name_idt': 'Oracula Chaldaica'}, 'works': {'6Oracula (fragmenta) (olim sub auctore Juliano Theurgo)': ['Oracle', 'line']}}, 'Scholia In Sophoclem': {'tlg_id': 'TLG5037', 'names': {'name_authtab': 'Scholia In Sophoclem', 'name_idt': 'Scholia In Sophoclem'}, 'works': {'HArgumenta et excerpta interpretationum allegoricarum in Sophoclis Ajacem': ['\x12Argumentum-excerpt', 'line'], ',Scholia in Sophoclis Ajacem (scholia vetera)': ['Hypothesis-scholion', 'line'], ':Scholia in Sophoclis Oedipum tyrannum (scholia recentiora)': ['\x12Source of scholion', 'scholion', 'line'], '6Scholia in Sophoclis Oedipum Coloneum (scholia vetera)': ['Hypothesis-scholion', 'line'], 'FScholia et glossae in Sophoclis Ajacem (glossae et scholia recentiora)': ['Scholion', 'line'], '%Scholia in Sophoclem (scholia vetera)': ['Play', 'verse', 'line']}}, 'Agamestor Eleg.': {'tlg_id': 'TLG2605', 'names': {'name_authtab': 'Agamestor Eleg.', 'name_idt': 'Agamestor Eleg.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Archestratus Trag.': {'tlg_id': 'TLG1115', 'names': {'name_authtab': 'Archestratus Trag.', 'name_idt': 'Archestratus Trag.'}, 'works': {'Titulus': ['line']}}, '[Longinus] Rhet.': {'tlg_id': 'TLG0560', 'names': {'name_authtab': '[Longinus] Rhet., Pseudo-Longinus', 'name_idt': '[Longinus] Rhet.'}, 'works': {'De sublimitate': ['Chapter', 'section', 'line']}}, 'Salmanas Alchem.': {'tlg_id': 'TLG4340', 'names': {'name_authtab': 'Salmanas Alchem.', 'name_idt': 'Salmanas Alchem.'}, 'works': {"q$*ME/QODOS DI' H(=S A)POTELEI=TAI H( SFAIROEIDH\\S XA/LAZA KATASKEUASQEI=SA PARA\\ TOU= E)N TEXNOURGI/A| PERIBOH/TO": ['Volume', 'page', 'line']}}, 'Anonymi Geographiae Expositio Compendiaria': {'tlg_id': 'TLG0092', 'names': {'name_authtab': 'Anonymi Geographiae Expositio Compendiaria', 'name_idt': 'Anonymi Geographiae Expositio Compendiaria'}, 'works': {'"Geographiae expositio compendiaria': ['Section', 'line']}}, 'Demonax Phil.': {'tlg_id': 'TLG2969', 'names': {'name_authtab': 'Demonax Phil.', 'name_idt': 'Demonax Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Echembrotus Eleg., Lyr.': {'tlg_id': 'TLG0249', 'names': {'name_authtab': 'Echembrotus Eleg. et Lyr.', 'name_idt': 'Echembrotus Eleg., Lyr.'}, 'works': {'Fragmentum': ['line']}}, 'Phanocles Eleg.': {'tlg_id': 'TLG0214', 'names': {'name_authtab': 'Phanocles Eleg.', 'name_idt': 'Phanocles Eleg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Clitarchus Gnom.': {'tlg_id': 'TLG1278', 'names': {'name_authtab': 'Clitarchus Gnom.', 'name_idt': 'Clitarchus Gnom.'}, 'works': {'Sententiae': ['Sententia', 'line']}}, 'Theudo[tus] Trag.': {'tlg_id': 'TLG0816', 'names': {'name_authtab': 'Theudo[tus] Trag.', 'name_idt': 'Theudo[tus] Trag.'}, 'works': {'Titulus': ['line']}}, 'Theodosius Astron., Math.': {'tlg_id': 'TLG1719', 'names': {'name_authtab': 'Theodosius Astron. et Math.', 'name_idt': 'Theodosius Astron., Math.'}, 'works': {'Sphaerica': ['Chapter', 'section', 'line'], '': ['De habitationibus', 'Section', 'line'], 'De diebus et noctibus': ['Page', 'line']}}, 'Erotianus Gramm., Med.': {'tlg_id': 'TLG0716', 'names': {'name_authtab': 'Erotianus Gramm. et Med.', 'name_idt': 'Erotianus Gramm., Med.'}, 'works': {'Vocum Hippocraticarum collectio': ['Klein page', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Pollux Gramm.': {'tlg_id': 'TLG0542', 'names': {'name_authtab': 'Julius Pollux Gramm.', 'name_idt': 'Pollux Gramm.'}, 'works': {'Onomasticon': ['Book', 'section', 'line']}}, 'Peirazomene': {'tlg_id': 'TLG0275', 'names': {'name_authtab': 'Peirazomene', 'name_idt': 'Peirazomene'}, 'works': {'!Fragmentum (Brit. Mus. inv. 2208)': ['line']}}, 'Dinon Hist.': {'tlg_id': 'TLG1316', 'names': {'name_authtab': 'Dinon Hist.', 'name_idt': 'Dinon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sententiae Sexti': {'tlg_id': 'TLG1666', 'names': {'name_authtab': 'Sententiae Sexti', 'name_idt': 'Sententiae Sexti'}, 'works': {'Sententiae Sexti': ['Sententia', 'line']}}, 'Apocalypsis Baruch': {'tlg_id': 'TLG1154', 'names': {'name_authtab': 'Apocalypsis Baruch', 'name_idt': 'Apocalypsis Baruch'}, 'works': {"'Apocalypsis Baruchi Graece (iii Baruch)": ['Chapter', 'section', 'line']}}, 'Posidonius Hist.': {'tlg_id': 'TLG2187', 'names': {'name_authtab': 'Posidonius Hist.', 'name_idt': 'Posidonius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Timotheus Gramm.': {'tlg_id': 'TLG2449', 'names': {'name_authtab': 'Timotheus Gramm.', 'name_idt': 'Timotheus Gramm.'}, 'works': {'9Excerpta ex libris de animalibus (e cod. Paris. gr. 2422)': ['Section', 'line'], '=$*KANO/NES KAQOLIKOI\\ PERI\\ SUNTA/CEWS &(e cod. Coislin. 387)': ['Page', 'line']}}, 'Philicus Lyr.': {'tlg_id': 'TLG1588', 'names': {'name_authtab': 'Philicus Lyr.', 'name_idt': 'Philicus Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Plato Phil.': {'tlg_id': 'TLG0059', 'names': {'name_authtab': 'Plato Phil.', 'name_idt': 'Plato Phil.'}, 'works': {'': ['Fragmenta tragica', 'Fragment', 'line'], 'Respublica': ['Stephanus page', 'section', 'line'], 'Meno': ['Stephanus page', 'section', 'line'], 'Philebus': ['Stephanus page', 'section', 'line'], 'Cratylus': ['Stephanus page', 'section', 'line'], 'Alcibiades ii [Sp.]': ['Stephanus page', 'section', 'line'], 'Timaeus': ['Stephanus page', 'section', 'line'], 'Ion': ['Stephanus page', 'section', 'line'], 'Theaetetus': ['Stephanus page', 'section', 'line'], 'Minos [Sp.]': ['Stephanus page', 'section', 'line'], 'Euthydemus': ['Stephanus page', 'section', 'line'], 'Charmides': ['Stephanus page', 'section', 'line'], 'Hippias major [Dub.]': ['Stephanus page', 'section', 'line'], 'Hipparchus [Sp.]': ['Stephanus page', 'section', 'line'], 'Amatores [Sp.]': ['Stephanus page', 'section', 'line'], 'Epigrammata': ['Epigram', 'line'], 'Lysis': ['Stephanus page', 'section', 'line'], '0Epinomis [Dub.] (fort. auctore Philippo Opuntio)': ['Stephanus page', 'section', 'line'], 'Protagoras': ['Stephanus page', 'section', 'line'], 'Clitophon [Dub.]': ['Stephanus page', 'section', 'line'], 'Crito': ['Stephanus page', 'section', 'line', '´'], 'Symposium': ['Stephanus page', 'section', 'line'], 'Epistulae [Dub.]': ['Stephanus page', 'section', 'line'], 'Phaedrus': ['Stephanus page', 'section', 'line'], 'Laches': ['Stephanus page', 'section', 'line'], 'Hippias minor': ['Stephanus page', 'section', 'line'], 'Spuria': ['Stephanus page', 'section', 'line'], 'Parmenides': ['Stephanus page', 'section', 'line'], 'Gorgias': ['Stephanus page', 'section', 'line'], 'Leges': ['Stephanus page', 'section', 'line'], 'Politicus': ['Stephanus page', 'section', 'line'], 'Definitiones [Sp.]': ['Stephanus page', 'section', 'line'], 'Theages [Sp.]': ['Stephanus page', 'section', 'line'], 'Sophista': ['Stephanus page', 'section', 'line'], 'Phaedo': ['Stephanus page', 'section', 'line', '¼¿ÂÇÊÍÐÓÖÜßëîöÝ%'], 'Menexenus': ['Stephanus page', 'section', 'line'], 'Critias': ['Stephanus page', 'section', 'line'], 'Euthyphro': ['Stephanus page', 'section', 'line'], 'Alcibiades i [Sp.]': ['Stephanus page', 'section', 'line']}}, 'Carmen Naupactium': {'tlg_id': 'TLG1241', 'names': {'name_authtab': 'Carmen Naupactium', 'name_idt': 'Carmen Naupactium'}, 'works': {'Carmen Naupactium (fragmenta)': ['Fragment', 'line']}}, 'Panteleius Epic.': {'tlg_id': 'TLG2120', 'names': {'name_authtab': 'Panteleius Epic.', 'name_idt': 'Panteleius Epic.'}, 'works': {'Fragmentum': ['line']}}, 'Dicaearchus Phil.': {'tlg_id': 'TLG0066', 'names': {'name_authtab': 'Dicaearchus Phil.', 'name_idt': 'Dicaearchus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Joannes Actuarius Med.': {'tlg_id': 'TLG3188', 'names': {'name_authtab': 'Joannes Actuarius Med.', 'name_idt': 'Joannes Actuarius Med.'}, 'works': {'De spiritu animali': ['Book', 'chapter', 'setion', 'line'], 'De diagnosi': ['Book', 'chapter', 'line'], 'De urinis': ['Book', 'chapter', 'section', 'line']}}, 'Apollophanes Comic.': {'tlg_id': 'TLG0414', 'names': {'name_authtab': 'Apollophanes Comic.', 'name_idt': 'Apollophanes Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Glossae In Herodotum': {'tlg_id': 'TLG4304', 'names': {'name_authtab': 'Glossae In Herodotum', 'name_idt': 'Glossae In Herodotum'}, 'works': {'/Glossae in Herodotum (%6$ *(HRODO/TOU LE/CEIS&)': ['\x0eHerodotus book', 'entry', 'line'], 'CGlossae in Herodotum (%6 $*(HRODO/TOU LE/CEIS&) (litterarum ordine)': ['', 'Alphabetic letter', 'entry', 'line']}}, 'Polyidus Trag.': {'tlg_id': 'TLG0331', 'names': {'name_authtab': 'Polyidus Trag.', 'name_idt': 'Polyidus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Ammonius Epigr.': {'tlg_id': 'TLG0289', 'names': {'name_authtab': 'Ammonius Epigr.', 'name_idt': 'Ammonius Epigr.'}, 'works': {'Fragmentum': ['line'], 'Epigramma': ['Book', 'epigram', 'line']}}, 'Nicocles Hist.': {'tlg_id': 'TLG1534', 'names': {'name_authtab': 'Nicocles Hist.', 'name_idt': 'Nicocles Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hesiodus Epic.': {'tlg_id': 'TLG0020', 'names': {'name_authtab': 'Hesiodus Epic.', 'name_idt': 'Hesiodus Epic.'}, 'works': {'': ['Hesiodus Epic. !!! AUTHOR NAME'], 'Fragmentum (ap. Maximum Tyrium)': ['line'], 'Testimonia': ['Fragment', 'line'], 'Scutum': ['line'], 'Fragmenta astronomica': ['Fragment', 'line'], 'Opera et dies': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Theogonia': ['line']}}, 'Megasthenes Hist.': {'tlg_id': 'TLG1489', 'names': {'name_authtab': 'Megasthenes Hist.', 'name_idt': 'Megasthenes Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Machon Comic.': {'tlg_id': 'TLG0473', 'names': {'name_authtab': 'Machon Comic.', 'name_idt': 'Machon Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Doxapatres Rhet.': {'tlg_id': 'TLG3027', 'names': {'name_authtab': 'Joannes Doxapatres Rhet.', 'name_idt': 'Doxapatres Rhet.'}, 'works': {'0Prolegomena in Hermogenis librum $PERI\\ I)DEW=N&': ['Volume', 'page', 'line'], '3Prolegomena in Hermogenis librum $PERI\\ EU(RE/SEWS&': ['Volume', 'page', 'line', '\x8eí', '\x8ey\x14´'], '1Prolegomena in Hermogenis librum $PERI\\ STA/SEWN&': ['Volume', 'page', 'line', '³'], '&Prolegomena in Aphthonii progymnasmata': ['Volume', 'page', 'line']}}, 'Demetrius Comic.': {'tlg_id': 'TLG0439', 'names': {'name_authtab': 'Demetrius Comic.', 'name_idt': 'Demetrius Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Bruti Epistulae': {'tlg_id': 'TLG1803', 'names': {'name_authtab': 'Bruti Epistulae', 'name_idt': 'Bruti Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Elegiaca Adespota (IEG)': {'tlg_id': 'TLG0234', 'names': {'name_authtab': 'Elegiaca Adespota (IEG)', 'name_idt': 'Elegiaca Adespota (IEG)'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Diodorus Eleg.': {'tlg_id': 'TLG2652', 'names': {'name_authtab': 'Diodorus Eleg.', 'name_idt': 'Diodorus Eleg.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Ignatius Scr. Eccl.': {'tlg_id': 'TLG1443', 'names': {'name_authtab': 'Ignatius Scr. Eccl.', 'name_idt': 'Ignatius Scr. Eccl.'}, 'works': {'+Fragmenta (e cod. Florent. Laur. 6.4) [Sp.]': ['line'], 'JEpistulae interpolatae et epistulae suppositiciae (recensio longior) [Sp.]': ['Epistle', 'chapter', 'section', 'line'], "'Epistulae vii genuinae (recensio media)": ['Epistle', 'chapter', 'section', 'line']}}, 'Gryllus': {'tlg_id': 'TLG2118', 'names': {'name_authtab': 'Gryllus', 'name_idt': 'Gryllus'}, 'works': {'Fragmentum (P. Oxy. 22.2331)': ['line']}}, 'Sosigenes Phil.': {'tlg_id': 'TLG1748', 'names': {'name_authtab': 'Sosigenes Phil.', 'name_idt': 'Sosigenes Phil.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, 'Solon Nomographus, Poeta': {'tlg_id': 'TLG0263', 'names': {'name_authtab': 'Solon Nomographus et Poeta', 'name_idt': 'Solon Nomographus, Poeta'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Phalaridis Epistulae': {'tlg_id': 'TLG0053', 'names': {'name_authtab': 'Phalaridis Epistulae', 'name_idt': 'Phalaridis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'section', 'line']}}, 'Marcus Diaconus Scr. Eccl.': {'tlg_id': 'TLG2806', 'names': {'name_authtab': 'Marcus Diaconus Scr. Eccl.', 'name_idt': 'Marcus Diaconus Scr. Eccl.'}, 'works': {' Vita Porphyrii episcopi Gazensis': ['Chapter', 'line']}}, 'Acusilaus Hist.': {'tlg_id': 'TLG0392', 'names': {'name_authtab': 'Acusilaus Hist.', 'name_idt': 'Acusilaus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Philosophus Christianus Alchem.': {'tlg_id': 'TLG4328', 'names': {'name_authtab': 'Philosophus Christianus Alchem.', 'name_idt': 'Philosophus Christianus Alchem.'}, 'works': {"l$*PO/SAI EI)SI\\N AI( KAT' EI)=DOS KAI\\ GE/NOS DIAFORAI\\ TW=N POIH/SEWN &(e cod. Venet. Marc. 299, fol. 122r)": ['Volume', 'page', 'line'], 'H$*TI/S H( TW=N A)RXAI/WN DIAFWNI/A &(e cod. Venet. Marc. 299, fol. 101v)': ['Volume', 'page', 'line'], 'm$*PW=S DEI= NOEI=N DIAFORA\\S TW=N POIH/SEWN KAI\\ SXH/MASI GEWMETRIKOI=S &(e cod. Venet. Marc. 299, fol. 124r)': ['Volume', 'page', 'line'], 'p$*TOU= *XRISTIANOU= SU/NOYIS. TI/S H( AI)TI/A TH=S PROKEIME/NHS SUGGRAFH=S &(e cod. Venet. Marc. 299, fol. 121r)': ['Volume', 'page', 'line'], 'q$*(/OTI TETRAXW=S DIAIROUME/NHS TH=S U(/LHS, DIA/FOROI A)POGI/NONTAI TW=N POIH/SEWN AI( TA/CEIS &(e cod. Venet. M': ['Volume', 'page', 'line'], 'b$*TI/S H( E)N A)POKRU/FOIS TW=N PALAIW=N E)KDIDOME/NH TA/CIS &(e cod. Venet. Marc. 299, fol. 124v)': ['Volume', 'page', 'line'], 'T$*TOU= *XRISTIANOU= PERI\\ TOU= QEI/OU U(/DATOS &(e cod. Venet. Marc. 299, fol. 101r)': ['Volume', 'page', 'line'], 'R$*TI/S H( KAQO/LOU TOU= U(/DATOS OI)KONOMI/A &(e cod. Venet. Marc. 299, fol. 102r)': ['Volume', 'page', 'line'], 'J$*(H TOU= MUQIKOU= U(/DATOS POI/HSIS &(e cod. Venet. Marc. 299, fol. 102r)': ['Volume', 'page', 'line'], 'q$*)APORI/A. *TO\\ E(\\N A)BU/SSAION U(/DWR E)N TW=| A)RIQMW=| DEIKNU/EIN E)QE/LOUSA H( TOU/TOU E)PI/LUSIS &(e cod. ': ['Volume', 'page', 'line'], 'q$*)ANTI/QESIS LE/GOUSA O(/TI TO\\ QEI=ON U(/DWR E(/N E)STI TW=| EI)/DEI KAI\\ H( LU/SIS AU)TH=S &(e cod. Venet. Mar': ['Volume', 'page', 'line'], 'Y$*TOU= *XRISTIANOU= PERI\\ EU)STAQEI/AS TOU= XRUSOU= &(e cod. Venet. Marc. 299, fol. 110r)': ['Volume', 'page', 'line']}}, 'Basilius Med., Scr. Eccl.': {'tlg_id': 'TLG2084', 'names': {'name_authtab': 'Basilius Med. et Scr. Eccl.', 'name_idt': 'Basilius Med., Scr. Eccl.'}, 'works': {'De virginitate': ['MPG page', 'line']}}, 'Clemens Alexandrinus Theol.': {'tlg_id': 'TLG0555', 'names': {'name_authtab': 'Clemens Alexandrinus Theol.', 'name_idt': 'Clemens Alexandrinus Theol.'}, 'works': {'Eclogae propheticae': ['Chapter', 'section', 'line'], 'Excerpta ex Theodoto': ['Section', 'extract', 'excerpt', 'line'], 'Quis dives salvetur': ['Chapter', 'section', 'line'], 'Paedagogus': ['Book', 'chapter', 'subchapter', 'section', 'line'], 'Protrepticus': ['Chapter', 'section', 'subsection', 'line'], 'Hymnus Christi servatoris': ['line'], 'Fragmenta': ['Fragment', 'line'], 'Stromata': ['Book', 'chapter', 'section', 'subsection', 'line']}}, 'Abydenus Hist.': {'tlg_id': 'TLG0116', 'names': {'name_authtab': 'Abydenus Hist.', 'name_idt': 'Abydenus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philonides Comic.': {'tlg_id': 'TLG0492', 'names': {'name_authtab': 'Philonides Comic.', 'name_idt': 'Philonides Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Julianus Scriptor Legis De Medicis': {'tlg_id': 'TLG0737', 'names': {'name_authtab': 'Julianus Scriptor Legis De Medicis', 'name_idt': 'Julianus Scriptor Legis De Medicis'}, 'works': {'Lex de medicis': ['line']}}, 'Lexicon Rhetoricum Cantabrigiense': {'tlg_id': 'TLG4301', 'names': {'name_authtab': 'Lexicon Rhetoricum Cantabrigiense', 'name_idt': 'Lexicon Rhetoricum Cantabrigiense'}, 'works': {'PLexicon rhetoricum Cantabrigiense (e cod. Cantabr. Univ. D d 4,63 in marginibus)': ['Page', 'line']}}, 'Theognetus Comic.': {'tlg_id': 'TLG0511', 'names': {'name_authtab': 'Theognetus Comic.', 'name_idt': 'Theognetus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Demodocus Eleg.': {'tlg_id': 'TLG0245', 'names': {'name_authtab': 'Demodocus Eleg.', 'name_idt': 'Demodocus Eleg.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Hymni Homerici': {'tlg_id': 'TLG0013', 'names': {'name_authtab': 'Hymni Homerici, Homeric Hymns', 'name_idt': 'Hymni Homerici'}, 'works': {'In Minervam': ['line'], 'In Herculem': ['line'], 'In Neptunum': ['line'], 'In Pana': ['line'], 'In Martem': ['line'], 'In Cererem': ['line'], 'Fragmenta hymni in Bacchum': ['line'], 'In Volcanum': ['line'], 'In Lunam': ['line'], 'In Tellurem matrem omnium': ['line'], 'In Mercurium': ['line'], 'In Vestam': ['line'], '*In Apollinem (fort. auctore Cynaetho Chio)': ['line'], 'In Apollinem': ['line'], 'In Dioscuros': ['line'], 'In Solem': ['line'], 'In Jovem': ['line'], 'In Bacchum': ['line'], 'In Venerem': ['line'], 'In Aesculapium': ['line'], 'In Dianam': ['line'], 'In Junonem': ['line'], 'In matrem deorum': ['line'], 'In Musas et Apollinem': ['line'], '$*EI)S CE/NOUS&': ['line']}}, 'Aristocles Paradox.': {'tlg_id': 'TLG0571', 'names': {'name_authtab': 'Aristocles Paradox.', 'name_idt': 'Aristocles Paradox.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Protagorides Hist.': {'tlg_id': 'TLG1636', 'names': {'name_authtab': 'Protagorides Hist.', 'name_idt': 'Protagorides Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Joannes Scylitzes Hist.': {'tlg_id': 'TLG3063', 'names': {'name_authtab': 'Joannes Scylitzes Hist.', 'name_idt': 'Joannes Scylitzes Hist.'}, 'works': {'Synopsis historiarum': ['Emperor life', 'section', 'line']}}, 'Lexicon Patmense': {'tlg_id': 'TLG4302', 'names': {'name_authtab': 'Lexicon Patmense', 'name_idt': 'Lexicon Patmense'}, 'works': {"qLexicon Patmense (%6 $*LE/CEIS MEQ' I(STORIW=N E)K TW=N *DHMOSQE/NOUS KAI\\ *AI)SXI/NOU LO/GWN &%6 Lexicon in Demo": ['Page', 'line']}}, 'Diophantus Math.': {'tlg_id': 'TLG2039', 'names': {'name_authtab': 'Diophantus Math.', 'name_idt': 'Diophantus Math.'}, 'works': {')Fragmentum [Sp.] (e cod. Paris. gr. 2448)': ['Volume', 'page', 'line'], 'Arithmeticorum libri sex': ['Page', 'line'], 'De polygonis numeris': ['Volume', 'page', 'line'], ':Fragmentum [Sp.] (e cod. Paris. suppl. gr. 387, fol. 181r)': ['Volume', 'page', 'line'], '$Fragmentum [Sp.] (e cod. Paris. 453)': ['Volume', 'page', 'line']}}, 'Anaximenes Hist., Rhet.': {'tlg_id': 'TLG0547', 'names': {'name_authtab': 'Anaximenes Hist. et Rhet.', 'name_idt': 'Anaximenes Hist., Rhet.'}, 'works': {'+Ars rhetorica vulgo Rhetorica ad Alexandrum': ['Chapter', 'section', 'line', ''], 'Fragmenta': ['line', 'fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line', '`\x13³']}}, 'Phoronis': {'tlg_id': 'TLG1607', 'names': {'name_authtab': 'Phoronis', 'name_idt': 'Phoronis'}, 'works': {'Phoronis (fragmenta)': ['Fragment', 'line']}}, 'Philo Judaeus Senior Epic.': {'tlg_id': 'TLG1594', 'names': {'name_authtab': 'Philo Judaeus Senior Epic.', 'name_idt': 'Philo Judaeus Senior Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Archelaus Alchem., Poeta': {'tlg_id': 'TLG4339', 'names': {'name_authtab': 'Archelaus Alchem. et Poeta', 'name_idt': 'Archelaus Alchem., Poeta'}, 'works': {'q$*)ARXELA/OU FILOSO/FOU PERI\\ TH=S QEI/AS TE/XNHS DIA\\ STI/XWN I)A/MBWN &(fort. auctore Heliodoro alchemista et p': ['line']}}, 'Timon Phil.': {'tlg_id': 'TLG1735', 'names': {'name_authtab': 'Timon Phil.', 'name_idt': 'Timon Phil.'}, 'works': {'Fragmenta et tituli': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Philostratus Junior Soph.': {'tlg_id': 'TLG0652', 'names': {'name_authtab': 'Philostratus Junior Soph.', 'name_idt': 'Philostratus Junior Soph.'}, 'works': {'Imagines': ['Olearius page', 'line']}}, 'Anagnostes Hist., Poeta': {'tlg_id': 'TLG3145', 'names': {'name_authtab': 'Joannes Anagnostes Hist. et Poeta', 'name_idt': 'Anagnostes Hist., Poeta'}, 'works': {'+De extremo Thessalonicensi excidio narratio': ['Section', 'line'], 'Pro viribus acta monodia': ['Page', 'line']}}, '[Chrysermus] Hist.': {'tlg_id': 'TLG2195', 'names': {'name_authtab': '[Chrysermus] Hist.', 'name_idt': '[Chrysermus] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Agesilaus Hist.': {'tlg_id': 'TLG2555', 'names': {'name_authtab': 'Agesilaus Hist.', 'name_idt': 'Agesilaus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Megillus Phil.': {'tlg_id': 'TLG1490', 'names': {'name_authtab': 'Megillus Phil.', 'name_idt': 'Megillus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Xenarchus Comic.': {'tlg_id': 'TLG0518', 'names': {'name_authtab': 'Xenarchus Comic.', 'name_idt': 'Xenarchus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Didymus Caecus Scr. Eccl.': {'tlg_id': 'TLG2102', 'names': {'name_authtab': 'Didymus Caecus Scr. Eccl., Didymus the Blind', 'name_idt': 'Didymus Caecus Scr. Eccl.'}, 'works': {'': ['Contra Manichaeos', 'Volume', 'page', 'line'], 'In Genesim': ['Codex page', 'line'], ' De trinitate (lib. 2.8-27) [Sp.]': ['Volume', 'page', 'line'], '3Fragmenta in epistulam i ad Corinthios (in catenis)': ['Page', 'line'], 'Commentarii in Psalmos 20-21': ['Codex page', 'line'], 'Fragmenta in Proverbia': ['Volume', 'page', 'line'], '4Fragmenta in epistulam ii ad Corinthios (in catenis)': ['Page', 'line'], 'Commentarii in Psalmos 35-39': ['Codex page', 'line'], '7De incorporeo (ap. Joannem Damascenum, Sacra parallela)': ['Volume', 'page', 'line'], '5In epistulas catholicas brevis enarratio (in catenis)': ['Page', 'line'], 'De trinitate (lib. 2.1-7) [Sp.]': ['Chapter', 'section', 'line'], '0Fragmenta (ap. Antonium Melissam, Loci communes)': ['Volume', 'page', 'line'], '0Commentarii in Octateuchum et Reges (in catenis)': ['Volume', 'page', 'line'], '8Fragmenta (ap. Maximum Confessorem, Loci communes [Sp.])': ['Volume', 'page', 'line'], 'Commentarii in Psalmos 22-26.10': ['Codex page', 'line'], '#Commentarii in Ecclesiasten (7-8.8)': ['Codex page', 'line'], 'Commentarii in Psalmos 29-34': ['Codex page', 'line'], "'Commentarii in Ecclesiasten (9.8-10.20)": ['Codex page', 'line'], '!Fragmenta in Joannem (in catenis)': ['Fragment', 'line'], 'Commentarii in Job (7.20c-11)': ['Codex page', 'line'], '#Commentarii in Ecclesiasten (11-12)': ['Codex page', 'line'], 'Commentarii in Job (in catenis)': ['Volume', 'page', 'line'], '#Commentarii in Ecclesiasten (1.1-8)': ['Codex page', 'line'], '$Commentarii in Ecclesiasten (3-4.12)': ['Codex page', 'line'], "'Dialexis Montanistae et orthodoxi [Sp.]": ['Page', 'line'], 'Commentarii in Psalmos 40-44.4': ['Codex page', 'line'], 'De trinitate (lib. 1) [Sp.]': ['Chapter', 'section', 'line'], 'Commentarii in Job (1-4)': ['Codex page', 'line'], '.Fragmenta in epistulam ad Romanos (in catenis)': ['Page', 'line'], '3Commentarii in Job (12.1-16.8a) (partim in catenis)': ['\x1fPapyrus page or catena fragment', 'line'], '!Commentarii in Ecclesiasten (5-6)': ['Codex page', 'line'], '0Fragmentum in epistulam ad Hebraeos (in catenis)': ['Page', 'line'], 'Commentarii in Job (5.1-6.29)': ['Codex page', 'line'], '8Ad philosophum (ap. Joannem Damascenum, Sacra parallela)': ['Volume', 'page', 'line'], 'Commentarii in Psalmos 36.15-19': ['Codex page', 'line'], 'De trinitate (lib. 3) [Sp.]': ['Volume', 'page', 'line'], '+Fragmenta in Psalmos (e commentario altero)': ['Fragment', 'line'], 'Commentarii in Zacchariam': ['Book', 'section', 'line']}}, 'Pythagoras Phil.': {'tlg_id': 'TLG0632', 'names': {'name_authtab': 'Pythagoras Phil.', 'name_idt': 'Pythagoras Phil.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Page', 'line'], 'Fragmenta astrologica': ['Volume', 'page', 'line'], 'Carmen aureum': ['line'], 'Testimonia': ['Fragment', 'line']}}, 'Ister Hist.': {'tlg_id': 'TLG1450', 'names': {'name_authtab': 'Ister Hist.', 'name_idt': 'Ister Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmentum (P. Oxy. 26.2442)': ['FGrH fragment', 'line']}}, 'Nymphis Hist.': {'tlg_id': 'TLG1544', 'names': {'name_authtab': 'Nymphis Hist.', 'name_idt': 'Nymphis Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Theon Phil.': {'tlg_id': 'TLG1724', 'names': {'name_authtab': 'Theon Phil.', 'name_idt': 'Theon Phil.'}, 'works': {'De utilitate mathematicae': ['Page', 'line']}}, 'Joannes Archiereus Alchem.': {'tlg_id': 'TLG4327', 'names': {'name_authtab': 'Joannes Archiereus Alchem.', 'name_idt': 'Joannes Archiereus Alchem.'}, 'works': {'p$*)IWA/NNOU A)RXIERE/WS TOU= E)N *)EBEIGI/A| PERI\\ TH=S QEI/AS TE/XNHS &(e cod. Paris. B.N. gr. 2327, fol. 243r)': ['Volume', 'page', 'line']}}, 'Liber Eldad Et Modad': {'tlg_id': 'TLG1462', 'names': {'name_authtab': 'Liber Eldad Et Modad', 'name_idt': 'Liber Eldad Et Modad'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Philumenus Med.': {'tlg_id': 'TLG0671', 'names': {'name_authtab': 'Philumenus Med.', 'name_idt': 'Philumenus Med.'}, 'works': {')De venenatis animalibus eorumque remediis': ['Chapter', 'section', 'line']}}, 'Aelianus Soph.': {'tlg_id': 'TLG0545', 'names': {'name_authtab': 'Claudius Aelianus Soph.', 'name_idt': 'Aelianus Soph.'}, 'works': {'Epistulae rusticae': ['Epistle', 'line'], 'De natura animalium': ['Book', 'section', 'line', '¤«´¼\x17§¶\x92\x1e\x92»\x8c%\x8c\x8e\x92,\x8c0¿\x8eÂ6\x8e«Î<\x92¤AG\x8eL¤\x92\x8e¤RW\x92«\x8c]\x8c®bÎbVb'], 'Varia historia': ['Book', 'section', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Titulus': ['line']}}, '[Sosthenes] Hist.': {'tlg_id': 'TLG2568', 'names': {'name_authtab': '[Sosthenes] Hist.', 'name_idt': '[Sosthenes] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Ptolemaeus VIII Euergetes II Hist.': {'tlg_id': 'TLG1645', 'names': {'name_authtab': 'Ptolemaeus VIII Euergetes II Hist.', 'name_idt': 'Ptolemaeus VIII Euergetes II Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Periplus Maris Magni': {'tlg_id': 'TLG0077', 'names': {'name_authtab': 'Periplus Maris Magni', 'name_idt': 'Periplus Maris Magni'}, 'works': {'$Stadiasmus sive periplus Maris Magni': ['Section', 'line']}}, 'Nonnus Epic.': {'tlg_id': 'TLG2045', 'names': {'name_authtab': 'Nonnus Epic.', 'name_idt': 'Nonnus Epic.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Dionysiaca': ['Book', 'line'], '?Paraphrasis sancti evangelii Joannei (fort. auctore Nonno alio)': ['Demonstratio', 'line']}}, 'Chaerion Comic.': {'tlg_id': 'TLG1795', 'names': {'name_authtab': 'Chaerion Comic.', 'name_idt': 'Chaerion Comic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Leuco Comic.': {'tlg_id': 'TLG0470', 'names': {'name_authtab': 'Leuco Comic.', 'name_idt': 'Leuco Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Athanasius Theol.': {'tlg_id': 'TLG2035', 'names': {'name_authtab': 'Athanasius Theol.', 'name_idt': 'Athanasius Theol.'}, 'works': {'2De fallacia diaboli (%6 Homilia in diabolum) [Sp.]': ['Section', 'line'], '#Apologia ad Constantium imperatorem': ['Section', 'line'], 'Epistula ad Amun': ['Page', 'line'], "'Fragmentum sermonis de imaginibus [Sp.]": ['Volume', 'page', 'line'], '&In illud: Qui dixerit verbum in filium': ['Volume', 'page', 'line'], '4De synodis Arimini in Italia et Seleuciae in Isauria': ['Chapter', 'section', 'line'], '!Sermo contra omnes haereses [Sp.]': ['Volume', 'page', 'line'], 'De corpore et anima [Sp.]': ['Volume', 'page', 'line'], '&Commentarius de templo Athenarum [Sp.]': ['Page', 'line'], ':Epistula ad Epiphanium (fragmentum ap. Chronicon paschale)': ['Volume', 'page', 'line'], '+Didascalia cccxviii patrum Nicaenorum [Sp.]': ['Volume', 'page', 'line'], 'Expositiones in Psalmos': ['Volume', 'page', 'line'], '!Vitae monasticae institutio [Sp.]': ['Volume', 'page', 'line'], 'Epistula ad Maximum': ['Volume', 'page', 'line'], 'Epistula ad Epictetum': ['Section', 'line'], 'Historia Arianorum': ['Chapter', 'section', 'line'], '-Apologia contra Arianos sive Apologia secunda': ['Chapter', 'section', 'line'], 'Fragmenta varia': ['Volume', 'page', 'line'], ';De non participando divinis mysteriis sine discrimine [Sp.]': ['Page', 'line'], ',Homilia in sanctos patres et prophetas [Sp.]': ['Volume', 'page', 'line'], '4Epistula ad Marcellinum de interpretatione Psalmorum': ['Volume', 'page', 'line'], 'De decretis Nicaenae synodi': ['Chapter', 'section', 'line'], ' Synopsis scripturae sacrae [Sp.]': ['Volume', 'page', 'line'], '$Epistula ad episcopum Persarum [Sp.]': ['Volume', 'page', 'line'], '$Quaestiones ad Antiochum ducem [Sp.]': ['Volume', 'page', 'line'], 'Argumentum in Psalmos [Sp.]': ['Volume', 'page', 'line'], "'Epistula ad episcopos Aegypti et Libyae": ['Volume', 'page', 'line'], 'Epistula catholica [Sp.]': ['Volume', 'page', 'line'], 'Quaestiones aliae [Sp.]': ['Page', 'line'], 'Vita sanctae Syncleticae [Sp.]': ['Volume', 'page', 'line'], '!Doctrina ad Antiochum ducem [Sp.]': ['Chapter', 'section', 'line'], '"De sabbatis et circumcisione [Sp.]': ['Volume', 'page', 'line'], 'Epistula ad monachos': ['Section', 'line'], ')Homilia in illud: Euntem autem illo [Sp.]': ['Chapter', 'section', 'line'], ' Epistulae quattuor ad Serapionem': ['Volume', 'page', 'line'], 'Petitiones Arianorum': ['Volume', 'page', 'line'], 'De incarnatione verbi': ['Chapter', 'section', 'line'], '>Commentarius de templo Athenarum (cod. Bodleianus Roe 5) [Sp.]': ['Folio', 'line'], 'IQuaestio 136 e quaestionibus ad Antiochum ducem (e cod. Paris. 635) [Sp.]': ['line'], '8Homilia in illud: Nunc anima mea turbata est (fragmenta)': ['Volume', 'page', 'line'], 'Epistula ad Afros episcopos': ['Volume', 'page', 'line'], '"De morbo et valetudine (fragmenta)': ['Page', 'line'], '!In nativitatem praecursoris [Sp.]': ['Volume', 'page', 'line'], '2De incarnatione contra Apollinarium libri ii [Sp.]': ['Volume', 'page', 'line'], '-Narratio de cruce seu imagine Berytensi [Sp.]': ['Volume', 'page', 'line'], '=In illud: Profecti in pagum invenietis pullum alligatum [Sp.]': ['Chapter', 'section', 'line'], '6Sermo major (collatio cod. Laurentiani gr. 4.23) [Sp.]': ['Fragment', 'line'], 'Apologia de fuga sua': ['Section', 'line'], 'Historia de Melchisedech [Sp.]': ['Volume', 'page', 'line'], 'De azymis [Sp.]': ['Volume', 'page', 'line'], '&Sermo in annuntiationem deiparae [Sp.]': ['Volume', 'page', 'line'], 'Homilia de semente [Sp.]': ['Volume', 'page', 'line'], ')Homilia de passione et cruce domini [Sp.]': ['Volume', 'page', 'line'], 'Tomus ad Antiochenos': ['Volume', 'page', 'line'], 'Epistula ad Jovianum': ['Volume', 'page', 'line'], 'Contra gentes': ['Section', 'line'], ',Sermo pro iis qui saeculo renuntiarunt [Sp.]': ['Volume', 'page', 'line'], 'Sermo contra Latinos [Sp.]': ['Volume', 'page', 'line'], '6Oratio in resurrectionem et in recens baptizatos [Sp.]': ['Section', 'line'], 'Epistula ad Palladium': ['Volume', 'page', 'line'], 'Sermo in ramos palmarum [Sp.]': ['Chapter', 'section', 'line'], 'Doctrina ad monachos [Sp.]': ['Volume', 'page', 'line'], 'Scholia in cantica canticorum': ['Volume', 'page', 'line'], 'Symbolum "quicumque" [Sp.]': ['Volume', 'page', 'line'], '0Syntagma ad monachos (e cod. Vat. gr. 733) [Sp.]': ['Page', 'line'], '"Sermo in nativitatem Christi [Sp.]': ['Volume', 'page', 'line'], 'De virginitate [Sp.]': ['Section', 'line'], 'Epistula encyclica': ['Chapter', 'section', 'line'], '$Dialogus Athanasii et Zacchaei [Sp.]': ['Section', 'line'], 'Sermo ad Antiochum ducem [Sp.]': ['Volume', 'page', 'line'], '$Sermo de descriptione deiparae [Sp.]': ['Volume', 'page', 'line'], '!In illud: Omnia mihi tradita sunt': ['Volume', 'page', 'line'], ',Epistula ad Joannem et Antiochum presbyteros': ['Volume', 'page', 'line'], 'Quaestiones in evangelia [Sp.]': ['Volume', 'page', 'line'], ' Homilia in occursum domini [Sp.]': ['Volume', 'page', 'line'], '&Quaestiones in scripturam sacram [Sp.]': ['Volume', 'page', 'line'], '1Sermo exhortatorius [Sp.] (e cod. Paris. gr. 769)': ['Section', 'line'], '/Homilia de jejunio et de passione Christi [Sp.]': ['Page', 'line'], 'Epistula ad Dracontium': ['Volume', 'page', 'line'], '3Scholia in Acta (fort. ex libris Contra Novatianos)': ['Volume', 'page', 'line'], 'WQuaestio 136 e quaestionibus ad Antiochum ducem (e cod. Guelferbytano-Gudiano 51) [Sp.]': ['line'], '"Epistula ad Eupsychium (fragmenta)': ['Volume', 'page', 'line'], '%Dialogi duo contra Macedonianos [Sp.]': ['Volume', 'page', 'line'], '$Homilia in Canticum canticorum [Sp.]': ['Volume', 'page', 'line'], '#Scholia in Job (e cod. Vat. Pii II)': ['Page', 'line'], 'Epistulae ad Castorem [Sp.]': ['Volume', 'page', 'line'], '+De sancta trinitate (dialogi 1, 3, 5) [Sp.]': ['Volume', 'page', 'line'], 'Scholia in Job': ['Volume', 'page', 'line'], '$Epistula ad Serapionem de morte Arii': ['Chapter', 'section', 'line'], 'Liber de definitionibus [Sp.]': ['Volume', 'page', 'line'], 'Epistula ad Adelphium': ['Volume', 'page', 'line'], '&Epistula ad imperatorem Jovianum [Sp.]': ['Volume', 'page', 'line'], 'De sententia Dionysii': ['Chapter', 'section', 'line'], '1Homilia de passione et cruce domini (additamenta)': ['Volume', 'page', 'line'], 'Contra Sabellianos [Sp.]': ['Volume', 'page', 'line'], 'Disputatio contra Arium [Sp.]': ['Volume', 'page', 'line'], '.Refutatio hypocriseos Meletii et Eusebii [Sp.]': ['Volume', 'page', 'line'], 'Epistula ad Liberium [Sp.]': ['line'], '9Syntagma ad monachos (e cod. Vossiano gr., fol. 46) [Sp.]': ['Chapter', 'section', 'line'], '"Oratio quarta contra Arianos [Sp.]': ['Section', 'line'], 'Sermo de patientia [Sp.]': ['Volume', 'page', 'line'], 'Sermo major de fide [Sp.]': ['Fragment', 'line'], 'De trinitate [Sp.]': ['Volume', 'page', 'line'], '+De sancta trinitate (dialogi 2 and 4) [Sp.]': ['Volume', 'page', 'line'], 'Epistula ad Rufinianum': ['Page', 'line'], 'Orationes tres contra Arianos': ['Volume', 'page', 'line'], '(Homilia in illud: Ite in castellum [Sp.]': ['Chapter', 'section', 'line'], 'Vita Antonii': ['Volume', 'page', 'line'], 'In caecum a nativitate [Sp.]': ['Volume', 'page', 'line'], '#Syntagma ad quendam politicum [Sp.]': ['Volume', 'page', 'line'], 'UTestimonia e scriptura (de communi essentia patris et filii et spiritus sancti) [Sp.]': ['Volume', 'page', 'line'], '7Quaestio cxii ad Antiochum ducem in collectione canonum': ['Page', 'line'], ';Epistula festalis xxxix (fragmentum in collectione canonum)': ['Page', 'line']}}, 'Epiphanius Scr. Eccl.': {'tlg_id': 'TLG2021', 'names': {'name_authtab': 'Epiphanius Scr. Eccl.', 'name_idt': 'Epiphanius Scr. Eccl.'}, 'works': {'(Fragmenta precationis et exorcismi [Sp.]': ['Volume', 'page', 'line'], 'ODe xii gemmis (fragmenta ap. Anastasium Sinai+tam, Quaestiones et responsiones)': ['Volume', 'page', 'line'], 'FHomilia in Christi resurrectionem (inc. $*(O TH=S DIKAIOSU/NHS&) [Sp.]': ['Volume', 'page', 'line'], 'NEpistula ad Eusebium, Marcellum, Vivianum, Carpum et ad Aegyptios (fragmentum)': ['Page', 'line'], ' Testamentum ad cives (fragmenta)': ['Fragment', 'line'], 'Index apostolorum [Sp.]': ['Page', 'line'], '1Epistula ad Joannem Hierosolymitanum (fragmentum)': ['Page', 'line'], "'Homilia in laudes Mariae deiparae [Sp.]": ['Volume', 'page', 'line'], '&Tractatus de numerorum mysteriis [Sp.]': ['Volume', 'page', 'line'], '%Homilia in assumptionem Christi [Sp.]': ['Volume', 'page', 'line'], 'Anacephalaeosis [Sp.]': ['Volume', 'page', 'line'], 'HDe mensuris et ponderibus (ap. Chronicon paschale) (excerptum Graecum 7)': ['Volume', 'page', 'line'], '/De mensuris et ponderibus (excerptum Graecum 4)': ['Excerpt', 'section', 'line'], '4Enumeratio lxxii prophetarum et prophetissarum [Sp.]': ['Page', 'line'], 'MTestimonia ex divinis et sacris scripturis (%6 De divina inhumanatione) [Sp.]': ['Section', 'subsection', 'line'], 'Liturgia praesanctificatorum': ['Section', 'line'], 'BHomilia in Christi resurrectionem (inc. $*NU=N TO\\ PE/NQOS&) [Sp.]': ['Section', 'line'], 'Nomina apostolorum [Sp.]': ['line'], 'De fide (fragmentum) [Sp.]': ['Page', 'line'], '1Appendices ad indices apostolorum discipulorumque': ['Page', 'line'], 'De xii gemmis': ['Chapter', 'section', 'line'], '.Apophthegmata (ap. Apophthegmata patrum) [Sp.]': ['Volume', 'page', 'line'], '.Epistula ad Theodosium imperatorem (fragmenta)': ['Fragment', 'line'], '/De mensuris et ponderibus (excerptum Graecum 2)': ['line'], '<De mensuris et ponderibus (ap. Cosmam) (excerptum Graecum 6)': ['Section', 'line'], '5Tractatus contra eos qui imagines faciunt (fragmenta)': ['Fragment', 'line'], '+Homilia in divini corporis sepulturam [Sp.]': ['Volume', 'page', 'line'], 'De mensuris et ponderibus': ['line'], '4De prophetarum vita et obitu (recensio altera) [Sp.]': ['Page', 'line'], ',Homilia in festo palmarum (fragmentum) [Sp.]': ['Volume', 'page', 'line'], '!Anaphora Graeca (fragmenta) [Sp.]': ['Page', 'line'], '/De mensuris et ponderibus (excerptum Graecum 3)': ['Page', 'line'], 'De trinitate (fragmentum) [Sp.]': ['Page', 'line'], 'Index discipulorum [Sp.]': ['Page', 'line'], 'Ancoratus': ['Chapter', 'section', 'line'], 'Notitiae episcopatuum [Sp.]': ['line'], '3De prophetarum vita et obitu (recensio prior) [Sp.]': ['Page', 'line'], 'Panarion (%6 Adversus haereses)': ['Volume', 'page', 'line'], 'Homilia in festo palmarum [Sp.]': ['Volume', 'page', 'line'], 'HDe mensuris et ponderibus (ap. Joannem Damascenum) (excerptum Graecum 8)': ['line'], 'TDe xii gemmis (fragmenta alia ap. Anastasium Sinai+tam, Quaestiones et responsiones)': ['Volume', 'page', 'line']}}, 'Sopater Comic.': {'tlg_id': 'TLG1682', 'names': {'name_authtab': 'Sopater Comic.', 'name_idt': 'Sopater Comic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Euripides II Trag.': {'tlg_id': 'TLG1840', 'names': {'name_authtab': 'Euripides II Trag.', 'name_idt': 'Euripides II Trag.'}, 'works': {'Tituli': ['line']}}, 'Stephanus Phil.': {'tlg_id': 'TLG9019', 'names': {'name_authtab': 'Stephanus Phil.', 'name_idt': 'Stephanus Phil.'}, 'works': {'5In Aristotelis librum de interpretatione commentarium': ['Page', 'line']}}, 'Theophilus Comic.': {'tlg_id': 'TLG0512', 'names': {'name_authtab': 'Theophilus Comic.', 'name_idt': 'Theophilus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Gorgon Hist.': {'tlg_id': 'TLG2357', 'names': {'name_authtab': 'Gorgon Hist.', 'name_idt': 'Gorgon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heraclides Criticus Perieg.': {'tlg_id': 'TLG1405', 'names': {'name_authtab': 'Heraclides Criticus Perieg.', 'name_idt': 'Heraclides Criticus Perieg.'}, 'works': {'9Descriptio Graeciae (sub auctore Dicaearcho vel Athenaeo)': ['Fragment', 'section', 'line']}}, 'Mantissa Proverbiorum': {'tlg_id': 'TLG0200', 'names': {'name_authtab': 'Mantissa Proverbiorum', 'name_idt': 'Mantissa Proverbiorum'}, 'works': {'Mantissa proverbiorum': ['Centuria', 'section', 'line']}}, 'Ibycus Lyr.': {'tlg_id': 'TLG0293', 'names': {'name_authtab': 'Ibycus Lyr.', 'name_idt': 'Ibycus Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scholia In Aristotelem': {'tlg_id': 'TLG5015', 'names': {'name_authtab': 'Scholia In Aristotelem', 'name_idt': 'Scholia In Aristotelem'}, 'works': {'`Scholia in Aristotelis ethica Nicomachea (scholia vetera et recentiora) (e cod. Paris. gr. 1854)': ['Bekker page', 'line'], 'ZScholia in Aristotelis sophisticos elenchos (scholia recentiora) (e cod. Vat. Urb. gr. 35)': ['Bekker page', 'line', 'line'], '@Scholia in Aristotelis sophisticos elenchos (scholia recentiora)': ['Scholion', 'line']}}, 'Ion Eleg.': {'tlg_id': 'TLG1446', 'names': {'name_authtab': 'Ion Eleg.', 'name_idt': 'Ion Eleg.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Epigramma': ['Book', 'epigram', 'line']}}, 'Crito Phil.': {'tlg_id': 'TLG1292', 'names': {'name_authtab': 'Crito Phil.', 'name_idt': 'Crito Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Eutropius Hist.': {'tlg_id': 'TLG2236', 'names': {'name_authtab': 'Eutropius Hist.', 'name_idt': 'Eutropius Hist.'}, 'works': {'/Breviarium ab urbe condita (Paeanii translatio)': ['Book', 'chapter', 'line', '\x14\x17\x8e\x0e', '\x14\x17']}}, 'Theophilus Protospatharius Med.': {'tlg_id': 'TLG0729', 'names': {'name_authtab': 'Theophilus Protospatharius Med.', 'name_idt': 'Theophilus Protospatharius Med.'}, 'works': {'De pulsibus': ['Page', 'line'], 'De excrementis': ['Chapter', 'section', 'line'], '(De corporis humani fabrica libri quinque': ['Book', 'section', 'line'], 'De urinis': ['Chapter', 'section', 'line']}}, 'Theon Math.': {'tlg_id': 'TLG2033', 'names': {'name_authtab': 'Theon Math.', 'name_idt': 'Theon Math.'}, 'works': {'8$*EI)S TOU\\S PROXEI/ROUS KANO/NAS &(commentarium parvum)': ['Page', 'line'], '3Commentaria in Ptolemaei syntaxin mathematicam i-iv': ['Page', 'line'], 'Testimonia': ['line', 'fragment', 'line'], '[$*(UPO/MNHMA EI)S TOU\\S PROXEI/ROUS *PTOLEMAI/OU KANO/NAS &(commentarium magnum) (lib. 1-3)': ['ST number', 'page', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Elegiaca Adespota (CA)': {'tlg_id': 'TLG0231', 'names': {'name_authtab': 'Elegiaca Adespota (CA)', 'name_idt': 'Elegiaca Adespota (CA)'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Cleostratus Poet. Phil.': {'tlg_id': 'TLG1275', 'names': {'name_authtab': 'Cleostratus Poet. Phil.', 'name_idt': 'Cleostratus Poet. Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Astrologia (fragmentum)': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Daphitas Gramm. vel Soph.': {'tlg_id': 'TLG2615', 'names': {'name_authtab': 'Daphitas Gramm. vel Soph.', 'name_idt': 'Daphitas Gramm. vel Soph.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Anacreontea': {'tlg_id': 'TLG4150', 'names': {'name_authtab': 'Anacreontea', 'name_idt': 'Anacreontea'}, 'works': {'Anacreontea': ['Fragment', 'line']}}, 'Adamantius Theol.': {'tlg_id': 'TLG2950', 'names': {'name_authtab': 'Adamantius Theol.', 'name_idt': 'Adamantius Theol.'}, 'works': {':De recta in deum fide (olim sub auctore Origene Adamantio)': ['Page', 'line']}}, 'Damoxenus Comic.': {'tlg_id': 'TLG0438', 'names': {'name_authtab': 'Damoxenus Comic.', 'name_idt': 'Damoxenus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Eusebius Phil.': {'tlg_id': 'TLG2640', 'names': {'name_authtab': 'Eusebius Phil.', 'name_idt': 'Eusebius Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Demetrius Poeta': {'tlg_id': 'TLG2617', 'names': {'name_authtab': 'Demetrius Poeta', 'name_idt': 'Demetrius Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Phoebammon Soph.': {'tlg_id': 'TLG2596', 'names': {'name_authtab': 'Phoebammon Soph.', 'name_idt': 'Phoebammon Soph.'}, 'works': {'+De figuris (fort. auctore Phoebammone alio)': ['Chapter', 'section', 'line']}}, 'Dorieus Poeta': {'tlg_id': 'TLG2622', 'names': {'name_authtab': 'Dorieus Poeta', 'name_idt': 'Dorieus Poeta'}, 'works': {'Epigramma': ['Fragment', 'line']}}, 'Antonius Hagiographus Scr. Eccl.': {'tlg_id': 'TLG2807', 'names': {'name_authtab': 'Antonius Hagiographus Scr. Eccl.', 'name_idt': 'Antonius Hagiographus Scr. Eccl.'}, 'works': {'Vita Symeonis Stylitae senioris': ['Section', 'line']}}, 'Suda': {'tlg_id': 'TLG9010', 'names': {'name_authtab': 'Suda, Suidas', 'name_idt': 'Suda'}, 'works': {'Lexicon': ['', 'Alphabetic letter', 'entry', 'line'], 'Onomasticon tacticon': ['Section', 'line']}}, 'Claudius Iolaus Hist.': {'tlg_id': 'TLG1268', 'names': {'name_authtab': 'Claudius Iolaus Hist.', 'name_idt': 'Claudius Iolaus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Demetrius Rhet.': {'tlg_id': 'TLG0613', 'names': {'name_authtab': 'Demetrius Rhet.', 'name_idt': 'Demetrius Rhet.'}, 'works': {'De elocutione': ['Section', 'line']}}, 'Cleomachus Poeta': {'tlg_id': 'TLG2614', 'names': {'name_authtab': 'Cleomachus Poeta', 'name_idt': 'Cleomachus Poeta'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apollonius Scr. Eccl.': {'tlg_id': 'TLG1171', 'names': {'name_authtab': 'Apollonius Scr. Eccl.', 'name_idt': 'Apollonius Scr. Eccl.'}, 'works': {'7Fragmenta ex libro adversus Cataphrygas seu Montanistas': ['Fragment', 'line']}}, 'Cypria': {'tlg_id': 'TLG1296', 'names': {'name_authtab': 'Cypria', 'name_idt': 'Cypria'}, 'works': {'Cypria (fragmenta)': ['Fragment', 'line']}}, 'Erasistratus Med.': {'tlg_id': 'TLG0690', 'names': {'name_authtab': 'Erasistratus Med.', 'name_idt': 'Erasistratus Med.'}, 'works': {'Testimonia et fragmenta': ['Fragment', 'line']}}, 'Colluthus Epic.': {'tlg_id': 'TLG4081', 'names': {'name_authtab': 'Colluthus Epic.', 'name_idt': 'Colluthus Epic.'}, 'works': {'Raptio Helenae': ['line']}}, 'Echecrates Phil.': {'tlg_id': 'TLG2242', 'names': {'name_authtab': 'Echecrates Phil.', 'name_idt': 'Echecrates Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Aeneas Phil., Rhet.': {'tlg_id': 'TLG4001', 'names': {'name_authtab': 'Aeneas Phil. et Rhet.', 'name_idt': 'Aeneas Phil., Rhet.'}, 'works': {'Epistulae': ['Epistle', 'line'], 'NTheophrastus sive de animarum immortalitate et corporum resurrectione dialogus': ['Page', 'line']}}, 'Alcimus Hist.': {'tlg_id': 'TLG0695', 'names': {'name_authtab': 'Alcimus Hist.', 'name_idt': 'Alcimus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Acta Barnabae': {'tlg_id': 'TLG2949', 'names': {'name_authtab': 'Acta Barnabae', 'name_idt': 'Acta Barnabae'}, 'works': {'Acta Barnabae': ['Section', 'line']}}, 'Seleucus Lyr.': {'tlg_id': 'TLG0209', 'names': {'name_authtab': 'Seleucus Lyr.', 'name_idt': 'Seleucus Lyr.'}, 'works': {'$*(ILARA\\ A)/|SMATA&': ['line']}}, 'Stratonicus Poeta': {'tlg_id': 'TLG2645', 'names': {'name_authtab': 'Stratonicus Poeta', 'name_idt': 'Stratonicus Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Apollonius Soph.': {'tlg_id': 'TLG1168', 'names': {'name_authtab': 'Apollonius Soph.', 'name_idt': 'Apollonius Soph.'}, 'works': {'': ['Lexicon', 'Page', 'line']}}, 'Choliambica Adespota (ALG)': {'tlg_id': 'TLG1797', 'names': {'name_authtab': 'Choliambica Adespota (ALG)', 'name_idt': 'Choliambica Adespota (ALG)'}, 'works': {'/Anonymus in turpilucrum (fort. auctore Cercida)': ['line'], 'Fragmenta choliambica': ['Fragment', 'line']}}, 'Euangelus Comic.': {'tlg_id': 'TLG0456', 'names': {'name_authtab': 'Euangelus Comic.', 'name_idt': 'Euangelus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Balagrus Hist.': {'tlg_id': 'TLG1211', 'names': {'name_authtab': 'Balagrus Hist.', 'name_idt': 'Balagrus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Stesichorus Lyr.': {'tlg_id': 'TLG0292', 'names': {'name_authtab': 'Stesichorus Lyr.', 'name_idt': 'Stesichorus Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Philippides Comic.': {'tlg_id': 'TLG0490', 'names': {'name_authtab': 'Philippides Comic.', 'name_idt': 'Philippides Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Nicephorus Gregoras Hist.': {'tlg_id': 'TLG4145', 'names': {'name_authtab': 'Nicephorus Gregoras Hist.', 'name_idt': 'Nicephorus Gregoras Hist.'}, 'works': {'Historia Romana': ['Volume', 'page', 'line']}}, 'Manetho Hist.': {'tlg_id': 'TLG1477', 'names': {'name_authtab': 'Manetho Hist.', 'name_idt': 'Manetho Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anaxandrides Comic.': {'tlg_id': 'TLG0405', 'names': {'name_authtab': 'Anaxandrides Comic.', 'name_idt': 'Anaxandrides Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Lycophronides Lyr.': {'tlg_id': 'TLG0381', 'names': {'name_authtab': 'Lycophronides Lyr.', 'name_idt': 'Lycophronides Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Georgius Syncellus Chronogr.': {'tlg_id': 'TLG3045', 'names': {'name_authtab': 'Georgius Syncellus Chronogr.', 'name_idt': 'Georgius Syncellus Chronogr.'}, 'works': {'Ecloga chronographica': ['Page', 'line']}}, 'Boethus Phil.': {'tlg_id': 'TLG2397', 'names': {'name_authtab': 'Boethus Phil.', 'name_idt': 'Boethus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Timocles Trag.': {'tlg_id': 'TLG0333', 'names': {'name_authtab': 'Timocles Trag.', 'name_idt': 'Timocles Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Athamas Phil.': {'tlg_id': 'TLG1202', 'names': {'name_authtab': 'Athamas Phil.', 'name_idt': 'Athamas Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Apsines Rhet.': {'tlg_id': 'TLG2027', 'names': {'name_authtab': 'Valerius Apsines Rhet.', 'name_idt': 'Apsines Rhet.'}, 'works': {'+$*PERI\\ TW=N E)SXHMATISME/NWN PROBLHMA/TWN&': ['Page', 'line'], 'Ars rhetorica': ['Page', 'line']}}, 'Etymologicum Genuinum': {'tlg_id': 'TLG4097', 'names': {'name_authtab': 'Etymologicum Genuinum', 'name_idt': 'Etymologicum Genuinum'}, 'works': {'.Etymologicum genuinum ($A)NA/BLHSIS_BW/TORES&)': ['', 'Alphabetic letter', 'entry', 'line'], "'Etymologicum genuinum ($A_A(MWSGE/PWS&)": ['', 'Alphabetic letter', 'entry', 'line'], '#Etymologicum genuinum (littera $L&)': ['', 'Alphabetic letter', 'entry', 'line']}}, 'Ptolemaeus III Euergetes I Epigr.': {'tlg_id': 'TLG2693', 'names': {'name_authtab': 'Ptolemaeus III Euergetes I Epigr.', 'name_idt': 'Ptolemaeus III Euergetes I Epigr.'}, 'works': {'Epigramma': ['Fragment', 'line']}}, 'Anonymi Commentarius In Platonis Theaetetum': {'tlg_id': 'TLG1128', 'names': {'name_authtab': 'Anonymi Commentarius In Platonis Theaetetum', 'name_idt': 'Anonymi Commentarius In Platonis Theaetetum'}, 'works': {'\\Commentarius in Platonis Theaetetum (fort. auctore Eudoro Alexandrino) (P. Berol. inv. 9782)': ['Section', 'line']}}, 'Pachymeres Hist.': {'tlg_id': 'TLG3142', 'names': {'name_authtab': 'Georgius Pachymeres Hist.', 'name_idt': 'Pachymeres Hist.'}, 'works': {'<$*SUGGRAFIKAI\\ I(STORI/AI &(libri vi de Michaele Palaeologo)': ['Page', 'line'], '>$*SUGGRAFIKAI\\ I(STORI/AI &(libri vii de Andronico Palaeologo)': ['Page', 'line']}}, 'Idaeus Phil.': {'tlg_id': 'TLG2304', 'names': {'name_authtab': 'Idaeus Phil.', 'name_idt': 'Idaeus Phil.'}, 'works': {'Testimonium': ['line']}}, 'Theocritus Soph.': {'tlg_id': 'TLG1714', 'names': {'name_authtab': 'Theocritus Soph.', 'name_idt': 'Theocritus Soph.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Lexicon αἱμωδεῖν': {'tlg_id': 'TLG4288', 'names': {'name_authtab': 'Lexicon αἱμωδεῖν', 'name_idt': 'Lexicon αἱμωδεῖν'}, 'works': {'OLexicon $AI(MWDEI=N &(%6 Lexicon anepigraphum quod incipit a voce $AI(MWDEI=N&)': ['Page', 'line']}}, 'Crantor Phil.': {'tlg_id': 'TLG1287', 'names': {'name_authtab': 'Crantor Phil.', 'name_idt': 'Crantor Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line']}}, 'Simylus Comic.': {'tlg_id': 'TLG0398', 'names': {'name_authtab': 'Simylus Comic.', 'name_idt': 'Simylus Comic.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Xenophon Scr. Erot.': {'tlg_id': 'TLG0641', 'names': {'name_authtab': 'Xenophon Scr. Erot.', 'name_idt': 'Xenophon Scr. Erot.'}, 'works': {'Ephesiaca': ['Book', 'chapter', 'section', 'line'], 'Testimonium': ['line', 'fragment', 'line']}}, 'Galenus Med.': {'tlg_id': 'TLG0057', 'names': {'name_authtab': 'Galenus Med.', 'name_idt': 'Galenus Med.'}, 'works': {'De sanitate tuenda libri vi': ['Ku+hn volume', 'page', 'line'], '': ['Institutio logica', 'Chapter', 'section', 'line'], 'De venereis (ap. Oribasium)': ['Book', 'chapter', 'section', 'line'], '5De tremore, palpitatione, convulsione et rigore liber': ['Volume', 'page', 'line'], 'oDe animi cuiuslibet peccatorum dignotione et curatione (%6 De animi cuiuslibet peccatorum dignotione et medela)': ['Ku+hn volume', 'page', 'line'], "'De difficultate respirationis libri iii": ['Volume', 'page', 'line'], 'BIn Hippocratis librum de articulis et Galeni in eum commentarii iv': ['Volume', 'page', 'line'], '7De humero iis modis prolapso quos Hippocrates non vidit': ['Volume', 'page', 'line'], 'De experientia medica': ['Chapter', 'section', 'line'], 'CDe simplicium medicamentorum temperamentis ac facultatibus libri xi': ['Volume', 'page', 'line'], 'De symptomatum causis libri iii': ['Volume', 'page', 'line'], 'De rebus boni malique suci': ['Ku+hn volume', 'page', 'line'], 'De crisibus libri iii': ['Ku+hn volume', 'page', 'line'], 'De temperamentis libri iii': ['Ku+hn volume', 'page', 'line'], '(Ad Glauconem de medendi methodo libri ii': ['Volume', 'page', 'line'], 'De usu pulsuum': ['Volume', 'page', 'line'], 'De libris propriis liber': ['Ku+hn volume', 'page', 'line'], 'De morborum differentiis': ['Volume', 'page', 'line'], 'De victu attenuante': ['Section', 'line'], 'De parvae pilae exercitio': ['Ku+hn volume', 'page', 'line'], ' De totius morbi temporibus liber': ['Page', 'line'], 'De antidotis libri ii': ['Volume', 'page', 'line'], 'De locis affectis libri vi': ['Volume', 'page', 'line'], '"De sectis ad eos qui introducuntur': ['Ku+hn volume', 'page', 'line'], '9Linguarum seu dictionum exoletarum Hippocratis explicatio': ['Volume', 'page', 'line'], 'VIn Platonis Timaeum commentarii fragmenta (e cod. Scorial. $*F &III 11 [`230 Revilla])': ['Fragment', 'line'], 'De diebus decretoriis libri iii': ['Volume', 'page', 'line'], "'De ordine librorum suorum ad Eugenianum": ['Ku+hn volume', 'page', 'line'], 'Adversus Lycum libellus': ['Ku+hn volume', 'page', 'line'], 'De motu musculorum libri ii': ['Volume', 'page', 'line'], '$Synopsis librorum suorum de pulsibus': ['Volume', 'page', 'line'], '%De praesagitione ex pulsibus libri iv': ['Volume', 'page', 'line'], '!De dignoscendis pulsibus libri iv': ['Volume', 'page', 'line'], '$De musculorum dissectione ad tirones': ['Volume', 'page', 'line'], '7In Hippocratis de natura hominis librum commentarii iii': ['Ku+hn volume', 'page', 'line'], '8In Hippocratis librum de officina medici commentarii iii': ['Volume', 'page', 'line'], '&De purgantium medicamentorum facultate': ['Ku+hn volume', 'page', 'line'], 'De inaequali intemperie liber': ['Volume', 'page', 'line'], '$De comate secundum Hippocratem liber': ['Ku+hn volume', 'page', 'line'], 'LAdversus ea quae a Juliano in Hippocratis aphorismos enuntiata sunt libellus': ['Ku+hn volume', 'page', 'line'], 'De ptisana': ['Ku+hn volume', 'page', 'line'], '2In Hippocratis librum de fracturis commentarii iii': ['Volume', 'page', 'line'], 'De usu partium': ['Ku+hn volume', 'page', 'line'], 'De pulsibus libellus ad tirones': ['Volume', 'page', 'line'], "'De venae sectione adversus Erasistratum": ['Volume', 'page', 'line'], 'De dignotione ex insomniis': ['Volume', 'page', 'line'], "'De optima corporis nostri constitutione": ['Ku+hn volume', 'page', 'line'], '<Thrasybulus sive utrum medicinae sit an gymnasticae hygieine': ['Ku+hn volume', 'page', 'line'], '$De venarum arteriarumque dissectione': ['Volume', 'page', 'line'], '-In Hippocratis prorrheticum i commentaria iii': ['Ku+hn volume', 'page', 'line'], 'De causis respirationis': ['Volume', 'page', 'line'], 'SDe substantia facultatum naturalium fragmentum (%6 De propriis placitis fragmentum)': ['Volume', 'page', 'line'], '+In Hippocratis prognosticum commentaria iii': ['Ku+hn volume', 'page', 'line'], 'De optima doctrina': ['Ku+hn volume', 'page', 'line'], 'De typis liber': ['Volume', 'page', 'line'], 'Ars medica': ['Volume', 'page', 'line'], 'De naturalibus facultatibus': ['Ku+hn volume', 'page', 'line'], 'De atra bile': ['Ku+hn volume', 'page', 'line'], '+Quod optimus medicus sit quoque philosophus': ['Ku+hn volume', 'page', 'line'], '#De placitis Hippocratis et Platonis': ['Book', 'chapter', 'section', 'line'], '#De elementis ex Hippocrate libri ii': ['Ku+hn volume', 'page', 'line'], '@De propriorum animi cuiuslibet affectuum dignotione et curatione': ['Ku+hn volume', 'page', 'line'], ' De differentiis febrium libri ii': ['Volume', 'page', 'line'], '&De propriis placitis fragmenta inedita': ['Fragment', 'line'], '-De constitutione artis medicae ad Patrophilum': ['Volume', 'page', 'line'], 'BIn Platonis Timaeum commentarii fragmenta (e cod. Paris. gr. 2838)': ['Fragment', 'line'], ')An in arteriis natura sanguis contineatur': ['Ku+hn volume', 'page', 'line'], '&De curandi ratione per venae sectionem': ['Volume', 'page', 'line'], '8Adversus eos qui de typis scripserunt vel de circuitibus': ['Volume', 'page', 'line'], 'De ossibus ad tirones': ['Volume', 'page', 'line'], ')In Hippocratis aphorismos commentarii vii': ['Volume', 'page', 'line'], '3In Hippocratis librum vi epidemiarum commentarii vi': ['Ku+hn volume', 'page', 'line'], 'De foetuum formatione libellus': ['Volume', 'page', 'line'], 'De tumoribus praeter naturam': ['Ku+hn volume', 'page', 'line'], 'EDe hirundinibus, revulsione, cucurbitula, incisione et scarificatione': ['Volume', 'page', 'line'], 'De semine libri ii': ['Volume', 'page', 'line'], 'De nervorum dissectione': ['Volume', 'page', 'line'], 'De consuetudinibus': ['Dietz page', 'line'], '&De praenotione ad Posthumum (Epigenem)': ['Volume', 'page', 'line'], '8In Hippocratis librum primum epidemiarum commentarii iii': ['Ku+hn volume', 'page', 'line'], 'De morborum temporibus liber': ['Page', 'line'], '3De compositione medicamentorum per genera libri vii': ['Volume', 'page', 'line'], '.De sophismatis seu captionibus penes dictionem': ['Ku+hn volume', 'page', 'line'], 'De melancholia (ap. Ae+tium)': ['Book', 'chapter', 'line'], '/In Hippocratis de victu acutorum commentaria iv': ['Ku+hn volume', 'page', 'line'], 'OQuos quibus catharticis medicamentis et quando purgare oporteat (ap. Oribasium)': ['Book', 'chapter', 'section', 'line'], '5De compositione medicamentorum secundum locos libri x': ['Volume', 'page', 'line'], '5In Hippocratis librum iii epidemiarum commentarii iii': ['Ku+hn volume', 'page', 'line'], 'De uteri dissectione': ['Ku+hn volume', 'page', 'line'], 'De bono habitu liber': ['Ku+hn volume', 'page', 'line'], 'qIn Hippocratis vel Polybi opus de salubri victus ratione privatorum commentarius (%6 Galeni in Hippocratis de nat': ['Ku+hn volume', 'page', 'line'], 'De causis morborum liber': ['Volume', 'page', 'line'], 'Pro puero epileptico consilium': ['Ku+hn volume', 'page', 'line'], '.Quomodo morborum simulantes sint deprehendendi': ['Ku+hn volume', 'page', 'line'], ')De anatomicis administrationibus libri ix': ['Volume', 'page', 'line'], 'De theriaca ad Pisonem': ['Volume', 'page', 'line'], ' De utilitate respirationis liber': ['Ku+hn volume', 'page', 'line'], 'De plenitudine liber': ['Volume', 'page', 'line'], 'De causis pulsuum libri iv': ['Volume', 'page', 'line'], '0Quod animi mores corporis temperamenta sequantur': ['Ku+hn volume', 'page', 'line'], '%De alimentorum facultatibus libri iii': ['Ku+hn volume', 'page', 'line'], 'De septimestri partu': ['line'], ' Quod qualitates incorporeae sint': ['Ku+hn volume', 'page', 'line'], 'De differentia pulsuum libri iv': ['Volume', 'page', 'line'], 'De methodo medendi libri xiv': ['Volume', 'page', 'line'], 'De instrumento odoratus': ['Chapter', 'section', 'line'], '!De symptomatum differentiis liber': ['Volume', 'page', 'line'], '7De venae sectione adversus Erasistrateos Romae degentes': ['Volume', 'page', 'line'], 'De marcore liber': ['Volume', 'page', 'line'], 'Adhortatio ad artes addiscendas': ['Section', 'line']}}, 'Arsenius Paroemiogr.': {'tlg_id': 'TLG9018', 'names': {'name_authtab': 'Arsenius Paroemiogr.', 'name_idt': 'Arsenius Paroemiogr.'}, 'works': {'Apophthegmata': ['Centuria', 'section', 'line']}}, 'Marcellus Poet. Med.': {'tlg_id': 'TLG0281', 'names': {'name_authtab': 'Marcellus Poet. Med.', 'name_idt': 'Marcellus Poet. Med.'}, 'works': {'De piscibus fragmentum': ['line']}}, 'Telauges Phil.': {'tlg_id': 'TLG1597', 'names': {'name_authtab': 'Telauges Phil.', 'name_idt': 'Telauges Phil.'}, 'works': {'Titulus': ['Page', 'line']}}, 'Michael Attaliates Hist.': {'tlg_id': 'TLG3079', 'names': {'name_authtab': 'Michael Attaliates Hist.', 'name_idt': 'Michael Attaliates Hist.'}, 'works': {'Historia': ['Page', 'line']}}, 'Syrianus Phil.': {'tlg_id': 'TLG4017', 'names': {'name_authtab': 'Syrianus Phil.', 'name_idt': 'Syrianus Phil.'}, 'works': {'&In Aristotelis metaphysica commentaria': ['Page', 'line'], 'WPraefatio in Hermogenis librum $PERI\\ I)DEW=N& [Sp.] (fort. auctore Phoebammone partim)': ['Page', 'line'], '2Commentarium in Hermogenis librum $PERI\\ STA/SEWN&': ['Page', 'line'], '1Commentarium in Hermogenis librum $PERI\\ I)DEW=N&': ['Page', 'line']}}, 'Antiochi Regis Epistulae': {'tlg_id': 'TLG0044', 'names': {'name_authtab': 'Antiochi Regis Epistulae', 'name_idt': 'Antiochi Regis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Phaestus Epic.': {'tlg_id': 'TLG1580', 'names': {'name_authtab': 'Phaestus Epic.', 'name_idt': 'Phaestus Epic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Apollonius Hist.': {'tlg_id': 'TLG1170', 'names': {'name_authtab': 'Apollonius Hist.', 'name_idt': 'Apollonius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Anaxicrates Hist.': {'tlg_id': 'TLG2210', 'names': {'name_authtab': 'Anaxicrates Hist.', 'name_idt': 'Anaxicrates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Simon Scriptor De Re Equestri': {'tlg_id': 'TLG2600', 'names': {'name_authtab': 'Simon Scriptor De Re Equestri', 'name_idt': 'Simon Scriptor De Re Equestri'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'De forma et delectu equorum': ['Section', 'line']}}, 'Promathion Hist.': {'tlg_id': 'TLG2548', 'names': {'name_authtab': 'Promathion Hist.', 'name_idt': 'Promathion Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Theodorus Poeta': {'tlg_id': 'TLG1987', 'names': {'name_authtab': 'Theodorus Poeta', 'name_idt': 'Theodorus Poeta'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Clearchus Phil.': {'tlg_id': 'TLG1270', 'names': {'name_authtab': 'Clearchus Phil.', 'name_idt': 'Clearchus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pausaniae I Et Xerxis Epistulae': {'tlg_id': 'TLG0047', 'names': {'name_authtab': 'Pausaniae I Et Xerxis Epistulae', 'name_idt': 'Pausaniae I Et Xerxis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Zosimus Hist.': {'tlg_id': 'TLG4084', 'names': {'name_authtab': 'Zosimus Hist.', 'name_idt': 'Zosimus Hist.'}, 'works': {'Historia nova': ['Book', 'chapter', 'section', 'line']}}, 'Passio Perpetuae Et Felicitatis': {'tlg_id': 'TLG2016', 'names': {'name_authtab': 'Passio Perpetuae Et Felicitatis', 'name_idt': 'Passio Perpetuae Et Felicitatis'}, 'works': {'Passio Perpetuae et Felicitatis': ['Section', 'line']}}, 'Appianus Hist.': {'tlg_id': 'TLG0551', 'names': {'name_authtab': 'Appianus Hist.', 'name_idt': 'Appianus Hist.'}, 'works': {'Appiani ad Frontonem epistula': ['Section', 'line'], 'Celtica (fragmenta)': ['Chapter', 'section', 'line'], 'Mithridatica': ['Section', 'line'], 'Numidica (fragmenta)': ['Chapter', 'section', 'line'], 'Basilica (fragmenta)': ['Chapter', 'section', 'line'], 'Macedonica (fragmenta)': ['Chapter', 'section', 'line'], 'Bellum civile': ['Book', 'chapter', 'section', 'line'], 'Sicelica (fragmenta)': ['Chapter', 'section', 'line'], 'Annibaica': ['Section', 'line'], 'Testimonium': ['line', 'fragment', 'line'], 'Samnitica (fragmenta)': ['Chapter', 'section', 'line'], 'Prooemium': ['Section', 'line'], 'Syriaca': ['Section', 'line'], 'Italica (fragmenta)': ['Chapter', 'section', 'line'], 'Iberica': ['Section', 'line'], 'Libyca': ['Section', 'line'], 'Fragmenta historiae Romanae': ['Fragment', 'section', 'line'], 'Illyrica': ['Section', 'line']}}, 'Vitae Prophetarum': {'tlg_id': 'TLG1750', 'names': {'name_authtab': 'Vitae Prophetarum', 'name_idt': 'Vitae Prophetarum'}, 'works': {'0De prophetarum vita et obitu (Dorothei recensio)': ['Page', 'line'], '/De prophetarum vita et obitu (recensio anonyma)': ['Page', 'line'], 'AIndex apostolorum discipulorumque Domini (textus Pseudo-Dorothei)': ['Page', 'line'], '`De prophetarum vita et obitu (recensio scholiis Hesychii aliorumque patrum in prophetas adjecta)': ['Page', 'line']}}, 'Maximus Astrol.': {'tlg_id': 'TLG1487', 'names': {'name_authtab': 'Maximus Astrol.', 'name_idt': 'Maximus Astrol.'}, 'works': {'$*PERI\\ KATARXW=N &(epitome)': ['Section', 'line'], '$*PERI\\ KATARXW=N&': ['Section', 'line']}}, 'Ptolemais Phil.': {'tlg_id': 'TLG1814', 'names': {'name_authtab': 'Ptolemais Phil.', 'name_idt': 'Ptolemais Phil.'}, 'works': {'Fragmenta de musica': ['Page', 'line']}}, 'Vitae Aesopi': {'tlg_id': 'TLG1765', 'names': {'name_authtab': 'Vitae Aesopi', 'name_idt': 'Vitae Aesopi'}, 'works': {'>Vita G (e cod. 397 Bibliothecae Pierponti Morgan) (recensio 3)': ['Section', 'line'], '0Vita W (vita Aesopi Westermanniana) (recensio 2)': ['Section', 'line'], 'q$*BIBLI/ON MUQIKO\\N TOU= *AI)SW/POU, EI)KONI/ZON A)PO\\ TW=N A)LO/GWN ZW/|WN PRO\\S TA\\S TH=S A)NQRWPI/NHS FU/SEWS ': ['Page', 'line'], '@Vita Pl vel Accursiana (sub auctore Maximo Planude) (recensio 1)': ['Page', 'line'], 'Vita (fort. auctore Aphthonio)': ['Page', 'line']}}, 'Anonymi In Aristotelis Sophisticos Elenchos Phil.': {'tlg_id': 'TLG4193', 'names': {'name_authtab': 'Anonymi In Aristotelis Sophisticos Elenchos Phil.', 'name_idt': 'Anonymi In Aristotelis Sophisticos Elenchos Phil.'}, 'works': {'/In Aristotelis sophisticos elenchos paraphrasis': ['Section', 'line'], '3Scholia in sophisticos elenchos (%6 commentarium 2)': ['\x10Bekker page+line', 'line'], '5Concisa traditio modorum sophisticarum importunitatum': ['line'], 'qCommentarium in sophisticos elenchos (%6 Anonymus Mutinensis) (excerpta e codd. Mutinensi, busta 1.II.6; Vat. gr.': ['\x10Bekker page+line', 'line'], 'qScholia in sophisticos elenchos (excerpta e codd. Hierosol. S. Sepulchri 150, Paris. Coislin. 327, Vat. Reg. gr. ': ['Scholion', 'line'], '>Scholia in sophisticos elenchos (excerpta) (%6 commentarium 1)': ['Scholion', 'line']}}, 'Theopompus Epic.': {'tlg_id': 'TLG1726', 'names': {'name_authtab': 'Theopompus Epic.', 'name_idt': 'Theopompus Epic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Alexander Phil.': {'tlg_id': 'TLG0732', 'names': {'name_authtab': 'Alexander Phil.', 'name_idt': 'Alexander Phil.'}, 'works': {'': ['De febribus [Sp.]', 'Chapter', 'section', 'line'], 'De mixtione': ['Page', 'line'], '7De anima libri mantissa (%6 De anima liber alter) [Sp.]': ['Page', 'line'], '2In Aristotelis meteorologicorum libros commentaria': ['Page', 'line'], '$*)APORI/AI KAI\\ LU/SEIS& [Sp.]': ['Page', 'line'], '&In Aristotelis metaphysica commentaria': ['Page', 'line'], '0In analytica posteriora commentariorum fragmenta': ['Page', 'line'], 'De anima': ['Page', 'line'], 'Problemata (lib. 3-4) [Sp.]': ['Book', 'section', 'line'], 'In librum de sensu commentarium': ['Page', 'line'], 'De fato': ['Page', 'line'], '0In Aristotelis topicorum libros octo commentaria': ['Page', 'line'], '9In Aristotelis analyticorum priorum librum i commentarium': ['Page', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Problemata (lib. 1-2) [Sp.]': ['Book', 'section', 'line'], '$*)HQIKA\\ PROBLH/MATA& [Sp.]': ['Page', 'line']}}, 'Georgius Pisides Poeta': {'tlg_id': 'TLG2701', 'names': {'name_authtab': 'Georgius Pisides Poeta', 'name_idt': 'Georgius Pisides Poeta'}, 'works': {' In Heraclium ex Africa redeuntem': ['line'], '#Heracliadis iii acroaseos fragmenta': ['Fragment', 'line'], 'Heraclias': ['Section', 'line'], 'In Bonum patricium': ['line'], 'De expeditione Persica': ['Section', 'line'], 'Bellum Avaricum': ['line'], 'In restitutionem sanctae crucis': ['line']}}, 'Paramonus Comic.': {'tlg_id': 'TLG1785', 'names': {'name_authtab': 'Paramonus Comic.', 'name_idt': 'Paramonus Comic.'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Iambica Adespota (IEG)': {'tlg_id': 'TLG0235', 'names': {'name_authtab': 'Iambica Adespota (IEG)', 'name_idt': 'Iambica Adespota (IEG)'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Severus Soph.': {'tlg_id': 'TLG4239', 'names': {'name_authtab': 'Severus Soph.', 'name_idt': 'Severus Soph.'}, 'works': {'Narrationes et ethopoeiae': ['Chapter', 'section', 'line']}}, 'Sophonias Phil.': {'tlg_id': 'TLG4030', 'names': {'name_authtab': 'Sophonias Phil.', 'name_idt': 'Sophonias Phil.'}, 'works': {'*In Aristotelis libros de anima paraphrasis': ['Page', 'line']}}, 'Athenaeus Mech.': {'tlg_id': 'TLG1204', 'names': {'name_authtab': 'Athenaeus Mech.', 'name_idt': 'Athenaeus Mech.'}, 'works': {'De machinis': ['Section', 'line']}}, 'Callistratus Hist.': {'tlg_id': 'TLG1239', 'names': {'name_authtab': 'Domitius Callistratus Hist.', 'name_idt': 'Callistratus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Crobylus Comic.': {'tlg_id': 'TLG0437', 'names': {'name_authtab': 'Crobylus Comic.', 'name_idt': 'Crobylus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Telephus Gramm.': {'tlg_id': 'TLG1698', 'names': {'name_authtab': 'Telephus Gramm.', 'name_idt': 'Telephus Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hyperides Orat.': {'tlg_id': 'TLG0030', 'names': {'name_authtab': 'Hyperides Orat.', 'name_idt': 'Hyperides Orat.'}, 'works': {'Epitaphius': ['Column', 'line'], 'Pro Lycophrone': ['Fragment', 'column', 'line'], 'Pro Euxenippo': ['Fragment', 'column', 'line'], 'In Demosthenem': ['Fragment', 'column', 'line'], 'In Philippidem': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line', 'ó´', 'ó´', 'ó¶', 'ó¶', 'ó¶\x12ó³'], 'In Athenogenem': ['Column', 'line']}}, 'Nepualius Med., Phil.': {'tlg_id': 'TLG1527', 'names': {'name_authtab': 'Nepualius Med. et Phil.', 'name_idt': 'Nepualius Med., Phil.'}, 'works': {'2$*PERI\\ TW=N KATA\\ A)NTIPA/QEIAN KAI\\ SUMPA/QEIAN&': ['Section', 'line']}}, 'Cratippus Hist.': {'tlg_id': 'TLG1907', 'names': {'name_authtab': 'Cratippus Hist.', 'name_idt': 'Cratippus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Asclepiades Myth.': {'tlg_id': 'TLG1200', 'names': {'name_authtab': 'Asclepiades Myth.', 'name_idt': 'Asclepiades Myth.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Biotus Trag.': {'tlg_id': 'TLG0348', 'names': {'name_authtab': 'Biotus Trag.', 'name_idt': 'Biotus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Ocellus Phil.': {'tlg_id': 'TLG1545', 'names': {'name_authtab': 'Ocellus Phil.', 'name_idt': 'Ocellus Phil.'}, 'works': {'Fragmenta [Sp.]': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line'], 'De universi natura [Sp.]': ['Chapter', 'section', 'line']}}, 'Menecrates Med.': {'tlg_id': 'TLG0639', 'names': {'name_authtab': 'Menecrates Med.', 'name_idt': 'Menecrates Med.'}, 'works': {'Epistula [Sp.]': ['line']}}, 'Gorgias Hist.': {'tlg_id': 'TLG2255', 'names': {'name_authtab': 'Gorgias Hist.', 'name_idt': 'Gorgias Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Myronianus Hist.': {'tlg_id': 'TLG4397', 'names': {'name_authtab': 'Myronianus Hist.', 'name_idt': 'Myronianus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Palaephatus Myth.': {'tlg_id': 'TLG1553', 'names': {'name_authtab': 'Palaephatus Myth.', 'name_idt': 'Palaephatus Myth.'}, 'works': {'': ['De incredibilibus', 'Section', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Iccus Phil.': {'tlg_id': 'TLG2226', 'names': {'name_authtab': 'Iccus Phil.', 'name_idt': 'Iccus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Herodorus Hist.': {'tlg_id': 'TLG1427', 'names': {'name_authtab': 'Herodorus Hist.', 'name_idt': 'Herodorus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dionysius Μεταθέμενος Phil.': {'tlg_id': 'TLG2185', 'names': {'name_authtab': 'Dionysius Μεταθέμενος Phil.', 'name_idt': 'Dionysius Μεταθέμενος Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Glycas Astrol., Hist.': {'tlg_id': 'TLG3047', 'names': {'name_authtab': 'Michael Glycas Astrol. et Hist.', 'name_idt': 'Glycas Astrol., Hist.'}, 'works': {'Annales (lectiones variae)': ['Page', 'line'], 'Annales': ['Page', 'line']}}, 'Anonymi In Hermogenem Rhet.': {'tlg_id': 'TLG5024', 'names': {'name_authtab': 'Anonymi In Hermogenem Rhet.', 'name_idt': 'Anonymi In Hermogenem Rhet.'}, 'works': {'HProlegomena in artem rhetoricam (excerpta e codd. Marc. 430 %7 Vat. 900)': ['Volume', 'page', 'line'], 'aIntroductio in prolegomena Hermogenis artis rhetoricae (fort. auctore Marcellino Gramm. et Rhet.)': ['Volume', 'page', 'line'], '(Prolegomena in librum $PERI\\ EU(RE/SEWS&': ['Volume', 'page', 'line'], ':De figuris in libris $PERI\\ EU(RE/SEWN &et $PERI\\ I)DEW=N&': ['Volume', 'page', 'line'], 'Prolegomena in artem rhetoricam': ['Volume', 'page', 'line'], '&Prolegomena in librum $PERI\\ STA/SEWN&': ['Volume', 'page', 'line'], 'EProlegomena in librum $PERI\\ I)DEW=N &(fragmentum e cod. Ambros. 523)': ['Volume', 'page', 'line'], "'Commentarium in librum $PERI\\ STA/SEWN&": ['Volume', 'page', 'line'], ')Commentarium in librum $PERI\\ EU(RE/SEWS&': ['Volume', 'page', 'line'], '$Synopses artis rhetoricae (excerpta)': ['Volume', 'page', 'line'], '"$*PERI\\ TH=S TA/CEWS TW=N I)DEW=N&': ['Volume', 'page', 'line'], '4Excerpta e prolegomenis diversis (e cod. Matr. 4687)': ['Volume', 'page', 'line'], 'WExcerpta e prolegomenis in librum $PERI\\ STA/SEWN &(e cod. Paris. 3032, fol. 143r-149r)': ['Volume', 'page', 'line'], '%Prolegomena in librum $PERI\\ I)DEW=N&': ['Volume', 'page', 'line'], '&Commentarium in librum $PERI\\ I)DEW=N&': ['Volume', 'page', 'line'], 'FProlegomena in artem rhetoricam (excerpta e codd. Paris. 1983 %7 2977)': ['Volume', 'page', 'line'], 'UExcerpta e prolegomenis in librum $PERI\\ STA/SEWN &(e cod. Paris. 3032, fol. 60r-62r)': ['Volume', 'page', 'line']}}, 'Dialexeis Δισσοὶ λόγοι': {'tlg_id': 'TLG1309', 'names': {'name_authtab': 'Dialexeis Δισσοὶ λόγοι', 'name_idt': 'Dialexeis Δισσοὶ λόγοι'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Adespota Papyracea (SH)': {'tlg_id': 'TLG2648', 'names': {'name_authtab': 'Adespota Papyracea (SH)', 'name_idt': 'Adespota Papyracea (SH)'}, 'works': {'Hexametri': ['Fragment', 'line'], 'Elegiae': ['Fragment', 'line'], 'Epigrammata': ['Fragment', 'line'], 'Miscellanea': ['Fragment', 'line']}}, 'Anaxilas Comic.': {'tlg_id': 'TLG0406', 'names': {'name_authtab': 'Anaxilas Comic.', 'name_idt': 'Anaxilas Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Dioxippus Comic.': {'tlg_id': 'TLG0446', 'names': {'name_authtab': 'Dioxippus Comic.', 'name_idt': 'Dioxippus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Polystratus Phil.': {'tlg_id': 'TLG1629', 'names': {'name_authtab': 'Polystratus Phil.', 'name_idt': 'Polystratus Phil.'}, 'works': {'6$*PERI\\ A)LO/GOU KATAFRONH/SEWS &(P. Herc. 336%3`1150)': ['\x12', 'line'], 'Fragmenta (P. Herc. 346)': ['Fragment', 'column', 'line']}}, 'Demetrius Gramm.': {'tlg_id': 'TLG1756', 'names': {'name_authtab': 'Demetrius Gramm.', 'name_idt': 'Demetrius Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Nicaenetus Epic.': {'tlg_id': 'TLG0218', 'names': {'name_authtab': 'Nicaenetus Epic.', 'name_idt': 'Nicaenetus Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Ezechiel Trag.': {'tlg_id': 'TLG0343', 'names': {'name_authtab': 'Ezechiel Trag.', 'name_idt': 'Ezechiel Trag.'}, 'works': {'$*)ECAGWGH/&': ['line']}}, 'Encomium Ducis Thebaidos': {'tlg_id': 'TLG0290', 'names': {'name_authtab': 'Encomium Ducis Thebaidos', 'name_idt': 'Encomium Ducis Thebaidos'}, 'works': {'Fragmentum (P. Berol. 9799)': ['line']}}, 'Oratio Manassis': {'tlg_id': 'TLG1858', 'names': {'name_authtab': 'Oratio Manassis', 'name_idt': 'Oratio Manassis'}, 'works': {'Oratio': ['Page', 'line']}}, 'Evangelium Secundum Hebraeos': {'tlg_id': 'TLG1374', 'names': {'name_authtab': 'Evangelium Secundum Hebraeos', 'name_idt': 'Evangelium Secundum Hebraeos'}, 'works': {'Evangelium secundum Hebraeos': ['Fragment', 'line']}}, 'Scholia In Aratum': {'tlg_id': 'TLG5013', 'names': {'name_authtab': 'Scholia In Aratum', 'name_idt': 'Scholia In Aratum'}, 'works': {'"Scholia in Aratum (scholia vetera)': ['Codex', 'scholion', 'line'], '3Scholia in Aratum (scholia vetera) (P. Berol. 5865)': ['Column', 'line'], ':Scholia in Aratum (scholia vetera) (e cod. Paris gr. 2728)': ['line'], '9Scholia in Aratum (scholia vetera) (e cod. Perusino A 35)': ['Section', 'line'], 'PScholia in Aratum (scholia vetera) (e codd. Palat. gr. 40 (P) %7 Paris gr. 2860)': ['Scholion', 'line']}}, 'Asinius Quadratus Hist.': {'tlg_id': 'TLG2122', 'names': {'name_authtab': 'Gaius Asinius Quadratus Hist.', 'name_idt': 'Asinius Quadratus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Martyrium Polycarpi': {'tlg_id': 'TLG1484', 'names': {'name_authtab': 'Martyrium Polycarpi', 'name_idt': 'Martyrium Polycarpi'}, 'works': {':Epistula ecclesiae Smyrnensis de martyrio sancti Polycarpi': ['Chapter', 'section', 'line']}}, 'Seniores Alexandrini Scr. Eccl.': {'tlg_id': 'TLG1664', 'names': {'name_authtab': 'Seniores Alexandrini Scr. Eccl.', 'name_idt': 'Seniores Alexandrini Scr. Eccl.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Dionysius Attic.': {'tlg_id': 'TLG1323', 'names': {'name_authtab': 'Aelius Dionysius Attic.', 'name_idt': 'Dionysius Attic.'}, 'works': {'$*)ATTIKA\\ O)NO/MATA&': ['', 'Alphabetic letter', 'entry', 'line']}}, 'Isocrates Orat.': {'tlg_id': 'TLG0010', 'names': {'name_authtab': 'Isocrates Orat.', 'name_idt': 'Isocrates Orat.'}, 'works': {'': ['De pace (orat. 8)', 'Section', 'line'], 'In Lochitem (orat. 20)': ['Section', 'line'], 'In sophistas (orat. 13)': ['Section', 'line', '', 'T\x13'], 'Antidosis (orat. 15)': ['Section', 'line'], 'De bigis (orat. 16)': ['Section', 'line'], 'Helenae encomium (orat. 10)': ['Section', 'line'], 'Evagoras (orat. 9)': ['Section', 'line'], 'Ad Archidamum (epist. 9)': ['Section', 'line'], 'Areopagiticus (orat. 7)': ['Section', 'line'], 'Plataicus (orat. 14)': ['Section', 'line'], 'In Callimachum (orat. 18)': ['Section', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Ad Philippum (epist. 2)': ['Section', 'line'], 'Ad Philippum (epist. 3)': ['Section', 'line'], 'Ad filios Jasonis (epist. 6)': ['Section', 'line'], 'Ad Antipatrum (epist. 4)': ['Section', 'line'], 'Ad Dionysium (epist. 1)': ['Section', 'line'], 'Philippus (orat. 5)': ['Section', 'line'], 'Ad Demonicum (orat. 1)': ['Section', 'line', ''], 'Aegineticus (orat. 19)': ['Section', 'line'], 'Busiris (orat. 11)': ['Section', 'line'], 'Ad reges Mytilenaeos (epist. 8)': ['Section', 'line'], 'Ad Nicoclem (orat. 2)': ['Section', 'line'], 'Ad Alexandrum (epist. 5)': ['Section', 'line'], 'Nicocles (orat. 3)': ['Section', 'line'], 'Ad Timotheum (epist. 7)': ['Section', 'line'], 'In Euthynum (orat. 21)': ['Section', 'line'], 'Archidamus (orat. 6)': ['Section', 'line'], 'Panegyricus (orat. 4)': ['Section', 'line'], 'Panathenaicus (orat. 12)': ['Section', 'line'], 'Trapeziticus (orat. 17)': ['Section', 'line']}}, 'Josephus Et Aseneth': {'tlg_id': 'TLG1451', 'names': {'name_authtab': 'Josephus Et Aseneth', 'name_idt': 'Josephus Et Aseneth'}, 'works': {'Confessio et precatio Aseneth': ['Chapter', 'section', 'line']}}, 'Scholia In Aeschinem': {'tlg_id': 'TLG5009', 'names': {'name_authtab': 'Scholia In Aeschinem', 'name_idt': 'Scholia In Aeschinem'}, 'works': {'%Scholia in Aeschinem (scholia vetera)': ['Oration', 'scholion', 'line']}}, 'Panyassis Epic.': {'tlg_id': 'TLG1557', 'names': {'name_authtab': 'Panyassis Epic.', 'name_idt': 'Panyassis Epic.'}, 'works': {'Fragmenta epica': ['Fragment', 'line']}}, 'Choricius Rhet., Soph.': {'tlg_id': 'TLG4094', 'names': {'name_authtab': 'Choricius Rhet. et Soph.', 'name_idt': 'Choricius Rhet., Soph.'}, 'works': {'Opera': ['Oration-declamation-dialexis', 'section', 'paragraph', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Euclides Geom.': {'tlg_id': 'TLG1799', 'names': {'name_authtab': 'Euclides Geom.', 'name_idt': 'Euclides Geom.'}, 'works': {'Optica': ['Section', 'line'], ',Elementa (recensio altera, lib. 11.36-12.17)': ['Book', 'demonstratio', 'line'], 'Catoptrica (recensio Theonis?)': ['Section', 'line'], 'Phaenomena': ['Section', 'line'], '.Elementa (demonstrationes alterae, lib. 11-13)': ['Demonstratio', 'line'], '+Elementa (demonstrationes alterae, lib. 10)': ['Demonstratio', 'line'], 'Sectio canonis [Sp.]': ['Section', 'line'], 'Elementa': ['Book', 'demonstratio', 'line'], ',Elementa (demonstrationes alterae, lib. 5-9)': ['Page', 'line'], 'Data (demonstrationes alterae)': ['Section', 'line'], 'Data': ['Section', 'line'], 'Phaenomena (recensio b)': ['Section', 'line'], 'Fragmenta': ['Page', 'line'], 'Epigramma': ['line'], 'Opticorum recensio Theonis': ['Page', 'line'], '2Phaenomena (demonstrationes alterae recensionis b)': ['Section', 'line'], ',Elementa (demonstrationes alterae, lib. 1-3)': ['Demonstratio', 'line']}}, 'Lamynthius Lyr.': {'tlg_id': 'TLG0918', 'names': {'name_authtab': 'Lamynthius Lyr.', 'name_idt': 'Lamynthius Lyr.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Aristocritus Hist.': {'tlg_id': 'TLG2341', 'names': {'name_authtab': 'Aristocritus Hist.', 'name_idt': 'Aristocritus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Hesychius Illustrius Hist.': {'tlg_id': 'TLG2274', 'names': {'name_authtab': 'Hesychius Illustrius Hist.', 'name_idt': 'Hesychius Illustrius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], '\\Patria Constantinopoleos (%6 liber vi operis Historia Romana atque omnigena) (fort. epitome)': ['Section', 'line'], 'MHomilia in natalem Christi (fort. pars operis Historia Romana atque omnigena)': ['line'], 'qPatria Constantinopoleos (%6 liber vi operis Historia Romana atque omnigena) (variae lectiones e cod. Angelico gr': ['Section', 'line']}}, 'Athenaeus Epigr.': {'tlg_id': 'TLG0141', 'names': {'name_authtab': 'Athenaeus Epigr.', 'name_idt': 'Athenaeus Epigr.'}, 'works': {'Epigramma': ['Book', 'epigram', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Testamentum Abrahae': {'tlg_id': 'TLG1701', 'names': {'name_authtab': 'Testamentum Abrahae', 'name_idt': 'Testamentum Abrahae'}, 'works': {'STestamentum Abrahae (recensio A) (olim partim sub auctore Hesychio Hierosolymitano)': ['Section', 'line'], ' Testamentum Abrahae (recensio B)': ['Section', 'line']}}, 'Anonymus Photii Phil.': {'tlg_id': 'TLG1135', 'names': {'name_authtab': 'Anonymus Photii Phil.', 'name_idt': 'Anonymus Photii Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Lesbonax Gramm.': {'tlg_id': 'TLG1460', 'names': {'name_authtab': 'Lesbonax Gramm.', 'name_idt': 'Lesbonax Gramm.'}, 'works': {'De figuris': ['Section', 'line']}}, 'Themistoclis Epistulae': {'tlg_id': 'TLG0055', 'names': {'name_authtab': 'Themistoclis Epistulae', 'name_idt': 'Themistoclis Epistulae'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Lysimachus Hist.': {'tlg_id': 'TLG0574', 'names': {'name_authtab': 'Lysimachus Hist.', 'name_idt': 'Lysimachus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Asclepius Phil.': {'tlg_id': 'TLG4018', 'names': {'name_authtab': 'Asclepius Phil.', 'name_idt': 'Asclepius Phil.'}, 'works': {'4In Aristotelis metaphysicorum libros A-Z commentaria': ['Page', 'line'], 'HCommentaria in Nicomachi Geraseni Pythagorei introductionem arithmeticam': ['Book', 'section', 'line']}}, 'Nicander Gramm.': {'tlg_id': 'TLG1529', 'names': {'name_authtab': 'Nicander Gramm.', 'name_idt': 'Nicander Gramm.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pausanias Hist.': {'tlg_id': 'TLG2573', 'names': {'name_authtab': 'Pausanias Hist.', 'name_idt': 'Pausanias Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Corpus Hermeticum': {'tlg_id': 'TLG1286', 'names': {'name_authtab': 'Corpus Hermeticum', 'name_idt': 'Corpus Hermeticum'}, 'works': {'Dialogus (sine titulo)': ['Section', 'line', '{', ''], 'Poimandres': ['Section', 'line'], 'Asclepius (verba Graeca solum)': ['Section', 'line'], 'M$*(/OTI E)N MO/NW| TW=| QEW=| TO\\ A)GAQO/N E)STIN, A)LLAXO/QI DE\\ OU)DAMOU= &': ['Section', 'line'], '/$*(/OROI *)ASKLHPIOU= PRO\\S *)/AMMWNA BASILE/A&': ['Section', 'line', ''], '?$*PRO\\S *TA\\T UI(O\\N O(/TI A)FANH\\S QEO\\S FANERW/TATO/S E)STIN&': ['Section', 'line'], 'g$*PRO\\S TO\\N UI(O\\N *TA\\T E)N O)/REI LO/GOS A)PO/KRUFOS, PERI\\ PALIGGENESI/AS KAI\\ SIGH=S E)PAGGELI/AS&': ['Section', 'line'], '!$*PERI\\ NOU= KOINOU= PRO\\S *TA/T&': ['Section', 'line'], '$$*PRO\\S *TA\\T O( KRATH\\R H)\\ MONA/S&': ['Section', 'line'], 'G$*(/OTI ME/GISTON KAKO\\N E)N A)NQRW/POIS H( PERI\\ TOU= QEOU= A)GNWSI/A&': ['Section', 'line'], '$Fragmenta varia (verba Graeca solum)': ['Fragment', 'line'], 'Hieros logos': ['Section', 'line'], 'q$*(/OTI OU)DE\\N TW=N O)/NTWN A)PO/LLUTAI, A)LLA\\ TA\\S METABOLA\\S A)PWLEI/AS KAI\\ QANA/TOUS PLANW/MENOI LE/GOUSIN&': ['Section', 'line'], '$*)ASKLHPIW=| EU)= FRONEI=N&': ['Section', 'line'], 'E$*PERI\\ TH=S U(PO\\ TOU= PA/QOUS TOU= SW/MATOS E)MPODIZOME/NHS YUXH=S&': ['Section', 'line', '', 'Q\x12'], '$*NOU=S PRO\\S *(ERMH=N&': ['Section', 'line'], 'Fragmenta': ['Fragment', 'section', 'line'], '9$*)EK TOU= U(/MNOU PRO\\S TO\\N PANTOKRA/TORA& (fragmentum)': ['line'], 'q$*PERI\\ NOH/SEWS KAI\\ AI)SQH/SEWS. [O(/TI E)N MO/NW| TW=| QEW=| TO\\ KALO\\N KAI\\ A)GAQO/N E)STIN, A)LLAXO/QI DE\\ O': ['Section', 'line'], '$*KLEI/S&': ['Section', 'line']}}, 'Posidonius Epic.': {'tlg_id': 'TLG2639', 'names': {'name_authtab': 'Posidonius Epic.', 'name_idt': 'Posidonius Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Martyrium Potamiaenae Et Basilidis': {'tlg_id': 'TLG2007', 'names': {'name_authtab': 'Martyrium Potamiaenae Et Basilidis', 'name_idt': 'Martyrium Potamiaenae Et Basilidis'}, 'works': {'"Martyrium Potamiaenae et Basilidis': ['Section', 'line']}}, 'Melissus Phil.': {'tlg_id': 'TLG1494', 'names': {'name_authtab': 'Melissus Phil.', 'name_idt': 'Melissus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Timonides Hist.': {'tlg_id': 'TLG2386', 'names': {'name_authtab': 'Timonides Hist.', 'name_idt': 'Timonides Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Maiistas Epic.': {'tlg_id': 'TLG1475', 'names': {'name_authtab': 'Maiistas Epic.', 'name_idt': 'Maiistas Epic.'}, 'works': {'Aretalogia (IG 11.4.1299)': ['line']}}, 'Amelesagoras Hist.': {'tlg_id': 'TLG2219', 'names': {'name_authtab': 'Amelesagoras Hist.', 'name_idt': 'Amelesagoras Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Heraclitus Phil.': {'tlg_id': 'TLG0626', 'names': {'name_authtab': 'Heraclitus Phil.', 'name_idt': 'Heraclitus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Agathyllus Eleg.': {'tlg_id': 'TLG2606', 'names': {'name_authtab': 'Agathyllus Eleg.', 'name_idt': 'Agathyllus Eleg.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Melanthius Hist.': {'tlg_id': 'TLG1491', 'names': {'name_authtab': 'Melanthius Hist.', 'name_idt': 'Melanthius Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Eudoxus Astron.': {'tlg_id': 'TLG1358', 'names': {'name_authtab': 'Eudoxus Astron.', 'name_idt': 'Eudoxus Astron.'}, 'works': {'Fragmenta': ['Fragment', 'line', 'öy', '³'], '!Ars astronomica [Sp.] (P. Par. 1)': ['Column', 'line', 'î´´', '']}}, 'Nautarum Cantiunculae': {'tlg_id': 'TLG0269', 'names': {'name_authtab': 'Nautarum Cantiunculae', 'name_idt': 'Nautarum Cantiunculae'}, 'works': {'#Ad Rhodios ventos (P. Oxy. 11.1383)': ['line'], 'Fragmentum (P. Oxy. 3.425)': ['line']}}, 'Apocalypsis Joannis': {'tlg_id': 'TLG1158', 'names': {'name_authtab': 'Apocalypsis Joannis', 'name_idt': 'Apocalypsis Joannis'}, 'works': {'-Apocalypsis apocrypha Joannis (versio altera)': ['Section', 'line'], 'Apocalypsis apocrypha Joannis': ['Section', 'line'], '-Apocalypsis apocrypha Joannis (versio tertia)': ['Page', 'line']}}, 'Genesius Hist.': {'tlg_id': 'TLG3040', 'names': {'name_authtab': 'Josephus Genesius Hist.', 'name_idt': 'Genesius Hist.'}, 'works': {'$*BASILEI=AI&': ['Book', 'section', 'line']}}, 'Anaxion Trag.': {'tlg_id': 'TLG0833', 'names': {'name_authtab': 'Anaxion Trag.', 'name_idt': 'Anaxion Trag.'}, 'works': {'Titulus': ['line']}}, 'Posidippus Comic.': {'tlg_id': 'TLG0500', 'names': {'name_authtab': 'Posidippus Comic.', 'name_idt': 'Posidippus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Archelaus Phil.': {'tlg_id': 'TLG2303', 'names': {'name_authtab': 'Archelaus Phil.', 'name_idt': 'Archelaus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Hierophilus Phil., Soph.': {'tlg_id': 'TLG0745', 'names': {'name_authtab': 'Hierophilus Phil. et Soph.', 'name_idt': 'Hierophilus Phil., Soph.'}, 'works': {'De nutriendi methodo': ['Chapter', 'section', 'line'], "=$*PW=S O)FEI/LEI DIAITA=SQAI A)/NQRWPOS E)F' E(KA/STW| MHNI/&": ['Page', 'line']}}, 'Polemaeus Trag.': {'tlg_id': 'TLG0625', 'names': {'name_authtab': 'Polemaeus Trag.', 'name_idt': 'Polemaeus Trag.'}, 'works': {'Tituli': ['line']}}, 'Lucas Apostolus Med.': {'tlg_id': 'TLG0734', 'names': {'name_authtab': 'Lucas Apostolus Med.', 'name_idt': 'Lucas Apostolus Med.'}, 'works': {'$*SKEUASI/A A(LATI/OU&': ['Section', 'line']}}, 'Cephisodorus Comic.': {'tlg_id': 'TLG0429', 'names': {'name_authtab': 'Cephisodorus Comic.', 'name_idt': 'Cephisodorus Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Antipater Phil.': {'tlg_id': 'TLG1146', 'names': {'name_authtab': 'Antipater Phil.', 'name_idt': 'Antipater Phil.'}, 'works': {'Testimonia et fragmenta': ['Fragment', 'line']}}, 'Argyropulus Gramm.': {'tlg_id': 'TLG4237', 'names': {'name_authtab': 'Joannes Argyropulus Gramm.', 'name_idt': 'Argyropulus Gramm.'}, 'works': {'&Prolegomena in Aphthonii progymnasmata': ['Volume', 'page', 'line']}}, 'Vita Adam Et Evae': {'tlg_id': 'TLG1747', 'names': {'name_authtab': 'Vita Adam Et Evae', 'name_idt': 'Vita Adam Et Evae'}, 'works': {'0Vita Adam et Evae (sub titulo Apocalypsis Mosis)': ['Section', 'line']}}, 'Testamentum Jobi': {'tlg_id': 'TLG1702', 'names': {'name_authtab': 'Testamentum Jobi', 'name_idt': 'Testamentum Jobi'}, 'works': {'Testamentum Jobi': ['Chapter', 'section', 'line']}}, 'Hippias Hist.': {'tlg_id': 'TLG1435', 'names': {'name_authtab': 'Hippias Hist.', 'name_idt': 'Hippias Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Timaeus Hist.': {'tlg_id': 'TLG1733', 'names': {'name_authtab': 'Timaeus Hist.', 'name_idt': 'Timaeus Hist.'}, 'works': {'Fragmenta': ['FGrH fragment', 'line'], 'Testimonia': ['line', 'fragment', 'line']}}, '[Aretades] Hist.': {'tlg_id': 'TLG2193', 'names': {'name_authtab': '[Aretades] Hist.', 'name_idt': '[Aretades] Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pseudo-Auctores Hellenistae (PsVTGr)': {'tlg_id': 'TLG1639', 'names': {'name_authtab': 'Pseudo-Auctores Hellenistae (PsVTGr)', 'name_idt': 'Pseudo-Auctores Hellenistae (PsVTGr)'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Crates Poet. Phil.': {'tlg_id': 'TLG0336', 'names': {'name_authtab': 'Crates Poet. Phil.', 'name_idt': 'Crates Poet. Phil.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Fragmenta et titulus': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Eratosthenes et Eratosthenica Philol.': {'tlg_id': 'TLG0222', 'names': {'name_authtab': 'Eratosthenes et Eratosthenica Philol.', 'name_idt': 'Eratosthenes et Eratosthenica Philol.'}, 'works': {'?De circa exornatione stellarum et etymologia de quibus videntur': ['Page', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Fragmentum Eratosthenicum': ['line'], 'Catasterismi': ['Chapter', 'section', 'line']}}, 'Aphareus Rhet.': {'tlg_id': 'TLG1150', 'names': {'name_authtab': 'Aphareus Rhet.', 'name_idt': 'Aphareus Rhet.'}, 'works': {'Epigramma': ['Epigram', 'line'], 'Tituli': ['line']}}, 'Comica Adespota (Suppl. Com.)': {'tlg_id': 'TLG0659', 'names': {'name_authtab': 'Comica Adespota (Suppl. Com.)', 'name_idt': 'Comica Adespota (Suppl. Com.)'}, 'works': {'Adespota novae comoediae': ['Fragment', 'line'], 'Adespota veteris comoediae': ['Fragment', 'line'], 'Adespota dubia': ['Fragment', 'line'], ' Fragmentum incerti poetae Dorici': ['line'], 'Fragmenta incertae comoediae': ['Fragment', 'line']}}, 'Eustathius Philol., Scr. Eccl.': {'tlg_id': 'TLG4083', 'names': {'name_authtab': 'Eustathius Philol. et Scr. Eccl.', 'name_idt': 'Eustathius Philol., Scr. Eccl.'}, 'works': {'De capta Thessalonica': ['Page', 'line'], 'Commentarii ad Homeri Iliadem': ['Volume', 'page', 'line'], 'Commentarii ad Homeri Odysseam': ['Volume', 'page', 'line'], '7Commentarium in Dionysii periegetae orbis descriptionem': ['Section', 'line']}}, 'Chaeremon Hist., Phil.': {'tlg_id': 'TLG2424', 'names': {'name_authtab': 'Chaeremon Hist. et Phil.', 'name_idt': 'Chaeremon Hist., Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Albinus Phil.': {'tlg_id': 'TLG0693', 'names': {'name_authtab': 'Albinus Phil.', 'name_idt': 'Albinus Phil.'}, 'works': {'Introductio in Platonem': ['Section', 'line'], '2Epitome doctrinae Platonicae sive $*DIDASKALIKO/S&': ['Chapter', 'section', 'line']}}, 'Sappho Lyr.': {'tlg_id': 'TLG0009', 'names': {'name_authtab': 'Sappho Lyr.', 'name_idt': 'Sappho Lyr.'}, 'works': {'Fragmentis addenda': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Apocryphon Ezechiel': {'tlg_id': 'TLG1161', 'names': {'name_authtab': 'Apocryphon Ezechiel', 'name_idt': 'Apocryphon Ezechiel'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Carcinus Trag.': {'tlg_id': 'TLG0310', 'names': {'name_authtab': 'Carcinus Trag.', 'name_idt': 'Carcinus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Theodoridas Epigr.': {'tlg_id': 'TLG1715', 'names': {'name_authtab': 'Theodoridas Epigr.', 'name_idt': 'Theodoridas Epigr.'}, 'works': {'Fragmenta et tituli': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Craterus Hist.': {'tlg_id': 'TLG1288', 'names': {'name_authtab': 'Craterus Hist.', 'name_idt': 'Craterus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, '[Hippothoon] Trag.': {'tlg_id': 'TLG0351', 'names': {'name_authtab': '[Hippothoon] Trag.', 'name_idt': '[Hippothoon] Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Tzetzes Gramm., Poeta': {'tlg_id': 'TLG9022', 'names': {'name_authtab': 'Joannes Tzetzes Gramm. et Poeta', 'name_idt': 'Tzetzes Gramm., Poeta'}, 'works': {'Versus de poematum generibus': ['Section', 'line'], '$Prolegomena de comoedia Aristophanis': ['Section', 'line'], 'De Pleiadibus (excerptum)': ['Page', 'line']}}, 'Pausanias Attic.': {'tlg_id': 'TLG1569', 'names': {'name_authtab': 'Pausanias Attic.', 'name_idt': 'Pausanias Attic.'}, 'works': {'!$*)ATTIKW=N O)NOMA/TWN SUNAGWGH/&': ['', 'Alphabetic letter', 'entry', 'line']}}, 'Numenius Phil.': {'tlg_id': 'TLG1542', 'names': {'name_authtab': 'Numenius Phil.', 'name_idt': 'Numenius Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Idaeus Epic.': {'tlg_id': 'TLG2628', 'names': {'name_authtab': 'Idaeus Epic.', 'name_idt': 'Idaeus Epic.'}, 'works': {'Titulus': ['Fragment', 'line']}}, 'Heliodorus Alchem., Poeta': {'tlg_id': 'TLG4337', 'names': {'name_authtab': 'Heliodorus Alchem. et Poeta', 'name_idt': 'Heliodorus Alchem., Poeta'}, 'works': {'q$*(HLIODW/ROU FILOSO/FOU PRO\\S *QEODO/SION TO\\N ME/GAN BASILE/A PERI\\ TH=S TW=N FILOSO/FWN MUSTIKH=S TE/XNHS DIA\\': ['line']}}, 'Anonymi In Aphthonium Rhet.': {'tlg_id': 'TLG5045', 'names': {'name_authtab': 'Anonymi In Aphthonium Rhet.', 'name_idt': 'Anonymi In Aphthonium Rhet.'}, 'works': {'QIncerti auctoris prolegomena in progymnasmata (olim sub auctore Joanne Doxapatre)': ['Volume', 'page', 'line'], 'Prolegomena in progymnasmata': ['Volume', 'page', 'line']}}, 'Palladius Med.': {'tlg_id': 'TLG0726', 'names': {'name_authtab': 'Palladius Med.', 'name_idt': 'Palladius Med.'}, 'works': {'': ['Palladius Med. !!! AUTHOR NOT FORMAT'], '#Scholia in Hippocratis de fracturis': ['Page', 'line'], 'Synopsis de febribus': ['Chapter', 'section', 'line'], '>Commentarii in Hippocratis librum sextum de morbis popularibus': ['Volume', 'page', 'line'], '$*PERI\\ BRW/SEWS KAI\\ PO/SEWS&': ['line']}}, 'Dinolochus Comic.': {'tlg_id': 'TLG1315', 'names': {'name_authtab': 'Dinolochus Comic.', 'name_idt': 'Dinolochus Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Tituli': ['Fragment', 'line']}}, 'Anonymus Londinensis Med.': {'tlg_id': 'TLG0643', 'names': {'name_authtab': 'Anonymus Londinensis Med.', 'name_idt': 'Anonymus Londinensis Med.'}, 'works': {'4Iatrica (fort. auctore Menone) (Brit. Mus. inv. 137)': ['Section', 'line'], 'Fragmenta': ['Fragment', 'section', 'line']}}, 'Agathocles Hist.': {'tlg_id': 'TLG0688', 'names': {'name_authtab': 'Agathocles Hist.', 'name_idt': 'Agathocles Hist.'}, 'works': {'Fragmentum': ['FGrH fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Olympiodorus Diaconus Scr. Eccl.': {'tlg_id': 'TLG2865', 'names': {'name_authtab': 'Olympiodorus Diaconus Scr. Eccl.', 'name_idt': 'Olympiodorus Diaconus Scr. Eccl.'}, 'works': {'$Commentarii in Jeremiam (in catenis)': ['Volume', 'page', 'line'], 'Commentarii in Ecclesiasten': ['Volume', 'page', 'line'], ')Commentarii in Lamentationes (in catenis)': ['Volume', 'page', 'line'], '.Fragmentum in illud: Gaudete in illa die [Sp.]': ['Volume', 'page', 'line'], 'Commentarii in Job': ['Page', 'line'], '[Contra Severum Antiochenum (fragmentum ap. Pseudo-Anastasium Sinaitam, Contra monophysitas)': ['Volume', 'page', 'line'], '"Commentarii in Baruch (in catenis)': ['Volume', 'page', 'line'], '!Commentarii in Jeremiae epistulam': ['Volume', 'page', 'line']}}, 'Nicomachus Math.': {'tlg_id': 'TLG0358', 'names': {'name_authtab': 'Nicomachus Math.', 'name_idt': 'Nicomachus Math.'}, 'works': {'Excerpta': ['Section', 'line'], 'Harmonicum enchiridion': ['Chapter', 'section', 'line'], 'Theologoumena arithmeticae': ['Page', 'line'], 'Introductio arithmetica': ['Book', 'chapter', 'section', 'line']}}, 'Theodorus Epist.': {'tlg_id': 'TLG3158', 'names': {'name_authtab': 'Theodorus Epist.', 'name_idt': 'Theodorus Epist.'}, 'works': {'Epistulae': ['Epistle', 'line']}}, 'Etymologicum Symeonis': {'tlg_id': 'TLG4311', 'names': {'name_authtab': 'Etymologicum Symeonis', 'name_idt': 'Etymologicum Symeonis'}, 'works': {'-Etymologicum Symeonis ($A)NAKWXH=S_BW/TORES&)': ['Volume', 'page', 'line'], "'Etymologicum Symeonis ($A_A(MWSGE/PWS&)": ['Volume', 'page', 'line']}}, 'Thugenides Comic.': {'tlg_id': 'TLG0514', 'names': {'name_authtab': 'Thugenides Comic.', 'name_idt': 'Thugenides Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Nonnosus Hist.': {'tlg_id': 'TLG4393', 'names': {'name_authtab': 'Nonnosus Hist.', 'name_idt': 'Nonnosus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Scholia In Nicandrum': {'tlg_id': 'TLG5031', 'names': {'name_authtab': 'Scholia In Nicandrum', 'name_idt': 'Scholia In Nicandrum'}, 'works': {'FScholia et glossae in Nicandri theriaca (scholia vetera et recentiora)': ['Vita-scholion', 'line'], 'KScholia et glossae in Nicandri alexipharmaca (scholia vetera et recentiora)': ['Scholion', 'line']}}, 'Aristoxenus Mus.': {'tlg_id': 'TLG0088', 'names': {'name_authtab': 'Aristoxenus Mus.', 'name_idt': 'Aristoxenus Mus.'}, 'works': {'Elementa rhythmica (lib. 2)': ['Page', 'line'], 'Elementa harmonica': ['Page', 'line'], 'Elementa rhythmica (lib. 1)': ['Fragment', 'line'], 'Fragmenta': ['Fragment', 'line', '\x92\x8e¶É', '\x12¶³\x13³³´\x14´´¶\x14´\x15¶\x16¶¶\x16¶³\x18´\x18³\x19³¶\x19\x19\x19³'], 'Fragmentum (P. Oxy. 1.9)': ['Column', 'line', '¶'], '0Fragmenta Parisina (e cod. bibl. imp. Par. 3027)': ['Page', 'line']}}, 'Favorinus Phil., Rhet.': {'tlg_id': 'TLG1377', 'names': {'name_authtab': 'Favorinus Phil. et Rhet.', 'name_idt': 'Favorinus Phil., Rhet.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Athenio Comic.': {'tlg_id': 'TLG0422', 'names': {'name_authtab': 'Athenio Comic.', 'name_idt': 'Athenio Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line']}}, 'Artemidorus Onir.': {'tlg_id': 'TLG0553', 'names': {'name_authtab': 'Artemidorus Onir.', 'name_idt': 'Artemidorus Onir.'}, 'works': {'Onirocriticon': ['Book', 'chapter', 'line']}}, 'Joannes Theol.': {'tlg_id': 'TLG3173', 'names': {'name_authtab': 'Joannes Theol.', 'name_idt': 'Joannes Theol.'}, 'works': {'Narratio': ['Page', 'line'], '9Adversus iconoclastas (olim sub auctore Joanne Damasceno)': ['Volume', 'page', 'line'], 'qDe sacris imaginibus contra Constantinum Cabalinum (sub nomine Joannis Syncelli) (olim sub auctore Joanne Damasce': ['Volume', 'page', 'line']}}, 'Euryphamus Phil.': {'tlg_id': 'TLG1360', 'names': {'name_authtab': 'Euryphamus Phil.', 'name_idt': 'Euryphamus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Appendix Proverbiorum': {'tlg_id': 'TLG9007', 'names': {'name_authtab': 'Appendix Proverbiorum', 'name_idt': 'Appendix Proverbiorum'}, 'works': {'Appendix proverbiorum': ['Centuria', 'section', 'line']}}, 'Butas Eleg.': {'tlg_id': 'TLG2611', 'names': {'name_authtab': 'Butas Eleg.', 'name_idt': 'Butas Eleg.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Xeniades Soph.': {'tlg_id': 'TLG2355', 'names': {'name_authtab': 'Xeniades Soph.', 'name_idt': 'Xeniades Soph.'}, 'works': {'Testimonium': ['Fragment', 'line']}}, 'Musonius Rufus Phil.': {'tlg_id': 'TLG0628', 'names': {'name_authtab': 'Gaius Musonius Rufus Phil.', 'name_idt': 'Musonius Rufus Phil.'}, 'works': {'+Dissertationum a Lucio digestarum reliquiae': ['Discourse', 'line'], '': ['Epistulae spuriae', 'Epistle', 'section', 'line'], 'Fragmentum': ['line'], 'Fragmenta minora': ['Fragment', 'line']}}, 'Aretaeus Med.': {'tlg_id': 'TLG0719', 'names': {'name_authtab': 'Aretaeus Med.', 'name_idt': 'Aretaeus Med.'}, 'works': {'(De curatione acutorum morborum libri duo': ['Book', 'chapter', 'section', 'line'], '.De causis et signis acutorum morborum (lib. 1)': ['Book', 'chapter', 'section', 'line'], '+De curatione diuturnorum morborum libri duo': ['Book', 'chapter', 'section', 'line'], '.De causis et signis acutorum morborum (lib. 2)': ['Book', 'chapter', 'section', 'line', '¤\x92', '\x1a³']}}, 'Critolaus Phil.': {'tlg_id': 'TLG1294', 'names': {'name_authtab': 'Critolaus Phil.', 'name_idt': 'Critolaus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Praxiphanes Phil.': {'tlg_id': 'TLG0089', 'names': {'name_authtab': 'Praxiphanes Phil.', 'name_idt': 'Praxiphanes Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Melisseus Hist.': {'tlg_id': 'TLG2282', 'names': {'name_authtab': 'Melisseus Hist.', 'name_idt': 'Melisseus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Cyrillus Theol.': {'tlg_id': 'TLG4090', 'names': {'name_authtab': 'Cyrillus Theol.', 'name_idt': 'Cyrillus Theol.'}, 'works': {'8Oratio in ascensionem domini (olim sub nomine Athanasii)': ['Page', 'line'], '2Ad Xystum episcopum Romae (epist. 53) (fragmentum)': ['Volume', 'page', 'line'], '9Sermo de obitu sanctorum trium puerorum (fragmenta) [Sp.]': ['Volume', 'page', 'line'], "'Epistula canonica ad Domnum (epist. 78)": ['Page', 'line'], 'Fragmenta homiliae de uno filio': ['Page', 'line'], '%Commentarius in xii prophetas minores': ['Volume', 'page', 'line'], 'RCommentarii in Lucam (homilia 3 et 4) (%6 In occursum domini [homilia diversa 12])': ['Volume', 'page', 'line'], '"Fragmenta in Jeremiam (in catenis)': ['Volume', 'page', 'line'], '3Fragmenta in sancti Pauli epistulam i ad Corinthios': ['Page', 'line'], '"Sermo ad Alexandrinos (fragmentum)': ['Page', 'line'], '(In parabolam vineae (homilia diversa 17)': ['Volume', 'page', 'line'], '#De exitu animi (homilia diversa 14)': ['Volume', 'page', 'line'], 'OCommentarii in Lucam (homilia 51) (%6 In transfigurationem [homilia diversa 9])': ['Volume', 'page', 'line'], ' Ad Optimum episcopum (epist. 80)': ['Volume', 'page', 'line'], ' Expositio in Psalmos (prooemium)': ['line'], '.Homilia habita in ecclesia Cyrini (fragmentum)': ['line'], '(Fragmentum in librum Baruch (in catenis)': ['Volume', 'page', 'line'], 'NSolutiones (fragmentum e tractatu de dogmatum solutione) (e cod. Vat. gr. 447)': ['Page', 'line'], '0Responsiones ad Tiberium diaconum sociosque suos': ['Page', 'line'], '"Fragmenta in Danielem (in catenis)': ['Volume', 'page', 'line'], '7Quaestio ad Cyrillum (e tractatu de dogmatum solutione)': ['Page', 'line'], 'Quod unus sit Christus': ['Aubert page', 'line'], 'Fragmenta duo in Numeros': ['Volume', 'page', 'line'], 'Expositio in Psalmos': ['Volume', 'page', 'line'], ',Epistula ad Photium presbyterum (fragmentum)': ['line'], ',Fragmenta ex libro contra Diodorum Tarsensem': ['Page', 'line'], "'Contra Julianum imperatorem (fragmenta)": ['Volume', 'page', 'line'], '+Fragmentum incertum papyraceum (P. Johnson)': ['Column', 'line'], ' Commentarius in Isaiam prophetam': ['Volume', 'page', 'line'], '!De sancta trinitate dialogi i-vii': ['Aubert page', 'line'], 'Commentarii in Joannem': ['Volume', 'page', 'line'], '#Fragmenta homiliae de die novissima': ['Page', 'line'], 'SFragmenta de translatione reliquiarum martyrum Cyri et Joannis (homilia diversa 18)': ['Volume', 'page', 'line'], '4Fragmentum in sancti Pauli epistulam i ad Corinthios': ['line'], '7Ad episcopos qui sunt in Libya et Pentapoli (epist. 79)': ['Page', 'line'], '$Commentarii in Joannem (additamenta)': ['Fragment', 'line'], '3Fragmenta ex libro ii contra Theodorum Mopsuestenum': ['Page', 'line'], 'De sancta trinitate [Sp.]': ['Volume', 'page', 'line'], '%Commentarii in Matthaeum (in catenis)': ['Fragment', 'line'], 'Homiliarum incertarum fragmenta': ['Page', 'line'], '+Collectio dictorum veteris testamenti [Sp.]': ['Volume', 'page', 'line'], '.Fragmenta in sancti Pauli epistulam ad Romanos': ['Page', 'line'], "'Ad Carthaginiense concilium (epist. 85)": ['Page', 'line'], '/Fragmenta in sancti Pauli epistulam ad Hebraeos': ['Page', 'line'], "'De synagogae defectu (fragmentum) [Sp.]": ['Volume', 'page', 'line'], '-Thesaurus de sancta consubstantiali trinitate': ['Volume', 'page', 'line'], 'Dialogus cum Nestorio [Sp.]': ['Volume', 'page', 'line'], 'Fragmentum in Proverbia': ['Volume', 'page', 'line'], 'Commentarii in Lucam': ['Page', 'line'], '>Thesaurus de sancta et consubstantiali trinitate (additamenta)': ['Page', 'line'], 'Glaphyra in Pentateuchum': ['Volume', 'page', 'line'], 'Fragmenta in libros Regum': ['Volume', 'page', 'line'], 'Fragmentum in Psalmum 2.7': ['line'], '8Fragmenta in Acta apostolorum et in epistulas catholicas': ['Volume', 'page', 'line'], 'Ad Calosyrium (epist. 83)': ['Page', 'line'], '.Epistula ad Theodosium imperatorem (fragmenta)': ['line'], 'MSermo prosphoneticus ad Alexandrinos de fide (homilia diversa 21) (fragmenta)': ['Page', 'line'], '8Encomium in sanctam Mariam deiparam (homilia diversa 11)': ['Volume', 'page', 'line'], '9Epistulae paschales sive Homiliae paschales (epist. 1-30)': ['Volume', 'page', 'line'], '-De adoratione et cultu in spiritu et veritate': ['Volume', 'page', 'line'], 'Contra Julianum (lib. 1-2)': ['Book', 'section', 'line'], 'RContra Julianum imperatorem (fragmentum e libro xiv apud Joannem Thessalonicensem)': ['line'], '-Solutiones (e tractatu de dogmatum solutione)': ['Page', 'line'], 'De incarnatione unigeniti': ['Aubert page', 'line'], ' Fragmenta in Canticum canticorum': ['Volume', 'page', 'line'], '4Fragmenta ex libro iii contra Theodorum Mopsuestenum': ['Page', 'line'], '7Quod homo non deiferus (homilia diversa 20) (fragmenta)': ['Page', 'line'], '$Fragmenta in Ezechielem (in catenis)': ['Volume', 'page', 'line'], '5Adversus eos qui negant offerendum esse pro defunctis': ['Page', 'line'], ')Fragmenta homiliae quod unus est Christus': ['Page', 'line'], '!Commentarii in Lucam (in catenis)': ['Volume', 'page', 'line'], '4Fragmenta in sancti Pauli epistulam ii ad Corinthios': ['Page', 'line'], 'Fragmentum in Psalmum 1.5': ['line']}}, 'Rufus Med.': {'tlg_id': 'TLG0564', 'names': {'name_authtab': 'Rufus Med.', 'name_idt': 'Rufus Med.'}, 'works': {'De satyriasmo et gonorrhoea': ['Section', 'line'], 'De renum et vesicae morbis': ['Chapter', 'section', 'line'], 'Synopsis de pulsibus': ['Chapter', 'section', 'line'], 'De ossibus': ['Section', 'line'], 'Quaestiones medicinales': ['Section', 'line'], 'De partibus corporis humani': ['Section', 'line'], '"De corporis humani appellationibus': ['Section', 'line']}}, 'Possis Hist.': {'tlg_id': 'TLG2333', 'names': {'name_authtab': 'Possis Hist.', 'name_idt': 'Possis Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Titulus': ['Fragment', 'line']}}, 'Tyrtaeus Eleg.': {'tlg_id': 'TLG0266', 'names': {'name_authtab': 'Tyrtaeus Eleg.', 'name_idt': 'Tyrtaeus Eleg.'}, 'works': {'Fragmenta': ['line', 'fragment', 'line']}}, 'Periplus Ponti Euxini': {'tlg_id': 'TLG0075', 'names': {'name_authtab': 'Periplus Ponti Euxini', 'name_idt': 'Periplus Ponti Euxini'}, 'works': {'2Anonymi (Arriani, ut fertur) periplus ponti Euxini': ['Section', 'line']}}, 'Apocalypsis Syriaca Baruchi': {'tlg_id': 'TLG1155', 'names': {'name_authtab': 'Apocalypsis Syriaca Baruchi', 'name_idt': 'Apocalypsis Syriaca Baruchi'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Epimerismi': {'tlg_id': 'TLG5004', 'names': {'name_authtab': 'Epimerismi', 'name_idt': 'Epimerismi'}, 'works': {'!Scholia-epimerismi (%6 D-scholia)': ['\x1fline', 'line'], 'Epimerismi Homerici': ['\x1fline', 'line']}}, 'Atticus Phil.': {'tlg_id': 'TLG1208', 'names': {'name_authtab': 'Atticus Phil.', 'name_idt': 'Atticus Phil.'}, 'works': {'Fragmenta': ['Fragment', 'section', 'line']}}, 'Lyrica Adespota (PMG)': {'tlg_id': 'TLG0297', 'names': {'name_authtab': 'Lyrica Adespota (PMG)', 'name_idt': 'Lyrica Adespota (PMG)'}, 'works': {'Fragmenta': ['Fragment', 'subfragment', 'line']}}, 'Achaeus Trag.': {'tlg_id': 'TLG0309', 'names': {'name_authtab': 'Achaeus Trag.', 'name_idt': 'Achaeus Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Lexicon Artis Grammaticae': {'tlg_id': 'TLG4290', 'names': {'name_authtab': 'Lexicon Artis Grammaticae', 'name_idt': 'Lexicon Artis Grammaticae'}, 'works': {'/Lexicon artis grammaticae (e cod. Coislin. 345)': ['Page', 'line']}}, 'Dinias Hist.': {'tlg_id': 'TLG1314', 'names': {'name_authtab': 'Dinias Hist.', 'name_idt': 'Dinias Hist.'}, 'works': {'Fragmentum': ['FGrH fragment', 'line'], 'Fragmenta': ['Fragment', 'line']}}, 'Anonymi Geographia In Sphaera Intelligenda': {'tlg_id': 'TLG2029', 'names': {'name_authtab': 'Anonymi Geographia In Sphaera Intelligenda', 'name_idt': 'Anonymi Geographia In Sphaera Intelligenda'}, 'works': {';Anonymi summaria ratio geographiae in sphaera intelligendae': ['Section', 'line']}}, 'Chrysocephalus Paroemiogr.': {'tlg_id': 'TLG9008', 'names': {'name_authtab': 'Macarius Chrysocephalus Paroemiogr.', 'name_idt': 'Chrysocephalus Paroemiogr.'}, 'works': {'Paroemiae': ['Centuria', 'section', 'line']}}, 'Hermaeus Hist.': {'tlg_id': 'TLG2426', 'names': {'name_authtab': 'Hermaeus Hist.', 'name_idt': 'Hermaeus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Nicander Hist.': {'tlg_id': 'TLG2474', 'names': {'name_authtab': 'Nicander Hist.', 'name_idt': 'Nicander Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Aristonous Lyr.': {'tlg_id': 'TLG0204', 'names': {'name_authtab': 'Aristonous Lyr.', 'name_idt': 'Aristonous Lyr.'}, 'works': {'Paean in Apollinem': ['line'], 'Hymnus in Vestam': ['line']}}, 'Praxagoras Hist.': {'tlg_id': 'TLG2151', 'names': {'name_authtab': 'Praxagoras Hist.', 'name_idt': 'Praxagoras Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Carcinus Junior Trag.': {'tlg_id': 'TLG0327', 'names': {'name_authtab': 'Carcinus Junior Trag.', 'name_idt': 'Carcinus Junior Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Zopyrus Trag.': {'tlg_id': 'TLG0355', 'names': {'name_authtab': 'Zopyrus Trag.', 'name_idt': 'Zopyrus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Phrynichus Attic.': {'tlg_id': 'TLG1608', 'names': {'name_authtab': 'Phrynichus Attic.', 'name_idt': 'Phrynichus Attic.'}, 'works': {'Eclogae': ['Lexical entry', 'line'], '"Praeparatio sophistica (fragmenta)': ['Fragment', 'line'], 'Eclogae (familia q)': ['Lexical entry', 'line'], 'Eclogae (familia T)': ['Lexical entry', 'line'], ' Praeparatio sophistica (epitome)': ['Page', 'line']}}, 'Stobaeus Anthologus': {'tlg_id': 'TLG2037', 'names': {'name_authtab': 'Joannes Stobaeus Anthologus', 'name_idt': 'Stobaeus Anthologus'}, 'works': {'Anthologium': ['Book', 'chapter', 'section', 'line']}}, 'Epitaphium Abercii': {'tlg_id': 'TLG1353', 'names': {'name_authtab': 'Epitaphium Abercii', 'name_idt': 'Epitaphium Abercii'}, 'works': {'Epitaphium': ['line']}}, 'Scholia In Aelium Aristidem': {'tlg_id': 'TLG5008', 'names': {'name_authtab': 'Scholia In Aelium Aristidem', 'name_idt': 'Scholia In Aelium Aristidem'}, 'works': {',Scholia in Aelium Aristidem (scholia vetera)': ['Treatise', 'Jebb page+line', 'line']}}, 'Moero Epic.': {'tlg_id': 'TLG0220', 'names': {'name_authtab': 'Moero Epic.', 'name_idt': 'Moero Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Asterius Sophista Scr. Eccl.': {'tlg_id': 'TLG2061', 'names': {'name_authtab': 'Asterius Sophista Scr. Eccl.', 'name_idt': 'Asterius Sophista Scr. Eccl.'}, 'works': {'!Fragmenta in Psalmos (in catenis)': ['Fragment', 'line'], '$Commentarii in Psalmos (homiliae 31)': ['Homily', 'section', 'line']}}, 'Eutecnius Soph.': {'tlg_id': 'TLG0752', 'names': {'name_authtab': 'Eutecnius Soph.', 'name_idt': 'Eutecnius Soph.'}, 'works': {' Paraphrasis in Nicandri theriaca': ['Page', 'line'], '%Paraphrasis in Nicandri alexipharmaca': ['Section', 'line'], ':Paraphrasis in Oppiani cynegetica (fort. auctore Eutecnio)': ['Page', 'line'], ':Paraphrasis in Oppiani halieutica (fort. auctore Eutecnio)': ['Book', 'section', 'line']}}, 'Hermias Hist.': {'tlg_id': 'TLG2384', 'names': {'name_authtab': 'Hermias Hist.', 'name_idt': 'Hermias Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Archytas Epic.': {'tlg_id': 'TLG1176', 'names': {'name_authtab': 'Archytas Epic.', 'name_idt': 'Archytas Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Apomasar Astrol.': {'tlg_id': 'TLG4361', 'names': {'name_authtab': 'Apomasar Astrol.', 'name_idt': 'Apomasar Astrol.'}, 'works': {'De revolutionibus nativitatum': ['Page', 'line']}}, 'Zenodotus Trag.': {'tlg_id': 'TLG0354', 'names': {'name_authtab': 'Zenodotus Trag.', 'name_idt': 'Zenodotus Trag.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Prolegomena De Comoedia': {'tlg_id': 'TLG3002', 'names': {'name_authtab': 'Prolegomena De Comoedia', 'name_idt': 'Prolegomena De Comoedia'}, 'works': {'De comoedia': ['line'], 'De histrionibus': ['line'], '3Tractatus Coislinianus (e cod. Paris. Coislin. 120)': ['Section', 'line'], 'De choro': ['line'], 'De metro comico': ['Section', 'line'], '8$E)K TOU= *(HFAISTI/WNOS E)PITOMH\\ TW=N E)NNE/A ME/TRWN&': ['line'], 'De scoliis': ['line'], '!De comoedia (Anonymus Crameri ii)': ['line'], 'De Hellenismo et Atticismo': ['line'], ' De comoedia (Anonymus Crameri i)': ['line'], '3De poeticae generibus (fort. auctore Joanne Tzetza)': ['line'], ',Comoediae veterae nomina poetarum et dramata': ['line'], 'De partibus comoediae': ['line']}}, '[Aristeas] Epic.': {'tlg_id': 'TLG1182', 'names': {'name_authtab': '[Aristeas] Epic.', 'name_idt': '[Aristeas] Epic.'}, 'works': {'Fragmenta epica': ['Fragment', 'line']}}, 'Pherecrates Comic.': {'tlg_id': 'TLG0486', 'names': {'name_authtab': 'Pherecrates Comic.', 'name_idt': 'Pherecrates Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Romanus Melodus Hymnographus': {'tlg_id': 'TLG2881', 'names': {'name_authtab': 'Romanus Melodus Hymnographus', 'name_idt': 'Romanus Melodus Hymnographus'}, 'works': {'Cantica': ['Hymn', 'section', 'line'], 'Cantica dubia': ['Hymn', 'proem-strophe', 'section', 'line'], 'Cantica genuina': ['Hymn', 'proem-strophe', 'section', 'line'], '$*)AKA/QISTOS U(/MNOS& [Dub.]': ['Section', 'line']}}, 'Dionysius Iambus Gramm., Poeta': {'tlg_id': 'TLG2620', 'names': {'name_authtab': 'Dionysius Iambus Gramm. et Poeta', 'name_idt': 'Dionysius Iambus Gramm., Poeta'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Verba In Scripturis De Christo': {'tlg_id': 'TLG4291', 'names': {'name_authtab': 'Verba In Scripturis De Christo', 'name_idt': 'Verba In Scripturis De Christo'}, 'works': {'qVerba in scripturis de Christi natale, epiphaniis et pentecoste (fort. auctore quodam Theodosio monacho) (e codd.': ['', 'Alphabetic letter', 'page', 'line']}}, 'Fragmentum Teliambicum': {'tlg_id': 'TLG1382', 'names': {'name_authtab': 'Fragmentum Teliambicum', 'name_idt': 'Fragmentum Teliambicum'}, 'works': {'%Fragmentum teliambicum (P. Oxy. 1.15)': ['Column', 'line']}}, 'Petrus Scr. Eccl., Theol.': {'tlg_id': 'TLG2962', 'names': {'name_authtab': 'Petrus Scr. Eccl. et Theol.', 'name_idt': 'Petrus Scr. Eccl., Theol.'}, 'works': {'&De paschate ad Tricentium (fragmentum)': ['Page', 'line'], '8Epistula canonica (e $*PERI\\ METANOI/AS&) (canones 1-14)': ['Canon number', 'line']}}, 'Nausiphanes Phil.': {'tlg_id': 'TLG2334', 'names': {'name_authtab': 'Nausiphanes Phil.', 'name_idt': 'Nausiphanes Phil.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Critolaus Hist.': {'tlg_id': 'TLG2552', 'names': {'name_authtab': 'Critolaus Hist.', 'name_idt': 'Critolaus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Naumachius Epic.': {'tlg_id': 'TLG1524', 'names': {'name_authtab': 'Naumachius Epic.', 'name_idt': 'Naumachius Epic.'}, 'works': {'Fragmentum': ['line']}}, 'Damippus Phil.': {'tlg_id': 'TLG1297', 'names': {'name_authtab': 'Damippus Phil.', 'name_idt': 'Damippus Phil.'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Georgius Peccator Poeta': {'tlg_id': 'TLG2971', 'names': {'name_authtab': 'Georgius Peccator Poeta', 'name_idt': 'Georgius Peccator Poeta'}, 'works': {'!Hymnus (olim sub auctore Synesio)': ['line']}}, 'Antiphon Soph.': {'tlg_id': 'TLG1147', 'names': {'name_authtab': 'Antiphon Soph.', 'name_idt': 'Antiphon Soph.'}, 'works': {'Fragmenta': ['\x0ePapyrus number', 'fragment', 'line'], 'Testimonia': ['Fragment', 'line']}}, 'Diotimus Epic.': {'tlg_id': 'TLG0174', 'names': {'name_authtab': 'Diotimus Epic.', 'name_idt': 'Diotimus Epic.'}, 'works': {'Fragmentum et titulus': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line'], 'Fragmentum': ['Fragment', 'line']}}, 'Rhetorica Anonyma': {'tlg_id': 'TLG0598', 'names': {'name_authtab': 'Rhetorica Anonyma', 'name_idt': 'Rhetorica Anonyma'}, 'works': {'#$*PERI\\ TW=N SXHMA/TWN TOU= LO/GOU&': ['Volume', 'page', 'line'], '($*PERI\\ MEGALOPREPEI/AS& (P. Oxy. 3.410)': ['Fragment', 'line'], '$*PERI\\ POIHTIKW=N TRO/PWN&': ['Volume', 'page', 'line'], 'Prolegomena in artem rhetoricam': ['Volume', 'page', 'line'], 'In librum $PERI\\ I)DEW=N&': ['Volume', 'page', 'line'], '*Epitome artis rhetoricae (e cod. Ven. 444)': ['Volume', 'page', 'line'], 'De synecdoche': ['Volume', 'page', 'line'], 'Problemata rhetorica in status': ['Volume', 'page', 'line'], 'Prolegomena de inventione': ['Volume', 'page', 'line'], 'Expositio artis rhetoricae': ['Volume', 'page', 'line'], 'L$*PERI\\ TW=N TESSA/RWN MERW=N TOU= TELEI/OU LO/GOU& (e cod. Paris. gr. 2918)': ['Volume', 'page', 'line'], 'De figuris': ['Volume', 'page', 'line'], '>Excerpta de arte rhetorica (olim sub auctore Joanne Doxapatre)': ['Volume', 'page', 'line'], '$*PERI\\ TRO/PWN&': ['Volume', 'page', 'line'], '"$*SHMEIW=DES EI)S TA\\S EU(RE/SEIS&': ['Volume', 'page', 'line'], '#$*PERI\\ TW=N TOU= LO/GOU SXHMA/TWN&': ['Volume', 'page', 'line'], 'H$*PERI\\ TW=N O)KTW\\ MERW=N TOU= R(HTORIKOU= LO/GOU& (e cod. Paris. 2918)': ['Volume', 'page', 'line'], 'Epitome artis rhetoricae': ['Volume', 'page', 'line'], 'Progymnasmata': ['Volume', 'page', 'line'], 'CProlegomena in artem rhetoricam (olim sub auctore Joanne Doxapatre)': ['Volume', 'page', 'line'], '&Declamatio Paridis ad senatum Troianum': ['Page', 'line']}}, 'Acta Justini Et Septem Sodalium': {'tlg_id': 'TLG0384', 'names': {'name_authtab': 'Acta Justini Et Septem Sodalium', 'name_idt': 'Acta Justini Et Septem Sodalium'}, 'works': {',Acta Justini et septem sodalium (recensio A)': ['Chapter', 'section', 'line'], ',Acta Justini et septem sodalium (recensio B)': ['Chapter', 'section', 'line'], ',Acta Justini et septem sodalium (recensio C)': ['Chapter', 'section', 'line']}}, 'Biottus Comic.': {'tlg_id': 'TLG1792', 'names': {'name_authtab': 'Biottus Comic.', 'name_idt': 'Biottus Comic.'}, 'works': {'Tituli': ['Fragment', 'line']}}, 'Callippus Hist.': {'tlg_id': 'TLG2270', 'names': {'name_authtab': 'Callippus Hist.', 'name_idt': 'Callippus Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Mesomedes Lyr.': {'tlg_id': 'TLG0268', 'names': {'name_authtab': 'Mesomedes Lyr.', 'name_idt': 'Mesomedes Lyr.'}, 'works': {'Fragmenta': ['Fragment', 'line'], 'Epigrammata': ['Book', 'epigram', 'line']}}, 'Duris Hist.': {'tlg_id': 'TLG1339', 'names': {'name_authtab': 'Duris Hist.', 'name_idt': 'Duris Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Evangelium Evae': {'tlg_id': 'TLG1372', 'names': {'name_authtab': 'Evangelium Evae', 'name_idt': 'Evangelium Evae'}, 'works': {'Evangelium Evae': ['line']}}, 'Cyrillus Scr. Eccl.': {'tlg_id': 'TLG2110', 'names': {'name_authtab': 'Cyrillus Scr. Eccl.', 'name_idt': 'Cyrillus Scr. Eccl.'}, 'works': {'2Homilia aquae in vinum conversae (fragmenta) [Sp.]': ['Page', 'line'], ' Homilia in occursum domini [Sp.]': ['Section', 'line'], 'Catecheses ad illuminandos 1-18': ['Catechesis', 'chapter', 'line'], '#Epistula ad Constantium imperatorem': ['Section', 'line'], '.Homilia in paralyticum juxta piscinam jacentem': ['Section', 'line'], 'ESuppositarum Cyrilli et Julii pontificis epistularum compendium [Sp.]': ['Volume', 'chapter', 'line'], ';Homilia in illud: Ego vado ad patrem meum (fragmenta) [Sp.]': ['Page', 'line'], 'FAdditamentum ad catechesis illuminandorum sextae decimae caput tertium': ['Catechesis', 'chapter', 'line'], 'Tituli catechesium': ['Section', 'subsection', 'line'], '/Catechesis ad illuminandos 2 (exemplar alterum)': ['Volume', 'page', 'line'], '9Catechesis ad illuminandos 2 (recensio e cod. Paris. 409)': ['Section', 'line'], 'Mystagogiae 1-5 [Sp.]': ['Catechesis', 'chapter', 'line'], 'Procatechesis': ['Section', 'line']}}, '[Boeo] Epic.': {'tlg_id': 'TLG1228', 'names': {'name_authtab': '[Boeo] Epic.', 'name_idt': '[Boeo] Epic.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Magnes Comic.': {'tlg_id': 'TLG0474', 'names': {'name_authtab': 'Magnes Comic.', 'name_idt': 'Magnes Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Aristocrates Hist.': {'tlg_id': 'TLG1189', 'names': {'name_authtab': 'Aristocrates Hist.', 'name_idt': 'Aristocrates Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Sclerias Trag.': {'tlg_id': 'TLG0353', 'names': {'name_authtab': 'Sclerias Trag.', 'name_idt': 'Sclerias Trag.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Joannes Epiphaniensis Hist.': {'tlg_id': 'TLG4392', 'names': {'name_authtab': 'Joannes Epiphaniensis Hist.', 'name_idt': 'Joannes Epiphaniensis Hist.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}, 'Hymni Anonymi': {'tlg_id': 'TLG0742', 'names': {'name_authtab': 'Hymni Anonymi', 'name_idt': 'Hymni Anonymi'}, 'works': {'': ['Hymnus in Hecatam', 'line'], ')Hymnus in Fortunam (P. Berol. Mus. 9734v)': ['line'], 'Hymnus in Jovem': ['line'], '$Paean in Apollinem (P. Berol. 6870v)': ['line'], 'Hymnus in omnes deos': ['line'], '$Carminis de mundi creatione exordium': ['line'], 'Christianorum carmina': ['Fragment', 'line'], 'Hymnus in Apollinem': ['line'], '!Carmen mystarum (P. Argent. 1313)': ['line'], '+Descensus ad inferos (Brit. Mus. inv. 1192)': ['line'], ')Hymnus in Dionysum (P. Ross. Georg. 1.11)': ['line'], '$Hymnus in Sarapidem (P. Schubart 12)': ['line'], 'Hymnus in Asclepium': ['line'], '&Aretalogia Sarapidis (P. Berol. 10525)': ['line'], ' Hymni e papyris magicis collecti': ['Fragment', 'line'], 'Naassenorum carmina': ['Fragment', 'line'], 'Hymnus in Isim (PSI 7.844)': ['Fragment', 'line']}}, 'Dosiadas Hist.': {'tlg_id': 'TLG1338', 'names': {'name_authtab': 'Dosiadas Hist.', 'name_idt': 'Dosiadas Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Septem Sapientes Phil.': {'tlg_id': 'TLG1667', 'names': {'name_authtab': 'Septem Sapientes Phil.', 'name_idt': 'Septem Sapientes Phil.'}, 'works': {'.Praecepta (sub auctore Sosiade) (ap. Stobaeum)': ['Page', 'line'], 'Sententiae': ['Page', 'line'], '?Apophthegmata (ex collectione Demetrii Phalerei) (ap. Stobaeum)': ['Fragment', 'line'], 'Testimonia': ['Fragment', 'line'], '%Apophthegmata (ap. auctores diversos)': ['Division', 'apophthegm', 'line']}}, 'Apollonius Med.': {'tlg_id': 'TLG0660', 'names': {'name_authtab': 'Apollonius Med.', 'name_idt': 'Apollonius Med.'}, 'works': {'(In Hippocratis de articulis commentarius': ['Section', 'line']}}, 'Anonymus Ad Avircium Marcellum Contra Cataphrygas': {'tlg_id': 'TLG1131', 'names': {'name_authtab': 'Anonymus Ad Avircium Marcellum Contra Cataphrygas', 'name_idt': 'Anonymus Ad Avircium Marcellum Contra Cataphrygas'}, 'works': {'(Ad Avircium Marcellum contra Cataphrygas': ['Fragment', 'line']}}, 'Dionysius Comic.': {'tlg_id': 'TLG0445', 'names': {'name_authtab': 'Dionysius Comic.', 'name_idt': 'Dionysius Comic.'}, 'works': {'Fragmentum': ['Play', 'fragment', 'line'], 'Fragmenta': ['Play', 'fragment', 'line']}}, 'Rufus Soph.': {'tlg_id': 'TLG0606', 'names': {'name_authtab': 'Rufus Soph.', 'name_idt': 'Rufus Soph.'}, 'works': {'Ars rhetorica': ['Page', 'line']}}, 'Zonaras Lexicogr.': {'tlg_id': 'TLG3136', 'names': {'name_authtab': 'Pseudo-Zonaras Lexicogr.', 'name_idt': 'Zonaras Lexicogr.'}, 'works': {'Lexicon': ['', 'Alphabetic letter', 'page', 'line']}}, 'Meletus Junior Trag.': {'tlg_id': 'TLG1848', 'names': {'name_authtab': 'Meletus Junior Trag.', 'name_idt': 'Meletus Junior Trag.'}, 'works': {'Titulus': ['line']}}, 'Cratylus Phil.': {'tlg_id': 'TLG2291', 'names': {'name_authtab': 'Cratylus Phil.', 'name_idt': 'Cratylus Phil.'}, 'works': {'Testimonia': ['Fragment', 'line']}}, 'Daimachus Hist.': {'tlg_id': 'TLG1908', 'names': {'name_authtab': 'Daimachus Hist.', 'name_idt': 'Daimachus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Epitaphium Pectorii': {'tlg_id': 'TLG1570', 'names': {'name_authtab': 'Epitaphium Pectorii', 'name_idt': 'Epitaphium Pectorii'}, 'works': {'Epitaphium': ['line']}}, 'Theodorus Trag.': {'tlg_id': 'TLG0611', 'names': {'name_authtab': 'Theodorus Trag.', 'name_idt': 'Theodorus Trag.'}, 'works': {'Tituli': ['line']}}, 'Socrates Scholasticus Hist.': {'tlg_id': 'TLG2057', 'names': {'name_authtab': 'Socrates Scholasticus Hist.', 'name_idt': 'Socrates Scholasticus Hist.'}, 'works': {'Historia ecclesiastica': ['Book', 'chapter', 'line']}}, 'Paradoxographus Palatinus': {'tlg_id': 'TLG0581', 'names': {'name_authtab': 'Paradoxographus Palatinus', 'name_idt': 'Paradoxographus Palatinus'}, 'works': {'Admiranda': ['Section', 'line']}}, 'Cleobulina Scriptor Aenigmatum': {'tlg_id': 'TLG0244', 'names': {'name_authtab': 'Cleobulina Scriptor Aenigmatum', 'name_idt': 'Cleobulina Scriptor Aenigmatum'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Pytheas Perieg.': {'tlg_id': 'TLG1650', 'names': {'name_authtab': 'Pytheas Perieg.', 'name_idt': 'Pytheas Perieg.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Acta Pauli': {'tlg_id': 'TLG0388', 'names': {'name_authtab': 'Acta Pauli', 'name_idt': 'Acta Pauli'}, 'works': {'.Pauli et Corinthiorum epistulae (P. Bodmer 10)': ['Codex page', 'line'], ':Acta Pauli et Theclae (partis finalis recensio e codice G)': ['line'], 'Acta Pauli et Theclae': ['Section', 'line'], 'Acta Pauli': ['Fragment', 'line'], 'Martyrium Pauli': ['Section', 'line']}}, 'Longinus Phil., Rhet.': {'tlg_id': 'TLG2178', 'names': {'name_authtab': 'Cassius Longinus Phil. et Rhet.', 'name_idt': 'Longinus Phil., Rhet.'}, 'works': {'Excerpta': ['Section', 'line'], 'Fragmenta': ['Treatise', 'section', 'line'], 'Ars rhetorica': ['Walz page', 'line']}}, 'Liber Jubilaeorum': {'tlg_id': 'TLG1464', 'names': {'name_authtab': 'Liber Jubilaeorum', 'name_idt': 'Liber Jubilaeorum'}, 'works': {'Fragmenta': ['Page', 'line']}}, 'Cananus Hist.': {'tlg_id': 'TLG3144', 'names': {'name_authtab': 'Joannes Cananus Hist.', 'name_idt': 'Cananus Hist.'}, 'works': {'De Constantinopoli oppugnata': ['line']}}, 'Arimnestus Phil.': {'tlg_id': 'TLG1179', 'names': {'name_authtab': 'Arimnestus Phil.', 'name_idt': 'Arimnestus Phil.'}, 'works': {'Fragmentum': ['Page', 'line']}}, 'Amphis Comic.': {'tlg_id': 'TLG0404', 'names': {'name_authtab': 'Amphis Comic.', 'name_idt': 'Amphis Comic.'}, 'works': {'Fragmenta': ['Play', 'fragment', 'line']}}, 'Menippus Geogr.': {'tlg_id': 'TLG0079', 'names': {'name_authtab': 'Menippus Geogr.', 'name_idt': 'Menippus Geogr.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Meropis': {'tlg_id': 'TLG1021', 'names': {'name_authtab': 'Meropis', 'name_idt': 'Meropis'}, 'works': {'4Meropis (fragmenta) (P. Ko+ln 3.126 [inv. 5604, 17])': ['Fragment', 'line']}}, 'Archigenes Med.': {'tlg_id': 'TLG0661', 'names': {'name_authtab': 'Archigenes Med.', 'name_idt': 'Archigenes Med.'}, 'works': {'': ['Fragmenta inedita', 'Page', 'line'], 'Fragmenta': ['Page', 'line']}}, 'Phanodicus Hist.': {'tlg_id': 'TLG2278', 'names': {'name_authtab': 'Phanodicus Hist.', 'name_idt': 'Phanodicus Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Paeon Hist.': {'tlg_id': 'TLG2512', 'names': {'name_authtab': 'Paeon Hist.', 'name_idt': 'Paeon Hist.'}, 'works': {'Fragmenta': ['Fragment', 'line']}}, 'Silenus Trag.': {'tlg_id': 'TLG0603', 'names': {'name_authtab': 'Silenus Trag.', 'name_idt': 'Silenus Trag.'}, 'works': {'Titulus': ['line']}}, 'Lysias Orat.': {'tlg_id': 'TLG0540', 'names': {'name_authtab': 'Lysias Orat.', 'name_idt': 'Lysias Orat.'}, 'works': {'$*KATA\\ TW=N SITOPWLW=N&': ['Section', 'line'], '[2$*(UPE\\R TOU= A)DUNA/TOU&]2': ['Section', 'line'], 'In Agoratum': ['Section', 'line'], 'In Nicomachum': ['Section', 'line'], 'In Alcibiadem 1': ['Section', 'line'], 'Olympiacus': ['Section', 'line'], 'In Diogitonem': ['Section', 'line'], ')[2$*PERI\\ TH=S *EU)A/NDROU DOKIMASI/AS&]2': ['Section', 'line'], 'Contra Simonem': ['Section', 'line'], 'In Eratosthenem': ['Section', 'line'], 'In Pancleonem': ['Section', 'line'], 'D$*PERI\\ TH=S DHMEU/SEWS [2TW=N]2 TOU= *NIKI/OU A)DELFOU= E)PI/LOGOS&': ['Section', 'line'], 'In Andocidem [Sp.]': ['Section', 'line'], 'De caede Eratosthenis': ['Section', 'line'], '=$*(UPE\\R TW=N *)ARISTOFA/NOUS XRHMA/TWN, PRO\\S TO\\ DHMO/SION&': ['Section', 'line'], 'Fragmenta': ['Page', 'line'], 'In Alcibiadem 2': ['Section', 'line'], '"[$*DH/MOU KATALU/SEWS] A)POLOGI/A&': ['Section', 'line'], 'In Epicratem': ['Section', 'line'], 'In Theomnestum 2 [Sp.]': ['Section', 'line', '\x8c', 'S\x12'], '7$*PRO\\S TO\\ DHMO/SION PERI\\ TW=N *)ERA/TWNOS XRHMA/TWN&': ['Section', 'line'], 'In Theomnestum 1': ['Section', 'line', ''], '9$*KATHGORI/A PRO\\S TOU\\S SUNOUSIASTA\\S KAKOLOGIW=N& [Sp.]': ['Section', 'line'], '&$*)APOLOGI/A DWRODOKI/AS A)PARA/SHMOS&': ['Section', 'line'], 'Pro Mantitheo': ['Section', 'line'], 'J$*PERI\\ TRAU/MATOS E)K PRONOI/AS U(PE\\R OU(= KAI\\ PRO\\S O(\\N [2A)/DHLON]2&': ['Section', 'line'], 'Epitaphius [Sp.]': ['Section', 'line'], '@$*PERI\\ TOU= MH\\ KATALU=SAI TH\\N PA/TRION POLITEI/AN *)AQH/NHSI&': ['Section', 'line'], 'In Philonem': ['Section', 'line'], 'Pro Polystrato [Sp.]': ['Section', 'line'], 'Areopagiticus': ['Section', 'line'], 'In Philocratem': ['Section', 'line'], 'Pro Callia': ['Section', 'line'], 'In Ergoclem': ['Section', 'line'], 'Pro milite [Sp.]': ['Section', 'line']}}, 'Straton Comic.': {'tlg_id': 'TLG0507', 'names': {'name_authtab': 'Straton Comic.', 'name_idt': 'Straton Comic.'}, 'works': {'Fragmentum': ['Fragment', 'line']}}}
| 62,529.125
| 620,736
| 0.615481
| 123,534
| 1,000,466
| 4.96248
| 0.094363
| 0.023986
| 0.046275
| 0.019648
| 0.455584
| 0.372814
| 0.208044
| 0.151357
| 0.110785
| 0.089284
| 0
| 0.085332
| 0.104258
| 1,000,466
| 15
| 620,737
| 66,697.733333
| 0.595362
| 0.172488
| 0
| 0
| 0
| 95
| 0.66735
| 0.010365
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| false
| 1
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 7
|
9067b43e4bfb271a55c7520042571fd883b6893b
| 4,871
|
py
|
Python
|
test/unit/metrics/test_disparities.py
|
alliesaizan/fairlearn
|
846ce6cdaf188e32a545d3f90197515a4a5bc471
|
[
"MIT"
] | 1,142
|
2019-10-14T18:05:46.000Z
|
2022-03-30T06:56:54.000Z
|
test/unit/metrics/test_disparities.py
|
alliesaizan/fairlearn
|
846ce6cdaf188e32a545d3f90197515a4a5bc471
|
[
"MIT"
] | 623
|
2019-10-14T17:11:25.000Z
|
2022-03-31T17:46:54.000Z
|
test/unit/metrics/test_disparities.py
|
alliesaizan/fairlearn
|
846ce6cdaf188e32a545d3f90197515a4a5bc471
|
[
"MIT"
] | 299
|
2019-10-15T00:09:53.000Z
|
2022-03-30T12:35:27.000Z
|
# Copyright (c) Microsoft Corporation and Fairlearn contributors.
# Licensed under the MIT License.
import pytest
from fairlearn.metrics import MetricFrame
from fairlearn.metrics import selection_rate, true_positive_rate, false_positive_rate
from fairlearn.metrics import (
demographic_parity_difference,
demographic_parity_ratio,
equalized_odds_difference,
equalized_odds_ratio
)
from .data_for_test import y_t, y_p, s_w, g_1
_aggregate_methods = ['between_groups', 'to_overall']
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_demographic_parity_difference(agg_method):
actual = demographic_parity_difference(y_t, y_p, sensitive_features=g_1, method=agg_method)
gm = MetricFrame(metrics=selection_rate, y_true=y_t, y_pred=y_p, sensitive_features=g_1)
assert actual == gm.difference(method=agg_method)
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_demographic_parity_difference_weighted(agg_method):
actual = demographic_parity_difference(y_t, y_p,
sensitive_features=g_1,
sample_weight=s_w,
method=agg_method)
gm = MetricFrame(metrics=selection_rate, y_true=y_t, y_pred=y_p,
sensitive_features=g_1,
sample_params={'sample_weight': s_w})
assert actual == gm.difference(method=agg_method)
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_demographic_parity_ratio(agg_method):
actual = demographic_parity_ratio(y_t, y_p,
sensitive_features=g_1,
method=agg_method)
gm = MetricFrame(metrics=selection_rate, y_true=y_t, y_pred=y_p, sensitive_features=g_1)
assert actual == gm.ratio(method=agg_method)
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_demographic_parity_ratio_weighted(agg_method):
actual = demographic_parity_ratio(y_t, y_p,
sensitive_features=g_1,
sample_weight=s_w,
method=agg_method)
gm = MetricFrame(metrics=selection_rate, y_true=y_t, y_pred=y_p,
sensitive_features=g_1,
sample_params={'sample_weight': s_w})
assert actual == gm.ratio(method=agg_method)
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_equalized_odds_difference(agg_method):
actual = equalized_odds_difference(y_t, y_p,
sensitive_features=g_1,
method=agg_method)
metrics = {'tpr': true_positive_rate, 'fpr': false_positive_rate}
gm = MetricFrame(metrics=metrics, y_true=y_t, y_pred=y_p, sensitive_features=g_1)
diffs = gm.difference(method=agg_method)
assert actual == diffs.max()
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_equalized_odds_difference_weighted(agg_method):
actual = equalized_odds_difference(y_t, y_p,
sensitive_features=g_1,
method=agg_method,
sample_weight=s_w)
metrics = {'tpr': true_positive_rate, 'fpr': false_positive_rate}
sw = {'sample_weight': s_w}
sp = {'tpr': sw, 'fpr': sw}
gm = MetricFrame(metrics=metrics,
y_true=y_t,
y_pred=y_p,
sensitive_features=g_1, sample_params=sp)
diffs = gm.difference(method=agg_method)
assert actual == diffs.max()
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_equalized_odds_ratio(agg_method):
actual = equalized_odds_ratio(y_t, y_p,
method=agg_method,
sensitive_features=g_1)
metrics = {'tpr': true_positive_rate, 'fpr': false_positive_rate}
gm = MetricFrame(metrics=metrics, y_true=y_t, y_pred=y_p, sensitive_features=g_1)
ratios = gm.ratio(method=agg_method)
assert actual == ratios.min()
@pytest.mark.parametrize("agg_method", _aggregate_methods)
def test_equalized_odds_ratio_weighted(agg_method):
actual = equalized_odds_ratio(y_t, y_p,
method=agg_method,
sensitive_features=g_1,
sample_weight=s_w)
metrics = {'tpr': true_positive_rate, 'fpr': false_positive_rate}
sw = {'sample_weight': s_w}
sp = {'tpr': sw, 'fpr': sw}
gm = MetricFrame(metrics=metrics,
y_true=y_t,
y_pred=y_p,
sensitive_features=g_1, sample_params=sp)
ratios = gm.ratio(method=agg_method)
assert actual == ratios.min()
| 37.469231
| 95
| 0.633751
| 592
| 4,871
| 4.817568
| 0.113176
| 0.100982
| 0.017882
| 0.106592
| 0.865358
| 0.865358
| 0.854137
| 0.854137
| 0.854137
| 0.854137
| 0
| 0.004845
| 0.279614
| 4,871
| 129
| 96
| 37.75969
| 0.807922
| 0.019503
| 0
| 0.758242
| 0
| 0
| 0.040226
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 1
| 0.087912
| false
| 0
| 0.054945
| 0
| 0.142857
| 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
|
2948ec77c269bb83d42e05effca7a6a03bea7a65
| 16,229
|
py
|
Python
|
AP3D/models/NonLocal.py
|
xunhen/oneflow_vision_model
|
1774b04546034794af24f7b393717e19f11eb019
|
[
"Apache-2.0"
] | 9
|
2020-11-10T07:08:07.000Z
|
2022-01-25T12:10:57.000Z
|
AP3D/models/NonLocal.py
|
xunhen/oneflow_vision_model
|
1774b04546034794af24f7b393717e19f11eb019
|
[
"Apache-2.0"
] | 2
|
2021-01-14T06:39:43.000Z
|
2021-07-12T02:34:13.000Z
|
AP3D/models/NonLocal.py
|
xunhen/oneflow_vision_model
|
1774b04546034794af24f7b393717e19f11eb019
|
[
"Apache-2.0"
] | 13
|
2021-01-09T11:12:58.000Z
|
2021-11-04T10:12:15.000Z
|
import oneflow as flow
import oneflow.nn as nn
import datetime
def _get_kernel_initializer():
return flow.variance_scaling_initializer(distribution="random_normal", data_format="NCDHW")
def _get_regularizer():
return flow.regularizers.l2(0.00005)
def _get_bias_initializer():
return flow.zeros_initializer()
def conv3d_layer(
name,
inputs,
filters,
kernel_size=3,
strides=1,
padding="VALID",
data_format="NCDHW",
dilation_rate=1,
activation=None,
use_bias=False,
groups=1,
weight_initializer=_get_kernel_initializer(),
bias_initializer=_get_bias_initializer(),
weight_regularizer=_get_regularizer(),
bias_regularizer=_get_regularizer(),
trainable=True
):
if isinstance(kernel_size,int):
kernel_size_1=kernel_size
kernel_size_2 = kernel_size
kernel_size_3 = kernel_size
if isinstance(kernel_size,list):
kernel_size_1=kernel_size[0]
kernel_size_2=kernel_size[1]
kernel_size_3=kernel_size[2]
weight_shape=(filters,inputs.shape[1]//groups,kernel_size_1,kernel_size_2,kernel_size_3)
weight = flow.get_variable(
name + "-weight",
shape=weight_shape,
dtype=inputs.dtype,
initializer=weight_initializer,
regularizer=weight_regularizer,
trainable=trainable
)
output=flow.nn.conv3d(
inputs, weight, strides, padding, data_format, dilation_rate, groups, name=name
)
if use_bias:
bias = flow.get_variable(
name + "-bias",
shape=(filters,),
dtype=inputs.dtype,
initializer=bias_initializer,
regularizer=bias_regularizer,
)
output = flow.nn.bias_add(output, bias, data_format)
if activation is not None:
if activation == "Relu":
output = flow.nn.relu(output)
else:
raise NotImplementedError
return output
def conv2d_layer(
name,
inputs,
filters,
kernel_size=3,
strides=1,
padding="VALID",
data_format="NCHW",
dilation_rate=1,
activation="Relu",
use_bias=False,
groups=1,
weight_initializer=_get_kernel_initializer(),
bias_initializer=_get_bias_initializer(),
weight_regularizer=_get_regularizer(),
bias_regularizer=_get_regularizer(),
trainable=True
):
if isinstance(kernel_size, int):
kernel_size_1 = kernel_size
kernel_size_2 = kernel_size
if isinstance(kernel_size, list):
kernel_size_1 = kernel_size[0]
kernel_size_2 = kernel_size[1]
weight_shape = (filters, inputs.shape[1]//groups, kernel_size_1, kernel_size_2)
weight = flow.get_variable(
name + "-weight",
shape=weight_shape,
dtype=inputs.dtype,
initializer=weight_initializer,
regularizer=weight_regularizer,
trainable=trainable
)
output = flow.nn.conv2d(
inputs, weight, strides, padding, data_format, dilation_rate, groups, name=name
)
if use_bias:
bias = flow.get_variable(
name + "-bias",
shape=(filters,),
dtype=inputs.dtype,
initializer=bias_initializer,
regularizer=bias_regularizer,
)
output = flow.nn.bias_add(output, bias, data_format)
if activation is not None:
if activation == "Relu":
output = flow.nn.relu(output)
else:
raise NotImplementedError
return output
def conv1d_layer(
name,
inputs,
filters,
kernel_size=3,
strides=1,
padding="VALID",
data_format="NCW",
dilation_rate=1,
activation="Relu",
use_bias=False,
groups=1,
weight_initializer=_get_kernel_initializer(),
bias_initializer=_get_bias_initializer(),
weight_regularizer=_get_regularizer(),
bias_regularizer=_get_regularizer(),
trainable=True
):
if isinstance(kernel_size, int):
kernel_size_1 = kernel_size
if isinstance(kernel_size, list):
kernel_size_1 = kernel_size[0]
weight_shape = (filters, inputs.shape[1]//groups,kernel_size_1)
weight = flow.get_variable(
name + "-weight",
shape=weight_shape,
dtype=inputs.dtype,
initializer=weight_initializer,
regularizer=weight_regularizer,
trainable=trainable
)
output = flow.nn.conv1d(
inputs, weight, strides, padding, data_format, dilation_rate, groups, name=name
)
if use_bias:
bias = flow.get_variable(
name + "-bias",
shape=(filters,),
dtype=inputs.dtype,
initializer=bias_initializer,
regularizer=bias_regularizer,
)
output = flow.nn.bias_add(output, bias, data_format)
if activation is not None:
if activation == "Relu":
output = flow.nn.relu(output)
else:
raise NotImplementedError
return output
def conv3d_layer_with_bn(
name,
inputs,
filters,
kernel_size=3,
strides=1,
padding="VALID",
data_format="NCDHW",
dilation_rate=1,
activation=None,
use_bias=False,
groups=1,
weight_initializer=_get_kernel_initializer(),
bias_initializer=_get_bias_initializer(),
weight_regularizer=_get_regularizer(),
bias_regularizer=_get_regularizer(),
use_bn=True,
trainable=True
):
output = conv3d_layer(name=name,
inputs=inputs,
filters=filters,
kernel_size=kernel_size,
strides=strides,
padding=padding,
data_format=data_format,
dilation_rate=dilation_rate,
activation=activation,
use_bias=use_bias,
groups=groups,
weight_initializer=weight_initializer,
bias_initializer=bias_initializer,
weight_regularizer=weight_regularizer,
bias_regularizer=bias_regularizer)
if use_bn:
tempname=datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S.%f')
output = flow.layers.batch_normalization(inputs=output,
axis=1,
momentum=0.997,
epsilon=1.001e-5,
center=True,
scale=True,
trainable=trainable,
name=name +"_"+tempname +"_bn")
return output
def conv2d_layer_with_bn(
name,
inputs,
filters,
kernel_size=3,
strides=1,
padding="VALID",
data_format="NCHW",
dilation_rate=1,
activation="Relu",
use_bias=False,
groups=1,
weight_initializer=_get_kernel_initializer(),
bias_initializer=_get_bias_initializer(),
weight_regularizer=_get_regularizer(),
bias_regularizer=_get_regularizer(),
use_bn=True,
trainable=True
):
output = conv2d_layer(name=name,
inputs=inputs,
filters=filters,
kernel_size=kernel_size,
strides=strides,
padding=padding,
data_format=data_format,
dilation_rate=dilation_rate,
activation=activation,
use_bias=use_bias,
groups=groups,
weight_initializer=weight_initializer,
bias_initializer=bias_initializer,
weight_regularizer=weight_regularizer,
bias_regularizer=bias_regularizer)
if use_bn:
output = flow.layers.batch_normalization(inputs=output,
axis=1,
momentum=0.997,
epsilon=1.001e-5,
center=True,
scale=True,
trainable=trainable,
name=name + "_bn")
return output
def conv1d_layer_with_bn(
name,
inputs,
filters,
kernel_size=3,
strides=1,
padding="VALID",
data_format="NCW",
dilation_rate=1,
activation="Relu",
use_bias=False,
groups=1,
weight_initializer=_get_kernel_initializer(),
bias_initializer=_get_bias_initializer(),
weight_regularizer=_get_regularizer(),
bias_regularizer=_get_regularizer(),
use_bn=True,
trainable=True
):
output = conv1d_layer(name=name,
inputs=inputs,
filters=filters,
kernel_size=kernel_size,
strides=strides,
padding=padding,
data_format=data_format,
dilation_rate=dilation_rate,
activation=activation,
use_bias=use_bias,
groups=groups,
weight_initializer=weight_initializer,
bias_initializer=bias_initializer,
weight_regularizer=weight_regularizer,
bias_regularizer=bias_regularizer)
if use_bn:
output = flow.layers.batch_normalization(inputs=output,
axis=1,
momentum=0.997,
epsilon=1.001e-5,
center=True,
scale=True,
trainable=trainable,
name=name + "_bn")
return output
class NonLocalBlockND(object):
def __init__(self, in_channels, inter_channels=None, dimension=3, sub_sample=True, bn_layer=True,trainable=True,time=0):
super(NonLocalBlockND,self).__init__()
assert dimension in [1, 2, 3]
self.dimension = dimension
self.sub_sample = sub_sample
self.in_channels = in_channels
self.inter_channels = inter_channels
self.bn_layer=bn_layer
if self.inter_channels is None:
self.inter_channels = in_channels // 2
if self.inter_channels == 0:
self.inter_channels = 1
self.trainable=trainable
self.time=str(time)
def build_maxpool(self,dimension,inputs):
if dimension==3:
return nn.max_pool3d(
input=inputs,
ksize=[1,2,2],
data_format='NCDHW',
strides=None,
padding="VALID"
)
elif dimension==2:
return nn.max_pool2d(
input=inputs,
kszie=2,
data_format="NCHW",
strides=None,
padding="VALID"
)
else:
return nn.max_pool1d(
input=inputs,
kszie=2,
data_format="NCW",
strides=None,
padding="VALID"
)
def build_conv(self,dimension,name,inputs,bn=False,trainable=True):
init=flow.random_normal_initializer(mean=0, stddev=1)
#init=flow.kaiming_initializer(shape=inputs.shape,mode="fan_out",nonlinearity="relu")
if dimension==3:
if bn==False:
return conv3d_layer(
"conv3d_layer_"+name+"_"+self.time,inputs,self.inter_channels,
kernel_size=1, strides=1, use_bias=True,weight_initializer=init,
trainable=trainable
)
else:
return conv3d_layer_with_bn(
"conv3d_layer_"+name+"_"+self.time,inputs,self.in_channels,
kernel_size=1,strides=1,use_bias=True,weight_initializer=init,
trainable=trainable
)
elif dimension==2:
if bn==False:
return conv2d_layer(
"conv2d_layer_"+name+"_"+self.time,inputs,self.inter_channels,
kernel_size=1, strides=1, use_bias=True,weight_initializer=init,
trainable=trainable
)
else:
return conv2d_layer_with_bn(
"conv2d_layer_"+name+"_"+self.time,inputs,self.in_channels,
kernel_size=1,strides=1,use_bias=True,weight_initializer=init,
trainable=trainable
)
else:
if bn==False:
return conv1d_layer(
"conv1d_layer_"+name+"_"+self.time,inputs,self.inter_channels,
kernel_size=1, strides=1, use_bias=True,weight_initializer=init,
trainable=trainable
)
else:
return conv1d_layer_with_bn(
"conv1d_layer_"+name+"_"+self.time,inputs,self.in_channels,
kernel_size=1,strides=1,use_bias=True,weight_initializer=init,
trainable=trainable
)
def build_network(self,inputs):
batch_size=inputs.shape[0]
g=self.build_conv(self.dimension,"g",inputs,bn=False,trainable=self.trainable)
g=self.build_maxpool(self.dimension,g)
g_inputs=flow.reshape(g,shape=[batch_size, self.inter_channels, -1])
g_inputs=flow.transpose(g_inputs,perm=[0,2,1])
theta=self.build_conv(self.dimension,"theta",inputs,bn=False,trainable=self.trainable)
theta_inputs=flow.reshape(theta,shape=[batch_size, self.inter_channels, -1])
theta_inputs=flow.transpose(theta_inputs,perm=[0,2,1])
phi=self.build_conv(self.dimension,"phi",inputs,bn=False,trainable=self.trainable)
phi=self.build_maxpool(self.dimension,phi)
phi_inputs=flow.reshape(phi,shape=[batch_size, self.inter_channels, -1])
f=flow.linalg.matmul(theta_inputs,phi_inputs)
f=nn.softmax(f,axis=-1)
y=flow.linalg.matmul(f,g_inputs)
y=flow.transpose(y,perm=[0,2,1])
y=flow.reshape(y,shape=[batch_size, self.inter_channels, *inputs.shape[2:]])
W=self.build_conv(self.dimension,"W",y,bn=self.bn_layer,trainable=self.trainable)
output=W+inputs
return output
class NonLocalBlock1D(NonLocalBlockND):
def __init__(self, in_channels, inter_channels=None, sub_sample=True, bn_layer=True,trainable=True):
super(NonLocalBlock1D, self).__init__(in_channels,
inter_channels=inter_channels,
dimension=1, sub_sample=sub_sample,
bn_layer=bn_layer,trainable=trainable)
class NonLocalBlock2D(NonLocalBlockND):
def __init__(self, in_channels, inter_channels=None, sub_sample=True, bn_layer=True,trainable=True):
super(NonLocalBlock2D, self).__init__(in_channels,
inter_channels=inter_channels,
dimension=2, sub_sample=sub_sample,
bn_layer=bn_layer,trainable=trainable)
class NonLocalBlock3D(NonLocalBlockND):
def __init__(self, in_channels, inter_channels=None, sub_sample=True, bn_layer=True,trainable=True,time=0):
super(NonLocalBlock3D, self).__init__(in_channels,
inter_channels=inter_channels,
dimension=3, sub_sample=sub_sample,
bn_layer=bn_layer,trainable=trainable,time=time)
| 35.589912
| 124
| 0.554933
| 1,624
| 16,229
| 5.259236
| 0.083744
| 0.063224
| 0.021894
| 0.03372
| 0.800609
| 0.768762
| 0.746517
| 0.731062
| 0.726613
| 0.707997
| 0
| 0.016447
| 0.359357
| 16,229
| 455
| 125
| 35.668132
| 0.80504
| 0.005176
| 0
| 0.731884
| 0
| 0
| 0.017778
| 0
| 0
| 0
| 0
| 0
| 0.002415
| 1
| 0.038647
| false
| 0
| 0.007246
| 0.007246
| 0.101449
| 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
|
29614e1d3205718f0cad4334578f17bdf78db5e0
| 99
|
py
|
Python
|
test/regression/features/subscript/subscript_list.py
|
ppelleti/berp
|
30925288376a6464695341445688be64ac6b2600
|
[
"BSD-3-Clause"
] | 137
|
2015-02-13T21:03:23.000Z
|
2021-11-24T03:53:55.000Z
|
test/regression/features/subscript/subscript_list.py
|
ppelleti/berp
|
30925288376a6464695341445688be64ac6b2600
|
[
"BSD-3-Clause"
] | 4
|
2015-04-01T13:49:13.000Z
|
2019-07-09T19:28:56.000Z
|
test/regression/features/subscript/subscript_list.py
|
bjpop/berp
|
30925288376a6464695341445688be64ac6b2600
|
[
"BSD-3-Clause"
] | 8
|
2015-04-25T03:47:52.000Z
|
2019-07-27T06:33:56.000Z
|
list = [1,2,3,4]
print(list[0], list[1], list[2], list[3], list[-1], list[-2], list[-3], list[-4])
| 33
| 81
| 0.535354
| 22
| 99
| 2.409091
| 0.318182
| 0.283019
| 0.339623
| 0.377358
| 0.641509
| 0.641509
| 0.641509
| 0
| 0
| 0
| 0
| 0.136364
| 0.111111
| 99
| 2
| 82
| 49.5
| 0.465909
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
29868cfbd4404d6ab40c6648835e91f28a761b52
| 4,544
|
py
|
Python
|
holoviews/tests/plotting/matplotlib/test_scatter3d.py
|
TheoMathurin/holoviews
|
0defcef994d6dd6d2054f75a0e332d02d121f8b0
|
[
"BSD-3-Clause"
] | 304
|
2019-02-07T16:41:57.000Z
|
2019-11-08T23:43:33.000Z
|
holoviews/tests/plotting/matplotlib/test_scatter3d.py
|
chrinide/holoviews
|
e1234a60ae0809ac561c204b1998dff0452b2bf0
|
[
"BSD-3-Clause"
] | 689
|
2019-02-07T00:01:16.000Z
|
2019-11-11T22:42:58.000Z
|
holoviews/tests/plotting/matplotlib/test_scatter3d.py
|
chrinide/holoviews
|
e1234a60ae0809ac561c204b1998dff0452b2bf0
|
[
"BSD-3-Clause"
] | 61
|
2019-02-08T17:06:30.000Z
|
2019-11-02T21:32:50.000Z
|
from holoviews.element import Scatter3D
from .test_plot import TestMPLPlot, mpl_renderer
class TestPointPlot(TestMPLPlot):
def test_scatter3d_colorbar_label(self):
scatter3d = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).options(color='z', colorbar=True)
plot = mpl_renderer.get_plot(scatter3d)
assert plot.handles['cax'].get_ylabel() == 'z'
def test_scatter3d_padding_square(self):
scatter3d = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).options(padding=0.1)
plot = mpl_renderer.get_plot(scatter3d)
x_range, y_range = plot.handles['axis'].get_xlim(), plot.handles['axis'].get_ylim()
z_range = plot.handles['axis'].get_zlim()
self.assertEqual(x_range[0], -0.2)
self.assertEqual(x_range[1], 2.2)
self.assertEqual(y_range[0], 0.8)
self.assertEqual(y_range[1], 3.2)
self.assertEqual(z_range[0], 1.8)
self.assertEqual(z_range[1], 4.2)
def test_curve_padding_square_per_axis(self):
curve = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).options(padding=((0, 0.1), (0.1, 0.2), (0.2, 0.3)))
plot = mpl_renderer.get_plot(curve)
x_range, y_range = plot.handles['axis'].get_xlim(), plot.handles['axis'].get_ylim()
z_range = plot.handles['axis'].get_zlim()
self.assertEqual(x_range[0], 0)
self.assertEqual(x_range[1], 2.2)
self.assertEqual(y_range[0], 0.8)
self.assertEqual(y_range[1], 3.4)
self.assertEqual(z_range[0], 1.6)
self.assertEqual(z_range[1], 4.6)
def test_scatter3d_padding_hard_zrange(self):
scatter3d = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).redim.range(z=(0, 3)).options(padding=0.1)
plot = mpl_renderer.get_plot(scatter3d)
x_range, y_range = plot.handles['axis'].get_xlim(), plot.handles['axis'].get_ylim()
z_range = plot.handles['axis'].get_zlim()
self.assertEqual(x_range[0], -0.2)
self.assertEqual(x_range[1], 2.2)
self.assertEqual(y_range[0], 0.8)
self.assertEqual(y_range[1], 3.2)
self.assertEqual(z_range[0], 0)
self.assertEqual(z_range[1], 3)
def test_scatter3d_padding_soft_zrange(self):
scatter3d = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).redim.soft_range(z=(0, 3)).options(padding=0.1)
plot = mpl_renderer.get_plot(scatter3d)
x_range, y_range = plot.handles['axis'].get_xlim(), plot.handles['axis'].get_ylim()
z_range = plot.handles['axis'].get_zlim()
self.assertEqual(x_range[0], -0.2)
self.assertEqual(x_range[1], 2.2)
self.assertEqual(y_range[0], 0.8)
self.assertEqual(y_range[1], 3.2)
self.assertEqual(z_range[0], 0)
self.assertEqual(z_range[1], 4.2)
def test_scatter3d_padding_unequal(self):
scatter3d = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).options(padding=(0.05, 0.1, 0.2))
plot = mpl_renderer.get_plot(scatter3d)
x_range, y_range = plot.handles['axis'].get_xlim(), plot.handles['axis'].get_ylim()
z_range = plot.handles['axis'].get_zlim()
self.assertEqual(x_range[0], -0.1)
self.assertEqual(x_range[1], 2.1)
self.assertEqual(y_range[0], 0.8)
self.assertEqual(y_range[1], 3.2)
self.assertEqual(z_range[0], 1.6)
self.assertEqual(z_range[1], 4.4)
def test_scatter3d_padding_nonsquare(self):
scatter3d = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).options(padding=0.1, aspect=2)
plot = mpl_renderer.get_plot(scatter3d)
x_range, y_range = plot.handles['axis'].get_xlim(), plot.handles['axis'].get_ylim()
z_range = plot.handles['axis'].get_zlim()
self.assertEqual(x_range[0], -0.1)
self.assertEqual(x_range[1], 2.1)
self.assertEqual(y_range[0], 0.8)
self.assertEqual(y_range[1], 3.2)
self.assertEqual(z_range[0], 1.8)
self.assertEqual(z_range[1], 4.2)
def test_scatter3d_padding_logz(self):
scatter3d = Scatter3D([(0, 1, 2), (1, 2, 3), (2, 3, 4)]).options(padding=0.1, logz=True)
plot = mpl_renderer.get_plot(scatter3d)
x_range, y_range = plot.handles['axis'].get_xlim(), plot.handles['axis'].get_ylim()
z_range = plot.handles['axis'].get_zlim()
self.assertEqual(x_range[0], -0.2)
self.assertEqual(x_range[1], 2.2)
self.assertEqual(y_range[0], 0.8)
self.assertEqual(y_range[1], 3.2)
self.assertEqual(z_range[0], 1.8660659830736146)
self.assertEqual(z_range[1], 4.2870938501451725)
| 46.845361
| 112
| 0.619938
| 708
| 4,544
| 3.792373
| 0.077684
| 0.234637
| 0.117318
| 0.140782
| 0.848417
| 0.840223
| 0.831657
| 0.817132
| 0.817132
| 0.817132
| 0
| 0.07926
| 0.203125
| 4,544
| 96
| 113
| 47.333333
| 0.662248
| 0
| 0
| 0.666667
| 0
| 0
| 0.019591
| 0
| 0
| 0
| 0
| 0
| 0.511905
| 1
| 0.095238
| false
| 0
| 0.02381
| 0
| 0.130952
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
466334f15b095df9353f3b7450956e1576b88364
| 191
|
py
|
Python
|
stock_picking_report_valued/models/__init__.py
|
NextERP-Romania/addons_extern
|
d08f428aeea4cda1890adfd250bc359bda0c33f3
|
[
"Apache-2.0"
] | null | null | null |
stock_picking_report_valued/models/__init__.py
|
NextERP-Romania/addons_extern
|
d08f428aeea4cda1890adfd250bc359bda0c33f3
|
[
"Apache-2.0"
] | null | null | null |
stock_picking_report_valued/models/__init__.py
|
NextERP-Romania/addons_extern
|
d08f428aeea4cda1890adfd250bc359bda0c33f3
|
[
"Apache-2.0"
] | null | null | null |
from . import res_partner
from . import stock_move_line
from . import stock_move_line_for_purchase
from . import stock_picking
from . import stock_picking_for_purchase
from . import purchase
| 27.285714
| 42
| 0.842932
| 29
| 191
| 5.172414
| 0.344828
| 0.4
| 0.4
| 0.253333
| 0.306667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125654
| 191
| 6
| 43
| 31.833333
| 0.898204
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
4679467862320ebb4a2d822755160bafdd5b6deb
| 21,741
|
py
|
Python
|
src/sdk/python/OsduClient/api/partition_api.py
|
mstest123/self-managed-osdu_from_Daniel
|
10a0c1d25804caa920bf18c6c7c1d8e711c63756
|
[
"MIT"
] | 3
|
2021-11-05T20:52:54.000Z
|
2021-11-23T23:02:29.000Z
|
src/sdk/python/OsduClient/api/partition_api.py
|
mstest123/self-managed-osdu_from_Daniel
|
10a0c1d25804caa920bf18c6c7c1d8e711c63756
|
[
"MIT"
] | 4
|
2021-11-05T19:57:08.000Z
|
2021-12-14T13:59:04.000Z
|
src/sdk/python/OsduClient/api/partition_api.py
|
mstest123/self-managed-osdu_from_Daniel
|
10a0c1d25804caa920bf18c6c7c1d8e711c63756
|
[
"MIT"
] | 36
|
2021-08-31T20:58:25.000Z
|
2022-03-30T17:02:57.000Z
|
# coding: utf-8
"""
self-managed-osdu
Rest API Documentation for Self Managed OSDU # noqa: E501
OpenAPI spec version: 0.11.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from OsduClient.api_client import ApiClient
class PartitionApi(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_using_post(self, partition_id, partition_info, **kwargs): # noqa: E501
"""Create Partition # noqa: E501
By passing in a partition Id and a partition info object you can create a partition. # 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_using_post(partition_id, partition_info, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (required)
:param PartitionDto partition_info: partitionInfo (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.create_using_post_with_http_info(partition_id, partition_info, **kwargs) # noqa: E501
else:
(data) = self.create_using_post_with_http_info(partition_id, partition_info, **kwargs) # noqa: E501
return data
def create_using_post_with_http_info(self, partition_id, partition_info, **kwargs): # noqa: E501
"""Create Partition # noqa: E501
By passing in a partition Id and a partition info object you can create a partition. # 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_using_post_with_http_info(partition_id, partition_info, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (required)
:param PartitionDto partition_info: partitionInfo (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['partition_id', 'partition_info'] # 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_using_post" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'partition_id' is set
if self.api_client.client_side_validation and ('partition_id' not in params or
params['partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `partition_id` when calling `create_using_post`") # noqa: E501
# verify the required parameter 'partition_info' is set
if self.api_client.client_side_validation and ('partition_info' not in params or
params['partition_info'] is None): # noqa: E501
raise ValueError("Missing the required parameter `partition_info` when calling `create_using_post`") # noqa: E501
collection_formats = {}
path_params = {}
if 'partition_id' in params:
path_params['partitionId'] = params['partition_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'partition_info' in params:
body_params = params['partition_info']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/partition/v1/partitions/{partitionId}', '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 delete_using_delete(self, partition_id, **kwargs): # noqa: E501
"""Delete Partition # noqa: E501
By passing in a single partition Id, you can delete a partition. # 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_using_delete(partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (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_using_delete_with_http_info(partition_id, **kwargs) # noqa: E501
else:
(data) = self.delete_using_delete_with_http_info(partition_id, **kwargs) # noqa: E501
return data
def delete_using_delete_with_http_info(self, partition_id, **kwargs): # noqa: E501
"""Delete Partition # noqa: E501
By passing in a single partition Id, you can delete a partition. # 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_using_delete_with_http_info(partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_using_delete" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'partition_id' is set
if self.api_client.client_side_validation and ('partition_id' not in params or
params['partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `partition_id` when calling `delete_using_delete`") # noqa: E501
collection_formats = {}
path_params = {}
if 'partition_id' in params:
path_params['partitionId'] = params['partition_id'] # 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 = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/partition/v1/partitions/{partitionId}', '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_using_get(self, partition_id, **kwargs): # noqa: E501
"""Get Single Partition # noqa: E501
By passing in a partition Id, you can retrieve the partition information. # 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_using_get(partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (required)
:return: dict(str, PartitionProperty)
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_using_get_with_http_info(partition_id, **kwargs) # noqa: E501
else:
(data) = self.get_using_get_with_http_info(partition_id, **kwargs) # noqa: E501
return data
def get_using_get_with_http_info(self, partition_id, **kwargs): # noqa: E501
"""Get Single Partition # noqa: E501
By passing in a partition Id, you can retrieve the partition information. # 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_using_get_with_http_info(partition_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (required)
:return: dict(str, PartitionProperty)
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['partition_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_using_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'partition_id' is set
if self.api_client.client_side_validation and ('partition_id' not in params or
params['partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `partition_id` when calling `get_using_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'partition_id' in params:
path_params['partitionId'] = params['partition_id'] # 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 = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/partition/v1/partitions/{partitionId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='dict(str, PartitionProperty)', # 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_using_get(self, **kwargs): # noqa: E501
"""List Partitions # 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_using_get(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[str]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_using_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.list_using_get_with_http_info(**kwargs) # noqa: E501
return data
def list_using_get_with_http_info(self, **kwargs): # noqa: E501
"""List Partitions # 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_using_get_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[str]
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # 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_using_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
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']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/partition/v1/partitions', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[str]', # 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_using_patch(self, partition_id, partition_info, **kwargs): # noqa: E501
"""Update Partition # noqa: E501
By passing in a partition Id and a partition info object you can update a partition. # 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_using_patch(partition_id, partition_info, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (required)
:param PartitionDto partition_info: partitionInfo (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.update_using_patch_with_http_info(partition_id, partition_info, **kwargs) # noqa: E501
else:
(data) = self.update_using_patch_with_http_info(partition_id, partition_info, **kwargs) # noqa: E501
return data
def update_using_patch_with_http_info(self, partition_id, partition_info, **kwargs): # noqa: E501
"""Update Partition # noqa: E501
By passing in a partition Id and a partition info object you can update a partition. # 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_using_patch_with_http_info(partition_id, partition_info, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str partition_id: partitionId (required)
:param PartitionDto partition_info: partitionInfo (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['partition_id', 'partition_info'] # 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_using_patch" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'partition_id' is set
if self.api_client.client_side_validation and ('partition_id' not in params or
params['partition_id'] is None): # noqa: E501
raise ValueError("Missing the required parameter `partition_id` when calling `update_using_patch`") # noqa: E501
# verify the required parameter 'partition_info' is set
if self.api_client.client_side_validation and ('partition_info' not in params or
params['partition_info'] is None): # noqa: E501
raise ValueError("Missing the required parameter `partition_info` when calling `update_using_patch`") # noqa: E501
collection_formats = {}
path_params = {}
if 'partition_id' in params:
path_params['partitionId'] = params['partition_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'partition_info' in params:
body_params = params['partition_info']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/api/partition/v1/partitions/{partitionId}', 'PATCH',
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)
| 40.561567
| 127
| 0.614829
| 2,498
| 21,741
| 5.088471
| 0.066853
| 0.053497
| 0.023523
| 0.028322
| 0.948942
| 0.948942
| 0.940996
| 0.928487
| 0.928487
| 0.92298
| 0
| 0.017689
| 0.297916
| 21,741
| 535
| 128
| 40.637383
| 0.815055
| 0.322524
| 0
| 0.81338
| 1
| 0
| 0.19086
| 0.040062
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038732
| false
| 0
| 0.014085
| 0
| 0.109155
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
469a3255bbe7155438d54285e91030b820e4111f
| 6,152
|
py
|
Python
|
tests/agent/schema/test_loader.py
|
bbhunter/ostorlab
|
968fe4e5b927c0cd159594c13b73f95b71150154
|
[
"Apache-2.0"
] | 113
|
2022-02-21T09:30:14.000Z
|
2022-03-31T21:54:26.000Z
|
tests/agent/schema/test_loader.py
|
bbhunter/ostorlab
|
968fe4e5b927c0cd159594c13b73f95b71150154
|
[
"Apache-2.0"
] | 2
|
2022-02-25T10:56:55.000Z
|
2022-03-24T13:08:06.000Z
|
tests/agent/schema/test_loader.py
|
bbhunter/ostorlab
|
968fe4e5b927c0cd159594c13b73f95b71150154
|
[
"Apache-2.0"
] | 20
|
2022-02-28T14:25:04.000Z
|
2022-03-30T23:01:11.000Z
|
"""Tests for the validation of Json specifications for Agent & AgentGroup."""
import io
import pytest
from ostorlab.agent.schema import loader
from ostorlab.agent.schema import validator
def testAgentSpecValidation_whenDefinitionIsCorrect_noRaise():
"""Unit test to check the validity of the Agent json-schema.
Case where the Agent definition is valid.
"""
valid_yaml_data = """
kind: Agent
name: "agent"
version : 1.1.0
description: "Agent1 Description should be here"
image: "some/path/to/the/image"
source: "https://github.com/"
durability: "development"
restrictions:
- "restriction1"
- "restriction2"
in_selectors:
- "in_selector1"
- "in_selector2"
out_selectors:
- "out_selector1"
- "out_selector2"
restart_policy: "any"
mem_limit: 4096
portmap:
port_src: 50001
port_dst: 50200
docker_file_path: "some/path/to/Dockerfile"
docker_build_root: "/"
agent_runner: "theAgentRunner"
agent_path: "some/path/to/agent.py"
agenArgument:
- name: "agentArgumentName1"
type: ["string", "number", "boolean"]
description: "agentArgumentDescription1"
default_value: "agentArgumentDefaultValue1"
- name: "agentArgumentName2"
type: ["string", "number", "boolean"]
description: "agentArgumentDescription2"
default_value: 42
"""
yaml_data_file = io.StringIO(valid_yaml_data)
data = loader.load_agent_yaml(yaml_data_file)
assert data['name'] == 'agent'
assert data['version'] == '1.1.0'
assert data['agenArgument'][1]['default_value'] == 42
def testAgentSpecValidation_whenVersionDoesNotRespectSemanticVersionning_raiseValidationError():
"""Unit test to checks the validity of the Agent json-schema.
Case where the Agent definition is invalid.
The version does not respect the semantic versionning : major.minor.release.
"""
invalid_yaml_data = """
name: "Agent"
version : 1.
description: "Agent1 Description should be here"
image: "some/path/to/the/image"
source: "https://github.com/"
durability: "development"
restrictions:
- "restriction1"
- "restriction2"
in_selectors:
- "in_selector1"
- "in_selector2"
out_selectors:
- "out_selector1"
- "out_selector2"
restart_policy: "any"
mem_limit: 4096
portmap:
port_src: 50001
port_dst: 50200
docker_file_path: "some/path/to/Dockerfile"
docker_build_root: "/"
agent_runner: "theAgentRunner"
agent_path: "some/path/to/agent.py"
args:
- name: "agentArgumentName1"
type: ["string", "number", "boolean"]
description: "agentArgumentDescription1"
default_value: "agentArgumentDefaultValue1"
- name: "agentArgumentName2"
type: ["string", "number", "boolean"]
description: "agentArgumentDescription2"
default_value: 42
"""
yaml_data_file = io.StringIO(invalid_yaml_data)
with pytest.raises(validator.ValidationError):
loader.load_agent_yaml(yaml_data_file)
def testAgentGroupSpecValidation_whenDefinitionIsCorrect_noRaise():
"""Unit test to checks the validity of the AgentGroup json-schema.
Case where the AgentGroup definition is valid.
"""
valid_yaml_agent_group_data = """
kind: "AgentGroup"
description: "AgentGroup1 Should be here"
image: "some/path/to/the/image"
restart_policy: "any"
restrictions:
- "restriction1"
- "restriction2"
constraints:
- "constraint1"
- "constraint2"
agents:
- name: "AgentBigFuzzer"
args:
- color: "red"
speed: "slow"
- name: "AgentSmallFuzzer"
args:
- color: "blue"
speed: "fast"
agentGroupArgument:
- name: "agentGroupArgumentExample1"
type: ["string", "number", "boolean"]
description: "agentGroupArgumentDescription1"
value: "agentGroupArgumentValue1"
- name: "agentGroupArgumentExample2"
type: ["string", "number", "boolean"]
description: "agentGroupArgumentDescription2"
value: 42
"""
yaml_data_file = io.StringIO(valid_yaml_agent_group_data)
data = loader.load_agent_group_yaml(yaml_data_file)
assert data['description'] == 'AgentGroup1 Should be here'
def testAgentGroupSpecValidation_whenRequiredParamDescriptionIsMissing_raiseValidationError():
"""Unit test to checks the validity of the AgentGroup json-schema.
Case where the AgentGroup definition is invalid : Required parameter description is missing.
"""
invalid_yaml_agent_group_data = """
kind: "AgentGroup1"
image: "some/path/to/the/image"
restart_policy: "any"
restrictions:
- "restriction1"
- "restriction2"
constraints:
- "constraint1"
- "constraint2"
agents:
- name: "AgentBigFuzzer"
args:
- color: "red"
speed: "slow"
- name: "AgentSmallFuzzer"
args:
- color: "blue"
speed: "fast"
agentGroupArgument:
- name: "agentGroupArgumentExample1"
type: "string"
description: "agentGroupArgumentDescription1"
value: "agentGroupArgumentValue1"
- name: "agentGroupArgumentExample2"
type: ["string", "number", "boolean"]
description: "agentGroupArgumentDescription2"
value: 42
"""
yaml_data_file = io.StringIO(invalid_yaml_agent_group_data)
with pytest.raises(validator.ValidationError):
loader.load_agent_group_yaml(yaml_data_file)
| 31.875648
| 96
| 0.605007
| 547
| 6,152
| 6.627057
| 0.250457
| 0.026483
| 0.022069
| 0.044414
| 0.841379
| 0.756414
| 0.750897
| 0.737931
| 0.722207
| 0.659862
| 0
| 0.021133
| 0.300065
| 6,152
| 192
| 97
| 32.041667
| 0.820715
| 0.100618
| 0
| 0.776316
| 0
| 0
| 0.768612
| 0.118529
| 0
| 0
| 0
| 0
| 0.026316
| 1
| 0.026316
| false
| 0
| 0.026316
| 0
| 0.052632
| 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
|
46adc99c7947ec63ed3a62695c9b74a0ff908c01
| 34
|
py
|
Python
|
UnitTests/__init__.py
|
waldosax/PlexSports
|
404058921e4be02b93ad155bdaef768ff917620e
|
[
"MIT"
] | 5
|
2021-07-09T01:05:47.000Z
|
2021-09-06T02:23:12.000Z
|
UnitTests/__init__.py
|
waldosax/PlexSports
|
404058921e4be02b93ad155bdaef768ff917620e
|
[
"MIT"
] | 1
|
2022-01-08T04:04:56.000Z
|
2022-01-08T04:04:56.000Z
|
UnitTests/__init__.py
|
waldosax/PlexSports
|
404058921e4be02b93ad155bdaef768ff917620e
|
[
"MIT"
] | null | null | null |
from AssertionException import *
| 17
| 33
| 0.823529
| 3
| 34
| 9.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 34
| 1
| 34
| 34
| 0.965517
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d3b9637e7a7b2281c09717f52ca0ecee6b0d02eb
| 17,228
|
py
|
Python
|
magus_kalkulator/torso_table.py
|
miklosduma/magus
|
29e61fb2e8d8860f2a6db823a205ceb3a4a29463
|
[
"Apache-2.0"
] | null | null | null |
magus_kalkulator/torso_table.py
|
miklosduma/magus
|
29e61fb2e8d8860f2a6db823a205ceb3a4a29463
|
[
"Apache-2.0"
] | null | null | null |
magus_kalkulator/torso_table.py
|
miklosduma/magus
|
29e61fb2e8d8860f2a6db823a205ceb3a4a29463
|
[
"Apache-2.0"
] | null | null | null |
"""
Penalties depending on seriousness, weapon-type and actual place of hit.
"""
import magus_kalkulator.magus_constants as mgc
TORZS_THRESHOLDS = [100, 75, 50, 25]
TORZS_TABLA = {
mgc.SLASH: {
mgc.COLLARBONE: [
mgc.NULL_HANDICAP,
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.NUMBNESS_1,
mgc.SEVERE_HANDICAP],
mgc.DEATH],
mgc.CHEST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.CRITICAL_HANDICAP,
mgc.MODERATE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.STOMACH: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN,
mgc.DISEASE],
[mgc.SEVERE_BLEEDING,
mgc.CRITICAL_HANDICAP,
mgc.SEVERE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.SHOULDERBLADE: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.BACK: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_PAIN,
mgc.SLIGHT_HANDICAP],
[mgc.MODERATE_BLEEDING,
mgc.DISEASE,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.WAIST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_PAIN,
mgc.SLIGHT_HANDICAP],
[mgc.MODERATE_BLEEDING,
mgc.DISEASE,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.BUTTOCKS: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.REDUCE_50],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.REDUCE_30],
[mgc.SEVERE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.REDUCE_10],
mgc.DEATH],
mgc.SPINE: [
mgc.NULL_HANDICAP,
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.NUMBNESS,
mgc.SEVERE_PAIN],
mgc.DEATH]},
mgc.THRUST: {
mgc.COLLARBONE: [
mgc.NULL_HANDICAP,
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP_1,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.SLIGHT_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.NUMBNESS_1,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.CHEST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.DISEASE],
[mgc.SEVERE_BLEEDING_INT,
mgc.CRITICAL_HANDICAP,
mgc.MODERATE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.STOMACH: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.EXTRA_K10],
[mgc.SLIGHT_BLEEDING_INT,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6,
mgc.DISEASE],
[mgc.SEVERE_BLEEDING_INT,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.SHOULDERBLADE: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_PAIN],
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K10],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.CRITICAL_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.BACK: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.WAIST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.BUTTOCKS: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.REDUCE_50],
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.REDUCE_30],
[mgc.MODERATE_BLEEDING,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.REDUCE_10],
mgc.DEATH],
mgc.SPINE: [
mgc.NULL_HANDICAP,
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.NUMBNESS,
mgc.SEVERE_PAIN],
mgc.DEATH]},
mgc.BLUDGEON: {
mgc.COLLARBONE: [
mgc.NULL_HANDICAP,
[mgc.PARTIAL_NUMBNESS_1,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.NUMBNESS_1,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.CHEST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN],
[mgc.SLIGHT_BLEEDING,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING_INT,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.STOMACH: [
mgc.NULL_HANDICAP,
[mgc.DAZE_1_SLIGHT_HANDICAP,
mgc.EXTRA_K10],
[mgc.SLIGHT_BLEEDING_INT,
mgc.DAZE_2_SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.DISEASE],
[mgc.MODERATE_BLEEDING_INT,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.SHOULDERBLADE: [
mgc.NULL_HANDICAP,
mgc.SLIGHT_PAIN,
[mgc.SLIGHT_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.BACK: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.DISEASE,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.CRITICAL_HANDICAP,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.WAIST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.DISEASE,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.CRITICAL_HANDICAP,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.BUTTOCKS: [
mgc.NULL_HANDICAP,
[mgc.MODERATE_PAIN,
mgc.REDUCE_80],
[mgc.SLIGHT_HANDICAP,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN,
mgc.REDUCE_30],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.SPINE: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN,
mgc.EXTRA_K6],
[mgc.PARTIAL_NUMBNESS,
mgc.MODERATE_PAIN],
[mgc.NUMBNESS,
mgc.SEVERE_PAIN],
mgc.DEATH]},
mgc.CLAW: {
mgc.COLLARBONE: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.CHEST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.CRITICAL_HANDICAP,
mgc.SEVERE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.STOMACH: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.SEVERE_HANDICAP,
mgc.SEVERE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.SHOULDERBLADE: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN],
[mgc.SLIGHT_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.SEVERE_HANDICAP,
mgc.PARTIAL_NUMBNESS_1,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.BACK: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.WAIST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN],
[mgc.MODERATE_BLEEDING,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.BUTTOCKS: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_PAIN,
mgc.REDUCE_80],
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.MODERATE_PAIN,
mgc.REDUCE_50],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.MODERATE_PAIN,
mgc.REDUCE_20],
mgc.DEATH],
mgc.SPINE: [
mgc.NULL_HANDICAP,
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS,
mgc.MODERATE_PAIN],
[mgc.SEVERE_BLEEDING,
mgc.NUMBNESS,
mgc.SEVERE_PAIN],
mgc.DEATH]},
mgc.BITE: {
mgc.COLLARBONE: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP_1,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SEVERE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.CHEST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.DISEASE],
[mgc.MODERATE_BLEEDING_INT,
mgc.CRITICAL_HANDICAP,
mgc.SEVERE_PAIN,
mgc.DISEASE],
mgc.DEATH],
mgc.STOMACH: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.EXTRA_K6,
mgc.DISEASE],
[mgc.MODERATE_BLEEDING_INT,
mgc.CRITICAL_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.SHOULDERBLADE: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP_1,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING,
mgc.PARTIAL_NUMBNESS_1,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SEVERE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.MODERATE_PAIN],
mgc.DEATH],
mgc.BACK: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.CRITICAL_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.WAIST: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.SLIGHT_PAIN,
mgc.EXTRA_K6],
[mgc.SLIGHT_BLEEDING_INT,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.CRITICAL_HANDICAP,
mgc.SEVERE_PAIN],
mgc.DEATH],
mgc.BUTTOCKS: [
mgc.NULL_HANDICAP,
[mgc.SLIGHT_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.EXTRA_K6,
mgc.REDUCE_70],
[mgc.SLIGHT_BLEEDING,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.REDUCE_60],
[mgc.MODERATE_BLEEDING,
mgc.SLIGHT_HANDICAP,
mgc.NUMBNESS_1,
mgc.MODERATE_PAIN,
mgc.REDUCE_10],
mgc.DEATH],
mgc.SPINE: [
mgc.NULL_HANDICAP,
"ervenytelen",
[mgc.SLIGHT_BLEEDING_INT,
mgc.SEVERE_HANDICAP,
mgc.MODERATE_PAIN,
mgc.EXTRA_K6],
[mgc.MODERATE_BLEEDING_INT,
mgc.DISEASE,
mgc.SEVERE_HANDICAP,
mgc.PARTIAL_NUMBNESS,
mgc.SEVERE_PAIN],
mgc.DEATH]}
}
| 22.909574
| 72
| 0.48485
| 1,578
| 17,228
| 4.996198
| 0.040558
| 0.146119
| 0.100837
| 0.121005
| 0.973617
| 0.973617
| 0.962202
| 0.952562
| 0.929985
| 0.915906
| 0
| 0.010627
| 0.431971
| 17,228
| 751
| 73
| 22.94008
| 0.795013
| 0.004179
| 0
| 0.959854
| 0
| 0
| 0.000641
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.001825
| 0
| 0.001825
| 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
|
d3fd0b099aebbfcb2771c8f15faeabab195df4d4
| 244
|
py
|
Python
|
How_module_works/App.py
|
456Product/GUI_module_tutorial
|
17ed26a4dd092bb274a70291a6bc78a5f4014641
|
[
"MIT"
] | null | null | null |
How_module_works/App.py
|
456Product/GUI_module_tutorial
|
17ed26a4dd092bb274a70291a6bc78a5f4014641
|
[
"MIT"
] | null | null | null |
How_module_works/App.py
|
456Product/GUI_module_tutorial
|
17ed26a4dd092bb274a70291a6bc78a5f4014641
|
[
"MIT"
] | null | null | null |
print(f"====== start : {__name__} ======")
print("\nimport module")
import module
print("\nfrom module import test_file2")
from module import test_file2
print("\nimport test_file3")
import test_file3
print(f"====== e n d : {__name__} ======")
| 24.4
| 42
| 0.663934
| 33
| 244
| 4.545455
| 0.454545
| 0.24
| 0.213333
| 0.28
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018605
| 0.118852
| 244
| 10
| 43
| 24.4
| 0.67907
| 0
| 0
| 0
| 0
| 0
| 0.526531
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0.625
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
3147868f4c16c6fcce04d061b4f21d85639dcd12
| 3,841
|
py
|
Python
|
tests/integrations/test_redis_integrations.py
|
sturmianseq/thundra-agent-python
|
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
|
[
"Apache-2.0"
] | 22
|
2018-03-05T20:02:46.000Z
|
2021-04-09T12:00:18.000Z
|
tests/integrations/test_redis_integrations.py
|
sturmianseq/thundra-agent-python
|
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
|
[
"Apache-2.0"
] | 13
|
2018-03-26T07:57:57.000Z
|
2021-06-29T14:22:52.000Z
|
tests/integrations/test_redis_integrations.py
|
thundra-io/thundra-agent-python
|
448e18c17d8730c381b2e2a773782cf80c5a7cfb
|
[
"Apache-2.0"
] | 3
|
2021-08-07T14:19:23.000Z
|
2021-12-08T15:35:40.000Z
|
import redis
from thundra import constants
from thundra.config import config_names
from thundra.config.config_provider import ConfigProvider
from thundra.opentracing.tracer import ThundraTracer
def test_set():
try:
r = redis.Redis(host="test", port="12345", password="pass")
r.set('foo', 'bar')
except:
pass
finally:
tracer = ThundraTracer.get_instance()
span = tracer.get_spans()[1]
assert span.class_name == 'Redis'
assert span.domain_name == 'Cache'
assert span.operation_name == 'test'
assert span.get_tag(constants.DBTags['DB_TYPE']) == 'redis'
assert span.get_tag(constants.DBTags['DB_INSTANCE']) == 'test'
assert span.get_tag(constants.DBTags['DB_STATEMENT_TYPE']) == 'WRITE'
assert span.get_tag(constants.RedisTags['REDIS_HOST']) == 'test'
assert span.get_tag(constants.RedisTags['REDIS_COMMAND_TYPE']) == 'SET'
assert span.get_tag(constants.RedisTags['REDIS_COMMAND']) == 'SET foo bar'
def test_set_mask_command():
ConfigProvider.set(config_names.THUNDRA_TRACE_INTEGRATIONS_REDIS_COMMAND_MASK, 'true')
try:
r = redis.Redis(host="test", port="12345", password="pass")
r.set('foo', 'bar')
except:
pass
finally:
tracer = ThundraTracer.get_instance()
span = tracer.get_spans()[1]
assert span.class_name == 'Redis'
assert span.domain_name == 'Cache'
assert span.operation_name == 'test'
assert span.get_tag(constants.DBTags['DB_TYPE']) == 'redis'
assert span.get_tag(constants.DBTags['DB_INSTANCE']) == 'test'
assert span.get_tag(constants.DBTags['DB_STATEMENT_TYPE']) == 'WRITE'
assert span.get_tag(constants.RedisTags['REDIS_HOST']) == 'test'
assert span.get_tag(constants.RedisTags['REDIS_COMMAND_TYPE']) == 'SET'
assert span.get_tag(constants.DBTags['DB_STATEMENT']) is None
assert span.get_tag(constants.RedisTags['REDIS_COMMAND']) is None
def test_get():
try:
r = redis.Redis(host="test", port="12345", password="pass")
r.get('foo')
except:
pass
finally:
tracer = ThundraTracer.get_instance()
span = tracer.get_spans()[1]
assert span.class_name == 'Redis'
assert span.domain_name == 'Cache'
assert span.operation_name == 'test'
assert span.get_tag(constants.DBTags['DB_TYPE']) == 'redis'
assert span.get_tag(constants.DBTags['DB_INSTANCE']) == 'test'
assert span.get_tag(constants.DBTags['DB_STATEMENT_TYPE']) == 'READ'
assert span.get_tag(constants.RedisTags['REDIS_HOST']) == 'test'
assert span.get_tag(constants.RedisTags['REDIS_COMMAND_TYPE']) == 'GET'
assert span.get_tag(constants.RedisTags['REDIS_COMMAND']) == 'GET foo'
def test_get_mask_command():
ConfigProvider.set(config_names.THUNDRA_TRACE_INTEGRATIONS_REDIS_COMMAND_MASK, 'true')
try:
r = redis.Redis(host="test", port="12345", password="pass")
r.get('foo')
except:
pass
finally:
tracer = ThundraTracer.get_instance()
span = tracer.get_spans()[1]
assert span.class_name == 'Redis'
assert span.domain_name == 'Cache'
assert span.operation_name == 'test'
assert span.get_tag(constants.DBTags['DB_TYPE']) == 'redis'
assert span.get_tag(constants.DBTags['DB_INSTANCE']) == 'test'
assert span.get_tag(constants.DBTags['DB_STATEMENT_TYPE']) == 'READ'
assert span.get_tag(constants.RedisTags['REDIS_HOST']) == 'test'
assert span.get_tag(constants.RedisTags['REDIS_COMMAND_TYPE']) == 'GET'
assert span.get_tag(constants.DBTags['DB_STATEMENT']) is None
assert span.get_tag(constants.RedisTags['REDIS_COMMAND']) is None
tracer.clear()
| 39.597938
| 90
| 0.655819
| 476
| 3,841
| 5.077731
| 0.111345
| 0.15722
| 0.139843
| 0.172114
| 0.902772
| 0.902772
| 0.902772
| 0.902772
| 0.885395
| 0.885395
| 0
| 0.007877
| 0.206717
| 3,841
| 96
| 91
| 40.010417
| 0.785363
| 0
| 0
| 0.853659
| 0
| 0
| 0.146316
| 0
| 0
| 0
| 0
| 0
| 0.463415
| 1
| 0.04878
| false
| 0.097561
| 0.060976
| 0
| 0.109756
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 10
|
316c5822cf5c6aaec7040993fcf2131a15a26c0c
| 52
|
py
|
Python
|
python/testData/refactoring/move/moveNamespacePackage3/before/src/b.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/refactoring/move/moveNamespacePackage3/before/src/b.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/refactoring/move/moveNamespacePackage3/before/src/b.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
import nspkg.nssubpkg.a
print(nspkg.nssubpkg.a.VAR)
| 17.333333
| 27
| 0.807692
| 9
| 52
| 4.666667
| 0.666667
| 0.619048
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057692
| 52
| 3
| 27
| 17.333333
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
317bce9966a5b539c914299bd04d171e785d226f
| 223
|
py
|
Python
|
schedule/tests/__init__.py
|
mrbaboon/django-scheduler
|
30fa2bace17ed597f926c2a9e7f9eef06caf7ac4
|
[
"BSD-3-Clause"
] | null | null | null |
schedule/tests/__init__.py
|
mrbaboon/django-scheduler
|
30fa2bace17ed597f926c2a9e7f9eef06caf7ac4
|
[
"BSD-3-Clause"
] | null | null | null |
schedule/tests/__init__.py
|
mrbaboon/django-scheduler
|
30fa2bace17ed597f926c2a9e7f9eef06caf7ac4
|
[
"BSD-3-Clause"
] | null | null | null |
from test_event import *
from test_occurrence import *
from test_periods import *
from test_recurrent_event import *
from test_templatetags import *
from test_utils import *
from test_views import *
from test_perms import *
| 27.875
| 34
| 0.825112
| 33
| 223
| 5.30303
| 0.333333
| 0.365714
| 0.56
| 0.217143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139013
| 223
| 8
| 35
| 27.875
| 0.911458
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
31b0e6bd3190588ec7530e3495c19465dbecbe73
| 79,850
|
py
|
Python
|
cinder/tests/unit/volume/drivers/test_qnap.py
|
mail2nsrajesh/cinder
|
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
|
[
"Apache-2.0"
] | null | null | null |
cinder/tests/unit/volume/drivers/test_qnap.py
|
mail2nsrajesh/cinder
|
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
|
[
"Apache-2.0"
] | 2
|
2018-10-25T13:04:01.000Z
|
2019-08-17T13:15:24.000Z
|
cinder/tests/unit/volume/drivers/test_qnap.py
|
mail2nsrajesh/cinder
|
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
|
[
"Apache-2.0"
] | 2
|
2018-10-17T13:32:50.000Z
|
2018-11-08T08:39:39.000Z
|
# Copyright (c) 2016 QNAP Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import base64
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
import mock
from oslo_config import cfg
from oslo_utils import units
import six
from six.moves import urllib
from cinder import test
from cinder.volume.drivers import qnap
CONF = cfg.CONF
FAKE_LUNNAA = {'LUNNAA': 'fakeLunNaa'}
FAKE_SNAPSHOT = {'snapshot_id': 'fakeSnapshotId'}
FAKE_PASSWORD = 'qnapadmin'
FAKE_PARMS = {}
FAKE_PARMS['pwd'] = base64.b64encode(FAKE_PASSWORD.encode("utf-8"))
FAKE_PARMS['serviceKey'] = 1
FAKE_PARMS['user'] = 'admin'
sanitized_params = {}
for key in FAKE_PARMS:
value = FAKE_PARMS[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
global_sanitized_params = urllib.parse.urlencode(sanitized_params)
header = {
'charset': 'utf-8', 'Content-Type': 'application/x-www-form-urlencoded'}
login_url = ('/cgi-bin/authLogin.cgi?')
get_basic_info_url = ('/cgi-bin/authLogin.cgi')
FAKE_RES_DETAIL_DATA_LOGIN = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<authSid><![CDATA[fakeSid]]></authSid>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_GETBASIC_INFO_TS = """
<QDocRoot version="1.0">
<model>
<displayModelName><![CDATA[TS-870U-RP]]></displayModelName>
<internalModelName><![CDATA[TS-879]]></internalModelName>
</model>
<firmware>
<version><![CDATA[4.2.1]]></version>
</firmware>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_GETBASIC_INFO = """
<QDocRoot version="1.0">
<model>
<displayModelName><![CDATA[ES1640dc]]></displayModelName>
<internalModelName><![CDATA[ES1640dc]]></internalModelName>
</model>
<firmware>
<version><![CDATA[1.1.3]]></version>
</firmware>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_GETBASIC_INFO_TES = """
<QDocRoot version="1.0">
<model>
<displayModelName><![CDATA[TES-1885U]]></displayModelName>
<internalModelName><![CDATA[ES-X85U]]></internalModelName>
</model>
<firmware>
<version><![CDATA[1.1.3]]></version>
</firmware>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_LUN_INFO = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<iSCSILUNList>
<LUNInfo>
<LUNNAA><![CDATA[fakeLunNaa]]></LUNNAA>
<LUNName><![CDATA[fakeLunName]]></LUNName>
<LUNIndex><![CDATA[fakeLunIndex]]></LUNIndex>
<LUNThinAllocate><![CDATA[fakeLunThinAllocate]]></LUNThinAllocate>
<LUNPath><![CDATA[fakeLunPath]]></LUNPath>
<LUNTargetList>
<row>
<targetIndex><![CDATA[9]]></targetIndex>
<LUNNumber><![CDATA[1]]></LUNNumber>
<LUNEnable><![CDATA[1]]></LUNEnable>
</row>
</LUNTargetList>
<LUNStatus>1</LUNStatus>
</LUNInfo>
</iSCSILUNList>
<result><![CDATA[0]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_MAPPED_LUN_INFO = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<iSCSILUNList>
<LUNInfo>
<LUNNAA><![CDATA[fakeLunNaa]]></LUNNAA>
<LUNName><![CDATA[fakeLunName]]></LUNName>
<LUNIndex><![CDATA[fakeLunIndex]]></LUNIndex>
<LUNThinAllocate><![CDATA[fakeLunThinAllocate]]></LUNThinAllocate>
<LUNPath><![CDATA[fakeLunPath]]></LUNPath>
<LUNTargetList>
<row>
<targetIndex><![CDATA[9]]></targetIndex>
<LUNNumber><![CDATA[1]]></LUNNumber>
<LUNEnable><![CDATA[1]]></LUNEnable>
</row>
</LUNTargetList>
<LUNStatus>2</LUNStatus>
</LUNInfo>
</iSCSILUNList>
<result><![CDATA[0]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_SNAPSHOT = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<SnapshotList>
<row>
<snapshot_id><![CDATA[fakeSnapshotId]]></snapshot_id>
</row>
</SnapshotList>
<result><![CDATA[0]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_SPECIFIC_POOL_INFO = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<Pool_Index>
<row>
<poolIndex><![CDATA[fakePoolIndex]]></poolIndex>
<poolID><![CDATA[fakePoolId]]></poolID>
<pool_status><![CDATA[0]]></pool_status>
<capacity_bytes><![CDATA[930213412209]]></capacity_bytes>
<allocated_bytes><![CDATA[1480470528]]></allocated_bytes>
<freesize_bytes><![CDATA[928732941681]]></freesize_bytes>
<lun_meta_reserve_ratio><![CDATA[0.0315]]></lun_meta_reserve_ratio>
<pool_capacity><![CDATA[866 GB]]></pool_capacity>
<pool_allocated><![CDATA[1.38 GB]]></pool_allocated>
<pool_freesize><![CDATA[865 GB]]></pool_freesize>
<pool_threshold><![CDATA[80 %]]></pool_threshold>
<pool_used><![CDATA[0 %]]></pool_used>
<pool_available><![CDATA[100 %]]></pool_available>
<pool_owner><![CDATA[SCA]]></pool_owner>
<pool_type><![CDATA[mirror]]></pool_type>
<pool_dedup><![CDATA[1.00]]></pool_dedup>
<pool_bound><![CDATA[0]]></pool_bound>
<pool_progress><![CDATA[0]]></pool_progress>
<pool_scrub><![CDATA[0]]></pool_scrub>
</row>
</Pool_Index>
<result><![CDATA[0]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_ISCSI_PORTAL_INFO = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<iSCSIPortal>
<servicePort><![CDATA[fakeServicePort]]></servicePort>
<targetIQNPrefix><![CDATA[fakeTargetIqnPrefix]]></targetIQNPrefix>
<targetIQNPostfix><![CDATA[fakeTargetIqnPostfix]]></targetIQNPostfix>
</iSCSIPortal>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_ETHERNET_IP = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<func>
<ownContent>
<IPConfig>
<ethdev><![CDATA[fakeEthdev]]></ethdev>
<ethSlotid><![CDATA[0]]></ethSlotid>
<IPType><![CDATA[static]]></IPType>
<IP><![CDATA[fakeIp]]></IP>
</IPConfig>
</ownContent>
</func>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_CREATE_LUN = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<result><![CDATA[fakeLunIndex]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_CREATE_TARGET = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<result><![CDATA[fakeTargetIndex]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_GETHOSTIDLISTBYINITIQN = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<content>
<host_list total="4">
<host>
<index><![CDATA[fakeIndex]]></index>
<hostid><![CDATA[fakeHostId]]></hostid>
<name><![CDATA[fakeHostName]]></name>
<iqns>
<iqn><![CDATA[fakeIqn]]></iqn>
</iqns>
</host>
</host_list>
</content>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_GET_ALL_ISCSI_PORTAL_SETTING = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<targetACL>
<row>
<targetIndex><![CDATA[fakeTargeIndex]]></targetIndex>
<targetIQN><![CDATA[fakeTargetIqn]]></targetIQN>
<targetInitListCnt><![CDATA[0]]></targetInitListCnt>
<targetInitInfo>
<initiatorIndex><![CDATA[2]]></initiatorIndex>
<initiatorAlias><![CDATA[fakeInitiatorAlias]]></initiatorAlias>
<initiatorIQN><![CDATA[fakeInitiatorIqn]]></initiatorIQN>
<bCHAPEnable><![CDATA[0]]></bCHAPEnable>
<bMutualCHAPEnable><![CDATA[0]]></bMutualCHAPEnable>
</targetInitInfo>
</row>
</targetACL>
<iSCSITargetList>
<targetInfo>
<targetIndex><![CDATA[fakeTargeIndex]]></targetIndex>
<targetName><![CDATA[fakeTargetName]]></targetName>
<targetIQN active="1">fakeTargetIqn</targetIQN>
<targetStatus><![CDATA[1]]></targetStatus>
</targetInfo>
</iSCSITargetList>
<result><![CDATA[0]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_DATA_TARGET_INFO = """
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed>
<targetInfo>
<row>
<targetIndex><![CDATA[fakeTargeIndex]]></targetIndex>
<targetName><![CDATA[fakeTargetName]]></targetName>
<targetIQN active="1">fakeTargetIqn</targetIQN>
<targetStatus><![CDATA[1]]></targetStatus>
</row>
</targetInfo>
<result><![CDATA[0]]></result>
</QDocRoot>"""
FAKE_RES_DETAIL_GET_ALL_ISCSI_PORTAL_SETTING = {
'data': FAKE_RES_DETAIL_DATA_GET_ALL_ISCSI_PORTAL_SETTING,
'error': None,
'http_status': 'fackStatus'
}
FAKE_RES_DETAIL_ISCSI_PORTAL_INFO = {
'data': FAKE_RES_DETAIL_DATA_ISCSI_PORTAL_INFO,
'error': None,
'http_status': 'fackStatus'
}
def create_configuration(
username,
password,
management_url,
san_iscsi_ip,
poolname,
thin_provision=True):
"""Create configuration."""
configuration = mock.Mock()
configuration.san_login = username
configuration.san_password = password
configuration.qnap_management_url = management_url
configuration.san_thin_provision = thin_provision
configuration.san_iscsi_ip = san_iscsi_ip
configuration.qnap_poolname = poolname
configuration.safe_get.return_value = 'QNAP'
configuration.iscsi_ip_address = '1.2.3.4'
configuration.qnap_storage_protocol = 'iscsi'
configuration.reserved_percentage = 0
return configuration
class QnapDriverBaseTestCase(test.TestCase):
"""Base Class for the QnapDriver Tests."""
def setUp(self):
"""Setup the Qnap Driver Base TestCase."""
super(QnapDriverBaseTestCase, self).setUp()
self.driver = None
self.mock_HTTPConnection = None
self.mock_object(qnap.QnapISCSIDriver, 'TIME_INTERVAL', 0)
@staticmethod
def driver_mock_decorator(configuration):
"""Driver mock decorator."""
def driver_mock_wrapper(func):
def inner_driver_mock(
self,
mock_http_connection,
*args,
**kwargs):
"""Inner driver mock."""
self.mock_HTTPConnection = mock_http_connection
self.driver = qnap.QnapISCSIDriver(configuration=configuration)
self.driver.do_setup('context')
func(self, *args, **kwargs)
return inner_driver_mock
return driver_mock_wrapper
def tearDown(self):
"""Tear down."""
super(QnapDriverBaseTestCase, self).tearDown()
class SnapshotClass(object):
"""Snapshot Class."""
volume = {}
name = ''
volume_name = ''
volume_size = 0
metadata = {'snapshot_id': 'fakeSnapshotId'}
def __init__(self, volume, volume_size):
"""Init."""
self.volume = volume
self.volume_size = volume_size
def __getitem__(self, arg):
"""Getitem."""
return {
'display_name': 'fakeSnapshotDisplayName',
'id': 'fakeSnapshotId',
'volume_size': self.volume_size,
'metadata': self.metadata
}[arg]
class VolumeClass(object):
"""Volume Class."""
display_name = ''
id = ''
size = 0
name = ''
volume_metadata = {}
def __init__(self, display_name, id, size, name):
"""Init."""
self.display_name = display_name
self.id = id
self.size = size
self.name = name
self.volume_metadata = {'LUNNAA': 'fakeLunNaa'}
def __getitem__(self, arg):
"""Getitem."""
return {
'display_name': self.display_name,
'size': self.size,
'id': self.id,
'name': self.name,
'provider_location': None,
'volume_metadata': self.volume_metadata,
'metadata': self.volume_metadata
}[arg]
def __setitem__(self, key, value):
"""Setitem."""
if key == 'display_name':
self.display_name = value
class HostClass(object):
"""Host Class."""
def __init__(self, host):
"""Init."""
self.host = host
def __getitem__(self, arg):
"""Getitem."""
return {
'host': 'fakeHost',
}[arg]
class FakeLoginResponse(object):
"""Fake login response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_LOGIN
class FakeGetBasicInfoResponse(object):
"""Fake GetBasicInfo response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_GETBASIC_INFO
class FakeGetBasicInfoTsResponse(object):
"""Fake GetBasicInfoTs response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_GETBASIC_INFO_TS
class FakeGetBasicInfoTesResponse(object):
"""Fake GetBasicInfoTs response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_GETBASIC_INFO_TES
class FakeLunInfoResponse(object):
"""Fake lun info response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_LUN_INFO
class FakePoolInfoResponse(object):
"""Fake pool info response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_SPECIFIC_POOL_INFO
class FakeCreateLunResponse(object):
"""Fake create lun response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_CREATE_LUN
class FakeCreatTargetResponse(object):
"""Fake create target response."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_CREATE_TARGET
class FakeGetIscsiPortalInfoResponse(object):
"""Fake get iscsi portal inforesponse."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_ISCSI_PORTAL_INFO
def __repr__(self):
"""Repr."""
return six.StringIO(FAKE_RES_DETAIL_DATA_ISCSI_PORTAL_INFO)
class FakeCreateSnapshotResponse(object):
"""Fake Create snapshot inforesponse."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_SNAPSHOT
class FakeGetAllIscsiPortalSetting(object):
"""Fake get all iSCSI portal setting."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_GET_ALL_ISCSI_PORTAL_SETTING
class FakeGetAllEthernetIp(object):
"""Fake get all ethernet ip setting."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_ETHERNET_IP
class FakeTargetInfo(object):
"""Fake target info setting."""
status = 'fackStatus'
def read(self):
"""Mock response.read."""
return FAKE_RES_DETAIL_DATA_TARGET_INFO
class QnapDriverLoginTestCase(QnapDriverBaseTestCase):
"""Tests do_setup api."""
@mock.patch('six.moves.http_client.HTTPConnection')
def test_do_setup_positive(
self,
mock_http_connection):
"""Test do_setup with http://1.2.3.4:8080."""
fake_login_response = FakeLoginResponse()
fake_get_basic_info_response = FakeGetBasicInfoResponse()
mock_http_connection.return_value.getresponse.side_effect = ([
fake_login_response,
fake_get_basic_info_response,
fake_login_response])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Storage Pool 1',
True))
self.driver.do_setup('context')
self.assertEqual('fakeSid', self.driver.api_executor.sid)
self.assertEqual('admin', self.driver.api_executor.username)
self.assertEqual('qnapadmin', self.driver.api_executor.password)
self.assertEqual('1.2.3.4', self.driver.api_executor.ip)
self.assertEqual('8080', self.driver.api_executor.port)
self.assertFalse(self.driver.api_executor.ssl)
@mock.patch('six.moves.http_client.HTTPSConnection')
def test_do_setup_positive_with_ssl(
self,
mock_http_connection):
"""Test do_setup with https://1.2.3.4:443."""
fake_login_response = FakeLoginResponse()
fake_get_basic_info_response = FakeGetBasicInfoResponse()
mock_http_connection.return_value.getresponse.side_effect = ([
fake_login_response,
fake_get_basic_info_response,
fake_login_response])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'https://1.2.3.4:443',
'1.2.3.4',
'Storage Pool 1',
True))
self.driver.do_setup('context')
self.assertEqual('fakeSid', self.driver.api_executor.sid)
self.assertEqual('admin', self.driver.api_executor.username)
self.assertEqual('qnapadmin', self.driver.api_executor.password)
self.assertEqual('1.2.3.4', self.driver.api_executor.ip)
self.assertEqual('443', self.driver.api_executor.port)
self.assertTrue(self.driver.api_executor.ssl)
class QnapDriverVolumeTestCase(QnapDriverBaseTestCase):
"""Tests volume related api's."""
def get_lun_info_return_value(self):
"""Return the lun form get_lun_info method."""
root = ET.fromstring(FAKE_RES_DETAIL_DATA_LUN_INFO)
lun_list = root.find('iSCSILUNList')
lun_info_tree = lun_list.findall('LUNInfo')
for lun in lun_info_tree:
return lun
def get_mapped_lun_info_return_value(self):
"""Return the lun form get_lun_info method."""
root = ET.fromstring(FAKE_RES_DETAIL_DATA_MAPPED_LUN_INFO)
lun_list = root.find('iSCSILUNList')
lun_info_tree = lun_list.findall('LUNInfo')
for lun in lun_info_tree:
return lun
def get_snapshot_info_return_value(self):
"""Return the lun form get_lun_info method."""
root = ET.fromstring(FAKE_RES_DETAIL_DATA_SNAPSHOT)
snapshot_list = root.find('SnapshotList')
snapshot_info_tree = snapshot_list.findall('row')
for snapshot in snapshot_info_tree:
return snapshot
@mock.patch.object(qnap.QnapISCSIDriver, '_get_volume_metadata')
@mock.patch.object(qnap.QnapISCSIDriver, '_gen_random_name')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_create_volume_positive(
self,
mock_api_executor,
mock_gen_random_name,
mock_get_volume_metadata):
"""Test create_volume with fake_volume."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_api_executor.return_value.get_lun_info.side_effect = [
None,
self.get_lun_info_return_value()]
mock_gen_random_name.return_value = 'fakeLun'
mock_api_executor.return_value.create_lun.return_value = 'fakeIndex'
mock_get_volume_metadata.return_value = {}
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.create_volume(fake_volume)
mock_api_executor.return_value.create_lun.assert_called_once_with(
fake_volume,
self.driver.configuration.qnap_poolname,
'fakeLun',
True)
expected_call_list = [
mock.call(LUNName='fakeLun'),
mock.call(LUNIndex='fakeIndex')]
self.assertEqual(
expected_call_list,
mock_api_executor.return_value.get_lun_info.call_args_list)
@mock.patch.object(
qnap.QnapISCSIDriver, '_get_lun_naa_from_volume_metadata')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_delete_volume_positive(
self,
mock_api_executor,
mock_get_lun_naa_from_volume_metadata):
"""Test delete_volume with fake_volume."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_get_lun_naa_from_volume_metadata.return_value = FAKE_LUNNAA
mock_api_executor.return_value.get_lun_info.return_value = (
self.get_lun_info_return_value())
mock_api_executor.return_value.delete_lun.return_value = None
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.delete_volume(fake_volume)
mock_api_executor.return_value.delete_lun.assert_called_once_with(
'fakeLunIndex')
@mock.patch.object(
qnap.QnapISCSIDriver, '_get_lun_naa_from_volume_metadata')
@mock.patch.object(qnap.QnapISCSIDriver, '_gen_random_name')
@mock.patch.object(qnap.QnapISCSIDriver, '_get_volume_metadata')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_create_cloned_volume_volume_size_less_src_verf(
self,
mock_api_executor,
mock_get_volume_metadata,
mock_gen_random_name,
mock_get_lun_naa_from_volume_metadata):
"""Test create cloned volume."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 90, 'fakeLunName')
fake_src_vref = VolumeClass(
'fakeSrcVrefName', 'fakeId', 100, 'fakeSrcVref')
mock_get_lun_naa_from_volume_metadata.return_value = 'fakeLunNaa'
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_get_volume_metadata.return_value = {}
mock_api_executor.return_value.get_lun_info.side_effect = [
self.get_lun_info_return_value(),
None,
self.get_lun_info_return_value()]
mock_gen_random_name.side_effect = ['fakeSnapshot', 'fakeLun']
mock_api_executor.return_value.get_snapshot_info.side_effect = [
None, self.get_snapshot_info_return_value()]
mock_api_executor.return_value.create_snapshot_api.return_value = (
'fakeSnapshotId')
mock_api_executor.return_value.clone_snapshot.return_value = None
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.create_cloned_volume(fake_volume, fake_src_vref)
expected_call_list = [
mock.call(LUNNAA='fakeLunNaa'),
mock.call(LUNName='fakeLun'),
mock.call(LUNName='fakeLun')]
self.assertEqual(
expected_call_list,
mock_api_executor.return_value.get_lun_info.call_args_list)
expected_call_list = [
mock.call(lun_index='fakeLunIndex', snapshot_name='fakeSnapshot'),
mock.call(lun_index='fakeLunIndex', snapshot_name='fakeSnapshot')]
self.assertEqual(
expected_call_list,
mock_api_executor.return_value.get_snapshot_info.call_args_list)
mock_api_return = mock_api_executor.return_value
mock_api_return.create_snapshot_api.assert_called_once_with(
'fakeLunIndex', 'fakeSnapshot')
mock_api_return.clone_snapshot.assert_called_once_with(
'fakeSnapshotId', 'fakeLun')
@mock.patch.object(
qnap.QnapISCSIDriver, '_get_lun_naa_from_volume_metadata')
@mock.patch.object(qnap.QnapISCSIDriver, '_extend_lun')
@mock.patch.object(qnap.QnapISCSIDriver, '_gen_random_name')
@mock.patch.object(qnap.QnapISCSIDriver, '_get_volume_metadata')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_create_cloned_volume_volume_size_morethan_src_verf(
self,
mock_api_executor,
mock_get_volume_metadata,
mock_gen_random_name,
mock_extend_lun,
mock_get_lun_naa_from_volume_metadata):
"""Test create cloned volume."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
fake_src_vref = VolumeClass(
'fakeSrcVrefName', 'fakeId', 90, 'fakeSrcVref')
mock_get_lun_naa_from_volume_metadata.return_value = 'fakeLunNaa'
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_get_volume_metadata.return_value = FAKE_LUNNAA
mock_api_executor.return_value.get_lun_info.side_effect = [
self.get_lun_info_return_value(),
None,
self.get_lun_info_return_value()]
mock_gen_random_name.side_effect = ['fakeSnapshot', 'fakeLun']
mock_api_executor.return_value.get_snapshot_info.side_effect = [
None, self.get_snapshot_info_return_value()]
mock_api_executor.return_value.create_snapshot_api.return_value = (
'fakeSnapshotId')
mock_api_executor.return_value.clone_snapshot.return_value = None
mock_extend_lun.return_value = None
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.create_cloned_volume(fake_volume, fake_src_vref)
mock_extend_lun.assert_called_once_with(fake_volume, 'fakeLunNaa')
@mock.patch.object(qnap.QnapISCSIDriver, '_gen_random_name')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_create_snapshot_positive(
self,
mock_api_executor,
mock_gen_random_name):
"""Test create snapshot."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
snapshot = SnapshotClass(fake_volume, 100)
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_api_executor.return_value.get_lun_info.return_value = (
self.get_lun_info_return_value())
mock_gen_random_name.return_value = 'fakeSnapshot'
mock_api_executor.return_value.get_snapshot_info.side_effect = [
None, self.get_snapshot_info_return_value()]
mock_api_executor.return_value.create_snapshot_api.return_value = (
'fakeSnapshotId')
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.create_snapshot(snapshot)
mock_api_return = mock_api_executor.return_value
mock_api_return.get_lun_info.assert_called_once_with(
LUNNAA='fakeLunNaa')
expected_call_list = [
mock.call(lun_index='fakeLunIndex', snapshot_name='fakeSnapshot'),
mock.call(lun_index='fakeLunIndex', snapshot_name='fakeSnapshot')]
self.assertEqual(
expected_call_list,
mock_api_executor.return_value.get_snapshot_info.call_args_list)
mock_api_return.create_snapshot_api.assert_called_once_with(
'fakeLunIndex', 'fakeSnapshot')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_delete_snapshot_positive(
self,
mock_api_executor):
"""Test delete snapshot."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
fake_snapshot = SnapshotClass(fake_volume, 100)
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_api_executor.return_value.api_delete_snapshot.return_value = None
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.delete_snapshot(fake_snapshot)
mock_api_return = mock_api_executor.return_value
mock_api_return.api_delete_snapshot.assert_called_once_with(
'fakeSnapshotId')
@mock.patch.object(qnap.QnapISCSIDriver, '_get_volume_metadata')
@mock.patch.object(qnap.QnapISCSIDriver, '_extend_lun')
@mock.patch.object(qnap.QnapISCSIDriver, '_gen_random_name')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_create_volume_from_snapshot_positive_volsize_more_snapshotvolsize(
self,
mock_api_executor,
mock_gen_random_name,
mock_extend_lun,
mock_get_volume_metadata):
"""Test create volume from snapshot positive."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
fake_snapshot = SnapshotClass(fake_volume, 90)
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_gen_random_name.return_value = 'fakeLun'
mock_api_executor.return_value.get_lun_info.side_effect = [
None,
self.get_lun_info_return_value()]
mock_api_executor.return_value.clone_snapshot.return_value = None
mock_api_executor.return_value.create_snapshot_api.return_value = (
'fakeSnapshotId')
mock_extend_lun.return_value = None
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.create_volume_from_snapshot(fake_volume, fake_snapshot)
expected_call_list = [
mock.call(LUNName='fakeLun'),
mock.call(LUNName='fakeLun')]
self.assertEqual(
expected_call_list,
mock_api_executor.return_value.get_lun_info.call_args_list)
mock_api_return = mock_api_executor.return_value
mock_api_return.clone_snapshot.assert_called_once_with(
'fakeSnapshotId', 'fakeLun')
mock_extend_lun.assert_called_once_with(fake_volume, 'fakeLunNaa')
def get_specific_poolinfo_return_value(self):
"""Get specific pool info."""
root = ET.fromstring(FAKE_RES_DETAIL_DATA_SPECIFIC_POOL_INFO)
pool_list = root.find('Pool_Index')
pool_info_tree = pool_list.findall('row')
for pool in pool_info_tree:
return pool
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_get_volume_stats(
self,
mock_api_executor):
"""Get volume stats."""
mock_api_return = mock_api_executor.return_value
mock_api_return.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_api_return.get_specific_poolinfo.return_value = (
self.get_specific_poolinfo_return_value())
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
expected_res = {'volume_backend_name': 'QNAP',
'vendor_name': 'QNAP',
'driver_version': '1.0.0',
'storage_protocol': 'iscsi'}
single_pool = dict(
pool_name=self.driver.configuration.qnap_poolname,
total_capacity_gb=930213412209 / units.Gi,
free_capacity_gb=928732941681 / units.Gi,
provisioned_capacity_gb=1480470528 / units.Gi,
reserved_percentage=self.driver.configuration.reserved_percentage,
QoS_support=False)
expected_res['pools'] = [single_pool]
self.assertEqual(
expected_res,
self.driver.get_volume_stats(refresh=True))
mock_api_return.get_specific_poolinfo.assert_called_once_with(
self.driver.configuration.qnap_poolname)
@mock.patch.object(qnap.QnapISCSIDriver, '_extend_lun')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_extend_volume(
self,
mock_api_executor,
mock_extend_lun):
"""Test extend volume."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.extend_volume(fake_volume, 'fakeSize')
mock_extend_lun.assert_called_once_with(fake_volume, '')
@mock.patch.object(
qnap.QnapISCSIDriver, '_get_lun_naa_from_volume_metadata')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_extend_lun(
self,
mock_api_executor,
mock_get_lun_naa_from_volume_metadata):
"""Test _extend_lun method."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_get_lun_naa_from_volume_metadata.return_value = 'fakeLunNaa'
mock_api_executor.return_value.get_lun_info.return_value = (
self.get_lun_info_return_value())
mock_api_executor.return_value.edit_lun.return_value = None
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver._extend_lun(fake_volume, '')
mock_api_return = mock_api_executor.return_value
mock_api_return.get_lun_info.assert_called_once_with(
LUNNAA='fakeLunNaa')
expect_lun = {
'LUNName': 'fakeLunName',
'LUNCapacity': fake_volume['size'],
'LUNIndex': 'fakeLunIndex',
'LUNThinAllocate': 'fakeLunThinAllocate',
'LUNPath': 'fakeLunPath',
'LUNStatus': '1'}
mock_api_return.edit_lun.assert_called_once_with(expect_lun)
@mock.patch.object(qnap.QnapISCSIDriver,
'_get_lun_naa_from_volume_metadata')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_initialize_connection_with_target_exist(
self,
mock_api_executor,
mock_get_lun_naa_from_volume_metadata):
"""Test initialize connection."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
fake_connector = {'initiator': 'fakeInitiatorIqn'}
mock_api_return = mock_api_executor.return_value
mock_api_return.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_api_return.get_iscsi_portal_info.return_value = (
FAKE_RES_DETAIL_ISCSI_PORTAL_INFO)
mock_get_lun_naa_from_volume_metadata.return_value = 'fakeLunNaa'
mock_api_executor.return_value.get_lun_info.side_effect = [
self.get_lun_info_return_value(),
self.get_lun_info_return_value()]
mock_api_return.get_all_iscsi_portal_setting.return_value = (
FAKE_RES_DETAIL_GET_ALL_ISCSI_PORTAL_SETTING)
mock_api_executor.return_value.map_lun.return_value = None
mock_api_return.get_ethernet_ip.return_value = ['1.2.3.4']
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
expected_properties = {
'target_discovered': True,
'target_portal': '1.2.3.4:fakeServicePort',
'target_iqn': 'fakeTargetIqn',
'target_lun': 1,
'volume_id': fake_volume['id'],
'target_portals': ['1.2.3.4:fakeServicePort'],
'target_iqns': ['fakeTargetIqn'],
'target_luns': [1]}
expected_return = {
'driver_volume_type': 'iscsi', 'data': expected_properties}
self.assertEqual(expected_return, self.driver.initialize_connection(
fake_volume, fake_connector))
mock_api_return = mock_api_executor.return_value
mock_api_return.get_iscsi_portal_info.assert_called_once_with()
expected_call_list = [
mock.call(LUNNAA='fakeLunNaa'),
mock.call(LUNNAA='fakeLunNaa')]
self.assertEqual(
expected_call_list,
mock_api_executor.return_value.get_lun_info.call_args_list)
mock_api_return = mock_api_executor.return_value
mock_api_return.get_all_iscsi_portal_setting.assert_called_once_with()
mock_api_return.map_lun.assert_called_once_with(
'fakeLunIndex', 'fakeTargeIndex')
mock_api_return.get_ethernet_ip.assert_called_once_with(type='data')
@mock.patch.object(
qnap.QnapISCSIDriver, '_get_lun_naa_from_volume_metadata')
@mock.patch('cinder.volume.drivers.qnap.QnapAPIExecutor')
def test_terminate_connection(
self,
mock_api_executor,
mock_get_lun_naa_from_volume_metadata):
"""Test terminate connection."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
fake_connector = {'initiator': 'fakeInitiator'}
mock_get_lun_naa_from_volume_metadata.return_value = 'fakeLunNaa'
mock_api_executor.return_value.get_basic_info.return_value = (
'ES1640dc ', 'ES1640dc ', '1.1.3')
mock_api_executor.return_value.get_lun_info.return_value = (
self.get_mapped_lun_info_return_value())
mock_api_executor.return_value.unmap_lun.return_value = None
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.terminate_connection(fake_volume, fake_connector)
mock_api_return = mock_api_executor.return_value
mock_api_return.get_lun_info.assert_called_once_with(
LUNNAA='fakeLunNaa')
mock_api_return.unmap_lun.assert_called_once_with(
'fakeLunIndex', '9')
class QnapAPIExecutorTestCase(QnapDriverBaseTestCase):
"""Tests QnapAPIExecutor."""
@mock.patch('six.moves.http_client.HTTPConnection')
def test_create_lun(
self,
mock_http_connection):
"""Test create lun."""
fake_volume = VolumeClass(
'fakeDisplayName', 'fakeId', 100, 'fakeLunName')
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateLunResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.assertEqual(
'fakeLunIndex',
self.driver.api_executor.create_lun(
fake_volume, 'fakepool', 'fakeLun', 'False'))
fake_params = {}
fake_params['func'] = 'add_lun'
fake_params['FileIO'] = 'no'
fake_params['LUNThinAllocate'] = '1'
fake_params['LUNName'] = 'fakeLun'
fake_params['LUNPath'] = 'fakeLun'
fake_params['poolID'] = 'fakepool'
fake_params['lv_ifssd'] = 'no'
fake_params['LUNCapacity'] = 100
fake_params['lv_threshold'] = '80'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
create_lun_url = (
'/cgi-bin/disk/iscsi_lun_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', create_lun_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_delete_lun(
self,
mock_http_connection):
"""Test delete lun."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateLunResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.delete_lun('fakeLunIndex')
fake_params = {}
fake_params['func'] = 'remove_lun'
fake_params['run_background'] = '1'
fake_params['ha_sync'] = '1'
fake_params['LUNIndex'] = 'fakeLunIndex'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
delete_lun_url = (
'/cgi-bin/disk/iscsi_lun_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', delete_lun_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_specific_poolinfo(
self,
mock_http_connection):
"""Test get specific pool info."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakePoolInfoResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_specific_poolinfo('Pool1')
fake_params = {}
fake_params['store'] = 'poolInfo'
fake_params['func'] = 'extra_get'
fake_params['poolID'] = 'Pool1'
fake_params['Pool_Info'] = '1'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_specific_poolinfo_url = (
'/cgi-bin/disk/disk_manage.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_specific_poolinfo_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_create_target(
self,
mock_http_connection):
"""Test create target."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreatTargetResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.create_target('fakeTargetName', 'sca')
fake_params = {}
fake_params['func'] = 'add_target'
fake_params['targetName'] = 'fakeTargetName'
fake_params['targetAlias'] = 'fakeTargetName'
fake_params['bTargetDataDigest'] = '0'
fake_params['bTargetHeaderDigest'] = '0'
fake_params['bTargetClusterEnable'] = '1'
fake_params['controller_name'] = 'sca'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
create_target_url = (
'/cgi-bin/disk/iscsi_target_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', create_target_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_add_target_init(
self,
mock_http_connection):
"""Test add target init."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateLunResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.add_target_init(
'fakeTargetIqn', 'fakeInitiatorIqn')
fake_params = {}
fake_params['func'] = 'add_init'
fake_params['targetIQN'] = 'fakeTargetIqn'
fake_params['initiatorIQN'] = 'fakeInitiatorIqn'
fake_params['initiatorAlias'] = 'fakeInitiatorIqn'
fake_params['bCHAPEnable'] = '0'
fake_params['CHAPUserName'] = ''
fake_params['CHAPPasswd'] = ''
fake_params['bMutualCHAPEnable'] = '0'
fake_params['mutualCHAPUserName'] = ''
fake_params['mutualCHAPPasswd'] = ''
fake_params['ha_sync'] = '1'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
add_target_init_url = (
'/cgi-bin/disk/iscsi_target_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', add_target_init_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_map_lun(
self,
mock_http_connection):
"""Test map lun."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateLunResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.map_lun(
'fakeLunIndex', 'fakeTargetIndex')
fake_params = {}
fake_params['func'] = 'add_lun'
fake_params['LUNIndex'] = 'fakeLunIndex'
fake_params['targetIndex'] = 'fakeTargetIndex'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
map_lun_url = (
'/cgi-bin/disk/iscsi_target_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', map_lun_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_unmap_lun(
self,
mock_http_connection):
"""Test unmap lun."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateLunResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.unmap_lun(
'fakeLunIndex', 'fakeTargetIndex')
fake_params = {}
fake_params['func'] = 'remove_lun'
fake_params['LUNIndex'] = 'fakeLunIndex'
fake_params['targetIndex'] = 'fakeTargetIndex'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
unmap_lun_url = (
'/cgi-bin/disk/iscsi_target_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', unmap_lun_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_iscsi_portal_info(
self,
mock_http_connection):
"""Test get iscsi portal info."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateLunResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_iscsi_portal_info()
fake_params = {}
fake_params['func'] = 'extra_get'
fake_params['iSCSI_portal'] = '1'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_iscsi_portal_info_url = (
'/cgi-bin/disk/iscsi_portal_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_iscsi_portal_info_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_lun_info(
self,
mock_http_connection):
"""Test get lun info."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeLunInfoResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_lun_info()
fake_params = {}
fake_params['func'] = 'extra_get'
fake_params['lunList'] = '1'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_lun_info_url = (
'/cgi-bin/disk/iscsi_portal_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_lun_info_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_snapshot_info(
self,
mock_http_connection):
"""Test get snapshot info."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeLunInfoResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_snapshot_info(
lun_index='fakeLunIndex', snapshot_name='fakeSnapshotName')
fake_params = {}
fake_params['func'] = 'extra_get'
fake_params['LUNIndex'] = 'fakeLunIndex'
fake_params['snapshot_list'] = '1'
fake_params['snap_start'] = '0'
fake_params['snap_count'] = '100'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_snapshot_info_url = (
'/cgi-bin/disk/snapshot.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_snapshot_info_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_create_snapshot_api(
self,
mock_http_connection):
"""Test create snapshot api."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateSnapshotResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.create_snapshot_api(
'fakeLunIndex', 'fakeSnapshotName')
fake_params = {}
fake_params['func'] = 'create_snapshot'
fake_params['lunID'] = 'fakeLunIndex'
fake_params['snapshot_name'] = 'fakeSnapshotName'
fake_params['expire_min'] = '0'
fake_params['vital'] = '1'
fake_params['snapshot_type'] = '0'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
create_snapshot_api_url = (
'/cgi-bin/disk/snapshot.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', create_snapshot_api_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_api_delete_snapshot(
self,
mock_http_connection):
"""Test api de;ete snapshot."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateSnapshotResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.api_delete_snapshot(
'fakeSnapshotId')
fake_params = {}
fake_params['func'] = 'del_snapshots'
fake_params['snapshotID'] = 'fakeSnapshotId'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
api_delete_snapshot_url = (
'/cgi-bin/disk/snapshot.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', api_delete_snapshot_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_clone_snapshot(
self,
mock_http_connection):
"""Test clone snapshot."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeCreateSnapshotResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.clone_snapshot(
'fakeSnapshotId', 'fakeLunName')
fake_params = {}
fake_params['func'] = 'clone_qsnapshot'
fake_params['by_lun'] = '1'
fake_params['snapshotID'] = 'fakeSnapshotId'
fake_params['new_name'] = 'fakeLunName'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
clone_snapshot_url = (
'/cgi-bin/disk/snapshot.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', clone_snapshot_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_edit_lun(
self,
mock_http_connection):
"""Test edit lun."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeLunInfoResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
fake_lun = {'LUNName': 'fakeLunName',
'LUNCapacity': 100,
'LUNIndex': 'fakeLunIndex',
'LUNThinAllocate': False,
'LUNPath': 'fakeLunPath',
'LUNStatus': 'fakeLunStatus'}
self.driver.api_executor.edit_lun(fake_lun)
fake_params = {}
fake_params['func'] = 'edit_lun'
fake_params['LUNName'] = 'fakeLunName'
fake_params['LUNCapacity'] = 100
fake_params['LUNIndex'] = 'fakeLunIndex'
fake_params['LUNThinAllocate'] = False
fake_params['LUNPath'] = 'fakeLunPath'
fake_params['LUNStatus'] = 'fakeLunStatus'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
edit_lun_url = (
'/cgi-bin/disk/iscsi_lun_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', edit_lun_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_all_iscsi_portal_setting(
self,
mock_http_connection):
"""Test get all iscsi portal setting."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeLunInfoResponse()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_all_iscsi_portal_setting()
fake_params = {}
fake_params['func'] = 'get_all'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_all_iscsi_portal_setting_url = (
'/cgi-bin/disk/iscsi_portal_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_all_iscsi_portal_setting_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_ethernet_ip(
self,
mock_http_connection):
"""Test get ethernet ip."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeGetAllEthernetIp()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_ethernet_ip(type='data')
fake_params = {}
fake_params['subfunc'] = 'net_setting'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_ethernet_ip_url = (
'/cgi-bin/sys/sysRequest.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_ethernet_ip_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_target_info(
self,
mock_http_connection):
"""Test get target info."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoResponse(),
FakeLoginResponse(),
FakeTargetInfo()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_target_info('fakeTargetIndex')
fake_params = {}
fake_params['func'] = 'extra_get'
fake_params['targetInfo'] = 1
fake_params['targetIndex'] = 'fakeTargetIndex'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_target_info_url = (
'/cgi-bin/disk/iscsi_portal_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_target_info_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
class QnapAPIExecutorTsTestCase(QnapDriverBaseTestCase):
"""Tests QnapAPIExecutorTS."""
@mock.patch('six.moves.http_client.HTTPConnection')
def test_remove_target_init(
self,
mock_http_connection):
"""Test remove target init."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoTsResponse(),
FakeLoginResponse(),
FakeTargetInfo()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Storage Pool 1',
True))
self.driver.do_setup('context')
self.driver.api_executor.remove_target_init(
'fakeTargetIqn', 'fakeDefaultAcl')
fake_params = {}
fake_params['func'] = 'remove_init'
fake_params['targetIQN'] = 'fakeTargetIqn'
fake_params['initiatorIQN'] = 'fakeDefaultAcl'
fake_params['ha_sync'] = '1'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
remove_target_init_url = (
'/cgi-bin/disk/iscsi_target_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', remove_target_init_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_target_info(
self,
mock_http_connection):
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoTsResponse(),
FakeLoginResponse(),
FakeTargetInfo()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Storage Pool 1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_target_info(
'fakeTargetIndex')
fake_params = {}
fake_params['func'] = 'extra_get'
fake_params['targetInfo'] = 1
fake_params['targetIndex'] = 'fakeTargetIndex'
fake_params['ha_sync'] = '1'
fake_params['sid'] = 'fakeSid'
sanitized_params = {}
for key in fake_params:
value = fake_params[key]
if value is not None:
sanitized_params[key] = six.text_type(value)
sanitized_params = urllib.parse.urlencode(sanitized_params)
get_target_info_url = (
'/cgi-bin/disk/iscsi_portal_setting.cgi?%s' % sanitized_params)
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_target_info_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_ethernet_ip(
self,
mock_http_connection):
"""Test get ethernet ip."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoTsResponse(),
FakeLoginResponse(),
FakeGetAllEthernetIp()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Storage Pool 1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_ethernet_ip(
type='data')
get_ethernet_ip_url = (
'/cgi-bin/sys/sysRequest.cgi?subfunc=net_setting&sid=fakeSid')
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_ethernet_ip_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
class QnapAPIExecutorTesTestCase(QnapDriverBaseTestCase):
"""Tests QnapAPIExecutorTES."""
@mock.patch('six.moves.http_client.HTTPConnection')
def test_get_ethernet_ip(
self,
mock_http_connection):
"""Test get ehternet ip."""
mock_http_connection.return_value.getresponse.side_effect = ([
FakeLoginResponse(),
FakeGetBasicInfoTesResponse(),
FakeLoginResponse(),
FakeGetAllEthernetIp()])
self.driver = qnap.QnapISCSIDriver(
configuration=create_configuration(
'admin',
'qnapadmin',
'http://1.2.3.4:8080',
'1.2.3.4',
'Pool1',
True))
self.driver.do_setup('context')
self.driver.api_executor.get_ethernet_ip(
type='data')
get_ethernet_ip_url = (
'/cgi-bin/sys/sysRequest.cgi?subfunc=net_setting&sid=fakeSid')
expected_call_list = [
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_basic_info_url),
mock.call('POST', login_url, global_sanitized_params, header),
mock.call('GET', get_ethernet_ip_url)]
self.assertEqual(
expected_call_list,
mock_http_connection.return_value.request.call_args_list)
| 36.561355
| 83
| 0.599086
| 8,200
| 79,850
| 5.513171
| 0.059756
| 0.040148
| 0.00511
| 0.006813
| 0.80154
| 0.778999
| 0.743209
| 0.723323
| 0.701889
| 0.674438
| 0
| 0.016361
| 0.2866
| 79,850
| 2,183
| 84
| 36.578104
| 0.777249
| 0.032849
| 0
| 0.723094
| 0
| 0
| 0.220244
| 0.08623
| 0
| 0
| 0
| 0
| 0.034753
| 1
| 0.036996
| false
| 0.011211
| 0.006166
| 0
| 0.081839
| 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
|
31e072f060417143cb24949c8da65c72c4ad67d9
| 133
|
py
|
Python
|
examples/test04.py
|
pyrate-build/pyrate-build
|
8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d
|
[
"Apache-2.0"
] | 41
|
2016-01-14T15:28:53.000Z
|
2022-03-17T12:43:01.000Z
|
examples/test04.py
|
pyrate-build/pyrate-build
|
8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d
|
[
"Apache-2.0"
] | 5
|
2016-01-20T09:42:30.000Z
|
2016-12-22T22:54:27.000Z
|
examples/test04.py
|
pyrate-build/pyrate-build
|
8ce9c2dd2b94b50aebfd058e1dd8731cbb192e6d
|
[
"Apache-2.0"
] | 3
|
2016-01-20T09:40:28.000Z
|
2020-10-29T09:33:48.000Z
|
executable('test04.bin', 'test.cpp', no_rename = True)
executable('test04.bin', 'test.cpp', no_rename = True, compiler_opts = '-O3')
| 44.333333
| 77
| 0.699248
| 19
| 133
| 4.736842
| 0.578947
| 0.355556
| 0.422222
| 0.511111
| 0.844444
| 0.844444
| 0.844444
| 0.844444
| 0
| 0
| 0
| 0.041667
| 0.097744
| 133
| 2
| 78
| 66.5
| 0.708333
| 0
| 0
| 0
| 0
| 0
| 0.293233
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 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
| 0
|
0
| 10
|
730e14ecaa639393caef7936e4c6c94ad599f913
| 1,286
|
py
|
Python
|
app/filters.py
|
saad4software/greenhands_backend
|
af1648930762cdf2a8d8713c61aeaa1b294ffc62
|
[
"Apache-2.0"
] | null | null | null |
app/filters.py
|
saad4software/greenhands_backend
|
af1648930762cdf2a8d8713c61aeaa1b294ffc62
|
[
"Apache-2.0"
] | null | null | null |
app/filters.py
|
saad4software/greenhands_backend
|
af1648930762cdf2a8d8713c61aeaa1b294ffc62
|
[
"Apache-2.0"
] | null | null | null |
from django_filters import rest_framework as filters
from .models import *
class CategoryDataFilter(filters.FilterSet):
active = filters.BooleanFilter(field_name="active")
class Meta:
model = Category
fields = ['active']
class NeedDataFilter(filters.FilterSet):
active = filters.BooleanFilter(field_name="active")
class Meta:
model = Need
fields = ['active']
class OrganizersDataFilter(filters.FilterSet):
min_lat = filters.NumberFilter(field_name='lat', lookup_expr="gte")
max_lat = filters.NumberFilter(field_name='lat', lookup_expr="lte")
min_lng = filters.NumberFilter(field_name='lng', lookup_expr="gte")
max_lng = filters.NumberFilter(field_name='lng', lookup_expr="lte")
class Meta:
model = User
fields = ['min_lat', 'max_lat', 'min_lng', 'max_lng']
class PointsDataFilter(filters.FilterSet):
min_lat = filters.NumberFilter(field_name='lat', lookup_expr="gte")
max_lat = filters.NumberFilter(field_name='lat', lookup_expr="lte")
min_lng = filters.NumberFilter(field_name='lng', lookup_expr="gte")
max_lng = filters.NumberFilter(field_name='lng', lookup_expr="lte")
class Meta:
model = Point
fields = ['min_lat', 'max_lat', 'min_lng', 'max_lng']
| 29.906977
| 71
| 0.693624
| 157
| 1,286
| 5.452229
| 0.216561
| 0.10514
| 0.224299
| 0.261682
| 0.773364
| 0.773364
| 0.773364
| 0.773364
| 0.773364
| 0.703271
| 0
| 0
| 0.177294
| 1,286
| 42
| 72
| 30.619048
| 0.809074
| 0
| 0
| 0.642857
| 0
| 0
| 0.099688
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.071429
| 0
| 0.714286
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
734f7f3ca8551cd863c0864490bacc42bf829c83
| 102
|
py
|
Python
|
simple_checker/__init__.py
|
mhorod/checker
|
acc807ba9697914b22d897c2a9e485d48f114218
|
[
"MIT"
] | 1
|
2020-11-12T11:37:34.000Z
|
2020-11-12T11:37:34.000Z
|
simple_checker/__init__.py
|
mhorod/checker
|
acc807ba9697914b22d897c2a9e485d48f114218
|
[
"MIT"
] | null | null | null |
simple_checker/__init__.py
|
mhorod/checker
|
acc807ba9697914b22d897c2a9e485d48f114218
|
[
"MIT"
] | null | null | null |
"""
Simple checker module
"""
from simple_checker.config import *
from simple_checker.testio import *
| 17
| 35
| 0.77451
| 13
| 102
| 5.923077
| 0.538462
| 0.506494
| 0.441558
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127451
| 102
| 5
| 36
| 20.4
| 0.865169
| 0.205882
| 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
|
7356031c0f642e815ddbff3ef3920f68a2dcbf20
| 7,752
|
py
|
Python
|
unittests/test_containers.py
|
mboisson/reframe
|
ebf0141596f19c7df60b59d8ad6211067f55b5e5
|
[
"BSD-3-Clause"
] | null | null | null |
unittests/test_containers.py
|
mboisson/reframe
|
ebf0141596f19c7df60b59d8ad6211067f55b5e5
|
[
"BSD-3-Clause"
] | null | null | null |
unittests/test_containers.py
|
mboisson/reframe
|
ebf0141596f19c7df60b59d8ad6211067f55b5e5
|
[
"BSD-3-Clause"
] | null | null | null |
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
# ReFrame Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
import abc
import pytest
import unittest
import reframe.core.containers as containers
from reframe.core.exceptions import ContainerError
class _ContainerPlatformTest(abc.ABC):
@abc.abstractmethod
def create_container_platform(self):
pass
@property
@abc.abstractmethod
def expected_cmd_mount_points(self):
pass
@property
@abc.abstractmethod
def expected_cmd_prepare(self):
pass
@property
@abc.abstractmethod
def expected_cmd_with_run_opts(self):
pass
def setUp(self):
self.container_platform = self.create_container_platform()
def test_mount_points(self):
self.container_platform.image = 'image:tag'
self.container_platform.mount_points = [('/path/one', '/one'),
('/path/two', '/two')]
self.container_platform.commands = ['cmd1', 'cmd2']
self.container_platform.workdir = '/stagedir'
assert (self.expected_cmd_mount_points ==
self.container_platform.launch_command())
def test_missing_image(self):
self.container_platform.commands = ['cmd']
with pytest.raises(ContainerError):
self.container_platform.validate()
def test_missing_commands(self):
self.container_platform.image = 'image:tag'
with pytest.raises(ContainerError):
self.container_platform.validate()
def test_prepare_command(self):
self.container_platform.image = 'image:tag'
assert (self.expected_cmd_prepare ==
self.container_platform.emit_prepare_commands())
def test_run_opts(self):
self.container_platform.image = 'image:tag'
self.container_platform.commands = ['cmd']
self.container_platform.mount_points = [('/path/one', '/one')]
self.container_platform.workdir = '/stagedir'
self.container_platform.options = ['--foo', '--bar']
assert (self.expected_cmd_with_run_opts ==
self.container_platform.launch_command())
class TestDocker(_ContainerPlatformTest, unittest.TestCase):
def create_container_platform(self):
return containers.Docker()
@property
def expected_cmd_mount_points(self):
return ('docker run --rm -v "/path/one":"/one" -v "/path/two":"/two" '
"image:tag bash -c 'cd /stagedir; cmd1; cmd2'")
@property
def expected_cmd_prepare(self):
return []
@property
def expected_cmd_with_run_opts(self):
return ('docker run --rm -v "/path/one":"/one" --foo --bar '
"image:tag bash -c 'cd /stagedir; cmd'")
class TestShifterNG(_ContainerPlatformTest, unittest.TestCase):
def create_container_platform(self):
return containers.ShifterNG()
@property
def expected_cmd_mount_points(self):
return ('shifter run '
'--mount=type=bind,source="/path/one",destination="/one" '
'--mount=type=bind,source="/path/two",destination="/two" '
"image:tag bash -c 'cd /stagedir; cmd1; cmd2'")
@property
def expected_cmd_prepare(self):
return ['shifter pull image:tag']
@property
def expected_cmd_with_run_opts(self):
return ('shifter run '
'--mount=type=bind,source="/path/one",destination="/one" '
"--foo --bar image:tag bash -c 'cd /stagedir; cmd'")
class TestShifterNGLocalImage(TestShifterNG):
@property
def expected_cmd_prepare(self):
return []
def test_prepare_command(self):
self.container_platform.image = 'load/library/image:tag'
assert (self.expected_cmd_prepare ==
self.container_platform.emit_prepare_commands())
class TestShifterNGWithMPI(TestShifterNG):
def create_container_platform(self):
ret = containers.ShifterNG()
ret.with_mpi = True
return ret
@property
def expected_cmd_mount_points(self):
return ('shifter run '
'--mount=type=bind,source="/path/one",destination="/one" '
'--mount=type=bind,source="/path/two",destination="/two" '
"--mpi image:tag bash -c 'cd /stagedir; cmd1; cmd2'")
@property
def expected_cmd_with_run_opts(self):
return ('shifter run '
'--mount=type=bind,source="/path/one",destination="/one" '
"--mpi --foo --bar image:tag bash -c 'cd /stagedir; cmd'")
class TestSarus(_ContainerPlatformTest, unittest.TestCase):
def create_container_platform(self):
return containers.Sarus()
@property
def expected_cmd_mount_points(self):
return ('sarus run '
'--mount=type=bind,source="/path/one",destination="/one" '
'--mount=type=bind,source="/path/two",destination="/two" '
"image:tag bash -c 'cd /stagedir; cmd1; cmd2'")
@property
def expected_cmd_prepare(self):
return ['sarus pull image:tag']
@property
def expected_cmd_with_run_opts(self):
return ('sarus run '
'--mount=type=bind,source="/path/one",destination="/one" '
"--foo --bar image:tag bash -c 'cd /stagedir; cmd'")
class TestSarusLocalImage(TestSarus):
@property
def expected_cmd_prepare(self):
return []
def test_prepare_command(self):
self.container_platform.image = 'load/library/image:tag'
assert (self.expected_cmd_prepare ==
self.container_platform.emit_prepare_commands())
class TestSarusWithMPI(TestSarus):
def create_container_platform(self):
ret = containers.Sarus()
ret.with_mpi = True
return ret
@property
def expected_cmd_mount_points(self):
return ('sarus run '
'--mount=type=bind,source="/path/one",destination="/one" '
'--mount=type=bind,source="/path/two",destination="/two" '
"--mpi image:tag bash -c 'cd /stagedir; cmd1; cmd2'")
@property
def expected_cmd_with_run_opts(self):
self.container_platform.with_mpi = True
return ('sarus run '
'--mount=type=bind,source="/path/one",destination="/one" '
"--mpi --foo --bar image:tag bash -c 'cd /stagedir; cmd'")
class TestSingularity(_ContainerPlatformTest, unittest.TestCase):
def create_container_platform(self):
return containers.Singularity()
@property
def expected_cmd_mount_points(self):
return ('singularity exec -B"/path/one:/one" -B"/path/two:/two" '
"image:tag bash -c 'cd /stagedir; cmd1; cmd2'")
@property
def expected_cmd_prepare(self):
return []
@property
def expected_cmd_with_run_opts(self):
return ('singularity exec -B"/path/one:/one" '
"--foo --bar image:tag bash -c 'cd /stagedir; cmd'")
class TestSingularityWithCuda(TestSingularity):
def create_container_platform(self):
ret = containers.Singularity()
ret.with_cuda = True
return ret
@property
def expected_cmd_mount_points(self):
return ('singularity exec -B"/path/one:/one" -B"/path/two:/two" '
"--nv image:tag bash -c 'cd /stagedir; cmd1; cmd2'")
@property
def expected_cmd_prepare(self):
return []
@property
def expected_cmd_with_run_opts(self):
self.container_platform.with_cuda = True
return ('singularity exec -B"/path/one:/one" '
"--nv --foo --bar image:tag bash -c 'cd /stagedir; cmd'")
| 32.847458
| 78
| 0.631579
| 879
| 7,752
| 5.386803
| 0.12628
| 0.118479
| 0.070961
| 0.097571
| 0.818374
| 0.768955
| 0.759662
| 0.714467
| 0.661035
| 0.635692
| 0
| 0.004272
| 0.245098
| 7,752
| 235
| 79
| 32.987234
| 0.804853
| 0.023736
| 0
| 0.748603
| 0
| 0.005587
| 0.254925
| 0.093085
| 0
| 0
| 0
| 0
| 0.027933
| 1
| 0.223464
| false
| 0.022346
| 0.027933
| 0.128492
| 0.463687
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 8
|
7361a20d69beae1c9b6ed477f8a0d21cb4d1202c
| 37,529
|
py
|
Python
|
flextensor/configs/conv2d_config.py
|
KnowingNothing/FlexTensor-Micro
|
6de200326d4999c56af3f3343282149bc5758c15
|
[
"MIT"
] | 4
|
2021-09-28T07:52:48.000Z
|
2021-12-31T01:56:12.000Z
|
flextensor/configs/conv2d_config.py
|
KnowingNothing/FlexTensor-Micro
|
6de200326d4999c56af3f3343282149bc5758c15
|
[
"MIT"
] | null | null | null |
flextensor/configs/conv2d_config.py
|
KnowingNothing/FlexTensor-Micro
|
6de200326d4999c56af3f3343282149bc5758c15
|
[
"MIT"
] | null | null | null |
import copy
def copy_change_batch(batch, x):
ret = copy.deepcopy(x[1:])
ret = (batch,) + ret
return ret
overfeat_shapes = [
(1, 3, 192, 192, 96, 3, 11, 11, 1, 4, 5, 1, 1),
(1, 96, 24, 24, 256, 96, 5, 5, 1, 1, 2, 1, 1),
(1, 256, 12, 12, 512, 256, 3, 3, 1, 1, 1, 1, 1),
(1, 512, 12, 12, 1024, 512, 3, 3, 1, 1, 1, 1, 1),
(1, 1024, 12, 12, 1024, 1024, 3, 3, 1, 1, 1, 1, 1)
]
yolo_shapes_b1 = [
# batch, in_channel, height, width, out_channel, _, k_h, k_w, _, stride, padding, dilation, groups = shape
# yolo
(1, 3, 448, 448, 64, 3, 7, 7, 1, 2, 3, 1, 1), # conv1 0
(1, 64, 112, 112, 192, 64, 3, 3, 1, 1, 1, 1, 1), # conv2 1
(1, 192, 56, 56, 128, 192, 1, 1, 1, 1, 0, 1, 1), # conv3 2
(1, 128, 56, 56, 256, 128, 3, 3, 1, 1, 1, 1, 1), # conv4 3
(1, 256, 56, 56, 256, 256, 1, 1, 1, 1, 0, 1, 1), # conv5 4
(1, 256, 56, 56, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv6 5
(1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv7 6
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv8 7
# # (1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv9
# # (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv10
# # (1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv11
# # (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv12
# # (1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv13
# # (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv14
(1, 512, 28, 28, 512, 512, 1, 1, 1, 1, 0, 1, 1), # conv15 8
(1, 512, 28, 28, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # conv16 9
(1, 1024, 14, 14, 512, 1024, 1, 1, 1, 1, 0, 1, 1), # conv17 10
(1, 512, 14, 14, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # conv18 11
# # (1, 1024, 14, 14, 512, 1024, 1, 1, 1, 1, 0, 1, 1), # conv19
# # (1, 512, 14, 14, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # conv20
(1, 1024, 14, 14, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # conv21 12
(1, 1024, 14, 14, 1024, 1024, 3, 3, 1, 2, 1, 1, 1), # conv22 13
(1, 1024, 7, 7, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # conv23 14
# (1, 1024, 7, 7, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # conv24
]
yolo_shapes_b8 = [copy_change_batch(8, x) for x in yolo_shapes_b1]
yolo_shapes_b16 = [copy_change_batch(16, x) for x in yolo_shapes_b1]
yolo_shapes_b32 = [copy_change_batch(32, x) for x in yolo_shapes_b1]
yolo_shapes_b64 = [copy_change_batch(64, x) for x in yolo_shapes_b1]
yolo_shapes_b128 = [copy_change_batch(128, x) for x in yolo_shapes_b1]
yolo_shapes = yolo_shapes_b1
mobilev2_shapes_b1 = [
(1, 32, 112, 112, 32, 32, 3, 3, 1, 1, 1, 1, 32),
(1, 16, 112, 112, 16 * 6, 16, 3, 3, 1, 2, 1, 1, 16),
(1, 24, 56, 56, 24 * 6, 24, 3, 3, 1, 2, 1, 1, 24),
(1, 32, 28, 28, 32 * 6, 32, 3, 3, 1, 2, 1, 1, 32),
(1, 64, 14, 14, 64 * 6, 64, 3, 3, 1, 1, 1, 1, 64),
(1, 96, 14, 14, 96 * 6, 96, 3, 3, 1, 2, 1, 1, 96),
(1, 160, 7, 7, 160 * 6, 160, 3, 3, 1, 1, 1, 1, 160),
]
mobilev2_shapes_b8 = [
(8, 32, 112, 112, 32, 32, 3, 3, 1, 1, 1, 1, 32),
(8, 16, 112, 112, 16 * 6, 16, 3, 3, 1, 2, 1, 1, 16),
(8, 24, 56, 56, 24 * 6, 24, 3, 3, 1, 2, 1, 1, 24),
(8, 32, 28, 28, 32 * 6, 32, 3, 3, 1, 2, 1, 1, 32),
(8, 64, 14, 14, 64 * 6, 64, 3, 3, 1, 1, 1, 1, 64),
(8, 96, 14, 14, 96 * 6, 96, 3, 3, 1, 2, 1, 1, 96),
(8, 160, 7, 7, 160 * 6, 160, 3, 3, 1, 1, 1, 1, 160),
]
mobilev2_shapes = mobilev2_shapes_b1
google_shapes = [
# google-net
(1, 3, 224, 224, 64, 3, 7, 7, 1, 2, 3, 1, 1), # conv1
(1, 64, 56, 56, 64, 64, 1, 1, 1, 1, 0, 1, 1), # conv2_3x3_reduce
(1, 64, 56, 56, 192, 64, 3, 3, 1, 1, 1, 1, 1), # conv2_3x3
(1, 192, 28, 28, 64, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch1
(1, 192, 28, 28, 96, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch2a
(1, 96, 28, 28, 128, 96, 3, 3, 1, 1, 1, 1, 1), # inception3a_branch2b
(1, 192, 28, 28, 16, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch3a
(1, 16, 28, 28, 32, 16, 5, 5, 1, 1, 2, 1, 1), # inception3a_branch3b
(1, 192, 28, 28, 32, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch4
(1, 256, 28, 28, 128, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch1
# (1, 256, 28, 28, 128, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch2a
(1, 128, 28, 28, 192, 128, 3, 3, 1, 1, 1, 1, 1), # inception3b_branch2b
(1, 256, 28, 28, 32, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch3a
(1, 32, 28, 28, 96, 32, 5, 5, 1, 1, 2, 1, 1), # inception3b_branch3b
(1, 256, 28, 28, 64, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch4
(1, 480, 14, 14, 192, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch1
(1, 480, 14, 14, 96, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch2a
(1, 96, 14, 14, 208, 96, 3, 3, 1, 1, 1, 1, 1), # inception4a_branch2b
(1, 480, 14, 14, 16, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch3a
(1, 16, 14, 14, 48, 16, 5, 5, 1, 1, 2, 1, 1), # inception4a_branch3b
(1, 480, 14, 14, 64, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch4
(1, 512, 14, 14, 160, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch1
(1, 512, 14, 14, 112, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch2a
(1, 112, 14, 14, 224, 112, 3, 3, 1, 1, 1, 1, 1), # inception4b_branch2b
(1, 512, 14, 14, 24, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch3a
(1, 24, 14, 14, 64, 24, 5, 5, 1, 1, 2, 1, 1), # inception4b_branch3b
(1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch4
(1, 512, 14, 14, 128, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch1
# (1, 512, 14, 14, 128, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch2a
(1, 128, 14, 14, 256, 128, 3, 3, 1, 1, 1, 1, 1), # inception4c_branch2b
# (1, 512, 14, 14, 24, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch3a
# (1, 24, 14, 14, 64, 24, 5, 5, 1, 1, 2, 1, 1), # inception4c_branch3b
# (1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch4
# (1, 512, 14, 14, 112, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch1
(1, 512, 14, 14, 144, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch2a
(1, 144, 14, 14, 288, 144, 3, 3, 1, 1, 1, 1, 1), # inception4d_branch2b
(1, 512, 14, 14, 32, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch3a
(1, 32, 14, 14, 64, 32, 5, 5, 1, 1, 2, 1, 1), # inception4d_branch3b
# (1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch4
(1, 528, 14, 14, 256, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch1
(1, 528, 14, 14, 160, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch2a
(1, 160, 14, 14, 320, 160, 3, 3, 1, 1, 1, 1, 1), # inception4e_branch2b
(1, 528, 14, 14, 32, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch3a
(1, 32, 14, 14, 128, 32, 5, 5, 1, 1, 2, 1, 1), # inception4e_branch3b
(1, 528, 14, 14, 128, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch4
(1, 832, 7, 7, 256, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch1
(1, 832, 7, 7, 160, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch2a
(1, 160, 7, 7, 320, 160, 3, 3, 1, 1, 1, 1, 1), # inception5a_branch2b
(1, 832, 7, 7, 32, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch3a
(1, 32, 7, 7, 128, 32, 5, 5, 1, 1, 2, 1, 1), # inception5a_branch3b
(1, 832, 7, 7, 128, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch4
(1, 832, 7, 7, 384, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch1
(1, 832, 7, 7, 192, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch2a
(1, 192, 7, 7, 384, 192, 3, 3, 1, 1, 1, 1, 1), # inception5b_branch2b
(1, 832, 7, 7, 48, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch3a
(1, 48, 7, 7, 128, 48, 5, 5, 1, 1, 2, 1, 1), # inception5b_branch3b
# (1, 832, 7, 7, 128, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch4
]
squeeze_shapes = [
# squeeze-net
(1, 3, 227, 227, 96, 3, 7, 7, 1, 2, 0, 1, 1), # conv1
(1, 96, 55, 55, 16, 96, 1, 1, 1, 1, 0, 1, 1), # fire2
(1, 16, 55, 55, 64, 16, 1, 1, 1, 1, 0, 1, 1), # fire2_1
(1, 16, 55, 55, 64, 16, 3, 3, 1, 1, 1, 1, 1), # fire2_2
(1, 128, 55, 55, 16, 128, 1, 1, 1, 1, 0, 1, 1), # fire3
# (1, 16, 55, 55, 64, 16, 1, 1, 1, 1, 0, 1, 1), # fire3_1
# (1, 16, 55, 55, 64, 16, 3, 3, 1, 1, 1, 1, 1), # fire3_2
(1, 128, 55, 55, 32, 128, 1, 1, 1, 1, 0, 1, 1), # fire4
(1, 32, 55, 55, 128, 32, 1, 1, 1, 1, 0, 1, 1), # fire4_1
(1, 32, 55, 55, 128, 32, 3, 3, 1, 1, 1, 1, 1), # fire4_2
(1, 256, 27, 27, 32, 256, 1, 1, 1, 1, 0, 1, 1), # fire5
(1, 32, 27, 27, 128, 32, 1, 1, 1, 1, 0, 1, 1), # fire5_1
(1, 32, 27, 27, 128, 32, 3, 3, 1, 1, 1, 1, 1), # fire5_2
(1, 256, 27, 27, 48, 256, 1, 1, 1, 1, 0, 1, 1), # fire6
(1, 48, 27, 27, 192, 48, 1, 1, 1, 1, 0, 1, 1), # fire6_1
(1, 48, 27, 27, 192, 48, 3, 3, 1, 1, 1, 1, 1), # fire6_2
(1, 384, 27, 27, 48, 384, 1, 1, 1, 1, 0, 1, 1), # fire7
# (1, 48, 27, 27, 192, 48, 1, 1, 1, 1, 0, 1, 1), # fire7_1
# (1, 48, 27, 27, 192, 48, 3, 3, 1, 1, 1, 1, 1), # fire7_2
(1, 384, 27, 27, 64, 384, 1, 1, 1, 1, 0, 1, 1), # fire8
(1, 64, 27, 27, 256, 64, 1, 1, 1, 1, 0, 1, 1), # fire8_1
(1, 64, 27, 27, 256, 64, 3, 3, 1, 1, 1, 1, 1), # fire8_2
(1, 512, 13, 13, 64, 512, 1, 1, 1, 1, 0, 1, 1), # fire9
(1, 64, 13, 13, 256, 64, 1, 1, 1, 1, 0, 1, 1), # fire9_1
(1, 64, 13, 13, 256, 64, 3, 3, 1, 1, 1, 1, 1), # fire9_2
(1, 512, 13, 13, 1000, 512, 1, 1, 1, 1, 0, 1, 1), # conv10
]
res_shapes_b1 = [
# resnet-50
(1, 3, 224, 224, 64, 3, 7, 7, 1, 2, 3, 1, 1), # conv1
(1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2a_branch1
(1, 64, 56, 56, 64, 64, 1, 1, 1, 1, 0, 1, 1), # res2a_branch2a
(1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # res2a_branch2b
# (1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2a_branch2c
(1, 256, 56, 56, 64, 256, 1, 1, 1, 1, 0, 1, 1), # res2b_branch2a
# (1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # res2b_branch2b
# (1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2b_branch2c
# (1, 256, 56, 56, 64, 256, 1, 1, 1, 1, 0, 1, 1), # res2c_branch2a
# (1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # res2c_branch2b
# (1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2c_branch2c
(1, 256, 56, 56, 512, 256, 1, 1, 1, 2, 0, 1, 1), # res3a_branch1
(1, 256, 56, 56, 128, 256, 1, 1, 1, 2, 0, 1, 1), # res3a_branch2a
(1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3a_branch2b
(1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3a_branch2c
(1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # res3b_branch2a
# (1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3b_branch2b
# (1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3b_branch2c
# (1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # res3c_branch2a
# (1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3c_branch2b
# (1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3c_branch2c
# (1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # res3d_branch2a
# (1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3d_branch2b
# (1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3d_branch2c
(1, 512, 28, 28, 1024, 512, 1, 1, 1, 2, 0, 1, 1), # res4a_branch1
(1, 512, 28, 28, 256, 512, 1, 1, 1, 2, 0, 1, 1), # res4a_branch2a
(1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4a_branch2b
(1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4a_branch2c
(1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4b_branch2a
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4b_branch2b
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4b_branch2c
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4c_branch2a
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4c_branch2b
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4c_branch2c
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4d_branch2a
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4d_branch2b
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4d_branch2c
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4e_branch2a
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4e_branch2b
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4e_branch2c
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4f_branch2a
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4f_branch2b
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4f_branch2c
(1, 1024, 14, 14, 2048, 1024, 1, 1, 1, 2, 0, 1, 1), # res5a_branch1
(1, 1024, 14, 14, 512, 1024, 1, 1, 1, 2, 0, 1, 1), # res5a_branch2a
(1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # res5a_branch2b
(1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # res5a_branch2c
(1, 2048, 7, 7, 512, 2048, 1, 1, 1, 1, 0, 1, 1), # res5b_branch2a
# (1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # res5b_branch2b
# (1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # res5b_branch2c
# (1, 2048, 7, 7, 512, 2048, 1, 1, 1, 1, 0, 1, 1), # res5c_branch2a
# (1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # res5c_branch2b
# (1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # res5c_branch2c
]
res_shapes = [copy_change_batch(1, x) for x in res_shapes_b1]
vgg_16_shapes = [
# vgg-16
(1, 3, 224, 224, 64, 3, 3, 3, 1, 1, 1, 1, 1), # conv1_1
(1, 64, 224, 224, 64, 64, 3, 3, 1, 1, 1, 1, 1), # conv1_2
(1, 64, 112, 112, 128, 64, 3, 3, 1, 1, 1, 1, 1), # conv2_1
(1, 128, 112, 112, 128, 128, 3, 3, 1, 1, 1, 1, 1), # conv2_2
(1, 128, 56, 56, 256, 128, 3, 3, 1, 1, 1, 1, 1), # conv3_1
(1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_2
# (1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_3
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv4_1
(1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_2
# (1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_3
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_1
# (1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_2
# (1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_3
]
vgg_19_shapes = [
# vgg-19
# (1, 3, 224, 224, 64, 3, 3, 3, 1, 1, 1, 1, 1), # conv1_1
# (1, 64, 224, 224, 64, 64, 3, 3, 1, 1, 1, 1, 1), # conv1_2
# (1, 64, 112, 112, 128, 64, 3, 3, 1, 1, 1, 1, 1), # conv2_1
# (1, 128, 112, 112, 128, 128, 3, 3, 1, 1, 1, 1, 1), # conv2_2
# (1, 128, 56, 56, 256, 128, 3, 3, 1, 1, 1, 1, 1), # conv3_1
# (1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_2
# (1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_3
# (1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_4
# (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv4_1
# (1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_2
# (1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_3
# (1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_4
# (1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_1
# (1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_2
# (1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_3
# (1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_4
]
test_conv_shapes = [
# batch_size,
# in_channel,
# inputs_height,
# inputs_width,
# out_channel,
# channel_per_group,
# kernel_height,
# kernel_width,
# if_bias=0,
# stride=1,
# padding=0,
# dilation=1,
# groups=1,
# dtype="float32"
# jlc
(256, 256, 14, 14, 512, 256, 1, 1, 0, 1, 0, 1, 1),
# open
# (1, 1024, 7, 7, 1024, 1024, 3, 3, 0, 1, 1, 1, 1), # yolo 24
# (1, 384, 27, 27, 64, 384, 1, 1, 1, 1, 0, 1, 1), # squeeze-net fire 8
# (4, 112, 14, 14, 224, 112, 3, 3, 0, 1, 1, 2, 1), # google-net inception4b-branch2b
# # confidential
# (1, 64, 56, 56, 256, 64, 1, 1, 0, 1, 0, 1, 1), # resnet res2a_branch1
# (1, 512, 28, 28, 512, 512, 3, 3, 0, 1, 1, 2, 1), # vgg-16 conv4_2
]
all_conv_shapes = [
###########################################################
# fuck!!!! I should write these configs by hands!!!!!
# I am a foolish!
# # yolo
# (1, 3, 448, 448, 64, 3, 7, 7, 1, 2, 3, 1, 1), # 1
# (1, 64, 112, 112, 192, 64, 3, 3, 1, 1, 1, 1, 1), # 2
# (1, 192, 56, 56, 128, 192, 1, 1, 1, 1, 0, 1, 1), # 3
# (1, 128, 56, 56, 256, 128, 3, 3, 1, 1, 1, 1, 1), # 4
# (1, 256, 56, 56, 256, 256, 1, 1, 1, 1, 0, 1, 1), # 5
# (1, 256, 56, 56, 512, 256, 3, 3, 1, 1, 1, 1, 1), # 6
# (1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # 7
# (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # 8
# (1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # 9
# (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # 10
# (1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # 11
# (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # 12
# (1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # 13
# (1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # 14
# (1, 512, 28, 28, 512, 512, 1, 1, 1, 1, 0, 1, 1), # 15
# (1, 512, 28, 28, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # 16
# (1, 1024, 14, 14, 512, 1024, 1, 1, 1, 1, 0, 1, 1), # 17
# (1, 512, 14, 14, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # 18
# (1, 1024, 14, 14, 512, 1024, 1, 1, 1, 1, 0, 1, 1), # 19
# (1, 512, 14, 14, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # 20
# (1, 1024, 14, 14, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # 21
# (1, 1024, 14, 14, 1024, 1024, 3, 3, 1, 2, 1, 1, 1), # 22
# (1, 1024, 7, 7, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # 23
# (1, 1024, 7, 7, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # 24
# # ResNet-50
# (1, 3, 224, 224, 64, 3, 7, 7, 1, 2, 3, 1, 1), # 1
# (1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # 2
# (1, 64, 56, 56, 64, 64, 1, 1, 1, 1, 0, 1, 1), # 3
# (1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # 4
# (1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # 5
# (1, 256, 56, 56, 64, 256, 1, 1, 1, 1, 0, 1, 1), # 6
# (1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # 7
# (1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # 8
# (1, 256, 56, 56, 64, 256, 1, 1, 1, 1, 0, 1, 1), # 9
# (1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # 10
# (1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # 11
# (1, 256, 56, 56, 512, 256, 1, 1, 1, 2, 1, 1, 1), # 12
# (1, 256, 56, 56, 128, 256, 1, 1, 1, 2, 1, 1, 1), # 13
# (1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # 14
# (1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # 15
# (1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # 16
# (1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # 17
# (1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # 18
# (1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # 19
# (1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # 20
# (1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # 21
# (1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # 22
# (1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # 23
# (1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # 24
# (1, 512, 28, 28, 1024, 512, 1, 1, 1, 2, 0, 1, 1), # 25
# (1, 512, 28, 28, 256, 512, 1, 1, 1, 2, 0, 1, 1), # 26
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # 27
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # 28
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # 29
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # 30
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # 31
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # 32
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # 33
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # 34
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # 35
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # 36
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # 37
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # 38
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # 39
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # 40
# (1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # 41
# (1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # 42
# (1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # 43
# (1, 1024, 14, 14, 2048, 1024, 1, 1, 1, 2, 0, 1, 1), # 44
# (1, 1024, 14, 14, 512, 1024, 1, 1, 1, 2, 0, 1, 1), # 45
# (1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # 46
# (1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # 47
# (1, 2048, 7, 7, 512, 2048, 1, 1, 1, 1, 0, 1, 1), # 48
# (1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # 49
# (1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # 50
# (1, 2048, 7, 7, 512, 2048, 1, 1, 1, 1, 0, 1, 1), # 51
# (1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # 52
# (1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # 53
# # google-net
# (1, 3, 224, 224, 64, 3, 7, 7, 1, 2, 3, 1, 1),
# (1, 64, 56, 56, 64, 64, 1, 1, 1, 1, 0, 1, 1),
# (1, 64, 56, 56, 192, 64, 3, 3, 1, 1, 1, 1, 1),
# (1, 192, 28, 28, 64, 192, 1, 1, 1, 1, 0, 1, 1),
# (1, 192, 28, 28, 96, 192, 1, 1, 1, 1, 0, 1, 1),
# (1, 96, 28, 28, 128, 96, 3, 3, 1, 1, 1, 1, 1),
# (1, 192, 28, 28, 16, 192, 1, 1, 1, 1, 0, 1, 1),
# (1, 16, 28, 28, 32, 16, 5, 5, 1, 1, 2, 1, 1),
# (1, 192, 28, 28, 32, 192, 1, 1, 1, 1, 0, 1, 1),
# (1, 256, 28, 28, 128, 256, 1, 1, 1, 1, 0, 1, 1),
# (1, 256, 28, 28, 128, 256, 1, 1, 1, 1, 0, 1, 1),
# (1, 128, 28, 28, 192, 128, 3, 3, 1, 1, 1, 1, 1),
# (1, 256, 28, 28, 32, 256, 1, 1, 1, 1, 0, 1, 1),
# (1, 32, 28, 28, 96, 32, 5, 5, 1, 1, 2, 1, 1),
# (1, 256, 28, 28, 64, 256, 1, 1, 1, 1, 0, 1, 1),
# (1, 480, 14, 14, 192, 480, 1, 1, 1, 1, 0, 1, 1),
# (1, 480, 14, 14, 96, 480, 1, 1, 1, 1, 0, 1, 1),
# (1, 96, 14, 14, 208, 96, 3, 3, 1, 1, 1, 1, 1),
# (1, 480, 14, 14, 16, 480, 1, 1, 1, 1, 0, 1, 1),
# (1, 16, 14, 14, 48, 16, 5, 5, 1, 1, 2, 1, 1),
# (1, 480, 14, 14, 64, 480, 1, 1, 1, 1, 0, 1, 1),
# (1, 512, 14, 14, 160, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 512, 14, 14, 112, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 112, 14, 14, 224, 112, 3, 3, 1, 1, 1, 1, 1),
# (1, 512, 14, 14, 24, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 24, 14, 14, 64, 24, 5, 5, 1, 1, 2, 1, 1),
# (1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 512, 14, 14, 128, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 512, 14, 14, 128, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 128, 14, 14, 256, 128, 3, 3, 1, 1, 1, 1, 1),
# (1, 512, 14, 14, 24, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 24, 14, 14, 64, 24, 5, 5, 1, 1, 2, 1, 1),
# (1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 512, 14, 14, 112, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 512, 14, 14, 144, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 144, 14, 14, 288, 144, 3, 3, 1, 1, 1, 1, 1),
# (1, 512, 14, 14, 32, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 32, 14, 14, 64, 32, 5, 5, 1, 1, 2, 1, 1),
# (1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 512, 14, 14, 256, 512, 1, 1, 1, 1, 0, 1, 1),
# (1, 528, 14, 14, 160, 528, 1, 1, 1, 1, 0, 1, 1),
# (1, 160, 14, 14, 320, 160, 3, 3, 1, 1, 1, 1, 1),
# (1, 528, 14, 14, 32, 528, 1, 1, 1, 1, 0, 1, 1),
# (1, 32, 14, 14, 128, 32, 5, 5, 1, 1, 2, 1, 1),
# (1, 528, 14, 14, 128, 528, 1, 1, 1, 1, 0, 1, 1),
# (1, 832, 7, 7, 256, 832, 1, 1, 1, 1, 0, 1, 1),
# (1, 832, 7, 7, 160, 832, 1, 1, 1, 1, 0, 1, 1),
# (1, 160, 7, 7, 320, 160, 3, 3, 1, 1, 1, 1, 1),
# (1, 832, 7, 7, 32, 832, 1, 1, 1, 1, 0, 1, 1),
# (1, 32, 7, 7, 128, 32, 5, 5, 1, 1, 2, 1, 1),
# (1, 832, 7, 7, 128, 832, 1, 1, 1, 1, 0, 1, 1),
# (1, 832, 7, 7, 384, 832, 1, 1, 1, 1, 0, 1, 1),
# (1, 832, 7, 7, 192, 832, 1, 1, 1, 1, 0, 1, 1),
# (1, 192, 7, 7, 384, 192, 3, 3, 1, 1, 1, 1, 1),
# (1, 832, 7, 7, 48, 832, 1, 1, 1, 1, 0, 1, 1),
# (1, 48, 7, 7, 128, 48, 5, 5, 1, 1, 2, 1, 1),
# (1, 832, 7, 7, 128, 832, 1, 1, 1, 1, 0, 1, 1),
# yolo
(1, 3, 448, 448, 64, 3, 7, 7, 1, 2, 3, 1, 1), # conv1
(1, 64, 112, 112, 192, 64, 3, 3, 1, 1, 1, 1, 1), # conv2
(1, 192, 56, 56, 128, 192, 1, 1, 1, 1, 0, 1, 1), # conv3
(1, 128, 56, 56, 256, 128, 3, 3, 1, 1, 1, 1, 1), # conv4
(1, 256, 56, 56, 256, 256, 1, 1, 1, 1, 0, 1, 1), # conv5
(1, 256, 56, 56, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv6
(1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv7
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv8
(1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv9
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv10
(1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv11
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv12
(1, 512, 28, 28, 256, 512, 1, 1, 1, 1, 0, 1, 1), # conv13
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv14
(1, 512, 28, 28, 512, 512, 1, 1, 1, 1, 0, 1, 1), # conv15
(1, 512, 28, 28, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # conv16
(1, 1024, 14, 14, 512, 1024, 1, 1, 1, 1, 0, 1, 1), # conv17
(1, 512, 14, 14, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # conv18
(1, 1024, 14, 14, 512, 1024, 1, 1, 1, 1, 0, 1, 1), # conv19
(1, 512, 14, 14, 1024, 512, 3, 3, 1, 1, 1, 1, 1), # conv20
(1, 1024, 14, 14, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # conv21
(1, 1024, 14, 14, 1024, 1024, 3, 3, 1, 2, 1, 1, 1), # conv22
(1, 1024, 7, 7, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # conv23
(1, 1024, 7, 7, 1024, 1024, 3, 3, 1, 1, 1, 1, 1), # conv24
# google-net
(1, 3, 224, 224, 64, 3, 7, 7, 1, 2, 3, 1, 1), # conv1
(1, 64, 56, 56, 64, 64, 1, 1, 1, 1, 0, 1, 1), # conv2_3x3_reduce
(1, 64, 56, 56, 192, 64, 3, 3, 1, 1, 1, 1, 1), # conv2_3x3
(1, 192, 28, 28, 64, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch1
(1, 192, 28, 28, 96, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch2a
(1, 96, 28, 28, 128, 96, 3, 3, 1, 1, 1, 1, 1), # inception3a_branch2b
(1, 192, 28, 28, 16, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch3a
(1, 16, 28, 28, 32, 16, 5, 5, 1, 1, 2, 1, 1), # inception3a_branch3b
(1, 192, 28, 28, 32, 192, 1, 1, 1, 1, 0, 1, 1), # inception3a_branch4
(1, 256, 28, 28, 128, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch1
(1, 256, 28, 28, 128, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch2a
(1, 128, 28, 28, 192, 128, 3, 3, 1, 1, 1, 1, 1), # inception3b_branch2b
(1, 256, 28, 28, 32, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch3a
(1, 32, 28, 28, 96, 32, 5, 5, 1, 1, 2, 1, 1), # inception3b_branch3b
(1, 256, 28, 28, 64, 256, 1, 1, 1, 1, 0, 1, 1), # inception3b_branch4
(1, 480, 14, 14, 192, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch1
(1, 480, 14, 14, 96, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch2a
(1, 96, 14, 14, 208, 96, 3, 3, 1, 1, 1, 1, 1), # inception4a_branch2b
(1, 480, 14, 14, 16, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch3a
(1, 16, 14, 14, 48, 16, 5, 5, 1, 1, 2, 1, 1), # inception4a_branch3b
(1, 480, 14, 14, 64, 480, 1, 1, 1, 1, 0, 1, 1), # inception4a_branch4
(1, 512, 14, 14, 160, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch1
(1, 512, 14, 14, 112, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch2a
(1, 112, 14, 14, 224, 112, 3, 3, 1, 1, 1, 1, 1), # inception4b_branch2b
(1, 512, 14, 14, 24, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch3a
(1, 24, 14, 14, 64, 24, 5, 5, 1, 1, 2, 1, 1), # inception4b_branch3b
(1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1), # inception4b_branch4
(1, 512, 14, 14, 128, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch1
(1, 512, 14, 14, 128, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch2a
(1, 128, 14, 14, 256, 128, 3, 3, 1, 1, 1, 1, 1), # inception4c_branch2b
(1, 512, 14, 14, 24, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch3a
(1, 24, 14, 14, 64, 24, 5, 5, 1, 1, 2, 1, 1), # inception4c_branch3b
(1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1), # inception4c_branch4
(1, 512, 14, 14, 112, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch1
(1, 512, 14, 14, 144, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch2a
(1, 144, 14, 14, 288, 144, 3, 3, 1, 1, 1, 1, 1), # inception4d_branch2b
(1, 512, 14, 14, 32, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch3a
(1, 32, 14, 14, 64, 32, 5, 5, 1, 1, 2, 1, 1), # inception4d_branch3b
(1, 512, 14, 14, 64, 512, 1, 1, 1, 1, 0, 1, 1), # inception4d_branch4
(1, 528, 14, 14, 256, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch1
(1, 528, 14, 14, 160, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch2a
(1, 160, 14, 14, 320, 160, 3, 3, 1, 1, 1, 1, 1), # inception4e_branch2b
(1, 528, 14, 14, 32, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch3a
(1, 32, 14, 14, 128, 32, 5, 5, 1, 1, 2, 1, 1), # inception4e_branch3b
(1, 528, 14, 14, 128, 528, 1, 1, 1, 1, 0, 1, 1), # inception4e_branch4
(1, 832, 7, 7, 256, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch1
(1, 832, 7, 7, 160, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch2a
(1, 160, 7, 7, 320, 160, 3, 3, 1, 1, 1, 1, 1), # inception5a_branch2b
(1, 832, 7, 7, 32, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch3a
(1, 32, 7, 7, 128, 32, 5, 5, 1, 1, 2, 1, 1), # inception5a_branch3b
(1, 832, 7, 7, 128, 832, 1, 1, 1, 1, 0, 1, 1), # inception5a_branch4
(1, 832, 7, 7, 384, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch1
(1, 832, 7, 7, 192, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch2a
(1, 192, 7, 7, 384, 192, 3, 3, 1, 1, 1, 1, 1), # inception5b_branch2b
(1, 832, 7, 7, 48, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch3a
(1, 48, 7, 7, 128, 48, 5, 5, 1, 1, 2, 1, 1), # inception5b_branch3b
(1, 832, 7, 7, 128, 832, 1, 1, 1, 1, 0, 1, 1), # inception5b_branch4
# squeeze-net
(1, 3, 227, 227, 96, 3, 7, 7, 1, 2, 0, 1, 1), # conv1
(1, 96, 55, 55, 16, 96, 1, 1, 1, 1, 0, 1, 1), # fire2
(1, 16, 55, 55, 64, 16, 1, 1, 1, 1, 0, 1, 1), # fire2_1
(1, 16, 55, 55, 64, 16, 3, 3, 1, 1, 1, 1, 1), # fire2_2
(1, 128, 55, 55, 16, 128, 1, 1, 1, 1, 0, 1, 1), # fire3
(1, 16, 55, 55, 64, 16, 1, 1, 1, 1, 0, 1, 1), # fire3_1
(1, 16, 55, 55, 64, 16, 3, 3, 1, 1, 1, 1, 1), # fire3_2
(1, 128, 55, 55, 32, 128, 1, 1, 1, 1, 0, 1, 1), # fire4
(1, 32, 55, 55, 128, 32, 1, 1, 1, 1, 0, 1, 1), # fire4_1
(1, 32, 55, 55, 128, 32, 3, 3, 1, 1, 1, 1, 1), # fire4_2
(1, 256, 27, 27, 32, 256, 1, 1, 1, 1, 0, 1, 1), # fire5
(1, 32, 27, 27, 128, 32, 1, 1, 1, 1, 0, 1, 1), # fire5_1
(1, 32, 27, 27, 128, 32, 3, 3, 1, 1, 1, 1, 1), # fire5_2
(1, 256, 27, 27, 48, 256, 1, 1, 1, 1, 0, 1, 1), # fire6
(1, 48, 27, 27, 192, 48, 1, 1, 1, 1, 0, 1, 1), # fire6_1
(1, 48, 27, 27, 192, 48, 3, 3, 1, 1, 1, 1, 1), # fire6_2
(1, 384, 27, 27, 48, 384, 1, 1, 1, 1, 0, 1, 1), # fire7
(1, 48, 27, 27, 192, 48, 1, 1, 1, 1, 0, 1, 1), # fire7_1
(1, 48, 27, 27, 192, 48, 3, 3, 1, 1, 1, 1, 1), # fire7_2
(1, 384, 27, 27, 64, 384, 1, 1, 1, 1, 0, 1, 1), # fire8
(1, 64, 27, 27, 256, 64, 1, 1, 1, 1, 0, 1, 1), # fire8_1
(1, 64, 27, 27, 256, 64, 3, 3, 1, 1, 1, 1, 1), # fire8_2
(1, 512, 13, 13, 64, 512, 1, 1, 1, 1, 0, 1, 1), # fire9
(1, 64, 13, 13, 256, 64, 1, 1, 1, 1, 0, 1, 1), # fire9_1
(1, 64, 13, 13, 256, 64, 3, 3, 1, 1, 1, 1, 1), # fire9_2
(1, 512, 13, 13, 1000, 512, 1, 1, 1, 1, 0, 1, 1), # conv10
# resnet-50
(1, 3, 224, 224, 64, 3, 7, 7, 1, 2, 3, 1, 1), # conv1
(1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2a_branch1
(1, 64, 56, 56, 64, 64, 1, 1, 1, 1, 0, 1, 1), # res2a_branch2a
(1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # res2a_branch2b
(1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2a_branch2c
(1, 256, 56, 56, 64, 256, 1, 1, 1, 1, 0, 1, 1), # res2b_branch2a
(1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # res2b_branch2b
(1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2b_branch2c
(1, 256, 56, 56, 64, 256, 1, 1, 1, 1, 0, 1, 1), # res2c_branch2a
(1, 64, 56, 56, 64, 64, 3, 3, 1, 1, 1, 1, 1), # res2c_branch2b
(1, 64, 56, 56, 256, 64, 1, 1, 1, 1, 0, 1, 1), # res2c_branch2c
(1, 256, 56, 56, 512, 256, 1, 1, 1, 2, 0, 1, 1), # res3a_branch1
(1, 256, 56, 56, 128, 256, 1, 1, 1, 2, 0, 1, 1), # res3a_branch2a
(1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3a_branch2b
(1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3a_branch2c
(1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # res3b_branch2a
(1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3b_branch2b
(1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3b_branch2c
(1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # res3c_branch2a
(1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3c_branch2b
(1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3c_branch2c
(1, 512, 28, 28, 128, 512, 1, 1, 1, 1, 0, 1, 1), # res3d_branch2a
(1, 128, 28, 28, 128, 128, 3, 3, 1, 1, 1, 1, 1), # res3d_branch2b
(1, 128, 28, 28, 512, 128, 1, 1, 1, 1, 0, 1, 1), # res3d_branch2c
(1, 512, 28, 28, 1024, 512, 1, 1, 1, 2, 0, 1, 1), # res4a_branch1
(1, 512, 28, 28, 256, 512, 1, 1, 1, 2, 0, 1, 1), # res4a_branch2a
(1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4a_branch2b
(1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4a_branch2c
(1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4b_branch2a
(1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4b_branch2b
(1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4b_branch2c
(1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4c_branch2a
(1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4c_branch2b
(1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4c_branch2c
(1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4d_branch2a
(1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4d_branch2b
(1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4d_branch2c
(1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4e_branch2a
(1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4e_branch2b
(1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4e_branch2c
(1, 1024, 14, 14, 256, 1024, 1, 1, 1, 1, 0, 1, 1), # res4f_branch2a
(1, 256, 14, 14, 256, 256, 3, 3, 1, 1, 1, 1, 1), # res4f_branch2b
(1, 256, 14, 14, 1024, 256, 1, 1, 1, 1, 0, 1, 1), # res4f_branch2c
(1, 1024, 14, 14, 2048, 1024, 1, 1, 1, 2, 0, 1, 1), # res5a_branch1
(1, 1024, 14, 14, 512, 1024, 1, 1, 1, 2, 0, 1, 1), # res5a_branch2a
(1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # res5a_branch2b
(1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # res5a_branch2c
(1, 2048, 7, 7, 512, 2048, 1, 1, 1, 1, 0, 1, 1), # res5b_branch2a
(1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # res5b_branch2b
(1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # res5b_branch2c
(1, 2048, 7, 7, 512, 2048, 1, 1, 1, 1, 0, 1, 1), # res5c_branch2a
(1, 512, 7, 7, 512, 512, 3, 3, 1, 1, 1, 1, 1), # res5c_branch2b
(1, 512, 7, 7, 2048, 512, 1, 1, 1, 1, 0, 1, 1), # res5c_branch2c
# vgg-16
(1, 3, 224, 224, 64, 3, 3, 3, 1, 1, 1, 1, 1), # conv1_1
(1, 64, 224, 224, 64, 64, 3, 3, 1, 1, 1, 1, 1), # conv1_2
(1, 64, 112, 112, 128, 64, 3, 3, 1, 1, 1, 1, 1), # conv2_1
(1, 128, 112, 112, 128, 128, 3, 3, 1, 1, 1, 1, 1), # conv2_2
(1, 128, 56, 56, 256, 128, 3, 3, 1, 1, 1, 1, 1), # conv3_1
(1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_2
(1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_3
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv4_1
(1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_2
(1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_3
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_1
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_2
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_3
# vgg-19
(1, 3, 224, 224, 64, 3, 3, 3, 1, 1, 1, 1, 1), # conv1_1
(1, 64, 224, 224, 64, 64, 3, 3, 1, 1, 1, 1, 1), # conv1_2
(1, 64, 112, 112, 128, 64, 3, 3, 1, 1, 1, 1, 1), # conv2_1
(1, 128, 112, 112, 128, 128, 3, 3, 1, 1, 1, 1, 1), # conv2_2
(1, 128, 56, 56, 256, 128, 3, 3, 1, 1, 1, 1, 1), # conv3_1
(1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_2
(1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_3
(1, 256, 56, 56, 256, 256, 3, 3, 1, 1, 1, 1, 1), # conv3_4
(1, 256, 28, 28, 512, 256, 3, 3, 1, 1, 1, 1, 1), # conv4_1
(1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_2
(1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_3
(1, 512, 28, 28, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv4_4
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_1
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_2
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_3
(1, 512, 14, 14, 512, 512, 3, 3, 1, 1, 1, 1, 1), # conv5_4
]
# with open("config.txt", "r") as fin:
# for line in fin:
# name, batch, in_c, h, w, out_c, k_h, k_w, pad, stride = line.split()
# print("(" + batch + ", " + in_c + ", " + h + ", " + w + ", " + out_c + ", " +
# in_c + ", " + k_h + ", " + k_w + ", 1, " + stride + ", " + pad + ", 1, 1), # " + name)
| 57.915123
| 110
| 0.451704
| 8,064
| 37,529
| 2.052951
| 0.02753
| 0.253096
| 0.219088
| 0.162368
| 0.941287
| 0.938991
| 0.938991
| 0.935065
| 0.931803
| 0.917246
| 0
| 0.45669
| 0.306323
| 37,529
| 647
| 111
| 58.004637
| 0.179234
| 0.454449
| 0
| 0.846797
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002786
| false
| 0
| 0.002786
| 0
| 0.008357
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 12
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.