max_stars_repo_path
stringlengths 4
237
| max_stars_repo_name
stringlengths 6
117
| max_stars_count
int64 0
95.2k
| id
stringlengths 1
7
| content
stringlengths 12
593k
| input_ids
sequencelengths 7
549k
|
---|---|---|---|---|---|
integration-testing/test/test_single_network_one.py | MicrohexHQ/CasperLabs | 0 | 151763 | import os
import logging
import pytest
import json
from pathlib import Path
from pytest import fixture, raises
from test.cl_node.contract_address import contract_address
from test.cl_node.common import testing_root_path, HELLO_NAME_CONTRACT
from test.cl_node.casperlabs_accounts import Account, GENESIS_ACCOUNT
from test.cl_node.common import extract_block_hash_from_propose_output
from test.cl_node.docker_node import DockerNode
from test.cl_node.errors import NonZeroExitCodeError
from test.cl_node.wait import wait_for_genesis_block
from casperlabs_client import ABI
from test.cl_node.cli import CLI, DockerCLI, CLIErrorExit
"""
Test account state retrieval with query-state.
Example output of the Scala client:
account {
public_key: "3030303030303030303030303030303030303030303030303030303030303030"
purse_id {
uref: "0000000000000000000000000000000000000000000000000000000000000000"
access_rights: READ_ADD_WRITE
}
associated_keys {
public_key: "3030303030303030303030303030303030303030303030303030303030303030"
weight: 1
}
action_thresholds {
deployment_threshold: 1
key_management_threshold: 1
}
account_activity {
key_management_last_used: 0
deployment_last_used: 0
inactivity_period_limit: 100
}
}
"""
def deploy_and_propose_from_genesis(node, contract):
return node.deploy_and_propose(
session_contract=contract,
payment_contract=contract,
from_address=GENESIS_ACCOUNT.public_key_hex,
public_key=GENESIS_ACCOUNT.public_key_path,
private_key=GENESIS_ACCOUNT.private_key_path,
)
def account_state(node, block_hash, account=GENESIS_ACCOUNT):
return node.d_client.query_state(
block_hash=block_hash, key_type="address", key=account.public_key_hex, path=""
)
def test_account_state(one_node_network):
node = one_node_network.docker_nodes[0]
block_hash = deploy_and_propose_from_genesis(node, "test_counterdefine.wasm")
deploys = node.client.show_deploys(block_hash)
assert not deploys[0].is_error
acct_state = account_state(node, block_hash)
known_urefs = acct_state.account[0].known_urefs
names = [uref.name for uref in known_urefs]
assert "counter" in names
block_hash = deploy_and_propose_from_genesis(node, "test_countercall.wasm")
acct_state = account_state(node, block_hash)
known_urefs = acct_state.account[0].known_urefs
names = [uref.name for uref in known_urefs]
assert "counter" in names
def test_transfer_with_overdraft(one_node_network):
acct1 = Account(1)
acct2 = Account(2)
node: DockerNode = one_node_network.docker_nodes[0]
# Transfer 1000000 from genesis... to acct1...
# For compatibility with EE with no execution cost
# payment_contract="transfer_to_account.wasm"
block_hash = node.transfer_to_account(
to_account_id=1,
amount=1000000,
from_account_id="genesis",
payment_contract="transfer_to_account.wasm",
)
deploys = node.client.show_deploys(block_hash)
assert not deploys[0].is_error, f"error_message: {deploys[0].error_message}"
# Response not used, but assures account exist
_ = account_state(node, block_hash, acct1)
# Should error as account doesn't exist.
with raises(Exception):
_ = account_state(block_hash, acct2.public_key_hex)
# No API currently exists for getting balance to check transfer.
# Transfer 750000 from acct1... to acct2...
block_hash = node.transfer_to_account(
to_account_id=2,
amount=750000,
from_account_id=1,
payment_contract="transfer_to_account.wasm",
)
deploys = node.client.show_deploys(block_hash)
assert not deploys[0].is_error, f"error_message: {deploys[0].error_message}"
# Response not used, but assures account exist
_ = account_state(node, block_hash, acct2)
# Transfer 750000000000 from acct1... to acct2...
# Should fail with acct1 overdrawn. Requires assert in contract to generate is_error.
with raises(Exception):
_ = node.transfer_to_account(
to_account_id=2,
amount=750000000000,
from_account_id=1,
payment_contract="transfer_to_account.wasm",
)
def test_transfer_to_accounts(one_node_network):
node: DockerNode = one_node_network.docker_nodes[0]
# Perform multiple transfers with end result of Acct1 = 100, Acct2 = 100, Acct3 = 800
node.transfer_to_accounts([(1, 1000), (2, 900, 1), (3, 800, 2)])
with raises(Exception):
# Acct 1 has not enough funds so it should fail
node.transfer_to_account(
to_account_id=4,
amount=100000000000,
from_account_id=1,
payment_contract="transfer_to_account.wasm",
)
node.transfer_to_account(
to_account_id=4,
amount=100,
from_account_id=2,
payment_contract="transfer_to_account.wasm",
)
# TODO: Improve checks once balance is easy to read.
def balance(node, account_address, block_hash):
try:
return node.client.get_balance(account_address, block_hash)
except Exception:
return 0
def test_scala_client_balance(one_node_network):
node: DockerNode = one_node_network.docker_nodes[0]
accounts = [Account(i) for i in range(1, 4)]
block_hash = list(node.p_client.show_blocks(1))[0].summary.block_hash.hex()
initial = [
balance(node, account.public_key_hex, block_hash) for account in accounts
]
# Perform multiple transfers with end result of Acct1 = 200, Acct2 = 100, Acct3 = 700
hashes = node.transfer_to_accounts([(1, 1000), (2, 800, 1), (3, 700, 2)])
for acct_num, value in ((0, 200), (1, 100), (2, 700)):
addr = accounts[acct_num].public_key_hex
bal = node.d_client.get_balance(account_address=addr, block_hash=hashes[-1])
assert bal == initial[acct_num] + value
ffi_test_contracts = [
("getcallerdefine.wasm", "getcallercall.wasm"),
("listknownurefsdefine.wasm", "listknownurefscall.wasm"),
]
def deploy_and_propose_expect_no_errors(node, contract):
client = node.d_client
block_hash = node.deploy_and_propose(
session_contract=contract,
payment_contract=contract,
from_address=node.genesis_account.public_key_hex,
public_key=node.genesis_account.public_key_path,
private_key=node.genesis_account.private_key_path,
)
r = client.show_deploys(block_hash)[0]
assert r.is_error is False, f"error_message: {r.error_message}"
@pytest.mark.parametrize("define_contract, call_contract", ffi_test_contracts)
def test_get_caller(one_node_network, define_contract, call_contract):
node = one_node_network.docker_nodes[0]
deploy_and_propose_expect_no_errors(node, define_contract)
deploy_and_propose_expect_no_errors(node, call_contract)
@pytest.mark.parametrize("wasm", [HELLO_NAME_CONTRACT, "old_wasm/test_helloname.wasm"])
def test_multiple_propose(one_node_network, wasm):
"""
Feature file: propose.feature
Scenario: Single node deploy and multiple propose generates an Exception.
OP-182: First propose should be success, and subsequent propose calls should throw an error/exception.
"""
node = one_node_network.docker_nodes[0]
deploy_and_propose_from_genesis(node, wasm)
number_of_blocks = node.client.get_blocks_count(100)
try:
_ = node.client.propose()
assert False, "Second propose must not succeed, should throw"
except NonZeroExitCodeError as e:
assert e.exit_code == 1, "Second propose should fail"
wait_for_genesis_block(node)
# Number of blocks after second propose should not change
assert node.client.get_blocks_count(100) == number_of_blocks
# Examples of query-state executed with the Scala client that result in errors:
# CasperLabs/docker $ ./client.sh node-0 propose
# Response: Success! Block 9d38836598... created and added.
# CasperLabs/docker $ ./client.sh node-0 query-state --block-hash '"9d"' --key '"a91208047c"' --path file.xxx --type hash
# NOT_FOUND: Cannot find block matching hash "9d"
# CasperLabs/docker$ ./client.sh node-0 query-state --block-hash 9d --key '"a91208047c"' --path file.xxx --type hash
# INVALID_ARGUMENT: Key of type hash must have exactly 32 bytes, 5 =/= 32 provided.
# CasperLabs/docker$ ./client.sh node-0 query-state --block-hash 9d --key 3030303030303030303030303030303030303030303030303030303030303030 --path file.xxx --type hash
# INVALID_ARGUMENT: Value not found: " Hash([48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48])"
@pytest.fixture() # scope="module")
def node(one_node_network):
return one_node_network.docker_nodes[0]
@pytest.fixture() # (scope="module")
def client(node):
return node.d_client
@pytest.fixture() # (scope="module")
def block_hash(node):
return node.deploy_and_propose(
session_contract="test_helloname.wasm", payment_contract="test_helloname.wasm"
)
block_hash_queries = [
(
{
"block_hash": "9d000000",
"key": "a91208047c",
"path": "file.xxx",
"key_type": "hash",
},
"NOT_FOUND: Cannot find block matching",
),
(
{"key": "a91208047c", "path": "file.xxx", "key_type": "hash"},
"INVALID_ARGUMENT: Key of type hash must have exactly 32 bytes",
),
({"path": "file.xxx", "key_type": "hash"}, "INVALID_ARGUMENT: Value not found"),
]
@pytest.mark.parametrize("query, expected", block_hash_queries)
def test_query_state_error(node, client, block_hash, query, expected):
if "block_hash" not in query:
query["block_hash"] = block_hash
if "key" not in query:
query["key"] = GENESIS_ACCOUNT.public_key_hex
with pytest.raises(NonZeroExitCodeError) as excinfo:
_ = client.query_state(**query)
assert expected in excinfo.value.output
def test_revert_subcall(client, node):
# This contract calls another contract that calls revert(2)
block_hash = deploy_and_propose_from_genesis(
node, "test_subcall_revert_define.wasm"
)
r = client.show_deploys(block_hash)[0]
assert not r.is_error
assert r.error_message == ""
deploy_hash = r.deploy.deploy_hash
r = client.show_deploy(deploy_hash)
assert r.deploy.deploy_hash == deploy_hash
block_hash = deploy_and_propose_from_genesis(node, "test_subcall_revert_call.wasm")
r = client.show_deploys(block_hash)[0]
assert r.is_error
assert r.error_message == "Exit code: 2"
def test_revert_direct(client, node):
# This contract calls revert(1) directly
block_hash = deploy_and_propose_from_genesis(node, "test_direct_revert_call.wasm")
r = client.show_deploys(block_hash)[0]
assert r.is_error
assert r.error_message == "Exit code: 1"
def test_deploy_with_valid_signature(one_node_network):
"""
Feature file: deploy.feature
Scenario: Deploy with valid signature
"""
node0 = one_node_network.docker_nodes[0]
block_hash = deploy_and_propose_from_genesis(node0, "test_helloname.wasm")
deploys = node0.client.show_deploys(block_hash)
assert deploys[0].is_error is False
def test_deploy_with_invalid_signature(one_node_network):
"""
Feature file: deploy.feature
Scenario: Deploy with invalid signature
"""
node0 = one_node_network.docker_nodes[0]
with pytest.raises(NonZeroExitCodeError):
node0.client.deploy(
from_address=GENESIS_ACCOUNT.public_key_hex,
session_contract="test_helloname.wasm",
payment_contract="test_helloname.wasm",
private_key="validator-0-private-invalid.pem",
public_key="validator-0-public-invalid.pem",
)
"""
Feature file: ~/CasperLabs/integration-testing/features/deploy.feature
"""
def deploy_and_propose(node, contract):
node.client.deploy(
session_contract=contract,
payment_contract=contract,
from_address=GENESIS_ACCOUNT.public_key_hex,
public_key=GENESIS_ACCOUNT.public_key_path,
private_key=GENESIS_ACCOUNT.private_key_path,
)
return extract_block_hash_from_propose_output(node.client.propose())
def deploy(node, contract):
message = node.client.deploy(
from_address=GENESIS_ACCOUNT.public_key_hex,
public_key=GENESIS_ACCOUNT.public_key_path,
private_key=GENESIS_ACCOUNT.private_key_path,
session_contract=contract,
payment_contract=contract,
)
assert "Success!" in message
return message.split()[2]
def propose(node):
return extract_block_hash_from_propose_output(node.client.propose())
def deploy_hashes(node, block_hash):
return set(d.deploy.deploy_hash for d in node.client.show_deploys(block_hash))
# Python Client (library)
# fmt: off
def resource(fn):
cur_path = Path(os.path.realpath(__file__)).parent
while cur_path.name != "integration-testing":
cur_path = cur_path.parent
return cur_path / "resources" / fn
def test_args_parser():
account = (
b"\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x08"
b"\x00\x00\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07"
)
amount = 123456
args = [{"name": "amount", "value": {"long_value": amount}},
{"name": "account", "value": {"bytes_value": account.hex()}},
{"name": "purse_id", "value": {"optional_value": {}}},
{"name": "number", "value": {"big_int": {"value": "2", "bit_width": 512}}}]
json_str = json.dumps(args)
assert ABI.args_from_json(json_str) == ABI.args(
[ABI.long_value(amount), ABI.account(account), ABI.optional_value(None), ABI.big_int(2)]
)
@fixture()
def genesis_public_signing_key():
with GENESIS_ACCOUNT.public_key_binary_file() as f:
yield f
def test_deploy_with_args(one_node_network, genesis_public_signing_key):
"""
Deploys test contracts that do:
revert(get_arg(0)); // for u32 and u512
and
revert(sum(address_bytes[u8; 32]) + u32); for multiple argument test.
Tests args get correctly encoded and decoded in the contract.
Test expects the test contracts test_args_u32.wasm and test_args_u512.wasm
to deserialize correctly their arguments and then call revert with value
of the argument (converted to a Rust native int, as expected by revert).
If the test contracts don't fail or if their exit code is different
than expected, the test will fail.
"""
node = one_node_network.docker_nodes[0]
client = node.p_client.client
for wasm, encode in [
(resource("test_args_u32.wasm"), ABI.u32),
(resource("test_args_u512.wasm"), ABI.u512),
]:
for number in [1, 12, 256, 1024]:
response, deploy_hash = client.deploy(
payment=wasm,
session=wasm,
public_key=resource("accounts/account-public-genesis.pem"),
private_key=resource("accounts/account-private-genesis.pem"),
session_args=ABI.args([encode(number)]),
)
logging.info(
f"DEPLOY RESPONSE: {response} deploy_hash: {deploy_hash.hex()}"
)
response = client.propose()
# Need to convert to hex string from bytes
block_hash = response.block_hash.hex()
for deploy_info in client.showDeploys(block_hash):
assert deploy_info.is_error is True
assert deploy_info.error_message == f"Exit code: {number}"
wasm = resource("test_args_multi.wasm")
account_hex = "0101010102020202030303030404040405050505060606060707070708080808"
number = 1000
total_sum = sum([1, 2, 3, 4, 5, 6, 7, 8]) * 4 + number
response, deploy_hash = client.deploy(
payment=wasm,
session=wasm,
public_key=resource("accounts/account-public-genesis.pem"),
private_key=resource("accounts/account-private-genesis.pem"),
session_args=ABI.args(
[ABI.account(bytes.fromhex(account_hex)), ABI.u32(number)]
),
)
logging.info(f"DEPLOY RESPONSE: {response} deploy_hash: {deploy_hash.hex()}")
response = client.propose()
block_hash = response.block_hash.hex()
for deploy_info in client.showDeploys(block_hash):
assert deploy_info.is_error is True
assert deploy_info.error_message == f"Exit code: {total_sum}"
for blockInfo in client.showBlocks(10):
assert blockInfo.status.stats.block_size_bytes > 0
# Python CLI #
@pytest.fixture() # scope="module")
def cli(one_node_network):
return CLI(one_node_network.docker_nodes[0], "casperlabs_client")
@pytest.fixture() # scope="module")
def scala_cli(one_node_network):
return DockerCLI(one_node_network.docker_nodes[0])
def test_cli_no_parameters(cli):
with raises(CLIErrorExit) as ex_info:
cli()
assert "You must provide a command" in str(ex_info.value)
def test_cli_help(cli):
out = cli("--help")
# deploy,propose,show-block,show-blocks,show-deploy,show-deploys,vdag,query-state
assert "Casper" in out
def test_cli_show_blocks_and_show_block(cli):
blocks = cli("show-blocks", "--depth", "1")
assert len(blocks) > 0
for block in blocks:
block_hash = block.summary.block_hash
assert len(block_hash) == 32 * 2 # hex
b = cli("show-block", block_hash)
assert block_hash == b.summary.block_hash
def test_cli_show_block_not_found(cli):
block_hash = "00" * 32
with raises(CLIErrorExit) as ex_info:
cli("show-block", block_hash)
# StatusCode.NOT_FOUND: Cannot find block matching hash
# 0000000000000000000000000000000000000000000000000000000000000000
assert "NOT_FOUND" in str(ex_info.value)
assert "Cannot find block matching hash" in str(ex_info.value)
@pytest.mark.skip
def test_cli_deploy_propose_show_deploys_show_deploy_query_state_and_balance(cli):
resources_path = testing_root_path() / "resources"
account = GENESIS_ACCOUNT
deploy_hash = cli(
"deploy",
f"--from {account.public_key_hex}",
f"--payment {str(resources_path / 'test_helloname.wasm')}",
f"--session {str(resources_path / 'test_helloname.wasm')}",
f"--private-key {str(account.private_key_path)}",
f"--public-key {str(account.public_key_path)}",
)
block_hash = cli("propose")
deploys = cli("show-deploys", block_hash)
deploy_hashes = [d.deploy.deploy_hash for d in deploys]
assert deploy_hash in deploy_hashes
deploy_info = cli("show-deploy", deploy_hash)
assert deploy_info.deploy.deploy_hash == deploy_hash
result = cli("query-state",
"--block-hash", block_hash,
"--type", "address",
"--key", account.public_key_hex,
"--path", "",)
assert "hello_name" in [u.name for u in result.account.known_urefs]
balance = int(
cli("balance", "--address", account.public_key_hex, "--block-hash", block_hash)
)
# TODO Need constant for where this 1000000000 is from.
assert balance == 1000000000 # genesis
# CLI ABI
def int_value(x):
return x
def big_int_value(x):
return {'value': str(x), 'bit_width': 512}
abi_unsigned_test_data = [
("int_value", 'test_args_u32.wasm', int_value),
("big_int", 'test_args_u512.wasm', big_int_value),
]
@pytest.mark.parametrize("unsigned_type, test_contract, value", abi_unsigned_test_data)
def test_cli_abi_unsigned_scala(node, unsigned_type, test_contract, value):
check_cli_abi_unsigned(DockerCLI(node),
lambda s: f"'{s}'",
'/data',
unsigned_type,
value,
test_contract,
lambda a: (a.private_key_docker_path, a.public_key_docker_path))
@pytest.mark.parametrize("unsigned_type, test_contract, value", abi_unsigned_test_data)
def test_cli_abi_unsigned_python(node, unsigned_type, test_contract, value):
check_cli_abi_unsigned(CLI(node),
lambda s: s,
'resources',
unsigned_type,
value,
test_contract,
lambda a: (a.private_key_path, a.public_key_path))
def check_cli_abi_unsigned(cli, quote, resource_directory, unsigned_type, value, test_contract, keys):
account = GENESIS_ACCOUNT
private_key, public_key = keys(account)
for number in [2, 256, 1024]:
test_contract_path = '/'.join((resource_directory, test_contract))
session_args = json.dumps([{"name": "number", "value": {unsigned_type: value(number)}}])
args = ('deploy',
'--from', account.public_key_hex,
'--session', test_contract_path,
'--session-args', quote(session_args),
'--payment', test_contract_path,
'--private-key', private_key,
'--public-key', public_key)
logging.info(f"EXECUTING {' '.join(cli.expand_args(args))}")
deploy_hash = cli(*args)
cli('propose')
deploy_info = cli("show-deploy", deploy_hash)
assert deploy_info.processing_results[0].is_error is True
assert deploy_info.processing_results[0].error_message == f"Exit code: {number}"
def test_cli_abi_multiple(cli):
account = GENESIS_ACCOUNT
test_contract = resource("test_args_multi.wasm")
account_hex = "0101010102020202030303030404040405050505060606060707070708080808"
number = 1000
total_sum = sum([1, 2, 3, 4, 5, 6, 7, 8]) * 4 + number
session_args = json.dumps([{'name': 'account', 'value': {'account': account_hex}},
{'name': 'number', 'value': {'int_value': number}}])
deploy_hash = cli('deploy',
'--from', account.public_key_hex,
'--session', resource(test_contract),
'--session-args', session_args,
'--payment', resource(test_contract),
'--private-key', account.private_key_path,
'--public-key', account.public_key_path,)
cli('propose')
deploy_info = cli("show-deploy", deploy_hash)
assert deploy_info.processing_results[0].is_error is True
assert deploy_info.processing_results[0].error_message == f"Exit code: {total_sum}"
def test_cli_scala_help(scala_cli):
output = scala_cli('--help')
assert 'Subcommand: make-deploy' in output
def test_cli_scala_extended_deploy(scala_cli):
cli = scala_cli
account = GENESIS_ACCOUNT
# TODO: when paralelizing tests, make sure test don't collide
# when trying to access the same file, perhaps map containers /tmp
# to a unique hosts's directory.
test_contract = "/data/test_helloname.wasm"
cli('make-deploy',
'-o', '/tmp/unsigned.deploy',
'--from', account.public_key_hex,
'--session', test_contract,
'--payment', test_contract)
cli('sign-deploy',
'-i', '/tmp/unsigned.deploy',
'-o', '/tmp/signed.deploy',
'--private-key', account.private_key_docker_path,
'--public-key', account.public_key_docker_path)
deploy_hash = cli('send-deploy', '-i', '/tmp/signed.deploy')
cli('propose')
deploy_info = cli("show-deploy", deploy_hash)
assert not deploy_info.processing_results[0].is_error
try:
os.remove('/tmp/unsigned.deploy')
os.remove('/tmp/signed.deploy')
except Exception as e:
logging.warning(f"Could not delete temporary files: {str(e)}")
def test_cli_scala_direct_call_by_hash_and_name(scala_cli):
check_cli_direct_call_by_hash_and_name(scala_cli, scala_cli)
def test_cli_python_direct_call_by_hash_and_name(cli, scala_cli):
check_cli_direct_call_by_hash_and_name(cli, scala_cli)
def check_cli_direct_call_by_hash_and_name(cli, scala_cli):
# TODO: For now using scala_cli for assertions because for some
# strange reason Python CLI doesn't show is_error and error_message
# in the output of show-deploys. This has to be fixed asap.
account = cli.node.test_account
cli.set_default_deploy_args('--from', account.public_key_hex,
'--private-key', cli.private_key_path(account),
'--public-key', cli.public_key_path(account))
# First, deploy a contract that stores a function
# and saves pointer to it under UREF "revert_test".
# The stored function calls revert(2).
test_contract = cli.resource("test_subcall_revert_define.wasm")
first_deploy_hash = cli('deploy',
'--session', test_contract,
'--payment', test_contract)
block_hash = cli("propose")
logging.info(f"""EXECUTING {' '.join(scala_cli.expand_args(["show-deploys", block_hash]))}""")
deploys = scala_cli("show-deploys", block_hash)
assert len(list(deploys)) == 1
for deploy_info in deploys:
assert deploy_info.deploy.deploy_hash == first_deploy_hash
assert not deploy_info.is_error
# Call by name
deploy_hash = cli("deploy",
'--session-name', "revert_test",
'--payment-name', "revert_test")
block_hash = cli("propose")
deploys = scala_cli("show-deploys", block_hash)
for deploy_info in deploys:
assert deploy_info.deploy.deploy_hash == deploy_hash
assert deploy_info.error_message == 'Exit code: 2' # Expected: contract called revert(2)
# Call by function address
revert_test_addr = contract_address(first_deploy_hash, 0).hex() # assume fn_store_id starts from 0
deploy_hash = cli("deploy",
'--session-hash', revert_test_addr,
'--payment-hash', revert_test_addr)
block_hash = cli("propose")
deploys = scala_cli("show-deploys", block_hash)
for deploy_info in deploys:
assert deploy_info.deploy.deploy_hash == deploy_hash
assert deploy_info.error_message == 'Exit code: 2'
| [
1,
1053,
2897,
13,
5215,
12183,
13,
5215,
11451,
1688,
13,
5215,
4390,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
11451,
1688,
1053,
5713,
15546,
29892,
1153,
4637,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
1285,
1461,
29918,
7328,
1053,
8078,
29918,
7328,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
9435,
1053,
6724,
29918,
4632,
29918,
2084,
29892,
17714,
2208,
29949,
29918,
5813,
29918,
22412,
4717,
1783,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
9398,
22032,
6897,
29918,
10149,
29879,
1053,
16535,
29892,
402,
1430,
2890,
3235,
29918,
2477,
18736,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
9435,
1053,
6597,
29918,
1271,
29918,
8568,
29918,
3166,
29918,
771,
4220,
29918,
4905,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
14695,
29918,
3177,
1053,
20868,
4247,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
12523,
1053,
10050,
24214,
24365,
3399,
2392,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
10685,
1053,
4480,
29918,
1454,
29918,
1885,
6656,
29918,
1271,
13,
3166,
3209,
22032,
6897,
29918,
4645,
1053,
319,
12809,
13,
3166,
1243,
29889,
695,
29918,
3177,
29889,
11303,
1053,
24492,
29892,
20868,
27205,
29892,
24492,
2392,
24365,
13,
13,
13,
15945,
29908,
13,
3057,
3633,
2106,
5663,
16837,
411,
2346,
29899,
3859,
29889,
13,
13,
14023,
1962,
310,
278,
24419,
3132,
29901,
13,
13,
10149,
426,
13,
29871,
970,
29918,
1989,
29901,
376,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29908,
13,
29871,
3708,
344,
29918,
333,
426,
13,
1678,
318,
999,
29901,
376,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29908,
13,
1678,
2130,
29918,
1266,
29879,
29901,
5195,
3035,
29918,
17744,
29918,
16365,
13,
29871,
500,
13,
29871,
6942,
29918,
8149,
426,
13,
1678,
970,
29918,
1989,
29901,
376,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29908,
13,
1678,
7688,
29901,
29871,
29896,
13,
29871,
500,
13,
29871,
3158,
29918,
386,
3781,
3361,
426,
13,
1678,
18209,
29918,
386,
12268,
29901,
29871,
29896,
13,
1678,
1820,
29918,
21895,
29918,
386,
12268,
29901,
29871,
29896,
13,
29871,
500,
13,
29871,
3633,
29918,
10072,
426,
13,
1678,
1820,
29918,
21895,
29918,
4230,
29918,
3880,
29901,
29871,
29900,
13,
1678,
18209,
29918,
4230,
29918,
3880,
29901,
29871,
29900,
13,
1678,
297,
10072,
29918,
19145,
29918,
13400,
29901,
29871,
29896,
29900,
29900,
13,
29871,
500,
13,
29913,
13,
13,
15945,
29908,
13,
13,
13,
1753,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
3177,
29892,
8078,
1125,
13,
1678,
736,
2943,
29889,
16519,
29918,
392,
29918,
771,
4220,
29898,
13,
4706,
4867,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
4706,
19179,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
4706,
515,
29918,
7328,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
4706,
970,
29918,
1989,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
2084,
29892,
13,
4706,
2024,
29918,
1989,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
9053,
29918,
1989,
29918,
2084,
29892,
13,
1678,
1723,
13,
13,
13,
1753,
3633,
29918,
3859,
29898,
3177,
29892,
2908,
29918,
8568,
29892,
3633,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
1125,
13,
1678,
736,
2943,
29889,
29881,
29918,
4645,
29889,
1972,
29918,
3859,
29898,
13,
4706,
2908,
29918,
8568,
29922,
1271,
29918,
8568,
29892,
1820,
29918,
1853,
543,
7328,
613,
1820,
29922,
10149,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
2224,
13776,
13,
1678,
1723,
13,
13,
13,
1753,
1243,
29918,
10149,
29918,
3859,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
2943,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
13,
1678,
2908,
29918,
8568,
353,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
3177,
29892,
376,
1688,
29918,
11808,
7922,
29889,
11102,
29885,
1159,
13,
1678,
1401,
417,
952,
353,
2943,
29889,
4645,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
29897,
13,
1678,
4974,
451,
1401,
417,
952,
29961,
29900,
1822,
275,
29918,
2704,
13,
13,
1678,
1274,
312,
29918,
3859,
353,
3633,
29918,
3859,
29898,
3177,
29892,
2908,
29918,
8568,
29897,
13,
1678,
2998,
29918,
545,
5847,
353,
1274,
312,
29918,
3859,
29889,
10149,
29961,
29900,
1822,
5203,
29918,
545,
5847,
13,
1678,
2983,
353,
518,
545,
29888,
29889,
978,
363,
318,
999,
297,
2998,
29918,
545,
5847,
29962,
13,
1678,
4974,
376,
11808,
29908,
297,
2983,
13,
13,
1678,
2908,
29918,
8568,
353,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
3177,
29892,
376,
1688,
29918,
11808,
4804,
29889,
11102,
29885,
1159,
13,
1678,
1274,
312,
29918,
3859,
353,
3633,
29918,
3859,
29898,
3177,
29892,
2908,
29918,
8568,
29897,
13,
1678,
2998,
29918,
545,
5847,
353,
1274,
312,
29918,
3859,
29889,
10149,
29961,
29900,
1822,
5203,
29918,
545,
5847,
13,
1678,
2983,
353,
518,
545,
29888,
29889,
978,
363,
318,
999,
297,
2998,
29918,
545,
5847,
29962,
13,
1678,
4974,
376,
11808,
29908,
297,
2983,
13,
13,
13,
1753,
1243,
29918,
3286,
571,
29918,
2541,
29918,
957,
29881,
4154,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
13,
1678,
1274,
312,
29896,
353,
16535,
29898,
29896,
29897,
13,
1678,
1274,
312,
29906,
353,
16535,
29898,
29906,
29897,
13,
13,
1678,
2943,
29901,
20868,
4247,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
1678,
396,
17934,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
515,
2531,
6656,
856,
304,
1274,
312,
29896,
856,
13,
13,
1678,
396,
1152,
24521,
411,
382,
29923,
411,
694,
8225,
3438,
13,
1678,
396,
19179,
29918,
1285,
1461,
543,
3286,
571,
29918,
517,
29918,
10149,
29889,
11102,
29885,
29908,
13,
1678,
2908,
29918,
8568,
353,
2943,
29889,
3286,
571,
29918,
517,
29918,
10149,
29898,
13,
4706,
304,
29918,
10149,
29918,
333,
29922,
29896,
29892,
13,
4706,
5253,
29922,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
29892,
13,
4706,
515,
29918,
10149,
29918,
333,
543,
1885,
6656,
613,
13,
4706,
19179,
29918,
1285,
1461,
543,
3286,
571,
29918,
517,
29918,
10149,
29889,
11102,
29885,
613,
13,
1678,
1723,
13,
13,
1678,
1401,
417,
952,
353,
2943,
29889,
4645,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
29897,
13,
1678,
4974,
451,
1401,
417,
952,
29961,
29900,
1822,
275,
29918,
2704,
29892,
285,
29908,
2704,
29918,
4906,
29901,
426,
2716,
417,
952,
29961,
29900,
1822,
2704,
29918,
4906,
5038,
13,
13,
1678,
396,
13291,
451,
1304,
29892,
541,
1223,
1973,
3633,
1863,
13,
1678,
903,
353,
3633,
29918,
3859,
29898,
3177,
29892,
2908,
29918,
8568,
29892,
1274,
312,
29896,
29897,
13,
13,
1678,
396,
10575,
1059,
408,
3633,
1838,
29915,
29873,
1863,
29889,
13,
1678,
411,
1153,
4637,
29898,
2451,
1125,
13,
4706,
903,
353,
3633,
29918,
3859,
29898,
1271,
29918,
8568,
29892,
1274,
312,
29906,
29889,
3597,
29918,
1989,
29918,
20970,
29897,
13,
13,
1678,
396,
1939,
3450,
5279,
4864,
363,
2805,
17346,
304,
1423,
6782,
29889,
13,
1678,
396,
17934,
29871,
29955,
29945,
29900,
29900,
29900,
29900,
515,
1274,
312,
29896,
856,
304,
1274,
312,
29906,
856,
13,
1678,
2908,
29918,
8568,
353,
2943,
29889,
3286,
571,
29918,
517,
29918,
10149,
29898,
13,
4706,
304,
29918,
10149,
29918,
333,
29922,
29906,
29892,
13,
4706,
5253,
29922,
29955,
29945,
29900,
29900,
29900,
29900,
29892,
13,
4706,
515,
29918,
10149,
29918,
333,
29922,
29896,
29892,
13,
4706,
19179,
29918,
1285,
1461,
543,
3286,
571,
29918,
517,
29918,
10149,
29889,
11102,
29885,
613,
13,
1678,
1723,
13,
13,
1678,
1401,
417,
952,
353,
2943,
29889,
4645,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
29897,
13,
1678,
4974,
451,
1401,
417,
952,
29961,
29900,
1822,
275,
29918,
2704,
29892,
285,
29908,
2704,
29918,
4906,
29901,
426,
2716,
417,
952,
29961,
29900,
1822,
2704,
29918,
4906,
5038,
13,
13,
1678,
396,
13291,
451,
1304,
29892,
541,
1223,
1973,
3633,
1863,
13,
1678,
903,
353,
3633,
29918,
3859,
29898,
3177,
29892,
2908,
29918,
8568,
29892,
1274,
312,
29906,
29897,
13,
13,
1678,
396,
17934,
29871,
29955,
29945,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
515,
1274,
312,
29896,
856,
304,
1274,
312,
29906,
856,
13,
1678,
396,
10575,
4418,
411,
1274,
312,
29896,
975,
19811,
1233,
29889,
259,
830,
339,
2658,
4974,
297,
8078,
304,
5706,
338,
29918,
2704,
29889,
13,
1678,
411,
1153,
4637,
29898,
2451,
1125,
13,
4706,
903,
353,
2943,
29889,
3286,
571,
29918,
517,
29918,
10149,
29898,
13,
9651,
304,
29918,
10149,
29918,
333,
29922,
29906,
29892,
13,
9651,
5253,
29922,
29955,
29945,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29892,
13,
9651,
515,
29918,
10149,
29918,
333,
29922,
29896,
29892,
13,
9651,
19179,
29918,
1285,
1461,
543,
3286,
571,
29918,
517,
29918,
10149,
29889,
11102,
29885,
613,
13,
4706,
1723,
13,
13,
13,
1753,
1243,
29918,
3286,
571,
29918,
517,
29918,
10149,
29879,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
2943,
29901,
20868,
4247,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
1678,
396,
27313,
2999,
1301,
25534,
411,
1095,
1121,
310,
7255,
312,
29896,
353,
29871,
29896,
29900,
29900,
29892,
7255,
312,
29906,
353,
29871,
29896,
29900,
29900,
29892,
7255,
312,
29941,
353,
29871,
29947,
29900,
29900,
13,
1678,
2943,
29889,
3286,
571,
29918,
517,
29918,
10149,
29879,
4197,
29898,
29896,
29892,
29871,
29896,
29900,
29900,
29900,
511,
313,
29906,
29892,
29871,
29929,
29900,
29900,
29892,
29871,
29896,
511,
313,
29941,
29892,
29871,
29947,
29900,
29900,
29892,
29871,
29906,
29897,
2314,
13,
1678,
411,
1153,
4637,
29898,
2451,
1125,
13,
4706,
396,
7255,
312,
29871,
29896,
756,
451,
3307,
29199,
577,
372,
881,
4418,
13,
4706,
2943,
29889,
3286,
571,
29918,
517,
29918,
10149,
29898,
13,
9651,
304,
29918,
10149,
29918,
333,
29922,
29946,
29892,
13,
9651,
5253,
29922,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29892,
13,
9651,
515,
29918,
10149,
29918,
333,
29922,
29896,
29892,
13,
9651,
19179,
29918,
1285,
1461,
543,
3286,
571,
29918,
517,
29918,
10149,
29889,
11102,
29885,
613,
13,
4706,
1723,
13,
1678,
2943,
29889,
3286,
571,
29918,
517,
29918,
10149,
29898,
13,
4706,
304,
29918,
10149,
29918,
333,
29922,
29946,
29892,
13,
4706,
5253,
29922,
29896,
29900,
29900,
29892,
13,
4706,
515,
29918,
10149,
29918,
333,
29922,
29906,
29892,
13,
4706,
19179,
29918,
1285,
1461,
543,
3286,
571,
29918,
517,
29918,
10149,
29889,
11102,
29885,
613,
13,
1678,
1723,
13,
1678,
396,
14402,
29901,
1954,
771,
345,
12747,
2748,
17346,
338,
4780,
304,
1303,
29889,
13,
13,
13,
1753,
17346,
29898,
3177,
29892,
3633,
29918,
7328,
29892,
2908,
29918,
8568,
1125,
13,
1678,
1018,
29901,
13,
4706,
736,
2943,
29889,
4645,
29889,
657,
29918,
5521,
749,
29898,
10149,
29918,
7328,
29892,
2908,
29918,
8568,
29897,
13,
1678,
5174,
8960,
29901,
13,
4706,
736,
29871,
29900,
13,
13,
13,
1753,
1243,
29918,
15820,
29918,
4645,
29918,
5521,
749,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
2943,
29901,
20868,
4247,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
13,
1678,
15303,
353,
518,
10601,
29898,
29875,
29897,
363,
474,
297,
3464,
29898,
29896,
29892,
29871,
29946,
4638,
13,
13,
1678,
2908,
29918,
8568,
353,
1051,
29898,
3177,
29889,
29886,
29918,
4645,
29889,
4294,
29918,
1271,
29879,
29898,
29896,
876,
29961,
29900,
1822,
7727,
29889,
1271,
29918,
8568,
29889,
20970,
580,
13,
13,
1678,
2847,
353,
518,
13,
4706,
17346,
29898,
3177,
29892,
3633,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
2908,
29918,
8568,
29897,
363,
3633,
297,
15303,
13,
1678,
4514,
13,
13,
1678,
396,
27313,
2999,
1301,
25534,
411,
1095,
1121,
310,
7255,
312,
29896,
353,
29871,
29906,
29900,
29900,
29892,
7255,
312,
29906,
353,
29871,
29896,
29900,
29900,
29892,
7255,
312,
29941,
353,
29871,
29955,
29900,
29900,
13,
1678,
6608,
267,
353,
2943,
29889,
3286,
571,
29918,
517,
29918,
10149,
29879,
4197,
29898,
29896,
29892,
29871,
29896,
29900,
29900,
29900,
511,
313,
29906,
29892,
29871,
29947,
29900,
29900,
29892,
29871,
29896,
511,
313,
29941,
29892,
29871,
29955,
29900,
29900,
29892,
29871,
29906,
29897,
2314,
13,
13,
1678,
363,
1274,
312,
29918,
1949,
29892,
995,
297,
5135,
29900,
29892,
29871,
29906,
29900,
29900,
511,
313,
29896,
29892,
29871,
29896,
29900,
29900,
511,
313,
29906,
29892,
29871,
29955,
29900,
29900,
22164,
13,
4706,
28915,
353,
15303,
29961,
562,
312,
29918,
1949,
1822,
3597,
29918,
1989,
29918,
20970,
13,
4706,
6411,
353,
2943,
29889,
29881,
29918,
4645,
29889,
657,
29918,
5521,
749,
29898,
10149,
29918,
7328,
29922,
10030,
29892,
2908,
29918,
8568,
29922,
8568,
267,
14352,
29896,
2314,
13,
4706,
4974,
6411,
1275,
2847,
29961,
562,
312,
29918,
1949,
29962,
718,
995,
13,
13,
13,
600,
29875,
29918,
1688,
29918,
1285,
1461,
29879,
353,
518,
13,
1678,
4852,
657,
4804,
261,
7922,
29889,
11102,
29885,
613,
376,
657,
4804,
261,
4804,
29889,
11102,
29885,
4968,
13,
1678,
4852,
1761,
5203,
545,
5847,
7922,
29889,
11102,
29885,
613,
376,
1761,
5203,
545,
29888,
1557,
497,
29889,
11102,
29885,
4968,
13,
29962,
13,
13,
13,
1753,
7246,
29918,
392,
29918,
771,
4220,
29918,
17854,
29918,
1217,
29918,
12523,
29898,
3177,
29892,
8078,
1125,
13,
1678,
3132,
353,
2943,
29889,
29881,
29918,
4645,
13,
1678,
2908,
29918,
8568,
353,
2943,
29889,
16519,
29918,
392,
29918,
771,
4220,
29898,
13,
4706,
4867,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
4706,
19179,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
4706,
515,
29918,
7328,
29922,
3177,
29889,
1885,
6656,
29918,
10149,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
4706,
970,
29918,
1989,
29922,
3177,
29889,
1885,
6656,
29918,
10149,
29889,
3597,
29918,
1989,
29918,
2084,
29892,
13,
4706,
2024,
29918,
1989,
29922,
3177,
29889,
1885,
6656,
29918,
10149,
29889,
9053,
29918,
1989,
29918,
2084,
29892,
13,
1678,
1723,
13,
1678,
364,
353,
3132,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
9601,
29900,
29962,
13,
1678,
4974,
364,
29889,
275,
29918,
2704,
338,
7700,
29892,
285,
29908,
2704,
29918,
4906,
29901,
426,
29878,
29889,
2704,
29918,
4906,
5038,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
703,
7922,
29918,
1285,
1461,
29892,
1246,
29918,
1285,
1461,
613,
285,
7241,
29918,
1688,
29918,
1285,
1461,
29879,
29897,
13,
1753,
1243,
29918,
657,
29918,
4804,
261,
29898,
650,
29918,
3177,
29918,
11618,
29892,
4529,
29918,
1285,
1461,
29892,
1246,
29918,
1285,
1461,
1125,
13,
1678,
2943,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
1678,
7246,
29918,
392,
29918,
771,
4220,
29918,
17854,
29918,
1217,
29918,
12523,
29898,
3177,
29892,
4529,
29918,
1285,
1461,
29897,
13,
1678,
7246,
29918,
392,
29918,
771,
4220,
29918,
17854,
29918,
1217,
29918,
12523,
29898,
3177,
29892,
1246,
29918,
1285,
1461,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
703,
11102,
29885,
613,
518,
9606,
2208,
29949,
29918,
5813,
29918,
22412,
4717,
1783,
29892,
376,
1025,
29918,
11102,
29885,
29914,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
20068,
13,
1753,
1243,
29918,
20787,
29918,
771,
4220,
29898,
650,
29918,
3177,
29918,
11618,
29892,
471,
29885,
1125,
13,
1678,
9995,
13,
1678,
5169,
1535,
934,
29901,
16193,
29889,
14394,
13,
1678,
2522,
24893,
29901,
16740,
2943,
7246,
322,
2999,
16193,
16785,
385,
8960,
29889,
13,
1678,
6418,
29899,
29896,
29947,
29906,
29901,
3824,
16193,
881,
367,
2551,
29892,
322,
15352,
16193,
5717,
881,
3183,
385,
1059,
29914,
11739,
29889,
13,
1678,
9995,
13,
1678,
2943,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
1678,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
3177,
29892,
471,
29885,
29897,
13,
1678,
1353,
29918,
974,
29918,
1271,
29879,
353,
2943,
29889,
4645,
29889,
657,
29918,
1271,
29879,
29918,
2798,
29898,
29896,
29900,
29900,
29897,
13,
13,
1678,
1018,
29901,
13,
4706,
903,
353,
2943,
29889,
4645,
29889,
771,
4220,
580,
13,
4706,
4974,
7700,
29892,
376,
11863,
16193,
1818,
451,
9269,
29892,
881,
3183,
29908,
13,
1678,
5174,
10050,
24214,
24365,
3399,
2392,
408,
321,
29901,
13,
4706,
4974,
321,
29889,
13322,
29918,
401,
1275,
29871,
29896,
29892,
376,
11863,
16193,
881,
4418,
29908,
13,
1678,
4480,
29918,
1454,
29918,
1885,
6656,
29918,
1271,
29898,
3177,
29897,
13,
13,
1678,
396,
9681,
310,
10930,
1156,
1473,
16193,
881,
451,
1735,
13,
1678,
4974,
2943,
29889,
4645,
29889,
657,
29918,
1271,
29879,
29918,
2798,
29898,
29896,
29900,
29900,
29897,
1275,
1353,
29918,
974,
29918,
1271,
29879,
13,
13,
13,
29937,
1222,
9422,
310,
2346,
29899,
3859,
8283,
411,
278,
24419,
3132,
393,
1121,
297,
4436,
29901,
13,
13,
29937,
6960,
546,
29931,
6897,
29914,
14695,
395,
11431,
4645,
29889,
845,
2943,
29899,
29900,
16193,
13,
29937,
13291,
29901,
21397,
29991,
15658,
29871,
29929,
29881,
29941,
29947,
29947,
29941,
29953,
29945,
29929,
29947,
856,
2825,
322,
2715,
29889,
13,
13,
29937,
6960,
546,
29931,
6897,
29914,
14695,
395,
11431,
4645,
29889,
845,
2943,
29899,
29900,
2346,
29899,
3859,
1192,
1271,
29899,
8568,
18793,
29929,
29881,
29908,
29915,
1192,
1989,
18793,
29874,
29929,
29896,
29906,
29900,
29947,
29900,
29946,
29955,
29883,
29908,
29915,
1192,
2084,
934,
29889,
12353,
1192,
1853,
6608,
13,
29937,
6058,
29918,
5800,
18783,
29901,
15808,
1284,
2908,
9686,
6608,
376,
29929,
29881,
29908,
13,
13,
29937,
6960,
546,
29931,
6897,
29914,
14695,
29938,
11431,
4645,
29889,
845,
2943,
29899,
29900,
2346,
29899,
3859,
1192,
1271,
29899,
8568,
29871,
29929,
29881,
1192,
1989,
18793,
29874,
29929,
29896,
29906,
29900,
29947,
29900,
29946,
29955,
29883,
29908,
29915,
1192,
2084,
934,
29889,
12353,
1192,
1853,
6608,
13,
29937,
2672,
26707,
29918,
1718,
29954,
5005,
3919,
29901,
7670,
310,
1134,
6608,
1818,
505,
3721,
29871,
29941,
29906,
6262,
29892,
29871,
29945,
353,
29914,
29922,
29871,
29941,
29906,
4944,
29889,
13,
13,
29937,
6960,
546,
29931,
6897,
29914,
14695,
29938,
11431,
4645,
29889,
845,
2943,
29899,
29900,
2346,
29899,
3859,
1192,
1271,
29899,
8568,
29871,
29929,
29881,
1192,
1989,
29871,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
1192,
2084,
934,
29889,
12353,
1192,
1853,
6608,
13,
29937,
2672,
26707,
29918,
1718,
29954,
5005,
3919,
29901,
7865,
451,
1476,
29901,
376,
11874,
4197,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
29892,
29871,
29946,
29947,
2314,
29908,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
29871,
396,
6874,
543,
5453,
1159,
13,
1753,
2943,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
736,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
29871,
396,
313,
6078,
543,
5453,
1159,
13,
1753,
3132,
29898,
3177,
1125,
13,
1678,
736,
2943,
29889,
29881,
29918,
4645,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
29871,
396,
313,
6078,
543,
5453,
1159,
13,
1753,
2908,
29918,
8568,
29898,
3177,
1125,
13,
1678,
736,
2943,
29889,
16519,
29918,
392,
29918,
771,
4220,
29898,
13,
4706,
4867,
29918,
1285,
1461,
543,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
613,
19179,
29918,
1285,
1461,
543,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
29908,
13,
1678,
1723,
13,
13,
13,
1271,
29918,
8568,
29918,
339,
6358,
353,
518,
13,
1678,
313,
13,
4706,
426,
13,
9651,
376,
1271,
29918,
8568,
1115,
376,
29929,
29881,
29900,
29900,
29900,
29900,
29900,
29900,
613,
13,
9651,
376,
1989,
1115,
376,
29874,
29929,
29896,
29906,
29900,
29947,
29900,
29946,
29955,
29883,
613,
13,
9651,
376,
2084,
1115,
376,
1445,
29889,
12353,
613,
13,
9651,
376,
1989,
29918,
1853,
1115,
376,
8568,
613,
13,
4706,
2981,
13,
4706,
376,
12256,
29918,
5800,
18783,
29901,
15808,
1284,
2908,
9686,
613,
13,
1678,
10353,
13,
1678,
313,
13,
4706,
8853,
1989,
1115,
376,
29874,
29929,
29896,
29906,
29900,
29947,
29900,
29946,
29955,
29883,
613,
376,
2084,
1115,
376,
1445,
29889,
12353,
613,
376,
1989,
29918,
1853,
1115,
376,
8568,
10758,
13,
4706,
376,
1177,
26707,
29918,
1718,
29954,
5005,
3919,
29901,
7670,
310,
1134,
6608,
1818,
505,
3721,
29871,
29941,
29906,
6262,
613,
13,
1678,
10353,
13,
1678,
313,
6377,
2084,
1115,
376,
1445,
29889,
12353,
613,
376,
1989,
29918,
1853,
1115,
376,
8568,
10758,
376,
1177,
26707,
29918,
1718,
29954,
5005,
3919,
29901,
7865,
451,
1476,
4968,
13,
29962,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
703,
1972,
29892,
3806,
613,
2908,
29918,
8568,
29918,
339,
6358,
29897,
13,
1753,
1243,
29918,
1972,
29918,
3859,
29918,
2704,
29898,
3177,
29892,
3132,
29892,
2908,
29918,
8568,
29892,
2346,
29892,
3806,
1125,
13,
1678,
565,
376,
1271,
29918,
8568,
29908,
451,
297,
2346,
29901,
13,
4706,
2346,
3366,
1271,
29918,
8568,
3108,
353,
2908,
29918,
8568,
13,
13,
1678,
565,
376,
1989,
29908,
451,
297,
2346,
29901,
13,
4706,
2346,
3366,
1989,
3108,
353,
402,
1430,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
20970,
13,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
12283,
24214,
24365,
3399,
2392,
29897,
408,
5566,
3888,
29901,
13,
4706,
903,
353,
3132,
29889,
1972,
29918,
3859,
29898,
1068,
1972,
29897,
13,
1678,
4974,
3806,
297,
5566,
3888,
29889,
1767,
29889,
4905,
13,
13,
13,
1753,
1243,
29918,
276,
1765,
29918,
1491,
4804,
29898,
4645,
29892,
2943,
1125,
13,
1678,
396,
910,
8078,
5717,
1790,
8078,
393,
5717,
29538,
29898,
29906,
29897,
13,
1678,
2908,
29918,
8568,
353,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
13,
4706,
2943,
29892,
376,
1688,
29918,
1491,
4804,
29918,
276,
1765,
29918,
7922,
29889,
11102,
29885,
29908,
13,
1678,
1723,
13,
13,
1678,
364,
353,
3132,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
9601,
29900,
29962,
13,
1678,
4974,
451,
364,
29889,
275,
29918,
2704,
13,
1678,
4974,
364,
29889,
2704,
29918,
4906,
1275,
5124,
13,
13,
1678,
7246,
29918,
8568,
353,
364,
29889,
16519,
29889,
16519,
29918,
8568,
13,
13,
1678,
364,
353,
3132,
29889,
4294,
29918,
16519,
29898,
16519,
29918,
8568,
29897,
13,
1678,
4974,
364,
29889,
16519,
29889,
16519,
29918,
8568,
1275,
7246,
29918,
8568,
13,
13,
1678,
2908,
29918,
8568,
353,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
3177,
29892,
376,
1688,
29918,
1491,
4804,
29918,
276,
1765,
29918,
4804,
29889,
11102,
29885,
1159,
13,
1678,
364,
353,
3132,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
9601,
29900,
29962,
13,
1678,
4974,
364,
29889,
275,
29918,
2704,
13,
1678,
4974,
364,
29889,
2704,
29918,
4906,
1275,
376,
24365,
775,
29901,
29871,
29906,
29908,
13,
13,
13,
1753,
1243,
29918,
276,
1765,
29918,
11851,
29898,
4645,
29892,
2943,
1125,
13,
1678,
396,
910,
8078,
5717,
29538,
29898,
29896,
29897,
4153,
13,
1678,
2908,
29918,
8568,
353,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
3177,
29892,
376,
1688,
29918,
11851,
29918,
276,
1765,
29918,
4804,
29889,
11102,
29885,
1159,
13,
13,
1678,
364,
353,
3132,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
9601,
29900,
29962,
13,
1678,
4974,
364,
29889,
275,
29918,
2704,
13,
1678,
4974,
364,
29889,
2704,
29918,
4906,
1275,
376,
24365,
775,
29901,
29871,
29896,
29908,
13,
13,
13,
1753,
1243,
29918,
16519,
29918,
2541,
29918,
3084,
29918,
4530,
1535,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
9995,
13,
1678,
5169,
1535,
934,
29901,
7246,
29889,
14394,
13,
1678,
2522,
24893,
29901,
10034,
2376,
411,
2854,
12608,
13,
1678,
9995,
13,
1678,
2943,
29900,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
1678,
2908,
29918,
8568,
353,
7246,
29918,
392,
29918,
771,
4220,
29918,
3166,
29918,
1885,
6656,
29898,
3177,
29900,
29892,
376,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
1159,
13,
1678,
1401,
417,
952,
353,
2943,
29900,
29889,
4645,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
29897,
13,
1678,
4974,
1401,
417,
952,
29961,
29900,
1822,
275,
29918,
2704,
338,
7700,
13,
13,
13,
1753,
1243,
29918,
16519,
29918,
2541,
29918,
20965,
29918,
4530,
1535,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
9995,
13,
1678,
5169,
1535,
934,
29901,
7246,
29889,
14394,
13,
1678,
2522,
24893,
29901,
10034,
2376,
411,
8340,
12608,
13,
1678,
9995,
13,
13,
1678,
2943,
29900,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
12283,
24214,
24365,
3399,
2392,
1125,
13,
4706,
2943,
29900,
29889,
4645,
29889,
16519,
29898,
13,
9651,
515,
29918,
7328,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
9651,
4867,
29918,
1285,
1461,
543,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
613,
13,
9651,
19179,
29918,
1285,
1461,
543,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
613,
13,
9651,
2024,
29918,
1989,
543,
3084,
1061,
29899,
29900,
29899,
9053,
29899,
20965,
29889,
29886,
331,
613,
13,
9651,
970,
29918,
1989,
543,
3084,
1061,
29899,
29900,
29899,
3597,
29899,
20965,
29889,
29886,
331,
613,
13,
4706,
1723,
13,
13,
13,
15945,
29908,
13,
19132,
934,
29901,
3695,
29914,
29907,
294,
546,
29931,
6897,
29914,
27925,
29899,
13424,
29914,
22100,
29914,
16519,
29889,
14394,
13,
15945,
29908,
13,
13,
13,
1753,
7246,
29918,
392,
29918,
771,
4220,
29898,
3177,
29892,
8078,
1125,
13,
1678,
2943,
29889,
4645,
29889,
16519,
29898,
13,
4706,
4867,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
4706,
19179,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
4706,
515,
29918,
7328,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
4706,
970,
29918,
1989,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
2084,
29892,
13,
4706,
2024,
29918,
1989,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
9053,
29918,
1989,
29918,
2084,
29892,
13,
1678,
1723,
13,
1678,
736,
6597,
29918,
1271,
29918,
8568,
29918,
3166,
29918,
771,
4220,
29918,
4905,
29898,
3177,
29889,
4645,
29889,
771,
4220,
3101,
13,
13,
13,
1753,
7246,
29898,
3177,
29892,
8078,
1125,
13,
1678,
2643,
353,
2943,
29889,
4645,
29889,
16519,
29898,
13,
4706,
515,
29918,
7328,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
4706,
970,
29918,
1989,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
2084,
29892,
13,
4706,
2024,
29918,
1989,
29922,
24647,
2890,
3235,
29918,
2477,
18736,
29889,
9053,
29918,
1989,
29918,
2084,
29892,
13,
4706,
4867,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
4706,
19179,
29918,
1285,
1461,
29922,
1285,
1461,
29892,
13,
1678,
1723,
13,
1678,
4974,
376,
14191,
3850,
297,
2643,
13,
1678,
736,
2643,
29889,
5451,
580,
29961,
29906,
29962,
13,
13,
13,
1753,
16193,
29898,
3177,
1125,
13,
1678,
736,
6597,
29918,
1271,
29918,
8568,
29918,
3166,
29918,
771,
4220,
29918,
4905,
29898,
3177,
29889,
4645,
29889,
771,
4220,
3101,
13,
13,
13,
1753,
7246,
29918,
8568,
267,
29898,
3177,
29892,
2908,
29918,
8568,
1125,
13,
1678,
736,
731,
29898,
29881,
29889,
16519,
29889,
16519,
29918,
8568,
363,
270,
297,
2943,
29889,
4645,
29889,
4294,
29918,
2716,
417,
952,
29898,
1271,
29918,
8568,
876,
13,
13,
13,
29937,
5132,
12477,
313,
5258,
29897,
13,
13,
29937,
19200,
29901,
1283,
13,
13,
13,
1753,
6503,
29898,
9144,
1125,
13,
1678,
3151,
29918,
2084,
353,
10802,
29898,
359,
29889,
2084,
29889,
6370,
2084,
22168,
1445,
1649,
8106,
3560,
13,
1678,
1550,
3151,
29918,
2084,
29889,
978,
2804,
376,
27925,
29899,
13424,
1115,
13,
4706,
3151,
29918,
2084,
353,
3151,
29918,
2084,
29889,
3560,
13,
1678,
736,
3151,
29918,
2084,
847,
376,
13237,
29908,
847,
7876,
13,
13,
13,
1753,
1243,
29918,
5085,
29918,
16680,
7295,
13,
1678,
3633,
353,
313,
13,
4706,
289,
26732,
29916,
29900,
29900,
29905,
29916,
29900,
29896,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29906,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29941,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29946,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29945,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29953,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29955,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29947,
29908,
13,
4706,
289,
26732,
29916,
29900,
29900,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29896,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29906,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29941,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29946,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29945,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29953,
29905,
29916,
29900,
29900,
29905,
29916,
29900,
29955,
29908,
13,
1678,
1723,
13,
13,
1678,
5253,
353,
29871,
29896,
29906,
29941,
29946,
29945,
29953,
13,
13,
1678,
6389,
353,
518,
6377,
978,
1115,
376,
14506,
613,
376,
1767,
1115,
8853,
5426,
29918,
1767,
1115,
5253,
11656,
13,
9651,
8853,
978,
1115,
376,
10149,
613,
376,
1767,
1115,
8853,
13193,
29918,
1767,
1115,
3633,
29889,
20970,
580,
11656,
13,
9651,
8853,
978,
1115,
376,
15503,
344,
29918,
333,
613,
376,
1767,
1115,
8853,
25253,
29918,
1767,
1115,
426,
930,
1118,
13,
9651,
8853,
978,
1115,
376,
4537,
613,
376,
1767,
1115,
8853,
3752,
29918,
524,
1115,
8853,
1767,
1115,
376,
29906,
613,
376,
2966,
29918,
2103,
1115,
29871,
29945,
29896,
29906,
930,
6525,
13,
13,
1678,
4390,
29918,
710,
353,
4390,
29889,
29881,
17204,
29898,
5085,
29897,
13,
13,
1678,
4974,
319,
12809,
29889,
5085,
29918,
3166,
29918,
3126,
29898,
3126,
29918,
710,
29897,
1275,
319,
12809,
29889,
5085,
29898,
13,
4706,
518,
2882,
29902,
29889,
5426,
29918,
1767,
29898,
14506,
511,
319,
12809,
29889,
10149,
29898,
10149,
511,
319,
12809,
29889,
25253,
29918,
1767,
29898,
8516,
511,
319,
12809,
29889,
3752,
29918,
524,
29898,
29906,
4638,
13,
1678,
1723,
13,
13,
13,
29992,
7241,
15546,
580,
13,
1753,
2531,
6656,
29918,
3597,
29918,
4530,
292,
29918,
1989,
7295,
13,
1678,
411,
402,
1430,
2890,
3235,
29918,
2477,
18736,
29889,
3597,
29918,
1989,
29918,
19541,
29918,
1445,
580,
408,
285,
29901,
13,
4706,
7709,
285,
13,
13,
13,
1753,
1243,
29918,
16519,
29918,
2541,
29918,
5085,
29898,
650,
29918,
3177,
29918,
11618,
29892,
2531,
6656,
29918,
3597,
29918,
4530,
292,
29918,
1989,
1125,
13,
1678,
9995,
13,
1678,
10034,
417,
952,
1243,
8078,
29879,
393,
437,
29901,
13,
13,
4706,
29538,
29898,
657,
29918,
1191,
29898,
29900,
2483,
849,
363,
318,
29941,
29906,
322,
318,
29945,
29896,
29906,
13,
13,
1678,
322,
13,
13,
4706,
29538,
29898,
2083,
29898,
7328,
29918,
13193,
29961,
29884,
29947,
29936,
29871,
29941,
29906,
2314,
718,
318,
29941,
29906,
416,
363,
2999,
2980,
1243,
29889,
13,
13,
1678,
4321,
29879,
6389,
679,
5149,
18511,
322,
1602,
6797,
297,
278,
8078,
29889,
13,
13,
1678,
4321,
23347,
278,
1243,
8078,
29879,
1243,
29918,
5085,
29918,
29884,
29941,
29906,
29889,
11102,
29885,
322,
1243,
29918,
5085,
29918,
29884,
29945,
29896,
29906,
29889,
11102,
29885,
13,
1678,
304,
16964,
6646,
5149,
1009,
6273,
322,
769,
1246,
29538,
411,
995,
13,
1678,
310,
278,
2980,
313,
13441,
287,
304,
263,
390,
504,
7531,
938,
29892,
408,
3806,
491,
29538,
467,
13,
1678,
960,
278,
1243,
8078,
29879,
1016,
29915,
29873,
4418,
470,
565,
1009,
6876,
775,
338,
1422,
13,
1678,
1135,
3806,
29892,
278,
1243,
674,
4418,
29889,
13,
1678,
9995,
13,
1678,
2943,
353,
697,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
29962,
13,
1678,
3132,
353,
2943,
29889,
29886,
29918,
4645,
29889,
4645,
13,
13,
1678,
363,
471,
29885,
29892,
19750,
297,
518,
13,
4706,
313,
10314,
703,
1688,
29918,
5085,
29918,
29884,
29941,
29906,
29889,
11102,
29885,
4968,
319,
12809,
29889,
29884,
29941,
29906,
511,
13,
4706,
313,
10314,
703,
1688,
29918,
5085,
29918,
29884,
29945,
29896,
29906,
29889,
11102,
29885,
4968,
319,
12809,
29889,
29884,
29945,
29896,
29906,
511,
13,
1678,
4514,
29901,
13,
4706,
363,
1353,
297,
518,
29896,
29892,
29871,
29896,
29906,
29892,
29871,
29906,
29945,
29953,
29892,
29871,
29896,
29900,
29906,
29946,
5387,
13,
9651,
2933,
29892,
7246,
29918,
8568,
353,
3132,
29889,
16519,
29898,
13,
18884,
19179,
29922,
11102,
29885,
29892,
13,
18884,
4867,
29922,
11102,
29885,
29892,
13,
18884,
970,
29918,
1989,
29922,
10314,
703,
10149,
29879,
29914,
10149,
29899,
3597,
29899,
1885,
6656,
29889,
29886,
331,
4968,
13,
18884,
2024,
29918,
1989,
29922,
10314,
703,
10149,
29879,
29914,
10149,
29899,
9053,
29899,
1885,
6656,
29889,
29886,
331,
4968,
13,
18884,
4867,
29918,
5085,
29922,
2882,
29902,
29889,
5085,
4197,
12508,
29898,
4537,
4638,
511,
13,
9651,
1723,
13,
9651,
12183,
29889,
3888,
29898,
13,
18884,
285,
29908,
2287,
29925,
3927,
29979,
390,
2890,
29925,
1164,
1660,
29901,
426,
5327,
29913,
7246,
29918,
8568,
29901,
426,
16519,
29918,
8568,
29889,
20970,
580,
5038,
13,
9651,
1723,
13,
13,
9651,
2933,
353,
3132,
29889,
771,
4220,
580,
13,
9651,
396,
20768,
304,
3588,
304,
15090,
1347,
515,
6262,
13,
9651,
2908,
29918,
8568,
353,
2933,
29889,
1271,
29918,
8568,
29889,
20970,
580,
13,
13,
9651,
363,
7246,
29918,
3888,
297,
3132,
29889,
4294,
8498,
417,
952,
29898,
1271,
29918,
8568,
1125,
13,
18884,
4974,
7246,
29918,
3888,
29889,
275,
29918,
2704,
338,
5852,
13,
18884,
4974,
7246,
29918,
3888,
29889,
2704,
29918,
4906,
1275,
285,
29908,
24365,
775,
29901,
426,
4537,
5038,
13,
13,
1678,
471,
29885,
353,
6503,
703,
1688,
29918,
5085,
29918,
9910,
29889,
11102,
29885,
1159,
13,
1678,
3633,
29918,
20970,
353,
376,
29900,
29896,
29900,
29896,
29900,
29896,
29900,
29896,
29900,
29906,
29900,
29906,
29900,
29906,
29900,
29906,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29946,
29900,
29946,
29900,
29946,
29900,
29946,
29900,
29945,
29900,
29945,
29900,
29945,
29900,
29945,
29900,
29953,
29900,
29953,
29900,
29953,
29900,
29953,
29900,
29955,
29900,
29955,
29900,
29955,
29900,
29955,
29900,
29947,
29900,
29947,
29900,
29947,
29900,
29947,
29908,
13,
1678,
1353,
353,
29871,
29896,
29900,
29900,
29900,
13,
1678,
3001,
29918,
2083,
353,
2533,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29892,
29871,
29955,
29892,
29871,
29947,
2314,
334,
29871,
29946,
718,
1353,
13,
13,
1678,
2933,
29892,
7246,
29918,
8568,
353,
3132,
29889,
16519,
29898,
13,
4706,
19179,
29922,
11102,
29885,
29892,
13,
4706,
4867,
29922,
11102,
29885,
29892,
13,
4706,
970,
29918,
1989,
29922,
10314,
703,
10149,
29879,
29914,
10149,
29899,
3597,
29899,
1885,
6656,
29889,
29886,
331,
4968,
13,
4706,
2024,
29918,
1989,
29922,
10314,
703,
10149,
29879,
29914,
10149,
29899,
9053,
29899,
1885,
6656,
29889,
29886,
331,
4968,
13,
4706,
4867,
29918,
5085,
29922,
2882,
29902,
29889,
5085,
29898,
13,
9651,
518,
2882,
29902,
29889,
10149,
29898,
13193,
29889,
3166,
20970,
29898,
10149,
29918,
20970,
8243,
319,
12809,
29889,
29884,
29941,
29906,
29898,
4537,
4638,
13,
4706,
10353,
13,
1678,
1723,
13,
1678,
12183,
29889,
3888,
29898,
29888,
29908,
2287,
29925,
3927,
29979,
390,
2890,
29925,
1164,
1660,
29901,
426,
5327,
29913,
7246,
29918,
8568,
29901,
426,
16519,
29918,
8568,
29889,
20970,
580,
27195,
13,
1678,
2933,
353,
3132,
29889,
771,
4220,
580,
13,
13,
1678,
2908,
29918,
8568,
353,
2933,
29889,
1271,
29918,
8568,
29889,
20970,
580,
13,
13,
1678,
363,
7246,
29918,
3888,
297,
3132,
29889,
4294,
8498,
417,
952,
29898,
1271,
29918,
8568,
1125,
13,
4706,
4974,
7246,
29918,
3888,
29889,
275,
29918,
2704,
338,
5852,
13,
4706,
4974,
7246,
29918,
3888,
29889,
2704,
29918,
4906,
1275,
285,
29908,
24365,
775,
29901,
426,
7827,
29918,
2083,
5038,
13,
13,
1678,
363,
2908,
3401,
297,
3132,
29889,
4294,
7445,
29879,
29898,
29896,
29900,
1125,
13,
4706,
4974,
2908,
3401,
29889,
4882,
29889,
16202,
29889,
1271,
29918,
2311,
29918,
13193,
1405,
29871,
29900,
13,
13,
13,
29937,
5132,
24492,
396,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
29871,
396,
6874,
543,
5453,
1159,
13,
1753,
9335,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
736,
24492,
29898,
650,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
1402,
376,
9398,
22032,
6897,
29918,
4645,
1159,
13,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
580,
29871,
396,
6874,
543,
5453,
1159,
13,
1753,
15688,
29918,
11303,
29898,
650,
29918,
3177,
29918,
11618,
1125,
13,
1678,
736,
20868,
27205,
29898,
650,
29918,
3177,
29918,
11618,
29889,
14695,
29918,
18010,
29961,
29900,
2314,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
1217,
29918,
16744,
29898,
11303,
1125,
13,
1678,
411,
1153,
4637,
29898,
27205,
2392,
24365,
29897,
408,
429,
29918,
3888,
29901,
13,
4706,
9335,
580,
13,
1678,
4974,
376,
3492,
1818,
3867,
263,
1899,
29908,
297,
851,
29898,
735,
29918,
3888,
29889,
1767,
29897,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
8477,
29898,
11303,
1125,
13,
1678,
714,
353,
9335,
703,
489,
8477,
1159,
13,
1678,
396,
7246,
29892,
771,
4220,
29892,
4294,
29899,
1271,
29892,
4294,
29899,
1271,
29879,
29892,
4294,
29899,
16519,
29892,
4294,
29899,
2716,
417,
952,
29892,
29894,
24157,
29892,
1972,
29899,
3859,
13,
1678,
4974,
376,
29907,
294,
546,
29908,
297,
714,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
4294,
29918,
1271,
29879,
29918,
392,
29918,
4294,
29918,
1271,
29898,
11303,
1125,
13,
1678,
10930,
353,
9335,
703,
4294,
29899,
1271,
29879,
613,
376,
489,
19488,
613,
376,
29896,
1159,
13,
1678,
4974,
7431,
29898,
1271,
29879,
29897,
1405,
29871,
29900,
13,
13,
1678,
363,
2908,
297,
10930,
29901,
13,
4706,
2908,
29918,
8568,
353,
2908,
29889,
7727,
29889,
1271,
29918,
8568,
13,
4706,
4974,
7431,
29898,
1271,
29918,
8568,
29897,
1275,
29871,
29941,
29906,
334,
29871,
29906,
29871,
396,
15090,
13,
13,
4706,
289,
353,
9335,
703,
4294,
29899,
1271,
613,
2908,
29918,
8568,
29897,
13,
4706,
4974,
2908,
29918,
8568,
1275,
289,
29889,
7727,
29889,
1271,
29918,
8568,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
4294,
29918,
1271,
29918,
1333,
29918,
11940,
29898,
11303,
1125,
13,
1678,
2908,
29918,
8568,
353,
376,
29900,
29900,
29908,
334,
29871,
29941,
29906,
13,
1678,
411,
1153,
4637,
29898,
27205,
2392,
24365,
29897,
408,
429,
29918,
3888,
29901,
13,
4706,
9335,
703,
4294,
29899,
1271,
613,
2908,
29918,
8568,
29897,
13,
1678,
396,
16034,
3399,
29889,
12256,
29918,
5800,
18783,
29901,
15808,
1284,
2908,
9686,
6608,
13,
1678,
396,
29871,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
13,
1678,
4974,
376,
12256,
29918,
5800,
18783,
29908,
297,
851,
29898,
735,
29918,
3888,
29889,
1767,
29897,
13,
1678,
4974,
376,
29089,
1284,
2908,
9686,
6608,
29908,
297,
851,
29898,
735,
29918,
3888,
29889,
1767,
29897,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
11014,
13,
1753,
1243,
29918,
11303,
29918,
16519,
29918,
771,
4220,
29918,
4294,
29918,
2716,
417,
952,
29918,
4294,
29918,
16519,
29918,
1972,
29918,
3859,
29918,
392,
29918,
5521,
749,
29898,
11303,
1125,
13,
1678,
7788,
29918,
2084,
353,
6724,
29918,
4632,
29918,
2084,
580,
847,
376,
13237,
29908,
13,
13,
1678,
3633,
353,
402,
1430,
2890,
3235,
29918,
2477,
18736,
13,
13,
1678,
7246,
29918,
8568,
353,
9335,
29898,
13,
4706,
376,
16519,
613,
13,
4706,
285,
29908,
489,
3166,
426,
10149,
29889,
3597,
29918,
1989,
29918,
20970,
17671,
13,
4706,
285,
29908,
489,
27825,
426,
710,
29898,
13237,
29918,
2084,
847,
525,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
1495,
17671,
13,
4706,
285,
29908,
489,
7924,
426,
710,
29898,
13237,
29918,
2084,
847,
525,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
1495,
17671,
13,
4706,
285,
29908,
489,
9053,
29899,
1989,
426,
710,
29898,
10149,
29889,
9053,
29918,
1989,
29918,
2084,
2915,
613,
13,
4706,
285,
29908,
489,
3597,
29899,
1989,
426,
710,
29898,
10149,
29889,
3597,
29918,
1989,
29918,
2084,
2915,
613,
13,
1678,
1723,
13,
1678,
2908,
29918,
8568,
353,
9335,
703,
771,
4220,
1159,
13,
1678,
1401,
417,
952,
353,
9335,
703,
4294,
29899,
2716,
417,
952,
613,
2908,
29918,
8568,
29897,
13,
1678,
7246,
29918,
8568,
267,
353,
518,
29881,
29889,
16519,
29889,
16519,
29918,
8568,
363,
270,
297,
1401,
417,
952,
29962,
13,
1678,
4974,
7246,
29918,
8568,
297,
7246,
29918,
8568,
267,
13,
13,
1678,
7246,
29918,
3888,
353,
9335,
703,
4294,
29899,
16519,
613,
7246,
29918,
8568,
29897,
13,
1678,
4974,
7246,
29918,
3888,
29889,
16519,
29889,
16519,
29918,
8568,
1275,
7246,
29918,
8568,
13,
13,
1678,
1121,
353,
9335,
703,
1972,
29899,
3859,
613,
13,
462,
376,
489,
1271,
29899,
8568,
613,
2908,
29918,
8568,
29892,
13,
462,
376,
489,
1853,
613,
376,
7328,
613,
13,
462,
376,
489,
1989,
613,
3633,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
462,
376,
489,
2084,
613,
12633,
29897,
13,
1678,
4974,
376,
12199,
29918,
978,
29908,
297,
518,
29884,
29889,
978,
363,
318,
297,
1121,
29889,
10149,
29889,
5203,
29918,
545,
5847,
29962,
13,
13,
1678,
17346,
353,
938,
29898,
13,
4706,
9335,
703,
5521,
749,
613,
376,
489,
7328,
613,
3633,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
376,
489,
1271,
29899,
8568,
613,
2908,
29918,
8568,
29897,
13,
1678,
1723,
13,
1678,
396,
14402,
20768,
4868,
363,
988,
445,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
338,
515,
29889,
13,
1678,
4974,
17346,
1275,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29871,
396,
2531,
6656,
13,
13,
29937,
24492,
319,
12809,
13,
13,
13,
1753,
938,
29918,
1767,
29898,
29916,
1125,
13,
1678,
736,
921,
13,
13,
13,
1753,
4802,
29918,
524,
29918,
1767,
29898,
29916,
1125,
13,
1678,
736,
11117,
1767,
2396,
851,
29898,
29916,
511,
525,
2966,
29918,
2103,
2396,
29871,
29945,
29896,
29906,
29913,
13,
13,
13,
19266,
29918,
15395,
29918,
1688,
29918,
1272,
353,
518,
13,
1678,
4852,
524,
29918,
1767,
613,
525,
1688,
29918,
5085,
29918,
29884,
29941,
29906,
29889,
11102,
29885,
742,
938,
29918,
1767,
511,
13,
1678,
4852,
3752,
29918,
524,
613,
525,
1688,
29918,
5085,
29918,
29884,
29945,
29896,
29906,
29889,
11102,
29885,
742,
4802,
29918,
524,
29918,
1767,
511,
13,
29962,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
703,
15395,
29918,
1853,
29892,
1243,
29918,
1285,
1461,
29892,
995,
613,
633,
29875,
29918,
15395,
29918,
1688,
29918,
1272,
29897,
13,
1753,
1243,
29918,
11303,
29918,
19266,
29918,
15395,
29918,
15820,
29898,
3177,
29892,
12780,
29918,
1853,
29892,
1243,
29918,
1285,
1461,
29892,
995,
1125,
13,
1678,
1423,
29918,
11303,
29918,
19266,
29918,
15395,
29898,
29928,
8658,
27205,
29898,
3177,
511,
13,
462,
965,
14013,
269,
29901,
285,
29908,
29915,
29912,
29879,
10162,
613,
13,
462,
965,
8207,
1272,
742,
13,
462,
965,
12780,
29918,
1853,
29892,
13,
462,
965,
995,
29892,
13,
462,
965,
1243,
29918,
1285,
1461,
29892,
13,
462,
965,
14013,
263,
29901,
313,
29874,
29889,
9053,
29918,
1989,
29918,
14695,
29918,
2084,
29892,
263,
29889,
3597,
29918,
1989,
29918,
14695,
29918,
2084,
876,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
703,
15395,
29918,
1853,
29892,
1243,
29918,
1285,
1461,
29892,
995,
613,
633,
29875,
29918,
15395,
29918,
1688,
29918,
1272,
29897,
13,
1753,
1243,
29918,
11303,
29918,
19266,
29918,
15395,
29918,
4691,
29898,
3177,
29892,
12780,
29918,
1853,
29892,
1243,
29918,
1285,
1461,
29892,
995,
1125,
13,
1678,
1423,
29918,
11303,
29918,
19266,
29918,
15395,
29898,
27205,
29898,
3177,
511,
13,
462,
965,
14013,
269,
29901,
269,
29892,
13,
462,
965,
525,
13237,
742,
13,
462,
965,
12780,
29918,
1853,
29892,
13,
462,
965,
995,
29892,
13,
462,
965,
1243,
29918,
1285,
1461,
29892,
13,
462,
965,
14013,
263,
29901,
313,
29874,
29889,
9053,
29918,
1989,
29918,
2084,
29892,
263,
29889,
3597,
29918,
1989,
29918,
2084,
876,
13,
13,
13,
1753,
1423,
29918,
11303,
29918,
19266,
29918,
15395,
29898,
11303,
29892,
14978,
29892,
6503,
29918,
12322,
29892,
12780,
29918,
1853,
29892,
995,
29892,
1243,
29918,
1285,
1461,
29892,
6611,
1125,
13,
1678,
3633,
353,
402,
1430,
2890,
3235,
29918,
2477,
18736,
13,
1678,
2024,
29918,
1989,
29892,
970,
29918,
1989,
353,
6611,
29898,
10149,
29897,
13,
1678,
363,
1353,
297,
518,
29906,
29892,
29871,
29906,
29945,
29953,
29892,
29871,
29896,
29900,
29906,
29946,
5387,
13,
4706,
1243,
29918,
1285,
1461,
29918,
2084,
353,
8207,
4286,
7122,
3552,
10314,
29918,
12322,
29892,
1243,
29918,
1285,
1461,
876,
13,
4706,
4867,
29918,
5085,
353,
4390,
29889,
29881,
17204,
4197,
6377,
978,
1115,
376,
4537,
613,
376,
1767,
1115,
426,
15395,
29918,
1853,
29901,
995,
29898,
4537,
21345,
2314,
13,
4706,
6389,
353,
6702,
16519,
742,
13,
18884,
525,
489,
3166,
742,
3633,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
18884,
525,
489,
7924,
742,
1243,
29918,
1285,
1461,
29918,
2084,
29892,
13,
18884,
525,
489,
7924,
29899,
5085,
742,
14978,
29898,
7924,
29918,
5085,
511,
13,
18884,
525,
489,
27825,
742,
1243,
29918,
1285,
1461,
29918,
2084,
29892,
13,
18884,
525,
489,
9053,
29899,
1989,
742,
2024,
29918,
1989,
29892,
13,
18884,
525,
489,
3597,
29899,
1989,
742,
970,
29918,
1989,
29897,
13,
4706,
12183,
29889,
3888,
29898,
29888,
29908,
5746,
11206,
2692,
4214,
11117,
15300,
7122,
29898,
11303,
29889,
18837,
29918,
5085,
29898,
5085,
876,
27195,
13,
4706,
7246,
29918,
8568,
353,
9335,
10456,
5085,
29897,
13,
13,
4706,
9335,
877,
771,
4220,
1495,
13,
4706,
7246,
29918,
3888,
353,
9335,
703,
4294,
29899,
16519,
613,
7246,
29918,
8568,
29897,
13,
4706,
4974,
7246,
29918,
3888,
29889,
19170,
29918,
9902,
29961,
29900,
1822,
275,
29918,
2704,
338,
5852,
13,
4706,
4974,
7246,
29918,
3888,
29889,
19170,
29918,
9902,
29961,
29900,
1822,
2704,
29918,
4906,
1275,
285,
29908,
24365,
775,
29901,
426,
4537,
5038,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
19266,
29918,
20787,
29898,
11303,
1125,
13,
1678,
3633,
353,
402,
1430,
2890,
3235,
29918,
2477,
18736,
13,
1678,
1243,
29918,
1285,
1461,
353,
6503,
703,
1688,
29918,
5085,
29918,
9910,
29889,
11102,
29885,
1159,
13,
1678,
3633,
29918,
20970,
353,
376,
29900,
29896,
29900,
29896,
29900,
29896,
29900,
29896,
29900,
29906,
29900,
29906,
29900,
29906,
29900,
29906,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29941,
29900,
29946,
29900,
29946,
29900,
29946,
29900,
29946,
29900,
29945,
29900,
29945,
29900,
29945,
29900,
29945,
29900,
29953,
29900,
29953,
29900,
29953,
29900,
29953,
29900,
29955,
29900,
29955,
29900,
29955,
29900,
29955,
29900,
29947,
29900,
29947,
29900,
29947,
29900,
29947,
29908,
13,
1678,
1353,
353,
29871,
29896,
29900,
29900,
29900,
13,
1678,
3001,
29918,
2083,
353,
2533,
4197,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29892,
29871,
29953,
29892,
29871,
29955,
29892,
29871,
29947,
2314,
334,
29871,
29946,
718,
1353,
13,
13,
1678,
4867,
29918,
5085,
353,
4390,
29889,
29881,
17204,
4197,
10998,
978,
2396,
525,
10149,
742,
525,
1767,
2396,
11117,
10149,
2396,
3633,
29918,
20970,
11656,
13,
462,
1669,
11117,
978,
2396,
525,
4537,
742,
525,
1767,
2396,
11117,
524,
29918,
1767,
2396,
1353,
930,
2314,
13,
1678,
7246,
29918,
8568,
353,
9335,
877,
16519,
742,
13,
462,
418,
525,
489,
3166,
742,
3633,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
462,
418,
525,
489,
7924,
742,
6503,
29898,
1688,
29918,
1285,
1461,
511,
13,
462,
418,
525,
489,
7924,
29899,
5085,
742,
4867,
29918,
5085,
29892,
13,
462,
418,
525,
489,
27825,
742,
6503,
29898,
1688,
29918,
1285,
1461,
511,
13,
462,
418,
525,
489,
9053,
29899,
1989,
742,
3633,
29889,
9053,
29918,
1989,
29918,
2084,
29892,
13,
462,
418,
525,
489,
3597,
29899,
1989,
742,
3633,
29889,
3597,
29918,
1989,
29918,
2084,
29892,
29897,
13,
1678,
9335,
877,
771,
4220,
1495,
13,
1678,
7246,
29918,
3888,
353,
9335,
703,
4294,
29899,
16519,
613,
7246,
29918,
8568,
29897,
13,
1678,
4974,
7246,
29918,
3888,
29889,
19170,
29918,
9902,
29961,
29900,
1822,
275,
29918,
2704,
338,
5852,
13,
1678,
4974,
7246,
29918,
3888,
29889,
19170,
29918,
9902,
29961,
29900,
1822,
2704,
29918,
4906,
1275,
285,
29908,
24365,
775,
29901,
426,
7827,
29918,
2083,
5038,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
15820,
29918,
8477,
29898,
15820,
29918,
11303,
1125,
13,
1678,
1962,
353,
15688,
29918,
11303,
877,
489,
8477,
1495,
13,
1678,
4974,
525,
4035,
6519,
29901,
1207,
29899,
16519,
29915,
297,
1962,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
15820,
29918,
1062,
2760,
29918,
16519,
29898,
15820,
29918,
11303,
1125,
13,
1678,
9335,
353,
15688,
29918,
11303,
13,
1678,
3633,
353,
402,
1430,
2890,
3235,
29918,
2477,
18736,
13,
13,
1678,
396,
14402,
29901,
746,
610,
744,
29880,
5281,
6987,
29892,
1207,
1854,
1243,
1016,
29915,
29873,
784,
7459,
13,
1678,
396,
746,
1811,
304,
2130,
278,
1021,
934,
29892,
6060,
2910,
22637,
847,
7050,
13,
1678,
396,
304,
263,
5412,
18982,
29915,
29879,
3884,
29889,
13,
13,
1678,
1243,
29918,
1285,
1461,
353,
5591,
1272,
29914,
1688,
29918,
14181,
265,
420,
29889,
11102,
29885,
29908,
13,
1678,
9335,
877,
5675,
29899,
16519,
742,
13,
4706,
17411,
29877,
742,
8207,
7050,
29914,
15395,
29889,
16519,
742,
13,
4706,
525,
489,
3166,
742,
3633,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
4706,
525,
489,
7924,
742,
1243,
29918,
1285,
1461,
29892,
13,
4706,
525,
489,
27825,
742,
1243,
29918,
1285,
1461,
29897,
13,
13,
1678,
9335,
877,
4530,
29899,
16519,
742,
13,
4706,
17411,
29875,
742,
8207,
7050,
29914,
15395,
29889,
16519,
742,
13,
4706,
17411,
29877,
742,
8207,
7050,
29914,
7433,
29889,
16519,
742,
13,
4706,
525,
489,
9053,
29899,
1989,
742,
3633,
29889,
9053,
29918,
1989,
29918,
14695,
29918,
2084,
29892,
13,
4706,
525,
489,
3597,
29899,
1989,
742,
3633,
29889,
3597,
29918,
1989,
29918,
14695,
29918,
2084,
29897,
13,
13,
1678,
7246,
29918,
8568,
353,
9335,
877,
6717,
29899,
16519,
742,
17411,
29875,
742,
8207,
7050,
29914,
7433,
29889,
16519,
1495,
13,
1678,
9335,
877,
771,
4220,
1495,
13,
1678,
7246,
29918,
3888,
353,
9335,
703,
4294,
29899,
16519,
613,
7246,
29918,
8568,
29897,
13,
1678,
4974,
451,
7246,
29918,
3888,
29889,
19170,
29918,
9902,
29961,
29900,
1822,
275,
29918,
2704,
13,
13,
1678,
1018,
29901,
13,
4706,
2897,
29889,
5992,
11219,
7050,
29914,
15395,
29889,
16519,
1495,
13,
4706,
2897,
29889,
5992,
11219,
7050,
29914,
7433,
29889,
16519,
1495,
13,
1678,
5174,
8960,
408,
321,
29901,
13,
4706,
12183,
29889,
27392,
29898,
29888,
29908,
23323,
451,
5217,
13201,
2066,
29901,
426,
710,
29898,
29872,
2915,
1159,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
15820,
29918,
11851,
29918,
4804,
29918,
1609,
29918,
8568,
29918,
392,
29918,
978,
29898,
15820,
29918,
11303,
1125,
13,
1678,
1423,
29918,
11303,
29918,
11851,
29918,
4804,
29918,
1609,
29918,
8568,
29918,
392,
29918,
978,
29898,
15820,
29918,
11303,
29892,
15688,
29918,
11303,
29897,
13,
13,
13,
1753,
1243,
29918,
11303,
29918,
4691,
29918,
11851,
29918,
4804,
29918,
1609,
29918,
8568,
29918,
392,
29918,
978,
29898,
11303,
29892,
15688,
29918,
11303,
1125,
13,
1678,
1423,
29918,
11303,
29918,
11851,
29918,
4804,
29918,
1609,
29918,
8568,
29918,
392,
29918,
978,
29898,
11303,
29892,
15688,
29918,
11303,
29897,
13,
13,
13,
1753,
1423,
29918,
11303,
29918,
11851,
29918,
4804,
29918,
1609,
29918,
8568,
29918,
392,
29918,
978,
29898,
11303,
29892,
15688,
29918,
11303,
1125,
13,
1678,
396,
14402,
29901,
1152,
1286,
773,
15688,
29918,
11303,
363,
4974,
1080,
1363,
363,
777,
13,
1678,
396,
8515,
2769,
5132,
24492,
1838,
29915,
29873,
1510,
338,
29918,
2704,
322,
1059,
29918,
4906,
13,
1678,
396,
297,
278,
1962,
310,
1510,
29899,
2716,
417,
952,
29889,
910,
756,
304,
367,
4343,
408,
481,
29889,
13,
1678,
3633,
353,
9335,
29889,
3177,
29889,
1688,
29918,
10149,
13,
1678,
9335,
29889,
842,
29918,
4381,
29918,
16519,
29918,
5085,
877,
489,
3166,
742,
3633,
29889,
3597,
29918,
1989,
29918,
20970,
29892,
13,
462,
18884,
525,
489,
9053,
29899,
1989,
742,
9335,
29889,
9053,
29918,
1989,
29918,
2084,
29898,
10149,
511,
13,
462,
18884,
525,
489,
3597,
29899,
1989,
742,
9335,
29889,
3597,
29918,
1989,
29918,
2084,
29898,
10149,
876,
13,
13,
1678,
396,
3824,
29892,
7246,
263,
8078,
393,
14422,
263,
740,
13,
1678,
396,
322,
27401,
4879,
304,
372,
1090,
501,
25866,
376,
276,
1765,
29918,
1688,
1642,
13,
1678,
396,
450,
6087,
740,
5717,
29538,
29898,
29906,
467,
13,
1678,
1243,
29918,
1285,
1461,
353,
9335,
29889,
10314,
703,
1688,
29918,
1491,
4804,
29918,
276,
1765,
29918,
7922,
29889,
11102,
29885,
1159,
13,
13,
1678,
937,
29918,
16519,
29918,
8568,
353,
9335,
877,
16519,
742,
13,
462,
9651,
525,
489,
7924,
742,
1243,
29918,
1285,
1461,
29892,
13,
462,
9651,
525,
489,
27825,
742,
1243,
29918,
1285,
1461,
29897,
13,
1678,
2908,
29918,
8568,
353,
9335,
703,
771,
4220,
1159,
13,
13,
1678,
12183,
29889,
3888,
29898,
29888,
15945,
29908,
5746,
11206,
2692,
4214,
11117,
15300,
7122,
29898,
15820,
29918,
11303,
29889,
18837,
29918,
5085,
29898,
3366,
4294,
29899,
2716,
417,
952,
613,
2908,
29918,
8568,
12622,
5038,
29908,
1159,
13,
1678,
1401,
417,
952,
353,
15688,
29918,
11303,
703,
4294,
29899,
2716,
417,
952,
613,
2908,
29918,
8568,
29897,
13,
1678,
4974,
7431,
29898,
1761,
29898,
2716,
417,
952,
876,
1275,
29871,
29896,
13,
1678,
363,
7246,
29918,
3888,
297,
1401,
417,
952,
29901,
13,
4706,
4974,
7246,
29918,
3888,
29889,
16519,
29889,
16519,
29918,
8568,
1275,
937,
29918,
16519,
29918,
8568,
13,
4706,
4974,
451,
7246,
29918,
3888,
29889,
275,
29918,
2704,
13,
13,
1678,
396,
8251,
491,
1024,
13,
1678,
7246,
29918,
8568,
353,
9335,
703,
16519,
613,
13,
462,
418,
525,
489,
7924,
29899,
978,
742,
376,
276,
1765,
29918,
1688,
613,
13,
462,
418,
525,
489,
27825,
29899,
978,
742,
376,
276,
1765,
29918,
1688,
1159,
13,
1678,
2908,
29918,
8568,
353,
9335,
703,
771,
4220,
1159,
13,
13,
1678,
1401,
417,
952,
353,
15688,
29918,
11303,
703,
4294,
29899,
2716,
417,
952,
613,
2908,
29918,
8568,
29897,
13,
1678,
363,
7246,
29918,
3888,
297,
1401,
417,
952,
29901,
13,
4706,
4974,
7246,
29918,
3888,
29889,
16519,
29889,
16519,
29918,
8568,
1275,
7246,
29918,
8568,
13,
4706,
4974,
7246,
29918,
3888,
29889,
2704,
29918,
4906,
1275,
525,
24365,
775,
29901,
29871,
29906,
29915,
29871,
396,
1222,
6021,
29901,
8078,
2000,
29538,
29898,
29906,
29897,
13,
13,
1678,
396,
8251,
491,
740,
3211,
13,
1678,
29538,
29918,
1688,
29918,
10030,
353,
8078,
29918,
7328,
29898,
4102,
29918,
16519,
29918,
8568,
29892,
29871,
29900,
467,
20970,
580,
29871,
396,
5251,
7876,
29918,
8899,
29918,
333,
8665,
515,
29871,
29900,
13,
1678,
7246,
29918,
8568,
353,
9335,
703,
16519,
613,
13,
462,
418,
525,
489,
7924,
29899,
8568,
742,
29538,
29918,
1688,
29918,
10030,
29892,
13,
462,
418,
525,
489,
27825,
29899,
8568,
742,
29538,
29918,
1688,
29918,
10030,
29897,
13,
1678,
2908,
29918,
8568,
353,
9335,
703,
771,
4220,
1159,
13,
13,
1678,
1401,
417,
952,
353,
15688,
29918,
11303,
703,
4294,
29899,
2716,
417,
952,
613,
2908,
29918,
8568,
29897,
13,
1678,
363,
7246,
29918,
3888,
297,
1401,
417,
952,
29901,
13,
4706,
4974,
7246,
29918,
3888,
29889,
16519,
29889,
16519,
29918,
8568,
1275,
7246,
29918,
8568,
13,
4706,
4974,
7246,
29918,
3888,
29889,
2704,
29918,
4906,
1275,
525,
24365,
775,
29901,
29871,
29906,
29915,
13,
2
] |
cleaning/partition_domains_fixed_block_size.py | AGLDWG/ld-link-harvester | 0 | 95143 | import pandas as pd
IN_FILE = 'aus-domain-urls.txt'
START_IDX = 1186
BLOCK_SIZE = 100
OUT_FILE_PREFIX = 'partition_data/aus-domain-urls'
data = pd.read_csv(IN_FILE)
data_length = len(data)
for i in range(int(data_length - START_IDX / BLOCK_SIZE)):
if i == 0:
lower_bound = START_IDX
else:
lower_bound = upper_bound
upper_bound = lower_bound + BLOCK_SIZE
if upper_bound >= data_length:
upper_bound = data_length - 1
out_file = '{}_{}_{}_{}.txt'.format(OUT_FILE_PREFIX, lower_bound, upper_bound, upper_bound - lower_bound)
(data.iloc[lower_bound:upper_bound, :]).to_csv(out_file, header=False, index=None, sep=" ")
break
out_file = '{}_{}_{}_{}.txt'.format(OUT_FILE_PREFIX, lower_bound, upper_bound, upper_bound - lower_bound)
(data.iloc[ lower_bound:upper_bound, : ]).to_csv(out_file, header=False, index=None, sep=" ")
| [
1,
1053,
11701,
408,
10518,
13,
13,
1177,
29918,
7724,
353,
525,
1485,
29899,
7247,
29899,
26045,
29889,
3945,
29915,
13,
25826,
29918,
1367,
29990,
353,
29871,
29896,
29896,
29947,
29953,
13,
29933,
21339,
29918,
14226,
353,
29871,
29896,
29900,
29900,
13,
12015,
29918,
7724,
29918,
15094,
25634,
353,
525,
16707,
29918,
1272,
29914,
1485,
29899,
7247,
29899,
26045,
29915,
13,
13,
1272,
353,
10518,
29889,
949,
29918,
7638,
29898,
1177,
29918,
7724,
29897,
13,
1272,
29918,
2848,
353,
7431,
29898,
1272,
29897,
13,
1454,
474,
297,
3464,
29898,
524,
29898,
1272,
29918,
2848,
448,
6850,
8322,
29918,
1367,
29990,
847,
350,
21339,
29918,
14226,
22164,
13,
1678,
565,
474,
1275,
29871,
29900,
29901,
13,
4706,
5224,
29918,
9917,
353,
6850,
8322,
29918,
1367,
29990,
13,
1678,
1683,
29901,
13,
4706,
5224,
29918,
9917,
353,
7568,
29918,
9917,
13,
1678,
7568,
29918,
9917,
353,
5224,
29918,
9917,
718,
350,
21339,
29918,
14226,
13,
1678,
565,
7568,
29918,
9917,
6736,
848,
29918,
2848,
29901,
13,
4706,
7568,
29918,
9917,
353,
848,
29918,
2848,
448,
29871,
29896,
13,
4706,
714,
29918,
1445,
353,
22372,
3227,
3227,
3227,
1836,
3945,
4286,
4830,
29898,
12015,
29918,
7724,
29918,
15094,
25634,
29892,
5224,
29918,
9917,
29892,
7568,
29918,
9917,
29892,
7568,
29918,
9917,
448,
5224,
29918,
9917,
29897,
13,
4706,
313,
1272,
29889,
309,
542,
29961,
13609,
29918,
9917,
29901,
21064,
29918,
9917,
29892,
584,
14664,
517,
29918,
7638,
29898,
449,
29918,
1445,
29892,
4839,
29922,
8824,
29892,
2380,
29922,
8516,
29892,
16345,
543,
16521,
13,
4706,
2867,
13,
1678,
714,
29918,
1445,
353,
22372,
3227,
3227,
3227,
1836,
3945,
4286,
4830,
29898,
12015,
29918,
7724,
29918,
15094,
25634,
29892,
5224,
29918,
9917,
29892,
7568,
29918,
9917,
29892,
7568,
29918,
9917,
448,
5224,
29918,
9917,
29897,
13,
1678,
313,
1272,
29889,
309,
542,
29961,
5224,
29918,
9917,
29901,
21064,
29918,
9917,
29892,
584,
4514,
467,
517,
29918,
7638,
29898,
449,
29918,
1445,
29892,
4839,
29922,
8824,
29892,
2380,
29922,
8516,
29892,
16345,
543,
16521,
13,
13,
2
] |
simple_chatbot/responses.py | Codingplace42/django-simple-chatbot | 9 | 120528 | <reponame>Codingplace42/django-simple-chatbot
from abc import ABC, abstractmethod
from random import choice
class BaseResponse(ABC):
@abstractmethod
def get_response(self):
pass
class GenericRandomResponse(BaseResponse):
choices = ()
def get_response(self):
return choice(self.choices)
| [
1,
529,
276,
1112,
420,
29958,
29907,
3689,
6689,
29946,
29906,
29914,
14095,
29899,
12857,
29899,
13496,
7451,
13,
3166,
25638,
1053,
16417,
29892,
9846,
5696,
13,
3166,
4036,
1053,
7348,
13,
13,
13,
1990,
7399,
5103,
29898,
19658,
1125,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
679,
29918,
5327,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
13,
1990,
3251,
293,
17875,
5103,
29898,
5160,
5103,
1125,
13,
1678,
19995,
353,
3861,
13,
13,
1678,
822,
679,
29918,
5327,
29898,
1311,
1125,
13,
4706,
736,
7348,
29898,
1311,
29889,
1859,
1575,
29897,
13,
2
] |
saleor/core/transactions.py | fairhopeweb/saleor | 15,337 | 1534 | from contextlib import contextmanager
from django.db import DatabaseError
from ..core.tracing import traced_atomic_transaction
@contextmanager
def transaction_with_commit_on_errors():
"""Perform transaction and raise an error in any occurred."""
error = None
with traced_atomic_transaction():
try:
yield
except DatabaseError:
raise
except Exception as e:
error = e
if error:
raise error
| [
1,
515,
3030,
1982,
1053,
3030,
12847,
13,
13,
3166,
9557,
29889,
2585,
1053,
5470,
2392,
13,
13,
3166,
6317,
3221,
29889,
29873,
945,
292,
1053,
16703,
287,
29918,
21641,
29918,
20736,
13,
13,
13,
29992,
4703,
12847,
13,
1753,
10804,
29918,
2541,
29918,
15060,
29918,
265,
29918,
12523,
7295,
13,
1678,
9995,
5894,
689,
10804,
322,
12020,
385,
1059,
297,
738,
10761,
1213,
15945,
13,
1678,
1059,
353,
6213,
13,
1678,
411,
16703,
287,
29918,
21641,
29918,
20736,
7295,
13,
4706,
1018,
29901,
13,
9651,
7709,
13,
4706,
5174,
5470,
2392,
29901,
13,
9651,
12020,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
1059,
353,
321,
13,
1678,
565,
1059,
29901,
13,
4706,
12020,
1059,
13,
2
] |
test/python_unit/collision.py | proyan/hpp-fcl | 0 | 188747 | <filename>test/python_unit/collision.py
import unittest
from test_case import TestCase
import hppfcl
hppfcl.switchToNumpyArray()
import numpy as np
def tetahedron():
pts = hppfcl.StdVec_Vec3f()
pts.append(np.array((0, 0, 0)))
pts.append(np.array((0, 1, 0)))
pts.append(np.array((1, 0, 0)))
pts.append(np.array((0, 0, 1)))
tri = hppfcl.StdVec_Triangle()
tri.append(hppfcl.Triangle(0, 1, 2))
tri.append(hppfcl.Triangle(0, 1, 3))
tri.append(hppfcl.Triangle(0, 2, 3))
tri.append(hppfcl.Triangle(1, 2, 3))
return hppfcl.Convex(pts, tri)
class TestMainAPI(TestCase):
def test_convex_halfspace(self):
convex = tetahedron()
halfspace = hppfcl.Halfspace(np.array((0, 0, 1)), 0)
req = hppfcl.CollisionRequest()
res = hppfcl.CollisionResult()
M1 = hppfcl.Transform3f()
M2 = hppfcl.Transform3f(np.eye(3), np.array([0, 0, -0.1]))
res.clear()
hppfcl.collide(convex, M1, halfspace, M2, req, res)
self.assertFalse(hppfcl.collide(convex, M1, halfspace, M2, req, res))
M1 = hppfcl.Transform3f()
M2 = hppfcl.Transform3f(np.eye(3), np.array([0, 0, 0.1]))
res.clear()
self.assertTrue(hppfcl.collide(convex, M1, halfspace, M2, req, res))
M1 = hppfcl.Transform3f()
M2 = hppfcl.Transform3f(np.eye(3), np.array([0, 0, 2]))
res.clear()
self.assertTrue(hppfcl.collide(convex, M1, halfspace, M2, req, res))
if __name__ == "__main__":
unittest.main()
| [
1,
529,
9507,
29958,
1688,
29914,
4691,
29918,
5441,
29914,
22017,
2459,
29889,
2272,
13,
5215,
443,
27958,
13,
3166,
1243,
29918,
4878,
1053,
4321,
8259,
13,
5215,
298,
407,
29888,
695,
13,
13,
29623,
29888,
695,
29889,
15123,
1762,
8009,
2272,
2588,
580,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
260,
300,
801,
287,
1617,
7295,
13,
1678,
282,
1372,
353,
298,
407,
29888,
695,
29889,
855,
29881,
25987,
29918,
25987,
29941,
29888,
580,
13,
1678,
282,
1372,
29889,
4397,
29898,
9302,
29889,
2378,
3552,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
4961,
13,
1678,
282,
1372,
29889,
4397,
29898,
9302,
29889,
2378,
3552,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
4961,
13,
1678,
282,
1372,
29889,
4397,
29898,
9302,
29889,
2378,
3552,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
4961,
13,
1678,
282,
1372,
29889,
4397,
29898,
9302,
29889,
2378,
3552,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
4961,
13,
1678,
3367,
353,
298,
407,
29888,
695,
29889,
855,
29881,
25987,
29918,
29565,
2521,
580,
13,
1678,
3367,
29889,
4397,
29898,
29623,
29888,
695,
29889,
29565,
2521,
29898,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
876,
13,
1678,
3367,
29889,
4397,
29898,
29623,
29888,
695,
29889,
29565,
2521,
29898,
29900,
29892,
29871,
29896,
29892,
29871,
29941,
876,
13,
1678,
3367,
29889,
4397,
29898,
29623,
29888,
695,
29889,
29565,
2521,
29898,
29900,
29892,
29871,
29906,
29892,
29871,
29941,
876,
13,
1678,
3367,
29889,
4397,
29898,
29623,
29888,
695,
29889,
29565,
2521,
29898,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
876,
13,
1678,
736,
298,
407,
29888,
695,
29889,
1168,
13809,
29898,
16485,
29892,
3367,
29897,
13,
13,
13,
1990,
4321,
6330,
8787,
29898,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
535,
13809,
29918,
24498,
3493,
29898,
1311,
1125,
13,
4706,
18635,
353,
260,
300,
801,
287,
1617,
580,
13,
4706,
4203,
3493,
353,
298,
407,
29888,
695,
29889,
29950,
3131,
3493,
29898,
9302,
29889,
2378,
3552,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
8243,
29871,
29900,
29897,
13,
13,
4706,
12428,
353,
298,
407,
29888,
695,
29889,
28377,
2459,
3089,
580,
13,
4706,
620,
353,
298,
407,
29888,
695,
29889,
28377,
2459,
3591,
580,
13,
13,
4706,
341,
29896,
353,
298,
407,
29888,
695,
29889,
13372,
29941,
29888,
580,
13,
4706,
341,
29906,
353,
298,
407,
29888,
695,
29889,
13372,
29941,
29888,
29898,
9302,
29889,
1032,
29872,
29898,
29941,
511,
7442,
29889,
2378,
4197,
29900,
29892,
29871,
29900,
29892,
448,
29900,
29889,
29896,
12622,
13,
4706,
620,
29889,
8551,
580,
13,
4706,
298,
407,
29888,
695,
29889,
1054,
7459,
29898,
535,
13809,
29892,
341,
29896,
29892,
4203,
3493,
29892,
341,
29906,
29892,
12428,
29892,
620,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
29623,
29888,
695,
29889,
1054,
7459,
29898,
535,
13809,
29892,
341,
29896,
29892,
4203,
3493,
29892,
341,
29906,
29892,
12428,
29892,
620,
876,
13,
13,
4706,
341,
29896,
353,
298,
407,
29888,
695,
29889,
13372,
29941,
29888,
580,
13,
4706,
341,
29906,
353,
298,
407,
29888,
695,
29889,
13372,
29941,
29888,
29898,
9302,
29889,
1032,
29872,
29898,
29941,
511,
7442,
29889,
2378,
4197,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29889,
29896,
12622,
13,
4706,
620,
29889,
8551,
580,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29623,
29888,
695,
29889,
1054,
7459,
29898,
535,
13809,
29892,
341,
29896,
29892,
4203,
3493,
29892,
341,
29906,
29892,
12428,
29892,
620,
876,
13,
13,
4706,
341,
29896,
353,
298,
407,
29888,
695,
29889,
13372,
29941,
29888,
580,
13,
4706,
341,
29906,
353,
298,
407,
29888,
695,
29889,
13372,
29941,
29888,
29898,
9302,
29889,
1032,
29872,
29898,
29941,
511,
7442,
29889,
2378,
4197,
29900,
29892,
29871,
29900,
29892,
29871,
29906,
12622,
13,
4706,
620,
29889,
8551,
580,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29623,
29888,
695,
29889,
1054,
7459,
29898,
535,
13809,
29892,
341,
29896,
29892,
4203,
3493,
29892,
341,
29906,
29892,
12428,
29892,
620,
876,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
turdshovel/_stubs/System/Collections/Generic.py | daddycocoaman/turdshovel | 39 | 117303 | # encoding: utf-8
# module System.Collections.Generic calls itself Generic
# from mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=<KEY>
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class Comparer(object, IComparer, IComparer[T]):
# no doc
def Compare(self, x, y):
""" Compare(self: Comparer[T], x: T, y: T) -> int """
pass
@staticmethod
def Create(comparison):
""" Create(comparison: Comparison[T]) -> Comparer[T] """
pass
def __cmp__(self, *args): #cannot find CLR method
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
class Dictionary(object, IDictionary[TKey, TValue], ICollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable, IDictionary, ICollection, IReadOnlyDictionary[TKey, TValue], IReadOnlyCollection[KeyValuePair[TKey, TValue]], ISerializable, IDeserializationCallback):
"""
Dictionary[TKey, TValue]()
Dictionary[TKey, TValue](capacity: int)
Dictionary[TKey, TValue](comparer: IEqualityComparer[TKey])
Dictionary[TKey, TValue](capacity: int, comparer: IEqualityComparer[TKey])
Dictionary[TKey, TValue](dictionary: IDictionary[TKey, TValue])
Dictionary[TKey, TValue](dictionary: IDictionary[TKey, TValue], comparer: IEqualityComparer[TKey])
"""
def Add(self, key, value):
""" Add(self: Dictionary[TKey, TValue], key: TKey, value: TValue) """
pass
def Clear(self):
""" Clear(self: Dictionary[TKey, TValue]) """
pass
def ContainsKey(self, key):
""" ContainsKey(self: Dictionary[TKey, TValue], key: TKey) -> bool """
pass
def ContainsValue(self, value):
""" ContainsValue(self: Dictionary[TKey, TValue], value: TValue) -> bool """
pass
def GetEnumerator(self):
""" GetEnumerator(self: Dictionary[TKey, TValue]) -> Enumerator """
pass
def GetObjectData(self, info, context):
""" GetObjectData(self: Dictionary[TKey, TValue], info: SerializationInfo, context: StreamingContext) """
pass
def OnDeserialization(self, sender):
""" OnDeserialization(self: Dictionary[TKey, TValue], sender: object) """
pass
def Remove(self, key):
""" Remove(self: Dictionary[TKey, TValue], key: TKey) -> bool """
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: Dictionary[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
"""
__contains__(self: IDictionary[TKey, TValue], key: TKey) -> bool
__contains__(self: IDictionary, key: object) -> bool
"""
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, capacity: int)
__new__(cls: type, comparer: IEqualityComparer[TKey])
__new__(cls: type, capacity: int, comparer: IEqualityComparer[TKey])
__new__(cls: type, dictionary: IDictionary[TKey, TValue])
__new__(cls: type, dictionary: IDictionary[TKey, TValue], comparer: IEqualityComparer[TKey])
__new__(cls: type, info: SerializationInfo, context: StreamingContext)
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
"""
__repr__(self: Dictionary[TKey, TValue]) -> str
__repr__(self: Dictionary[K, V]) -> str
"""
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
Comparer = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Comparer(self: Dictionary[TKey, TValue]) -> IEqualityComparer[TKey]
"""
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: Dictionary[TKey, TValue]) -> int
"""
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Keys(self: Dictionary[TKey, TValue]) -> KeyCollection
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Values(self: Dictionary[TKey, TValue]) -> ValueCollection
"""
Enumerator = None
KeyCollection = None
ValueCollection = None
class EqualityComparer(object, IEqualityComparer, IEqualityComparer[T]):
# no doc
def Equals(self, *__args):
""" Equals(self: EqualityComparer[T], x: T, y: T) -> bool """
pass
def GetHashCode(self, obj=None):
""" GetHashCode(self: EqualityComparer[T], obj: T) -> int """
pass
def __eq__(self, *args): #cannot find CLR method
""" x.__eq__(y) <==> x==y """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
class IAsyncEnumerable:
# no doc
def GetAsyncEnumerator(self, cancellationToken):
"""
GetAsyncEnumerator(self: IAsyncEnumerable[T], cancellationToken: CancellationToken) -> IAsyncEnumerator[T]
Returns an enumerator that iterates asynchronously through the collection.
cancellationToken: A System.Threading.CancellationToken that may be used to cancel the asynchronous iteration.
Returns: An enumerator that can be used to iterate asynchronously through the collection.
"""
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IAsyncEnumerator(IAsyncDisposable):
# no doc
def MoveNextAsync(self):
"""
MoveNextAsync(self: IAsyncEnumerator[T]) -> ValueTask[bool]
Advances the enumerator asynchronously to the next element of the collection.
Returns: A System.Threading.Tasks.ValueTask that will complete with a result of true if the enumerator
was successfully advanced to the next element, or false if the enumerator
has passed the end
of the collection.
"""
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
Current = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Gets the element in the collection at the current position of the enumerator.
Get: Current(self: IAsyncEnumerator[T]) -> T
"""
class ICollection(IEnumerable[T], IEnumerable):
# no doc
def Add(self, item):
""" Add(self: ICollection[T], item: T) """
pass
def Clear(self):
""" Clear(self: ICollection[T]) """
pass
def Contains(self, item):
""" Contains(self: ICollection[T], item: T) -> bool """
pass
def CopyTo(self, array, arrayIndex):
""" CopyTo(self: ICollection[T], array: Array[T], arrayIndex: int) """
pass
def Remove(self, item):
""" Remove(self: ICollection[T], item: T) -> bool """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: ICollection[T]) -> int
"""
IsReadOnly = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: IsReadOnly(self: ICollection[T]) -> bool
"""
class IComparer:
# no doc
def Compare(self, x, y):
""" Compare(self: IComparer[T], x: T, y: T) -> int """
pass
def __cmp__(self, *args): #cannot find CLR method
""" x.__cmp__(y) <==> cmp(x,y) """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IDictionary(ICollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable):
# no doc
def Add(self, key, value):
""" Add(self: IDictionary[TKey, TValue], key: TKey, value: TValue) """
pass
def ContainsKey(self, key):
""" ContainsKey(self: IDictionary[TKey, TValue], key: TKey) -> bool """
pass
def Remove(self, key):
""" Remove(self: IDictionary[TKey, TValue], key: TKey) -> bool """
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: IDictionary[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__(self: ICollection[KeyValuePair[TKey, TValue]], item: KeyValuePair[TKey, TValue]) -> bool """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Keys(self: IDictionary[TKey, TValue]) -> ICollection[TKey]
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Values(self: IDictionary[TKey, TValue]) -> ICollection[TValue]
"""
class IEnumerable(IEnumerable):
# no doc
def GetEnumerator(self):
""" GetEnumerator(self: IEnumerable[T]) -> IEnumerator[T] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IEnumerator(IDisposable, IEnumerator):
# no doc
def next(self, *args): #cannot find CLR method
""" next(self: object) -> object """
pass
def __enter__(self, *args): #cannot find CLR method
""" __enter__(self: IDisposable) -> object """
pass
def __exit__(self, *args): #cannot find CLR method
""" __exit__(self: IDisposable, exc_type: object, exc_value: object, exc_back: object) """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__[T](self: IEnumerator[T]) -> object """
pass
Current = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Current(self: IEnumerator[T]) -> T
"""
class IEqualityComparer:
# no doc
def Equals(self, x, y):
""" Equals(self: IEqualityComparer[T], x: T, y: T) -> bool """
pass
def GetHashCode(self, obj):
""" GetHashCode(self: IEqualityComparer[T], obj: T) -> int """
pass
def __eq__(self, *args): #cannot find CLR method
""" x.__eq__(y) <==> x==y """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IList(ICollection[T], IEnumerable[T], IEnumerable):
# no doc
def IndexOf(self, item):
""" IndexOf(self: IList[T], item: T) -> int """
pass
def Insert(self, index, item):
""" Insert(self: IList[T], index: int, item: T) """
pass
def RemoveAt(self, index):
""" RemoveAt(self: IList[T], index: int) """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__(self: ICollection[T], item: T) -> bool """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
class IReadOnlyCollection(IEnumerable[T], IEnumerable):
# no doc
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: IReadOnlyCollection[T]) -> int
"""
class IReadOnlyDictionary(IReadOnlyCollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable):
# no doc
def ContainsKey(self, key):
""" ContainsKey(self: IReadOnlyDictionary[TKey, TValue], key: TKey) -> bool """
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: IReadOnlyDictionary[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__[KeyValuePair`2](enumerable: IEnumerable[KeyValuePair[TKey, TValue]], value: KeyValuePair[TKey, TValue]) -> bool """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Keys(self: IReadOnlyDictionary[TKey, TValue]) -> IEnumerable[TKey]
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Values(self: IReadOnlyDictionary[TKey, TValue]) -> IEnumerable[TValue]
"""
class IReadOnlyList(IReadOnlyCollection[T], IEnumerable[T], IEnumerable):
# no doc
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
class ISet(ICollection[T], IEnumerable[T], IEnumerable):
# no doc
def Add(self, item):
""" Add(self: ISet[T], item: T) -> bool """
pass
def ExceptWith(self, other):
""" ExceptWith(self: ISet[T], other: IEnumerable[T]) """
pass
def IntersectWith(self, other):
""" IntersectWith(self: ISet[T], other: IEnumerable[T]) """
pass
def IsProperSubsetOf(self, other):
""" IsProperSubsetOf(self: ISet[T], other: IEnumerable[T]) -> bool """
pass
def IsProperSupersetOf(self, other):
""" IsProperSupersetOf(self: ISet[T], other: IEnumerable[T]) -> bool """
pass
def IsSubsetOf(self, other):
""" IsSubsetOf(self: ISet[T], other: IEnumerable[T]) -> bool """
pass
def IsSupersetOf(self, other):
""" IsSupersetOf(self: ISet[T], other: IEnumerable[T]) -> bool """
pass
def Overlaps(self, other):
""" Overlaps(self: ISet[T], other: IEnumerable[T]) -> bool """
pass
def SetEquals(self, other):
""" SetEquals(self: ISet[T], other: IEnumerable[T]) -> bool """
pass
def SymmetricExceptWith(self, other):
""" SymmetricExceptWith(self: ISet[T], other: IEnumerable[T]) """
pass
def UnionWith(self, other):
""" UnionWith(self: ISet[T], other: IEnumerable[T]) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__(self: ICollection[T], item: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
class KeyNotFoundException(SystemException, ISerializable, _Exception):
"""
KeyNotFoundException()
KeyNotFoundException(message: str)
KeyNotFoundException(message: str, innerException: Exception)
"""
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod # known case of __new__
def __new__(self, message=None, innerException=None):
"""
__new__(cls: type)
__new__(cls: type, message: str)
__new__(cls: type, message: str, innerException: Exception)
__new__(cls: type, info: SerializationInfo, context: StreamingContext)
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __str__(self, *args): #cannot find CLR method
pass
SerializeObjectState = None
class KeyValuePair(object):
""" KeyValuePair[TKey, TValue](key: TKey, value: TValue) """
def ToString(self):
""" ToString(self: KeyValuePair[TKey, TValue]) -> str """
pass
@staticmethod # known case of __new__
def __new__(self, key, value):
"""
__new__[KeyValuePair`2]() -> KeyValuePair[TKey, TValue]
__new__(cls: type, key: TKey, value: TValue)
"""
pass
Key = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Key(self: KeyValuePair[TKey, TValue]) -> TKey
"""
Value = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Value(self: KeyValuePair[TKey, TValue]) -> TValue
"""
class LinkedList(object, ICollection[T], IEnumerable[T], IEnumerable, ICollection, IReadOnlyCollection[T], ISerializable, IDeserializationCallback):
"""
LinkedList[T]()
LinkedList[T](collection: IEnumerable[T])
"""
def AddAfter(self, node, *__args):
""" AddAfter(self: LinkedList[T], node: LinkedListNode[T], newNode: LinkedListNode[T])AddAfter(self: LinkedList[T], node: LinkedListNode[T], value: T) -> LinkedListNode[T] """
pass
def AddBefore(self, node, *__args):
"""
AddBefore(self: LinkedList[T], node: LinkedListNode[T], value: T) -> LinkedListNode[T]
AddBefore(self: LinkedList[T], node: LinkedListNode[T], newNode: LinkedListNode[T])
"""
pass
def AddFirst(self, *__args):
"""
AddFirst(self: LinkedList[T], value: T) -> LinkedListNode[T]
AddFirst(self: LinkedList[T], node: LinkedListNode[T])
"""
pass
def AddLast(self, *__args):
"""
AddLast(self: LinkedList[T], value: T) -> LinkedListNode[T]
AddLast(self: LinkedList[T], node: LinkedListNode[T])
"""
pass
def Clear(self):
""" Clear(self: LinkedList[T]) """
pass
def Contains(self, value):
""" Contains(self: LinkedList[T], value: T) -> bool """
pass
def CopyTo(self, array, index):
""" CopyTo(self: LinkedList[T], array: Array[T], index: int) """
pass
def Find(self, value):
""" Find(self: LinkedList[T], value: T) -> LinkedListNode[T] """
pass
def FindLast(self, value):
""" FindLast(self: LinkedList[T], value: T) -> LinkedListNode[T] """
pass
def GetEnumerator(self):
""" GetEnumerator(self: LinkedList[T]) -> Enumerator """
pass
def GetObjectData(self, info, context):
""" GetObjectData(self: LinkedList[T], info: SerializationInfo, context: StreamingContext) """
pass
def OnDeserialization(self, sender):
""" OnDeserialization(self: LinkedList[T], sender: object) """
pass
def Remove(self, *__args):
"""
Remove(self: LinkedList[T], value: T) -> bool
Remove(self: LinkedList[T], node: LinkedListNode[T])
"""
pass
def RemoveFirst(self):
""" RemoveFirst(self: LinkedList[T]) """
pass
def RemoveLast(self):
""" RemoveLast(self: LinkedList[T]) """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__(self: ICollection[T], item: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, collection=None):
"""
__new__(cls: type)
__new__(cls: type, collection: IEnumerable[T])
__new__(cls: type, info: SerializationInfo, context: StreamingContext)
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: LinkedList[T]) -> int
"""
First = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: First(self: LinkedList[T]) -> LinkedListNode[T]
"""
Last = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Last(self: LinkedList[T]) -> LinkedListNode[T]
"""
Enumerator = None
class LinkedListNode(object):
""" LinkedListNode[T](value: T) """
@staticmethod # known case of __new__
def __new__(self, value):
""" __new__(cls: type, value: T) """
pass
List = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: List(self: LinkedListNode[T]) -> LinkedList[T]
"""
Next = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Next(self: LinkedListNode[T]) -> LinkedListNode[T]
"""
Previous = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Previous(self: LinkedListNode[T]) -> LinkedListNode[T]
"""
Value = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Value(self: LinkedListNode[T]) -> T
Set: Value(self: LinkedListNode[T]) = value
"""
class List(object, IList[T], ICollection[T], IEnumerable[T], IEnumerable, IList, ICollection, IReadOnlyList[T], IReadOnlyCollection[T]):
"""
List[T]()
List[T](capacity: int)
List[T](collection: IEnumerable[T])
"""
def Add(self, item):
""" Add(self: List[T], item: T) """
pass
def AddRange(self, collection):
""" AddRange(self: List[T], collection: IEnumerable[T]) """
pass
def AsReadOnly(self):
""" AsReadOnly(self: List[T]) -> ReadOnlyCollection[T] """
pass
def BinarySearch(self, *__args):
"""
BinarySearch(self: List[T], index: int, count: int, item: T, comparer: IComparer[T]) -> int
BinarySearch(self: List[T], item: T) -> int
BinarySearch(self: List[T], item: T, comparer: IComparer[T]) -> int
"""
pass
def Clear(self):
""" Clear(self: List[T]) """
pass
def Contains(self, item):
""" Contains(self: List[T], item: T) -> bool """
pass
def ConvertAll(self, converter):
""" ConvertAll[TOutput](self: List[T], converter: Converter[T, TOutput]) -> List[TOutput] """
pass
def CopyTo(self, *__args):
""" CopyTo(self: List[T], index: int, array: Array[T], arrayIndex: int, count: int)CopyTo(self: List[T], array: Array[T])CopyTo(self: List[T], array: Array[T], arrayIndex: int) """
pass
def Exists(self, match):
""" Exists(self: List[T], match: Predicate[T]) -> bool """
pass
def Find(self, match):
""" Find(self: List[T], match: Predicate[T]) -> T """
pass
def FindAll(self, match):
""" FindAll(self: List[T], match: Predicate[T]) -> List[T] """
pass
def FindIndex(self, *__args):
"""
FindIndex(self: List[T], match: Predicate[T]) -> int
FindIndex(self: List[T], startIndex: int, match: Predicate[T]) -> int
FindIndex(self: List[T], startIndex: int, count: int, match: Predicate[T]) -> int
"""
pass
def FindLast(self, match):
""" FindLast(self: List[T], match: Predicate[T]) -> T """
pass
def FindLastIndex(self, *__args):
"""
FindLastIndex(self: List[T], match: Predicate[T]) -> int
FindLastIndex(self: List[T], startIndex: int, match: Predicate[T]) -> int
FindLastIndex(self: List[T], startIndex: int, count: int, match: Predicate[T]) -> int
"""
pass
def ForEach(self, action):
""" ForEach(self: List[T], action: Action[T]) """
pass
def GetEnumerator(self):
""" GetEnumerator(self: List[T]) -> Enumerator """
pass
def GetRange(self, index, count):
""" GetRange(self: List[T], index: int, count: int) -> List[T] """
pass
def IndexOf(self, item, index=None, count=None):
"""
IndexOf(self: List[T], item: T) -> int
IndexOf(self: List[T], item: T, index: int) -> int
IndexOf(self: List[T], item: T, index: int, count: int) -> int
"""
pass
def Insert(self, index, item):
""" Insert(self: List[T], index: int, item: T) """
pass
def InsertRange(self, index, collection):
""" InsertRange(self: List[T], index: int, collection: IEnumerable[T]) """
pass
def LastIndexOf(self, item, index=None, count=None):
"""
LastIndexOf(self: List[T], item: T) -> int
LastIndexOf(self: List[T], item: T, index: int) -> int
LastIndexOf(self: List[T], item: T, index: int, count: int) -> int
"""
pass
def Remove(self, item):
""" Remove(self: List[T], item: T) -> bool """
pass
def RemoveAll(self, match):
""" RemoveAll(self: List[T], match: Predicate[T]) -> int """
pass
def RemoveAt(self, index):
""" RemoveAt(self: List[T], index: int) """
pass
def RemoveRange(self, index, count):
""" RemoveRange(self: List[T], index: int, count: int) """
pass
def Reverse(self, index=None, count=None):
""" Reverse(self: List[T], index: int, count: int)Reverse(self: List[T]) """
pass
def Sort(self, *__args):
""" Sort(self: List[T])Sort(self: List[T], comparer: IComparer[T])Sort(self: List[T], index: int, count: int, comparer: IComparer[T])Sort(self: List[T], comparison: Comparison[T]) """
pass
def ToArray(self):
""" ToArray(self: List[T]) -> Array[T] """
pass
def TrimExcess(self):
""" TrimExcess(self: List[T]) """
pass
def TrueForAll(self, match):
""" TrueForAll(self: List[T], match: Predicate[T]) -> bool """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
"""
__contains__(self: ICollection[T], item: T) -> bool
__contains__(self: IList, value: object) -> bool
"""
pass
def __delitem__(self, *args): #cannot find CLR method
""" x.__delitem__(y) <==> del x[y]x.__delitem__(y) <==> del x[y]x.__delitem__(y) <==> del x[y] """
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __getslice__(self, *args): #cannot find CLR method
"""
__getslice__(self: List[T], x: int, y: int) -> List[T]
__getslice__(self: List[T], x: int, y: int) -> List[T]
"""
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, capacity: int)
__new__(cls: type, collection: IEnumerable[T])
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
"""
__repr__(self: List[T]) -> str
__repr__(self: List[T]) -> str
"""
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
Capacity = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Capacity(self: List[T]) -> int
Set: Capacity(self: List[T]) = value
"""
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: List[T]) -> int
"""
Enumerator = None
class Queue(object, IEnumerable[T], IEnumerable, ICollection, IReadOnlyCollection[T]):
"""
Queue[T]()
Queue[T](capacity: int)
Queue[T](collection: IEnumerable[T])
"""
def Clear(self):
""" Clear(self: Queue[T]) """
pass
def Contains(self, item):
""" Contains(self: Queue[T], item: T) -> bool """
pass
def CopyTo(self, array, arrayIndex):
""" CopyTo(self: Queue[T], array: Array[T], arrayIndex: int) """
pass
def Dequeue(self):
""" Dequeue(self: Queue[T]) -> T """
pass
def Enqueue(self, item):
""" Enqueue(self: Queue[T], item: T) """
pass
def GetEnumerator(self):
""" GetEnumerator(self: Queue[T]) -> Enumerator """
pass
def Peek(self):
""" Peek(self: Queue[T]) -> T """
pass
def ToArray(self):
""" ToArray(self: Queue[T]) -> Array[T] """
pass
def TrimExcess(self):
""" TrimExcess(self: Queue[T]) """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, capacity: int)
__new__(cls: type, collection: IEnumerable[T])
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: Queue[T]) -> int
"""
Enumerator = None
class SortedDictionary(object, IDictionary[TKey, TValue], ICollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable, IDictionary, ICollection, IReadOnlyDictionary[TKey, TValue], IReadOnlyCollection[KeyValuePair[TKey, TValue]]):
"""
SortedDictionary[TKey, TValue]()
SortedDictionary[TKey, TValue](dictionary: IDictionary[TKey, TValue])
SortedDictionary[TKey, TValue](dictionary: IDictionary[TKey, TValue], comparer: IComparer[TKey])
SortedDictionary[TKey, TValue](comparer: IComparer[TKey])
"""
def Add(self, key, value):
""" Add(self: SortedDictionary[TKey, TValue], key: TKey, value: TValue) """
pass
def Clear(self):
""" Clear(self: SortedDictionary[TKey, TValue]) """
pass
def ContainsKey(self, key):
""" ContainsKey(self: SortedDictionary[TKey, TValue], key: TKey) -> bool """
pass
def ContainsValue(self, value):
""" ContainsValue(self: SortedDictionary[TKey, TValue], value: TValue) -> bool """
pass
def CopyTo(self, array, index):
""" CopyTo(self: SortedDictionary[TKey, TValue], array: Array[KeyValuePair[TKey, TValue]], index: int) """
pass
def GetEnumerator(self):
""" GetEnumerator(self: SortedDictionary[TKey, TValue]) -> Enumerator """
pass
def Remove(self, key):
""" Remove(self: SortedDictionary[TKey, TValue], key: TKey) -> bool """
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: SortedDictionary[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
"""
__contains__(self: IDictionary[TKey, TValue], key: TKey) -> bool
__contains__(self: IDictionary, key: object) -> bool
"""
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, dictionary: IDictionary[TKey, TValue])
__new__(cls: type, dictionary: IDictionary[TKey, TValue], comparer: IComparer[TKey])
__new__(cls: type, comparer: IComparer[TKey])
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
Comparer = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Comparer(self: SortedDictionary[TKey, TValue]) -> IComparer[TKey]
"""
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: SortedDictionary[TKey, TValue]) -> int
"""
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Keys(self: SortedDictionary[TKey, TValue]) -> KeyCollection
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Values(self: SortedDictionary[TKey, TValue]) -> ValueCollection
"""
Enumerator = None
KeyCollection = None
ValueCollection = None
class SortedList(object, IDictionary[TKey, TValue], ICollection[KeyValuePair[TKey, TValue]], IEnumerable[KeyValuePair[TKey, TValue]], IEnumerable, IDictionary, ICollection, IReadOnlyDictionary[TKey, TValue], IReadOnlyCollection[KeyValuePair[TKey, TValue]]):
"""
SortedList[TKey, TValue]()
SortedList[TKey, TValue](capacity: int)
SortedList[TKey, TValue](comparer: IComparer[TKey])
SortedList[TKey, TValue](capacity: int, comparer: IComparer[TKey])
SortedList[TKey, TValue](dictionary: IDictionary[TKey, TValue])
SortedList[TKey, TValue](dictionary: IDictionary[TKey, TValue], comparer: IComparer[TKey])
"""
def Add(self, key, value):
""" Add(self: SortedList[TKey, TValue], key: TKey, value: TValue) """
pass
def Clear(self):
""" Clear(self: SortedList[TKey, TValue]) """
pass
def ContainsKey(self, key):
""" ContainsKey(self: SortedList[TKey, TValue], key: TKey) -> bool """
pass
def ContainsValue(self, value):
""" ContainsValue(self: SortedList[TKey, TValue], value: TValue) -> bool """
pass
def GetEnumerator(self):
""" GetEnumerator(self: SortedList[TKey, TValue]) -> IEnumerator[KeyValuePair[TKey, TValue]] """
pass
def IndexOfKey(self, key):
""" IndexOfKey(self: SortedList[TKey, TValue], key: TKey) -> int """
pass
def IndexOfValue(self, value):
""" IndexOfValue(self: SortedList[TKey, TValue], value: TValue) -> int """
pass
def Remove(self, key):
""" Remove(self: SortedList[TKey, TValue], key: TKey) -> bool """
pass
def RemoveAt(self, index):
""" RemoveAt(self: SortedList[TKey, TValue], index: int) """
pass
def TrimExcess(self):
""" TrimExcess(self: SortedList[TKey, TValue]) """
pass
def TryGetValue(self, key, value):
""" TryGetValue(self: SortedList[TKey, TValue], key: TKey) -> (bool, TValue) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
"""
__contains__(self: IDictionary[TKey, TValue], key: TKey) -> bool
__contains__(self: IDictionary, key: object) -> bool
"""
pass
def __getitem__(self, *args): #cannot find CLR method
""" x.__getitem__(y) <==> x[y] """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, capacity: int)
__new__(cls: type, comparer: IComparer[TKey])
__new__(cls: type, capacity: int, comparer: IComparer[TKey])
__new__(cls: type, dictionary: IDictionary[TKey, TValue])
__new__(cls: type, dictionary: IDictionary[TKey, TValue], comparer: IComparer[TKey])
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
def __setitem__(self, *args): #cannot find CLR method
""" x.__setitem__(i, y) <==> x[i]= """
pass
Capacity = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Capacity(self: SortedList[TKey, TValue]) -> int
Set: Capacity(self: SortedList[TKey, TValue]) = value
"""
Comparer = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Comparer(self: SortedList[TKey, TValue]) -> IComparer[TKey]
"""
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: SortedList[TKey, TValue]) -> int
"""
Keys = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Keys(self: SortedList[TKey, TValue]) -> IList[TKey]
"""
Values = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Values(self: SortedList[TKey, TValue]) -> IList[TValue]
"""
class SortedSet(object, ISet[T], ICollection[T], IEnumerable[T], IEnumerable, ICollection, ISerializable, IDeserializationCallback, IReadOnlyCollection[T]):
"""
SortedSet[T]()
SortedSet[T](comparer: IComparer[T])
SortedSet[T](collection: IEnumerable[T])
SortedSet[T](collection: IEnumerable[T], comparer: IComparer[T])
"""
def Add(self, item):
""" Add(self: SortedSet[T], item: T) -> bool """
pass
def Clear(self):
""" Clear(self: SortedSet[T]) """
pass
def Contains(self, item):
""" Contains(self: SortedSet[T], item: T) -> bool """
pass
def CopyTo(self, array, index=None, count=None):
""" CopyTo(self: SortedSet[T], array: Array[T])CopyTo(self: SortedSet[T], array: Array[T], index: int)CopyTo(self: SortedSet[T], array: Array[T], index: int, count: int) """
pass
@staticmethod
def CreateSetComparer(memberEqualityComparer=None):
"""
CreateSetComparer() -> IEqualityComparer[SortedSet[T]]
CreateSetComparer(memberEqualityComparer: IEqualityComparer[T]) -> IEqualityComparer[SortedSet[T]]
"""
pass
def ExceptWith(self, other):
""" ExceptWith(self: SortedSet[T], other: IEnumerable[T]) """
pass
def GetEnumerator(self):
""" GetEnumerator(self: SortedSet[T]) -> Enumerator """
pass
def GetObjectData(self, *args): #cannot find CLR method
""" GetObjectData(self: SortedSet[T], info: SerializationInfo, context: StreamingContext) """
pass
def GetViewBetween(self, lowerValue, upperValue):
""" GetViewBetween(self: SortedSet[T], lowerValue: T, upperValue: T) -> SortedSet[T] """
pass
def IntersectWith(self, other):
""" IntersectWith(self: SortedSet[T], other: IEnumerable[T]) """
pass
def IsProperSubsetOf(self, other):
""" IsProperSubsetOf(self: SortedSet[T], other: IEnumerable[T]) -> bool """
pass
def IsProperSupersetOf(self, other):
""" IsProperSupersetOf(self: SortedSet[T], other: IEnumerable[T]) -> bool """
pass
def IsSubsetOf(self, other):
""" IsSubsetOf(self: SortedSet[T], other: IEnumerable[T]) -> bool """
pass
def IsSupersetOf(self, other):
""" IsSupersetOf(self: SortedSet[T], other: IEnumerable[T]) -> bool """
pass
def OnDeserialization(self, *args): #cannot find CLR method
""" OnDeserialization(self: SortedSet[T], sender: object) """
pass
def Overlaps(self, other):
""" Overlaps(self: SortedSet[T], other: IEnumerable[T]) -> bool """
pass
def Remove(self, item):
""" Remove(self: SortedSet[T], item: T) -> bool """
pass
def RemoveWhere(self, match):
""" RemoveWhere(self: SortedSet[T], match: Predicate[T]) -> int """
pass
def Reverse(self):
""" Reverse(self: SortedSet[T]) -> IEnumerable[T] """
pass
def SetEquals(self, other):
""" SetEquals(self: SortedSet[T], other: IEnumerable[T]) -> bool """
pass
def SymmetricExceptWith(self, other):
""" SymmetricExceptWith(self: SortedSet[T], other: IEnumerable[T]) """
pass
def TryGetValue(self, equalValue, actualValue):
""" TryGetValue(self: SortedSet[T], equalValue: T) -> (bool, T) """
pass
def UnionWith(self, other):
""" UnionWith(self: SortedSet[T], other: IEnumerable[T]) """
pass
def __add__(self, *args): #cannot find CLR method
""" x.__add__(y) <==> x+y """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__(self: ICollection[T], item: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, comparer: IComparer[T])
__new__(cls: type, collection: IEnumerable[T])
__new__(cls: type, collection: IEnumerable[T], comparer: IComparer[T])
__new__(cls: type, info: SerializationInfo, context: StreamingContext)
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
Comparer = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Comparer(self: SortedSet[T]) -> IComparer[T]
"""
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: SortedSet[T]) -> int
"""
Max = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Max(self: SortedSet[T]) -> T
"""
Min = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Min(self: SortedSet[T]) -> T
"""
Enumerator = None
class Stack(object, IEnumerable[T], IEnumerable, ICollection, IReadOnlyCollection[T]):
"""
Stack[T]()
Stack[T](capacity: int)
Stack[T](collection: IEnumerable[T])
"""
def Clear(self):
""" Clear(self: Stack[T]) """
pass
def Contains(self, item):
""" Contains(self: Stack[T], item: T) -> bool """
pass
def CopyTo(self, array, arrayIndex):
""" CopyTo(self: Stack[T], array: Array[T], arrayIndex: int) """
pass
def GetEnumerator(self):
""" GetEnumerator(self: Stack[T]) -> Enumerator """
pass
def Peek(self):
""" Peek(self: Stack[T]) -> T """
pass
def Pop(self):
""" Pop(self: Stack[T]) -> T """
pass
def Push(self, item):
""" Push(self: Stack[T], item: T) """
pass
def ToArray(self):
""" ToArray(self: Stack[T]) -> Array[T] """
pass
def TrimExcess(self):
""" TrimExcess(self: Stack[T]) """
pass
def __contains__(self, *args): #cannot find CLR method
""" __contains__[T](enumerable: IEnumerable[T], value: T) -> bool """
pass
def __init__(self, *args): #cannot find CLR method
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
def __iter__(self, *args): #cannot find CLR method
""" __iter__(self: IEnumerable) -> object """
pass
def __len__(self, *args): #cannot find CLR method
""" x.__len__() <==> len(x) """
pass
@staticmethod # known case of __new__
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type, capacity: int)
__new__(cls: type, collection: IEnumerable[T])
"""
pass
def __reduce_ex__(self, *args): #cannot find CLR method
pass
def __repr__(self, *args): #cannot find CLR method
""" __repr__(self: object) -> str """
pass
Count = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
"""Get: Count(self: Stack[T]) -> int
"""
Enumerator = None
| [
1,
396,
8025,
29901,
23616,
29899,
29947,
30004,
13,
29937,
3883,
2184,
29889,
19466,
29889,
15809,
5717,
3528,
3251,
293,
30004,
13,
29937,
515,
286,
1557,
272,
1982,
29892,
10079,
29922,
29946,
29889,
29900,
29889,
29900,
29889,
29900,
29892,
14062,
29922,
17821,
1705,
29892,
5236,
2558,
6066,
29922,
29890,
29955,
29955,
29874,
29945,
29883,
29945,
29953,
29896,
29929,
29941,
29946,
29872,
29900,
29947,
29929,
29892,
2184,
29892,
10079,
29922,
29946,
29889,
29900,
29889,
29900,
29889,
29900,
29892,
14062,
29922,
17821,
1705,
29892,
5236,
2558,
6066,
29922,
29890,
29955,
29955,
29874,
29945,
29883,
29945,
29953,
29896,
29929,
29941,
29946,
29872,
29900,
29947,
29929,
29892,
7783,
29889,
29933,
695,
29889,
8123,
4074,
8726,
29892,
10079,
29922,
29896,
29889,
29900,
29889,
29900,
29889,
29900,
29892,
14062,
29922,
17821,
1705,
29892,
5236,
2558,
6066,
29922,
29966,
10818,
3238,
13,
29937,
491,
15299,
29871,
29896,
29889,
29896,
29946,
29945,
30004,
13,
29937,
694,
1574,
30004,
13,
29937,
694,
24802,
30004,
13,
30004,
13,
29937,
694,
3168,
30004,
13,
29937,
4413,
30004,
13,
30004,
13,
1990,
28663,
261,
29898,
3318,
29892,
306,
1523,
862,
261,
29892,
306,
1523,
862,
261,
29961,
29911,
29962,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
3831,
598,
29898,
1311,
29892,
921,
29892,
343,
1125,
30004,
13,
4706,
9995,
3831,
598,
29898,
1311,
29901,
28663,
261,
29961,
29911,
1402,
921,
29901,
323,
29892,
343,
29901,
323,
29897,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
30004,
13,
1678,
822,
6204,
29898,
510,
20941,
1125,
30004,
13,
4706,
9995,
6204,
29898,
510,
20941,
29901,
422,
20941,
29961,
29911,
2314,
1599,
28663,
261,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
21058,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
21058,
12035,
29891,
29897,
529,
1360,
29958,
274,
1526,
29898,
29916,
29892,
29891,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
13343,
29898,
3318,
29892,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
306,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29892,
3553,
4334,
29892,
306,
7196,
29892,
306,
6359,
11730,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
306,
6359,
11730,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
306,
9125,
13902,
29892,
3553,
267,
261,
616,
2133,
10717,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
13343,
29961,
29911,
2558,
29892,
323,
1917,
29962,
26471,
30004,
13,
1678,
13343,
29961,
29911,
2558,
29892,
323,
1917,
850,
5030,
5946,
29901,
938,
8443,
30004,
13,
1678,
13343,
29961,
29911,
2558,
29892,
323,
1917,
850,
510,
862,
261,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
1678,
13343,
29961,
29911,
2558,
29892,
323,
1917,
850,
5030,
5946,
29901,
938,
29892,
5734,
261,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
1678,
13343,
29961,
29911,
2558,
29892,
323,
1917,
850,
27126,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
30004,
30004,
13,
1678,
13343,
29961,
29911,
2558,
29892,
323,
1917,
850,
27126,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
5734,
261,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29892,
995,
29901,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
2558,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
2866,
2708,
2558,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
1917,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
2866,
2708,
1917,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
1402,
995,
29901,
323,
1917,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
1174,
4680,
1061,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
2061,
1469,
29898,
1311,
29892,
5235,
29892,
3030,
1125,
30004,
13,
4706,
9995,
3617,
2061,
1469,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
1402,
5235,
29901,
18896,
2133,
3401,
29892,
3030,
29901,
13763,
292,
2677,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1551,
4002,
261,
616,
2133,
29898,
1311,
29892,
10004,
1125,
30004,
13,
4706,
9995,
1551,
4002,
261,
616,
2133,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
1402,
10004,
29901,
1203,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
15154,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3967,
2577,
1917,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3967,
2577,
1917,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
313,
11227,
29892,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
30004,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
3553,
4334,
29892,
1820,
29901,
1203,
29897,
1599,
6120,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
13284,
29901,
938,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5734,
261,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
13284,
29901,
938,
29892,
5734,
261,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
8600,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
8600,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
5734,
261,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5235,
29901,
18896,
2133,
3401,
29892,
3030,
29901,
13763,
292,
2677,
8443,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
276,
558,
12035,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
851,
30004,
30004,
13,
4706,
4770,
276,
558,
12035,
1311,
29901,
13343,
29961,
29968,
29892,
478,
2314,
1599,
851,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
842,
667,
12035,
29875,
29892,
343,
29897,
529,
1360,
29958,
921,
29961,
29875,
13192,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
28663,
261,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
28663,
261,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2558,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
4813,
952,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
4813,
952,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
7670,
7196,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
2630,
1041,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
2630,
1041,
29898,
1311,
29901,
13343,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
7865,
7196,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1678,
1174,
4680,
1061,
353,
6213,
30004,
13,
1678,
7670,
7196,
353,
6213,
30004,
13,
1678,
7865,
7196,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
1990,
11243,
2877,
1523,
862,
261,
29898,
3318,
29892,
306,
6108,
2877,
1523,
862,
261,
29892,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
29962,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
11243,
1338,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
11243,
1338,
29898,
1311,
29901,
11243,
2877,
1523,
862,
261,
29961,
29911,
1402,
921,
29901,
323,
29892,
343,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
10438,
3399,
29898,
1311,
29892,
5446,
29922,
8516,
1125,
30004,
13,
4706,
9995,
3617,
10438,
3399,
29898,
1311,
29901,
11243,
2877,
1523,
862,
261,
29961,
29911,
1402,
5446,
29901,
323,
29897,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1837,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1837,
12035,
29891,
29897,
529,
1360,
29958,
921,
1360,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
8123,
29923,
14068,
29901,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
3617,
8123,
29923,
8058,
1061,
29898,
1311,
29892,
508,
22603,
6066,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
3617,
8123,
29923,
8058,
1061,
29898,
1311,
29901,
306,
8123,
29923,
14068,
29961,
29911,
1402,
508,
22603,
6066,
29901,
1815,
22603,
6066,
29897,
1599,
306,
8123,
29923,
8058,
1061,
29961,
29911,
29962,
30004,
30004,
13,
4706,
6756,
30004,
13,
9651,
16969,
385,
22447,
1061,
393,
4256,
1078,
408,
9524,
5794,
1549,
278,
4333,
22993,
30004,
13,
4706,
6756,
30004,
13,
9651,
508,
22603,
6066,
29901,
319,
2184,
29889,
4899,
292,
29889,
6028,
22603,
6066,
393,
1122,
367,
1304,
304,
12611,
278,
20489,
12541,
22993,
30004,
13,
9651,
16969,
29901,
530,
22447,
1061,
393,
508,
367,
1304,
304,
13649,
408,
9524,
5794,
1549,
278,
4333,
22993,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
8123,
29923,
8058,
1061,
29898,
29902,
8123,
4205,
1066,
519,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
25249,
9190,
8123,
29898,
1311,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
25249,
9190,
8123,
29898,
1311,
29901,
306,
8123,
29923,
8058,
1061,
29961,
29911,
2314,
1599,
7865,
5398,
29961,
11227,
29962,
30004,
30004,
13,
4706,
6756,
30004,
13,
9651,
25215,
2925,
278,
22447,
1061,
408,
9524,
5794,
304,
278,
2446,
1543,
310,
278,
4333,
22993,
30004,
13,
9651,
16969,
29901,
319,
2184,
29889,
4899,
292,
29889,
26249,
29889,
1917,
5398,
393,
674,
4866,
411,
263,
1121,
310,
1565,
565,
278,
22447,
1061,
30004,
30004,
13,
462,
1678,
471,
8472,
12862,
304,
278,
2446,
1543,
29892,
470,
2089,
565,
278,
22447,
1061,
6756,
30004,
13,
632,
756,
4502,
278,
1095,
30004,
30004,
13,
462,
1678,
310,
278,
4333,
22993,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
9626,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
29954,
1691,
278,
1543,
297,
278,
4333,
472,
278,
1857,
2602,
310,
278,
22447,
1061,
22993,
30004,
13,
30004,
30004,
13,
2577,
29901,
9626,
29898,
1311,
29901,
306,
8123,
29923,
8058,
1061,
29961,
29911,
2314,
1599,
323,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
7196,
29898,
8673,
14068,
29961,
29911,
1402,
23555,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
306,
7196,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
2866,
2708,
29898,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14187,
1762,
29898,
1311,
29892,
1409,
29892,
1409,
3220,
1125,
30004,
13,
4706,
9995,
14187,
1762,
29898,
1311,
29901,
306,
7196,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
1402,
1409,
3220,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
15154,
29898,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
1649,
29961,
29911,
850,
264,
4680,
519,
29901,
23555,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
306,
7196,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
1317,
6359,
11730,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
1317,
6359,
11730,
29898,
1311,
29901,
306,
7196,
29961,
29911,
2314,
1599,
6120,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
1523,
862,
261,
29901,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
3831,
598,
29898,
1311,
29892,
921,
29892,
343,
1125,
30004,
13,
4706,
9995,
3831,
598,
29898,
1311,
29901,
306,
1523,
862,
261,
29961,
29911,
1402,
921,
29901,
323,
29892,
343,
29901,
323,
29897,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
21058,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
21058,
12035,
29891,
29897,
529,
1360,
29958,
274,
1526,
29898,
29916,
29892,
29891,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
3553,
4334,
29898,
29902,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29892,
995,
29901,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
2558,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
2866,
2708,
2558,
29898,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
15154,
29898,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3967,
2577,
1917,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3967,
2577,
1917,
29898,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
313,
11227,
29892,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
12035,
1311,
29901,
306,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
2944,
29901,
7670,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
842,
667,
12035,
29875,
29892,
343,
29897,
529,
1360,
29958,
921,
29961,
29875,
13192,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
4813,
952,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
4813,
952,
29898,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
306,
7196,
29961,
29911,
2558,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
2630,
1041,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
2630,
1041,
29898,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
306,
7196,
29961,
29911,
1917,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
23555,
29898,
8673,
14068,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
23555,
29961,
29911,
2314,
1599,
7159,
8058,
1061,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
7159,
8058,
1061,
29898,
1367,
275,
1066,
519,
29892,
7159,
8058,
1061,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
2446,
29898,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
2446,
29898,
1311,
29901,
1203,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
5893,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
5893,
12035,
1311,
29901,
3553,
275,
1066,
519,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
13322,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
13322,
12035,
1311,
29901,
3553,
275,
1066,
519,
29892,
5566,
29918,
1853,
29901,
1203,
29892,
5566,
29918,
1767,
29901,
1203,
29892,
5566,
29918,
1627,
29901,
1203,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
1649,
29961,
29911,
850,
1311,
29901,
7159,
8058,
1061,
29961,
29911,
2314,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
9626,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
9626,
29898,
1311,
29901,
7159,
8058,
1061,
29961,
29911,
2314,
1599,
323,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
6108,
2877,
1523,
862,
261,
29901,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
11243,
1338,
29898,
1311,
29892,
921,
29892,
343,
1125,
30004,
13,
4706,
9995,
11243,
1338,
29898,
1311,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
1402,
921,
29901,
323,
29892,
343,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
10438,
3399,
29898,
1311,
29892,
5446,
1125,
30004,
13,
4706,
9995,
3617,
10438,
3399,
29898,
1311,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
1402,
5446,
29901,
323,
29897,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1837,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1837,
12035,
29891,
29897,
529,
1360,
29958,
921,
1360,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
1293,
29898,
29902,
7196,
29961,
29911,
1402,
23555,
29961,
29911,
1402,
23555,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
11374,
2776,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
11374,
2776,
29898,
1311,
29901,
306,
1293,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
24505,
29898,
1311,
29892,
2380,
29892,
2944,
1125,
30004,
13,
4706,
9995,
24505,
29898,
1311,
29901,
306,
1293,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2944,
29901,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
4178,
29898,
1311,
29892,
2380,
1125,
30004,
13,
4706,
9995,
15154,
4178,
29898,
1311,
29901,
306,
1293,
29961,
29911,
1402,
2380,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
12035,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
842,
667,
12035,
29875,
29892,
343,
29897,
529,
1360,
29958,
921,
29961,
29875,
13192,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
6359,
11730,
7196,
29898,
8673,
14068,
29961,
29911,
1402,
23555,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
1649,
29961,
29911,
850,
264,
4680,
519,
29901,
23555,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
306,
6359,
11730,
7196,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
6359,
11730,
11513,
29898,
29902,
6359,
11730,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
2866,
2708,
2558,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
2866,
2708,
2558,
29898,
1311,
29901,
306,
6359,
11730,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3967,
2577,
1917,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3967,
2577,
1917,
29898,
1311,
29901,
306,
6359,
11730,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
313,
11227,
29892,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
1649,
29961,
2558,
1917,
20547,
29952,
29906,
850,
264,
4680,
519,
29901,
23555,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
995,
29901,
7670,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
4813,
952,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
4813,
952,
29898,
1311,
29901,
306,
6359,
11730,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
23555,
29961,
29911,
2558,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
2630,
1041,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
2630,
1041,
29898,
1311,
29901,
306,
6359,
11730,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
23555,
29961,
29911,
1917,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
6359,
11730,
1293,
29898,
29902,
6359,
11730,
7196,
29961,
29911,
1402,
23555,
29961,
29911,
1402,
23555,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
1649,
29961,
29911,
850,
264,
4680,
519,
29901,
23555,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
306,
2697,
29898,
29902,
7196,
29961,
29911,
1402,
23555,
29961,
29911,
1402,
23555,
1125,
30004,
13,
1678,
396,
694,
1574,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1222,
1547,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1222,
1547,
3047,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4124,
8803,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
4124,
8803,
3047,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
1184,
546,
4035,
842,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
1184,
546,
4035,
842,
2776,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
1184,
546,
29903,
786,
24197,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
1184,
546,
29903,
786,
24197,
2776,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
4035,
842,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
4035,
842,
2776,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
29903,
786,
24197,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
29903,
786,
24197,
2776,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
6811,
14128,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
6811,
14128,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3789,
14776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
3789,
14776,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10667,
16414,
1252,
1547,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
10667,
16414,
1252,
1547,
3047,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
7761,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
7761,
3047,
29898,
1311,
29901,
306,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
12035,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
30004,
13,
1990,
7670,
17413,
2451,
29898,
3924,
2451,
29892,
306,
9125,
13902,
29892,
903,
2451,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
7670,
17413,
2451,
26471,
30004,
13,
1678,
7670,
17413,
2451,
29898,
4906,
29901,
851,
8443,
30004,
13,
1678,
7670,
17413,
2451,
29898,
4906,
29901,
851,
29892,
6426,
2451,
29901,
8960,
8443,
13,
1678,
9995,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
2643,
29922,
8516,
29892,
6426,
2451,
29922,
8516,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
2643,
29901,
851,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
2643,
29901,
851,
29892,
6426,
2451,
29901,
8960,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5235,
29901,
18896,
2133,
3401,
29892,
3030,
29901,
13763,
292,
2677,
8443,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
710,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
1816,
6646,
2061,
2792,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
1990,
7670,
1917,
20547,
29898,
3318,
1125,
30004,
13,
1678,
9995,
7670,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
850,
1989,
29901,
323,
2558,
29892,
995,
29901,
323,
1917,
29897,
9995,
30004,
13,
1678,
822,
1763,
1231,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1763,
1231,
29898,
1311,
29901,
7670,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
1649,
29961,
2558,
1917,
20547,
29952,
29906,
29962,
580,
1599,
7670,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
29962,
30004,
30004,
13,
4706,
6756,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
1820,
29901,
323,
2558,
29892,
995,
29901,
323,
1917,
8443,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
7670,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
7670,
29898,
1311,
29901,
7670,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
323,
2558,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
7865,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
7865,
29898,
1311,
29901,
7670,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
323,
1917,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
28547,
1293,
29898,
3318,
29892,
306,
7196,
29961,
29911,
1402,
23555,
29961,
29911,
1402,
23555,
29892,
306,
7196,
29892,
306,
6359,
11730,
7196,
29961,
29911,
1402,
306,
9125,
13902,
29892,
3553,
267,
261,
616,
2133,
10717,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
28547,
1293,
29961,
29911,
29962,
26471,
30004,
13,
1678,
28547,
1293,
29961,
29911,
850,
10855,
29901,
23555,
29961,
29911,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
3462,
13555,
29898,
1311,
29892,
2943,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
3462,
13555,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
2943,
29901,
28547,
1293,
4247,
29961,
29911,
1402,
716,
4247,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
2528,
13555,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
2943,
29901,
28547,
1293,
4247,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3462,
18743,
29898,
1311,
29892,
2943,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
3462,
18743,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
2943,
29901,
28547,
1293,
4247,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
30004,
30004,
13,
4706,
3462,
18743,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
2943,
29901,
28547,
1293,
4247,
29961,
29911,
1402,
716,
4247,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3462,
6730,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
3462,
6730,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
30004,
30004,
13,
4706,
3462,
6730,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
2943,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3462,
8897,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
3462,
8897,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
30004,
30004,
13,
4706,
3462,
8897,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
2943,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
2866,
2708,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14187,
1762,
29898,
1311,
29892,
1409,
29892,
2380,
1125,
30004,
13,
4706,
9995,
14187,
1762,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
1402,
2380,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10987,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
10987,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10987,
8897,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
10987,
8897,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
2314,
1599,
1174,
4680,
1061,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
2061,
1469,
29898,
1311,
29892,
5235,
29892,
3030,
1125,
30004,
13,
4706,
9995,
3617,
2061,
1469,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
5235,
29901,
18896,
2133,
3401,
29892,
3030,
29901,
13763,
292,
2677,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1551,
4002,
261,
616,
2133,
29898,
1311,
29892,
10004,
1125,
30004,
13,
4706,
9995,
1551,
4002,
261,
616,
2133,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
10004,
29901,
1203,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
15154,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
6120,
30004,
30004,
13,
4706,
15154,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
1402,
2943,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
6730,
29898,
1311,
1125,
30004,
13,
4706,
9995,
15154,
6730,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
8897,
29898,
1311,
1125,
30004,
13,
4706,
9995,
15154,
8897,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
12035,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
4333,
29922,
8516,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
4333,
29901,
23555,
29961,
29911,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5235,
29901,
18896,
2133,
3401,
29892,
3030,
29901,
13763,
292,
2677,
8443,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
3824,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3824,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
2314,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
9208,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
9208,
29898,
1311,
29901,
28547,
1293,
29961,
29911,
2314,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1678,
1174,
4680,
1061,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
1990,
28547,
1293,
4247,
29898,
3318,
1125,
30004,
13,
1678,
9995,
28547,
1293,
4247,
29961,
29911,
850,
1767,
29901,
323,
29897,
9995,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
995,
29901,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
2391,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
2391,
29898,
1311,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
1599,
28547,
1293,
29961,
29911,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
8084,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
8084,
29898,
1311,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
4721,
2366,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
4721,
2366,
29898,
1311,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
1599,
28547,
1293,
4247,
29961,
29911,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
7865,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
7865,
29898,
1311,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
1599,
323,
30004,
30004,
13,
30004,
30004,
13,
2697,
29901,
7865,
29898,
1311,
29901,
28547,
1293,
4247,
29961,
29911,
2314,
353,
995,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
2391,
29898,
3318,
29892,
306,
1293,
29961,
29911,
1402,
306,
7196,
29961,
29911,
1402,
23555,
29961,
29911,
1402,
23555,
29892,
306,
1293,
29892,
306,
7196,
29892,
306,
6359,
11730,
1293,
29961,
29911,
1402,
306,
6359,
11730,
7196,
29961,
29911,
29962,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
2391,
29961,
29911,
29962,
26471,
30004,
13,
1678,
2391,
29961,
29911,
850,
5030,
5946,
29901,
938,
8443,
30004,
13,
1678,
2391,
29961,
29911,
850,
10855,
29901,
23555,
29961,
29911,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3462,
6069,
29898,
1311,
29892,
4333,
1125,
30004,
13,
4706,
9995,
3462,
6069,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
4333,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1094,
6359,
11730,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1094,
6359,
11730,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
1599,
7523,
11730,
7196,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
29479,
7974,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
29479,
7974,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2302,
29901,
938,
29892,
2944,
29901,
323,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
4706,
29479,
7974,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
938,
30004,
30004,
13,
4706,
29479,
7974,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
1599,
938,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
2866,
2708,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14806,
3596,
29898,
1311,
29892,
29105,
1125,
30004,
13,
4706,
9995,
14806,
3596,
29961,
29911,
6466,
850,
1311,
29901,
2391,
29961,
29911,
1402,
29105,
29901,
1281,
13549,
29961,
29911,
29892,
323,
6466,
2314,
1599,
2391,
29961,
29911,
6466,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14187,
1762,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
14187,
1762,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
1409,
29901,
4398,
29961,
29911,
1402,
1409,
3220,
29901,
938,
29892,
2302,
29901,
938,
29897,
11882,
1762,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
2314,
11882,
1762,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
1402,
1409,
3220,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1222,
2879,
29898,
1311,
29892,
1993,
1125,
30004,
13,
4706,
9995,
1222,
2879,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10987,
29898,
1311,
29892,
1993,
1125,
30004,
13,
4706,
9995,
10987,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
323,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10987,
3596,
29898,
1311,
29892,
1993,
1125,
30004,
13,
4706,
9995,
10987,
3596,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
2391,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10987,
3220,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
10987,
3220,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
4706,
10987,
3220,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1369,
3220,
29901,
938,
29892,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
4706,
10987,
3220,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1369,
3220,
29901,
938,
29892,
2302,
29901,
938,
29892,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10987,
8897,
29898,
1311,
29892,
1993,
1125,
30004,
13,
4706,
9995,
10987,
8897,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
323,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10987,
8897,
3220,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
10987,
8897,
3220,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
4706,
10987,
8897,
3220,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1369,
3220,
29901,
938,
29892,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
4706,
10987,
8897,
3220,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1369,
3220,
29901,
938,
29892,
2302,
29901,
938,
29892,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1152,
9760,
29898,
1311,
29892,
3158,
1125,
30004,
13,
4706,
9995,
1152,
9760,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
3158,
29901,
9123,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
1599,
1174,
4680,
1061,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
6069,
29898,
1311,
29892,
2380,
29892,
2302,
1125,
30004,
13,
4706,
9995,
3617,
6069,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2302,
29901,
938,
29897,
1599,
2391,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
11374,
2776,
29898,
1311,
29892,
2944,
29892,
2380,
29922,
8516,
29892,
2302,
29922,
8516,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
11374,
2776,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
938,
30004,
30004,
13,
4706,
11374,
2776,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29892,
2380,
29901,
938,
29897,
1599,
938,
30004,
30004,
13,
4706,
11374,
2776,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29892,
2380,
29901,
938,
29892,
2302,
29901,
938,
29897,
1599,
938,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
24505,
29898,
1311,
29892,
2380,
29892,
2944,
1125,
30004,
13,
4706,
9995,
24505,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2944,
29901,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
24505,
6069,
29898,
1311,
29892,
2380,
29892,
4333,
1125,
30004,
13,
4706,
9995,
24505,
6069,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
4333,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
9208,
3220,
2776,
29898,
1311,
29892,
2944,
29892,
2380,
29922,
8516,
29892,
2302,
29922,
8516,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
9208,
3220,
2776,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
938,
30004,
30004,
13,
4706,
9208,
3220,
2776,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29892,
2380,
29901,
938,
29897,
1599,
938,
30004,
30004,
13,
4706,
9208,
3220,
2776,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29892,
2380,
29901,
938,
29892,
2302,
29901,
938,
29897,
1599,
938,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
15154,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
3596,
29898,
1311,
29892,
1993,
1125,
30004,
13,
4706,
9995,
15154,
3596,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
4178,
29898,
1311,
29892,
2380,
1125,
30004,
13,
4706,
9995,
15154,
4178,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
6069,
29898,
1311,
29892,
2380,
29892,
2302,
1125,
30004,
13,
4706,
9995,
15154,
6069,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2302,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
830,
3901,
29898,
1311,
29892,
2380,
29922,
8516,
29892,
2302,
29922,
8516,
1125,
30004,
13,
4706,
9995,
830,
3901,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2302,
29901,
938,
29897,
1123,
3901,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
20025,
29898,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
20025,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
13685,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
13685,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2302,
29901,
938,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
13685,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
10230,
29901,
422,
20941,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1763,
2588,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1763,
2588,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
1599,
4398,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1605,
326,
1252,
985,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1605,
326,
1252,
985,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
5852,
2831,
3596,
29898,
1311,
29892,
1993,
1125,
30004,
13,
4706,
9995,
5852,
2831,
3596,
29898,
1311,
29901,
2391,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
30004,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
306,
1293,
29892,
995,
29901,
1203,
29897,
1599,
6120,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
6144,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
6144,
667,
12035,
29891,
29897,
529,
1360,
29958,
628,
921,
29961,
29891,
29962,
29916,
17255,
6144,
667,
12035,
29891,
29897,
529,
1360,
29958,
628,
921,
29961,
29891,
29962,
29916,
17255,
6144,
667,
12035,
29891,
29897,
529,
1360,
29958,
628,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
18337,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
657,
18337,
12035,
1311,
29901,
2391,
29961,
29911,
1402,
921,
29901,
938,
29892,
343,
29901,
938,
29897,
1599,
2391,
29961,
29911,
29962,
30004,
30004,
13,
4706,
4770,
657,
18337,
12035,
1311,
29901,
2391,
29961,
29911,
1402,
921,
29901,
938,
29892,
343,
29901,
938,
29897,
1599,
2391,
29961,
29911,
29962,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
13284,
29901,
938,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
4333,
29901,
23555,
29961,
29911,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
276,
558,
12035,
1311,
29901,
2391,
29961,
29911,
2314,
1599,
851,
30004,
30004,
13,
4706,
4770,
276,
558,
12035,
1311,
29901,
2391,
29961,
29911,
2314,
1599,
851,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
842,
667,
12035,
29875,
29892,
343,
29897,
529,
1360,
29958,
921,
29961,
29875,
13192,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
5915,
5946,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
5915,
5946,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
2697,
29901,
5915,
5946,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
353,
995,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
2391,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1678,
1174,
4680,
1061,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
1990,
5462,
434,
29898,
3318,
29892,
23555,
29961,
29911,
1402,
23555,
29892,
306,
7196,
29892,
306,
6359,
11730,
7196,
29961,
29911,
29962,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
5462,
434,
29961,
29911,
29962,
26471,
30004,
13,
1678,
5462,
434,
29961,
29911,
850,
5030,
5946,
29901,
938,
8443,
30004,
13,
1678,
5462,
434,
29961,
29911,
850,
10855,
29901,
23555,
29961,
29911,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
5462,
434,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
2866,
2708,
29898,
1311,
29901,
5462,
434,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14187,
1762,
29898,
1311,
29892,
1409,
29892,
1409,
3220,
1125,
30004,
13,
4706,
9995,
14187,
1762,
29898,
1311,
29901,
5462,
434,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
1402,
1409,
3220,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
897,
9990,
29898,
1311,
1125,
30004,
13,
4706,
9995,
897,
9990,
29898,
1311,
29901,
5462,
434,
29961,
29911,
2314,
1599,
323,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1174,
9990,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
1174,
9990,
29898,
1311,
29901,
5462,
434,
29961,
29911,
1402,
2944,
29901,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
5462,
434,
29961,
29911,
2314,
1599,
1174,
4680,
1061,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3938,
1416,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3938,
1416,
29898,
1311,
29901,
5462,
434,
29961,
29911,
2314,
1599,
323,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1763,
2588,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1763,
2588,
29898,
1311,
29901,
5462,
434,
29961,
29911,
2314,
1599,
4398,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1605,
326,
1252,
985,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1605,
326,
1252,
985,
29898,
1311,
29901,
5462,
434,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
1649,
29961,
29911,
850,
264,
4680,
519,
29901,
23555,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
13284,
29901,
938,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
4333,
29901,
23555,
29961,
29911,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
5462,
434,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1678,
1174,
4680,
1061,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
1990,
317,
18054,
11513,
29898,
3318,
29892,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
306,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29892,
3553,
4334,
29892,
306,
7196,
29892,
306,
6359,
11730,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
306,
6359,
11730,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
5262,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
29962,
26471,
30004,
13,
1678,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
850,
27126,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
30004,
30004,
13,
1678,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
850,
27126,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
1678,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
850,
510,
862,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29892,
995,
29901,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
2558,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
2866,
2708,
2558,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
1917,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
2866,
2708,
1917,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
995,
29901,
323,
1917,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14187,
1762,
29898,
1311,
29892,
1409,
29892,
2380,
1125,
30004,
13,
4706,
9995,
14187,
1762,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1409,
29901,
4398,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
2380,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
1174,
4680,
1061,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
15154,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3967,
2577,
1917,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3967,
2577,
1917,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
313,
11227,
29892,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
30004,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
3553,
4334,
29892,
1820,
29901,
1203,
29897,
1599,
6120,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
8600,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
8600,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
842,
667,
12035,
29875,
29892,
343,
29897,
529,
1360,
29958,
921,
29961,
29875,
13192,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
28663,
261,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
28663,
261,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
306,
1523,
862,
261,
29961,
29911,
2558,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
4813,
952,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
4813,
952,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
7670,
7196,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
2630,
1041,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
2630,
1041,
29898,
1311,
29901,
317,
18054,
11513,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
7865,
7196,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1678,
1174,
4680,
1061,
353,
6213,
30004,
13,
1678,
7670,
7196,
353,
6213,
30004,
13,
1678,
7865,
7196,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
1990,
317,
18054,
1293,
29898,
3318,
29892,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
306,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
20526,
23555,
29892,
3553,
4334,
29892,
306,
7196,
29892,
306,
6359,
11730,
11513,
29961,
29911,
2558,
29892,
323,
1917,
1402,
306,
6359,
11730,
7196,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
5262,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
29962,
26471,
30004,
13,
1678,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
850,
5030,
5946,
29901,
938,
8443,
30004,
13,
1678,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
850,
510,
862,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
1678,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
850,
5030,
5946,
29901,
938,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
1678,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
850,
27126,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
30004,
30004,
13,
1678,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
850,
27126,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29892,
995,
29901,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
2558,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
2866,
2708,
2558,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
1917,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
2866,
2708,
1917,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
995,
29901,
323,
1917,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
7159,
8058,
1061,
29961,
2558,
1917,
20547,
29961,
29911,
2558,
29892,
323,
1917,
5262,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
11374,
2776,
2558,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
11374,
2776,
2558,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
11374,
2776,
1917,
29898,
1311,
29892,
995,
1125,
30004,
13,
4706,
9995,
11374,
2776,
1917,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
995,
29901,
323,
1917,
29897,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
1820,
1125,
30004,
13,
4706,
9995,
15154,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
4178,
29898,
1311,
29892,
2380,
1125,
30004,
13,
4706,
9995,
15154,
4178,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
2380,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1605,
326,
1252,
985,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1605,
326,
1252,
985,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3967,
2577,
1917,
29898,
1311,
29892,
1820,
29892,
995,
1125,
30004,
13,
4706,
9995,
3967,
2577,
1917,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
313,
11227,
29892,
323,
1917,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
1820,
29901,
323,
2558,
29897,
1599,
6120,
30004,
30004,
13,
4706,
4770,
11516,
12035,
1311,
29901,
3553,
4334,
29892,
1820,
29901,
1203,
29897,
1599,
6120,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
657,
667,
12035,
29891,
29897,
529,
1360,
29958,
921,
29961,
29891,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
13284,
29901,
938,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
13284,
29901,
938,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
8600,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
8600,
29901,
3553,
4334,
29961,
29911,
2558,
29892,
323,
1917,
1402,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2558,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
842,
667,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
842,
667,
12035,
29875,
29892,
343,
29897,
529,
1360,
29958,
921,
29961,
29875,
13192,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
5915,
5946,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
5915,
5946,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
2697,
29901,
5915,
5946,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
353,
995,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
28663,
261,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
28663,
261,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
306,
1523,
862,
261,
29961,
29911,
2558,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
4813,
952,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
4813,
952,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
306,
1293,
29961,
29911,
2558,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
2630,
1041,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
2630,
1041,
29898,
1311,
29901,
317,
18054,
1293,
29961,
29911,
2558,
29892,
323,
1917,
2314,
1599,
306,
1293,
29961,
29911,
1917,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
30004,
13,
1990,
317,
18054,
2697,
29898,
3318,
29892,
306,
2697,
29961,
29911,
1402,
306,
7196,
29961,
29911,
1402,
23555,
29961,
29911,
1402,
23555,
29892,
306,
7196,
29892,
306,
9125,
13902,
29892,
3553,
267,
261,
616,
2133,
10717,
29892,
306,
6359,
11730,
7196,
29961,
29911,
29962,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
317,
18054,
2697,
29961,
29911,
29962,
26471,
30004,
13,
1678,
317,
18054,
2697,
29961,
29911,
850,
510,
862,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
30004,
30004,
13,
1678,
317,
18054,
2697,
29961,
29911,
850,
10855,
29901,
23555,
29961,
29911,
2314,
30004,
30004,
13,
1678,
317,
18054,
2697,
29961,
29911,
850,
10855,
29901,
23555,
29961,
29911,
1402,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
3462,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
3462,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
2866,
2708,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14187,
1762,
29898,
1311,
29892,
1409,
29892,
2380,
29922,
8516,
29892,
2302,
29922,
8516,
1125,
30004,
13,
4706,
9995,
14187,
1762,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
2314,
11882,
1762,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
1402,
2380,
29901,
938,
29897,
11882,
1762,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
1402,
2380,
29901,
938,
29892,
2302,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
30004,
13,
1678,
822,
6204,
2697,
1523,
862,
261,
29898,
14242,
6108,
2877,
1523,
862,
261,
29922,
8516,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
6204,
2697,
1523,
862,
261,
580,
1599,
306,
6108,
2877,
1523,
862,
261,
29961,
13685,
287,
2697,
29961,
29911,
5262,
30004,
30004,
13,
4706,
6204,
2697,
1523,
862,
261,
29898,
14242,
6108,
2877,
1523,
862,
261,
29901,
306,
6108,
2877,
1523,
862,
261,
29961,
29911,
2314,
1599,
306,
6108,
2877,
1523,
862,
261,
29961,
13685,
287,
2697,
29961,
29911,
5262,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1222,
1547,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1222,
1547,
3047,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
2314,
1599,
1174,
4680,
1061,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
2061,
1469,
29898,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
3617,
2061,
1469,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
5235,
29901,
18896,
2133,
3401,
29892,
3030,
29901,
13763,
292,
2677,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
1043,
29933,
300,
1452,
29898,
1311,
29892,
5224,
1917,
29892,
7568,
1917,
1125,
30004,
13,
4706,
9995,
3617,
1043,
29933,
300,
1452,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
5224,
1917,
29901,
323,
29892,
7568,
1917,
29901,
323,
29897,
1599,
317,
18054,
2697,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4124,
8803,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
4124,
8803,
3047,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
1184,
546,
4035,
842,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
1184,
546,
4035,
842,
2776,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
1184,
546,
29903,
786,
24197,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
1184,
546,
29903,
786,
24197,
2776,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
4035,
842,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
4035,
842,
2776,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1317,
29903,
786,
24197,
2776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
1317,
29903,
786,
24197,
2776,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1551,
4002,
261,
616,
2133,
29898,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
1551,
4002,
261,
616,
2133,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
10004,
29901,
1203,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
6811,
14128,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
6811,
14128,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
15154,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
15154,
11921,
29898,
1311,
29892,
1993,
1125,
30004,
13,
4706,
9995,
15154,
11921,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
1993,
29901,
21099,
9593,
29961,
29911,
2314,
1599,
938,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
830,
3901,
29898,
1311,
1125,
30004,
13,
4706,
9995,
830,
3901,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
2314,
1599,
23555,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3789,
14776,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
3789,
14776,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
10667,
16414,
1252,
1547,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
10667,
16414,
1252,
1547,
3047,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3967,
2577,
1917,
29898,
1311,
29892,
5186,
1917,
29892,
3935,
1917,
1125,
30004,
13,
4706,
9995,
3967,
2577,
1917,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
5186,
1917,
29901,
323,
29897,
1599,
313,
11227,
29892,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
7761,
3047,
29898,
1311,
29892,
916,
1125,
30004,
13,
4706,
9995,
7761,
3047,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
1402,
916,
29901,
23555,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
1202,
12035,
29891,
29897,
529,
1360,
29958,
921,
29974,
29891,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
12035,
1311,
29901,
306,
7196,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
4333,
29901,
23555,
29961,
29911,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
4333,
29901,
23555,
29961,
29911,
1402,
5734,
261,
29901,
306,
1523,
862,
261,
29961,
29911,
2314,
30004,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
5235,
29901,
18896,
2133,
3401,
29892,
3030,
29901,
13763,
292,
2677,
8443,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
28663,
261,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
28663,
261,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
2314,
1599,
306,
1523,
862,
261,
29961,
29911,
29962,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
5918,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
5918,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
2314,
1599,
323,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
1678,
3080,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3080,
29898,
1311,
29901,
317,
18054,
2697,
29961,
29911,
2314,
1599,
323,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1678,
1174,
4680,
1061,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
1990,
10292,
29898,
3318,
29892,
23555,
29961,
29911,
1402,
23555,
29892,
306,
7196,
29892,
306,
6359,
11730,
7196,
29961,
29911,
29962,
1125,
30004,
13,
1678,
9995,
30004,
13,
1678,
10292,
29961,
29911,
29962,
26471,
30004,
13,
1678,
10292,
29961,
29911,
850,
5030,
5946,
29901,
938,
8443,
30004,
13,
1678,
10292,
29961,
29911,
850,
10855,
29901,
23555,
29961,
29911,
2314,
30004,
13,
1678,
9995,
30004,
13,
1678,
822,
17732,
29898,
1311,
1125,
30004,
13,
4706,
9995,
17732,
29898,
1311,
29901,
10292,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
2866,
2708,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
2866,
2708,
29898,
1311,
29901,
10292,
29961,
29911,
1402,
2944,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
14187,
1762,
29898,
1311,
29892,
1409,
29892,
1409,
3220,
1125,
30004,
13,
4706,
9995,
14187,
1762,
29898,
1311,
29901,
10292,
29961,
29911,
1402,
1409,
29901,
4398,
29961,
29911,
1402,
1409,
3220,
29901,
938,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3617,
29923,
8058,
1061,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3617,
29923,
8058,
1061,
29898,
1311,
29901,
10292,
29961,
29911,
2314,
1599,
1174,
4680,
1061,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
3938,
1416,
29898,
1311,
1125,
30004,
13,
4706,
9995,
3938,
1416,
29898,
1311,
29901,
10292,
29961,
29911,
2314,
1599,
323,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
6977,
29898,
1311,
1125,
30004,
13,
4706,
9995,
6977,
29898,
1311,
29901,
10292,
29961,
29911,
2314,
1599,
323,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
349,
1878,
29898,
1311,
29892,
2944,
1125,
30004,
13,
4706,
9995,
349,
1878,
29898,
1311,
29901,
10292,
29961,
29911,
1402,
2944,
29901,
323,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1763,
2588,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1763,
2588,
29898,
1311,
29901,
10292,
29961,
29911,
2314,
1599,
4398,
29961,
29911,
29962,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
1605,
326,
1252,
985,
29898,
1311,
1125,
30004,
13,
4706,
9995,
1605,
326,
1252,
985,
29898,
1311,
29901,
10292,
29961,
29911,
2314,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
11516,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
11516,
1649,
29961,
29911,
850,
264,
4680,
519,
29901,
23555,
29961,
29911,
1402,
995,
29901,
323,
29897,
1599,
6120,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
1524,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
1524,
12035,
1311,
29901,
23555,
29897,
1599,
1203,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
2435,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
921,
17255,
2435,
1649,
580,
529,
1360,
29958,
7431,
29898,
29916,
29897,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
732,
7959,
5696,
396,
2998,
1206,
310,
4770,
1482,
1649,
30004,
13,
1678,
822,
4770,
1482,
12035,
1311,
29892,
334,
1649,
5085,
1125,
30004,
13,
4706,
9995,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
13284,
29901,
938,
8443,
30004,
13,
4706,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
4333,
29901,
23555,
29961,
29911,
2314,
30004,
13,
4706,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
17469,
29918,
735,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
29892,
334,
5085,
1125,
396,
29883,
6735,
1284,
17332,
29934,
1158,
30004,
13,
4706,
9995,
4770,
276,
558,
12035,
1311,
29901,
1203,
29897,
1599,
851,
9995,
30004,
13,
4706,
1209,
30004,
13,
30004,
13,
1678,
3917,
353,
2875,
29898,
2892,
1583,
29901,
1203,
3285,
14013,
1583,
29892,
325,
29901,
6213,
29892,
14013,
1583,
29901,
6213,
29897,
29871,
396,
2322,
30004,
13,
1678,
9995,
2577,
29901,
3917,
29898,
1311,
29901,
10292,
29961,
29911,
2314,
1599,
938,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
1678,
1174,
4680,
1061,
353,
6213,
30004,
13,
30004,
13,
30004,
13,
2
] |
LinkUp/core/apis/algorithm_api.py | Justin-sd/LinkUp | 0 | 67204 | from ..models import *
from .availability_calendar_api import *
from .calendar_api import *
import json
from datetime import datetime, timedelta
def get_best(event_id):
"""
:param event_id: the id of the event we want to get best times of
:return: A list of sorted pairs: [ (time, [users]), (time, [users]).... ]
where time is the starting time and users is list of users who can make it.
"""
event_set = Event.objects.filter(event_id=event_id)
event = event_set[0]
# make the queryset of users into a list of users
users = list(event.members.all())
# make all these in minutes
duration = int(event.duration)
st = event.potential_start_date
# round up the potential starting minutes
if st.minute > 30:
new_st = st.replace(minute=0)
new_st = new_st + timedelta(hours=1)
elif st.minute > 0:
new_st = st.replace(minute=30)
elif st.minute == 0 or st.minute == 30:
new_st = st
start = convert_to_minutes(new_st, new_st)
et = event.potential_end_date
# round down potential ending minutes
if et.minute > 30:
new_et = et.replace(minute=30)
elif et.minute > 0:
new_et = et.replace(minute=0)
elif et.minute == 0 or et.minute == 30:
new_et = et
end = convert_to_minutes(new_et, new_st)
min_hour = event.no_earlier_than.hour
min_minute = event.no_earlier_than.minute
max_hour = event.no_later_than.hour
max_minute = event.no_later_than.minute
# Dictionary: starting times as keys and values is list of people who can make it,
# keys incremented by duration
optimal_times = {}
# from start to end time, add keys of 30 minute increments with querysets of every user attending
for i in range(start,end+1, 30):
if i + duration > end:
break
# only add times later than min time and earlier than max time
time = convert_to_datetime(new_st, i)
if min_hour < time.hour < max_hour:
optimal_times[i] = users.copy()
elif time.hour == min_hour:
if time.minute >= min_minute:
optimal_times[i] = users.copy()
elif time.hour == max_hour:
if time.minute <= max_minute:
optimal_times[i] = users.copy()
# have a list of all users times
for u in users:
# user_sched = free_busy_month(u)
# schedule = json.dumps(user_sched, default=json_datetime_handler)
# Schedule.objects.create(user=u, availability=schedule)
# get user's schedules in datetime format
for times in get_users_saved_schedule(u):
start_time = list(times.values())[0]
# round DOWN the starting minutes
if start_time.minute > 30:
starting = start_time.replace(minute=30)
elif start_time.minute > 0:
starting = start_time.replace(minute=0)
elif start_time.minute == 0 or start_time.minute == 30:
starting = start_time
the_start = convert_to_minutes(starting, new_st)
end_time = list(times.values())[1]
# round UP the ending minutes
if et.minute > 30:
ending = et.replace(minute=0)
ending = ending + timedelta(hours=1)
elif et.minute > 0:
ending = et.replace(minute=30)
elif et.minute == 0 or et.minute == 30:
ending = end_time
the_end = convert_to_minutes(ending, new_st)
# try to find the keys in 30 minute increments and remove the user
# from the corresponding list
for i in range(the_start, the_end+1, 30):
if i in optimal_times:
dict_value = optimal_times.get(i)
if u in dict_value:
dict_value.remove(u)
new_dict = {i: dict_value}
optimal_times.update(new_dict)
# go through the optimal times and find which list contains
# most users then append to new list
curr_max = 0
if len(optimal_times) > 0:
curr_max = len(list(optimal_times.values())[0])
append_list = []
for times in optimal_times:
if len(optimal_times[times]) >= curr_max:
# append a list of pairs, first = datetime of start second = list of attending
# with the ending of the list having more people available
append_list.append((convert_to_datetime(new_st, times), optimal_times.get(times)))
curr_max = len(optimal_times[times])
# return the reversed list
return append_list[::-1]
# convert a datetime to minutes elapsed
def convert_to_minutes(time, starting):
elapsed = time - starting
minutes = int(elapsed.total_seconds()/60)
return minutes
# convert minutes to a datetime by getting starting datetime and timedelta by minutes
def convert_to_datetime(starting, mins):
time = starting + timedelta(minutes=mins)
return time | [
1,
515,
6317,
9794,
1053,
334,
13,
3166,
869,
485,
737,
3097,
29918,
23392,
29918,
2754,
1053,
334,
13,
3166,
869,
23392,
29918,
2754,
1053,
334,
13,
5215,
4390,
13,
3166,
12865,
1053,
12865,
29892,
5335,
287,
2554,
13,
13,
13,
1753,
679,
29918,
13318,
29898,
3696,
29918,
333,
1125,
13,
1678,
9995,
13,
13,
1678,
584,
3207,
1741,
29918,
333,
29901,
278,
1178,
310,
278,
1741,
591,
864,
304,
679,
1900,
3064,
310,
13,
1678,
584,
2457,
29901,
319,
1051,
310,
12705,
11000,
29901,
518,
313,
2230,
29892,
518,
7193,
11724,
313,
2230,
29892,
518,
7193,
14664,
856,
4514,
13,
9651,
988,
931,
338,
278,
6257,
931,
322,
4160,
338,
1051,
310,
4160,
1058,
508,
1207,
372,
29889,
13,
1678,
9995,
13,
1678,
1741,
29918,
842,
353,
6864,
29889,
12650,
29889,
4572,
29898,
3696,
29918,
333,
29922,
3696,
29918,
333,
29897,
13,
13,
1678,
1741,
353,
1741,
29918,
842,
29961,
29900,
29962,
13,
1678,
396,
1207,
278,
2346,
842,
310,
4160,
964,
263,
1051,
310,
4160,
13,
1678,
4160,
353,
1051,
29898,
3696,
29889,
28109,
29889,
497,
3101,
13,
13,
1678,
396,
1207,
599,
1438,
297,
6233,
13,
1678,
14385,
353,
938,
29898,
3696,
29889,
19708,
29897,
13,
13,
1678,
380,
353,
1741,
29889,
17765,
2556,
29918,
2962,
29918,
1256,
13,
1678,
396,
4513,
701,
278,
7037,
6257,
6233,
13,
1678,
565,
380,
29889,
1195,
1082,
1405,
29871,
29941,
29900,
29901,
13,
4706,
716,
29918,
303,
353,
380,
29889,
6506,
29898,
1195,
1082,
29922,
29900,
29897,
13,
4706,
716,
29918,
303,
353,
716,
29918,
303,
718,
5335,
287,
2554,
29898,
29882,
2470,
29922,
29896,
29897,
13,
1678,
25342,
380,
29889,
1195,
1082,
1405,
29871,
29900,
29901,
13,
4706,
716,
29918,
303,
353,
380,
29889,
6506,
29898,
1195,
1082,
29922,
29941,
29900,
29897,
13,
1678,
25342,
380,
29889,
1195,
1082,
1275,
29871,
29900,
470,
380,
29889,
1195,
1082,
1275,
29871,
29941,
29900,
29901,
13,
4706,
716,
29918,
303,
353,
380,
13,
1678,
1369,
353,
3588,
29918,
517,
29918,
1195,
2667,
29898,
1482,
29918,
303,
29892,
716,
29918,
303,
29897,
13,
13,
1678,
634,
353,
1741,
29889,
17765,
2556,
29918,
355,
29918,
1256,
13,
1678,
396,
4513,
1623,
7037,
17140,
6233,
13,
1678,
565,
634,
29889,
1195,
1082,
1405,
29871,
29941,
29900,
29901,
13,
4706,
716,
29918,
300,
353,
634,
29889,
6506,
29898,
1195,
1082,
29922,
29941,
29900,
29897,
13,
1678,
25342,
634,
29889,
1195,
1082,
1405,
29871,
29900,
29901,
13,
4706,
716,
29918,
300,
353,
634,
29889,
6506,
29898,
1195,
1082,
29922,
29900,
29897,
13,
1678,
25342,
634,
29889,
1195,
1082,
1275,
29871,
29900,
470,
634,
29889,
1195,
1082,
1275,
29871,
29941,
29900,
29901,
13,
4706,
716,
29918,
300,
353,
634,
13,
1678,
1095,
353,
3588,
29918,
517,
29918,
1195,
2667,
29898,
1482,
29918,
300,
29892,
716,
29918,
303,
29897,
13,
13,
1678,
1375,
29918,
18721,
353,
1741,
29889,
1217,
29918,
799,
4926,
29918,
27603,
29889,
18721,
13,
1678,
1375,
29918,
1195,
1082,
353,
1741,
29889,
1217,
29918,
799,
4926,
29918,
27603,
29889,
1195,
1082,
13,
1678,
4236,
29918,
18721,
353,
1741,
29889,
1217,
29918,
29880,
1008,
29918,
27603,
29889,
18721,
13,
1678,
4236,
29918,
1195,
1082,
353,
1741,
29889,
1217,
29918,
29880,
1008,
29918,
27603,
29889,
1195,
1082,
13,
13,
1678,
396,
13343,
29901,
6257,
3064,
408,
6611,
322,
1819,
338,
1051,
310,
2305,
1058,
508,
1207,
372,
29892,
13,
1678,
396,
6611,
11924,
287,
491,
14385,
13,
1678,
14413,
29918,
3706,
353,
6571,
13,
1678,
396,
515,
1369,
304,
1095,
931,
29892,
788,
6611,
310,
29871,
29941,
29900,
11015,
3079,
1860,
411,
2346,
7224,
310,
1432,
1404,
1098,
2548,
13,
1678,
363,
474,
297,
3464,
29898,
2962,
29892,
355,
29974,
29896,
29892,
29871,
29941,
29900,
1125,
13,
4706,
565,
474,
718,
14385,
1405,
1095,
29901,
13,
9651,
2867,
13,
4706,
396,
871,
788,
3064,
2678,
1135,
1375,
931,
322,
8859,
1135,
4236,
931,
13,
4706,
931,
353,
3588,
29918,
517,
29918,
12673,
29898,
1482,
29918,
303,
29892,
474,
29897,
13,
4706,
565,
1375,
29918,
18721,
529,
931,
29889,
18721,
529,
4236,
29918,
18721,
29901,
13,
9651,
14413,
29918,
3706,
29961,
29875,
29962,
353,
4160,
29889,
8552,
580,
13,
4706,
25342,
931,
29889,
18721,
1275,
1375,
29918,
18721,
29901,
13,
9651,
565,
931,
29889,
1195,
1082,
6736,
1375,
29918,
1195,
1082,
29901,
13,
18884,
14413,
29918,
3706,
29961,
29875,
29962,
353,
4160,
29889,
8552,
580,
13,
4706,
25342,
931,
29889,
18721,
1275,
4236,
29918,
18721,
29901,
13,
9651,
565,
931,
29889,
1195,
1082,
5277,
4236,
29918,
1195,
1082,
29901,
13,
18884,
14413,
29918,
3706,
29961,
29875,
29962,
353,
4160,
29889,
8552,
580,
13,
13,
1678,
396,
505,
263,
1051,
310,
599,
4160,
3064,
13,
1678,
363,
318,
297,
4160,
29901,
13,
4706,
396,
1404,
29918,
816,
287,
353,
3889,
29918,
8262,
29891,
29918,
10874,
29898,
29884,
29897,
13,
4706,
396,
20410,
353,
4390,
29889,
29881,
17204,
29898,
1792,
29918,
816,
287,
29892,
2322,
29922,
3126,
29918,
12673,
29918,
13789,
29897,
13,
4706,
396,
1102,
11272,
29889,
12650,
29889,
3258,
29898,
1792,
29922,
29884,
29892,
20847,
3097,
29922,
816,
11272,
29897,
13,
13,
4706,
396,
679,
1404,
29915,
29879,
28598,
2540,
297,
12865,
3402,
13,
4706,
363,
3064,
297,
679,
29918,
7193,
29918,
17314,
29918,
816,
11272,
29898,
29884,
1125,
13,
9651,
1369,
29918,
2230,
353,
1051,
29898,
3706,
29889,
5975,
3101,
29961,
29900,
29962,
13,
9651,
396,
4513,
360,
9806,
29940,
278,
6257,
6233,
13,
9651,
565,
1369,
29918,
2230,
29889,
1195,
1082,
1405,
29871,
29941,
29900,
29901,
13,
18884,
6257,
353,
1369,
29918,
2230,
29889,
6506,
29898,
1195,
1082,
29922,
29941,
29900,
29897,
13,
9651,
25342,
1369,
29918,
2230,
29889,
1195,
1082,
1405,
29871,
29900,
29901,
13,
18884,
6257,
353,
1369,
29918,
2230,
29889,
6506,
29898,
1195,
1082,
29922,
29900,
29897,
13,
9651,
25342,
1369,
29918,
2230,
29889,
1195,
1082,
1275,
29871,
29900,
470,
1369,
29918,
2230,
29889,
1195,
1082,
1275,
29871,
29941,
29900,
29901,
13,
18884,
6257,
353,
1369,
29918,
2230,
13,
9651,
278,
29918,
2962,
353,
3588,
29918,
517,
29918,
1195,
2667,
29898,
2962,
292,
29892,
716,
29918,
303,
29897,
13,
13,
9651,
1095,
29918,
2230,
353,
1051,
29898,
3706,
29889,
5975,
3101,
29961,
29896,
29962,
13,
9651,
396,
4513,
11901,
278,
17140,
6233,
13,
9651,
565,
634,
29889,
1195,
1082,
1405,
29871,
29941,
29900,
29901,
13,
18884,
17140,
353,
634,
29889,
6506,
29898,
1195,
1082,
29922,
29900,
29897,
13,
18884,
17140,
353,
17140,
718,
5335,
287,
2554,
29898,
29882,
2470,
29922,
29896,
29897,
13,
9651,
25342,
634,
29889,
1195,
1082,
1405,
29871,
29900,
29901,
13,
18884,
17140,
353,
634,
29889,
6506,
29898,
1195,
1082,
29922,
29941,
29900,
29897,
13,
9651,
25342,
634,
29889,
1195,
1082,
1275,
29871,
29900,
470,
634,
29889,
1195,
1082,
1275,
29871,
29941,
29900,
29901,
13,
18884,
17140,
353,
1095,
29918,
2230,
13,
9651,
278,
29918,
355,
353,
3588,
29918,
517,
29918,
1195,
2667,
29898,
2548,
29892,
716,
29918,
303,
29897,
13,
13,
9651,
396,
1018,
304,
1284,
278,
6611,
297,
29871,
29941,
29900,
11015,
3079,
1860,
322,
3349,
278,
1404,
13,
9651,
396,
515,
278,
6590,
1051,
13,
9651,
363,
474,
297,
3464,
29898,
1552,
29918,
2962,
29892,
278,
29918,
355,
29974,
29896,
29892,
29871,
29941,
29900,
1125,
13,
18884,
565,
474,
297,
14413,
29918,
3706,
29901,
13,
462,
1678,
9657,
29918,
1767,
353,
14413,
29918,
3706,
29889,
657,
29898,
29875,
29897,
13,
462,
1678,
565,
318,
297,
9657,
29918,
1767,
29901,
13,
462,
4706,
9657,
29918,
1767,
29889,
5992,
29898,
29884,
29897,
13,
462,
1678,
716,
29918,
8977,
353,
426,
29875,
29901,
9657,
29918,
1767,
29913,
13,
462,
1678,
14413,
29918,
3706,
29889,
5504,
29898,
1482,
29918,
8977,
29897,
13,
13,
1678,
396,
748,
1549,
278,
14413,
3064,
322,
1284,
607,
1051,
3743,
13,
1678,
396,
1556,
4160,
769,
9773,
304,
716,
1051,
13,
1678,
16256,
29918,
3317,
353,
29871,
29900,
13,
1678,
565,
7431,
29898,
3670,
3039,
29918,
3706,
29897,
1405,
29871,
29900,
29901,
13,
4706,
16256,
29918,
3317,
353,
7431,
29898,
1761,
29898,
3670,
3039,
29918,
3706,
29889,
5975,
3101,
29961,
29900,
2314,
13,
1678,
9773,
29918,
1761,
353,
5159,
13,
1678,
363,
3064,
297,
14413,
29918,
3706,
29901,
13,
4706,
565,
7431,
29898,
3670,
3039,
29918,
3706,
29961,
3706,
2314,
6736,
16256,
29918,
3317,
29901,
13,
9651,
396,
9773,
263,
1051,
310,
11000,
29892,
937,
353,
12865,
310,
1369,
1473,
353,
1051,
310,
1098,
2548,
13,
9651,
396,
411,
278,
17140,
310,
278,
1051,
2534,
901,
2305,
3625,
13,
9651,
9773,
29918,
1761,
29889,
4397,
3552,
13441,
29918,
517,
29918,
12673,
29898,
1482,
29918,
303,
29892,
3064,
511,
14413,
29918,
3706,
29889,
657,
29898,
3706,
4961,
13,
9651,
16256,
29918,
3317,
353,
7431,
29898,
3670,
3039,
29918,
3706,
29961,
3706,
2314,
13,
13,
1678,
396,
736,
278,
18764,
287,
1051,
13,
1678,
736,
9773,
29918,
1761,
29961,
1057,
29899,
29896,
29962,
13,
13,
13,
29937,
3588,
263,
12865,
304,
6233,
560,
28170,
13,
1753,
3588,
29918,
517,
29918,
1195,
2667,
29898,
2230,
29892,
6257,
1125,
13,
1678,
560,
28170,
353,
931,
448,
6257,
13,
1678,
6233,
353,
938,
29898,
295,
28170,
29889,
7827,
29918,
23128,
580,
29914,
29953,
29900,
29897,
13,
1678,
736,
6233,
13,
13,
13,
29937,
3588,
6233,
304,
263,
12865,
491,
2805,
6257,
12865,
322,
5335,
287,
2554,
491,
6233,
13,
1753,
3588,
29918,
517,
29918,
12673,
29898,
2962,
292,
29892,
286,
1144,
1125,
13,
1678,
931,
353,
6257,
718,
5335,
287,
2554,
29898,
1195,
2667,
29922,
29885,
1144,
29897,
13,
1678,
736,
931,
2
] |
src/starter/models.py | rehive/django-starter | 2 | 149545 | from logging import getLogger
import datetime
from uuid import uuid4
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.utils.timezone import utc
logger = getLogger('django')
class Message(models.Model):
first_name = models.CharField(max_length=300, null=True, blank=True)
last_name = models.CharField(max_length=300, null=True, blank=True)
message = models.CharField(max_length=300, null=False, blank=False)
created = models.DateTimeField()
updated = models.DateTimeField()
def __str__(self):
return str(self.id)
def save(self, *args, **kwargs):
if not self.id: # On create
self.created = datetime.datetime.now(tz=utc)
self.updated = datetime.datetime.now(tz=utc)
return super(Message, self).save(*args, **kwargs)
| [
1,
515,
12183,
1053,
679,
16363,
13,
13,
5215,
12865,
13,
3166,
318,
5416,
1053,
318,
5416,
29946,
13,
13,
3166,
9557,
29889,
21570,
29889,
2490,
7201,
29889,
9621,
1053,
4663,
3073,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
13239,
29889,
2230,
8028,
1053,
3477,
29883,
13,
13,
21707,
353,
679,
16363,
877,
14095,
1495,
13,
13,
1990,
7777,
29898,
9794,
29889,
3195,
1125,
13,
1678,
937,
29918,
978,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29941,
29900,
29900,
29892,
1870,
29922,
5574,
29892,
9654,
29922,
5574,
29897,
13,
1678,
1833,
29918,
978,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29941,
29900,
29900,
29892,
1870,
29922,
5574,
29892,
9654,
29922,
5574,
29897,
13,
1678,
2643,
353,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29941,
29900,
29900,
29892,
1870,
29922,
8824,
29892,
9654,
29922,
8824,
29897,
13,
1678,
2825,
353,
4733,
29889,
11384,
3073,
580,
13,
1678,
4784,
353,
4733,
29889,
11384,
3073,
580,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
851,
29898,
1311,
29889,
333,
29897,
13,
13,
13,
1678,
822,
4078,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
565,
451,
1583,
29889,
333,
29901,
29871,
396,
1551,
1653,
13,
9651,
1583,
29889,
11600,
353,
12865,
29889,
12673,
29889,
3707,
29898,
17559,
29922,
329,
29883,
29897,
13,
13,
4706,
1583,
29889,
21402,
353,
12865,
29889,
12673,
29889,
3707,
29898,
17559,
29922,
329,
29883,
29897,
13,
4706,
736,
2428,
29898,
3728,
29892,
1583,
467,
7620,
10456,
5085,
29892,
3579,
19290,
29897,
13,
13,
13,
2
] |
app/home/views.py | 1IllI1/BBS_MIGRATE | 0 | 31423 | # coding:utf8
# 调用蓝图
from . import home
from flask import render_template, redirect, url_for, flash, session, request,current_app
from app.home.forms import RegistForm, LoginForm, UserdetailForm, PwdForm, CommentForm, PostForm
from app.models import User, UserLoginLog, Comment, Post,Col
from werkzeug.security import generate_password_hash
from werkzeug.utils import secure_filename
import uuid
from app import db
from app.home.email import send_mail
from functools import wraps
import time
import os
# 定义用户登录判断装饰器
def user_login_req(func):
@wraps(func)
def decorated_function(*args, **kwargs):
# session不存在时请求登录
if "user" not in session:
return redirect(url_for("home.user_login", next=request.url))
return func(*args, **kwargs)
return decorated_function
# html测试路由
@home.route('/usefortest/')
def ust():
return render_template('home/USERFORTEST.html')
# 首页路由
@home.route('/')
def index():
# posts = Post.query.all()
current_user_id = 0
current_user_name =""
if "user" in session:
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
page_index = request.args.get('page', 1, type=int)
query = Post.query.join(User).filter(User.id == Post.user_id).order_by(Post.addtime.desc())
pagination = query.paginate(page_index, per_page=10, error_out=False)
posts = pagination.items
return render_template('home/index.html', posts=posts, pagination=pagination,current_user_name=current_user_name,current_user_id=current_user_id)
#首页删除个人发布的内容
@home.route("/index/del/")
@user_login_req
def index_del():
#获取当前登录用户id
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
index_id = request.args.get("id", '0')
post = Post.query.get_or_404(int(index_id))
if post.user_id != current_user_id:
flash("删除不合法")
return redirect(url_for("home.index"))
db.session.delete(post)
db.session.commit()
flash("删除成功")
return redirect(url_for("home.index"))
#设置帖子关注
@home.route("/index/col/")
@user_login_req
def index_col():
#获取当前登录用户id
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
index_id = request.args.get("id", '0')
col_check = Col.query.filter_by(id=index_id).count()
if col_check == 0:
col=Col(
post_id=index_id,
user_id=current_user_id
)
db.session.add(col)
db.session.commit()
flash("收藏成功","ok")
flash("收藏已存在","err")
return redirect(url_for("home.index"))
#设置评论关注
@home.route("/play/col/")
@user_login_req
def play_col():
#获取当前登录用户id
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
index_id = request.args.get("id", '0')
col_check = Col.query.filter_by(id=index_id).count()
if col_check == 0:
col=Col(
comment_id=index_id,
user_id=current_user_id
)
db.session.add(col)
db.session.commit()
flash("收藏成功","ok")
flash("收藏已存在","err")
return redirect(url_for("home.index"))
#
# from io import BytesIO
# from . import verify_code
# @home.route('/code')
# def get_code():
# image, code = verify_code.get_verify_code()
# # 图片以二进制形式写入
# buf = BytesIO()
# image.save(buf, 'jpeg')
# buf_str = buf.getvalue()
# # 把buf_str作为response返回前端,并设置首部字段
# response = verify_code.make_response(buf_str)
# response.headers['Content-Type'] = 'image/gif'
# # 将验证码字符串储存在session中
# session['image'] = code
# return response
@home.route('/activate/<token>')
def activate(token):
#验证token 提取id
if User.check_active_token(token):
flash("账户已经激活")
return redirect(url_for("home.user_login"))
else:
flash("激活失败")
return redirect(url_for("home.index"))
# 登录路由
@home.route("/login/", methods=["POST", "GET"])
def user_login():
form = LoginForm()
if form.validate_on_submit():
data = form.data
user = User.query.filter_by(name=data["name"]).first()
print("登录按钮被点击")
# if session.get('image').lower() != form.verify_code.data.lower():
# flash('验证码错误')
# return render_template('home/user_login.html', form=form)
print("用户激活状态"+str(user.activate))
if user.activate:
if not user.check_pwd(data["pwd"]):
flash("用户名或密码错误!")
return redirect(url_for("home.user_login"))
session["user"] = data["name"]
#session["user_id"] = user.id
userloginlog = UserLoginLog(
user_id=user.id,
ip=request.remote_addr,
addtime=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
)
db.session.add(userloginlog)
db.session.commit()
return redirect(request.args.get('next') or url_for("home.index"))
else:
flash("用户尚未激活,请激活以后再登录")
return render_template('home/user_login.html', form=form)
# 登出路由
@home.route("/logout/")
@user_login_req
def logout():
session.pop("user")
return redirect(url_for("home.user_login"))
# 会员注册
@home.route("/register/", methods=['GET', "POST"])
def register():
form = RegistForm()
if form.validate_on_submit():
data = form.data
user = User(
name=data["name"],
email=data["email"],
phone=data["phone"],
pwd=generate_password_hash(data["pwd"]),
uuid=uuid.uuid4().hex,
addtime=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
)
print(user)
check = User.query.filter_by(name=data["name"]).count()
if check == 0:
db.session.add(user)
db.session.commit()
print("用户数据提交到数据库")
token = user.generate_active_token()
# 发送用户账户激活的邮件
send_mail(user.email, '激活您的账户', 'email/activate', username=user.name, token=token)
# 弹出消息 提示用户
flash("注册成功,请点击邮件中的链接完成激活",'ok')
return redirect(url_for("home.user_login"))
flash("用户名已存在","err")
return render_template('home/register.html', form=form)
# 修改文件名称
def change_filename(filename):
fileinfo = os.path.splitext(filename) # 对名字进行前后缀分离
#注意此处datetime.now()
filename = time.strftime("%Y%m%d%H%M%S") + "_" + fileinfo[-1] # 生成新文件名
return filename
# 用户中心
@home.route("/user/", methods=["GET", "POST"])
@user_login_req
def user():
form = UserdetailForm()
user = User.query.filter_by(name=(session["user"])).first()
if user.face is not None:
form.face.validators = []
if request.method == "GET":
form.name.data = user.name
form.email.data = user.email
form.phone.data = user.phone
form.info.data = user.info
if form.validate_on_submit():
print('button pressed')
data = form.data
# if data["name"] != user.name and name_count == 1:
# flash("用户名已被占用")
# return redirect(url_for("home.user"))
if request.method == 'POST':
if request.files['imageup']:
file = request.files['imageup']
print("获取文件成功")
filename = secure_filename(str(hash(file.filename)))+str(user.id)+".jpg"
print("secure成功"+filename)
del_face = user.face
file.save(os.path.join(current_app.config['UP_DIR']+os.sep+"users",filename))
print("上传成功" + filename)
#os.remove(os.path.join(app.config['UP_DIR'] + os.sep+"users", del_face))
print("删除文件"+del_face+"成功")
user.face = filename
user.name=data["name"]
user.email=data["email"]
user.phone=data["phone"]
user.info=data["info"]
db.session.add(user)
db.session.commit()
flash("修改成功!")
return redirect(url_for("home.user"))
flash("失败")
return render_template('home/user.html', form=form, user=user)
@home.route("/pwd/", methods=["GET", "POST"])
@user_login_req
def pwd():
form = PwdForm()
if form.validate_on_submit():
data = form.data
user = User.query.filter_by(name=session["user"]).first()
user.pwd = <PASSWORD>_password_hash(data["new_pwd"])
db.session.add(user)
db.session.commit()
flash("修改密码成功,请重新登录!", "ok")
return redirect(url_for("home.logout"))
return render_template('home/pwd.html', form=form)
# 会员中心评论列表 评论功能在paly路由中
@home.route("/comments/")
@user_login_req
def comments():
user_name = session["user"]
user = User.query.filter_by(name=user_name).first()
page = request.args.get('page', 1, type=int)
# query = Comment.query.order_by(Comment.addtime.desc())
query = Comment.query.filter(Comment.user_id == user.id).order_by(Comment.addtime.desc())
pagination = query.paginate(page, per_page=10, error_out=False)
comments = pagination.items
return render_template('home/comments.html', user=user,user_name=user_name, comments=comments,pagination=pagination)
@home.route("/comments/del/")
@user_login_req
def comment_del():
comment_id = request.args.get("id", '')
comment = Comment.query.get_or_404(int(comment_id))
db.session.delete(comment)
db.session.commit()
flash("评论删除成功")
return redirect(url_for("home.comments"))
@home.route("/postrecords/")
@user_login_req
def postrecords():
user_name = session["user"]
user = User.query.filter_by(name=user_name).first()
user_id = user.id
user = User.query.filter_by(id=user_id).first()
page = request.args.get('page', 1, type=int)
# query = Comment.query.order_by(Comment.addtime.desc())
query = Post.query.filter(Post.user_id == user_id).order_by(Post.addtime.desc())
pagination = query.paginate(page, per_page=5, error_out=False)
posts = pagination.items
return render_template('home/post_records.html', user=user,user_name=user_name, posts=posts, pagination=pagination)
@home.route("/postrecords/del/")
@user_login_req
def post_del():
post_id = request.args.get("id", '')
post = Post.query.get_or_404(int(post_id))
comment = Comment.query.filter_by(post_id=post_id).all()
db.session.delete(post)
db.session.commit()
db.session.delete(comment)
db.session.commit()
flash("主题帖删除成功")
return redirect(url_for("home.postrecords"))
@home.route("/loginlog/", methods=["POST", "GET"])
@user_login_req
def loginlog():
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
user_login_log = UserLoginLog.query.filter_by(
user_id=user.id
).order_by(
UserLoginLog.addtime.desc()
# 此处限制了查寻到的登录日志为前15条
).limit(15).all()
return render_template("home/loginlog.html", user_login_log=user_login_log)
@home.route("/col/del/")
@user_login_req
def col_del():
current_user_name = session["user"]
user= User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
col_id = request.args.get("id", '')
col = Col.query.get_or_404(int(col_id))
if col.user_id != current_user_id:
flash("收藏删除不合法")
return redirect(url_for("home.col"))
db.session.delete(col)
db.session.commit()
flash("收藏删除成功")
return redirect(url_for("home.col"))
##会员中心收藏列表
@home.route("/col/")
@user_login_req
def col():
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
user_id = user.id
# 获取当前分页页面编号(编号,默认值,类型)
page = request.args.get('page', 1, type=int)
# 从数据库中查找对应用户的收藏
#query =Col.query.filter_by(user_id =user_id).order_by(Col.addtime.desc())
query = Col.query.join(Post).join(User).filter(Col.user_id==user_id,Col.post_id == Col.post_id).order_by(Col.addtime.desc())
# 对当前贴的评论进行分页(分页号,每页展示的数量,error)
pagination = query.paginate(page, per_page=5, error_out=False)
# 获得分页后当前页显示的评论
cols = pagination.items
# 渲染主题帖展示页面
print(query)
return render_template('home/col.html',cols=cols,pagination=pagination)
@home.route("/index/")
def reindex(): # z此处index重复
return redirect(url_for("home.index"))
@home.route('/animation/')
def animation():
data = {'sgd.jpg', 'sutstudent.jpg', 'sutsight01.jpg', 'sutsight02.jpg', 'hxxy.jpg'}
return render_template('home/animation.html', data=data)
@home.route('/search/')
def search():
current_user_id = 0
current_user_name = ""
if "user" in session:
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
# 获取查询的内容
# search=request.args.get("search",'',type=str)
search = request.args.get("search", "搜索结果为空")
# print("搜索的的内容"+search)
# 获取当前分页页面编号(编号,默认值,类型)
page = request.args.get('page', 1, type=int)
# 从数据库中查找对应当前主题贴的评论
query = Post.query.filter(Post.title.ilike('%' + search + '%')).order_by(Post.addtime.desc())
# 对当前主题帖的评论数量进行统计
post_count = Post.query.filter(Post.title.ilike('%' + search + '%')).count()
# 对当前贴的评论进行分页(分页号,每页展示的数量,error)
pagination = query.paginate(page, per_page=5, error_out=False)
# 获得分页后当前页显示的评论
comments = pagination.items
# 渲染主题帖展示页面
return render_template("home/search.html", search=search, count=post_count, current_user_name=current_user_name,pagination=pagination, results=comments,current_user_id=current_user_id)
# 主题帖详情页
@home.route('/play/', methods=["GET", "POST"])
def play():
# 从请求参数拿到请求的post_id
post_id = request.args.get("post_id", "")
# 评论表单
form = CommentForm()
# 清除表单内容
form.data['content'] = ""
# 利用post_id找到要显示的主题贴
post = Post.query.filter(Post.id == post_id).first()
# 利用post_id在User表中查找作者姓名
author = User.query.filter(User.id == post.user_id).first()
# 从session中取得当前登陆中的用户名
current_user_id = 0
current_user_name = '游客'
if "user" in session:
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
# 若用户登录则显示评论发布表单
if "user" in session and form.validate_on_submit():
comment = Comment(
content=form.data["content"],
post_id=int(post_id),
user_id=current_user_id,
addtime=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
)
db.session.add(comment)
db.session.commit()
flash("评论提交成功!")
# 获取当前分页页面编号(编号,默认值,类型)
page = request.args.get('page', 1, type=int)
# 从数据库中查找对应当前主题贴的评论
query = Comment.query.join(User).filter(Comment.post_id == post_id).order_by(Comment.addtime.desc())
# 对当前主题帖的评论数量进行统计
comment_count = Comment.query.filter(Comment.post_id == post_id).count()
# 对当前贴的评论进行分页(分页号,每页展示的数量,error)
pagination = query.paginate(page, per_page=5, error_out=False)
# 获得分页后当前页显示的评论
comments = pagination.items
# 渲染主题帖展示页面
return render_template("home/play.html", post=post, form=form, comments=comments,
pagination=pagination, author=author,current_user_name=current_user_name, count=comment_count,current_user_id=current_user_id)
@home.route('/post/', methods=["GET", "POST"])
@user_login_req
def post():
form = PostForm()
current_user_name = session["user"]
user = User.query.filter_by(name=current_user_name).first()
current_user_id = user.id
if form.validate_on_submit():
data = form.data
post = Post(
title=data["title"],
content=data["content"],
user_id=current_user_id,
addtime=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
)
db.session.add(post)
db.session.commit()
flash("发布主题帖成功")
return render_template("home/post_add.html", form=form,current_user_name=current_user_name)
#404
@home.errorhandler(404)
def page_not_found(error):
return render_template("home/404.html"),404 | [
1,
396,
14137,
29901,
9420,
29947,
13,
29937,
29871,
31268,
30406,
235,
150,
160,
30861,
13,
3166,
869,
1053,
3271,
13,
3166,
29784,
1053,
4050,
29918,
6886,
29892,
6684,
29892,
3142,
29918,
1454,
29892,
11013,
29892,
4867,
29892,
2009,
29892,
3784,
29918,
932,
13,
3166,
623,
29889,
5184,
29889,
9514,
1053,
2169,
391,
2500,
29892,
19130,
2500,
29892,
4911,
16432,
2500,
29892,
349,
9970,
2500,
29892,
461,
2500,
29892,
4918,
2500,
13,
3166,
623,
29889,
9794,
1053,
4911,
29892,
4911,
11049,
3403,
29892,
461,
29892,
4918,
29892,
1625,
13,
3166,
23085,
13289,
29889,
8926,
1053,
5706,
29918,
5630,
29918,
8568,
13,
3166,
23085,
13289,
29889,
13239,
1053,
11592,
29918,
9507,
13,
5215,
318,
5416,
13,
3166,
623,
1053,
4833,
13,
3166,
623,
29889,
5184,
29889,
5269,
1053,
3638,
29918,
2549,
13,
3166,
2090,
312,
8789,
1053,
11463,
567,
13,
5215,
931,
13,
5215,
2897,
13,
13,
13,
29937,
29871,
30495,
31349,
30406,
31229,
31451,
31283,
31791,
31683,
31905,
236,
168,
179,
30943,
13,
1753,
1404,
29918,
7507,
29918,
7971,
29898,
9891,
1125,
13,
1678,
732,
29893,
336,
567,
29898,
9891,
29897,
13,
1678,
822,
10200,
630,
29918,
2220,
10456,
5085,
29892,
3579,
19290,
1125,
13,
4706,
396,
4867,
30413,
30946,
30505,
30594,
31088,
31376,
31451,
31283,
13,
4706,
565,
376,
1792,
29908,
451,
297,
4867,
29901,
13,
9651,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1792,
29918,
7507,
613,
2446,
29922,
3827,
29889,
2271,
876,
13,
4706,
736,
3653,
10456,
5085,
29892,
3579,
19290,
29897,
13,
13,
1678,
736,
10200,
630,
29918,
2220,
13,
13,
13,
29937,
3472,
31851,
31787,
30874,
31272,
13,
29992,
5184,
29889,
13134,
11219,
1509,
3921,
342,
29914,
1495,
13,
1753,
318,
303,
7295,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
11889,
22051,
18267,
29889,
1420,
1495,
13,
13,
13,
29937,
29871,
31688,
31610,
30874,
31272,
13,
29992,
5184,
29889,
13134,
11219,
1495,
13,
1753,
2380,
7295,
13,
1678,
396,
11803,
353,
4918,
29889,
1972,
29889,
497,
580,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
29871,
29900,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
15945,
13,
1678,
565,
376,
1792,
29908,
297,
4867,
29901,
13,
539,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
539,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
539,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
1813,
29918,
2248,
353,
2009,
29889,
5085,
29889,
657,
877,
3488,
742,
29871,
29896,
29892,
1134,
29922,
524,
29897,
13,
1678,
2346,
353,
4918,
29889,
1972,
29889,
7122,
29898,
2659,
467,
4572,
29898,
2659,
29889,
333,
1275,
4918,
29889,
1792,
29918,
333,
467,
2098,
29918,
1609,
29898,
6747,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
10203,
3381,
353,
2346,
29889,
13573,
16976,
29898,
3488,
29918,
2248,
29892,
639,
29918,
3488,
29922,
29896,
29900,
29892,
1059,
29918,
449,
29922,
8824,
29897,
13,
1678,
11803,
353,
10203,
3381,
29889,
7076,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
2248,
29889,
1420,
742,
11803,
29922,
14080,
29892,
10203,
3381,
29922,
13573,
3381,
29892,
3784,
29918,
1792,
29918,
978,
29922,
3784,
29918,
1792,
29918,
978,
29892,
3784,
29918,
1792,
29918,
333,
29922,
3784,
29918,
1792,
29918,
333,
29897,
13,
29937,
31688,
31610,
31916,
31152,
30502,
30313,
30910,
31454,
30210,
30728,
31294,
13,
29992,
5184,
29889,
13134,
11974,
2248,
29914,
6144,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
2380,
29918,
6144,
7295,
13,
1678,
396,
31024,
30683,
30948,
30658,
31451,
31283,
30406,
31229,
333,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
2380,
29918,
333,
353,
2009,
29889,
5085,
29889,
657,
703,
333,
613,
525,
29900,
1495,
13,
1678,
1400,
353,
4918,
29889,
1972,
29889,
657,
29918,
272,
29918,
29946,
29900,
29946,
29898,
524,
29898,
2248,
29918,
333,
876,
13,
1678,
565,
1400,
29889,
1792,
29918,
333,
2804,
1857,
29918,
1792,
29918,
333,
29901,
13,
4706,
11013,
703,
31916,
31152,
30413,
30733,
30545,
1159,
13,
4706,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
2248,
5783,
13,
1678,
4833,
29889,
7924,
29889,
8143,
29898,
2490,
29897,
13,
1678,
4833,
29889,
7924,
29889,
15060,
580,
13,
1678,
11013,
703,
31916,
31152,
30494,
31134,
1159,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
2248,
5783,
13,
13,
13,
29937,
30872,
30669,
232,
187,
153,
30319,
31057,
31368,
13,
29992,
5184,
29889,
13134,
11974,
2248,
29914,
1054,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
2380,
29918,
1054,
7295,
13,
1678,
396,
31024,
30683,
30948,
30658,
31451,
31283,
30406,
31229,
333,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
2380,
29918,
333,
353,
2009,
29889,
5085,
29889,
657,
703,
333,
613,
525,
29900,
1495,
13,
1678,
784,
29918,
3198,
353,
1530,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
333,
29922,
2248,
29918,
333,
467,
2798,
580,
13,
1678,
565,
784,
29918,
3198,
1275,
29871,
29900,
29901,
13,
4706,
784,
29922,
1625,
29898,
13,
9651,
1400,
29918,
333,
29922,
2248,
29918,
333,
29892,
13,
9651,
1404,
29918,
333,
29922,
3784,
29918,
1792,
29918,
333,
13,
4706,
1723,
13,
4706,
4833,
29889,
7924,
29889,
1202,
29898,
1054,
29897,
13,
4706,
4833,
29889,
7924,
29889,
15060,
580,
13,
4706,
11013,
703,
31997,
31707,
30494,
31134,
3284,
554,
1159,
13,
1678,
11013,
703,
31997,
31707,
31290,
30946,
30505,
3284,
3127,
1159,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
2248,
5783,
13,
13,
13,
29937,
30872,
30669,
235,
178,
135,
235,
177,
189,
31057,
31368,
13,
29992,
5184,
29889,
13134,
11974,
1456,
29914,
1054,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
1708,
29918,
1054,
7295,
13,
1678,
396,
31024,
30683,
30948,
30658,
31451,
31283,
30406,
31229,
333,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
2380,
29918,
333,
353,
2009,
29889,
5085,
29889,
657,
703,
333,
613,
525,
29900,
1495,
13,
1678,
784,
29918,
3198,
353,
1530,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
333,
29922,
2248,
29918,
333,
467,
2798,
580,
13,
1678,
565,
784,
29918,
3198,
1275,
29871,
29900,
29901,
13,
4706,
784,
29922,
1625,
29898,
13,
9651,
3440,
29918,
333,
29922,
2248,
29918,
333,
29892,
13,
9651,
1404,
29918,
333,
29922,
3784,
29918,
1792,
29918,
333,
13,
4706,
1723,
13,
4706,
4833,
29889,
7924,
29889,
1202,
29898,
1054,
29897,
13,
4706,
4833,
29889,
7924,
29889,
15060,
580,
13,
4706,
11013,
703,
31997,
31707,
30494,
31134,
3284,
554,
1159,
13,
1678,
11013,
703,
31997,
31707,
31290,
30946,
30505,
3284,
3127,
1159,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
2248,
5783,
13,
13,
13,
29937,
13,
29937,
515,
12013,
1053,
2648,
2167,
5971,
13,
29937,
515,
869,
1053,
11539,
29918,
401,
13,
29937,
732,
5184,
29889,
13134,
11219,
401,
1495,
13,
29937,
822,
679,
29918,
401,
7295,
13,
29937,
268,
1967,
29892,
775,
353,
11539,
29918,
401,
29889,
657,
29918,
27902,
29918,
401,
580,
13,
29937,
268,
396,
29871,
30861,
31122,
30651,
30685,
31174,
31072,
31305,
30607,
31479,
30752,
13,
29937,
268,
18392,
353,
2648,
2167,
5971,
580,
13,
29937,
268,
1967,
29889,
7620,
29898,
9721,
29892,
525,
26568,
1495,
13,
29937,
268,
18392,
29918,
710,
353,
18392,
29889,
657,
1767,
580,
13,
29937,
268,
396,
29871,
233,
141,
141,
9721,
29918,
710,
30732,
30573,
5327,
31086,
30742,
30658,
234,
174,
178,
30214,
31666,
30872,
30669,
31688,
30636,
30578,
31559,
13,
29937,
268,
2933,
353,
11539,
29918,
401,
29889,
5675,
29918,
5327,
29898,
9721,
29918,
710,
29897,
13,
29937,
268,
2933,
29889,
13662,
1839,
3916,
29899,
1542,
2033,
353,
525,
3027,
29914,
18660,
29915,
13,
29937,
268,
396,
29871,
30998,
236,
173,
143,
235,
178,
132,
31183,
30578,
31277,
31767,
232,
133,
171,
30946,
30505,
7924,
30275,
13,
29937,
268,
4867,
1839,
3027,
2033,
353,
775,
13,
29937,
268,
736,
2933,
13,
13,
29992,
5184,
29889,
13134,
11219,
11236,
403,
29914,
29966,
6979,
29958,
1495,
13,
1753,
5039,
403,
29898,
6979,
1125,
13,
1678,
396,
236,
173,
143,
235,
178,
132,
6979,
29871,
31302,
30683,
333,
13,
1678,
565,
4911,
29889,
3198,
29918,
4925,
29918,
6979,
29898,
6979,
1125,
13,
4706,
11013,
703,
235,
183,
169,
31229,
31290,
31412,
233,
194,
131,
31704,
1159,
13,
4706,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1792,
29918,
7507,
5783,
13,
1678,
1683,
29901,
13,
4706,
11013,
703,
233,
194,
131,
31704,
31369,
31955,
1159,
13,
4706,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
2248,
5783,
13,
13,
29937,
29871,
31451,
31283,
30874,
31272,
13,
29992,
5184,
29889,
13134,
11974,
7507,
29914,
613,
3519,
29922,
3366,
5438,
613,
376,
7194,
20068,
13,
1753,
1404,
29918,
7507,
7295,
13,
1678,
883,
353,
19130,
2500,
580,
13,
1678,
565,
883,
29889,
15480,
29918,
265,
29918,
7892,
7295,
13,
4706,
848,
353,
883,
29889,
1272,
13,
4706,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
1272,
3366,
978,
3108,
467,
4102,
580,
13,
4706,
1596,
703,
31451,
31283,
31590,
236,
149,
177,
31407,
30940,
31768,
1159,
13,
4706,
396,
565,
4867,
29889,
657,
877,
3027,
2824,
13609,
580,
2804,
883,
29889,
27902,
29918,
401,
29889,
1272,
29889,
13609,
7295,
13,
4706,
396,
268,
11013,
877,
236,
173,
143,
235,
178,
132,
31183,
31745,
235,
178,
178,
1495,
13,
4706,
396,
268,
736,
4050,
29918,
6886,
877,
5184,
29914,
1792,
29918,
7507,
29889,
1420,
742,
883,
29922,
689,
29897,
13,
4706,
1596,
703,
30406,
31229,
233,
194,
131,
31704,
31531,
31613,
17969,
710,
29898,
1792,
29889,
11236,
403,
876,
13,
4706,
565,
29871,
1404,
29889,
11236,
403,
29901,
13,
9651,
565,
451,
1404,
29889,
3198,
29918,
29886,
9970,
29898,
1272,
3366,
29886,
9970,
3108,
1125,
13,
18884,
11013,
703,
30406,
31229,
30548,
31391,
31461,
31183,
31745,
235,
178,
178,
30584,
1159,
13,
18884,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1792,
29918,
7507,
5783,
13,
9651,
4867,
3366,
1792,
3108,
353,
848,
3366,
978,
3108,
13,
9651,
396,
7924,
3366,
1792,
29918,
333,
3108,
353,
1404,
29889,
333,
13,
9651,
1404,
7507,
1188,
353,
4911,
11049,
3403,
29898,
13,
9651,
1404,
29918,
333,
29922,
1792,
29889,
333,
29892,
13,
9651,
10377,
29922,
3827,
29889,
16674,
29918,
10030,
29892,
13,
9651,
788,
2230,
29922,
2230,
29889,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
1273,
29950,
16664,
29924,
16664,
29903,
613,
931,
29889,
2997,
2230,
3101,
13,
9651,
1723,
13,
9651,
4833,
29889,
7924,
29889,
1202,
29898,
1792,
7507,
1188,
29897,
13,
9651,
4833,
29889,
7924,
29889,
15060,
580,
13,
9651,
736,
6684,
29898,
3827,
29889,
5085,
29889,
657,
877,
4622,
1495,
470,
3142,
29918,
1454,
703,
5184,
29889,
2248,
5783,
13,
4706,
1683,
29901,
13,
9651,
11013,
703,
30406,
31229,
232,
179,
157,
31295,
233,
194,
131,
31704,
29892,
31088,
233,
194,
131,
31704,
30651,
30822,
31733,
31451,
31283,
1159,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
1792,
29918,
7507,
29889,
1420,
742,
883,
29922,
689,
29897,
13,
13,
13,
29937,
29871,
31451,
30544,
30874,
31272,
13,
29992,
5184,
29889,
13134,
11974,
1188,
449,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
1480,
449,
7295,
13,
1678,
4867,
29889,
7323,
703,
1792,
1159,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1792,
29918,
7507,
5783,
13,
13,
13,
29937,
29871,
30437,
31911,
31368,
232,
137,
143,
13,
29992,
5184,
29889,
13134,
11974,
9573,
29914,
613,
3519,
29922,
1839,
7194,
742,
376,
5438,
20068,
13,
1753,
6036,
7295,
13,
1678,
883,
353,
2169,
391,
2500,
580,
13,
1678,
565,
883,
29889,
15480,
29918,
265,
29918,
7892,
7295,
13,
4706,
848,
353,
883,
29889,
1272,
13,
4706,
1404,
353,
4911,
29898,
13,
9651,
1024,
29922,
1272,
3366,
978,
12436,
13,
9651,
4876,
29922,
1272,
3366,
5269,
12436,
13,
9651,
9008,
29922,
1272,
3366,
6710,
12436,
13,
9651,
282,
9970,
29922,
17158,
29918,
5630,
29918,
8568,
29898,
1272,
3366,
29886,
9970,
3108,
511,
13,
9651,
318,
5416,
29922,
25118,
29889,
25118,
29946,
2141,
20970,
29892,
13,
9651,
788,
2230,
29922,
2230,
29889,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
1273,
29950,
16664,
29924,
16664,
29903,
613,
931,
29889,
2997,
2230,
3101,
13,
4706,
1723,
13,
4706,
1596,
29898,
1792,
29897,
13,
4706,
1423,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
1272,
3366,
978,
3108,
467,
2798,
580,
13,
4706,
565,
1423,
1275,
29871,
29900,
29901,
13,
9651,
4833,
29889,
7924,
29889,
1202,
29898,
1792,
29897,
13,
9651,
4833,
29889,
7924,
29889,
15060,
580,
13,
9651,
1596,
703,
30406,
31229,
30354,
30763,
31302,
31398,
30780,
30354,
30763,
31700,
1159,
13,
9651,
5993,
353,
1404,
29889,
17158,
29918,
4925,
29918,
6979,
580,
13,
9651,
396,
29871,
30910,
31545,
30406,
31229,
235,
183,
169,
31229,
233,
194,
131,
31704,
30210,
236,
133,
177,
30631,
13,
9651,
3638,
29918,
2549,
29898,
1792,
29889,
5269,
29892,
525,
233,
194,
131,
31704,
233,
133,
171,
30210,
235,
183,
169,
31229,
742,
525,
5269,
29914,
11236,
403,
742,
8952,
29922,
1792,
29889,
978,
29892,
5993,
29922,
6979,
29897,
13,
9651,
396,
29871,
232,
191,
188,
30544,
31276,
31021,
29871,
31302,
30858,
30406,
31229,
13,
9651,
11013,
703,
31368,
232,
137,
143,
30494,
31134,
30214,
31088,
30940,
31768,
236,
133,
177,
30631,
30275,
30210,
236,
150,
193,
31092,
31366,
30494,
233,
194,
131,
31704,
613,
29915,
554,
1495,
13,
9651,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1792,
29918,
7507,
5783,
13,
4706,
11013,
703,
30406,
31229,
30548,
31290,
30946,
30505,
3284,
3127,
1159,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
9573,
29889,
1420,
742,
883,
29922,
689,
29897,
13,
13,
29937,
29871,
31273,
31264,
30333,
30631,
30548,
31685,
13,
1753,
1735,
29918,
9507,
29898,
9507,
1125,
13,
1678,
934,
3888,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
9507,
29897,
29871,
396,
29871,
30783,
30548,
30578,
31174,
30448,
30658,
30822,
234,
191,
131,
30748,
234,
169,
190,
13,
1678,
396,
31368,
31474,
31389,
31548,
12673,
29889,
3707,
580,
13,
1678,
10422,
353,
931,
29889,
710,
615,
603,
11702,
29979,
29995,
29885,
29995,
29881,
29995,
29950,
29995,
29924,
29995,
29903,
1159,
718,
11119,
29908,
29871,
718,
934,
3888,
14352,
29896,
29962,
29871,
396,
29871,
30486,
30494,
30374,
30333,
30631,
30548,
13,
1678,
736,
10422,
13,
13,
29937,
29871,
30406,
31229,
30275,
30869,
13,
29992,
5184,
29889,
13134,
11974,
1792,
29914,
613,
3519,
29922,
3366,
7194,
613,
376,
5438,
20068,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
1404,
7295,
13,
1678,
883,
353,
4911,
16432,
2500,
580,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
7607,
7924,
3366,
1792,
20068,
467,
4102,
580,
13,
1678,
565,
1404,
29889,
2161,
338,
451,
6213,
29901,
13,
4706,
883,
29889,
2161,
29889,
3084,
4097,
353,
5159,
13,
1678,
565,
2009,
29889,
5696,
1275,
376,
7194,
1115,
13,
4706,
883,
29889,
978,
29889,
1272,
353,
1404,
29889,
978,
13,
4706,
883,
29889,
5269,
29889,
1272,
353,
1404,
29889,
5269,
13,
4706,
883,
29889,
6710,
29889,
1272,
353,
1404,
29889,
6710,
13,
4706,
883,
29889,
3888,
29889,
1272,
353,
1404,
29889,
3888,
13,
1678,
565,
883,
29889,
15480,
29918,
265,
29918,
7892,
7295,
13,
4706,
1596,
877,
3092,
15385,
1495,
13,
4706,
848,
353,
883,
29889,
1272,
13,
4706,
396,
565,
848,
3366,
978,
3108,
2804,
1404,
29889,
978,
322,
1024,
29918,
2798,
1275,
29871,
29896,
29901,
13,
4706,
396,
268,
11013,
703,
30406,
31229,
30548,
31290,
31407,
232,
144,
163,
30406,
1159,
13,
4706,
396,
268,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1792,
5783,
13,
4706,
565,
2009,
29889,
5696,
1275,
525,
5438,
2396,
13,
9651,
565,
2009,
29889,
5325,
1839,
3027,
786,
2033,
29901,
13,
18884,
934,
353,
2009,
29889,
5325,
1839,
3027,
786,
2033,
13,
18884,
1596,
703,
31024,
30683,
30333,
30631,
30494,
31134,
1159,
13,
18884,
10422,
353,
11592,
29918,
9507,
29898,
710,
29898,
8568,
29898,
1445,
29889,
9507,
4961,
29974,
710,
29898,
1792,
29889,
333,
7240,
1642,
6173,
29908,
13,
18884,
1596,
703,
24216,
30494,
31134,
17969,
9507,
29897,
13,
18884,
628,
29918,
2161,
353,
1404,
29889,
2161,
13,
18884,
934,
29889,
7620,
29898,
359,
29889,
2084,
29889,
7122,
29898,
3784,
29918,
932,
29889,
2917,
1839,
4897,
29918,
9464,
2033,
29974,
359,
29889,
19570,
13578,
7193,
613,
9507,
876,
13,
18884,
1596,
703,
30429,
31471,
30494,
31134,
29908,
718,
10422,
29897,
13,
18884,
396,
359,
29889,
5992,
29898,
359,
29889,
2084,
29889,
7122,
29898,
932,
29889,
2917,
1839,
4897,
29918,
9464,
2033,
29871,
718,
2897,
29889,
19570,
13578,
7193,
613,
628,
29918,
2161,
876,
13,
18884,
1596,
703,
31916,
31152,
30333,
30631,
17969,
6144,
29918,
2161,
13578,
30494,
31134,
1159,
13,
18884,
1404,
29889,
2161,
353,
10422,
13,
4706,
1404,
29889,
978,
29922,
1272,
3366,
978,
3108,
13,
4706,
1404,
29889,
5269,
29922,
1272,
3366,
5269,
3108,
13,
4706,
1404,
29889,
6710,
29922,
1272,
3366,
6710,
3108,
13,
4706,
1404,
29889,
3888,
29922,
1272,
3366,
3888,
3108,
13,
4706,
4833,
29889,
7924,
29889,
1202,
29898,
1792,
29897,
13,
4706,
4833,
29889,
7924,
29889,
15060,
580,
13,
4706,
11013,
703,
31273,
31264,
30494,
31134,
30584,
1159,
13,
4706,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1792,
5783,
13,
1678,
11013,
703,
31369,
31955,
1159,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
1792,
29889,
1420,
742,
883,
29922,
689,
29892,
1404,
29922,
1792,
29897,
13,
13,
13,
29992,
5184,
29889,
13134,
11974,
29886,
9970,
29914,
613,
3519,
29922,
3366,
7194,
613,
376,
5438,
20068,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
282,
9970,
7295,
13,
1678,
883,
353,
349,
9970,
2500,
580,
13,
1678,
565,
883,
29889,
15480,
29918,
265,
29918,
7892,
7295,
13,
4706,
848,
353,
883,
29889,
1272,
13,
4706,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
7924,
3366,
1792,
3108,
467,
4102,
580,
13,
4706,
1404,
29889,
29886,
9970,
353,
529,
25711,
17013,
29958,
29918,
5630,
29918,
8568,
29898,
1272,
3366,
1482,
29918,
29886,
9970,
20068,
13,
4706,
4833,
29889,
7924,
29889,
1202,
29898,
1792,
29897,
13,
4706,
4833,
29889,
7924,
29889,
15060,
580,
13,
4706,
11013,
703,
31273,
31264,
31461,
31183,
30494,
31134,
30214,
31088,
30908,
30374,
31451,
31283,
30584,
613,
376,
554,
1159,
13,
4706,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1188,
449,
5783,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
29886,
9970,
29889,
1420,
742,
883,
29922,
689,
29897,
13,
13,
13,
29937,
29871,
30437,
31911,
30275,
30869,
235,
178,
135,
235,
177,
189,
31025,
30746,
29871,
235,
178,
135,
235,
177,
189,
31134,
30815,
30505,
7830,
29891,
30874,
31272,
30275,
13,
29992,
5184,
29889,
13134,
11974,
21032,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
6589,
7295,
13,
1678,
1404,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1813,
353,
2009,
29889,
5085,
29889,
657,
877,
3488,
742,
29871,
29896,
29892,
1134,
29922,
524,
29897,
13,
1678,
396,
2346,
353,
461,
29889,
1972,
29889,
2098,
29918,
1609,
29898,
20001,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
2346,
353,
461,
29889,
1972,
29889,
4572,
29898,
20001,
29889,
1792,
29918,
333,
1275,
1404,
29889,
333,
467,
2098,
29918,
1609,
29898,
20001,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
10203,
3381,
353,
2346,
29889,
13573,
16976,
29898,
3488,
29892,
639,
29918,
3488,
29922,
29896,
29900,
29892,
1059,
29918,
449,
29922,
8824,
29897,
13,
1678,
6589,
353,
10203,
3381,
29889,
7076,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
21032,
29889,
1420,
742,
1404,
29922,
1792,
29892,
1792,
29918,
978,
29922,
1792,
29918,
978,
29892,
6589,
29922,
21032,
29892,
13573,
3381,
29922,
13573,
3381,
29897,
13,
13,
13,
29992,
5184,
29889,
13134,
11974,
21032,
29914,
6144,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
3440,
29918,
6144,
7295,
13,
1678,
3440,
29918,
333,
353,
2009,
29889,
5085,
29889,
657,
703,
333,
613,
27255,
13,
1678,
3440,
353,
461,
29889,
1972,
29889,
657,
29918,
272,
29918,
29946,
29900,
29946,
29898,
524,
29898,
9342,
29918,
333,
876,
13,
1678,
4833,
29889,
7924,
29889,
8143,
29898,
9342,
29897,
13,
1678,
4833,
29889,
7924,
29889,
15060,
580,
13,
1678,
11013,
703,
235,
178,
135,
235,
177,
189,
31916,
31152,
30494,
31134,
1159,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
21032,
5783,
13,
13,
13,
29992,
5184,
29889,
13134,
11974,
2490,
3757,
4339,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
1400,
3757,
4339,
7295,
13,
1678,
1404,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1404,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
333,
29922,
1792,
29918,
333,
467,
4102,
580,
13,
1678,
1813,
353,
2009,
29889,
5085,
29889,
657,
877,
3488,
742,
29871,
29896,
29892,
1134,
29922,
524,
29897,
13,
1678,
396,
2346,
353,
461,
29889,
1972,
29889,
2098,
29918,
1609,
29898,
20001,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
2346,
353,
4918,
29889,
1972,
29889,
4572,
29898,
6747,
29889,
1792,
29918,
333,
1275,
1404,
29918,
333,
467,
2098,
29918,
1609,
29898,
6747,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
10203,
3381,
353,
2346,
29889,
13573,
16976,
29898,
3488,
29892,
639,
29918,
3488,
29922,
29945,
29892,
1059,
29918,
449,
29922,
8824,
29897,
13,
1678,
11803,
353,
10203,
3381,
29889,
7076,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
2490,
29918,
3757,
4339,
29889,
1420,
742,
1404,
29922,
1792,
29892,
1792,
29918,
978,
29922,
1792,
29918,
978,
29892,
11803,
29922,
14080,
29892,
10203,
3381,
29922,
13573,
3381,
29897,
13,
13,
29992,
5184,
29889,
13134,
11974,
2490,
3757,
4339,
29914,
6144,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
1400,
29918,
6144,
7295,
13,
1678,
1400,
29918,
333,
353,
2009,
29889,
5085,
29889,
657,
703,
333,
613,
27255,
13,
1678,
1400,
353,
4918,
29889,
1972,
29889,
657,
29918,
272,
29918,
29946,
29900,
29946,
29898,
524,
29898,
2490,
29918,
333,
876,
13,
1678,
3440,
353,
461,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
2490,
29918,
333,
29922,
2490,
29918,
333,
467,
497,
580,
13,
13,
1678,
4833,
29889,
7924,
29889,
8143,
29898,
2490,
29897,
13,
1678,
4833,
29889,
7924,
29889,
15060,
580,
13,
1678,
4833,
29889,
7924,
29889,
8143,
29898,
9342,
29897,
13,
1678,
4833,
29889,
7924,
29889,
15060,
580,
13,
1678,
11013,
703,
30888,
31596,
232,
187,
153,
31916,
31152,
30494,
31134,
1159,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
2490,
3757,
4339,
5783,
13,
13,
13,
29992,
5184,
29889,
13134,
11974,
7507,
1188,
29914,
613,
3519,
29922,
3366,
5438,
613,
376,
7194,
20068,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
6464,
1188,
7295,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1404,
29918,
7507,
29918,
1188,
353,
4911,
11049,
3403,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
13,
4706,
1404,
29918,
333,
29922,
1792,
29889,
333,
13,
13,
1678,
13742,
2098,
29918,
1609,
29898,
13,
4706,
4911,
11049,
3403,
29889,
1202,
2230,
29889,
14273,
580,
13,
4706,
396,
29871,
31389,
31548,
31175,
31072,
30743,
31213,
232,
178,
190,
30780,
30210,
31451,
31283,
30325,
31096,
30573,
30658,
29896,
29945,
31217,
13,
1678,
13742,
13400,
29898,
29896,
29945,
467,
497,
580,
13,
1678,
736,
4050,
29918,
6886,
703,
5184,
29914,
7507,
1188,
29889,
1420,
613,
1404,
29918,
7507,
29918,
1188,
29922,
1792,
29918,
7507,
29918,
1188,
29897,
13,
13,
29992,
5184,
29889,
13134,
11974,
1054,
29914,
6144,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
784,
29918,
6144,
7295,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
29922,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
784,
29918,
333,
353,
2009,
29889,
5085,
29889,
657,
703,
333,
613,
27255,
13,
1678,
784,
353,
1530,
29889,
1972,
29889,
657,
29918,
272,
29918,
29946,
29900,
29946,
29898,
524,
29898,
1054,
29918,
333,
876,
13,
1678,
565,
784,
29889,
1792,
29918,
333,
2804,
1857,
29918,
1792,
29918,
333,
29901,
13,
4706,
11013,
703,
31997,
31707,
31916,
31152,
30413,
30733,
30545,
1159,
13,
4706,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1054,
5783,
13,
1678,
4833,
29889,
7924,
29889,
8143,
29898,
1054,
29897,
13,
1678,
4833,
29889,
7924,
29889,
15060,
580,
13,
1678,
11013,
703,
31997,
31707,
31916,
31152,
30494,
31134,
1159,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
1054,
5783,
13,
13,
13,
2277,
30437,
31911,
30275,
30869,
31997,
31707,
31025,
30746,
13,
29992,
5184,
29889,
13134,
11974,
1054,
29914,
1159,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
784,
7295,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1404,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
396,
29871,
31024,
30683,
30948,
30658,
30748,
31610,
31610,
30806,
31795,
30850,
30419,
31795,
30850,
30214,
31735,
31439,
30959,
30214,
30832,
30883,
30409,
13,
1678,
1813,
353,
2009,
29889,
5085,
29889,
657,
877,
3488,
742,
29871,
29896,
29892,
1134,
29922,
524,
29897,
13,
1678,
396,
29871,
31594,
30354,
30763,
31700,
30275,
31213,
233,
140,
193,
30783,
31370,
30406,
31229,
30210,
31997,
31707,
13,
1678,
396,
1972,
353,
1625,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
1792,
29918,
333,
353,
1792,
29918,
333,
467,
2098,
29918,
1609,
29898,
1625,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
2346,
353,
1530,
29889,
1972,
29889,
7122,
29898,
6747,
467,
7122,
29898,
2659,
467,
4572,
29898,
1625,
29889,
1792,
29918,
333,
1360,
1792,
29918,
333,
29892,
1625,
29889,
2490,
29918,
333,
1275,
1530,
29889,
2490,
29918,
333,
467,
2098,
29918,
1609,
29898,
1625,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
396,
29871,
30783,
30948,
30658,
235,
183,
183,
30210,
235,
178,
135,
235,
177,
189,
31174,
30448,
30748,
31610,
30419,
30748,
31610,
30850,
30214,
31951,
31610,
31599,
30858,
30210,
30354,
31180,
30214,
2704,
30409,
13,
1678,
10203,
3381,
353,
2346,
29889,
13573,
16976,
29898,
3488,
29892,
639,
29918,
3488,
29922,
29945,
29892,
1059,
29918,
449,
29922,
8824,
29897,
13,
1678,
396,
29871,
31024,
31050,
30748,
31610,
30822,
30948,
30658,
31610,
31542,
30858,
30210,
235,
178,
135,
235,
177,
189,
13,
1678,
28730,
353,
10203,
3381,
29889,
7076,
13,
1678,
396,
29871,
233,
187,
181,
233,
162,
150,
30888,
31596,
232,
187,
153,
31599,
30858,
31610,
30806,
13,
1678,
1596,
29898,
1972,
29897,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
1054,
29889,
1420,
742,
22724,
29922,
22724,
29892,
13573,
3381,
29922,
13573,
3381,
29897,
13,
13,
13,
29992,
5184,
29889,
13134,
11974,
2248,
29914,
1159,
13,
1753,
337,
2248,
7295,
29871,
396,
503,
31389,
31548,
2248,
30908,
31810,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
703,
5184,
29889,
2248,
5783,
13,
13,
13,
29992,
5184,
29889,
13134,
11219,
18962,
29914,
1495,
13,
1753,
9612,
7295,
13,
1678,
848,
353,
11117,
5311,
29881,
29889,
6173,
742,
525,
29879,
329,
18945,
29889,
6173,
742,
525,
29879,
8842,
523,
29900,
29896,
29889,
6173,
742,
525,
29879,
8842,
523,
29900,
29906,
29889,
6173,
742,
525,
29882,
29916,
3594,
29889,
6173,
10827,
13,
1678,
736,
4050,
29918,
6886,
877,
5184,
29914,
18962,
29889,
1420,
742,
848,
29922,
1272,
29897,
13,
13,
13,
29992,
5184,
29889,
13134,
11219,
4478,
29914,
1495,
13,
1753,
2740,
7295,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
29871,
29900,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
5124,
13,
1678,
565,
376,
1792,
29908,
297,
4867,
29901,
13,
4706,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
4706,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
4706,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
396,
29871,
31024,
30683,
31213,
235,
178,
165,
30210,
30728,
31294,
13,
1678,
396,
2740,
29922,
3827,
29889,
5085,
29889,
657,
703,
4478,
613,
29915,
742,
1853,
29922,
710,
29897,
13,
1678,
2740,
353,
2009,
29889,
5085,
29889,
657,
703,
4478,
613,
376,
233,
147,
159,
31836,
31320,
30801,
30573,
30816,
1159,
13,
1678,
396,
1596,
703,
233,
147,
159,
31836,
30210,
30210,
30728,
31294,
17969,
4478,
29897,
13,
1678,
396,
29871,
31024,
30683,
30948,
30658,
30748,
31610,
31610,
30806,
31795,
30850,
30419,
31795,
30850,
30214,
31735,
31439,
30959,
30214,
30832,
30883,
30409,
13,
1678,
1813,
353,
2009,
29889,
5085,
29889,
657,
877,
3488,
742,
29871,
29896,
29892,
1134,
29922,
524,
29897,
13,
1678,
396,
29871,
31594,
30354,
30763,
31700,
30275,
31213,
233,
140,
193,
30783,
31370,
30948,
30658,
30888,
31596,
235,
183,
183,
30210,
235,
178,
135,
235,
177,
189,
13,
1678,
2346,
353,
4918,
29889,
1972,
29889,
4572,
29898,
6747,
29889,
3257,
29889,
2638,
446,
877,
29001,
718,
2740,
718,
14210,
1495,
467,
2098,
29918,
1609,
29898,
6747,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
396,
29871,
30783,
30948,
30658,
30888,
31596,
232,
187,
153,
30210,
235,
178,
135,
235,
177,
189,
30354,
31180,
31174,
30448,
31675,
31466,
13,
1678,
1400,
29918,
2798,
353,
4918,
29889,
1972,
29889,
4572,
29898,
6747,
29889,
3257,
29889,
2638,
446,
877,
29001,
718,
2740,
718,
14210,
1495,
467,
2798,
580,
13,
1678,
396,
29871,
30783,
30948,
30658,
235,
183,
183,
30210,
235,
178,
135,
235,
177,
189,
31174,
30448,
30748,
31610,
30419,
30748,
31610,
30850,
30214,
31951,
31610,
31599,
30858,
30210,
30354,
31180,
30214,
2704,
30409,
13,
13,
1678,
10203,
3381,
353,
2346,
29889,
13573,
16976,
29898,
3488,
29892,
639,
29918,
3488,
29922,
29945,
29892,
1059,
29918,
449,
29922,
8824,
29897,
13,
1678,
396,
29871,
31024,
31050,
30748,
31610,
30822,
30948,
30658,
31610,
31542,
30858,
30210,
235,
178,
135,
235,
177,
189,
13,
1678,
6589,
353,
10203,
3381,
29889,
7076,
13,
1678,
396,
29871,
233,
187,
181,
233,
162,
150,
30888,
31596,
232,
187,
153,
31599,
30858,
31610,
30806,
13,
1678,
736,
4050,
29918,
6886,
703,
5184,
29914,
4478,
29889,
1420,
613,
2740,
29922,
4478,
29892,
2302,
29922,
2490,
29918,
2798,
29892,
1857,
29918,
1792,
29918,
978,
29922,
3784,
29918,
1792,
29918,
978,
29892,
13573,
3381,
29922,
13573,
3381,
29892,
2582,
29922,
21032,
29892,
3784,
29918,
1792,
29918,
333,
29922,
3784,
29918,
1792,
29918,
333,
29897,
13,
13,
13,
29937,
29871,
30888,
31596,
232,
187,
153,
235,
178,
169,
30993,
31610,
13,
29992,
5184,
29889,
13134,
11219,
1456,
29914,
742,
3519,
29922,
3366,
7194,
613,
376,
5438,
20068,
13,
1753,
1708,
7295,
13,
1678,
396,
29871,
31594,
31088,
31376,
31125,
30354,
233,
142,
194,
30780,
31088,
31376,
30210,
2490,
29918,
333,
13,
1678,
1400,
29918,
333,
353,
2009,
29889,
5085,
29889,
657,
703,
2490,
29918,
333,
613,
20569,
13,
1678,
396,
29871,
235,
178,
135,
235,
177,
189,
30746,
31166,
13,
1678,
883,
353,
461,
2500,
580,
13,
1678,
396,
29871,
30989,
31152,
30746,
31166,
30728,
31294,
13,
1678,
883,
29889,
1272,
1839,
3051,
2033,
353,
5124,
13,
1678,
396,
29871,
31107,
30406,
2490,
29918,
333,
233,
140,
193,
30780,
30698,
31542,
30858,
30210,
30888,
31596,
235,
183,
183,
13,
1678,
1400,
353,
4918,
29889,
1972,
29889,
4572,
29898,
6747,
29889,
333,
1275,
1400,
29918,
333,
467,
4102,
580,
13,
1678,
396,
29871,
31107,
30406,
2490,
29918,
333,
30505,
2659,
30746,
30275,
31213,
233,
140,
193,
30732,
30767,
232,
170,
150,
30548,
13,
1678,
4148,
353,
4911,
29889,
1972,
29889,
4572,
29898,
2659,
29889,
333,
1275,
1400,
29889,
1792,
29918,
333,
467,
4102,
580,
13,
1678,
396,
29871,
31594,
7924,
30275,
30683,
31050,
30948,
30658,
31451,
236,
156,
137,
30275,
30210,
30406,
31229,
30548,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
29871,
29900,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
525,
233,
187,
187,
31915,
29915,
13,
1678,
565,
376,
1792,
29908,
297,
4867,
29901,
13,
4706,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
4706,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
4706,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
396,
29871,
31653,
30406,
31229,
31451,
31283,
31403,
31542,
30858,
235,
178,
135,
235,
177,
189,
30910,
31454,
30746,
31166,
13,
1678,
565,
376,
1792,
29908,
297,
4867,
322,
883,
29889,
15480,
29918,
265,
29918,
7892,
7295,
13,
4706,
3440,
353,
461,
29898,
13,
9651,
2793,
29922,
689,
29889,
1272,
3366,
3051,
12436,
13,
9651,
1400,
29918,
333,
29922,
524,
29898,
2490,
29918,
333,
511,
13,
9651,
1404,
29918,
333,
29922,
3784,
29918,
1792,
29918,
333,
29892,
13,
9651,
788,
2230,
29922,
2230,
29889,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
1273,
29950,
16664,
29924,
16664,
29903,
613,
931,
29889,
2997,
2230,
3101,
13,
4706,
1723,
13,
4706,
4833,
29889,
7924,
29889,
1202,
29898,
9342,
29897,
13,
4706,
4833,
29889,
7924,
29889,
15060,
580,
13,
4706,
11013,
703,
235,
178,
135,
235,
177,
189,
31302,
31398,
30494,
31134,
30584,
1159,
13,
1678,
396,
29871,
31024,
30683,
30948,
30658,
30748,
31610,
31610,
30806,
31795,
30850,
30419,
31795,
30850,
30214,
31735,
31439,
30959,
30214,
30832,
30883,
30409,
13,
1678,
1813,
353,
2009,
29889,
5085,
29889,
657,
877,
3488,
742,
29871,
29896,
29892,
1134,
29922,
524,
29897,
13,
1678,
396,
29871,
31594,
30354,
30763,
31700,
30275,
31213,
233,
140,
193,
30783,
31370,
30948,
30658,
30888,
31596,
235,
183,
183,
30210,
235,
178,
135,
235,
177,
189,
13,
1678,
2346,
353,
461,
29889,
1972,
29889,
7122,
29898,
2659,
467,
4572,
29898,
20001,
29889,
2490,
29918,
333,
1275,
1400,
29918,
333,
467,
2098,
29918,
1609,
29898,
20001,
29889,
1202,
2230,
29889,
14273,
3101,
13,
1678,
396,
29871,
30783,
30948,
30658,
30888,
31596,
232,
187,
153,
30210,
235,
178,
135,
235,
177,
189,
30354,
31180,
31174,
30448,
31675,
31466,
13,
1678,
3440,
29918,
2798,
353,
461,
29889,
1972,
29889,
4572,
29898,
20001,
29889,
2490,
29918,
333,
1275,
1400,
29918,
333,
467,
2798,
580,
13,
1678,
396,
29871,
30783,
30948,
30658,
235,
183,
183,
30210,
235,
178,
135,
235,
177,
189,
31174,
30448,
30748,
31610,
30419,
30748,
31610,
30850,
30214,
31951,
31610,
31599,
30858,
30210,
30354,
31180,
30214,
2704,
30409,
13,
1678,
10203,
3381,
353,
2346,
29889,
13573,
16976,
29898,
3488,
29892,
639,
29918,
3488,
29922,
29945,
29892,
1059,
29918,
449,
29922,
8824,
29897,
13,
1678,
396,
29871,
31024,
31050,
30748,
31610,
30822,
30948,
30658,
31610,
31542,
30858,
30210,
235,
178,
135,
235,
177,
189,
13,
1678,
6589,
353,
10203,
3381,
29889,
7076,
13,
1678,
396,
29871,
233,
187,
181,
233,
162,
150,
30888,
31596,
232,
187,
153,
31599,
30858,
31610,
30806,
13,
1678,
736,
4050,
29918,
6886,
703,
5184,
29914,
1456,
29889,
1420,
613,
1400,
29922,
2490,
29892,
883,
29922,
689,
29892,
6589,
29922,
21032,
29892,
13,
462,
965,
10203,
3381,
29922,
13573,
3381,
29892,
4148,
29922,
8921,
29892,
3784,
29918,
1792,
29918,
978,
29922,
3784,
29918,
1792,
29918,
978,
29892,
2302,
29922,
9342,
29918,
2798,
29892,
3784,
29918,
1792,
29918,
333,
29922,
3784,
29918,
1792,
29918,
333,
29897,
13,
13,
13,
29992,
5184,
29889,
13134,
11219,
2490,
29914,
742,
3519,
29922,
3366,
7194,
613,
376,
5438,
20068,
13,
29992,
1792,
29918,
7507,
29918,
7971,
13,
1753,
1400,
7295,
13,
1678,
883,
353,
4918,
2500,
580,
13,
1678,
1857,
29918,
1792,
29918,
978,
353,
4867,
3366,
1792,
3108,
13,
1678,
1404,
353,
4911,
29889,
1972,
29889,
4572,
29918,
1609,
29898,
978,
29922,
3784,
29918,
1792,
29918,
978,
467,
4102,
580,
13,
1678,
1857,
29918,
1792,
29918,
333,
353,
1404,
29889,
333,
13,
1678,
565,
883,
29889,
15480,
29918,
265,
29918,
7892,
7295,
13,
4706,
848,
353,
883,
29889,
1272,
13,
4706,
1400,
353,
4918,
29898,
13,
9651,
3611,
29922,
1272,
3366,
3257,
12436,
13,
9651,
2793,
29922,
1272,
3366,
3051,
12436,
13,
9651,
1404,
29918,
333,
29922,
3784,
29918,
1792,
29918,
333,
29892,
13,
9651,
788,
2230,
29922,
2230,
29889,
710,
615,
603,
11702,
29979,
19222,
29885,
19222,
29881,
1273,
29950,
16664,
29924,
16664,
29903,
613,
931,
29889,
2997,
2230,
3101,
13,
4706,
1723,
13,
4706,
4833,
29889,
7924,
29889,
1202,
29898,
2490,
29897,
13,
4706,
4833,
29889,
7924,
29889,
15060,
580,
13,
4706,
11013,
703,
30910,
31454,
30888,
31596,
232,
187,
153,
30494,
31134,
1159,
13,
1678,
736,
4050,
29918,
6886,
703,
5184,
29914,
2490,
29918,
1202,
29889,
1420,
613,
883,
29922,
689,
29892,
3784,
29918,
1792,
29918,
978,
29922,
3784,
29918,
1792,
29918,
978,
29897,
13,
13,
13,
29937,
29946,
29900,
29946,
13,
29992,
5184,
29889,
2704,
13789,
29898,
29946,
29900,
29946,
29897,
13,
1753,
1813,
29918,
1333,
29918,
11940,
29898,
2704,
1125,
13,
1678,
736,
4050,
29918,
6886,
703,
5184,
29914,
29946,
29900,
29946,
29889,
1420,
4968,
29946,
29900,
29946,
2
] |
networks/larflow/models/larflow_uresnet.py | LArbys/ublarcvserver | 2 | 221 | <filename>networks/larflow/models/larflow_uresnet.py
import torch.nn as nn
import torch as torch
import math
import torch.utils.model_zoo as model_zoo
###########################################################
#
# U-ResNet
# U-net witih ResNet modules
#
# Semantic segmentation network used by MicroBooNE
# to label track/shower pixels
#
# resnet implementation from pytorch.torchvision module
# U-net from (cite)
#
# meant to be copy of caffe version
#
###########################################################
def conv3x3(in_planes, out_planes, stride=1):
"""3x3 convolution with padding"""
return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,padding=1, bias=False)
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, inplanes, planes, stride=1):
super(BasicBlock, self).__init__()
self.conv1 = conv3x3(inplanes, planes, stride)
self.bn1 = nn.BatchNorm2d(planes)
self.relu1 = nn.ReLU(inplace=True)
self.conv2 = conv3x3(planes, planes)
self.bn2 = nn.BatchNorm2d(planes)
self.stride = stride
self.bypass = None
if inplanes!=planes or stride>1:
self.bypass = nn.Conv2d(inplanes, planes, kernel_size=1, stride=stride, padding=0, bias=False)
self.relu = nn.ReLU(inplace=True)
def forward(self, x):
out = self.conv1(x)
out = self.bn1(out)
out = self.relu1(out)
out = self.conv2(out)
out = self.bn2(out)
if self.bypass is not None:
outbp = self.bypass(x)
out += outbp
else:
out += x
out = self.relu(out)
return out
class Bottleneck(nn.Module):
def __init__(self, inplanes, planes, stride=1 ):
super(Bottleneck, self).__init__()
# residual path
self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=1, bias=False)
self.bn1 = nn.BatchNorm2d(planes)
self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
self.bn2 = nn.BatchNorm2d(planes)
self.conv3 = nn.Conv2d(planes, planes, kernel_size=1, bias=False)
self.bn3 = nn.BatchNorm2d(planes)
self.relu = nn.ReLU(inplace=True)
self.stride = stride
# if stride >1, then we need to subsamble the input
if stride>1:
self.shortcut = nn.Conv2d(inplanes,planes,kernel_size=1,stride=stride,bias=False)
else:
self.shortcut = None
def forward(self, x):
if self.shortcut is None:
bypass = x
else:
bypass = self.shortcut(x)
residual = self.conv1(x)
residual = self.bn1(residual)
residual = self.relu(residual)
residual = self.conv2(residual)
residual = self.bn2(residual)
residual = self.relu(residual)
residual = self.conv3(residual)
residual = self.bn3(residual)
out = bypass+residual
out = self.relu(out)
return out
class PreactivationBlock(nn.Module):
def __init__(self, inplanes, planes, stride=1 ):
super(Preactivation, self).__init__()
# residual path
self.bn1 = nn.BatchNorm2d(inplanes)
self.relu1 = nn.ReLU(inplace=True)
self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=3, bias=False)
self.bn2 = nn.BatchNorm2d(planes)
self.relu2 = nn.ReLU(inplace=True)
self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
# if stride >1, then we need to subsamble the input
if stride>1:
self.shortcut = nn.Conv2d(inplanes,planes,kernel_size=1,stride=stride,bias=False)
else:
self.shortcut = None
def forward(self, x):
if self.shortcut is None:
bypass = x
else:
bypass = self.shortcut(x)
class DoubleResNet(nn.Module):
def __init__(self,Block,inplanes,planes,stride=1):
super(DoubleResNet,self).__init__()
self.res1 = Block(inplanes,planes,stride)
self.res2 = Block( planes,planes, 1)
def forward(self, x):
out = self.res1(x)
out = self.res2(out)
return out
class ConvTransposeLayer(nn.Module):
def __init__(self,deconv_inplanes,skip_inplanes,deconv_outplanes,res_outplanes):
super(ConvTransposeLayer,self).__init__()
self.deconv = nn.ConvTranspose2d( deconv_inplanes, deconv_outplanes, kernel_size=4, stride=2, padding=1, bias=False )
self.res = DoubleResNet(BasicBlock,deconv_outplanes+skip_inplanes,res_outplanes,stride=1)
def forward(self,x,skip_x):
out = self.deconv(x,output_size=skip_x.size())
# concat skip connections
out = torch.cat( [out,skip_x], 1 )
out = self.res(out)
return out
class LArFlowUResNet(nn.Module):
def __init__(self, num_classes=3, input_channels=3, inplanes=16, showsizes=False, use_visi=True):
self.inplanes =inplanes
super(LArFlowUResNet, self).__init__()
self._showsizes = showsizes # print size at each layer
self.use_visi = use_visi
# Encoder
# stem
# one big stem
self.conv1 = nn.Conv2d(input_channels, self.inplanes, kernel_size=7, stride=1, padding=3, bias=True) # initial conv layer
self.bn1 = nn.BatchNorm2d(self.inplanes)
self.relu1 = nn.ReLU(inplace=True)
self.pool1 = nn.MaxPool2d( 3, stride=2, padding=1 )
self.enc_layer1 = self._make_encoding_layer( self.inplanes*1, self.inplanes*2, stride=1) # 16->32
self.enc_layer2 = self._make_encoding_layer( self.inplanes*2, self.inplanes*4, stride=2) # 32->64
self.enc_layer3 = self._make_encoding_layer( self.inplanes*4, self.inplanes*8, stride=2) # 64->128
self.enc_layer4 = self._make_encoding_layer( self.inplanes*8, self.inplanes*16, stride=2) # 128->256
self.enc_layer5 = self._make_encoding_layer( self.inplanes*16, self.inplanes*32, stride=2) # 256->512
# decoding flow
#self.num_final_flow_features = self.inplanes
self.num_final_flow_features = self.inplanes
self.flow_dec_layer5 = self._make_decoding_layer( self.inplanes*32*2, self.inplanes*16, self.inplanes*16, self.inplanes*16 ) # 512->256
self.flow_dec_layer4 = self._make_decoding_layer( self.inplanes*16, self.inplanes*8, self.inplanes*8, self.inplanes*8 ) # 256->128
self.flow_dec_layer3 = self._make_decoding_layer( self.inplanes*8, self.inplanes*4, self.inplanes*4, self.inplanes*4 ) # 128->64
self.flow_dec_layer2 = self._make_decoding_layer( self.inplanes*4, self.inplanes*2, self.inplanes*2, self.inplanes*2 ) # 64->32
#self.flow_dec_layer1 = self._make_decoding_layer( self.inplanes*2, self.inplanes, self.inplanes ) # 32->16
self.flow_dec_layer1 = self._make_decoding_layer( self.inplanes*2, self.inplanes, self.inplanes, self.num_final_flow_features ) # 32->200
# decoding matchability
if self.use_visi:
self.visi_dec_layer5 = self._make_decoding_layer( self.inplanes*32*2, self.inplanes*16, self.inplanes*16, self.inplanes*16 ) # 512->256
self.visi_dec_layer4 = self._make_decoding_layer( self.inplanes*16, self.inplanes*8, self.inplanes*8, self.inplanes*8 ) # 256->128
self.visi_dec_layer3 = self._make_decoding_layer( self.inplanes*8, self.inplanes*4, self.inplanes*4, self.inplanes*4 ) # 128->64
self.visi_dec_layer2 = self._make_decoding_layer( self.inplanes*4, self.inplanes*2, self.inplanes*2, self.inplanes*2 ) # 64->32
self.visi_dec_layer1 = self._make_decoding_layer( self.inplanes*2, self.inplanes, self.inplanes, self.inplanes ) # 32->16
# 1x1 conv for flow
self.flow_conv = nn.Conv2d( self.num_final_flow_features, 1, kernel_size=1, stride=1, padding=0, bias=True )
# 1x1 conv for mathability
if self.use_visi:
self.visi_conv = nn.Conv2d( self.inplanes, 2, kernel_size=1, stride=1, padding=0, bias=True ) # 2 classes, 0=not vis, 1=vis
self.visi_softmax = nn.LogSoftmax(dim=1)
# initialization
for m in self.modules():
if isinstance(m, nn.Conv2d) or isinstance(m,nn.ConvTranspose2d):
n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
m.weight.data.normal_(0, math.sqrt(2. / n))
elif isinstance(m, nn.BatchNorm2d):
m.weight.data.fill_(1)
m.bias.data.zero_()
def _make_encoding_layer(self, inplanes, planes, stride=2):
return DoubleResNet(BasicBlock,inplanes,planes,stride=stride)
def _make_decoding_layer(self, inplanes, skipplanes, deconvplanes, resnetplanes ):
return ConvTransposeLayer( inplanes, skipplanes, deconvplanes, resnetplanes )
def encode(self,x):
# stem
x = self.conv1(x)
x = self.bn1(x)
x0 = self.relu1(x)
x = self.pool1(x0)
x1 = self.enc_layer1(x)
x2 = self.enc_layer2(x1)
x3 = self.enc_layer3(x2)
x4 = self.enc_layer4(x3)
x5 = self.enc_layer5(x4)
if self._showsizes:
print "after encoding: "
print " x1: ",x1.size()
print " x2: ",x2.size()
print " x3: ",x3.size()
print " x4: ",x4.size()
print " x5: ",x5.size()
return x5,x0,x1,x2,x3,x4
def flow(self,merged_encode,x0,x1,x2,x3,x4):
""" decoding to flow prediction """
x = self.flow_dec_layer5(merged_encode,x4)
if self._showsizes:
print "after decoding:"
print " dec5: ",x.size()," iscuda=",x.is_cuda
x = self.flow_dec_layer4(x,x3)
if self._showsizes:
print " dec4: ",x.size()," iscuda=",x.is_cuda
x = self.flow_dec_layer3(x,x2)
if self._showsizes:
print " dec3: ",x.size()," iscuda=",x.is_cuda
x = self.flow_dec_layer2(x,x1)
if self._showsizes:
print " dec2: ",x.size()," iscuda=",x.is_cuda
x = self.flow_dec_layer1(x,x0)
if self._showsizes:
print " dec1: ",x.size()," iscuda=",x.is_cuda
return x
def visibility(self,merged_encode,x0,x1,x2,x3,x4):
""" decoding to flow prediction """
x = self.visi_dec_layer5(merged_encode,x4)
if self._showsizes:
print "after decoding:"
print " dec5: ",x.size()," iscuda=",x.is_cuda
x = self.visi_dec_layer4(x,x3)
if self._showsizes:
print " dec4: ",x.size()," iscuda=",x.is_cuda
x = self.visi_dec_layer3(x,x2)
if self._showsizes:
print " dec3: ",x.size()," iscuda=",x.is_cuda
x = self.visi_dec_layer2(x,x1)
if self._showsizes:
print " dec2: ",x.size()," iscuda=",x.is_cuda
x = self.visi_dec_layer1(x,x0)
if self._showsizes:
print " dec1: ",x.size()," iscuda=",x.is_cuda
return x
def forward(self, src, target):
if self._showsizes:
print "input: ",x.size()," is_cuda=",x.is_cuda
src_encode, s0, s1, s2, s3, s4 = self.encode(src)
target_encode, t0, t1, t2, t3, t4 = self.encode(target)
merged_encode = torch.cat( [target_encode,src_encode], 1 )
flowout = self.flow( merged_encode, s0, s1, s2, s3, s4 )
if self.use_visi:
visiout = self.visibility( merged_encode, t0, t1, t2, t3, t4 )
flow_predict = self.flow_conv( flowout )
if self.use_visi:
visi_predict = self.visi_conv( visiout )
visi_predict = self.visi_softmax(visi_predict)
else:
visi_predict = None
if self._showsizes:
print " softmax: ",x.size()
return flow_predict,visi_predict
| [
1,
529,
9507,
29958,
11618,
29879,
29914,
4675,
1731,
29914,
9794,
29914,
4675,
1731,
29918,
1973,
1212,
29889,
2272,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
408,
4842,
305,
13,
5215,
5844,
13,
5215,
4842,
305,
29889,
13239,
29889,
4299,
29918,
2502,
29877,
408,
1904,
29918,
2502,
29877,
13,
13,
13383,
13383,
13383,
7346,
2277,
29937,
13,
29937,
13,
29937,
501,
29899,
1666,
6779,
13,
29937,
501,
29899,
1212,
281,
4812,
29882,
2538,
6779,
10585,
13,
29937,
13,
29937,
9444,
7716,
10768,
362,
3564,
1304,
491,
20140,
29933,
3634,
8186,
13,
29937,
304,
3858,
5702,
29914,
845,
1680,
17036,
13,
29937,
13,
29937,
620,
1212,
5314,
515,
282,
3637,
25350,
29889,
7345,
305,
4924,
3883,
13,
29937,
501,
29899,
1212,
515,
313,
2036,
29897,
13,
29937,
13,
29937,
6839,
304,
367,
3509,
310,
274,
3470,
29872,
1873,
13,
29937,
29871,
13,
13383,
13383,
13383,
7346,
2277,
29937,
13,
13,
13,
1753,
7602,
29941,
29916,
29941,
29898,
262,
29918,
9018,
267,
29892,
714,
29918,
9018,
267,
29892,
380,
2426,
29922,
29896,
1125,
13,
1678,
9995,
29941,
29916,
29941,
26851,
411,
7164,
15945,
29908,
13,
1678,
736,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
262,
29918,
9018,
267,
29892,
714,
29918,
9018,
267,
29892,
8466,
29918,
2311,
29922,
29941,
29892,
380,
2426,
29922,
303,
2426,
29892,
12791,
29922,
29896,
29892,
24003,
29922,
8824,
29897,
13,
462,
418,
13,
13,
1990,
19219,
7445,
29898,
15755,
29889,
7355,
1125,
13,
1678,
13184,
353,
29871,
29896,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
297,
9018,
267,
29892,
3814,
267,
29892,
380,
2426,
29922,
29896,
1125,
13,
4706,
2428,
29898,
16616,
7445,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
20580,
29896,
353,
7602,
29941,
29916,
29941,
29898,
262,
9018,
267,
29892,
3814,
267,
29892,
380,
2426,
29897,
13,
4706,
1583,
29889,
11197,
29896,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
9018,
267,
29897,
13,
4706,
1583,
29889,
2674,
29884,
29896,
353,
302,
29876,
29889,
1123,
29931,
29965,
29898,
262,
6689,
29922,
5574,
29897,
13,
13,
4706,
1583,
29889,
20580,
29906,
353,
7602,
29941,
29916,
29941,
29898,
9018,
267,
29892,
3814,
267,
29897,
13,
4706,
1583,
29889,
11197,
29906,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
9018,
267,
29897,
13,
13,
4706,
1583,
29889,
303,
2426,
353,
380,
2426,
13,
13,
4706,
1583,
29889,
29890,
1478,
465,
353,
6213,
13,
4706,
565,
297,
9018,
267,
19216,
9018,
267,
470,
380,
2426,
29958,
29896,
29901,
13,
9651,
1583,
29889,
29890,
1478,
465,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
262,
9018,
267,
29892,
3814,
267,
29892,
8466,
29918,
2311,
29922,
29896,
29892,
380,
2426,
29922,
303,
2426,
29892,
7164,
29922,
29900,
29892,
24003,
29922,
8824,
29897,
13,
632,
13,
4706,
1583,
29889,
2674,
29884,
353,
302,
29876,
29889,
1123,
29931,
29965,
29898,
262,
6689,
29922,
5574,
29897,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
13,
4706,
714,
353,
1583,
29889,
20580,
29896,
29898,
29916,
29897,
13,
4706,
714,
353,
1583,
29889,
11197,
29896,
29898,
449,
29897,
13,
4706,
714,
353,
1583,
29889,
2674,
29884,
29896,
29898,
449,
29897,
13,
13,
4706,
714,
353,
1583,
29889,
20580,
29906,
29898,
449,
29897,
13,
4706,
714,
353,
1583,
29889,
11197,
29906,
29898,
449,
29897,
13,
13,
4706,
565,
1583,
29889,
29890,
1478,
465,
338,
451,
6213,
29901,
13,
9651,
714,
25288,
353,
1583,
29889,
29890,
1478,
465,
29898,
29916,
29897,
13,
9651,
714,
4619,
714,
25288,
13,
4706,
1683,
29901,
13,
9651,
714,
4619,
921,
13,
13,
4706,
714,
353,
1583,
29889,
2674,
29884,
29898,
449,
29897,
13,
308,
13,
4706,
736,
714,
13,
13,
13,
1990,
350,
1501,
29880,
1600,
384,
29898,
15755,
29889,
7355,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
297,
9018,
267,
29892,
3814,
267,
29892,
380,
2426,
29922,
29896,
29871,
1125,
13,
4706,
2428,
29898,
29933,
1501,
29880,
1600,
384,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
13,
4706,
396,
10995,
950,
2224,
13,
4706,
1583,
29889,
20580,
29896,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
262,
9018,
267,
29892,
3814,
267,
29892,
8466,
29918,
2311,
29922,
29896,
29892,
24003,
29922,
8824,
29897,
13,
4706,
1583,
29889,
11197,
29896,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
9018,
267,
29897,
13,
308,
13,
4706,
1583,
29889,
20580,
29906,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
9018,
267,
29892,
3814,
267,
29892,
8466,
29918,
2311,
29922,
29941,
29892,
380,
2426,
29922,
303,
2426,
29892,
7164,
29922,
29896,
29892,
24003,
29922,
8824,
29897,
13,
462,
18884,
13,
4706,
1583,
29889,
11197,
29906,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
9018,
267,
29897,
13,
4706,
1583,
29889,
20580,
29941,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
9018,
267,
29892,
3814,
267,
29892,
8466,
29918,
2311,
29922,
29896,
29892,
24003,
29922,
8824,
29897,
13,
4706,
1583,
29889,
11197,
29941,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
9018,
267,
29897,
13,
4706,
1583,
29889,
2674,
29884,
353,
302,
29876,
29889,
1123,
29931,
29965,
29898,
262,
6689,
29922,
5574,
29897,
13,
4706,
1583,
29889,
303,
2426,
353,
380,
2426,
13,
13,
4706,
396,
565,
380,
2426,
1405,
29896,
29892,
769,
591,
817,
304,
11684,
314,
569,
278,
1881,
13,
4706,
565,
380,
2426,
29958,
29896,
29901,
13,
9651,
1583,
29889,
12759,
7582,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
262,
9018,
267,
29892,
9018,
267,
29892,
17460,
29918,
2311,
29922,
29896,
29892,
303,
2426,
29922,
303,
2426,
29892,
29890,
3173,
29922,
8824,
29897,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
12759,
7582,
353,
6213,
13,
632,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
13,
4706,
565,
1583,
29889,
12759,
7582,
338,
6213,
29901,
13,
9651,
491,
3364,
353,
921,
13,
4706,
1683,
29901,
13,
9651,
491,
3364,
353,
1583,
29889,
12759,
7582,
29898,
29916,
29897,
13,
13,
4706,
10995,
950,
353,
1583,
29889,
20580,
29896,
29898,
29916,
29897,
13,
4706,
10995,
950,
353,
1583,
29889,
11197,
29896,
29898,
690,
333,
950,
29897,
13,
4706,
10995,
950,
353,
1583,
29889,
2674,
29884,
29898,
690,
333,
950,
29897,
13,
13,
4706,
10995,
950,
353,
1583,
29889,
20580,
29906,
29898,
690,
333,
950,
29897,
13,
4706,
10995,
950,
353,
1583,
29889,
11197,
29906,
29898,
690,
333,
950,
29897,
13,
4706,
10995,
950,
353,
1583,
29889,
2674,
29884,
29898,
690,
333,
950,
29897,
13,
13,
4706,
10995,
950,
353,
1583,
29889,
20580,
29941,
29898,
690,
333,
950,
29897,
13,
4706,
10995,
950,
353,
1583,
29889,
11197,
29941,
29898,
690,
333,
950,
29897,
13,
13,
4706,
714,
353,
491,
3364,
29974,
690,
333,
950,
13,
4706,
714,
353,
1583,
29889,
2674,
29884,
29898,
449,
29897,
13,
13,
4706,
736,
714,
13,
13,
1990,
4721,
11236,
362,
7445,
29898,
15755,
29889,
7355,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
297,
9018,
267,
29892,
3814,
267,
29892,
380,
2426,
29922,
29896,
29871,
1125,
13,
4706,
2428,
29898,
6572,
11236,
362,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
13,
4706,
396,
10995,
950,
2224,
13,
4706,
1583,
29889,
11197,
29896,
259,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
262,
9018,
267,
29897,
13,
4706,
1583,
29889,
2674,
29884,
29896,
353,
302,
29876,
29889,
1123,
29931,
29965,
29898,
262,
6689,
29922,
5574,
29897,
13,
4706,
1583,
29889,
20580,
29896,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
262,
9018,
267,
29892,
3814,
267,
29892,
8466,
29918,
2311,
29922,
29941,
29892,
24003,
29922,
8824,
29897,
13,
13,
4706,
1583,
29889,
11197,
29906,
259,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
9018,
267,
29897,
13,
4706,
1583,
29889,
2674,
29884,
29906,
353,
302,
29876,
29889,
1123,
29931,
29965,
29898,
262,
6689,
29922,
5574,
29897,
308,
13,
4706,
1583,
29889,
20580,
29906,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
9018,
267,
29892,
3814,
267,
29892,
8466,
29918,
2311,
29922,
29941,
29892,
380,
2426,
29922,
303,
2426,
29892,
7164,
29922,
29896,
29892,
24003,
29922,
8824,
29897,
13,
13,
4706,
396,
565,
380,
2426,
1405,
29896,
29892,
769,
591,
817,
304,
11684,
314,
569,
278,
1881,
13,
4706,
565,
380,
2426,
29958,
29896,
29901,
13,
9651,
1583,
29889,
12759,
7582,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
262,
9018,
267,
29892,
9018,
267,
29892,
17460,
29918,
2311,
29922,
29896,
29892,
303,
2426,
29922,
303,
2426,
29892,
29890,
3173,
29922,
8824,
29897,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
12759,
7582,
353,
6213,
13,
632,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
13,
4706,
565,
1583,
29889,
12759,
7582,
338,
6213,
29901,
13,
9651,
491,
3364,
353,
921,
13,
4706,
1683,
29901,
13,
9651,
491,
3364,
353,
1583,
29889,
12759,
7582,
29898,
29916,
29897,
13,
268,
13,
268,
13,
13,
1990,
11599,
1666,
6779,
29898,
15755,
29889,
7355,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
7445,
29892,
262,
9018,
267,
29892,
9018,
267,
29892,
303,
2426,
29922,
29896,
1125,
13,
4706,
2428,
29898,
11843,
1666,
6779,
29892,
1311,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
690,
29896,
353,
15658,
29898,
262,
9018,
267,
29892,
9018,
267,
29892,
303,
2426,
29897,
13,
4706,
1583,
29889,
690,
29906,
353,
15658,
29898,
29871,
3814,
267,
29892,
9018,
267,
29892,
418,
29896,
29897,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
4706,
714,
353,
1583,
29889,
690,
29896,
29898,
29916,
29897,
13,
4706,
714,
353,
1583,
29889,
690,
29906,
29898,
449,
29897,
13,
4706,
736,
714,
13,
13,
1990,
1281,
29894,
4300,
4220,
14420,
29898,
15755,
29889,
7355,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
311,
20580,
29918,
262,
9018,
267,
29892,
11014,
29918,
262,
9018,
267,
29892,
311,
20580,
29918,
449,
9018,
267,
29892,
690,
29918,
449,
9018,
267,
1125,
13,
4706,
2428,
29898,
1168,
29894,
4300,
4220,
14420,
29892,
1311,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
311,
20580,
353,
302,
29876,
29889,
1168,
29894,
4300,
4220,
29906,
29881,
29898,
316,
20580,
29918,
262,
9018,
267,
29892,
316,
20580,
29918,
449,
9018,
267,
29892,
8466,
29918,
2311,
29922,
29946,
29892,
380,
2426,
29922,
29906,
29892,
7164,
29922,
29896,
29892,
24003,
29922,
8824,
1723,
13,
4706,
1583,
29889,
690,
1678,
353,
11599,
1666,
6779,
29898,
16616,
7445,
29892,
311,
20580,
29918,
449,
9018,
267,
29974,
11014,
29918,
262,
9018,
267,
29892,
690,
29918,
449,
9018,
267,
29892,
303,
2426,
29922,
29896,
29897,
13,
1678,
822,
6375,
29898,
1311,
29892,
29916,
29892,
11014,
29918,
29916,
1125,
13,
4706,
714,
353,
1583,
29889,
311,
20580,
29898,
29916,
29892,
4905,
29918,
2311,
29922,
11014,
29918,
29916,
29889,
2311,
3101,
13,
4706,
396,
3022,
271,
14383,
12368,
13,
4706,
714,
353,
4842,
305,
29889,
4117,
29898,
518,
449,
29892,
11014,
29918,
29916,
1402,
29871,
29896,
1723,
13,
4706,
714,
353,
1583,
29889,
690,
29898,
449,
29897,
13,
4706,
736,
714,
13,
268,
13,
1990,
365,
1433,
17907,
29965,
1666,
6779,
29898,
15755,
29889,
7355,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
954,
29918,
13203,
29922,
29941,
29892,
1881,
29918,
305,
12629,
29922,
29941,
29892,
297,
9018,
267,
29922,
29896,
29953,
29892,
3697,
7093,
29922,
8824,
29892,
671,
29918,
1730,
29875,
29922,
5574,
1125,
13,
4706,
1583,
29889,
262,
9018,
267,
353,
262,
9018,
267,
13,
4706,
2428,
29898,
29931,
1433,
17907,
29965,
1666,
6779,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
13,
4706,
1583,
3032,
845,
1242,
7093,
353,
3697,
7093,
396,
1596,
2159,
472,
1269,
7546,
13,
4706,
1583,
29889,
1509,
29918,
1730,
29875,
353,
671,
29918,
1730,
29875,
13,
308,
13,
4706,
396,
11346,
6119,
13,
13,
4706,
396,
20805,
13,
4706,
396,
697,
4802,
20805,
13,
4706,
1583,
29889,
20580,
29896,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
2080,
29918,
305,
12629,
29892,
1583,
29889,
262,
9018,
267,
29892,
8466,
29918,
2311,
29922,
29955,
29892,
380,
2426,
29922,
29896,
29892,
7164,
29922,
29941,
29892,
24003,
29922,
5574,
29897,
396,
2847,
7602,
7546,
13,
4706,
1583,
29889,
11197,
29896,
353,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
29898,
1311,
29889,
262,
9018,
267,
29897,
13,
4706,
1583,
29889,
2674,
29884,
29896,
353,
302,
29876,
29889,
1123,
29931,
29965,
29898,
262,
6689,
29922,
5574,
29897,
13,
4706,
1583,
29889,
10109,
29896,
353,
302,
29876,
29889,
7976,
11426,
29906,
29881,
29898,
29871,
29941,
29892,
380,
2426,
29922,
29906,
29892,
7164,
29922,
29896,
1723,
13,
308,
13,
4706,
1583,
29889,
3977,
29918,
13148,
29896,
353,
1583,
3032,
5675,
29918,
22331,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29896,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
29871,
380,
2426,
29922,
29896,
29897,
396,
29871,
29896,
29953,
976,
29941,
29906,
13,
4706,
1583,
29889,
3977,
29918,
13148,
29906,
353,
1583,
3032,
5675,
29918,
22331,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
29871,
380,
2426,
29922,
29906,
29897,
396,
29871,
29941,
29906,
976,
29953,
29946,
13,
4706,
1583,
29889,
3977,
29918,
13148,
29941,
353,
1583,
3032,
5675,
29918,
22331,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
29871,
380,
2426,
29922,
29906,
29897,
396,
29871,
29953,
29946,
976,
29896,
29906,
29947,
13,
4706,
1583,
29889,
3977,
29918,
13148,
29946,
353,
1583,
3032,
5675,
29918,
22331,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
380,
2426,
29922,
29906,
29897,
396,
29871,
29896,
29906,
29947,
976,
29906,
29945,
29953,
13,
4706,
1583,
29889,
3977,
29918,
13148,
29945,
353,
1583,
3032,
5675,
29918,
22331,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
1583,
29889,
262,
9018,
267,
29930,
29941,
29906,
29892,
380,
2426,
29922,
29906,
29897,
396,
29871,
29906,
29945,
29953,
976,
29945,
29896,
29906,
13,
13,
4706,
396,
1602,
3689,
4972,
13,
4706,
396,
1311,
29889,
1949,
29918,
8394,
29918,
1731,
29918,
22100,
353,
1583,
29889,
262,
9018,
267,
13,
4706,
1583,
29889,
1949,
29918,
8394,
29918,
1731,
29918,
22100,
353,
1583,
29889,
262,
9018,
267,
13,
4706,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29945,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29941,
29906,
29930,
29906,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
1723,
396,
29871,
29945,
29896,
29906,
976,
29906,
29945,
29953,
13,
4706,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29946,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
1678,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29947,
29871,
1723,
396,
29871,
29906,
29945,
29953,
976,
29896,
29906,
29947,
13,
4706,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29941,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
268,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29946,
29871,
1723,
396,
29871,
29896,
29906,
29947,
976,
29953,
29946,
13,
4706,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29906,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
268,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29906,
29871,
1723,
396,
29871,
29953,
29946,
976,
29941,
29906,
13,
4706,
396,
1311,
29889,
1731,
29918,
7099,
29918,
13148,
29896,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
268,
1583,
29889,
262,
9018,
267,
29892,
1678,
1583,
29889,
262,
9018,
267,
1678,
1723,
396,
29871,
29941,
29906,
976,
29896,
29953,
13,
4706,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29896,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
268,
1583,
29889,
262,
9018,
267,
29892,
1678,
1583,
29889,
262,
9018,
267,
29892,
1583,
29889,
1949,
29918,
8394,
29918,
1731,
29918,
22100,
1723,
396,
29871,
29941,
29906,
976,
29906,
29900,
29900,
13,
13,
4706,
396,
1602,
3689,
1993,
3097,
13,
4706,
565,
1583,
29889,
1509,
29918,
1730,
29875,
29901,
13,
9651,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29945,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29941,
29906,
29930,
29906,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
1723,
396,
29871,
29945,
29896,
29906,
976,
29906,
29945,
29953,
13,
9651,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29946,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29896,
29953,
29892,
1678,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29947,
29871,
1723,
396,
29871,
29906,
29945,
29953,
976,
29896,
29906,
29947,
13,
9651,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29941,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29947,
29892,
268,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29946,
29871,
1723,
396,
29871,
29896,
29906,
29947,
976,
29953,
29946,
13,
9651,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29906,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29946,
29892,
268,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
29871,
1583,
29889,
262,
9018,
267,
29930,
29906,
29871,
1723,
396,
29871,
29953,
29946,
976,
29941,
29906,
13,
9651,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29896,
353,
1583,
3032,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1583,
29889,
262,
9018,
267,
29930,
29906,
29892,
268,
1583,
29889,
262,
9018,
267,
29892,
1678,
1583,
29889,
262,
9018,
267,
29892,
1678,
1583,
29889,
262,
9018,
267,
1678,
1723,
396,
29871,
29941,
29906,
976,
29896,
29953,
13,
13,
4706,
396,
29871,
29896,
29916,
29896,
7602,
363,
4972,
13,
4706,
1583,
29889,
1731,
29918,
20580,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
1583,
29889,
1949,
29918,
8394,
29918,
1731,
29918,
22100,
29892,
29871,
29896,
29892,
8466,
29918,
2311,
29922,
29896,
29892,
380,
2426,
29922,
29896,
29892,
7164,
29922,
29900,
29892,
24003,
29922,
5574,
1723,
13,
13,
4706,
396,
29871,
29896,
29916,
29896,
7602,
363,
5844,
3097,
13,
4706,
565,
1583,
29889,
1509,
29918,
1730,
29875,
29901,
13,
9651,
1583,
29889,
1730,
29875,
29918,
20580,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
1583,
29889,
262,
9018,
267,
29892,
29871,
29906,
29892,
8466,
29918,
2311,
29922,
29896,
29892,
380,
2426,
29922,
29896,
29892,
7164,
29922,
29900,
29892,
24003,
29922,
5574,
1723,
396,
29871,
29906,
4413,
29892,
29871,
29900,
29922,
1333,
1998,
29892,
29871,
29896,
29922,
1730,
13,
9651,
1583,
29889,
1730,
29875,
29918,
2695,
3317,
353,
302,
29876,
29889,
3403,
6295,
615,
3317,
29898,
6229,
29922,
29896,
29897,
13,
308,
13,
4706,
396,
17865,
13,
4706,
363,
286,
297,
1583,
29889,
7576,
7295,
13,
9651,
565,
338,
8758,
29898,
29885,
29892,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29897,
470,
338,
8758,
29898,
29885,
29892,
15755,
29889,
1168,
29894,
4300,
4220,
29906,
29881,
1125,
13,
18884,
302,
353,
286,
29889,
17460,
29918,
2311,
29961,
29900,
29962,
334,
286,
29889,
17460,
29918,
2311,
29961,
29896,
29962,
334,
286,
29889,
449,
29918,
305,
12629,
13,
18884,
286,
29889,
7915,
29889,
1272,
29889,
8945,
23538,
29900,
29892,
5844,
29889,
3676,
29898,
29906,
29889,
847,
302,
876,
13,
9651,
25342,
338,
8758,
29898,
29885,
29892,
302,
29876,
29889,
23145,
29940,
555,
29906,
29881,
1125,
13,
18884,
286,
29889,
7915,
29889,
1272,
29889,
5589,
23538,
29896,
29897,
13,
18884,
286,
29889,
29890,
3173,
29889,
1272,
29889,
9171,
29918,
580,
13,
13,
1678,
822,
903,
5675,
29918,
22331,
29918,
13148,
29898,
1311,
29892,
297,
9018,
267,
29892,
3814,
267,
29892,
380,
2426,
29922,
29906,
1125,
13,
13,
4706,
736,
11599,
1666,
6779,
29898,
16616,
7445,
29892,
262,
9018,
267,
29892,
9018,
267,
29892,
303,
2426,
29922,
303,
2426,
29897,
13,
13,
1678,
822,
903,
5675,
29918,
7099,
3689,
29918,
13148,
29898,
1311,
29892,
297,
9018,
267,
29892,
14993,
407,
6468,
267,
29892,
316,
20580,
9018,
267,
29892,
620,
1212,
9018,
267,
29871,
1125,
13,
4706,
736,
1281,
29894,
4300,
4220,
14420,
29898,
297,
9018,
267,
29892,
14993,
407,
6468,
267,
29892,
316,
20580,
9018,
267,
29892,
620,
1212,
9018,
267,
1723,
13,
13,
1678,
822,
19750,
29898,
1311,
29892,
29916,
1125,
13,
4706,
396,
20805,
13,
4706,
921,
29871,
353,
1583,
29889,
20580,
29896,
29898,
29916,
29897,
13,
4706,
921,
29871,
353,
1583,
29889,
11197,
29896,
29898,
29916,
29897,
13,
4706,
921,
29900,
353,
1583,
29889,
2674,
29884,
29896,
29898,
29916,
29897,
13,
4706,
921,
29871,
353,
1583,
29889,
10109,
29896,
29898,
29916,
29900,
29897,
13,
13,
4706,
921,
29896,
353,
1583,
29889,
3977,
29918,
13148,
29896,
29898,
29916,
29897,
13,
4706,
921,
29906,
353,
1583,
29889,
3977,
29918,
13148,
29906,
29898,
29916,
29896,
29897,
13,
4706,
921,
29941,
353,
1583,
29889,
3977,
29918,
13148,
29941,
29898,
29916,
29906,
29897,
13,
4706,
921,
29946,
353,
1583,
29889,
3977,
29918,
13148,
29946,
29898,
29916,
29941,
29897,
13,
4706,
921,
29945,
353,
1583,
29889,
3977,
29918,
13148,
29945,
29898,
29916,
29946,
29897,
308,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
7045,
8025,
29901,
376,
13,
9651,
1596,
376,
29871,
921,
29896,
29901,
9162,
29916,
29896,
29889,
2311,
580,
13,
9651,
1596,
376,
29871,
921,
29906,
29901,
9162,
29916,
29906,
29889,
2311,
580,
13,
9651,
1596,
376,
29871,
921,
29941,
29901,
9162,
29916,
29941,
29889,
2311,
580,
13,
9651,
1596,
376,
29871,
921,
29946,
29901,
9162,
29916,
29946,
29889,
2311,
580,
13,
9651,
1596,
376,
29871,
921,
29945,
29901,
9162,
29916,
29945,
29889,
2311,
580,
13,
4706,
736,
921,
29945,
29892,
29916,
29900,
29892,
29916,
29896,
29892,
29916,
29906,
29892,
29916,
29941,
29892,
29916,
29946,
13,
308,
13,
1678,
822,
4972,
29898,
1311,
29892,
1050,
3192,
29918,
12508,
29892,
29916,
29900,
29892,
29916,
29896,
29892,
29916,
29906,
29892,
29916,
29941,
29892,
29916,
29946,
1125,
13,
4706,
9995,
1602,
3689,
304,
4972,
18988,
9995,
13,
308,
13,
4706,
921,
353,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29945,
29898,
1050,
3192,
29918,
12508,
29892,
29916,
29946,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
7045,
1602,
3689,
6160,
13,
9651,
1596,
376,
29871,
1602,
29945,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
632,
13,
4706,
921,
353,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29946,
29898,
29916,
29892,
29916,
29941,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29946,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
921,
353,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29941,
29898,
29916,
29892,
29916,
29906,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29941,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
921,
353,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29906,
29898,
29916,
29892,
29916,
29896,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29906,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
921,
353,
1583,
29889,
1731,
29918,
7099,
29918,
13148,
29896,
29898,
29916,
29892,
29916,
29900,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29896,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
736,
921,
13,
13,
1678,
822,
26401,
29898,
1311,
29892,
1050,
3192,
29918,
12508,
29892,
29916,
29900,
29892,
29916,
29896,
29892,
29916,
29906,
29892,
29916,
29941,
29892,
29916,
29946,
1125,
13,
4706,
9995,
1602,
3689,
304,
4972,
18988,
9995,
13,
308,
13,
4706,
921,
353,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29945,
29898,
1050,
3192,
29918,
12508,
29892,
29916,
29946,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
7045,
1602,
3689,
6160,
13,
9651,
1596,
376,
29871,
1602,
29945,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
632,
13,
4706,
921,
353,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29946,
29898,
29916,
29892,
29916,
29941,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29946,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
921,
353,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29941,
29898,
29916,
29892,
29916,
29906,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29941,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
921,
353,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29906,
29898,
29916,
29892,
29916,
29896,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29906,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
921,
353,
1583,
29889,
1730,
29875,
29918,
7099,
29918,
13148,
29896,
29898,
29916,
29892,
29916,
29900,
29897,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
1602,
29896,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
736,
921,
13,
632,
13,
268,
13,
1678,
822,
6375,
29898,
1311,
29892,
4765,
29892,
3646,
1125,
13,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
2080,
29901,
9162,
29916,
29889,
2311,
3285,
29908,
338,
29918,
29883,
6191,
543,
29892,
29916,
29889,
275,
29918,
29883,
6191,
13,
13,
4706,
4765,
29918,
12508,
29892,
1678,
269,
29900,
29892,
269,
29896,
29892,
269,
29906,
29892,
269,
29941,
29892,
269,
29946,
29871,
353,
1583,
29889,
12508,
29898,
4351,
29897,
13,
4706,
3646,
29918,
12508,
29892,
260,
29900,
29892,
260,
29896,
29892,
260,
29906,
29892,
260,
29941,
29892,
260,
29946,
29871,
353,
1583,
29889,
12508,
29898,
5182,
29897,
13,
13,
4706,
19412,
29918,
12508,
353,
4842,
305,
29889,
4117,
29898,
518,
5182,
29918,
12508,
29892,
4351,
29918,
12508,
1402,
29871,
29896,
1723,
13,
13,
4706,
4972,
449,
353,
1583,
29889,
1731,
29898,
19412,
29918,
12508,
29892,
269,
29900,
29892,
269,
29896,
29892,
269,
29906,
29892,
269,
29941,
29892,
269,
29946,
1723,
13,
4706,
565,
1583,
29889,
1509,
29918,
1730,
29875,
29901,
13,
9651,
1998,
29875,
449,
353,
1583,
29889,
28814,
29898,
19412,
29918,
12508,
29892,
260,
29900,
29892,
260,
29896,
29892,
260,
29906,
29892,
260,
29941,
29892,
260,
29946,
1723,
13,
13,
4706,
4972,
29918,
27711,
353,
1583,
29889,
1731,
29918,
20580,
29898,
4972,
449,
1723,
13,
308,
13,
4706,
565,
1583,
29889,
1509,
29918,
1730,
29875,
29901,
13,
9651,
1998,
29875,
29918,
27711,
353,
1583,
29889,
1730,
29875,
29918,
20580,
29898,
1998,
29875,
449,
1723,
13,
9651,
1998,
29875,
29918,
27711,
353,
1583,
29889,
1730,
29875,
29918,
2695,
3317,
29898,
1730,
29875,
29918,
27711,
29897,
13,
4706,
1683,
29901,
13,
9651,
1998,
29875,
29918,
27711,
353,
6213,
13,
308,
13,
4706,
565,
1583,
3032,
845,
1242,
7093,
29901,
13,
9651,
1596,
376,
29871,
4964,
3317,
29901,
9162,
29916,
29889,
2311,
580,
13,
308,
13,
4706,
736,
4972,
29918,
27711,
29892,
1730,
29875,
29918,
27711,
13,
13,
13,
2
] |
relaax/algorithms/ddpg/parameter_server.py | deeplearninc/relaax | 71 | 6738 | from __future__ import absolute_import
from relaax.server.parameter_server import parameter_server_base
from relaax.server.common import session
from . import ddpg_model
class ParameterServer(parameter_server_base.ParameterServerBase):
def init_session(self):
self.session = session.Session(ddpg_model.SharedParameters())
self.session.op_initialize()
self.session.op_init_target_weights()
def n_step(self):
return self.session.op_n_step()
def score(self):
return self.session.op_score()
def get_session(self):
return self.session
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
3166,
10208,
1165,
29889,
2974,
29889,
15501,
29918,
2974,
1053,
3443,
29918,
2974,
29918,
3188,
13,
3166,
10208,
1165,
29889,
2974,
29889,
9435,
1053,
4867,
13,
13,
3166,
869,
1053,
24488,
4061,
29918,
4299,
13,
13,
13,
1990,
24953,
6004,
29898,
15501,
29918,
2974,
29918,
3188,
29889,
9329,
6004,
5160,
1125,
13,
1678,
822,
2069,
29918,
7924,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7924,
353,
4867,
29889,
7317,
29898,
1289,
4061,
29918,
4299,
29889,
21741,
11507,
3101,
13,
4706,
1583,
29889,
7924,
29889,
459,
29918,
24926,
580,
13,
4706,
1583,
29889,
7924,
29889,
459,
29918,
2344,
29918,
5182,
29918,
705,
5861,
580,
13,
13,
1678,
822,
302,
29918,
10568,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
7924,
29889,
459,
29918,
29876,
29918,
10568,
580,
13,
13,
1678,
822,
8158,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
7924,
29889,
459,
29918,
13628,
580,
13,
13,
1678,
822,
679,
29918,
7924,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
7924,
13,
2
] |
PyBank/main.py | fannie-chang/Python-Challenge | 0 | 123615 | <reponame>fannie-chang/Python-Challenge<filename>PyBank/main.py
# Import os module to read CSV file
import os
import csv
# Path to collect data from the PyBank folder
budget_csv = os.path.join('..' ,'PyBank','Resources','budget_data.csv')
# Open the file
with open(budget_csv, newline='') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',')
# Skip the first row of the CSV file
csv_header = next (csvreader, None)
#Lists to budget data
date=[]
profit_losses=[]
trend_change = []
total_net_amount = 0
total_trend_change = 0
# Loop through the data
for row in csvreader:
date.append(row[0])
profit_losses.append(row[1])
# Calculate total months
total_months = list(date)
num_months = len(total_months)
# Calculate total net amount
total_net_amount = total_net_amount + int(row[1])
# Loop through data for profit_losses list
for i in range(len(profit_losses)-1):
# Calculate average trend changes (current value - previous value)
trend_change.append(int(profit_losses[i+1]) - int(profit_losses[i]))
total_trend_change = total_trend_change + (int(profit_losses[i+1]) - int(profit_losses[i]))
trend_average = round(total_trend_change / (len(total_months)-1),2)
# Calculate greatest increase and decrease
greatest_increase = max (trend_change)
greatest_decrease = min (trend_change)
# Find date for greatest increase and decrease
max_date_index = trend_change.index(greatest_increase)
max_date = date[max_date_index +1]
min_date_index = trend_change.index(greatest_decrease)
min_date = date[min_date_index +1]
# Print result
print(f"Financial Analysis ")
print(f"-------------------------------- ")
print(f"Total Months: {num_months}")
print(f"Total:${total_net_amount} ")
print(f"Average Change: ${trend_average}")
print(f"Greatest Increase in Profits: {max_date} ${greatest_increase}")
print(f"Greatest Decrease in Profits: {min_date} ${greatest_decrease}")
#Print result to text file
output_path = os.path.join('..' ,'PyBank','Analysis','financial_analysis.txt')
with open (output_path, 'w', newline="") as textfile:
print(f"Financial Analysis ", file=textfile)
print(f"--------------------------------", file=textfile )
print(f"Total Months: {num_months}", file=textfile)
print(f"Total:${total_net_amount} ", file=textfile)
print(f"Average Change: ${trend_average}", file=textfile)
print(f"Greatest Increase in Profits: {max_date} ${greatest_increase}", file=textfile)
print(f"Greatest Decrease in Profits: {min_date} ${greatest_decrease}", file=textfile)
| [
1,
529,
276,
1112,
420,
29958,
29888,
812,
347,
29899,
305,
574,
29914,
11980,
29899,
1451,
11768,
29966,
9507,
29958,
19737,
29933,
804,
29914,
3396,
29889,
2272,
13,
13,
29937,
16032,
2897,
3883,
304,
1303,
16874,
934,
13,
13,
5215,
2897,
13,
5215,
11799,
13,
13,
13,
29937,
10802,
304,
6314,
848,
515,
278,
10772,
29933,
804,
4138,
13,
13,
15841,
657,
29918,
7638,
353,
2897,
29889,
2084,
29889,
7122,
877,
636,
29915,
1919,
29915,
19737,
29933,
804,
3788,
13770,
3788,
15841,
657,
29918,
1272,
29889,
7638,
1495,
13,
13,
29937,
4673,
278,
934,
29871,
13,
13,
2541,
1722,
29898,
15841,
657,
29918,
7638,
29892,
25899,
2433,
1495,
408,
11799,
1445,
29901,
13,
13,
12,
7638,
16950,
353,
11799,
29889,
16950,
29898,
7638,
1445,
29892,
28552,
29922,
742,
1495,
13,
13,
29937,
4971,
666,
278,
937,
1948,
310,
278,
16874,
934,
13,
12,
7638,
29918,
6672,
353,
2446,
313,
7638,
16950,
29892,
6213,
29897,
13,
13,
13,
396,
1293,
29879,
304,
23562,
848,
29871,
13,
13,
12,
1256,
29922,
2636,
13,
12,
771,
9202,
29918,
6758,
267,
29922,
2636,
13,
12,
509,
355,
29918,
3167,
353,
5159,
13,
12,
13,
13,
12,
7827,
29918,
1212,
29918,
14506,
353,
29871,
29900,
29871,
13,
12,
7827,
29918,
509,
355,
29918,
3167,
353,
29871,
29900,
13,
12,
13,
12,
12,
13,
29937,
21493,
1549,
278,
848,
13,
13,
12,
1454,
1948,
297,
11799,
16950,
29901,
13,
12,
12,
13,
12,
12,
1256,
29889,
4397,
29898,
798,
29961,
29900,
2314,
13,
12,
12,
771,
9202,
29918,
6758,
267,
29889,
4397,
29898,
798,
29961,
29896,
2314,
13,
12,
12,
13,
29937,
20535,
403,
3001,
7378,
29871,
13,
13,
12,
12,
7827,
29918,
10874,
29879,
353,
1051,
29898,
1256,
29897,
13,
12,
12,
1949,
29918,
10874,
29879,
353,
7431,
29898,
7827,
29918,
10874,
29879,
29897,
13,
12,
13,
29937,
20535,
403,
3001,
7787,
5253,
13,
13,
12,
12,
7827,
29918,
1212,
29918,
14506,
353,
3001,
29918,
1212,
29918,
14506,
718,
938,
29898,
798,
29961,
29896,
2314,
13,
12,
13,
29937,
21493,
1549,
848,
363,
21665,
29918,
6758,
267,
1051,
13,
13,
12,
1454,
474,
297,
3464,
29898,
2435,
29898,
771,
9202,
29918,
6758,
267,
6817,
29896,
1125,
13,
12,
12,
12,
13,
29937,
20535,
403,
6588,
534,
355,
3620,
12,
29898,
3784,
995,
448,
3517,
995,
29897,
13,
13,
12,
12,
509,
355,
29918,
3167,
29889,
4397,
29898,
524,
29898,
771,
9202,
29918,
6758,
267,
29961,
29875,
29974,
29896,
2314,
448,
938,
29898,
771,
9202,
29918,
6758,
267,
29961,
29875,
12622,
13,
13,
12,
12,
7827,
29918,
509,
355,
29918,
3167,
353,
3001,
29918,
509,
355,
29918,
3167,
718,
313,
524,
29898,
771,
9202,
29918,
6758,
267,
29961,
29875,
29974,
29896,
2314,
448,
938,
29898,
771,
9202,
29918,
6758,
267,
29961,
29875,
12622,
13,
13,
12,
12,
509,
355,
29918,
12483,
482,
353,
4513,
29898,
7827,
29918,
509,
355,
29918,
3167,
847,
313,
2435,
29898,
7827,
29918,
10874,
29879,
6817,
29896,
511,
29906,
29897,
13,
12,
12,
13,
29937,
20535,
403,
14176,
7910,
322,
23806,
29871,
13,
13,
12,
12,
7979,
271,
342,
29918,
262,
1037,
559,
353,
4236,
313,
509,
355,
29918,
3167,
29897,
13,
12,
12,
7979,
271,
342,
29918,
311,
1037,
559,
353,
1375,
313,
509,
355,
29918,
3167,
29897,
13,
12,
12,
13,
29937,
10987,
2635,
363,
14176,
7910,
322,
23806,
12,
12,
13,
13,
12,
12,
3317,
29918,
1256,
29918,
2248,
353,
534,
355,
29918,
3167,
29889,
2248,
29898,
7979,
271,
342,
29918,
262,
1037,
559,
29897,
13,
12,
12,
3317,
29918,
1256,
353,
2635,
29961,
3317,
29918,
1256,
29918,
2248,
718,
29896,
29962,
29871,
13,
13,
12,
12,
1195,
29918,
1256,
29918,
2248,
353,
534,
355,
29918,
3167,
29889,
2248,
29898,
7979,
271,
342,
29918,
311,
1037,
559,
29897,
13,
12,
12,
1195,
29918,
1256,
353,
2635,
29961,
1195,
29918,
1256,
29918,
2248,
718,
29896,
29962,
13,
12,
13,
29937,
13905,
1121,
29871,
12,
12,
13,
12,
12,
13,
12,
2158,
29898,
29888,
29908,
12881,
273,
1455,
24352,
16521,
13,
12,
2158,
29898,
29888,
29908,
2683,
2683,
16521,
13,
12,
2158,
29898,
29888,
29908,
11536,
23471,
29879,
29901,
426,
1949,
29918,
10874,
29879,
27195,
13,
12,
2158,
29898,
29888,
29908,
11536,
29901,
5303,
7827,
29918,
1212,
29918,
14506,
29913,
16521,
13,
12,
2158,
29898,
29888,
29908,
29909,
19698,
10726,
29901,
6435,
509,
355,
29918,
12483,
482,
27195,
13,
12,
2158,
29898,
29888,
29908,
25120,
271,
342,
512,
1037,
559,
297,
6175,
1169,
29901,
426,
3317,
29918,
1256,
29913,
29871,
6435,
7979,
271,
342,
29918,
262,
1037,
559,
27195,
13,
12,
2158,
29898,
29888,
29908,
25120,
271,
342,
3826,
276,
559,
297,
6175,
1169,
29901,
426,
1195,
29918,
1256,
29913,
29871,
6435,
7979,
271,
342,
29918,
311,
1037,
559,
27195,
13,
12,
12,
12,
12,
13,
13,
13,
13,
29937,
11816,
1121,
304,
1426,
934,
13,
4905,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
877,
636,
29915,
1919,
29915,
19737,
29933,
804,
3788,
21067,
4848,
3788,
4951,
273,
1455,
29918,
15916,
29889,
3945,
1495,
13,
13,
2541,
1722,
313,
4905,
29918,
2084,
29892,
525,
29893,
742,
25899,
543,
1159,
408,
1426,
1445,
29901,
13,
12,
13,
12,
2158,
29898,
29888,
29908,
12881,
273,
1455,
24352,
9162,
934,
29922,
726,
1445,
29897,
13,
12,
2158,
29898,
29888,
29908,
2683,
2683,
613,
934,
29922,
726,
1445,
1723,
13,
12,
2158,
29898,
29888,
29908,
11536,
23471,
29879,
29901,
426,
1949,
29918,
10874,
29879,
17671,
934,
29922,
726,
1445,
29897,
13,
12,
2158,
29898,
29888,
29908,
11536,
29901,
5303,
7827,
29918,
1212,
29918,
14506,
29913,
9162,
934,
29922,
726,
1445,
29897,
13,
12,
2158,
29898,
29888,
29908,
29909,
19698,
10726,
29901,
6435,
509,
355,
29918,
12483,
482,
17671,
934,
29922,
726,
1445,
29897,
13,
12,
2158,
29898,
29888,
29908,
25120,
271,
342,
512,
1037,
559,
297,
6175,
1169,
29901,
426,
3317,
29918,
1256,
29913,
259,
6435,
7979,
271,
342,
29918,
262,
1037,
559,
17671,
934,
29922,
726,
1445,
29897,
13,
12,
2158,
29898,
29888,
29908,
25120,
271,
342,
3826,
276,
559,
297,
6175,
1169,
29901,
426,
1195,
29918,
1256,
29913,
259,
6435,
7979,
271,
342,
29918,
311,
1037,
559,
17671,
934,
29922,
726,
1445,
29897,
13,
12,
12,
12,
12,
13,
12,
13,
13,
12,
2
] |
aiidalab_widgets_base/export.py | danielhollas/aiidalab-widgets-base | 2 | 68805 | <filename>aiidalab_widgets_base/export.py
"""Widgets to manage AiiDA export."""
import os
from IPython.display import display
from ipywidgets import Button
class ExportButtonWidget(Button):
"""Export Node button."""
def __init__(self, process, **kwargs):
self.process = process
if "description" not in kwargs:
kwargs["description"] = "Export workflow ({})".format(self.process.id)
if "layout" not in kwargs:
kwargs["layout"] = {}
kwargs["layout"]["width"] = "initial"
super(ExportButtonWidget, self).__init__(**kwargs)
self.on_click(self.export_aiida_subgraph)
def export_aiida_subgraph(self, change=None): # pylint: disable=unused-argument
"""Perform export when the button is pressed"""
import base64
import subprocess
from tempfile import mkdtemp
from IPython.display import Javascript
fname = os.path.join(mkdtemp(), "export.aiida")
subprocess.call(
["verdi", "export", "create", fname, "-N", str(self.process.id)]
)
with open(fname, "rb") as fobj:
b64 = base64.b64encode(fobj.read())
payload = b64.decode()
javas = Javascript(
"""
var link = document.createElement('a');
link.href = "data:;base64,{payload}"
link.download = "{filename}"
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
""".format(
payload=payload, filename="export_{}.aiida".format(self.process.id)
)
)
display(javas)
| [
1,
529,
9507,
29958,
1794,
23670,
370,
29918,
8030,
29879,
29918,
3188,
29914,
15843,
29889,
2272,
13,
15945,
29908,
8801,
29879,
304,
10933,
319,
2236,
7698,
5609,
1213,
15945,
13,
5215,
2897,
13,
13,
3166,
5641,
1656,
29889,
4990,
1053,
2479,
13,
3166,
474,
2272,
8030,
29879,
1053,
11025,
13,
13,
13,
1990,
1222,
637,
3125,
8801,
29898,
3125,
1125,
13,
1678,
9995,
26382,
9071,
2826,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1889,
29892,
3579,
19290,
1125,
13,
4706,
1583,
29889,
5014,
353,
1889,
13,
4706,
565,
376,
8216,
29908,
451,
297,
9049,
5085,
29901,
13,
9651,
9049,
5085,
3366,
8216,
3108,
353,
376,
26382,
27321,
21313,
1800,
1642,
4830,
29898,
1311,
29889,
5014,
29889,
333,
29897,
13,
4706,
565,
376,
2680,
29908,
451,
297,
9049,
5085,
29901,
13,
9651,
9049,
5085,
3366,
2680,
3108,
353,
6571,
13,
4706,
9049,
5085,
3366,
2680,
3108,
3366,
2103,
3108,
353,
376,
11228,
29908,
13,
4706,
2428,
29898,
26382,
3125,
8801,
29892,
1583,
467,
1649,
2344,
12035,
1068,
19290,
29897,
13,
4706,
1583,
29889,
265,
29918,
3808,
29898,
1311,
29889,
15843,
29918,
1794,
1458,
29918,
1491,
4262,
29897,
13,
13,
1678,
822,
5609,
29918,
1794,
1458,
29918,
1491,
4262,
29898,
1311,
29892,
1735,
29922,
8516,
1125,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
348,
3880,
29899,
23516,
13,
4706,
9995,
5894,
689,
5609,
746,
278,
2826,
338,
15385,
15945,
29908,
13,
4706,
1053,
2967,
29953,
29946,
13,
4706,
1053,
1014,
5014,
13,
4706,
515,
5694,
1445,
1053,
14690,
29881,
7382,
13,
13,
4706,
515,
5641,
1656,
29889,
4990,
1053,
12728,
13,
13,
4706,
285,
978,
353,
2897,
29889,
2084,
29889,
7122,
29898,
11256,
29881,
7382,
3285,
376,
15843,
29889,
1794,
1458,
1159,
13,
4706,
1014,
5014,
29889,
4804,
29898,
13,
9651,
6796,
369,
6051,
613,
376,
15843,
613,
376,
3258,
613,
285,
978,
29892,
11663,
29940,
613,
851,
29898,
1311,
29889,
5014,
29889,
333,
4638,
13,
4706,
1723,
13,
4706,
411,
1722,
29898,
29888,
978,
29892,
376,
6050,
1159,
408,
285,
5415,
29901,
13,
9651,
289,
29953,
29946,
353,
2967,
29953,
29946,
29889,
29890,
29953,
29946,
12508,
29898,
29888,
5415,
29889,
949,
3101,
13,
9651,
20092,
353,
289,
29953,
29946,
29889,
13808,
580,
13,
4706,
432,
2449,
353,
12728,
29898,
13,
9651,
9995,
13,
9651,
722,
1544,
353,
1842,
29889,
22662,
877,
29874,
2157,
13,
9651,
1544,
29889,
12653,
353,
376,
1272,
29901,
29936,
3188,
29953,
29946,
29892,
29912,
23813,
5038,
13,
9651,
1544,
29889,
10382,
353,
29850,
9507,
5038,
13,
9651,
1842,
29889,
2587,
29889,
23850,
29898,
2324,
416,
13,
9651,
1544,
29889,
3808,
890,
13,
9651,
1842,
29889,
2587,
29889,
5992,
5938,
29898,
2324,
416,
13,
9651,
5124,
1642,
4830,
29898,
13,
18884,
20092,
29922,
23813,
29892,
10422,
543,
15843,
648,
1836,
1794,
1458,
1642,
4830,
29898,
1311,
29889,
5014,
29889,
333,
29897,
13,
9651,
1723,
13,
4706,
1723,
13,
4706,
2479,
29898,
29926,
2449,
29897,
13,
2
] |
flopy/utils/mfgrdfile.py | pjhaest/flopy | 0 | 162412 | import numpy as np
import collections
from ..utils.utils_def import FlopyBinaryData
from ..utils.reference import SpatialReference
class MfGrdFile(FlopyBinaryData):
def __init__(self, filename, precision='double', verbose=False):
"""
Class constructor.
"""
super(MfGrdFile, self).__init__()
self.set_float(precision=precision)
self.verbose = verbose
self._initial_len = 50
self._recorddict = collections.OrderedDict()
self._datadict = collections.OrderedDict()
self._recordkeys = []
self.file = open(filename, 'rb')
"""
# read header information
GRID DISV
VERSION 1
NTXT 13
LENTXT 100
"""
# grid type
line = self.read_text(self._initial_len).strip()
t = line.split()
self._grid = t[1]
# version
line = self.read_text(self._initial_len).strip()
t = line.split()
self._version = t[1]
# version
line = self.read_text(self._initial_len).strip()
t = line.split()
self._ntxt = int(t[1])
# length of text
line = self.read_text(self._initial_len).strip()
t = line.split()
self._lentxt = int(t[1])
# read text strings
for idx in range(self._ntxt):
line = self.read_text(self._lentxt).strip()
t = line.split()
key = t[0]
dt = t[1]
if dt == 'INTEGER':
dtype = np.int32
elif dt == 'SINGLE':
dtype = np.float32
elif dt == 'DOUBLE':
dtype = np.float64
else:
dtype = None
nd = int(t[3])
if nd > 0:
shp = [int(v) for v in t[4:]]
shp = tuple(shp[::-1])
else:
shp = (0,)
self._recorddict[key] = (dtype, nd, shp)
self._recordkeys.append(key)
if self.verbose:
print('read {} records from {}'.format(self._ntxt, filename))
for key in self._recordkeys:
dt, nd, shp = self._recorddict[key]
# read array data
if nd > 0:
count = 1
for v in shp:
count *= v
v = self.read_record(count=count, dtype=dt)
# read variable data
else:
if dt == np.int32:
v = self.read_integer()
elif dt == np.float32:
v = self.read_real()
elif dt == np.float64:
v = self.read_real()
self._datadict[key] = v
# set the spatial reference
self.sr = self._set_spatialreference()
def _set_spatialreference(self):
try:
if self._grid == 'DISV':
sr = None
elif self._grid == 'DIS':
delr, delc = self._datadict['DELR'], self._datadict['DELC']
xorigin, yorigin, rot = self._datadict['XORIGIN'], \
self._datadict['YORIGIN'], \
self._datadict['ANGROT']
sr = SpatialReference(delr=delr, delc=delc,
xll=xorigin, yll=yorigin, rotation=rot)
except:
sr = None
print('could not set spatial reference for {}'.format(self.file.name))
return sr
def get_spatialreference(self):
return self.sr
def get_centroids(self):
x, y = None, None
try:
if self._grid == 'DISV':
x = self._datadict['CELLX']
y = self._datadict['CELLY']
elif self._grid == 'DIS':
nlay = self._datadict['NLAY']
x = np.tile(self.sr.xcentergrid.flatten(), nlay)
y = np.tile(self.sr.ycentergrid.flatten(), nlay)
except:
print('could not return centroids' +
' for {}'.format(self.file.name))
return np.column_stack((x, y))
def get_verts(self):
if self._grid == 'DISV':
try:
iverts = []
iavert = self._datadict['IAVERT']
javert = self._datadict['JAVERT']
shpvert = self._recorddict['VERTICES'][2]
for ivert in range(self._datadict['NCPL']):
i0 = iavert[ivert] - 1
i1 = iavert[ivert+1] - 1
iverts.append((javert[i0:i1]-1).tolist())
if self.verbose:
print('returning vertices for {}'.format(self.file.name))
return iverts, self._datadict['VERTICES'].reshape(shpvert)
except:
print('could not return vertices for {}'.format(self.file.name))
elif self._grid == 'DIS':
try:
nlay, nrow, ncol = self._datadict['NLAY'], \
self._datadict['NROW'], \
self._datadict['NCOL']
iv = 0
verts = []
iverts = []
for k in range(nlay):
for i in range(nrow):
for j in range(ncol):
ivlist = []
v = self.sr.get_vertices(i, j)
for (x, y) in v:
verts.append((x, y))
ivlist.append(iv)
iv += 1
iverts.append(ivlist)
verts = np.array(verts)
return iverts, verts
except:
print('could not return vertices for {}'.format(self.file.name))
| [
1,
1053,
12655,
408,
7442,
13,
5215,
16250,
13,
13,
3166,
6317,
13239,
29889,
13239,
29918,
1753,
1053,
26043,
2272,
25196,
1469,
13,
3166,
6317,
13239,
29889,
5679,
1053,
1706,
15238,
7422,
13,
13,
1990,
341,
29888,
3338,
29881,
2283,
29898,
29943,
417,
2272,
25196,
1469,
1125,
13,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
10422,
29892,
16716,
2433,
8896,
742,
26952,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
4134,
5823,
29889,
13,
13,
4706,
9995,
13,
13,
13,
4706,
2428,
29898,
29924,
29888,
3338,
29881,
2283,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
842,
29918,
7411,
29898,
17990,
2459,
29922,
17990,
2459,
29897,
13,
4706,
1583,
29889,
369,
15828,
353,
26952,
13,
4706,
1583,
3032,
11228,
29918,
2435,
353,
29871,
29945,
29900,
13,
4706,
1583,
3032,
11651,
8977,
353,
16250,
29889,
7514,
287,
21533,
580,
13,
4706,
1583,
3032,
4130,
328,
919,
353,
16250,
29889,
7514,
287,
21533,
580,
13,
4706,
1583,
3032,
11651,
8149,
353,
5159,
13,
13,
4706,
1583,
29889,
1445,
353,
1722,
29898,
9507,
29892,
525,
6050,
1495,
13,
4706,
9995,
13,
4706,
396,
1303,
4839,
2472,
13,
4706,
18016,
1367,
28657,
29963,
13,
4706,
478,
1001,
13381,
29871,
29896,
13,
4706,
405,
29911,
12188,
29871,
29896,
29941,
13,
4706,
365,
3919,
12188,
29871,
29896,
29900,
29900,
13,
4706,
9995,
13,
13,
4706,
396,
6856,
1134,
13,
4706,
1196,
353,
1583,
29889,
949,
29918,
726,
29898,
1311,
3032,
11228,
29918,
2435,
467,
17010,
580,
13,
4706,
260,
353,
1196,
29889,
5451,
580,
13,
4706,
1583,
3032,
7720,
353,
260,
29961,
29896,
29962,
13,
13,
4706,
396,
1873,
13,
4706,
1196,
353,
1583,
29889,
949,
29918,
726,
29898,
1311,
3032,
11228,
29918,
2435,
467,
17010,
580,
13,
4706,
260,
353,
1196,
29889,
5451,
580,
13,
4706,
1583,
3032,
3259,
353,
260,
29961,
29896,
29962,
13,
13,
4706,
396,
1873,
13,
4706,
1196,
353,
1583,
29889,
949,
29918,
726,
29898,
1311,
3032,
11228,
29918,
2435,
467,
17010,
580,
13,
4706,
260,
353,
1196,
29889,
5451,
580,
13,
4706,
1583,
3032,
593,
486,
353,
938,
29898,
29873,
29961,
29896,
2314,
13,
13,
4706,
396,
3309,
310,
1426,
13,
4706,
1196,
353,
1583,
29889,
949,
29918,
726,
29898,
1311,
3032,
11228,
29918,
2435,
467,
17010,
580,
13,
4706,
260,
353,
1196,
29889,
5451,
580,
13,
4706,
1583,
3032,
29880,
296,
486,
353,
938,
29898,
29873,
29961,
29896,
2314,
13,
13,
4706,
396,
1303,
1426,
6031,
13,
4706,
363,
22645,
297,
3464,
29898,
1311,
3032,
593,
486,
1125,
13,
9651,
1196,
353,
1583,
29889,
949,
29918,
726,
29898,
1311,
3032,
29880,
296,
486,
467,
17010,
580,
13,
9651,
260,
353,
1196,
29889,
5451,
580,
13,
9651,
1820,
353,
260,
29961,
29900,
29962,
13,
9651,
11636,
353,
260,
29961,
29896,
29962,
13,
9651,
565,
11636,
1275,
525,
1177,
4330,
17070,
2396,
13,
18884,
26688,
353,
7442,
29889,
524,
29941,
29906,
13,
9651,
25342,
11636,
1275,
525,
29903,
4214,
1307,
2396,
13,
18884,
26688,
353,
7442,
29889,
7411,
29941,
29906,
13,
9651,
25342,
11636,
1275,
525,
3970,
7466,
1307,
2396,
13,
18884,
26688,
353,
7442,
29889,
7411,
29953,
29946,
13,
9651,
1683,
29901,
13,
18884,
26688,
353,
6213,
13,
632,
299,
353,
938,
29898,
29873,
29961,
29941,
2314,
13,
9651,
565,
29871,
299,
1405,
29871,
29900,
29901,
13,
18884,
528,
29886,
353,
518,
524,
29898,
29894,
29897,
363,
325,
297,
260,
29961,
29946,
29901,
5262,
13,
18884,
528,
29886,
353,
18761,
29898,
845,
29886,
29961,
1057,
29899,
29896,
2314,
13,
9651,
1683,
29901,
13,
18884,
528,
29886,
353,
313,
29900,
29892,
29897,
13,
9651,
1583,
3032,
11651,
8977,
29961,
1989,
29962,
353,
313,
29881,
1853,
29892,
29871,
299,
29892,
528,
29886,
29897,
13,
9651,
1583,
3032,
11651,
8149,
29889,
4397,
29898,
1989,
29897,
13,
13,
4706,
565,
1583,
29889,
369,
15828,
29901,
13,
9651,
1596,
877,
949,
6571,
6475,
515,
6571,
4286,
4830,
29898,
1311,
3032,
593,
486,
29892,
10422,
876,
13,
13,
4706,
363,
1820,
297,
1583,
3032,
11651,
8149,
29901,
13,
9651,
11636,
29892,
29871,
299,
29892,
528,
29886,
353,
1583,
3032,
11651,
8977,
29961,
1989,
29962,
13,
9651,
396,
1303,
1409,
848,
13,
9651,
565,
29871,
299,
1405,
29871,
29900,
29901,
13,
18884,
2302,
353,
29871,
29896,
13,
18884,
363,
325,
297,
528,
29886,
29901,
13,
462,
1678,
2302,
334,
29922,
325,
13,
18884,
325,
353,
1583,
29889,
949,
29918,
11651,
29898,
2798,
29922,
2798,
29892,
26688,
29922,
6008,
29897,
13,
9651,
396,
1303,
2286,
848,
13,
9651,
1683,
29901,
13,
18884,
565,
11636,
1275,
7442,
29889,
524,
29941,
29906,
29901,
13,
462,
1678,
325,
353,
1583,
29889,
949,
29918,
16031,
580,
13,
18884,
25342,
11636,
1275,
7442,
29889,
7411,
29941,
29906,
29901,
13,
462,
1678,
325,
353,
1583,
29889,
949,
29918,
6370,
580,
13,
18884,
25342,
11636,
1275,
7442,
29889,
7411,
29953,
29946,
29901,
13,
462,
1678,
325,
353,
1583,
29889,
949,
29918,
6370,
580,
13,
9651,
1583,
3032,
4130,
328,
919,
29961,
1989,
29962,
353,
325,
13,
13,
4706,
396,
731,
278,
18652,
3407,
13,
4706,
1583,
29889,
21935,
353,
1583,
3032,
842,
29918,
1028,
15238,
5679,
580,
13,
13,
1678,
822,
903,
842,
29918,
1028,
15238,
5679,
29898,
1311,
1125,
13,
4706,
1018,
29901,
13,
9651,
565,
1583,
3032,
7720,
1275,
525,
23711,
29963,
2396,
13,
18884,
27236,
353,
6213,
13,
9651,
25342,
1583,
3032,
7720,
1275,
525,
23711,
2396,
13,
18884,
628,
29878,
29892,
628,
29883,
353,
1583,
3032,
4130,
328,
919,
1839,
2287,
29519,
7464,
1583,
3032,
4130,
328,
919,
1839,
2287,
12182,
2033,
13,
18884,
921,
12574,
29892,
343,
12574,
29892,
5731,
353,
1583,
3032,
4130,
328,
919,
1839,
29990,
1955,
6259,
1177,
7464,
320,
13,
462,
462,
4706,
1583,
3032,
4130,
328,
919,
1839,
29979,
1955,
6259,
1177,
7464,
320,
13,
462,
462,
4706,
1583,
3032,
4130,
328,
919,
1839,
19453,
1672,
29911,
2033,
13,
18884,
27236,
353,
1706,
15238,
7422,
29898,
6144,
29878,
29922,
6144,
29878,
29892,
628,
29883,
29922,
6144,
29883,
29892,
13,
462,
462,
418,
921,
645,
29922,
29916,
12574,
29892,
343,
645,
29922,
29891,
12574,
29892,
13733,
29922,
5450,
29897,
13,
4706,
5174,
29901,
13,
9651,
27236,
353,
6213,
13,
9651,
1596,
877,
26680,
451,
731,
18652,
3407,
363,
6571,
4286,
4830,
29898,
1311,
29889,
1445,
29889,
978,
876,
13,
13,
4706,
736,
27236,
13,
13,
1678,
822,
679,
29918,
1028,
15238,
5679,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
21935,
13,
13,
1678,
822,
679,
29918,
1760,
1007,
29879,
29898,
1311,
1125,
13,
4706,
921,
29892,
343,
353,
6213,
29892,
6213,
13,
4706,
1018,
29901,
13,
9651,
565,
1583,
3032,
7720,
1275,
525,
23711,
29963,
2396,
13,
18884,
921,
353,
1583,
3032,
4130,
328,
919,
1839,
4741,
2208,
29990,
2033,
13,
18884,
343,
353,
1583,
3032,
4130,
328,
919,
1839,
4741,
2208,
29979,
2033,
13,
9651,
25342,
1583,
3032,
7720,
1275,
525,
23711,
2396,
13,
18884,
302,
8387,
353,
1583,
3032,
4130,
328,
919,
1839,
29940,
18799,
2033,
13,
18884,
921,
353,
7442,
29889,
29873,
488,
29898,
1311,
29889,
21935,
29889,
29916,
5064,
7720,
29889,
1579,
8606,
3285,
302,
8387,
29897,
13,
18884,
343,
353,
7442,
29889,
29873,
488,
29898,
1311,
29889,
21935,
29889,
29891,
5064,
7720,
29889,
1579,
8606,
3285,
302,
8387,
29897,
13,
4706,
5174,
29901,
13,
9651,
1596,
877,
26680,
451,
736,
1644,
1007,
29879,
29915,
718,
13,
462,
29871,
525,
363,
6571,
4286,
4830,
29898,
1311,
29889,
1445,
29889,
978,
876,
13,
4706,
736,
7442,
29889,
4914,
29918,
1429,
3552,
29916,
29892,
343,
876,
13,
13,
1678,
822,
679,
29918,
369,
1372,
29898,
1311,
1125,
13,
4706,
565,
1583,
3032,
7720,
1275,
525,
23711,
29963,
2396,
13,
9651,
1018,
29901,
13,
18884,
474,
369,
1372,
353,
5159,
13,
462,
423,
1765,
353,
1583,
3032,
4130,
328,
919,
1839,
10764,
5348,
29911,
2033,
13,
18884,
12337,
1765,
353,
1583,
3032,
4130,
328,
919,
1839,
29967,
29909,
5348,
29911,
2033,
13,
18884,
528,
29886,
1765,
353,
1583,
3032,
11651,
8977,
1839,
5348,
29911,
2965,
2890,
2033,
29961,
29906,
29962,
13,
18884,
363,
474,
1765,
297,
3464,
29898,
1311,
3032,
4130,
328,
919,
1839,
29940,
6271,
29931,
2033,
1125,
13,
462,
1678,
474,
29900,
353,
29871,
423,
1765,
29961,
29875,
1765,
29962,
448,
29871,
29896,
13,
462,
1678,
474,
29896,
353,
29871,
423,
1765,
29961,
29875,
1765,
29974,
29896,
29962,
448,
29871,
29896,
13,
462,
1678,
474,
369,
1372,
29889,
4397,
3552,
1764,
1765,
29961,
29875,
29900,
29901,
29875,
29896,
29962,
29899,
29896,
467,
25027,
391,
3101,
13,
18884,
565,
1583,
29889,
369,
15828,
29901,
13,
462,
1678,
1596,
877,
2457,
292,
13791,
363,
6571,
4286,
4830,
29898,
1311,
29889,
1445,
29889,
978,
876,
13,
18884,
736,
474,
369,
1372,
29892,
1583,
3032,
4130,
328,
919,
1839,
5348,
29911,
2965,
2890,
13359,
690,
14443,
29898,
845,
29886,
1765,
29897,
13,
9651,
5174,
29901,
13,
18884,
1596,
877,
26680,
451,
736,
13791,
363,
6571,
4286,
4830,
29898,
1311,
29889,
1445,
29889,
978,
876,
13,
4706,
25342,
1583,
3032,
7720,
1275,
525,
23711,
2396,
13,
9651,
1018,
29901,
13,
18884,
302,
8387,
29892,
302,
798,
29892,
302,
1054,
353,
1583,
3032,
4130,
328,
919,
1839,
29940,
18799,
7464,
320,
13,
462,
462,
259,
1583,
3032,
4130,
328,
919,
1839,
29940,
25180,
7464,
320,
13,
462,
462,
259,
1583,
3032,
4130,
328,
919,
1839,
29940,
15032,
2033,
13,
18884,
20444,
353,
29871,
29900,
13,
18884,
4837,
29879,
353,
5159,
13,
18884,
474,
369,
1372,
353,
5159,
13,
18884,
363,
413,
297,
3464,
29898,
29876,
8387,
1125,
13,
462,
1678,
363,
474,
297,
3464,
29898,
29876,
798,
1125,
13,
462,
4706,
363,
432,
297,
3464,
29898,
29876,
1054,
1125,
13,
462,
9651,
20444,
1761,
353,
5159,
13,
462,
9651,
325,
353,
1583,
29889,
21935,
29889,
657,
29918,
1765,
1575,
29898,
29875,
29892,
432,
29897,
13,
462,
9651,
363,
313,
29916,
29892,
343,
29897,
297,
325,
29901,
13,
462,
18884,
4837,
29879,
29889,
4397,
3552,
29916,
29892,
343,
876,
13,
462,
18884,
20444,
1761,
29889,
4397,
29898,
440,
29897,
13,
462,
18884,
20444,
4619,
29871,
29896,
13,
462,
9651,
474,
369,
1372,
29889,
4397,
29898,
440,
1761,
29897,
13,
18884,
4837,
29879,
353,
7442,
29889,
2378,
29898,
369,
1372,
29897,
13,
18884,
736,
474,
369,
1372,
29892,
4837,
29879,
13,
9651,
5174,
29901,
13,
18884,
1596,
877,
26680,
451,
736,
13791,
363,
6571,
4286,
4830,
29898,
1311,
29889,
1445,
29889,
978,
876,
13,
13,
13,
13,
13,
2
] |
dataworkspace/dataworkspace/tests/eventlog/test_views.py | uktrade/jupyterhub-data-auth-admin | 1 | 130622 | <filename>dataworkspace/dataworkspace/tests/eventlog/test_views.py
from django.urls import reverse
from dataworkspace.tests import factories
from dataworkspace.tests.common import BaseAdminTestCase
class TestEventLogAdmin(BaseAdminTestCase):
def test_event_log_csv_download(self):
event1 = factories.EventLogFactory.create(
user=self.user, related_object=factories.ReferenceDatasetFactory.create()
)
event2 = factories.EventLogFactory.create(
related_object=factories.DatabaseFactory.create()
)
response = self._authenticated_post(
reverse("admin:eventlog_eventlog_changelist"),
{"action": "export_events", "_selected_action": [event1.id, event2.id]},
)
self.assertContains(response, '"timestamp","user","event_type","related_object","extra"')
self.assertEqual(len(response.content.splitlines()), 3)
| [
1,
529,
9507,
29958,
1272,
1287,
3493,
29914,
1272,
1287,
3493,
29914,
21150,
29914,
3696,
1188,
29914,
1688,
29918,
7406,
29889,
2272,
13,
3166,
9557,
29889,
26045,
1053,
11837,
13,
13,
3166,
848,
1287,
3493,
29889,
21150,
1053,
2114,
3842,
13,
3166,
848,
1287,
3493,
29889,
21150,
29889,
9435,
1053,
7399,
12754,
3057,
8259,
13,
13,
13,
1990,
4321,
2624,
3403,
12754,
29898,
5160,
12754,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
3696,
29918,
1188,
29918,
7638,
29918,
10382,
29898,
1311,
1125,
13,
4706,
1741,
29896,
353,
2114,
3842,
29889,
2624,
3403,
5126,
29889,
3258,
29898,
13,
9651,
1404,
29922,
1311,
29889,
1792,
29892,
4475,
29918,
3318,
29922,
17028,
3842,
29889,
7422,
16390,
24541,
5126,
29889,
3258,
580,
13,
4706,
1723,
13,
4706,
1741,
29906,
353,
2114,
3842,
29889,
2624,
3403,
5126,
29889,
3258,
29898,
13,
9651,
4475,
29918,
3318,
29922,
17028,
3842,
29889,
9112,
5126,
29889,
3258,
580,
13,
4706,
1723,
13,
4706,
2933,
353,
1583,
3032,
27218,
630,
29918,
2490,
29898,
13,
9651,
11837,
703,
6406,
29901,
3696,
1188,
29918,
3696,
1188,
29918,
305,
9477,
391,
4968,
13,
9651,
8853,
2467,
1115,
376,
15843,
29918,
13604,
613,
11119,
8391,
29918,
2467,
1115,
518,
3696,
29896,
29889,
333,
29892,
1741,
29906,
29889,
333,
29962,
1118,
13,
4706,
1723,
13,
4706,
1583,
29889,
9294,
21409,
29898,
5327,
29892,
18793,
16394,
3284,
1792,
3284,
3696,
29918,
1853,
3284,
12817,
29918,
3318,
3284,
17833,
29908,
1495,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
5327,
29889,
3051,
29889,
5451,
9012,
25739,
29871,
29941,
29897,
13,
2
] |
onirim/card/_base.py | cwahbong/onirim-py | 0 | 148550 | """
Inner module for enumerations and base types.
"""
import logging
from onirim import util
LOGGER = logging.getLogger(__name__)
class Color(util.AutoNumberEnum):
"""
Enumerated colors of cards.
Attributes:
red
blue
green
yellow
"""
red = ()
blue = ()
green = ()
yellow = ()
class Card:
"""
A card in onirim.
All cards in onirim inherits from this class. Methods called by some event
has a single parameter `core` (:py:class:`onirim.core.Core`) for accessing the game
information.
"""
_color = None
_kind = None
def _color_name(self):
return self._color.name if self._color else "nocolor"
def _kind_name(self):
return self._kind.name if self._kind else "nokind"
def _class_name(self):
return self.__class__.__name__[1:].lower()
@property
def color(self):
"""
Color of a card.
Returns:
The color of card if it has color, None otherwise.
Currently only nightmare cards have no color.
"""
return self._color
@property
def kind(self):
"""
Kind of a card if it is a location.
Returns:
The kind of card if it is a location, None otherwise.
"""
return self._kind
def _do_drawn(self, core):
raise NotImplementedError
def drawn(self, core):
"""
Called while this card is drawn.
"""
LOGGER.debug("A card is drawn, %r.", self)
self._do_drawn(core)
def _do_play(self, core):
raise NotImplementedError
def play(self, core):
"""
Called while this card is played.
"""
LOGGER.debug(
"A card is played, color=%s, kind=%s.",
self._color_name(),
self._kind_name())
self._do_play(core)
def _do_discard(self, core):
raise NotImplementedError
def discard(self, core):
"""
Called while this card is discarded.
"""
LOGGER.debug(
"A card is discarded, color=%s, kind=%s.",
self._color_name(),
self._kind_name())
self._do_discard(core)
def __eq__(self, other):
return self._kind == other.kind and self._color == other.color
def __hash__(self):
key_int = self.kind.value if self.kind else 0
color_int = self.color.value if self.color else 0
return key_int * 10 + color_int
def __str__(self):
return "{1} {0} card".format(self._class_name(), self._color_name())
def __repr__(self):
return "Card{{color: {}, kind: {}}}".format(self._color, self._kind)
class ColorCard(Card):
"""A card with color."""
def __init__(self, color):
# pylint is not smart enough to recognize enum class so we disable the
# function arguments check here.
self._color = Color(color) #pylint: disable=too-many-function-args
| [
1,
9995,
13,
27748,
3883,
363,
22447,
800,
322,
2967,
4072,
29889,
13,
15945,
29908,
13,
13,
5215,
12183,
13,
13,
3166,
373,
381,
326,
1053,
3667,
13,
13,
13,
14480,
17070,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
13,
1990,
9159,
29898,
4422,
29889,
12300,
4557,
16854,
1125,
13,
1678,
9995,
13,
1678,
1174,
4680,
630,
11955,
310,
15889,
29889,
13,
13,
1678,
6212,
5026,
29901,
13,
4706,
2654,
13,
4706,
7254,
13,
4706,
7933,
13,
4706,
13328,
13,
1678,
9995,
13,
1678,
2654,
353,
3861,
13,
1678,
7254,
353,
3861,
13,
1678,
7933,
353,
3861,
13,
1678,
13328,
353,
3861,
13,
13,
13,
1990,
9160,
29901,
13,
1678,
9995,
13,
1678,
319,
5881,
297,
373,
381,
326,
29889,
13,
13,
1678,
2178,
15889,
297,
373,
381,
326,
7846,
1169,
515,
445,
770,
29889,
8108,
29879,
2000,
491,
777,
1741,
13,
1678,
756,
263,
2323,
3443,
421,
3221,
29952,
13940,
2272,
29901,
1990,
18078,
265,
381,
326,
29889,
3221,
29889,
9203,
6348,
363,
17378,
278,
3748,
13,
1678,
2472,
29889,
13,
1678,
9995,
13,
13,
1678,
903,
2780,
353,
6213,
13,
1678,
903,
14380,
353,
6213,
13,
13,
1678,
822,
903,
2780,
29918,
978,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
2780,
29889,
978,
565,
1583,
3032,
2780,
1683,
376,
10763,
324,
272,
29908,
13,
13,
1678,
822,
903,
14380,
29918,
978,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
14380,
29889,
978,
565,
1583,
3032,
14380,
1683,
376,
29876,
554,
513,
29908,
13,
13,
1678,
822,
903,
1990,
29918,
978,
29898,
1311,
1125,
13,
4706,
736,
1583,
17255,
1990,
1649,
17255,
978,
1649,
29961,
29896,
29901,
1822,
13609,
580,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2927,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
9159,
310,
263,
5881,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
450,
2927,
310,
5881,
565,
372,
756,
2927,
29892,
6213,
6467,
29889,
13,
9651,
15447,
871,
4646,
29885,
598,
15889,
505,
694,
2927,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
2780,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2924,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
13187,
310,
263,
5881,
565,
372,
338,
263,
4423,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
450,
2924,
310,
5881,
565,
372,
338,
263,
4423,
29892,
6213,
6467,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
14380,
13,
13,
1678,
822,
903,
1867,
29918,
19811,
1233,
29898,
1311,
29892,
7136,
1125,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
822,
12061,
29898,
1311,
29892,
7136,
1125,
13,
4706,
9995,
13,
4706,
3037,
839,
1550,
445,
5881,
338,
12061,
29889,
13,
4706,
9995,
13,
4706,
25401,
17070,
29889,
8382,
703,
29909,
5881,
338,
12061,
29892,
1273,
29878,
19602,
1583,
29897,
13,
4706,
1583,
3032,
1867,
29918,
19811,
1233,
29898,
3221,
29897,
13,
13,
1678,
822,
903,
1867,
29918,
1456,
29898,
1311,
29892,
7136,
1125,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
822,
1708,
29898,
1311,
29892,
7136,
1125,
13,
4706,
9995,
13,
4706,
3037,
839,
1550,
445,
5881,
338,
5318,
29889,
13,
4706,
9995,
13,
4706,
25401,
17070,
29889,
8382,
29898,
13,
9651,
376,
29909,
5881,
338,
5318,
29892,
2927,
16328,
29879,
29892,
2924,
16328,
29879,
19602,
13,
9651,
1583,
3032,
2780,
29918,
978,
3285,
13,
9651,
1583,
3032,
14380,
29918,
978,
3101,
13,
4706,
1583,
3032,
1867,
29918,
1456,
29898,
3221,
29897,
13,
13,
1678,
822,
903,
1867,
29918,
2218,
7543,
29898,
1311,
29892,
7136,
1125,
13,
4706,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
822,
2313,
538,
29898,
1311,
29892,
7136,
1125,
13,
4706,
9995,
13,
4706,
3037,
839,
1550,
445,
5881,
338,
2313,
25600,
29889,
13,
4706,
9995,
13,
4706,
25401,
17070,
29889,
8382,
29898,
13,
9651,
376,
29909,
5881,
338,
2313,
25600,
29892,
2927,
16328,
29879,
29892,
2924,
16328,
29879,
19602,
13,
9651,
1583,
3032,
2780,
29918,
978,
3285,
13,
9651,
1583,
3032,
14380,
29918,
978,
3101,
13,
4706,
1583,
3032,
1867,
29918,
2218,
7543,
29898,
3221,
29897,
13,
13,
1678,
822,
4770,
1837,
12035,
1311,
29892,
916,
1125,
13,
4706,
736,
1583,
3032,
14380,
1275,
916,
29889,
14380,
322,
1583,
3032,
2780,
1275,
916,
29889,
2780,
13,
13,
1678,
822,
4770,
8568,
12035,
1311,
1125,
13,
4706,
1820,
29918,
524,
353,
1583,
29889,
14380,
29889,
1767,
565,
1583,
29889,
14380,
1683,
29871,
29900,
13,
4706,
2927,
29918,
524,
353,
1583,
29889,
2780,
29889,
1767,
565,
1583,
29889,
2780,
1683,
29871,
29900,
13,
4706,
736,
1820,
29918,
524,
334,
29871,
29896,
29900,
718,
2927,
29918,
524,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
29850,
29896,
29913,
426,
29900,
29913,
5881,
1642,
4830,
29898,
1311,
3032,
1990,
29918,
978,
3285,
1583,
3032,
2780,
29918,
978,
3101,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
376,
13200,
6224,
2780,
29901,
24335,
2924,
29901,
426,
12499,
1642,
4830,
29898,
1311,
3032,
2780,
29892,
1583,
3032,
14380,
29897,
13,
13,
13,
1990,
9159,
13200,
29898,
13200,
1125,
13,
1678,
9995,
29909,
5881,
411,
2927,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2927,
1125,
13,
4706,
396,
282,
2904,
524,
338,
451,
15040,
3307,
304,
18720,
14115,
770,
577,
591,
11262,
278,
13,
4706,
396,
740,
6273,
1423,
1244,
29889,
13,
4706,
1583,
3032,
2780,
353,
9159,
29898,
2780,
29897,
396,
2272,
27854,
29901,
11262,
29922,
517,
29877,
29899,
13011,
29899,
2220,
29899,
5085,
13,
2
] |
DAG/pipeline/service.py | zj-myidea/MYIDEA | 0 | 78966 | <gh_stars>0
from .model import Vertex, Graph, Edge,db, Pipeline, Track
from .config import getlogger
from functools import wraps
from collections import defaultdict
logger = getlogger(__name__,'./recode.log')
def transactional(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
ret = fn(*args, **kwargs)
try:
db.session.commit()
except Exception as e:
db.session.rollback()
logger.error(e)
return ret
return wrapper
@transactional
def create_graph(name,desc=None):
graph = Graph()
graph.name = name
graph.desc = desc
db.session.add(graph)
return graph
@transactional
def add_vertex(graph:Graph, name:str, input=None, script=None,):
vertex = Vertex()
vertex.g_id = graph.id
vertex.name = name
vertex.input = input
vertex.script = script
db.session.add(vertex)
return vertex
@transactional
def add_edge(graph:Graph, tail:Vertex, head:Vertex):
edge = Edge()
edge.g_id = graph.id
edge.head = head.id
edge.tail = tail.id
db.session.add(edge)
return edge
def delete_vertex(id):
query = db.session.query(Vertex).filter(Vertex.id==id)
v = query.first()
if v:
db.session.query(Edge).filter(Edge.tail == v.id | Edge.head == v.id).delete()
query.delete()
return v
def check_graph(graph:Graph):
query = db.session.query(Vertex).filter(Vertex.g_id==graph.id)
vertexs = {vertex.id for vertex in query}
query = db.session.query(Edge).filter(Edge.g_id==graph.id)
edges = defaultdict(list)
ids = set()
for edge in query:
edges[edge.tail].append((edge.tail, edge.head))
ids.add(edge.head)
if len(edges) == 0:
print('edge')
return False
zds = vertexs - ids
if len(zds): # {a:[(a,b),(a,c)],b:[(b,d)]}
for zd in zds:
if zd in edges:
edges.pop(zd)
while edges:
print(edges)
vertexs = ids
ids = set()
for lis in edges.values():
for edge in lis:
ids.add(edge[1])
zds = vertexs - ids
if not len(zds):
print('zds')
break
else:
for zd in zds:
edges.pop(zd)
if len(edges) == 0:
try:
graph = db.session.query(Graph).filter(Graph.id ==graph.id).first()
if graph:
graph.checked = 1
db.session.add(graph)
db.session.commit()
print('++++++++++++++++++++')
return True
except Exception as e:
db.session.rollback()
raise e
print('~~~~~~~~~~~~')
return False
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
869,
4299,
1053,
1798,
4776,
29892,
12367,
29892,
21086,
29892,
2585,
29892,
349,
23828,
29892,
17026,
13,
3166,
869,
2917,
1053,
679,
21707,
13,
3166,
2090,
312,
8789,
1053,
11463,
567,
13,
3166,
16250,
1053,
2322,
8977,
13,
13,
13,
13,
21707,
353,
679,
21707,
22168,
978,
1649,
29892,
4286,
29914,
276,
401,
29889,
1188,
1495,
13,
13,
1753,
10804,
284,
29898,
9144,
1125,
13,
13,
1678,
732,
29893,
336,
567,
29898,
9144,
29897,
13,
1678,
822,
14476,
10456,
5085,
29892,
3579,
19290,
1125,
13,
13,
4706,
3240,
353,
7876,
10456,
5085,
29892,
3579,
19290,
29897,
13,
4706,
1018,
29901,
13,
9651,
4833,
29889,
7924,
29889,
15060,
580,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
4833,
29889,
7924,
29889,
1245,
1627,
580,
13,
9651,
17927,
29889,
2704,
29898,
29872,
29897,
13,
4706,
736,
3240,
13,
1678,
736,
14476,
13,
13,
13,
13,
29992,
20736,
284,
13,
1753,
1653,
29918,
4262,
29898,
978,
29892,
14273,
29922,
8516,
1125,
13,
1678,
3983,
353,
12367,
580,
13,
1678,
3983,
29889,
978,
353,
1024,
13,
1678,
3983,
29889,
14273,
353,
5153,
13,
1678,
4833,
29889,
7924,
29889,
1202,
29898,
4262,
29897,
13,
1678,
736,
3983,
13,
13,
29992,
20736,
284,
13,
1753,
788,
29918,
369,
4776,
29898,
4262,
29901,
9527,
29892,
1024,
29901,
710,
29892,
1881,
29922,
8516,
29892,
2471,
29922,
8516,
29892,
1125,
13,
1678,
12688,
353,
1798,
4776,
580,
13,
1678,
12688,
29889,
29887,
29918,
333,
353,
3983,
29889,
333,
13,
1678,
12688,
29889,
978,
353,
1024,
13,
1678,
12688,
29889,
2080,
353,
1881,
13,
1678,
12688,
29889,
2154,
353,
2471,
13,
1678,
4833,
29889,
7924,
29889,
1202,
29898,
369,
4776,
29897,
13,
13,
1678,
736,
12688,
13,
13,
29992,
20736,
284,
13,
1753,
788,
29918,
12864,
29898,
4262,
29901,
9527,
29892,
12464,
29901,
22479,
29892,
2343,
29901,
22479,
1125,
13,
1678,
7636,
353,
21086,
580,
13,
1678,
7636,
29889,
29887,
29918,
333,
353,
3983,
29889,
333,
13,
1678,
7636,
29889,
2813,
353,
2343,
29889,
333,
13,
1678,
7636,
29889,
18237,
353,
12464,
29889,
333,
13,
1678,
4833,
29889,
7924,
29889,
1202,
29898,
12864,
29897,
13,
13,
1678,
736,
29871,
7636,
13,
13,
1753,
5217,
29918,
369,
4776,
29898,
333,
1125,
13,
1678,
2346,
353,
4833,
29889,
7924,
29889,
1972,
29898,
22479,
467,
4572,
29898,
22479,
29889,
333,
1360,
333,
29897,
13,
1678,
325,
353,
2346,
29889,
4102,
580,
13,
1678,
565,
325,
29901,
13,
4706,
4833,
29889,
7924,
29889,
1972,
29898,
23894,
467,
4572,
29898,
23894,
29889,
18237,
1275,
325,
29889,
333,
891,
21086,
29889,
2813,
1275,
325,
29889,
333,
467,
8143,
580,
13,
4706,
2346,
29889,
8143,
580,
13,
1678,
736,
325,
13,
13,
1753,
1423,
29918,
4262,
29898,
4262,
29901,
9527,
1125,
13,
1678,
2346,
353,
4833,
29889,
7924,
29889,
1972,
29898,
22479,
467,
4572,
29898,
22479,
29889,
29887,
29918,
333,
1360,
4262,
29889,
333,
29897,
13,
1678,
12688,
29879,
353,
426,
369,
4776,
29889,
333,
363,
12688,
297,
2346,
29913,
13,
1678,
2346,
353,
4833,
29889,
7924,
29889,
1972,
29898,
23894,
467,
4572,
29898,
23894,
29889,
29887,
29918,
333,
1360,
4262,
29889,
333,
29897,
13,
13,
1678,
12770,
353,
2322,
8977,
29898,
1761,
29897,
13,
1678,
18999,
353,
731,
580,
13,
1678,
363,
7636,
297,
2346,
29901,
13,
4706,
12770,
29961,
12864,
29889,
18237,
1822,
4397,
3552,
12864,
29889,
18237,
29892,
7636,
29889,
2813,
876,
13,
4706,
18999,
29889,
1202,
29898,
12864,
29889,
2813,
29897,
13,
13,
1678,
565,
7431,
29898,
287,
2710,
29897,
1275,
29871,
29900,
29901,
13,
4706,
1596,
877,
12864,
1495,
13,
4706,
736,
7700,
13,
13,
1678,
503,
6289,
353,
12688,
29879,
448,
18999,
13,
13,
1678,
565,
7431,
29898,
29920,
6289,
1125,
462,
3986,
396,
426,
29874,
10834,
29898,
29874,
29892,
29890,
21336,
29874,
29892,
29883,
29897,
1402,
29890,
10834,
29898,
29890,
29892,
29881,
4638,
29913,
13,
4706,
363,
18100,
297,
503,
6289,
29901,
13,
9651,
565,
18100,
297,
12770,
29901,
13,
18884,
12770,
29889,
7323,
29898,
8849,
29897,
13,
13,
4706,
1550,
12770,
29901,
13,
9651,
1596,
29898,
287,
2710,
29897,
13,
9651,
12688,
29879,
353,
18999,
13,
9651,
18999,
353,
731,
580,
13,
9651,
363,
301,
275,
297,
12770,
29889,
5975,
7295,
13,
18884,
363,
7636,
297,
301,
275,
29901,
13,
462,
1678,
18999,
29889,
1202,
29898,
12864,
29961,
29896,
2314,
13,
9651,
503,
6289,
353,
12688,
29879,
448,
18999,
13,
9651,
565,
451,
7431,
29898,
29920,
6289,
1125,
13,
18884,
1596,
877,
29920,
6289,
1495,
13,
18884,
2867,
13,
9651,
1683,
29901,
13,
18884,
363,
18100,
297,
503,
6289,
29901,
13,
462,
1678,
12770,
29889,
7323,
29898,
8849,
29897,
13,
13,
13,
4706,
565,
7431,
29898,
287,
2710,
29897,
1275,
29871,
29900,
29901,
13,
9651,
1018,
29901,
13,
18884,
3983,
353,
4833,
29889,
7924,
29889,
1972,
29898,
9527,
467,
4572,
29898,
9527,
29889,
333,
1275,
4262,
29889,
333,
467,
4102,
580,
13,
18884,
565,
3983,
29901,
13,
462,
1678,
3983,
29889,
11238,
353,
29871,
29896,
13,
462,
1678,
4833,
29889,
7924,
29889,
1202,
29898,
4262,
29897,
13,
462,
1678,
4833,
29889,
7924,
29889,
15060,
580,
13,
462,
1678,
1596,
877,
1817,
1817,
1817,
1817,
1817,
1817,
1817,
1817,
1817,
1817,
1495,
13,
462,
1678,
736,
5852,
13,
9651,
5174,
8960,
408,
321,
29901,
13,
18884,
4833,
29889,
7924,
29889,
1245,
1627,
580,
13,
18884,
12020,
321,
13,
4706,
1596,
877,
26594,
14087,
1495,
13,
4706,
736,
7700,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
2
] |
bin/snaptools_wrapper.py | mr-c/sc-atac-seq-pipeline | 0 | 130559 | <filename>bin/snaptools_wrapper.py
#!/usr/bin/env python3
from argparse import ArgumentParser
from os import fspath
from pathlib import Path
from subprocess import run
from typing import Callable, Dict, List, Tuple, Union
import snaptools_defaults
from utils import find_base_index_path, identity
# 3-tuples:
# [0] command-line argument to snaptools
# [1] default path
# [2] function used to adjust the path (both default path and user-provided)
# (if no adjustment required, use 'identity')
CommandData = Tuple[
str,
Path,
Callable[
[Path],
Path,
],
]
SNAPTOOLS_COMMAND_DEFAULTS: Dict[str, List[CommandData]] = {
'align-paired-end': [
('--input-reference', snaptools_defaults.DEFAULT_ALIGNMENT_INDEX, find_base_index_path),
],
'snap-pre': [
('--genome-size', snaptools_defaults.DEFAULT_SIZE_INDEX, identity),
],
}
def run_with_defaults(snaptools_command: str, other_args: List[Union[Path, str]]):
args = other_args.copy()
# For each command, check known options/arguments with default values.
# If the option is present, transform with the provided function (e.g.
# finding the "base" path of a genome index). If the option is not present,
# append with the default value
for option, default, func in SNAPTOOLS_COMMAND_DEFAULTS[snaptools_command]:
if option in args:
existing_option_index = args.index(option)
value_index = existing_option_index + 1
args[value_index] = func(args[value_index])
else:
args.append(option)
args.append(func(default))
command = ['snaptools', snaptools_command]
command.extend(fspath(arg) for arg in args)
print('Running:', ' '.join(command))
run(command, check=True)
if __name__ == '__main__':
p = ArgumentParser()
p.add_argument('snaptools_command')
p.add_argument(
'other_arg',
nargs='*',
help='Arguments to the chosen snaptools command',
)
args = p.parse_args()
run_with_defaults(args.snaptools_command, args.other_arg)
| [
1,
529,
9507,
29958,
2109,
29914,
29879,
1056,
415,
8789,
29918,
17699,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
3166,
1852,
5510,
1053,
23125,
11726,
13,
3166,
2897,
1053,
285,
1028,
493,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
1014,
5014,
1053,
1065,
13,
3166,
19229,
1053,
8251,
519,
29892,
360,
919,
29892,
2391,
29892,
12603,
552,
29892,
7761,
13,
13,
5215,
269,
1056,
415,
8789,
29918,
4381,
29879,
13,
3166,
3667,
29879,
1053,
1284,
29918,
3188,
29918,
2248,
29918,
2084,
29892,
10110,
13,
13,
29937,
29871,
29941,
29899,
9161,
2701,
29901,
13,
29937,
29871,
518,
29900,
29962,
1899,
29899,
1220,
2980,
304,
269,
1056,
415,
8789,
13,
29937,
29871,
518,
29896,
29962,
2322,
2224,
13,
29937,
29871,
518,
29906,
29962,
740,
1304,
304,
10365,
278,
2224,
313,
20313,
2322,
2224,
322,
1404,
29899,
16123,
2618,
29897,
13,
29937,
418,
313,
361,
694,
10365,
358,
3734,
29892,
671,
525,
22350,
1495,
13,
13,
6255,
1469,
353,
12603,
552,
29961,
13,
1678,
851,
29892,
13,
1678,
10802,
29892,
13,
1678,
8251,
519,
29961,
13,
4706,
518,
2605,
1402,
13,
4706,
10802,
29892,
13,
1678,
21251,
13,
29962,
13,
13,
19296,
3301,
4986,
5607,
29903,
29918,
19795,
1529,
2797,
29918,
23397,
29903,
29901,
360,
919,
29961,
710,
29892,
2391,
29961,
6255,
1469,
5262,
353,
426,
13,
1678,
525,
2520,
29899,
3274,
2859,
29899,
355,
2396,
518,
13,
4706,
6702,
489,
2080,
29899,
5679,
742,
269,
1056,
415,
8789,
29918,
4381,
29879,
29889,
23397,
29918,
1964,
17298,
13780,
29918,
27992,
29892,
1284,
29918,
3188,
29918,
2248,
29918,
2084,
511,
13,
1678,
21251,
13,
1678,
525,
29879,
8971,
29899,
1457,
2396,
518,
13,
4706,
6702,
489,
1885,
608,
29899,
2311,
742,
269,
1056,
415,
8789,
29918,
4381,
29879,
29889,
23397,
29918,
14226,
29918,
27992,
29892,
10110,
511,
13,
1678,
21251,
13,
29913,
13,
13,
1753,
1065,
29918,
2541,
29918,
4381,
29879,
29898,
29879,
1056,
415,
8789,
29918,
6519,
29901,
851,
29892,
916,
29918,
5085,
29901,
2391,
29961,
19986,
29961,
2605,
29892,
851,
5262,
1125,
13,
1678,
6389,
353,
916,
29918,
5085,
29889,
8552,
580,
13,
13,
1678,
396,
1152,
1269,
1899,
29892,
1423,
2998,
3987,
29914,
25699,
411,
2322,
1819,
29889,
13,
1678,
396,
960,
278,
2984,
338,
2198,
29892,
4327,
411,
278,
4944,
740,
313,
29872,
29889,
29887,
29889,
13,
1678,
396,
9138,
278,
376,
3188,
29908,
2224,
310,
263,
2531,
608,
2380,
467,
960,
278,
2984,
338,
451,
2198,
29892,
13,
1678,
396,
9773,
411,
278,
2322,
995,
13,
1678,
363,
2984,
29892,
2322,
29892,
3653,
297,
21989,
3301,
4986,
5607,
29903,
29918,
19795,
1529,
2797,
29918,
23397,
29903,
29961,
29879,
1056,
415,
8789,
29918,
6519,
5387,
13,
4706,
565,
2984,
297,
6389,
29901,
13,
9651,
5923,
29918,
3385,
29918,
2248,
353,
6389,
29889,
2248,
29898,
3385,
29897,
13,
9651,
995,
29918,
2248,
353,
5923,
29918,
3385,
29918,
2248,
718,
29871,
29896,
13,
9651,
6389,
29961,
1767,
29918,
2248,
29962,
353,
3653,
29898,
5085,
29961,
1767,
29918,
2248,
2314,
13,
4706,
1683,
29901,
13,
9651,
6389,
29889,
4397,
29898,
3385,
29897,
13,
9651,
6389,
29889,
4397,
29898,
9891,
29898,
4381,
876,
13,
13,
1678,
1899,
353,
6024,
29879,
1056,
415,
8789,
742,
269,
1056,
415,
8789,
29918,
6519,
29962,
13,
1678,
1899,
29889,
21843,
29898,
29888,
1028,
493,
29898,
1191,
29897,
363,
1852,
297,
6389,
29897,
13,
13,
1678,
1596,
877,
27795,
29901,
742,
525,
15300,
7122,
29898,
6519,
876,
13,
1678,
1065,
29898,
6519,
29892,
1423,
29922,
5574,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
282,
353,
23125,
11726,
580,
13,
1678,
282,
29889,
1202,
29918,
23516,
877,
29879,
1056,
415,
8789,
29918,
6519,
1495,
13,
1678,
282,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
1228,
29918,
1191,
742,
13,
4706,
302,
5085,
2433,
29930,
742,
13,
4706,
1371,
2433,
26915,
304,
278,
10434,
269,
1056,
415,
8789,
1899,
742,
13,
1678,
1723,
13,
1678,
6389,
353,
282,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
1065,
29918,
2541,
29918,
4381,
29879,
29898,
5085,
29889,
29879,
1056,
415,
8789,
29918,
6519,
29892,
6389,
29889,
1228,
29918,
1191,
29897,
13,
2
] |
api/app.py | sai-krishna-msk/KickAssist | 0 | 8588 | <gh_stars>0
from ml_model.model import KickModel
import numpy as np
import pandas as pd
import eli5
import joblib
import flask
from flask import Flask, render_template, request, jsonify
app = Flask(__name__)
model_oh = joblib.load('ml_model/estimators/model_oh.sav')
model_hel = joblib.load('ml_model/estimators/model_hel.sav')
encoder_oh = joblib.load('ml_model/estimators/encoder_oh.sav')
encoder_hel = joblib.load('ml_model/estimators/encoder_hel.sav')
encoder_label = joblib.load('ml_model/estimators/encoder_label.sav')
def get_predict(launch_date , deadline_date , goal , subcategory , category , currency , country , description, rewards):
pred_dict={
"launched_at":launch_date,
"deadline":deadline_date,
"goal":int(goal),
"sub_category":subcategory,
"category":category,
"currency":currency,
"location_country":country,
"blurb":description,
"rewards":[]
}
try:
for reward in rewards.split(","):
pred_dict["rewards"].append(int(reward))
except Exception as e:
raise Exception(f"Error sanatizing rewards with {e} error")
return pred_dict
@app.route('/predict/<launch_date>/<deadline_date>/<goal>/<subcategory>/<category>/<currency>/<country>/<description>/<rewards>')
def GetURL(launch_date , deadline_date , goal , subcategory , category , currency , country , description, rewards):
pred_dict = get_predict(launch_date , deadline_date , goal , subcategory , category , currency , country , description, rewards)
obj = KickModel(model_oh , model_hel , encoder_oh , encoder_hel , encoder_label)
obj.load_data(pred_dict)
obj.pred()
oh_pred = float(obj.pred_oh[0][1])
hel_pred = float(obj.pred_hel[0][1])
response = {
"prediction_oh":oh_pred,
"prediction_hel":hel_pred,
"prediction_oh_df":obj.pred_oh_intr.to_dict(),
"prediction_hel_intr":obj.pred_hel_intr.to_dict()
}
return response
if __name__=="__main__":
app.run(debug =True) | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
286,
29880,
29918,
4299,
29889,
4299,
1053,
476,
860,
3195,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
5215,
560,
29875,
29945,
13,
5215,
4982,
1982,
13,
5215,
29784,
29871,
13,
3166,
29784,
1053,
2379,
1278,
29892,
4050,
29918,
6886,
29892,
2009,
29892,
4390,
1598,
13,
13,
932,
353,
2379,
1278,
22168,
978,
1649,
29897,
13,
13,
4299,
29918,
1148,
353,
4982,
1982,
29889,
1359,
877,
828,
29918,
4299,
29914,
342,
326,
4097,
29914,
4299,
29918,
1148,
29889,
29879,
485,
1495,
13,
4299,
29918,
3952,
353,
4982,
1982,
29889,
1359,
877,
828,
29918,
4299,
29914,
342,
326,
4097,
29914,
4299,
29918,
3952,
29889,
29879,
485,
1495,
13,
3977,
6119,
29918,
1148,
353,
4982,
1982,
29889,
1359,
877,
828,
29918,
4299,
29914,
342,
326,
4097,
29914,
3977,
6119,
29918,
1148,
29889,
29879,
485,
1495,
13,
3977,
6119,
29918,
3952,
353,
4982,
1982,
29889,
1359,
877,
828,
29918,
4299,
29914,
342,
326,
4097,
29914,
3977,
6119,
29918,
3952,
29889,
29879,
485,
1495,
13,
3977,
6119,
29918,
1643,
353,
4982,
1982,
29889,
1359,
877,
828,
29918,
4299,
29914,
342,
326,
4097,
29914,
3977,
6119,
29918,
1643,
29889,
29879,
485,
1495,
13,
13,
13,
1753,
679,
29918,
27711,
29898,
15343,
29918,
1256,
1919,
7123,
1220,
29918,
1256,
1919,
7306,
1919,
1014,
7320,
1919,
7663,
1919,
27550,
1919,
4234,
1919,
6139,
29892,
337,
2935,
1125,
13,
1678,
4450,
29918,
8977,
3790,
13,
1678,
376,
15343,
287,
29918,
271,
1115,
15343,
29918,
1256,
29892,
13,
1678,
376,
311,
328,
1220,
1115,
311,
328,
1220,
29918,
1256,
29892,
29871,
13,
1678,
376,
28111,
1115,
524,
29898,
28111,
511,
13,
1678,
376,
1491,
29918,
7320,
1115,
1491,
7320,
29892,
13,
1678,
376,
7320,
1115,
7320,
29892,
13,
1678,
376,
26095,
1115,
26095,
29892,
13,
1678,
376,
5479,
29918,
13509,
1115,
13509,
29892,
13,
1678,
376,
2204,
9265,
1115,
8216,
29892,
29871,
13,
1678,
376,
276,
2935,
1115,
2636,
29871,
13,
1678,
500,
13,
1678,
1018,
29901,
13,
4706,
363,
20751,
297,
337,
2935,
29889,
5451,
29898,
3284,
1125,
13,
9651,
4450,
29918,
8977,
3366,
276,
2935,
16862,
4397,
29898,
524,
29898,
276,
1328,
876,
13,
1678,
5174,
8960,
408,
321,
29901,
13,
4706,
12020,
8960,
29898,
29888,
29908,
2392,
9753,
271,
5281,
337,
2935,
411,
426,
29872,
29913,
1059,
1159,
13,
13,
1678,
736,
4450,
29918,
8977,
13,
13,
29992,
932,
29889,
13134,
11219,
27711,
29914,
29966,
15343,
29918,
1256,
20690,
29966,
311,
328,
1220,
29918,
1256,
20690,
29966,
28111,
20690,
29966,
1491,
7320,
20690,
29966,
7320,
20690,
29966,
26095,
20690,
29966,
13509,
20690,
29966,
8216,
20690,
29966,
276,
2935,
29958,
1495,
13,
1753,
3617,
4219,
29898,
15343,
29918,
1256,
1919,
7123,
1220,
29918,
1256,
1919,
7306,
1919,
1014,
7320,
1919,
7663,
1919,
27550,
1919,
4234,
1919,
6139,
29892,
337,
2935,
1125,
13,
1678,
4450,
29918,
8977,
353,
679,
29918,
27711,
29898,
15343,
29918,
1256,
1919,
7123,
1220,
29918,
1256,
1919,
7306,
1919,
1014,
7320,
1919,
7663,
1919,
27550,
1919,
4234,
1919,
6139,
29892,
337,
2935,
29897,
13,
13,
1678,
5446,
353,
476,
860,
3195,
29898,
4299,
29918,
1148,
1919,
1904,
29918,
3952,
1919,
2094,
6119,
29918,
1148,
1919,
2094,
6119,
29918,
3952,
1919,
2094,
6119,
29918,
1643,
29897,
13,
1678,
5446,
29889,
1359,
29918,
1272,
29898,
11965,
29918,
8977,
29897,
13,
1678,
5446,
29889,
11965,
580,
13,
1678,
9360,
29918,
11965,
353,
5785,
29898,
5415,
29889,
11965,
29918,
1148,
29961,
29900,
3816,
29896,
2314,
13,
1678,
1081,
29918,
11965,
353,
5785,
29898,
5415,
29889,
11965,
29918,
3952,
29961,
29900,
3816,
29896,
2314,
13,
13,
1678,
2933,
353,
426,
13,
1678,
376,
11965,
2463,
29918,
1148,
1115,
1148,
29918,
11965,
29892,
13,
1678,
376,
11965,
2463,
29918,
3952,
1115,
3952,
29918,
11965,
29892,
13,
1678,
376,
11965,
2463,
29918,
1148,
29918,
2176,
1115,
5415,
29889,
11965,
29918,
1148,
29918,
262,
509,
29889,
517,
29918,
8977,
3285,
29871,
13,
1678,
376,
11965,
2463,
29918,
3952,
29918,
262,
509,
1115,
5415,
29889,
11965,
29918,
3952,
29918,
262,
509,
29889,
517,
29918,
8977,
580,
13,
1678,
500,
13,
1678,
736,
2933,
13,
13,
13,
13,
361,
4770,
978,
1649,
26359,
1649,
3396,
1649,
1115,
13,
12,
932,
29889,
3389,
29898,
8382,
353,
5574,
29897,
2
] |
wbia/algo/verif/clf_helpers.py | WildMeOrg/wildbook-ia | 20 | 71552 | # -*- coding: utf-8 -*-
"""
This module is a work in progress, as such concepts are subject to change.
MAIN IDEA:
`MultiTaskSamples` serves as a structure to contain and manipulate a set of
samples with potentially many different types of labels and features.
"""
import logging
import utool as ut
import ubelt as ub
import numpy as np
from wbia import dtool as dt
import pandas as pd
import sklearn
import sklearn.metrics
import sklearn.ensemble
import sklearn.impute
import sklearn.pipeline
import sklearn.neural_network
from wbia.algo.verif import sklearn_utils
print, rrr, profile = ut.inject2(__name__)
logger = logging.getLogger('wbia')
class XValConfig(dt.Config):
_param_info_list = [
# ut.ParamInfo('type', 'StratifiedKFold'),
ut.ParamInfo('type', 'StratifiedGroupKFold'),
ut.ParamInfo('n_splits', 3),
ut.ParamInfo(
'shuffle', True, hideif=lambda cfg: cfg['type'] == 'StratifiedGroupKFold'
),
ut.ParamInfo(
'random_state',
3953056901,
hideif=lambda cfg: cfg['type'] == 'StratifiedGroupKFold',
),
]
@ut.reloadable_class
class ClfProblem(ut.NiceRepr):
def __init__(pblm):
pblm.deploy_task_clfs = None
pblm.eval_task_clfs = None
pblm.xval_kw = XValConfig()
pblm.eval_task_clfs = None
pblm.task_combo_res = None
pblm.verbose = True
def set_pandas_options(pblm):
# pd.options.display.max_rows = 10
pd.options.display.max_rows = 20
pd.options.display.max_columns = 40
pd.options.display.width = 160
pd.options.display.float_format = lambda x: '%.4f' % (x,)
def set_pandas_options_low(pblm):
# pd.options.display.max_rows = 10
pd.options.display.max_rows = 5
pd.options.display.max_columns = 40
pd.options.display.width = 160
pd.options.display.float_format = lambda x: '%.4f' % (x,)
def set_pandas_options_normal(pblm):
# pd.options.display.max_rows = 10
pd.options.display.max_rows = 20
pd.options.display.max_columns = 40
pd.options.display.width = 160
pd.options.display.float_format = lambda x: '%.4f' % (x,)
def learn_evaluation_classifiers(pblm, task_keys=None, clf_keys=None, data_keys=None):
"""
Evaluates by learning classifiers using cross validation.
Do not use this to learn production classifiers.
python -m wbia.algo.verif.vsone evaluate_classifiers --db PZ_PB_RF_TRAIN --show
Example:
CommandLine:
python -m clf_helpers learn_evaluation_classifiers
Example:
>>> # ENABLE_DOCTEST
>>> from wbia.algo.verif.clf_helpers import * # NOQA
>>> pblm = IrisProblem()
>>> pblm.setup()
>>> pblm.verbose = True
>>> pblm.eval_clf_keys = ['Logit', 'RF']
>>> pblm.eval_task_keys = ['iris']
>>> pblm.eval_data_keys = ['learn(all)']
>>> result = pblm.learn_evaluation_classifiers()
>>> res = pblm.task_combo_res['iris']['Logit']['learn(all)']
>>> res.print_report()
>>> res = pblm.task_combo_res['iris']['RF']['learn(all)']
>>> res.print_report()
>>> print(result)
"""
pblm.eval_task_clfs = ut.AutoVivification()
pblm.task_combo_res = ut.AutoVivification()
if task_keys is None:
task_keys = pblm.eval_task_keys
if data_keys is None:
data_keys = pblm.eval_data_keys
if clf_keys is None:
clf_keys = pblm.eval_clf_keys
if task_keys is None:
task_keys = [pblm.primary_task_key]
if data_keys is None:
data_keys = [pblm.default_data_key]
if clf_keys is None:
clf_keys = [pblm.default_clf_key]
if pblm.verbose:
ut.cprint('[pblm] learn_evaluation_classifiers', color='blue')
ut.cprint('[pblm] task_keys = {}'.format(task_keys))
ut.cprint('[pblm] data_keys = {}'.format(data_keys))
ut.cprint('[pblm] clf_keys = {}'.format(clf_keys))
Prog = ut.ProgPartial(freq=1, adjust=False, prehack='%s')
task_prog = Prog(task_keys, label='Task')
for task_key in task_prog:
dataset_prog = Prog(data_keys, label='Data')
for data_key in dataset_prog:
clf_prog = Prog(clf_keys, label='CLF')
for clf_key in clf_prog:
pblm._ensure_evaluation_clf(task_key, data_key, clf_key)
def _ensure_evaluation_clf(pblm, task_key, data_key, clf_key, use_cache=True):
"""
Learns and caches an evaluation (cross-validated) classifier and tests
and caches the results.
data_key = 'learn(sum,glob)'
clf_key = 'RF'
"""
# TODO: add in params used to construct features into the cfgstr
if hasattr(pblm.samples, 'sample_hashid'):
ibs = pblm.infr.ibs
sample_hashid = pblm.samples.sample_hashid()
feat_dims = pblm.samples.X_dict[data_key].columns.values.tolist()
# cfg_prefix = sample_hashid + pblm.qreq_.get_cfgstr() + feat_cfgstr
est_kw1, est_kw2 = pblm._estimator_params(clf_key)
param_id = ut.get_dict_hashid(est_kw1)
xval_id = pblm.xval_kw.get_cfgstr()
cfgstr = '_'.join(
[
sample_hashid,
param_id,
xval_id,
task_key,
data_key,
clf_key,
ut.hashid_arr(feat_dims, 'feats'),
]
)
fname = 'eval_clfres_' + ibs.dbname
else:
fname = 'foo'
feat_dims = None
cfgstr = 'bar'
use_cache = False
# TODO: ABI class should not be caching
cacher_kw = dict(appname='vsone_rf_train', enabled=use_cache, verbose=1)
cacher_clf = ub.Cacher(fname, cfgstr=cfgstr, meta=[feat_dims], **cacher_kw)
data = cacher_clf.tryload()
if not data:
data = pblm._train_evaluation_clf(task_key, data_key, clf_key)
cacher_clf.save(data)
clf_list, res_list = data
labels = pblm.samples.subtasks[task_key]
combo_res = ClfResult.combine_results(res_list, labels)
pblm.eval_task_clfs[task_key][clf_key][data_key] = clf_list
pblm.task_combo_res[task_key][clf_key][data_key] = combo_res
def _train_evaluation_clf(pblm, task_key, data_key, clf_key, feat_dims=None):
"""
Learns a cross-validated classifier on the dataset
Ignore:
>>> from wbia.algo.verif.vsone import * # NOQA
>>> pblm = OneVsOneProblem()
>>> pblm.load_features()
>>> pblm.load_samples()
>>> data_key = 'learn(all)'
>>> task_key = 'photobomb_state'
>>> clf_key = 'RF-OVR'
>>> task_key = 'match_state'
>>> data_key = pblm.default_data_key
>>> clf_key = pblm.default_clf_key
"""
X_df = pblm.samples.X_dict[data_key]
labels = pblm.samples.subtasks[task_key]
assert np.all(labels.encoded_df.index == X_df.index)
clf_partial = pblm._get_estimator(clf_key)
xval_kw = pblm.xval_kw.asdict()
clf_list = []
res_list = []
skf_list = pblm.samples.stratified_kfold_indices(**xval_kw)
skf_prog = ut.ProgIter(skf_list, label='skf-train-eval')
for train_idx, test_idx in skf_prog:
X_df_train = X_df.iloc[train_idx]
assert X_df_train.index.tolist() == ut.take(pblm.samples.index, train_idx)
# train_uv = X_df.iloc[train_idx].index
# X_train = X_df.loc[train_uv]
# y_train = labels.encoded_df.loc[train_uv]
if feat_dims is not None:
X_df_train = X_df_train[feat_dims]
X_train = X_df_train.values
y_train = labels.encoded_df.iloc[train_idx].values.ravel()
clf = clf_partial()
clf.fit(X_train, y_train)
# Note: There is a corner case where one fold doesn't get any
# labels of a certain class. Because y_train is an encoded integer,
# the clf.classes_ attribute will cause predictions to agree with
# other classifiers trained on the same labels.
# Evaluate results
res = ClfResult.make_single(
clf, X_df, test_idx, labels, data_key, feat_dims=feat_dims
)
clf_list.append(clf)
res_list.append(res)
return clf_list, res_list
def _external_classifier_result(
pblm, clf, task_key, data_key, feat_dims=None, test_idx=None
):
"""
Given an external classifier (ensure its trained on disjoint data)
evaluate all data on it.
Args:
test_idx (list): subset of this classifier to test on
(defaults to all if None)
"""
X_df = pblm.samples.X_dict[data_key]
if test_idx is None:
test_idx = np.arange(len(X_df))
labels = pblm.samples.subtasks[task_key]
res = ClfResult.make_single(
clf, X_df, test_idx, labels, data_key, feat_dims=feat_dims
)
return res
def learn_deploy_classifiers(pblm, task_keys=None, clf_key=None, data_key=None):
"""
Learns on data without any train/validation split
"""
if pblm.verbose > 0:
ut.cprint('[pblm] learn_deploy_classifiers', color='blue')
if clf_key is None:
clf_key = pblm.default_clf_key
if data_key is None:
data_key = pblm.default_data_key
if task_keys is None:
task_keys = list(pblm.samples.supported_tasks())
if pblm.deploy_task_clfs is None:
pblm.deploy_task_clfs = ut.AutoVivification()
Prog = ut.ProgPartial(freq=1, adjust=False, prehack='%s')
task_prog = Prog(task_keys, label='Task')
task_clfs = {}
for task_key in task_prog:
clf = pblm._train_deploy_clf(task_key, data_key, clf_key)
task_clfs[task_key] = clf
pblm.deploy_task_clfs[task_key][clf_key][data_key] = clf
return task_clfs
def _estimator_params(pblm, clf_key):
est_type = clf_key.split('-')[0]
if est_type in {'RF', 'RandomForest'}:
est_kw1 = {
# 'max_depth': 4,
'bootstrap': True,
'class_weight': None,
'criterion': 'entropy',
'max_features': 'sqrt',
# 'max_features': None,
'min_samples_leaf': 5,
'min_samples_split': 2,
# 'n_estimators': 64,
'n_estimators': 256,
}
# Hack to only use missing values if we have the right sklearn
if 'missing_values' in ut.get_func_kwargs(
sklearn.ensemble.RandomForestClassifier.__init__
):
est_kw1['missing_values'] = np.nan
est_kw2 = {
'random_state': 3915904814,
'verbose': 0,
'n_jobs': -1,
}
elif est_type in {'SVC', 'SVM'}:
est_kw1 = dict(kernel='linear')
est_kw2 = {}
elif est_type in {'Logit', 'LogisticRegression'}:
est_kw1 = {}
est_kw2 = {}
elif est_type in {'MLP'}:
est_kw1 = dict(
activation='relu',
alpha=1e-05,
batch_size='auto',
beta_1=0.9,
beta_2=0.999,
early_stopping=False,
epsilon=1e-08,
hidden_layer_sizes=(10, 10),
learning_rate='constant',
learning_rate_init=0.001,
max_iter=200,
momentum=0.9,
nesterovs_momentum=True,
power_t=0.5,
random_state=3915904814,
shuffle=True,
solver='lbfgs',
tol=0.0001,
validation_fraction=0.1,
warm_start=False,
)
est_kw2 = dict(verbose=False)
else:
raise KeyError('Unknown Estimator')
return est_kw1, est_kw2
def _get_estimator(pblm, clf_key):
"""
Returns sklearn classifier
"""
tup = clf_key.split('-')
wrap_type = None if len(tup) == 1 else tup[1]
est_type = tup[0]
multiclass_wrapper = {
None: ut.identity,
'OVR': sklearn.multiclass.OneVsRestClassifier,
'OVO': sklearn.multiclass.OneVsOneClassifier,
}[wrap_type]
est_class = {
'RF': sklearn.ensemble.RandomForestClassifier,
'SVC': sklearn.svm.SVC,
'Logit': sklearn.linear_model.LogisticRegression,
'MLP': sklearn.neural_network.MLPClassifier,
}[est_type]
est_kw1, est_kw2 = pblm._estimator_params(est_type)
est_params = ut.merge_dicts(est_kw1, est_kw2)
# steps = []
# steps.append((est_type, est_class(**est_params)))
# if wrap_type is not None:
# steps.append((wrap_type, multiclass_wrapper))
if est_type == 'MLP':
def clf_partial():
pipe = sklearn.pipeline.Pipeline(
[
('inputer', sklearn.impute.SimpleImputer(strategy='mean')),
# ('scale', sklearn.preprocessing.StandardScaler),
('est', est_class(**est_params)),
]
)
return multiclass_wrapper(pipe)
elif est_type == 'Logit':
def clf_partial():
pipe = sklearn.pipeline.Pipeline(
[
('inputer', sklearn.impute.SimpleImputer(strategy='mean')),
('est', est_class(**est_params)),
]
)
return multiclass_wrapper(pipe)
else:
def clf_partial():
return multiclass_wrapper(est_class(**est_params))
return clf_partial
def _train_deploy_clf(pblm, task_key, data_key, clf_key):
X_df = pblm.samples.X_dict[data_key]
labels = pblm.samples.subtasks[task_key]
assert np.all(labels.encoded_df.index == X_df.index)
clf_partial = pblm._get_estimator(clf_key)
logger.info(
'Training deployment {} classifier on {} for {}'.format(
clf_key, data_key, task_key
)
)
clf = clf_partial()
index = X_df.index
X = X_df.loc[index].values
y = labels.encoded_df.loc[index].values.ravel()
clf.fit(X, y)
return clf
def _optimize_rf_hyperparams(pblm, data_key=None, task_key=None):
"""
helper script I've only run interactively
Example:
>>> # DISABLE_DOCTEST
>>> from wbia.algo.verif.vsone import * # NOQA
>>> pblm = OneVsOneProblem.from_empty('PZ_PB_RF_TRAIN')
#>>> pblm = OneVsOneProblem.from_empty('GZ_Master1')
>>> pblm.load_samples()
>>> pblm.load_features()
>>> pblm.build_feature_subsets()
>>> data_key=None
>>> task_key=None
"""
from sklearn.model_selection import RandomizedSearchCV # NOQA
from sklearn.model_selection import GridSearchCV # NOQA
from sklearn.ensemble import RandomForestClassifier
from wbia.algo.verif import sklearn_utils
if data_key is None:
data_key = pblm.default_data_key
if task_key is None:
task_key = pblm.primary_task_key
# Load data
X = pblm.samples.X_dict[data_key].values
y = pblm.samples.subtasks[task_key].y_enc
groups = pblm.samples.group_ids
# Define estimator and parameter search space
grid = {
'bootstrap': [True, False],
'class_weight': [None, 'balanced'],
'criterion': ['entropy', 'gini'],
# 'max_features': ['sqrt', 'log2'],
'max_features': ['sqrt'],
'min_samples_leaf': list(range(2, 11)),
'min_samples_split': list(range(2, 11)),
'n_estimators': [8, 64, 128, 256, 512, 1024],
}
est = RandomForestClassifier(missing_values=np.nan)
if False:
# debug
params = ut.util_dict.all_dict_combinations(grid)[0]
est.set_params(verbose=10, n_jobs=1, **params)
est.fit(X=X, y=y)
cv = sklearn_utils.StratifiedGroupKFold(n_splits=3)
if True:
n_iter = 25
SearchCV = ut.partial(RandomizedSearchCV, n_iter=n_iter)
else:
n_iter = ut.prod(map(len, grid.values()))
SearchCV = GridSearchCV
search = SearchCV(est, grid, cv=cv, verbose=10)
n_cpus = ut.num_cpus()
thresh = n_cpus * 1.5
n_jobs_est = 1
n_jobs_ser = min(n_cpus, n_iter)
if n_iter < thresh:
n_jobs_est = int(max(1, thresh / n_iter))
est.set_params(n_jobs=n_jobs_est)
search.set_params(n_jobs=n_jobs_ser)
search.fit(X=X, y=y, groups=groups)
res = search.cv_results_.copy()
alias = ut.odict(
[
('rank_test_score', 'rank'),
('mean_test_score', 'μ-test'),
('std_test_score', 'σ-test'),
('mean_train_score', 'μ-train'),
('std_train_score', 'σ-train'),
('mean_fit_time', 'fit_time'),
('params', 'params'),
]
)
res = ut.dict_subset(res, alias.keys())
cvresult_df = pd.DataFrame(res).rename(columns=alias)
cvresult_df = cvresult_df.sort_values('rank').reset_index(drop=True)
params = pd.DataFrame.from_dict(cvresult_df['params'].values.tolist())
logger.info('Varied params:')
logger.info(ut.repr4(ut.map_vals(set, params.to_dict('list'))))
logger.info('Ranked Params')
logger.info(params)
logger.info('Ranked scores on development set:')
logger.info(cvresult_df)
logger.info('Best parameters set found on hyperparam set:')
logger.info('best_params_ = %s' % (ut.repr4(search.best_params_),))
logger.info('Fastest params')
cvresult_df.loc[cvresult_df['fit_time'].idxmin()]['params']
def _dev_calib(pblm):
"""
interactive script only
"""
from sklearn.ensemble import RandomForestClassifier
from sklearn.calibration import CalibratedClassifierCV
from sklearn.calibration import calibration_curve
from sklearn.metrics import log_loss, brier_score_loss
# Load data
data_key = pblm.default_data_key
task_key = pblm.primary_task_key
X = pblm.samples.X_dict[data_key].values
y = pblm.samples.subtasks[task_key].y_enc
groups = pblm.samples.group_ids
# Split into test/train/valid
cv = sklearn_utils.StratifiedGroupKFold(n_splits=2)
test_idx, train_idx = next(cv.split(X, y, groups))
# valid_idx = train_idx[0::2]
# train_idx = train_idx[1::2]
# train_valid_idx = np.hstack([train_idx, valid_idx])
# Train Uncalibrated RF
est_kw = pblm._estimator_params('RF')[0]
uncal_clf = RandomForestClassifier(**est_kw)
uncal_clf.fit(X[train_idx], y[train_idx])
uncal_probs = uncal_clf.predict_proba(X[test_idx]).T[1]
uncal_score = log_loss(y[test_idx] == 1, uncal_probs)
uncal_brier = brier_score_loss(y[test_idx] == 1, uncal_probs)
# Train Calibrated RF
method = 'isotonic' if len(test_idx) > 2000 else 'sigmoid'
precal_clf = RandomForestClassifier(**est_kw)
# cv = sklearn_utils.StratifiedGroupKFold(n_splits=3)
cal_clf = CalibratedClassifierCV(precal_clf, cv=2, method=method)
cal_clf.fit(X[train_idx], y[train_idx])
cal_probs = cal_clf.predict_proba(X[test_idx]).T[1]
cal_score = log_loss(y[test_idx] == 1, cal_probs)
cal_brier = brier_score_loss(y[test_idx] == 1, cal_probs)
logger.info('cal_brier = %r' % (cal_brier,))
logger.info('uncal_brier = %r' % (uncal_brier,))
logger.info('uncal_score = %r' % (uncal_score,))
logger.info('cal_score = %r' % (cal_score,))
import wbia.plottool as pt
ut.qtensure()
pt.figure()
ax = pt.gca()
y_test = y[test_idx] == 1
fraction_of_positives, mean_predicted_value = calibration_curve(
y_test, uncal_probs, n_bins=10
)
ax.plot([0, 1], [0, 1], 'k:', label='Perfectly calibrated')
ax.plot(
mean_predicted_value,
fraction_of_positives,
's-',
label='%s (%1.3f)' % ('uncal-RF', uncal_brier),
)
fraction_of_positives, mean_predicted_value = calibration_curve(
y_test, cal_probs, n_bins=10
)
ax.plot(
mean_predicted_value,
fraction_of_positives,
's-',
label='%s (%1.3f)' % ('cal-RF', cal_brier),
)
pt.legend()
@ut.reloadable_class
class ClfResult(ut.NiceRepr):
r"""
Handles evaluation statistics for a multiclass classifier trained on a
specific dataset with specific labels.
"""
# Attributes that identify the task and data the classifier is evaluated on
_key_attrs = ['task_key', 'data_key', 'class_names']
# Attributes about results and labels of individual samples
_datafame_attrs = ['probs_df', 'probhats_df', 'target_bin_df', 'target_enc_df']
def __init__(res):
pass
def __nice__(res):
return '{}, {}, {}'.format(res.task_key, res.data_key, len(res.index))
@property
def index(res):
return res.probs_df.index
@classmethod
def make_single(ClfResult, clf, X_df, test_idx, labels, data_key, feat_dims=None):
"""
Make a result for a single cross validiation subset
"""
X_df_test = X_df.iloc[test_idx]
if feat_dims is not None:
X_df_test = X_df_test[feat_dims]
index = X_df_test.index
# clf_probs = clf.predict_proba(X_df_test)
# index = pd.Series(test_idx, name='test_idx')
# Ensure shape corresponds with all classes
def align_cols(arr, arr_cols, target_cols):
import utool as ut
alignx = ut.list_alignment(arr_cols, target_cols, missing=True)
aligned_arrT = ut.none_take(arr.T, alignx)
aligned_arrT = ut.replace_nones(aligned_arrT, np.zeros(len(arr)))
aligned_arr = np.vstack(aligned_arrT).T
return aligned_arr
res = ClfResult()
res.task_key = labels.task_name
res.data_key = data_key
res.class_names = ut.lmap(str, labels.class_names)
res.feat_dims = feat_dims
res.probs_df = sklearn_utils.predict_proba_df(clf, X_df_test, res.class_names)
res.target_bin_df = labels.indicator_df.iloc[test_idx]
res.target_enc_df = labels.encoded_df.iloc[test_idx]
if hasattr(clf, 'estimators_') and labels.n_classes > 2:
# The n-th estimator in the OVR classifier predicts the prob of the
# n-th class (as label 1).
probs_hat = np.hstack(
[est.predict_proba(X_df_test)[:, 1:2] for est in clf.estimators_]
)
res.probhats_df = pd.DataFrame(
align_cols(probs_hat, clf.classes_, labels.classes_),
index=index,
columns=res.class_names,
)
# In the OVR-case, ideally things will sum to 1, but when they
# don't normalization happens. An Z-value of more than 1 means
# overconfidence, and under 0 means underconfidence.
res.confidence_ratio = res.probhats_df.sum(axis=1)
else:
res.probhats_df = None
return res
def compress(res, flags):
res2 = ClfResult()
res2.task_key = res.task_key
res2.data_key = res.data_key
res2.class_names = res.class_names
res2.probs_df = res.probs_df[flags]
res2.target_bin_df = res.target_bin_df[flags]
res2.target_enc_df = res.target_enc_df[flags]
if res.probhats_df is None:
res2.probhats_df = None
else:
res2.probhats_df = res.probhats_df[flags]
# res2.confidence_ratio = res.confidence_ratio[flags]
return res2
@classmethod
def combine_results(ClfResult, res_list, labels=None):
"""
Combine results from cross validation runs into a single result
representing the performance of the entire dataset
"""
# Ensure that res_lists are not overlapping
for r1, r2 in ut.combinations(res_list, 2):
assert (
len(r1.index.intersection(r2.index)) == 0
), 'ClfResult dataframes must be disjoint'
# sanity check
for r in res_list:
assert np.all(r.index == r.probs_df.index)
assert np.all(r.index == r.target_bin_df.index)
assert np.all(r.index == r.target_enc_df.index)
# Combine them with pandas
res = ClfResult()
res0 = res_list[0]
# Transfer single attributes (which should all be the same)
for attr in ClfResult._key_attrs:
val = getattr(res0, attr)
setattr(res, attr, val)
assert all(
[getattr(r, attr) == val for r in res_list]
), 'ClfResult with different key attributes are incompatible'
# Combine dataframe properties (which should all have disjoint indices)
for attr in ClfResult._datafame_attrs:
if getattr(res0, attr) is not None:
combo_attr = pd.concat([getattr(r, attr) for r in res_list])
setattr(res, attr, combo_attr)
else:
setattr(res, attr, None)
for attr in ClfResult._datafame_attrs:
val = getattr(res, attr)
if val is not None:
assert np.all(res.index == val.index), 'index got weird'
return res
def hardness_analysis(res, samples, infr=None, method='argmax'):
"""
samples = pblm.samples
# TODO MWE with sklearn data
# ClfResult.make_single(ClfResult, clf, X_df, test_idx, labels,
# data_key, feat_dims=None):
import sklearn.datasets
iris = sklearn.datasets.load_iris()
# TODO: make this setup simpler
pblm = ClfProblem()
task_key, clf_key, data_key = 'iris', 'RF', 'learn(all)'
X_df = pd.DataFrame(iris.data, columns=iris.feature_names)
samples = MultiTaskSamples(X_df.index)
samples.apply_indicators({'iris': {name: iris.target == idx
for idx, name in enumerate(iris.target_names)}})
samples.X_dict = {'learn(all)': X_df}
pblm.samples = samples
pblm.xval_kw['type'] = 'StratifiedKFold'
clf_list, res_list = pblm._train_evaluation_clf(
task_key, data_key, clf_key)
labels = pblm.samples.subtasks[task_key]
res = ClfResult.combine_results(res_list, labels)
res.get_thresholds('mcc', 'maximize')
predict_method = 'argmax'
"""
meta = {}
easiness = ut.ziptake(res.probs_df.values, res.target_enc_df.values)
# pred = sklearn_utils.predict_from_probs(res.probs_df, predict_method)
if method == 'max-mcc':
method = res.get_thresholds('mcc', 'maximize')
pred = sklearn_utils.predict_from_probs(res.probs_df, method, force=True)
meta['easiness'] = np.array(easiness).ravel()
meta['hardness'] = 1 - meta['easiness']
meta['aid1'] = res.probs_df.index.get_level_values(0)
meta['aid2'] = res.probs_df.index.get_level_values(1)
# meta['aid1'] = samples.aid_pairs.T[0].take(res.probs_df.index.values)
# meta['aid2'] = samples.aid_pairs.T[1].take(res.probs_df.index.values)
# meta['pred'] = res.probs_df.values.argmax(axis=1)
meta['pred'] = pred.values
meta['real'] = res.target_enc_df.values.ravel()
meta['failed'] = meta['pred'] != meta['real']
meta = pd.DataFrame(meta)
meta = meta.set_index(['aid1', 'aid2'], drop=False)
if infr is not None:
ibs = infr.ibs
edges = list(meta.index.tolist())
conf_dict = infr.get_edge_attrs(
'confidence',
edges,
on_missing='filter',
default=ibs.const.CONFIDENCE.CODE.UNKNOWN,
)
conf_df = pd.DataFrame.from_dict(conf_dict, orient='index')
conf_df = conf_df[0].map(ibs.const.CONFIDENCE.CODE_TO_INT)
meta = meta.assign(real_conf=conf_df)
meta['real_conf'] = np.nan_to_num(meta['real_conf']).astype(np.int)
meta = meta.sort_values('hardness', ascending=False)
res.meta = meta
return res.meta
def missing_classes(res):
# Find classes that were never predicted
unique_predictions = np.unique(res.probs_df.values.argmax(axis=1))
n_classes = len(res.class_names)
missing_classes = ut.index_complement(unique_predictions, n_classes)
return missing_classes
def augment_if_needed(res):
"""
Adds in dummy values for missing classes
"""
missing_classes = res.missing_classes()
n_classes = len(res.class_names)
y_test_enc_aug = res.target_enc_df.values
y_test_bin_aug = res.target_bin_df.values
clf_probs_aug = res.probs_df.values
sample_weight = np.ones(len(y_test_enc_aug))
n_missing = len(missing_classes)
if res.probhats_df is not None:
clf_probhats_aug = res.probhats_df.values
else:
clf_probhats_aug = None
# Check if augmentation is necessary
if n_missing > 0:
missing_bin = np.zeros((n_missing, n_classes))
missing_bin[(np.arange(n_missing), missing_classes)] = 1.0
missing_enc = np.array(missing_classes)[:, None]
y_test_enc_aug = np.vstack([y_test_enc_aug, missing_enc])
y_test_bin_aug = np.vstack([y_test_bin_aug, missing_bin])
clf_probs_aug = np.vstack([clf_probs_aug, missing_bin])
# make sample weights where dummies have no weight
sample_weight = np.hstack([sample_weight, np.full(n_missing, 0)])
if res.probhats_df is not None:
clf_probhats_aug = np.vstack([clf_probhats_aug, missing_bin])
res.clf_probs = clf_probs_aug
res.clf_probhats = clf_probhats_aug
res.y_test_enc = y_test_enc_aug
res.y_test_bin = y_test_bin_aug
res.sample_weight = sample_weight
def extended_clf_report(res, verbose=True):
res.augment_if_needed()
pred_enc = res.clf_probs.argmax(axis=1)
y_pred = pred_enc
y_true = res.y_test_enc
sample_weight = res.sample_weight
target_names = res.class_names
report = sklearn_utils.classification_report2(
y_true,
y_pred,
target_names=target_names,
sample_weight=sample_weight,
verbose=verbose,
)
return report
def print_report(res):
res.augment_if_needed()
pred_enc = res.clf_probs.argmax(axis=1)
res.extended_clf_report()
report = sklearn.metrics.classification_report(
y_true=res.y_test_enc,
y_pred=pred_enc,
target_names=res.class_names,
sample_weight=res.sample_weight,
)
logger.info('Precision/Recall Report:')
logger.info(report)
def get_thresholds(res, metric='mcc', value='maximize'):
"""
get_metric = 'thresholds'
at_metric = metric = 'mcc'
at_value = value = 'maximize'
a = []
b = []
for x in np.linspace(0, 1, 1000):
a += [cfms.get_metric_at_metric('thresholds', 'fpr', x, subindex=True)]
b += [cfms.get_thresh_at_metric('fpr', x)]
a = np.array(a)
b = np.array(b)
d = (a - b)
logger.info((d.min(), d.max()))
"""
threshes = {}
for class_name in res.class_names:
cfms = res.confusions(class_name)
thresh = cfms.get_metric_at_metric('thresh', metric, value)
threshes[class_name] = thresh
return threshes
@profile
def get_pos_threshes(
res,
metric='fpr',
value=1e-4,
maximize=False,
warmup=200,
priors=None,
min_thresh=0.5,
):
"""
Finds a threshold that achieves the desired `value` for the desired
metric, while maximizing or minimizing the threshold.
For positive classification you want to minimize the threshold.
Priors can be passed in to augment probabilities depending on support.
By default a class prior is 1 for threshold minimization and 0 for
maximization.
"""
pos_threshes = {}
if priors is None:
priors = {name: float(not maximize) for name in res.class_names}
for class_name in res.class_names:
cfms = res.confusions(class_name)
learned_thresh = cfms.get_metric_at_metric('thresh', metric, value)
# learned_thresh = cfms.get_thresh_at_metric(
# metric, value, maximize=maximize)
prior_thresh = priors[class_name]
n_support = cfms.n_pos
if warmup is not None:
"""
python -m wbia.plottool.draw_func2 plot_func --show --range=0,1 \
--func="lambda x: np.maximum(0, (x - .6) / (1 - .6))"
"""
# If n_support < warmup: then interpolate to learned thresh
nmax = warmup if isinstance(warmup, int) else warmup[class_name]
# alpha varies from 0 to 1
alpha = min(nmax, n_support) / nmax
# transform alpha through nonlinear function (similar to ReLU)
p = 0.6 # transition point
alpha = max(0, (alpha - p) / (1 - p))
thresh = prior_thresh * (1 - alpha) + learned_thresh * (alpha)
else:
thresh = learned_thresh
pos_threshes[class_name] = max(min_thresh, thresh)
return pos_threshes
def report_thresholds(res, warmup=200):
# import vtool as vt
ut.cprint('Threshold Report', 'yellow')
y_test_bin = res.target_bin_df.values
# y_test_enc = y_test_bin.argmax(axis=1)
# clf_probs = res.probs_df.values
# The maximum allowed false positive rate
# We expect that we will make 1 error every 1,000 decisions
# thresh_df['foo'] = [1, 2, 3]
# thresh_df['foo'][res.class_names[k]] = 1
# for k in [2, 0, 1]:
choice_mv = ut.odict(
[
('@fpr=.01', ('fpr', 0.01)),
('@fpr=.001', ('fpr', 0.001)),
('@fpr=.0001', ('fpr', 1e-4)),
('@fpr=.0000', ('fpr', 0)),
('@max(mcc)', ('mcc', 'max')),
# (class_name + '@max(acc)', ('acc', 'max')),
# (class_name + '@max(mk)', ('mk', 'max')),
# (class_name + '@max(bm)', ('bm', 'max')),
]
)
for k in range(y_test_bin.shape[1]):
thresh_dict = ut.odict()
class_name = res.class_names[k]
cfms = res.confusions(class_name)
# probs, labels = clf_probs.T[k], y_test_bin.T[k]
# cfms = vt.ConfusionMetrics().fit(probs, labels)
for k, mv in choice_mv.items():
metric, value = mv
idx = cfms.get_index_at_metric(metric, value)
key = class_name + k
thresh_dict[key] = ut.odict()
for metric in ['thresh', 'fpr', 'tpr', 'tpa', 'bm', 'mk', 'mcc']:
thresh_dict[key][metric] = cfms.get_metric_at_index(metric, idx)
thresh_df = pd.DataFrame.from_dict(thresh_dict, orient='index')
thresh_df = thresh_df.loc[list(thresh_dict.keys())]
if cfms.n_pos > 0 and cfms.n_neg > 0:
logger.info('Raw 1vR {} Thresholds'.format(class_name))
logger.info(ut.indent(thresh_df.to_string(float_format='{:.4f}'.format)))
# chosen_type = class_name + '@fpr=0'
# pos_threshes[class_name] = thresh_df.loc[chosen_type]['thresh']
for choice_k, choice_mv in iter(choice_mv.items()):
metric, value = choice_mv
pos_threshes = res.get_pos_threshes(metric, value, warmup=warmup)
logger.info('Choosing threshold based on %s' % (choice_k,))
res.report_auto_thresholds(pos_threshes)
def report_auto_thresholds(res, threshes, verbose=True):
report_lines = []
print_ = report_lines.append
print_(
'Chosen thresholds = %s'
% (ut.repr2(threshes, nl=1, precision=4, align=True),)
)
res.augment_if_needed()
target_names = res.class_names
sample_weight = res.sample_weight
y_true = res.y_test_enc.ravel()
y_pred, can_autodecide = sklearn_utils.predict_from_probs(
res.clf_probs,
threshes,
res.class_names,
force=False,
multi=False,
return_flags=True,
)
can_autodecide[res.sample_weight == 0] = False
auto_pred = y_pred[can_autodecide].astype(np.int)
auto_true = y_true[can_autodecide].ravel()
auto_probs = res.clf_probs[can_autodecide]
total_cases = int(sample_weight.sum())
print_('Will autodecide for %r/%r cases' % (can_autodecide.sum(), (total_cases)))
def frac_str(a, b):
return '{:}/{:} = {:.2f}%'.format(int(a), int(b), a / b)
y_test_bin = res.target_bin_df.values
supported_class_idxs = [k for k, y in enumerate(y_test_bin.T) if y.sum() > 0]
print_(' * Auto-Decide Per-Class Summary')
for k in supported_class_idxs:
# Look at fail/succs in threshold
name = res.class_names[k]
# number of times this class appears overall
n_total_k = (y_test_bin.T[k]).sum()
# get the cases where this class was predicted
auto_true_k = auto_true == k
auto_pred_k = auto_pred == k
# number of cases auto predicted
n_pred_k = auto_pred_k.sum()
# number of times auto was right
n_tp = (auto_true_k & auto_pred_k).sum()
# number of times auto was wrong
n_fp = (~auto_true_k & auto_pred_k).sum()
fail_str = frac_str(n_fp, n_pred_k)
pass_str = frac_str(n_tp, n_total_k)
fmtstr = '\n'.join(
[
'{name}:',
' {n_total_k} samples existed, and did {n_pred_k} auto predictions',
' got {pass_str} right',
' made {fail_str} errors',
]
)
print_(ut.indent(fmtstr.format(**locals())))
report = sklearn_utils.classification_report2(
y_true,
y_pred,
target_names=target_names,
sample_weight=can_autodecide.astype(np.float),
verbose=False,
)
print_(' * Auto-Decide Confusion')
print_(ut.indent(str(report['confusion'])))
print_(' * Auto-Decide Metrics')
print_(ut.indent(str(report['metrics'])))
if 'mcc' in report:
print_(ut.indent(str(report['mcc'])))
try:
auto_truth_bin = res.y_test_bin[can_autodecide]
for k in supported_class_idxs:
auto_truth_k = auto_truth_bin.T[k]
auto_probs_k = auto_probs.T[k]
if auto_probs_k.sum():
auc = sklearn.metrics.roc_auc_score(auto_truth_k, auto_probs_k)
print_(
' * Auto AUC(Macro): {:.4f} for class={}'.format(
auc, res.class_names[k]
)
)
except ValueError:
pass
report = '\n'.join(report_lines)
if verbose:
logger.info(report)
return report
def confusions(res, class_name):
import vtool as vt
y_test_bin = res.target_bin_df.values
clf_probs = res.probs_df.values
k = res.class_names.index(class_name)
probs, labels = clf_probs.T[k], y_test_bin.T[k]
confusions = vt.ConfusionMetrics().fit(probs, labels)
return confusions
def ishow_roc(res):
import vtool as vt
import wbia.plottool as pt
ut.qtensure()
y_test_bin = res.target_bin_df.values
# The maximum allowed false positive rate
# We expect that we will make 1 error every 1,000 decisions
# thresh_df['foo'] = [1, 2, 3]
# thresh_df['foo'][res.class_names[k]] = 1
# for k in [2, 0, 1]:
for k in range(y_test_bin.shape[1]):
if y_test_bin.shape[1] == 2 and k == 0:
# only show one in the binary case
continue
class_name = res.class_names[k]
confusions = res.confusions(class_name)
ROCInteraction = vt.interact_roc_factory(
confusions, show_operating_point=True
)
fnum = pt.ensure_fnum(k)
# ROCInteraction.static_plot(fnum, None, name=class_name)
inter = ROCInteraction(fnum=fnum, pnum=None, name=class_name)
inter.start()
# if False:
# X = probs
# y = labels
# encoder = vt.ScoreNormalizer()
# encoder.fit(probs, labels)
# learn_thresh = encoder.learn_threshold2()
# encoder.inverse_normalize(learn_thresh)
# encoder.visualize(fnum=k)
pass
def show_roc(res, class_name, **kwargs):
import vtool as vt
labels = res.target_bin_df[class_name].values
probs = res.probs_df[class_name].values
confusions = vt.ConfusionMetrics().fit(probs, labels)
confusions.draw_roc_curve(**kwargs)
def roc_scores_ovr_hat(res):
res.augment_if_needed()
for k in range(len(res.class_names)):
class_k_truth = res.y_test_bin.T[k]
class_k_probs = res.probhats_df.values.T[k]
auc = sklearn.metrics.roc_auc_score(class_k_truth, class_k_probs)
yield auc
def roc_scores_ovr(res):
res.augment_if_needed()
for k in range(res.y_test_bin.shape[1]):
class_k_truth = res.y_test_bin.T[k]
class_k_probs = res.clf_probs.T[k]
auc = sklearn.metrics.roc_auc_score(class_k_truth, class_k_probs)
yield auc
def confusions_ovr(res):
# one_vs_rest confusions
import vtool as vt
res.augment_if_needed()
for k in range(res.y_test_bin.shape[1]):
class_k_truth = res.y_test_bin.T[k]
class_k_probs = res.clf_probs.T[k]
cfms = vt.ConfusionMetrics().fit(class_k_probs, class_k_truth)
# auc = sklearn.metrics.roc_auc_score(class_k_truth, class_k_probs)
yield res.class_names[k], cfms
def roc_score(res):
res.augment_if_needed()
auc_learn = sklearn.metrics.roc_auc_score(res.y_test_bin, res.clf_probs)
return auc_learn
@ut.reloadable_class
class MultiTaskSamples(ut.NiceRepr):
"""
Handles samples (i.e. feature-label pairs) with a combination of
non-mutually exclusive subclassification labels
CommandLine:
python -m wbia.algo.verif.clf_helpers MultiTaskSamples
Example:
>>> # ENABLE_DOCTEST
>>> from wbia.algo.verif.clf_helpers import * # NOQA
>>> samples = MultiTaskSamples([0, 1, 2, 3])
>>> tasks_to_indicators = ut.odict([
>>> ('task1', ut.odict([
>>> ('state1', [0, 0, 0, 1]),
>>> ('state2', [0, 0, 1, 0]),
>>> ('state3', [1, 1, 0, 0]),
>>> ])),
>>> ('task2', ut.odict([
>>> ('state4', [0, 0, 0, 1]),
>>> ('state5', [1, 1, 1, 0]),
>>> ]))
>>> ])
>>> samples.apply_indicators(tasks_to_indicators)
"""
def __init__(samples, index):
samples.index = index
samples.subtasks = ut.odict()
# def set_simple_scores(samples, simple_scores):
# if simple_scores is not None:
# edges = ut.emap(tuple, samples.aid_pairs.tolist())
# assert (edges == simple_scores.index.tolist())
# samples.simple_scores = simple_scores
# def set_feats(samples, X_dict):
# if X_dict is not None:
# edges = ut.emap(tuple, samples.aid_pairs.tolist())
# for X in X_dict.values():
# assert np.all(edges == X.index.tolist())
# samples.X_dict = X_dict
def supported_tasks(samples):
for task_key, labels in samples.subtasks.items():
labels = samples.subtasks[task_key]
if labels.has_support():
yield task_key
def apply_indicators(samples, tasks_to_indicators):
"""
Adds labels for a specific task
Args:
tasks_to_indicators (dict): takes the form:
{
`my_task_name1' {
'class1': [list of bools indicating class membership]
...
'classN': [list of bools indicating class membership]
}
...
`my_task_nameN': ...
}
"""
n_samples = None
samples.n_tasks = len(tasks_to_indicators)
for task_name, indicator in tasks_to_indicators.items():
labels = MultiClassLabels.from_indicators(
indicator, task_name=task_name, index=samples.index
)
samples.subtasks[task_name] = labels
if n_samples is None:
n_samples = labels.n_samples
elif n_samples != labels.n_samples:
raise ValueError('numer of samples is different')
samples.n_samples = n_samples
def apply_encoded_labels(samples, y_enc, class_names, task_name):
"""
Adds labels for a specific task. Alternative to `apply_indicators`
Args:
y_enc (list): integer label indicating the class for each sample
class_names (list): list of strings indicating the class-domain
task_name (str): key for denoting this specific task
"""
# convert to indicator structure and use that
tasks_to_indicators = ut.odict(
[
(
task_name,
ut.odict(
[
(name, np.array(y_enc) == i)
for i, name in enumerate(class_names)
]
),
)
]
)
samples.apply_indicators(tasks_to_indicators)
# @ut.memoize
def encoded_2d(samples):
encoded_2d = pd.concat([v.encoded_df for k, v in samples.items()], axis=1)
return encoded_2d
def class_name_basis(samples):
"""corresponds with indexes returned from encoded1d"""
class_name_basis = [
t[::-1]
for t in ut.product(*[v.class_names for k, v in samples.items()][::-1])
]
# class_name_basis = [(b, a) for a, b in ut.product(*[
# v.class_names for k, v in samples.items()][::-1])]
return class_name_basis
def class_idx_basis_2d(samples):
"""2d-index version of class_name_basis"""
class_idx_basis_2d = [
(b, a)
for a, b in ut.product(
*[range(v.n_classes) for k, v in samples.items()][::-1]
)
]
return class_idx_basis_2d
def class_idx_basis_1d(samples):
"""1d-index version of class_name_basis"""
n_states = np.prod([v.n_classes for k, v in samples.items()])
class_idx_basis_1d = np.arange(n_states, dtype=np.int)
return class_idx_basis_1d
# @ut.memoize
def encoded_1d(samples):
"""Returns a unique label for each combination of samples"""
# from sklearn.preprocessing import MultiLabelBinarizer
encoded_2d = samples.encoded_2d()
class_space = [v.n_classes for k, v in samples.items()]
offsets = np.array([1] + np.cumprod(class_space).tolist()[:-1])[None, :]
encoded_1d = (offsets * encoded_2d).sum(axis=1)
# e = MultiLabelBinarizer()
# bin_coeff = e.fit_transform(encoded_2d)
# bin_basis = (2 ** np.arange(bin_coeff.shape[1]))[None, :]
# # encoded_1d = (bin_coeff * bin_basis).sum(axis=1)
# encoded_1d = (bin_coeff * bin_basis[::-1]).sum(axis=1)
# # vt.unique_rows(sklearn.preprocessing.MultiLabelBinarizer().fit_transform(encoded_2d))
# [v.encoded_df.values for k, v in samples.items()]
# encoded_df_1d = pd.concat([v.encoded_df for k, v in samples.items()], axis=1)
return encoded_1d
def __nice__(samples):
return 'nS=%r, nT=%r' % (len(samples), samples.n_tasks)
def __getitem__(samples, task_key):
return samples.subtasks[task_key]
def __len__(samples):
return samples.n_samples
def print_info(samples):
for task_name, labels in samples.items():
labels.print_info()
logger.info('hist(all) = %s' % (ut.repr4(samples.make_histogram())))
logger.info('len(all) = %s' % (len(samples)))
def make_histogram(samples):
"""label histogram"""
class_name_basis = samples.class_name_basis()
class_idx_basis_1d = samples.class_idx_basis_1d()
# logger.info('class_idx_basis_1d = %r' % (class_idx_basis_1d,))
# logger.info(samples.encoded_1d())
multi_task_idx_hist = ut.dict_hist(
samples.encoded_1d().values, labels=class_idx_basis_1d
)
multi_task_hist = ut.map_keys(lambda k: class_name_basis[k], multi_task_idx_hist)
return multi_task_hist
def items(samples):
for task_name, labels in samples.subtasks.items():
yield task_name, labels
# def take(samples, idxs):
# mask = ut.index_to_boolmask(idxs, len(samples))
# return samples.compress(mask)
@property
def group_ids(samples):
return None
def stratified_kfold_indices(samples, **xval_kw):
"""
TODO: check xval label frequency
"""
from sklearn import model_selection
X = np.empty((len(samples), 0))
y = samples.encoded_1d().values
groups = samples.group_ids
type_ = xval_kw.pop('type', 'StratifiedGroupKFold')
if type_ == 'StratifiedGroupKFold':
assert groups is not None
# FIXME: The StratifiedGroupKFold could be implemented better.
splitter = sklearn_utils.StratifiedGroupKFold(**xval_kw)
skf_list = list(splitter.split(X=X, y=y, groups=groups))
elif type_ == 'StratifiedKFold':
splitter = model_selection.StratifiedKFold(**xval_kw)
skf_list = list(splitter.split(X=X, y=y))
return skf_list
def subsplit_indices(samples, subset_idx, **xval_kw):
"""split an existing set"""
from sklearn import model_selection
X = np.empty((len(subset_idx), 0))
y = samples.encoded_1d().values[subset_idx]
groups = samples.group_ids[subset_idx]
xval_kw_ = xval_kw.copy()
if 'n_splits' not in xval_kw_:
xval_kw_['n_splits'] = 3
type_ = xval_kw_.pop('type', 'StratifiedGroupKFold')
if type_ == 'StratifiedGroupKFold':
assert groups is not None
# FIXME: The StratifiedGroupKFold could be implemented better.
splitter = sklearn_utils.StratifiedGroupKFold(**xval_kw_)
rel_skf_list = list(splitter.split(X=X, y=y, groups=groups))
elif type_ == 'StratifiedKFold':
splitter = model_selection.StratifiedKFold(**xval_kw_)
rel_skf_list = list(splitter.split(X=X, y=y))
# map back into original coords
skf_list = [
(subset_idx[rel_idx1], subset_idx[rel_idx2])
for rel_idx1, rel_idx2 in rel_skf_list
]
for idx1, idx2 in skf_list:
assert len(np.intersect1d(subset_idx, idx1)) == len(idx1)
assert len(np.intersect1d(subset_idx, idx2)) == len(idx2)
# assert
return skf_list
@ut.reloadable_class
class MultiClassLabels(ut.NiceRepr):
"""
Used by samples to encode a single set of mutually exclusive labels. These
can either be binary or multiclass.
import pandas as pd
pd.options.display.max_rows = 10
# pd.options.display.max_rows = 20
pd.options.display.max_columns = 40
pd.options.display.width = 160
"""
def __init__(labels):
# Helper Info
labels.task_name = None
labels.n_samples = None
labels.n_classes = None
labels.class_names = None
labels.classes_ = None
# Core data
labels.indicator_df = None
labels.encoded_df = None
labels.default_class = None
def has_support(labels):
return len(labels.make_histogram()) > 1
def lookup_class_idx(labels, class_name):
return ut.dzip(labels.class_names, labels.classes_)[class_name]
@classmethod
def from_indicators(MultiClassLabels, indicator, index=None, task_name=None):
labels = MultiClassLabels()
n_samples = len(next(iter(indicator.values())))
# if index is None:
# index = pd.Series(np.arange(n_samples), name='index')
indicator_df = pd.DataFrame(indicator, index=index)
assert np.all(
indicator_df.sum(axis=1).values
), 'states in the same task must be mutually exclusive'
labels.indicator_df = indicator_df
labels.class_names = indicator_df.columns.values
labels.encoded_df = pd.DataFrame(
indicator_df.values.argmax(axis=1), columns=[task_name], index=index
)
labels.task_name = task_name
labels.n_samples = n_samples
labels.n_classes = len(labels.class_names)
if labels.n_classes == 1:
labels.n_classes = 2 # 1 column means binary case
labels.classes_ = np.arange(labels.n_classes)
labels.default_class_name = labels.class_names[1]
return labels
@property
def target_type(labels):
return sklearn.utils.multiclass.type_of_target(labels.y_enc)
def one_vs_rest_task_names(labels):
return [
labels.task_name + '(' + labels.class_names[k] + '-v-rest)'
for k in range(labels.n_classes)
]
def gen_one_vs_rest_labels(labels):
"""
Example:
>>> # ENABLE_DOCTEST
>>> from wbia.algo.verif.clf_helpers import * # NOQA
>>> indicator = ut.odict([
>>> ('state1', [0, 0, 0, 1]),
>>> ('state2', [0, 0, 1, 0]),
>>> ('state3', [1, 1, 0, 0]),
>>> ])
>>> labels = MultiClassLabels.from_indicators(indicator, task_name='task1')
>>> sublabels = list(labels.gen_one_vs_rest_labels())
>>> sublabel = sublabels[0]
"""
if labels.target_type == 'binary':
yield labels
return
task_names_1vR = labels.one_vs_rest_task_names()
for k in range(labels.n_classes):
class_name = labels.class_names[k]
task_name = task_names_1vR[k]
index = labels.indicator_df.index
indicator_df = pd.DataFrame()
indicator_df['not-' + class_name] = 1 - labels.indicator_df[class_name]
indicator_df[class_name] = labels.indicator_df[class_name]
indicator_df.index = index
# indicator = labels.encoded_df == k
# indicator.rename(columns={indicator.columns[0]: class_name}, inplace=True)
n_samples = len(indicator_df)
sublabel = MultiClassLabels()
sublabel.indicator_df = indicator_df
sublabel.class_names = indicator_df.columns.values
# if len(indicator_df.columns) == 1:
# sublabel.encoded_df = pd.DataFrame(
# indicator_df.values.T[0],
# columns=[task_name]
# )
# else:
sublabel.encoded_df = pd.DataFrame(
indicator_df.values.argmax(axis=1), columns=[task_name], index=index
)
sublabel.task_name = task_name
sublabel.n_samples = n_samples
sublabel.n_classes = len(sublabel.class_names)
# if sublabel.n_classes == 1:
# sublabel.n_classes = 2 # 1 column means binary case
sublabel.classes_ = np.arange(sublabel.n_classes)
# sublabel = MultiClassLabels.from_indicators(indicator,
# task_name=subname, index=samples.index)
yield sublabel
@property
def y_bin(labels):
return labels.indicator_df.values
@property
def y_enc(labels):
return labels.encoded_df.values.ravel()
def __nice__(labels):
parts = []
if labels.task_name is not None:
parts.append(labels.task_name)
parts.append('nD=%r' % (labels.n_samples))
parts.append('nC=%r' % (labels.n_classes))
return ' '.join(parts)
def __len__(labels):
return labels.n_samples
def make_histogram(labels):
class_idx_hist = ut.dict_hist(labels.y_enc)
class_hist = ut.map_keys(lambda idx: labels.class_names[idx], class_idx_hist)
return class_hist
def print_info(labels):
logger.info(
'hist(%s) = %s' % (labels.task_name, ut.repr4(labels.make_histogram()))
)
logger.info('len(%s) = %s' % (labels.task_name, len(labels)))
class IrisProblem(ClfProblem):
"""
Simple demo using the abstract clf problem to work on the iris dataset.
Example:
>>> # ENABLE_DOCTEST
>>> from wbia.algo.verif.clf_helpers import * # NOQA
>>> pblm = IrisProblem()
>>> pblm.setup()
>>> pblm.samples
"""
def setup(pblm):
import sklearn.datasets
iris = sklearn.datasets.load_iris()
pblm.primary_task_key = 'iris'
pblm.default_data_key = 'learn(all)'
pblm.default_clf_key = 'RF'
X_df = pd.DataFrame(iris.data, columns=iris.feature_names)
samples = MultiTaskSamples(X_df.index)
samples.apply_indicators(
{
'iris': {
name: iris.target == idx for idx, name in enumerate(iris.target_names)
}
}
)
samples.X_dict = {'learn(all)': X_df}
pblm.samples = samples
pblm.xval_kw['type'] = 'StratifiedKFold'
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
4013,
3883,
338,
263,
664,
297,
6728,
29892,
408,
1316,
22001,
526,
4967,
304,
1735,
29889,
13,
13,
29032,
15004,
29909,
29901,
13,
1678,
421,
15329,
5398,
29903,
9422,
29952,
19700,
408,
263,
3829,
304,
1712,
322,
26749,
263,
731,
310,
13,
1678,
11916,
411,
19998,
1784,
1422,
4072,
310,
11073,
322,
5680,
29889,
13,
15945,
29908,
13,
5215,
12183,
13,
5215,
318,
10154,
408,
3477,
13,
5215,
13069,
2152,
408,
13069,
13,
5215,
12655,
408,
7442,
13,
3166,
281,
15959,
1053,
270,
10154,
408,
11636,
13,
5215,
11701,
408,
10518,
13,
5215,
2071,
19668,
13,
5215,
2071,
19668,
29889,
2527,
10817,
13,
5215,
2071,
19668,
29889,
24031,
13,
5215,
2071,
19668,
29889,
326,
649,
29872,
13,
5215,
2071,
19668,
29889,
13096,
5570,
13,
5215,
2071,
19668,
29889,
484,
3631,
29918,
11618,
13,
3166,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
1053,
2071,
19668,
29918,
13239,
13,
13,
2158,
29892,
364,
21478,
29892,
8722,
353,
3477,
29889,
21920,
29906,
22168,
978,
1649,
29897,
13,
21707,
353,
12183,
29889,
657,
16363,
877,
29893,
15959,
1495,
13,
13,
13,
1990,
1060,
1440,
3991,
29898,
6008,
29889,
3991,
1125,
13,
1678,
903,
3207,
29918,
3888,
29918,
1761,
353,
518,
13,
4706,
396,
3477,
29889,
4736,
3401,
877,
1853,
742,
525,
5015,
271,
2164,
29968,
29943,
1025,
5477,
13,
4706,
3477,
29889,
4736,
3401,
877,
1853,
742,
525,
5015,
271,
2164,
4782,
29968,
29943,
1025,
5477,
13,
4706,
3477,
29889,
4736,
3401,
877,
29876,
29918,
23579,
1169,
742,
29871,
29941,
511,
13,
4706,
3477,
29889,
4736,
3401,
29898,
13,
9651,
525,
845,
21897,
742,
5852,
29892,
9563,
361,
29922,
2892,
274,
16434,
29901,
274,
16434,
1839,
1853,
2033,
1275,
525,
5015,
271,
2164,
4782,
29968,
29943,
1025,
29915,
13,
4706,
10353,
13,
4706,
3477,
29889,
4736,
3401,
29898,
13,
9651,
525,
8172,
29918,
3859,
742,
13,
632,
29941,
29929,
29945,
29941,
29900,
29945,
29953,
29929,
29900,
29896,
29892,
13,
9651,
9563,
361,
29922,
2892,
274,
16434,
29901,
274,
16434,
1839,
1853,
2033,
1275,
525,
5015,
271,
2164,
4782,
29968,
29943,
1025,
742,
13,
4706,
10353,
13,
1678,
4514,
13,
13,
13,
29992,
329,
29889,
28120,
519,
29918,
1990,
13,
1990,
2233,
29888,
26604,
29898,
329,
29889,
29940,
625,
1123,
558,
1125,
13,
1678,
822,
4770,
2344,
12035,
29886,
2204,
29885,
1125,
13,
4706,
282,
2204,
29885,
29889,
16519,
29918,
7662,
29918,
695,
5847,
353,
6213,
13,
4706,
282,
2204,
29885,
29889,
14513,
29918,
7662,
29918,
695,
5847,
353,
6213,
13,
4706,
282,
2204,
29885,
29889,
29916,
791,
29918,
11022,
353,
1060,
1440,
3991,
580,
13,
4706,
282,
2204,
29885,
29889,
14513,
29918,
7662,
29918,
695,
5847,
353,
6213,
13,
4706,
282,
2204,
29885,
29889,
7662,
29918,
510,
833,
29918,
690,
353,
6213,
13,
4706,
282,
2204,
29885,
29889,
369,
15828,
353,
5852,
13,
13,
1678,
822,
731,
29918,
15112,
29918,
6768,
29898,
29886,
2204,
29885,
1125,
13,
4706,
396,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29896,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29906,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
13099,
353,
29871,
29946,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
2103,
353,
29871,
29896,
29953,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
7411,
29918,
4830,
353,
14013,
921,
29901,
14210,
29889,
29946,
29888,
29915,
1273,
313,
29916,
29892,
29897,
13,
13,
1678,
822,
731,
29918,
15112,
29918,
6768,
29918,
677,
29898,
29886,
2204,
29885,
1125,
13,
4706,
396,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29896,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29945,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
13099,
353,
29871,
29946,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
2103,
353,
29871,
29896,
29953,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
7411,
29918,
4830,
353,
14013,
921,
29901,
14210,
29889,
29946,
29888,
29915,
1273,
313,
29916,
29892,
29897,
13,
13,
1678,
822,
731,
29918,
15112,
29918,
6768,
29918,
8945,
29898,
29886,
2204,
29885,
1125,
13,
4706,
396,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29896,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29906,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
13099,
353,
29871,
29946,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
2103,
353,
29871,
29896,
29953,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
7411,
29918,
4830,
353,
14013,
921,
29901,
14210,
29889,
29946,
29888,
29915,
1273,
313,
29916,
29892,
29897,
13,
13,
1678,
822,
5110,
29918,
24219,
362,
29918,
1990,
14903,
29898,
29886,
2204,
29885,
29892,
3414,
29918,
8149,
29922,
8516,
29892,
1067,
29888,
29918,
8149,
29922,
8516,
29892,
848,
29918,
8149,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
382,
4387,
1078,
491,
6509,
770,
14903,
773,
4891,
8845,
29889,
13,
4706,
1938,
451,
671,
445,
304,
5110,
5802,
770,
14903,
29889,
13,
13,
4706,
3017,
448,
29885,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
4270,
650,
14707,
29918,
1990,
14903,
1192,
2585,
349,
29999,
29918,
29925,
29933,
29918,
29934,
29943,
29918,
29911,
4717,
1177,
1192,
4294,
13,
13,
4706,
8741,
29901,
13,
13,
4706,
10516,
3542,
29901,
13,
9651,
3017,
448,
29885,
1067,
29888,
29918,
3952,
6774,
5110,
29918,
24219,
362,
29918,
1990,
14903,
13,
13,
4706,
8741,
29901,
13,
9651,
8653,
396,
12524,
6181,
29918,
3970,
1783,
29923,
1254,
13,
9651,
8653,
515,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
695,
29888,
29918,
3952,
6774,
1053,
334,
29871,
396,
11698,
29984,
29909,
13,
9651,
8653,
282,
2204,
29885,
353,
306,
3780,
26604,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
14669,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
369,
15828,
353,
5852,
13,
9651,
8653,
282,
2204,
29885,
29889,
14513,
29918,
695,
29888,
29918,
8149,
353,
6024,
3403,
277,
742,
525,
29934,
29943,
2033,
13,
9651,
8653,
282,
2204,
29885,
29889,
14513,
29918,
7662,
29918,
8149,
353,
6024,
381,
275,
2033,
13,
9651,
8653,
282,
2204,
29885,
29889,
14513,
29918,
1272,
29918,
8149,
353,
6024,
19668,
29898,
497,
29897,
2033,
13,
9651,
8653,
1121,
353,
282,
2204,
29885,
29889,
19668,
29918,
24219,
362,
29918,
1990,
14903,
580,
13,
9651,
8653,
620,
353,
282,
2204,
29885,
29889,
7662,
29918,
510,
833,
29918,
690,
1839,
381,
275,
16215,
3403,
277,
16215,
19668,
29898,
497,
29897,
2033,
13,
9651,
8653,
620,
29889,
2158,
29918,
12276,
580,
13,
9651,
8653,
620,
353,
282,
2204,
29885,
29889,
7662,
29918,
510,
833,
29918,
690,
1839,
381,
275,
16215,
29934,
29943,
16215,
19668,
29898,
497,
29897,
2033,
13,
9651,
8653,
620,
29889,
2158,
29918,
12276,
580,
13,
9651,
8653,
1596,
29898,
2914,
29897,
13,
4706,
9995,
13,
4706,
282,
2204,
29885,
29889,
14513,
29918,
7662,
29918,
695,
5847,
353,
3477,
29889,
12300,
29963,
440,
2450,
580,
13,
4706,
282,
2204,
29885,
29889,
7662,
29918,
510,
833,
29918,
690,
353,
3477,
29889,
12300,
29963,
440,
2450,
580,
13,
13,
4706,
565,
3414,
29918,
8149,
338,
6213,
29901,
13,
9651,
3414,
29918,
8149,
353,
282,
2204,
29885,
29889,
14513,
29918,
7662,
29918,
8149,
13,
4706,
565,
848,
29918,
8149,
338,
6213,
29901,
13,
9651,
848,
29918,
8149,
353,
282,
2204,
29885,
29889,
14513,
29918,
1272,
29918,
8149,
13,
4706,
565,
1067,
29888,
29918,
8149,
338,
6213,
29901,
13,
9651,
1067,
29888,
29918,
8149,
353,
282,
2204,
29885,
29889,
14513,
29918,
695,
29888,
29918,
8149,
13,
13,
4706,
565,
3414,
29918,
8149,
338,
6213,
29901,
13,
9651,
3414,
29918,
8149,
353,
518,
29886,
2204,
29885,
29889,
16072,
29918,
7662,
29918,
1989,
29962,
13,
4706,
565,
848,
29918,
8149,
338,
6213,
29901,
13,
9651,
848,
29918,
8149,
353,
518,
29886,
2204,
29885,
29889,
4381,
29918,
1272,
29918,
1989,
29962,
13,
4706,
565,
1067,
29888,
29918,
8149,
338,
6213,
29901,
13,
9651,
1067,
29888,
29918,
8149,
353,
518,
29886,
2204,
29885,
29889,
4381,
29918,
695,
29888,
29918,
1989,
29962,
13,
13,
4706,
565,
282,
2204,
29885,
29889,
369,
15828,
29901,
13,
9651,
3477,
29889,
29883,
2158,
877,
29961,
29886,
2204,
29885,
29962,
5110,
29918,
24219,
362,
29918,
1990,
14903,
742,
2927,
2433,
9539,
1495,
13,
9651,
3477,
29889,
29883,
2158,
877,
29961,
29886,
2204,
29885,
29962,
3414,
29918,
8149,
353,
6571,
4286,
4830,
29898,
7662,
29918,
8149,
876,
13,
9651,
3477,
29889,
29883,
2158,
877,
29961,
29886,
2204,
29885,
29962,
848,
29918,
8149,
353,
6571,
4286,
4830,
29898,
1272,
29918,
8149,
876,
13,
9651,
3477,
29889,
29883,
2158,
877,
29961,
29886,
2204,
29885,
29962,
1067,
29888,
29918,
8149,
353,
6571,
4286,
4830,
29898,
695,
29888,
29918,
8149,
876,
13,
13,
4706,
1019,
29887,
353,
3477,
29889,
1184,
29887,
7439,
616,
29898,
29888,
7971,
29922,
29896,
29892,
10365,
29922,
8824,
29892,
758,
29882,
547,
2433,
29995,
29879,
1495,
13,
4706,
3414,
29918,
29097,
353,
1019,
29887,
29898,
7662,
29918,
8149,
29892,
3858,
2433,
5398,
1495,
13,
4706,
363,
3414,
29918,
1989,
297,
3414,
29918,
29097,
29901,
13,
9651,
8783,
29918,
29097,
353,
1019,
29887,
29898,
1272,
29918,
8149,
29892,
3858,
2433,
1469,
1495,
13,
9651,
363,
848,
29918,
1989,
297,
8783,
29918,
29097,
29901,
13,
18884,
1067,
29888,
29918,
29097,
353,
1019,
29887,
29898,
695,
29888,
29918,
8149,
29892,
3858,
2433,
6154,
29943,
1495,
13,
18884,
363,
1067,
29888,
29918,
1989,
297,
1067,
29888,
29918,
29097,
29901,
13,
462,
1678,
282,
2204,
29885,
3032,
7469,
29918,
24219,
362,
29918,
695,
29888,
29898,
7662,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
29897,
13,
13,
1678,
822,
903,
7469,
29918,
24219,
362,
29918,
695,
29888,
29898,
29886,
2204,
29885,
29892,
3414,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
29892,
671,
29918,
8173,
29922,
5574,
1125,
13,
4706,
9995,
13,
4706,
19530,
1983,
322,
274,
14520,
385,
17983,
313,
19128,
29899,
3084,
630,
29897,
770,
3709,
322,
6987,
13,
4706,
322,
274,
14520,
278,
2582,
29889,
13,
13,
4706,
848,
29918,
1989,
353,
525,
19668,
29898,
2083,
29892,
23705,
16029,
13,
4706,
1067,
29888,
29918,
1989,
353,
525,
29934,
29943,
29915,
13,
4706,
9995,
13,
4706,
396,
14402,
29901,
788,
297,
8636,
1304,
304,
3386,
5680,
964,
278,
274,
16434,
710,
13,
4706,
565,
756,
5552,
29898,
29886,
2204,
29885,
29889,
27736,
29892,
525,
11249,
29918,
8568,
333,
29374,
13,
9651,
474,
5824,
353,
282,
2204,
29885,
29889,
262,
1341,
29889,
747,
29879,
13,
9651,
4559,
29918,
8568,
333,
353,
282,
2204,
29885,
29889,
27736,
29889,
11249,
29918,
8568,
333,
580,
13,
13,
9651,
1238,
271,
29918,
6229,
29879,
353,
282,
2204,
29885,
29889,
27736,
29889,
29990,
29918,
8977,
29961,
1272,
29918,
1989,
1822,
13099,
29889,
5975,
29889,
25027,
391,
580,
13,
9651,
396,
274,
16434,
29918,
13506,
353,
4559,
29918,
8568,
333,
718,
282,
2204,
29885,
29889,
29939,
7971,
5396,
657,
29918,
16859,
710,
580,
718,
1238,
271,
29918,
16859,
710,
13,
13,
9651,
707,
29918,
11022,
29896,
29892,
707,
29918,
11022,
29906,
353,
282,
2204,
29885,
3032,
342,
326,
1061,
29918,
7529,
29898,
695,
29888,
29918,
1989,
29897,
13,
9651,
1828,
29918,
333,
353,
3477,
29889,
657,
29918,
8977,
29918,
8568,
333,
29898,
342,
29918,
11022,
29896,
29897,
13,
9651,
921,
791,
29918,
333,
353,
282,
2204,
29885,
29889,
29916,
791,
29918,
11022,
29889,
657,
29918,
16859,
710,
580,
13,
9651,
274,
16434,
710,
353,
22868,
4286,
7122,
29898,
13,
18884,
518,
13,
462,
1678,
4559,
29918,
8568,
333,
29892,
13,
462,
1678,
1828,
29918,
333,
29892,
13,
462,
1678,
921,
791,
29918,
333,
29892,
13,
462,
1678,
3414,
29918,
1989,
29892,
13,
462,
1678,
848,
29918,
1989,
29892,
13,
462,
1678,
1067,
29888,
29918,
1989,
29892,
13,
462,
1678,
3477,
29889,
8568,
333,
29918,
2749,
29898,
1725,
271,
29918,
6229,
29879,
29892,
525,
1725,
1446,
5477,
13,
18884,
4514,
13,
9651,
1723,
13,
9651,
285,
978,
353,
525,
14513,
29918,
695,
29888,
690,
29918,
29915,
718,
474,
5824,
29889,
2585,
978,
13,
4706,
1683,
29901,
13,
9651,
285,
978,
353,
525,
5431,
29915,
13,
9651,
1238,
271,
29918,
6229,
29879,
353,
6213,
13,
9651,
274,
16434,
710,
353,
525,
1646,
29915,
13,
9651,
671,
29918,
8173,
353,
7700,
13,
13,
4706,
396,
14402,
29901,
319,
12809,
770,
881,
451,
367,
22488,
13,
4706,
274,
11665,
29918,
11022,
353,
9657,
29898,
932,
978,
2433,
4270,
650,
29918,
9600,
29918,
14968,
742,
9615,
29922,
1509,
29918,
8173,
29892,
26952,
29922,
29896,
29897,
13,
4706,
274,
11665,
29918,
695,
29888,
353,
13069,
29889,
29907,
11665,
29898,
29888,
978,
29892,
274,
16434,
710,
29922,
16859,
710,
29892,
12700,
11759,
1725,
271,
29918,
6229,
29879,
1402,
3579,
29883,
11665,
29918,
11022,
29897,
13,
13,
4706,
848,
353,
274,
11665,
29918,
695,
29888,
29889,
2202,
1359,
580,
13,
4706,
565,
451,
848,
29901,
13,
9651,
848,
353,
282,
2204,
29885,
3032,
14968,
29918,
24219,
362,
29918,
695,
29888,
29898,
7662,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
29897,
13,
9651,
274,
11665,
29918,
695,
29888,
29889,
7620,
29898,
1272,
29897,
13,
4706,
1067,
29888,
29918,
1761,
29892,
620,
29918,
1761,
353,
848,
13,
13,
4706,
11073,
353,
282,
2204,
29885,
29889,
27736,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
29962,
13,
4706,
419,
833,
29918,
690,
353,
2233,
29888,
3591,
29889,
17743,
457,
29918,
9902,
29898,
690,
29918,
1761,
29892,
11073,
29897,
13,
4706,
282,
2204,
29885,
29889,
14513,
29918,
7662,
29918,
695,
5847,
29961,
7662,
29918,
1989,
3816,
695,
29888,
29918,
1989,
3816,
1272,
29918,
1989,
29962,
353,
1067,
29888,
29918,
1761,
13,
4706,
282,
2204,
29885,
29889,
7662,
29918,
510,
833,
29918,
690,
29961,
7662,
29918,
1989,
3816,
695,
29888,
29918,
1989,
3816,
1272,
29918,
1989,
29962,
353,
419,
833,
29918,
690,
13,
13,
1678,
822,
903,
14968,
29918,
24219,
362,
29918,
695,
29888,
29898,
29886,
2204,
29885,
29892,
3414,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
29892,
1238,
271,
29918,
6229,
29879,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
19530,
1983,
263,
4891,
29899,
3084,
630,
770,
3709,
373,
278,
8783,
13,
13,
4706,
18076,
487,
29901,
13,
9651,
8653,
515,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
4270,
650,
1053,
334,
29871,
396,
11698,
29984,
29909,
13,
9651,
8653,
282,
2204,
29885,
353,
3118,
29963,
29879,
6716,
26604,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
1359,
29918,
22100,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
1359,
29918,
27736,
580,
13,
9651,
8653,
848,
29918,
1989,
353,
525,
19668,
29898,
497,
16029,
13,
9651,
8653,
3414,
29918,
1989,
353,
525,
561,
327,
711,
3424,
29918,
3859,
29915,
13,
9651,
8653,
1067,
29888,
29918,
1989,
353,
525,
29934,
29943,
29899,
29949,
29963,
29934,
29915,
13,
9651,
8653,
3414,
29918,
1989,
353,
525,
4352,
29918,
3859,
29915,
13,
9651,
8653,
848,
29918,
1989,
353,
282,
2204,
29885,
29889,
4381,
29918,
1272,
29918,
1989,
13,
9651,
8653,
1067,
29888,
29918,
1989,
353,
282,
2204,
29885,
29889,
4381,
29918,
695,
29888,
29918,
1989,
13,
4706,
9995,
13,
4706,
1060,
29918,
2176,
353,
282,
2204,
29885,
29889,
27736,
29889,
29990,
29918,
8977,
29961,
1272,
29918,
1989,
29962,
13,
4706,
11073,
353,
282,
2204,
29885,
29889,
27736,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
29962,
13,
4706,
4974,
7442,
29889,
497,
29898,
21134,
29889,
26716,
29918,
2176,
29889,
2248,
1275,
1060,
29918,
2176,
29889,
2248,
29897,
13,
13,
4706,
1067,
29888,
29918,
3846,
353,
282,
2204,
29885,
3032,
657,
29918,
342,
326,
1061,
29898,
695,
29888,
29918,
1989,
29897,
13,
4706,
921,
791,
29918,
11022,
353,
282,
2204,
29885,
29889,
29916,
791,
29918,
11022,
29889,
294,
8977,
580,
13,
13,
4706,
1067,
29888,
29918,
1761,
353,
5159,
13,
4706,
620,
29918,
1761,
353,
5159,
13,
4706,
2071,
29888,
29918,
1761,
353,
282,
2204,
29885,
29889,
27736,
29889,
710,
271,
2164,
29918,
29895,
8771,
29918,
513,
1575,
29898,
1068,
29916,
791,
29918,
11022,
29897,
13,
4706,
2071,
29888,
29918,
29097,
353,
3477,
29889,
1184,
29887,
13463,
29898,
808,
29888,
29918,
1761,
29892,
3858,
2433,
808,
29888,
29899,
14968,
29899,
14513,
1495,
13,
4706,
363,
7945,
29918,
13140,
29892,
1243,
29918,
13140,
297,
2071,
29888,
29918,
29097,
29901,
13,
9651,
1060,
29918,
2176,
29918,
14968,
353,
1060,
29918,
2176,
29889,
309,
542,
29961,
14968,
29918,
13140,
29962,
13,
9651,
4974,
1060,
29918,
2176,
29918,
14968,
29889,
2248,
29889,
25027,
391,
580,
1275,
3477,
29889,
19730,
29898,
29886,
2204,
29885,
29889,
27736,
29889,
2248,
29892,
7945,
29918,
13140,
29897,
13,
9651,
396,
7945,
29918,
4090,
353,
1060,
29918,
2176,
29889,
309,
542,
29961,
14968,
29918,
13140,
1822,
2248,
13,
9651,
396,
1060,
29918,
14968,
353,
1060,
29918,
2176,
29889,
2029,
29961,
14968,
29918,
4090,
29962,
13,
9651,
396,
343,
29918,
14968,
353,
11073,
29889,
26716,
29918,
2176,
29889,
2029,
29961,
14968,
29918,
4090,
29962,
13,
13,
9651,
565,
1238,
271,
29918,
6229,
29879,
338,
451,
6213,
29901,
13,
18884,
1060,
29918,
2176,
29918,
14968,
353,
1060,
29918,
2176,
29918,
14968,
29961,
1725,
271,
29918,
6229,
29879,
29962,
13,
13,
9651,
1060,
29918,
14968,
353,
1060,
29918,
2176,
29918,
14968,
29889,
5975,
13,
9651,
343,
29918,
14968,
353,
11073,
29889,
26716,
29918,
2176,
29889,
309,
542,
29961,
14968,
29918,
13140,
1822,
5975,
29889,
336,
955,
580,
13,
13,
9651,
1067,
29888,
353,
1067,
29888,
29918,
3846,
580,
13,
9651,
1067,
29888,
29889,
9202,
29898,
29990,
29918,
14968,
29892,
343,
29918,
14968,
29897,
13,
13,
9651,
396,
3940,
29901,
1670,
338,
263,
11155,
1206,
988,
697,
900,
29881,
1838,
29915,
29873,
679,
738,
13,
9651,
396,
11073,
310,
263,
3058,
770,
29889,
7311,
343,
29918,
14968,
338,
385,
18511,
6043,
29892,
13,
9651,
396,
278,
1067,
29888,
29889,
13203,
29918,
5352,
674,
4556,
27303,
304,
8661,
411,
13,
9651,
396,
916,
770,
14903,
16370,
373,
278,
1021,
11073,
29889,
13,
13,
9651,
396,
382,
4387,
403,
2582,
13,
9651,
620,
353,
2233,
29888,
3591,
29889,
5675,
29918,
14369,
29898,
13,
18884,
1067,
29888,
29892,
1060,
29918,
2176,
29892,
1243,
29918,
13140,
29892,
11073,
29892,
848,
29918,
1989,
29892,
1238,
271,
29918,
6229,
29879,
29922,
1725,
271,
29918,
6229,
29879,
13,
9651,
1723,
13,
9651,
1067,
29888,
29918,
1761,
29889,
4397,
29898,
695,
29888,
29897,
13,
9651,
620,
29918,
1761,
29889,
4397,
29898,
690,
29897,
13,
4706,
736,
1067,
29888,
29918,
1761,
29892,
620,
29918,
1761,
13,
13,
1678,
822,
903,
23176,
29918,
1990,
3709,
29918,
2914,
29898,
13,
4706,
282,
2204,
29885,
29892,
1067,
29888,
29892,
3414,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1238,
271,
29918,
6229,
29879,
29922,
8516,
29892,
1243,
29918,
13140,
29922,
8516,
13,
268,
1125,
13,
4706,
9995,
13,
4706,
11221,
385,
7029,
770,
3709,
313,
7469,
967,
16370,
373,
766,
12090,
848,
29897,
13,
4706,
14707,
599,
848,
373,
372,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
1243,
29918,
13140,
313,
1761,
1125,
11306,
310,
445,
770,
3709,
304,
1243,
373,
13,
18884,
313,
4381,
29879,
304,
599,
565,
6213,
29897,
13,
4706,
9995,
13,
4706,
1060,
29918,
2176,
353,
282,
2204,
29885,
29889,
27736,
29889,
29990,
29918,
8977,
29961,
1272,
29918,
1989,
29962,
13,
4706,
565,
1243,
29918,
13140,
338,
6213,
29901,
13,
9651,
1243,
29918,
13140,
353,
7442,
29889,
279,
927,
29898,
2435,
29898,
29990,
29918,
2176,
876,
13,
4706,
11073,
353,
282,
2204,
29885,
29889,
27736,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
29962,
13,
13,
4706,
620,
353,
2233,
29888,
3591,
29889,
5675,
29918,
14369,
29898,
13,
9651,
1067,
29888,
29892,
1060,
29918,
2176,
29892,
1243,
29918,
13140,
29892,
11073,
29892,
848,
29918,
1989,
29892,
1238,
271,
29918,
6229,
29879,
29922,
1725,
271,
29918,
6229,
29879,
13,
4706,
1723,
13,
13,
4706,
736,
620,
13,
13,
1678,
822,
5110,
29918,
16519,
29918,
1990,
14903,
29898,
29886,
2204,
29885,
29892,
3414,
29918,
8149,
29922,
8516,
29892,
1067,
29888,
29918,
1989,
29922,
8516,
29892,
848,
29918,
1989,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
19530,
1983,
373,
848,
1728,
738,
7945,
29914,
18157,
6219,
13,
4706,
9995,
13,
4706,
565,
282,
2204,
29885,
29889,
369,
15828,
1405,
29871,
29900,
29901,
13,
9651,
3477,
29889,
29883,
2158,
877,
29961,
29886,
2204,
29885,
29962,
5110,
29918,
16519,
29918,
1990,
14903,
742,
2927,
2433,
9539,
1495,
13,
4706,
565,
1067,
29888,
29918,
1989,
338,
6213,
29901,
13,
9651,
1067,
29888,
29918,
1989,
353,
282,
2204,
29885,
29889,
4381,
29918,
695,
29888,
29918,
1989,
13,
4706,
565,
848,
29918,
1989,
338,
6213,
29901,
13,
9651,
848,
29918,
1989,
353,
282,
2204,
29885,
29889,
4381,
29918,
1272,
29918,
1989,
13,
4706,
565,
3414,
29918,
8149,
338,
6213,
29901,
13,
9651,
3414,
29918,
8149,
353,
1051,
29898,
29886,
2204,
29885,
29889,
27736,
29889,
23765,
29918,
20673,
3101,
13,
13,
4706,
565,
282,
2204,
29885,
29889,
16519,
29918,
7662,
29918,
695,
5847,
338,
6213,
29901,
13,
9651,
282,
2204,
29885,
29889,
16519,
29918,
7662,
29918,
695,
5847,
353,
3477,
29889,
12300,
29963,
440,
2450,
580,
13,
13,
4706,
1019,
29887,
353,
3477,
29889,
1184,
29887,
7439,
616,
29898,
29888,
7971,
29922,
29896,
29892,
10365,
29922,
8824,
29892,
758,
29882,
547,
2433,
29995,
29879,
1495,
13,
4706,
3414,
29918,
29097,
353,
1019,
29887,
29898,
7662,
29918,
8149,
29892,
3858,
2433,
5398,
1495,
13,
4706,
3414,
29918,
695,
5847,
353,
6571,
13,
4706,
363,
3414,
29918,
1989,
297,
3414,
29918,
29097,
29901,
13,
9651,
1067,
29888,
353,
282,
2204,
29885,
3032,
14968,
29918,
16519,
29918,
695,
29888,
29898,
7662,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
29897,
13,
9651,
3414,
29918,
695,
5847,
29961,
7662,
29918,
1989,
29962,
353,
1067,
29888,
13,
9651,
282,
2204,
29885,
29889,
16519,
29918,
7662,
29918,
695,
5847,
29961,
7662,
29918,
1989,
3816,
695,
29888,
29918,
1989,
3816,
1272,
29918,
1989,
29962,
353,
1067,
29888,
13,
13,
4706,
736,
3414,
29918,
695,
5847,
13,
13,
1678,
822,
903,
342,
326,
1061,
29918,
7529,
29898,
29886,
2204,
29885,
29892,
1067,
29888,
29918,
1989,
1125,
13,
4706,
707,
29918,
1853,
353,
1067,
29888,
29918,
1989,
29889,
5451,
877,
29899,
29861,
29900,
29962,
13,
4706,
565,
707,
29918,
1853,
297,
11117,
29934,
29943,
742,
525,
17875,
2831,
342,
29915,
6177,
13,
9651,
707,
29918,
11022,
29896,
353,
426,
13,
18884,
396,
525,
3317,
29918,
19488,
2396,
29871,
29946,
29892,
13,
18884,
525,
8704,
2396,
5852,
29892,
13,
18884,
525,
1990,
29918,
7915,
2396,
6213,
29892,
13,
18884,
525,
29883,
5385,
291,
2396,
525,
296,
14441,
742,
13,
18884,
525,
3317,
29918,
22100,
2396,
525,
3676,
742,
13,
18884,
396,
525,
3317,
29918,
22100,
2396,
6213,
29892,
13,
18884,
525,
1195,
29918,
27736,
29918,
29500,
2396,
29871,
29945,
29892,
13,
18884,
525,
1195,
29918,
27736,
29918,
5451,
2396,
29871,
29906,
29892,
13,
18884,
396,
525,
29876,
29918,
342,
326,
4097,
2396,
29871,
29953,
29946,
29892,
13,
18884,
525,
29876,
29918,
342,
326,
4097,
2396,
29871,
29906,
29945,
29953,
29892,
13,
9651,
500,
13,
9651,
396,
379,
547,
304,
871,
671,
4567,
1819,
565,
591,
505,
278,
1492,
2071,
19668,
13,
9651,
565,
525,
27259,
29918,
5975,
29915,
297,
3477,
29889,
657,
29918,
9891,
29918,
19290,
29898,
13,
18884,
2071,
19668,
29889,
24031,
29889,
17875,
2831,
342,
2385,
3709,
17255,
2344,
1649,
13,
632,
1125,
13,
18884,
707,
29918,
11022,
29896,
1839,
27259,
29918,
5975,
2033,
353,
7442,
29889,
13707,
13,
9651,
707,
29918,
11022,
29906,
353,
426,
13,
18884,
525,
8172,
29918,
3859,
2396,
29871,
29941,
29929,
29896,
29945,
29929,
29900,
29946,
29947,
29896,
29946,
29892,
13,
18884,
525,
369,
15828,
2396,
29871,
29900,
29892,
13,
18884,
525,
29876,
29918,
9057,
29879,
2396,
448,
29896,
29892,
13,
9651,
500,
13,
4706,
25342,
707,
29918,
1853,
297,
11117,
7597,
29907,
742,
525,
7597,
29924,
29915,
6177,
13,
9651,
707,
29918,
11022,
29896,
353,
9657,
29898,
17460,
2433,
10660,
1495,
13,
9651,
707,
29918,
11022,
29906,
353,
6571,
13,
4706,
25342,
707,
29918,
1853,
297,
11117,
3403,
277,
742,
525,
3403,
4695,
4597,
23881,
29915,
6177,
13,
9651,
707,
29918,
11022,
29896,
353,
6571,
13,
9651,
707,
29918,
11022,
29906,
353,
6571,
13,
4706,
25342,
707,
29918,
1853,
297,
11117,
1988,
29925,
29915,
6177,
13,
9651,
707,
29918,
11022,
29896,
353,
9657,
29898,
13,
18884,
26229,
2433,
2674,
29884,
742,
13,
18884,
15595,
29922,
29896,
29872,
29899,
29900,
29945,
29892,
13,
18884,
9853,
29918,
2311,
2433,
6921,
742,
13,
18884,
21762,
29918,
29896,
29922,
29900,
29889,
29929,
29892,
13,
18884,
21762,
29918,
29906,
29922,
29900,
29889,
29929,
29929,
29929,
29892,
13,
18884,
4688,
29918,
7864,
3262,
29922,
8824,
29892,
13,
18884,
321,
3232,
29922,
29896,
29872,
29899,
29900,
29947,
29892,
13,
18884,
7934,
29918,
13148,
29918,
29879,
7093,
7607,
29896,
29900,
29892,
29871,
29896,
29900,
511,
13,
18884,
6509,
29918,
10492,
2433,
23362,
742,
13,
18884,
6509,
29918,
10492,
29918,
2344,
29922,
29900,
29889,
29900,
29900,
29896,
29892,
13,
18884,
4236,
29918,
1524,
29922,
29906,
29900,
29900,
29892,
13,
18884,
19399,
29922,
29900,
29889,
29929,
29892,
13,
18884,
302,
4156,
586,
29879,
29918,
29885,
2932,
398,
29922,
5574,
29892,
13,
18884,
3081,
29918,
29873,
29922,
29900,
29889,
29945,
29892,
13,
18884,
4036,
29918,
3859,
29922,
29941,
29929,
29896,
29945,
29929,
29900,
29946,
29947,
29896,
29946,
29892,
13,
18884,
528,
21897,
29922,
5574,
29892,
13,
18884,
899,
369,
2433,
29880,
1635,
3174,
742,
13,
18884,
304,
29880,
29922,
29900,
29889,
29900,
29900,
29900,
29896,
29892,
13,
18884,
8845,
29918,
29888,
13857,
29922,
29900,
29889,
29896,
29892,
13,
18884,
14294,
29918,
2962,
29922,
8824,
29892,
13,
9651,
1723,
13,
9651,
707,
29918,
11022,
29906,
353,
9657,
29898,
369,
15828,
29922,
8824,
29897,
13,
4706,
1683,
29901,
13,
9651,
12020,
7670,
2392,
877,
14148,
2661,
326,
1061,
1495,
13,
4706,
736,
707,
29918,
11022,
29896,
29892,
707,
29918,
11022,
29906,
13,
13,
1678,
822,
903,
657,
29918,
342,
326,
1061,
29898,
29886,
2204,
29885,
29892,
1067,
29888,
29918,
1989,
1125,
13,
4706,
9995,
13,
4706,
16969,
2071,
19668,
770,
3709,
13,
4706,
9995,
13,
4706,
260,
786,
353,
1067,
29888,
29918,
1989,
29889,
5451,
877,
29899,
1495,
13,
4706,
12244,
29918,
1853,
353,
6213,
565,
7431,
29898,
29873,
786,
29897,
1275,
29871,
29896,
1683,
260,
786,
29961,
29896,
29962,
13,
4706,
707,
29918,
1853,
353,
260,
786,
29961,
29900,
29962,
13,
4706,
1773,
293,
605,
29918,
17699,
353,
426,
13,
9651,
6213,
29901,
3477,
29889,
22350,
29892,
13,
9651,
525,
29949,
29963,
29934,
2396,
2071,
19668,
29889,
4713,
293,
605,
29889,
6716,
29963,
29879,
15078,
2385,
3709,
29892,
13,
9651,
525,
29949,
24898,
2396,
2071,
19668,
29889,
4713,
293,
605,
29889,
6716,
29963,
29879,
6716,
2385,
3709,
29892,
13,
4706,
500,
29961,
6312,
29918,
1853,
29962,
13,
4706,
707,
29918,
1990,
353,
426,
13,
9651,
525,
29934,
29943,
2396,
2071,
19668,
29889,
24031,
29889,
17875,
2831,
342,
2385,
3709,
29892,
13,
9651,
525,
7597,
29907,
2396,
2071,
19668,
29889,
4501,
29885,
29889,
7597,
29907,
29892,
13,
9651,
525,
3403,
277,
2396,
2071,
19668,
29889,
10660,
29918,
4299,
29889,
3403,
4695,
4597,
23881,
29892,
13,
9651,
525,
1988,
29925,
2396,
2071,
19668,
29889,
484,
3631,
29918,
11618,
29889,
1988,
29925,
2385,
3709,
29892,
13,
4706,
500,
29961,
342,
29918,
1853,
29962,
13,
13,
4706,
707,
29918,
11022,
29896,
29892,
707,
29918,
11022,
29906,
353,
282,
2204,
29885,
3032,
342,
326,
1061,
29918,
7529,
29898,
342,
29918,
1853,
29897,
13,
4706,
707,
29918,
7529,
353,
3477,
29889,
14634,
29918,
8977,
29879,
29898,
342,
29918,
11022,
29896,
29892,
707,
29918,
11022,
29906,
29897,
13,
13,
4706,
396,
6576,
353,
5159,
13,
4706,
396,
6576,
29889,
4397,
3552,
342,
29918,
1853,
29892,
707,
29918,
1990,
29898,
1068,
342,
29918,
7529,
4961,
13,
4706,
396,
565,
12244,
29918,
1853,
338,
451,
6213,
29901,
13,
4706,
396,
268,
6576,
29889,
4397,
3552,
6312,
29918,
1853,
29892,
1773,
293,
605,
29918,
17699,
876,
13,
4706,
565,
707,
29918,
1853,
1275,
525,
1988,
29925,
2396,
13,
13,
9651,
822,
1067,
29888,
29918,
3846,
7295,
13,
18884,
14282,
353,
2071,
19668,
29889,
13096,
5570,
29889,
29925,
23828,
29898,
13,
462,
1678,
518,
13,
462,
4706,
6702,
2080,
261,
742,
2071,
19668,
29889,
326,
649,
29872,
29889,
15427,
1888,
649,
261,
29898,
710,
8963,
2433,
12676,
1495,
511,
13,
462,
4706,
396,
6702,
7052,
742,
2071,
19668,
29889,
1457,
19170,
29889,
15449,
29636,
261,
511,
13,
462,
4706,
6702,
342,
742,
707,
29918,
1990,
29898,
1068,
342,
29918,
7529,
8243,
13,
462,
1678,
4514,
13,
18884,
1723,
13,
18884,
736,
1773,
293,
605,
29918,
17699,
29898,
17760,
29897,
13,
13,
4706,
25342,
707,
29918,
1853,
1275,
525,
3403,
277,
2396,
13,
13,
9651,
822,
1067,
29888,
29918,
3846,
7295,
13,
18884,
14282,
353,
2071,
19668,
29889,
13096,
5570,
29889,
29925,
23828,
29898,
13,
462,
1678,
518,
13,
462,
4706,
6702,
2080,
261,
742,
2071,
19668,
29889,
326,
649,
29872,
29889,
15427,
1888,
649,
261,
29898,
710,
8963,
2433,
12676,
1495,
511,
13,
462,
4706,
6702,
342,
742,
707,
29918,
1990,
29898,
1068,
342,
29918,
7529,
8243,
13,
462,
1678,
4514,
13,
18884,
1723,
13,
18884,
736,
1773,
293,
605,
29918,
17699,
29898,
17760,
29897,
13,
13,
4706,
1683,
29901,
13,
13,
9651,
822,
1067,
29888,
29918,
3846,
7295,
13,
18884,
736,
1773,
293,
605,
29918,
17699,
29898,
342,
29918,
1990,
29898,
1068,
342,
29918,
7529,
876,
13,
13,
4706,
736,
1067,
29888,
29918,
3846,
13,
13,
1678,
822,
903,
14968,
29918,
16519,
29918,
695,
29888,
29898,
29886,
2204,
29885,
29892,
3414,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
1125,
13,
4706,
1060,
29918,
2176,
353,
282,
2204,
29885,
29889,
27736,
29889,
29990,
29918,
8977,
29961,
1272,
29918,
1989,
29962,
13,
4706,
11073,
353,
282,
2204,
29885,
29889,
27736,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
29962,
13,
4706,
4974,
7442,
29889,
497,
29898,
21134,
29889,
26716,
29918,
2176,
29889,
2248,
1275,
1060,
29918,
2176,
29889,
2248,
29897,
13,
4706,
1067,
29888,
29918,
3846,
353,
282,
2204,
29885,
3032,
657,
29918,
342,
326,
1061,
29898,
695,
29888,
29918,
1989,
29897,
13,
4706,
17927,
29889,
3888,
29898,
13,
9651,
525,
5323,
2827,
18209,
6571,
770,
3709,
373,
6571,
363,
6571,
4286,
4830,
29898,
13,
18884,
1067,
29888,
29918,
1989,
29892,
848,
29918,
1989,
29892,
3414,
29918,
1989,
13,
9651,
1723,
13,
4706,
1723,
13,
4706,
1067,
29888,
353,
1067,
29888,
29918,
3846,
580,
13,
4706,
2380,
353,
1060,
29918,
2176,
29889,
2248,
13,
4706,
1060,
353,
1060,
29918,
2176,
29889,
2029,
29961,
2248,
1822,
5975,
13,
4706,
343,
353,
11073,
29889,
26716,
29918,
2176,
29889,
2029,
29961,
2248,
1822,
5975,
29889,
336,
955,
580,
13,
4706,
1067,
29888,
29889,
9202,
29898,
29990,
29892,
343,
29897,
13,
4706,
736,
1067,
29888,
13,
13,
1678,
822,
903,
20640,
675,
29918,
9600,
29918,
24947,
7529,
29898,
29886,
2204,
29885,
29892,
848,
29918,
1989,
29922,
8516,
29892,
3414,
29918,
1989,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
16876,
2471,
306,
29915,
345,
871,
1065,
16254,
3598,
13,
13,
4706,
8741,
29901,
13,
9651,
8653,
396,
28657,
6181,
29918,
3970,
1783,
29923,
1254,
13,
9651,
8653,
515,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
4270,
650,
1053,
334,
29871,
396,
11698,
29984,
29909,
13,
9651,
8653,
282,
2204,
29885,
353,
3118,
29963,
29879,
6716,
26604,
29889,
3166,
29918,
6310,
877,
29925,
29999,
29918,
29925,
29933,
29918,
29934,
29943,
29918,
29911,
4717,
1177,
1495,
13,
9651,
396,
6778,
29958,
282,
2204,
29885,
353,
3118,
29963,
29879,
6716,
26604,
29889,
3166,
29918,
6310,
877,
29954,
29999,
29918,
19203,
29896,
1495,
13,
9651,
8653,
282,
2204,
29885,
29889,
1359,
29918,
27736,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
1359,
29918,
22100,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
4282,
29918,
14394,
29918,
6484,
29879,
580,
13,
9651,
8653,
848,
29918,
1989,
29922,
8516,
13,
9651,
8653,
3414,
29918,
1989,
29922,
8516,
13,
4706,
9995,
13,
4706,
515,
2071,
19668,
29889,
4299,
29918,
21731,
1053,
16968,
1891,
7974,
15633,
29871,
396,
11698,
29984,
29909,
13,
4706,
515,
2071,
19668,
29889,
4299,
29918,
21731,
1053,
11657,
7974,
15633,
29871,
396,
11698,
29984,
29909,
13,
4706,
515,
2071,
19668,
29889,
24031,
1053,
16968,
2831,
342,
2385,
3709,
13,
4706,
515,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
1053,
2071,
19668,
29918,
13239,
13,
13,
4706,
565,
848,
29918,
1989,
338,
6213,
29901,
13,
9651,
848,
29918,
1989,
353,
282,
2204,
29885,
29889,
4381,
29918,
1272,
29918,
1989,
13,
4706,
565,
3414,
29918,
1989,
338,
6213,
29901,
13,
9651,
3414,
29918,
1989,
353,
282,
2204,
29885,
29889,
16072,
29918,
7662,
29918,
1989,
13,
13,
4706,
396,
16012,
848,
13,
4706,
1060,
353,
282,
2204,
29885,
29889,
27736,
29889,
29990,
29918,
8977,
29961,
1272,
29918,
1989,
1822,
5975,
13,
4706,
343,
353,
282,
2204,
29885,
29889,
27736,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
1822,
29891,
29918,
3977,
13,
4706,
6471,
353,
282,
2204,
29885,
29889,
27736,
29889,
2972,
29918,
4841,
13,
13,
4706,
396,
22402,
4844,
1061,
322,
3443,
2740,
2913,
13,
4706,
6856,
353,
426,
13,
9651,
525,
8704,
2396,
518,
5574,
29892,
7700,
1402,
13,
9651,
525,
1990,
29918,
7915,
2396,
518,
8516,
29892,
525,
5521,
8362,
7464,
13,
9651,
525,
29883,
5385,
291,
2396,
6024,
296,
14441,
742,
525,
29887,
2172,
7464,
13,
9651,
396,
525,
3317,
29918,
22100,
2396,
6024,
3676,
742,
525,
1188,
29906,
7464,
13,
9651,
525,
3317,
29918,
22100,
2396,
6024,
3676,
7464,
13,
9651,
525,
1195,
29918,
27736,
29918,
29500,
2396,
1051,
29898,
3881,
29898,
29906,
29892,
29871,
29896,
29896,
8243,
13,
9651,
525,
1195,
29918,
27736,
29918,
5451,
2396,
1051,
29898,
3881,
29898,
29906,
29892,
29871,
29896,
29896,
8243,
13,
9651,
525,
29876,
29918,
342,
326,
4097,
2396,
518,
29947,
29892,
29871,
29953,
29946,
29892,
29871,
29896,
29906,
29947,
29892,
29871,
29906,
29945,
29953,
29892,
29871,
29945,
29896,
29906,
29892,
29871,
29896,
29900,
29906,
29946,
1402,
13,
4706,
500,
13,
4706,
707,
353,
16968,
2831,
342,
2385,
3709,
29898,
27259,
29918,
5975,
29922,
9302,
29889,
13707,
29897,
13,
4706,
565,
7700,
29901,
13,
9651,
396,
4744,
13,
9651,
8636,
353,
3477,
29889,
4422,
29918,
8977,
29889,
497,
29918,
8977,
29918,
510,
2109,
800,
29898,
7720,
9601,
29900,
29962,
13,
9651,
707,
29889,
842,
29918,
7529,
29898,
369,
15828,
29922,
29896,
29900,
29892,
302,
29918,
9057,
29879,
29922,
29896,
29892,
3579,
7529,
29897,
13,
9651,
707,
29889,
9202,
29898,
29990,
29922,
29990,
29892,
343,
29922,
29891,
29897,
13,
13,
4706,
13850,
353,
2071,
19668,
29918,
13239,
29889,
5015,
271,
2164,
4782,
29968,
29943,
1025,
29898,
29876,
29918,
23579,
1169,
29922,
29941,
29897,
13,
13,
4706,
565,
5852,
29901,
13,
9651,
302,
29918,
1524,
353,
29871,
29906,
29945,
13,
9651,
11856,
15633,
353,
3477,
29889,
3846,
29898,
17875,
1891,
7974,
15633,
29892,
302,
29918,
1524,
29922,
29876,
29918,
1524,
29897,
13,
4706,
1683,
29901,
13,
9651,
302,
29918,
1524,
353,
3477,
29889,
10633,
29898,
1958,
29898,
2435,
29892,
6856,
29889,
5975,
22130,
13,
9651,
11856,
15633,
353,
11657,
7974,
15633,
13,
13,
4706,
2740,
353,
11856,
15633,
29898,
342,
29892,
6856,
29892,
13850,
29922,
11023,
29892,
26952,
29922,
29896,
29900,
29897,
13,
13,
4706,
302,
29918,
6814,
375,
353,
3477,
29889,
1949,
29918,
6814,
375,
580,
13,
4706,
266,
3781,
353,
302,
29918,
6814,
375,
334,
29871,
29896,
29889,
29945,
13,
4706,
302,
29918,
9057,
29879,
29918,
342,
353,
29871,
29896,
13,
4706,
302,
29918,
9057,
29879,
29918,
643,
353,
1375,
29898,
29876,
29918,
6814,
375,
29892,
302,
29918,
1524,
29897,
13,
4706,
565,
302,
29918,
1524,
529,
266,
3781,
29901,
13,
9651,
302,
29918,
9057,
29879,
29918,
342,
353,
938,
29898,
3317,
29898,
29896,
29892,
266,
3781,
847,
302,
29918,
1524,
876,
13,
4706,
707,
29889,
842,
29918,
7529,
29898,
29876,
29918,
9057,
29879,
29922,
29876,
29918,
9057,
29879,
29918,
342,
29897,
13,
4706,
2740,
29889,
842,
29918,
7529,
29898,
29876,
29918,
9057,
29879,
29922,
29876,
29918,
9057,
29879,
29918,
643,
29897,
13,
13,
4706,
2740,
29889,
9202,
29898,
29990,
29922,
29990,
29892,
343,
29922,
29891,
29892,
6471,
29922,
13155,
29897,
13,
13,
4706,
620,
353,
2740,
29889,
11023,
29918,
9902,
5396,
8552,
580,
13,
4706,
13995,
353,
3477,
29889,
397,
919,
29898,
13,
9651,
518,
13,
18884,
6702,
10003,
29918,
1688,
29918,
13628,
742,
525,
10003,
5477,
13,
18884,
6702,
12676,
29918,
1688,
29918,
13628,
742,
525,
30167,
29899,
1688,
5477,
13,
18884,
6702,
4172,
29918,
1688,
29918,
13628,
742,
525,
30164,
29899,
1688,
5477,
13,
18884,
6702,
12676,
29918,
14968,
29918,
13628,
742,
525,
30167,
29899,
14968,
5477,
13,
18884,
6702,
4172,
29918,
14968,
29918,
13628,
742,
525,
30164,
29899,
14968,
5477,
13,
18884,
6702,
12676,
29918,
9202,
29918,
2230,
742,
525,
9202,
29918,
2230,
5477,
13,
18884,
6702,
7529,
742,
525,
7529,
5477,
13,
9651,
4514,
13,
4706,
1723,
13,
4706,
620,
353,
3477,
29889,
8977,
29918,
6484,
29898,
690,
29892,
13995,
29889,
8149,
3101,
13,
4706,
13850,
2914,
29918,
2176,
353,
10518,
29889,
17271,
29898,
690,
467,
1267,
420,
29898,
13099,
29922,
19973,
29897,
13,
4706,
13850,
2914,
29918,
2176,
353,
13850,
2914,
29918,
2176,
29889,
6605,
29918,
5975,
877,
10003,
2824,
12071,
29918,
2248,
29898,
8865,
29922,
5574,
29897,
13,
4706,
8636,
353,
10518,
29889,
17271,
29889,
3166,
29918,
8977,
29898,
11023,
2914,
29918,
2176,
1839,
7529,
13359,
5975,
29889,
25027,
391,
3101,
13,
4706,
17927,
29889,
3888,
877,
9037,
1000,
8636,
29901,
1495,
13,
4706,
17927,
29889,
3888,
29898,
329,
29889,
276,
558,
29946,
29898,
329,
29889,
1958,
29918,
791,
29879,
29898,
842,
29892,
8636,
29889,
517,
29918,
8977,
877,
1761,
8785,
876,
13,
4706,
17927,
29889,
3888,
877,
29934,
804,
287,
1459,
2232,
1495,
13,
4706,
17927,
29889,
3888,
29898,
7529,
29897,
13,
4706,
17927,
29889,
3888,
877,
29934,
804,
287,
19435,
373,
5849,
731,
29901,
1495,
13,
4706,
17927,
29889,
3888,
29898,
11023,
2914,
29918,
2176,
29897,
13,
4706,
17927,
29889,
3888,
877,
25353,
4128,
731,
1476,
373,
11266,
3207,
731,
29901,
1495,
13,
4706,
17927,
29889,
3888,
877,
13318,
29918,
7529,
29918,
353,
1273,
29879,
29915,
1273,
313,
329,
29889,
276,
558,
29946,
29898,
4478,
29889,
13318,
29918,
7529,
29918,
511,
876,
13,
13,
4706,
17927,
29889,
3888,
877,
29943,
579,
342,
8636,
1495,
13,
4706,
13850,
2914,
29918,
2176,
29889,
2029,
29961,
11023,
2914,
29918,
2176,
1839,
9202,
29918,
2230,
13359,
13140,
1195,
580,
22322,
7529,
2033,
13,
13,
1678,
822,
903,
3359,
29918,
1052,
747,
29898,
29886,
2204,
29885,
1125,
13,
4706,
9995,
13,
4706,
28923,
2471,
871,
13,
4706,
9995,
13,
4706,
515,
2071,
19668,
29889,
24031,
1053,
16968,
2831,
342,
2385,
3709,
13,
4706,
515,
2071,
19668,
29889,
1052,
26218,
1053,
3037,
4626,
630,
2385,
3709,
15633,
13,
4706,
515,
2071,
19668,
29889,
1052,
26218,
1053,
1208,
26218,
29918,
2764,
345,
13,
4706,
515,
2071,
19668,
29889,
2527,
10817,
1053,
1480,
29918,
6758,
29892,
289,
4336,
29918,
13628,
29918,
6758,
13,
13,
4706,
396,
16012,
848,
13,
4706,
848,
29918,
1989,
353,
282,
2204,
29885,
29889,
4381,
29918,
1272,
29918,
1989,
13,
4706,
3414,
29918,
1989,
353,
282,
2204,
29885,
29889,
16072,
29918,
7662,
29918,
1989,
13,
4706,
1060,
353,
282,
2204,
29885,
29889,
27736,
29889,
29990,
29918,
8977,
29961,
1272,
29918,
1989,
1822,
5975,
13,
4706,
343,
353,
282,
2204,
29885,
29889,
27736,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
1822,
29891,
29918,
3977,
13,
4706,
6471,
353,
282,
2204,
29885,
29889,
27736,
29889,
2972,
29918,
4841,
13,
13,
4706,
396,
26178,
964,
1243,
29914,
14968,
29914,
3084,
13,
4706,
13850,
353,
2071,
19668,
29918,
13239,
29889,
5015,
271,
2164,
4782,
29968,
29943,
1025,
29898,
29876,
29918,
23579,
1169,
29922,
29906,
29897,
13,
4706,
1243,
29918,
13140,
29892,
7945,
29918,
13140,
353,
2446,
29898,
11023,
29889,
5451,
29898,
29990,
29892,
343,
29892,
6471,
876,
13,
4706,
396,
2854,
29918,
13140,
353,
7945,
29918,
13140,
29961,
29900,
1057,
29906,
29962,
13,
4706,
396,
7945,
29918,
13140,
353,
7945,
29918,
13140,
29961,
29896,
1057,
29906,
29962,
13,
4706,
396,
7945,
29918,
3084,
29918,
13140,
353,
7442,
29889,
29882,
1429,
4197,
14968,
29918,
13140,
29892,
2854,
29918,
13140,
2314,
13,
13,
4706,
396,
28186,
853,
1052,
4626,
630,
390,
29943,
13,
4706,
707,
29918,
11022,
353,
282,
2204,
29885,
3032,
342,
326,
1061,
29918,
7529,
877,
29934,
29943,
29861,
29900,
29962,
13,
4706,
443,
1052,
29918,
695,
29888,
353,
16968,
2831,
342,
2385,
3709,
29898,
1068,
342,
29918,
11022,
29897,
13,
4706,
443,
1052,
29918,
695,
29888,
29889,
9202,
29898,
29990,
29961,
14968,
29918,
13140,
1402,
343,
29961,
14968,
29918,
13140,
2314,
13,
4706,
443,
1052,
29918,
771,
5824,
353,
443,
1052,
29918,
695,
29888,
29889,
27711,
29918,
771,
2291,
29898,
29990,
29961,
1688,
29918,
13140,
14664,
29911,
29961,
29896,
29962,
13,
4706,
443,
1052,
29918,
13628,
353,
1480,
29918,
6758,
29898,
29891,
29961,
1688,
29918,
13140,
29962,
1275,
29871,
29896,
29892,
443,
1052,
29918,
771,
5824,
29897,
13,
4706,
443,
1052,
29918,
29890,
4336,
353,
289,
4336,
29918,
13628,
29918,
6758,
29898,
29891,
29961,
1688,
29918,
13140,
29962,
1275,
29871,
29896,
29892,
443,
1052,
29918,
771,
5824,
29897,
13,
13,
4706,
396,
28186,
3037,
4626,
630,
390,
29943,
13,
4706,
1158,
353,
525,
275,
327,
8927,
29915,
565,
7431,
29898,
1688,
29918,
13140,
29897,
1405,
29871,
29906,
29900,
29900,
29900,
1683,
525,
18816,
29885,
3398,
29915,
13,
4706,
758,
1052,
29918,
695,
29888,
353,
16968,
2831,
342,
2385,
3709,
29898,
1068,
342,
29918,
11022,
29897,
13,
4706,
396,
13850,
353,
2071,
19668,
29918,
13239,
29889,
5015,
271,
2164,
4782,
29968,
29943,
1025,
29898,
29876,
29918,
23579,
1169,
29922,
29941,
29897,
13,
4706,
1208,
29918,
695,
29888,
353,
3037,
4626,
630,
2385,
3709,
15633,
29898,
1457,
1052,
29918,
695,
29888,
29892,
13850,
29922,
29906,
29892,
1158,
29922,
5696,
29897,
13,
4706,
1208,
29918,
695,
29888,
29889,
9202,
29898,
29990,
29961,
14968,
29918,
13140,
1402,
343,
29961,
14968,
29918,
13140,
2314,
13,
4706,
1208,
29918,
771,
5824,
353,
1208,
29918,
695,
29888,
29889,
27711,
29918,
771,
2291,
29898,
29990,
29961,
1688,
29918,
13140,
14664,
29911,
29961,
29896,
29962,
13,
4706,
1208,
29918,
13628,
353,
1480,
29918,
6758,
29898,
29891,
29961,
1688,
29918,
13140,
29962,
1275,
29871,
29896,
29892,
1208,
29918,
771,
5824,
29897,
13,
4706,
1208,
29918,
29890,
4336,
353,
289,
4336,
29918,
13628,
29918,
6758,
29898,
29891,
29961,
1688,
29918,
13140,
29962,
1275,
29871,
29896,
29892,
1208,
29918,
771,
5824,
29897,
13,
13,
4706,
17927,
29889,
3888,
877,
1052,
29918,
29890,
4336,
353,
1273,
29878,
29915,
1273,
313,
1052,
29918,
29890,
4336,
29892,
876,
13,
4706,
17927,
29889,
3888,
877,
348,
1052,
29918,
29890,
4336,
353,
1273,
29878,
29915,
1273,
313,
348,
1052,
29918,
29890,
4336,
29892,
876,
13,
13,
4706,
17927,
29889,
3888,
877,
348,
1052,
29918,
13628,
353,
1273,
29878,
29915,
1273,
313,
348,
1052,
29918,
13628,
29892,
876,
13,
4706,
17927,
29889,
3888,
877,
1052,
29918,
13628,
353,
1273,
29878,
29915,
1273,
313,
1052,
29918,
13628,
29892,
876,
13,
13,
4706,
1053,
281,
15959,
29889,
5317,
10154,
408,
19592,
13,
13,
4706,
3477,
29889,
17915,
7469,
580,
13,
4706,
19592,
29889,
4532,
580,
13,
4706,
4853,
353,
19592,
29889,
29887,
1113,
580,
13,
13,
4706,
343,
29918,
1688,
353,
343,
29961,
1688,
29918,
13140,
29962,
1275,
29871,
29896,
13,
4706,
15958,
29918,
974,
29918,
1066,
277,
3145,
29892,
2099,
29918,
11965,
18186,
29918,
1767,
353,
1208,
26218,
29918,
2764,
345,
29898,
13,
9651,
343,
29918,
1688,
29892,
443,
1052,
29918,
771,
5824,
29892,
302,
29918,
29890,
1144,
29922,
29896,
29900,
13,
4706,
1723,
13,
13,
4706,
4853,
29889,
5317,
4197,
29900,
29892,
29871,
29896,
1402,
518,
29900,
29892,
29871,
29896,
1402,
525,
29895,
29901,
742,
3858,
2433,
5894,
3647,
368,
1208,
4626,
630,
1495,
13,
13,
4706,
4853,
29889,
5317,
29898,
13,
9651,
2099,
29918,
11965,
18186,
29918,
1767,
29892,
13,
9651,
15958,
29918,
974,
29918,
1066,
277,
3145,
29892,
13,
9651,
525,
29879,
29899,
742,
13,
9651,
3858,
2433,
29995,
29879,
313,
29995,
29896,
29889,
29941,
29888,
16029,
1273,
6702,
348,
1052,
29899,
29934,
29943,
742,
443,
1052,
29918,
29890,
4336,
511,
13,
4706,
1723,
13,
13,
4706,
15958,
29918,
974,
29918,
1066,
277,
3145,
29892,
2099,
29918,
11965,
18186,
29918,
1767,
353,
1208,
26218,
29918,
2764,
345,
29898,
13,
9651,
343,
29918,
1688,
29892,
1208,
29918,
771,
5824,
29892,
302,
29918,
29890,
1144,
29922,
29896,
29900,
13,
4706,
1723,
13,
4706,
4853,
29889,
5317,
29898,
13,
9651,
2099,
29918,
11965,
18186,
29918,
1767,
29892,
13,
9651,
15958,
29918,
974,
29918,
1066,
277,
3145,
29892,
13,
9651,
525,
29879,
29899,
742,
13,
9651,
3858,
2433,
29995,
29879,
313,
29995,
29896,
29889,
29941,
29888,
16029,
1273,
6702,
1052,
29899,
29934,
29943,
742,
1208,
29918,
29890,
4336,
511,
13,
4706,
1723,
13,
4706,
19592,
29889,
26172,
580,
13,
13,
13,
29992,
329,
29889,
28120,
519,
29918,
1990,
13,
1990,
2233,
29888,
3591,
29898,
329,
29889,
29940,
625,
1123,
558,
1125,
13,
1678,
364,
15945,
29908,
13,
1678,
5166,
793,
17983,
13964,
363,
263,
1773,
293,
605,
770,
3709,
16370,
373,
263,
13,
1678,
2702,
8783,
411,
2702,
11073,
29889,
13,
1678,
9995,
13,
13,
1678,
396,
6212,
5026,
393,
12439,
278,
3414,
322,
848,
278,
770,
3709,
338,
19030,
373,
13,
1678,
903,
1989,
29918,
5552,
29879,
353,
6024,
7662,
29918,
1989,
742,
525,
1272,
29918,
1989,
742,
525,
1990,
29918,
7039,
2033,
13,
13,
1678,
396,
6212,
5026,
1048,
2582,
322,
11073,
310,
5375,
11916,
13,
1678,
903,
1272,
29888,
420,
29918,
5552,
29879,
353,
6024,
771,
5824,
29918,
2176,
742,
525,
22795,
29882,
1446,
29918,
2176,
742,
525,
5182,
29918,
2109,
29918,
2176,
742,
525,
5182,
29918,
3977,
29918,
2176,
2033,
13,
13,
1678,
822,
4770,
2344,
12035,
690,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
4770,
16533,
12035,
690,
1125,
13,
4706,
736,
22372,
1118,
24335,
6571,
4286,
4830,
29898,
690,
29889,
7662,
29918,
1989,
29892,
620,
29889,
1272,
29918,
1989,
29892,
7431,
29898,
690,
29889,
2248,
876,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2380,
29898,
690,
1125,
13,
4706,
736,
620,
29889,
771,
5824,
29918,
2176,
29889,
2248,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
1207,
29918,
14369,
29898,
6821,
29888,
3591,
29892,
1067,
29888,
29892,
1060,
29918,
2176,
29892,
1243,
29918,
13140,
29892,
11073,
29892,
848,
29918,
1989,
29892,
1238,
271,
29918,
6229,
29879,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
8561,
263,
1121,
363,
263,
2323,
4891,
2854,
11685,
11306,
13,
4706,
9995,
13,
4706,
1060,
29918,
2176,
29918,
1688,
353,
1060,
29918,
2176,
29889,
309,
542,
29961,
1688,
29918,
13140,
29962,
13,
4706,
565,
1238,
271,
29918,
6229,
29879,
338,
451,
6213,
29901,
13,
9651,
1060,
29918,
2176,
29918,
1688,
353,
1060,
29918,
2176,
29918,
1688,
29961,
1725,
271,
29918,
6229,
29879,
29962,
13,
4706,
2380,
353,
1060,
29918,
2176,
29918,
1688,
29889,
2248,
13,
4706,
396,
1067,
29888,
29918,
771,
5824,
353,
1067,
29888,
29889,
27711,
29918,
771,
2291,
29898,
29990,
29918,
2176,
29918,
1688,
29897,
13,
13,
4706,
396,
2380,
353,
10518,
29889,
19204,
29898,
1688,
29918,
13140,
29892,
1024,
2433,
1688,
29918,
13140,
1495,
13,
4706,
396,
22521,
545,
8267,
16161,
411,
599,
4413,
13,
13,
4706,
822,
7595,
29918,
22724,
29898,
2749,
29892,
3948,
29918,
22724,
29892,
3646,
29918,
22724,
1125,
13,
9651,
1053,
318,
10154,
408,
3477,
13,
13,
9651,
7595,
29916,
353,
3477,
29889,
1761,
29918,
2520,
358,
29898,
2749,
29918,
22724,
29892,
3646,
29918,
22724,
29892,
4567,
29922,
5574,
29897,
13,
9651,
26118,
29918,
2749,
29911,
353,
3477,
29889,
9290,
29918,
19730,
29898,
2749,
29889,
29911,
29892,
7595,
29916,
29897,
13,
9651,
26118,
29918,
2749,
29911,
353,
3477,
29889,
6506,
29918,
29876,
2873,
29898,
13671,
29918,
2749,
29911,
29892,
7442,
29889,
3298,
359,
29898,
2435,
29898,
2749,
4961,
13,
9651,
26118,
29918,
2749,
353,
7442,
29889,
29894,
1429,
29898,
13671,
29918,
2749,
29911,
467,
29911,
13,
9651,
736,
26118,
29918,
2749,
13,
13,
4706,
620,
353,
2233,
29888,
3591,
580,
13,
4706,
620,
29889,
7662,
29918,
1989,
353,
11073,
29889,
7662,
29918,
978,
13,
4706,
620,
29889,
1272,
29918,
1989,
353,
848,
29918,
1989,
13,
4706,
620,
29889,
1990,
29918,
7039,
353,
3477,
29889,
29880,
1958,
29898,
710,
29892,
11073,
29889,
1990,
29918,
7039,
29897,
13,
4706,
620,
29889,
1725,
271,
29918,
6229,
29879,
353,
1238,
271,
29918,
6229,
29879,
13,
13,
4706,
620,
29889,
771,
5824,
29918,
2176,
353,
2071,
19668,
29918,
13239,
29889,
27711,
29918,
771,
2291,
29918,
2176,
29898,
695,
29888,
29892,
1060,
29918,
2176,
29918,
1688,
29892,
620,
29889,
1990,
29918,
7039,
29897,
13,
4706,
620,
29889,
5182,
29918,
2109,
29918,
2176,
353,
11073,
29889,
513,
20485,
29918,
2176,
29889,
309,
542,
29961,
1688,
29918,
13140,
29962,
13,
4706,
620,
29889,
5182,
29918,
3977,
29918,
2176,
353,
11073,
29889,
26716,
29918,
2176,
29889,
309,
542,
29961,
1688,
29918,
13140,
29962,
13,
13,
4706,
565,
756,
5552,
29898,
695,
29888,
29892,
525,
342,
326,
4097,
29918,
1495,
322,
11073,
29889,
29876,
29918,
13203,
1405,
29871,
29906,
29901,
13,
9651,
396,
450,
302,
29899,
386,
4844,
1061,
297,
278,
438,
29963,
29934,
770,
3709,
8500,
29879,
278,
2070,
310,
278,
13,
9651,
396,
302,
29899,
386,
770,
313,
294,
3858,
29871,
29896,
467,
13,
9651,
2070,
29879,
29918,
2455,
353,
7442,
29889,
29882,
1429,
29898,
13,
18884,
518,
342,
29889,
27711,
29918,
771,
2291,
29898,
29990,
29918,
2176,
29918,
1688,
29897,
7503,
29892,
29871,
29896,
29901,
29906,
29962,
363,
707,
297,
1067,
29888,
29889,
342,
326,
4097,
29918,
29962,
13,
9651,
1723,
13,
9651,
620,
29889,
22795,
29882,
1446,
29918,
2176,
353,
10518,
29889,
17271,
29898,
13,
18884,
7595,
29918,
22724,
29898,
771,
5824,
29918,
2455,
29892,
1067,
29888,
29889,
13203,
3383,
11073,
29889,
13203,
29918,
511,
13,
18884,
2380,
29922,
2248,
29892,
13,
18884,
4341,
29922,
690,
29889,
1990,
29918,
7039,
29892,
13,
9651,
1723,
13,
9651,
396,
512,
278,
438,
29963,
29934,
29899,
4878,
29892,
1957,
635,
2712,
674,
2533,
304,
29871,
29896,
29892,
541,
746,
896,
13,
9651,
396,
1016,
29915,
29873,
4226,
2133,
5930,
29889,
530,
796,
29899,
1767,
310,
901,
1135,
29871,
29896,
2794,
13,
9651,
396,
975,
5527,
5084,
29892,
322,
1090,
29871,
29900,
2794,
1090,
5527,
5084,
29889,
13,
9651,
620,
29889,
5527,
5084,
29918,
3605,
601,
353,
620,
29889,
22795,
29882,
1446,
29918,
2176,
29889,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
1683,
29901,
13,
9651,
620,
29889,
22795,
29882,
1446,
29918,
2176,
353,
6213,
13,
4706,
736,
620,
13,
13,
1678,
822,
27122,
29898,
690,
29892,
13449,
1125,
13,
4706,
620,
29906,
353,
2233,
29888,
3591,
580,
13,
4706,
620,
29906,
29889,
7662,
29918,
1989,
353,
620,
29889,
7662,
29918,
1989,
13,
4706,
620,
29906,
29889,
1272,
29918,
1989,
353,
620,
29889,
1272,
29918,
1989,
13,
4706,
620,
29906,
29889,
1990,
29918,
7039,
353,
620,
29889,
1990,
29918,
7039,
13,
4706,
620,
29906,
29889,
771,
5824,
29918,
2176,
353,
620,
29889,
771,
5824,
29918,
2176,
29961,
15764,
29962,
13,
4706,
620,
29906,
29889,
5182,
29918,
2109,
29918,
2176,
353,
620,
29889,
5182,
29918,
2109,
29918,
2176,
29961,
15764,
29962,
13,
4706,
620,
29906,
29889,
5182,
29918,
3977,
29918,
2176,
353,
620,
29889,
5182,
29918,
3977,
29918,
2176,
29961,
15764,
29962,
13,
4706,
565,
620,
29889,
22795,
29882,
1446,
29918,
2176,
338,
6213,
29901,
13,
9651,
620,
29906,
29889,
22795,
29882,
1446,
29918,
2176,
353,
6213,
13,
4706,
1683,
29901,
13,
9651,
620,
29906,
29889,
22795,
29882,
1446,
29918,
2176,
353,
620,
29889,
22795,
29882,
1446,
29918,
2176,
29961,
15764,
29962,
13,
9651,
396,
620,
29906,
29889,
5527,
5084,
29918,
3605,
601,
353,
620,
29889,
5527,
5084,
29918,
3605,
601,
29961,
15764,
29962,
13,
4706,
736,
620,
29906,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
14405,
29918,
9902,
29898,
6821,
29888,
3591,
29892,
620,
29918,
1761,
29892,
11073,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
422,
26062,
2582,
515,
4891,
8845,
6057,
964,
263,
2323,
1121,
13,
4706,
15783,
278,
4180,
310,
278,
4152,
8783,
13,
4706,
9995,
13,
4706,
396,
22521,
545,
393,
620,
29918,
21513,
526,
451,
975,
433,
3262,
13,
4706,
363,
364,
29896,
29892,
364,
29906,
297,
3477,
29889,
510,
2109,
800,
29898,
690,
29918,
1761,
29892,
29871,
29906,
1125,
13,
9651,
4974,
313,
13,
18884,
7431,
29898,
29878,
29896,
29889,
2248,
29889,
1639,
2042,
29898,
29878,
29906,
29889,
2248,
876,
1275,
29871,
29900,
13,
9651,
10353,
525,
6821,
29888,
3591,
848,
19935,
1818,
367,
766,
12090,
29915,
13,
4706,
396,
9753,
537,
1423,
13,
4706,
363,
364,
297,
620,
29918,
1761,
29901,
13,
9651,
4974,
7442,
29889,
497,
29898,
29878,
29889,
2248,
1275,
364,
29889,
771,
5824,
29918,
2176,
29889,
2248,
29897,
13,
9651,
4974,
7442,
29889,
497,
29898,
29878,
29889,
2248,
1275,
364,
29889,
5182,
29918,
2109,
29918,
2176,
29889,
2248,
29897,
13,
9651,
4974,
7442,
29889,
497,
29898,
29878,
29889,
2248,
1275,
364,
29889,
5182,
29918,
3977,
29918,
2176,
29889,
2248,
29897,
13,
13,
4706,
396,
422,
26062,
963,
411,
11701,
13,
4706,
620,
353,
2233,
29888,
3591,
580,
13,
4706,
620,
29900,
353,
620,
29918,
1761,
29961,
29900,
29962,
13,
4706,
396,
17934,
2323,
8393,
313,
4716,
881,
599,
367,
278,
1021,
29897,
13,
4706,
363,
12421,
297,
2233,
29888,
3591,
3032,
1989,
29918,
5552,
29879,
29901,
13,
9651,
659,
353,
679,
5552,
29898,
690,
29900,
29892,
12421,
29897,
13,
9651,
731,
5552,
29898,
690,
29892,
12421,
29892,
659,
29897,
13,
9651,
4974,
599,
29898,
13,
18884,
518,
657,
5552,
29898,
29878,
29892,
12421,
29897,
1275,
659,
363,
364,
297,
620,
29918,
1761,
29962,
13,
9651,
10353,
525,
6821,
29888,
3591,
411,
1422,
1820,
8393,
526,
297,
23712,
29915,
13,
4706,
396,
422,
26062,
12205,
4426,
313,
4716,
881,
599,
505,
766,
12090,
16285,
29897,
13,
4706,
363,
12421,
297,
2233,
29888,
3591,
3032,
1272,
29888,
420,
29918,
5552,
29879,
29901,
13,
9651,
565,
679,
5552,
29898,
690,
29900,
29892,
12421,
29897,
338,
451,
6213,
29901,
13,
18884,
419,
833,
29918,
5552,
353,
10518,
29889,
17685,
4197,
657,
5552,
29898,
29878,
29892,
12421,
29897,
363,
364,
297,
620,
29918,
1761,
2314,
13,
18884,
731,
5552,
29898,
690,
29892,
12421,
29892,
419,
833,
29918,
5552,
29897,
13,
9651,
1683,
29901,
13,
18884,
731,
5552,
29898,
690,
29892,
12421,
29892,
6213,
29897,
13,
13,
4706,
363,
12421,
297,
2233,
29888,
3591,
3032,
1272,
29888,
420,
29918,
5552,
29879,
29901,
13,
9651,
659,
353,
679,
5552,
29898,
690,
29892,
12421,
29897,
13,
9651,
565,
659,
338,
451,
6213,
29901,
13,
18884,
4974,
7442,
29889,
497,
29898,
690,
29889,
2248,
1275,
659,
29889,
2248,
511,
525,
2248,
2355,
13543,
29915,
13,
13,
4706,
736,
620,
13,
13,
1678,
822,
2898,
2264,
29918,
15916,
29898,
690,
29892,
11916,
29892,
297,
1341,
29922,
8516,
29892,
1158,
2433,
1191,
3317,
29374,
13,
4706,
9995,
13,
4706,
11916,
353,
282,
2204,
29885,
29889,
27736,
13,
13,
4706,
396,
14402,
341,
8851,
411,
2071,
19668,
848,
13,
13,
9651,
396,
2233,
29888,
3591,
29889,
5675,
29918,
14369,
29898,
6821,
29888,
3591,
29892,
1067,
29888,
29892,
1060,
29918,
2176,
29892,
1243,
29918,
13140,
29892,
11073,
29892,
13,
9651,
396,
848,
29918,
1989,
29892,
1238,
271,
29918,
6229,
29879,
29922,
8516,
1125,
13,
13,
9651,
1053,
2071,
19668,
29889,
14538,
1691,
13,
9651,
3805,
275,
353,
2071,
19668,
29889,
14538,
1691,
29889,
1359,
29918,
381,
275,
580,
13,
13,
9651,
396,
14402,
29901,
1207,
445,
6230,
13682,
13,
9651,
282,
2204,
29885,
353,
2233,
29888,
26604,
580,
13,
9651,
3414,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
29892,
848,
29918,
1989,
353,
525,
381,
275,
742,
525,
29934,
29943,
742,
525,
19668,
29898,
497,
16029,
13,
9651,
1060,
29918,
2176,
353,
10518,
29889,
17271,
29898,
381,
275,
29889,
1272,
29892,
4341,
29922,
381,
275,
29889,
14394,
29918,
7039,
29897,
13,
9651,
11916,
353,
14974,
5398,
29903,
9422,
29898,
29990,
29918,
2176,
29889,
2248,
29897,
13,
9651,
11916,
29889,
7302,
29918,
513,
293,
4097,
3319,
29915,
381,
275,
2396,
426,
978,
29901,
3805,
275,
29889,
5182,
1275,
22645,
13,
462,
308,
363,
22645,
29892,
1024,
297,
26985,
29898,
381,
275,
29889,
5182,
29918,
7039,
21345,
29897,
13,
9651,
11916,
29889,
29990,
29918,
8977,
353,
11117,
19668,
29898,
497,
29897,
2396,
1060,
29918,
2176,
29913,
13,
13,
9651,
282,
2204,
29885,
29889,
27736,
353,
11916,
13,
9651,
282,
2204,
29885,
29889,
29916,
791,
29918,
11022,
1839,
1853,
2033,
353,
525,
5015,
271,
2164,
29968,
29943,
1025,
29915,
13,
9651,
1067,
29888,
29918,
1761,
29892,
620,
29918,
1761,
353,
282,
2204,
29885,
3032,
14968,
29918,
24219,
362,
29918,
695,
29888,
29898,
13,
18884,
3414,
29918,
1989,
29892,
848,
29918,
1989,
29892,
1067,
29888,
29918,
1989,
29897,
13,
9651,
11073,
353,
282,
2204,
29885,
29889,
27736,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
29962,
13,
9651,
620,
353,
2233,
29888,
3591,
29889,
17743,
457,
29918,
9902,
29898,
690,
29918,
1761,
29892,
11073,
29897,
13,
13,
13,
4706,
620,
29889,
657,
29918,
386,
3781,
3361,
877,
29885,
617,
742,
525,
27525,
675,
1495,
13,
13,
4706,
8500,
29918,
5696,
353,
525,
1191,
3317,
29915,
13,
13,
4706,
9995,
13,
4706,
12700,
353,
6571,
13,
4706,
2240,
3335,
353,
3477,
29889,
2526,
415,
1296,
29898,
690,
29889,
771,
5824,
29918,
2176,
29889,
5975,
29892,
620,
29889,
5182,
29918,
3977,
29918,
2176,
29889,
5975,
29897,
13,
13,
4706,
396,
4450,
353,
2071,
19668,
29918,
13239,
29889,
27711,
29918,
3166,
29918,
771,
5824,
29898,
690,
29889,
771,
5824,
29918,
2176,
29892,
8500,
29918,
5696,
29897,
13,
4706,
565,
1158,
1275,
525,
3317,
29899,
29885,
617,
2396,
13,
9651,
1158,
353,
620,
29889,
657,
29918,
386,
3781,
3361,
877,
29885,
617,
742,
525,
27525,
675,
1495,
13,
4706,
4450,
353,
2071,
19668,
29918,
13239,
29889,
27711,
29918,
3166,
29918,
771,
5824,
29898,
690,
29889,
771,
5824,
29918,
2176,
29892,
1158,
29892,
4889,
29922,
5574,
29897,
13,
13,
4706,
12700,
1839,
29872,
294,
3335,
2033,
353,
7442,
29889,
2378,
29898,
29872,
294,
3335,
467,
336,
955,
580,
13,
4706,
12700,
1839,
6800,
2264,
2033,
353,
29871,
29896,
448,
12700,
1839,
29872,
294,
3335,
2033,
13,
4706,
12700,
1839,
29874,
333,
29896,
2033,
353,
620,
29889,
771,
5824,
29918,
2176,
29889,
2248,
29889,
657,
29918,
5563,
29918,
5975,
29898,
29900,
29897,
13,
4706,
12700,
1839,
29874,
333,
29906,
2033,
353,
620,
29889,
771,
5824,
29918,
2176,
29889,
2248,
29889,
657,
29918,
5563,
29918,
5975,
29898,
29896,
29897,
13,
4706,
396,
12700,
1839,
29874,
333,
29896,
2033,
353,
11916,
29889,
29874,
333,
29918,
29886,
7121,
29889,
29911,
29961,
29900,
1822,
19730,
29898,
690,
29889,
771,
5824,
29918,
2176,
29889,
2248,
29889,
5975,
29897,
13,
4706,
396,
12700,
1839,
29874,
333,
29906,
2033,
353,
11916,
29889,
29874,
333,
29918,
29886,
7121,
29889,
29911,
29961,
29896,
1822,
19730,
29898,
690,
29889,
771,
5824,
29918,
2176,
29889,
2248,
29889,
5975,
29897,
13,
4706,
396,
12700,
1839,
11965,
2033,
353,
620,
29889,
771,
5824,
29918,
2176,
29889,
5975,
29889,
1191,
3317,
29898,
8990,
29922,
29896,
29897,
13,
4706,
12700,
1839,
11965,
2033,
353,
4450,
29889,
5975,
13,
4706,
12700,
1839,
6370,
2033,
353,
620,
29889,
5182,
29918,
3977,
29918,
2176,
29889,
5975,
29889,
336,
955,
580,
13,
4706,
12700,
1839,
26061,
2033,
353,
12700,
1839,
11965,
2033,
2804,
12700,
1839,
6370,
2033,
13,
4706,
12700,
353,
10518,
29889,
17271,
29898,
7299,
29897,
13,
4706,
12700,
353,
12700,
29889,
842,
29918,
2248,
18959,
29874,
333,
29896,
742,
525,
29874,
333,
29906,
7464,
5768,
29922,
8824,
29897,
13,
13,
4706,
565,
297,
1341,
338,
451,
6213,
29901,
13,
9651,
474,
5824,
353,
297,
1341,
29889,
747,
29879,
13,
9651,
12770,
353,
1051,
29898,
7299,
29889,
2248,
29889,
25027,
391,
3101,
13,
9651,
1970,
29918,
8977,
353,
297,
1341,
29889,
657,
29918,
12864,
29918,
5552,
29879,
29898,
13,
18884,
525,
5527,
5084,
742,
13,
18884,
12770,
29892,
13,
18884,
373,
29918,
27259,
2433,
4572,
742,
13,
18884,
2322,
29922,
747,
29879,
29889,
3075,
29889,
6007,
29943,
1367,
1430,
4741,
29889,
16524,
29889,
3904,
29968,
6632,
16048,
29892,
13,
9651,
1723,
13,
9651,
1970,
29918,
2176,
353,
10518,
29889,
17271,
29889,
3166,
29918,
8977,
29898,
5527,
29918,
8977,
29892,
7769,
2433,
2248,
1495,
13,
9651,
1970,
29918,
2176,
353,
1970,
29918,
2176,
29961,
29900,
1822,
1958,
29898,
747,
29879,
29889,
3075,
29889,
6007,
29943,
1367,
1430,
4741,
29889,
16524,
29918,
4986,
29918,
10192,
29897,
13,
9651,
12700,
353,
12700,
29889,
16645,
29898,
6370,
29918,
5527,
29922,
5527,
29918,
2176,
29897,
13,
9651,
12700,
1839,
6370,
29918,
5527,
2033,
353,
7442,
29889,
13707,
29918,
517,
29918,
1949,
29898,
7299,
1839,
6370,
29918,
5527,
2033,
467,
579,
668,
29898,
9302,
29889,
524,
29897,
13,
13,
4706,
12700,
353,
12700,
29889,
6605,
29918,
5975,
877,
6800,
2264,
742,
12066,
2548,
29922,
8824,
29897,
13,
4706,
620,
29889,
7299,
353,
12700,
13,
4706,
736,
620,
29889,
7299,
13,
13,
1678,
822,
4567,
29918,
13203,
29898,
690,
1125,
13,
4706,
396,
10987,
4413,
393,
892,
2360,
25383,
13,
4706,
5412,
29918,
27711,
1080,
353,
7442,
29889,
13092,
29898,
690,
29889,
771,
5824,
29918,
2176,
29889,
5975,
29889,
1191,
3317,
29898,
8990,
29922,
29896,
876,
13,
4706,
302,
29918,
13203,
353,
7431,
29898,
690,
29889,
1990,
29918,
7039,
29897,
13,
4706,
4567,
29918,
13203,
353,
3477,
29889,
2248,
29918,
510,
2037,
29898,
13092,
29918,
27711,
1080,
29892,
302,
29918,
13203,
29897,
13,
4706,
736,
4567,
29918,
13203,
13,
13,
1678,
822,
18765,
29918,
361,
29918,
484,
19226,
29898,
690,
1125,
13,
4706,
9995,
13,
4706,
3462,
29879,
297,
20254,
1819,
363,
4567,
4413,
13,
4706,
9995,
13,
4706,
4567,
29918,
13203,
353,
620,
29889,
27259,
29918,
13203,
580,
13,
4706,
302,
29918,
13203,
353,
7431,
29898,
690,
29889,
1990,
29918,
7039,
29897,
13,
4706,
343,
29918,
1688,
29918,
3977,
29918,
2987,
353,
620,
29889,
5182,
29918,
3977,
29918,
2176,
29889,
5975,
13,
4706,
343,
29918,
1688,
29918,
2109,
29918,
2987,
353,
620,
29889,
5182,
29918,
2109,
29918,
2176,
29889,
5975,
13,
4706,
1067,
29888,
29918,
771,
5824,
29918,
2987,
353,
620,
29889,
771,
5824,
29918,
2176,
29889,
5975,
13,
4706,
4559,
29918,
7915,
353,
7442,
29889,
2873,
29898,
2435,
29898,
29891,
29918,
1688,
29918,
3977,
29918,
2987,
876,
13,
4706,
302,
29918,
27259,
353,
7431,
29898,
27259,
29918,
13203,
29897,
13,
13,
4706,
565,
620,
29889,
22795,
29882,
1446,
29918,
2176,
338,
451,
6213,
29901,
13,
9651,
1067,
29888,
29918,
22795,
29882,
1446,
29918,
2987,
353,
620,
29889,
22795,
29882,
1446,
29918,
2176,
29889,
5975,
13,
4706,
1683,
29901,
13,
9651,
1067,
29888,
29918,
22795,
29882,
1446,
29918,
2987,
353,
6213,
13,
13,
4706,
396,
5399,
565,
18765,
362,
338,
5181,
13,
4706,
565,
302,
29918,
27259,
1405,
29871,
29900,
29901,
13,
9651,
4567,
29918,
2109,
353,
7442,
29889,
3298,
359,
3552,
29876,
29918,
27259,
29892,
302,
29918,
13203,
876,
13,
9651,
4567,
29918,
2109,
15625,
9302,
29889,
279,
927,
29898,
29876,
29918,
27259,
511,
4567,
29918,
13203,
4638,
353,
29871,
29896,
29889,
29900,
13,
9651,
4567,
29918,
3977,
353,
7442,
29889,
2378,
29898,
27259,
29918,
13203,
29897,
7503,
29892,
6213,
29962,
13,
9651,
343,
29918,
1688,
29918,
3977,
29918,
2987,
353,
7442,
29889,
29894,
1429,
4197,
29891,
29918,
1688,
29918,
3977,
29918,
2987,
29892,
4567,
29918,
3977,
2314,
13,
9651,
343,
29918,
1688,
29918,
2109,
29918,
2987,
353,
7442,
29889,
29894,
1429,
4197,
29891,
29918,
1688,
29918,
2109,
29918,
2987,
29892,
4567,
29918,
2109,
2314,
13,
9651,
1067,
29888,
29918,
771,
5824,
29918,
2987,
353,
7442,
29889,
29894,
1429,
4197,
695,
29888,
29918,
771,
5824,
29918,
2987,
29892,
4567,
29918,
2109,
2314,
13,
9651,
396,
1207,
4559,
18177,
988,
270,
23824,
583,
505,
694,
7688,
13,
9651,
4559,
29918,
7915,
353,
7442,
29889,
29882,
1429,
4197,
11249,
29918,
7915,
29892,
7442,
29889,
8159,
29898,
29876,
29918,
27259,
29892,
29871,
29900,
29897,
2314,
13,
13,
9651,
565,
620,
29889,
22795,
29882,
1446,
29918,
2176,
338,
451,
6213,
29901,
13,
18884,
1067,
29888,
29918,
22795,
29882,
1446,
29918,
2987,
353,
7442,
29889,
29894,
1429,
4197,
695,
29888,
29918,
22795,
29882,
1446,
29918,
2987,
29892,
4567,
29918,
2109,
2314,
13,
13,
4706,
620,
29889,
695,
29888,
29918,
771,
5824,
353,
1067,
29888,
29918,
771,
5824,
29918,
2987,
13,
4706,
620,
29889,
695,
29888,
29918,
22795,
29882,
1446,
353,
1067,
29888,
29918,
22795,
29882,
1446,
29918,
2987,
13,
4706,
620,
29889,
29891,
29918,
1688,
29918,
3977,
353,
343,
29918,
1688,
29918,
3977,
29918,
2987,
13,
4706,
620,
29889,
29891,
29918,
1688,
29918,
2109,
353,
343,
29918,
1688,
29918,
2109,
29918,
2987,
13,
4706,
620,
29889,
11249,
29918,
7915,
353,
4559,
29918,
7915,
13,
13,
1678,
822,
10410,
29918,
695,
29888,
29918,
12276,
29898,
690,
29892,
26952,
29922,
5574,
1125,
13,
4706,
620,
29889,
2987,
358,
29918,
361,
29918,
484,
19226,
580,
13,
4706,
4450,
29918,
3977,
353,
620,
29889,
695,
29888,
29918,
771,
5824,
29889,
1191,
3317,
29898,
8990,
29922,
29896,
29897,
13,
4706,
343,
29918,
11965,
353,
4450,
29918,
3977,
13,
4706,
343,
29918,
3009,
353,
620,
29889,
29891,
29918,
1688,
29918,
3977,
13,
4706,
4559,
29918,
7915,
353,
620,
29889,
11249,
29918,
7915,
13,
4706,
3646,
29918,
7039,
353,
620,
29889,
1990,
29918,
7039,
13,
4706,
3461,
353,
2071,
19668,
29918,
13239,
29889,
1990,
2450,
29918,
12276,
29906,
29898,
13,
9651,
343,
29918,
3009,
29892,
13,
9651,
343,
29918,
11965,
29892,
13,
9651,
3646,
29918,
7039,
29922,
5182,
29918,
7039,
29892,
13,
9651,
4559,
29918,
7915,
29922,
11249,
29918,
7915,
29892,
13,
9651,
26952,
29922,
369,
15828,
29892,
13,
4706,
1723,
13,
4706,
736,
3461,
13,
13,
1678,
822,
1596,
29918,
12276,
29898,
690,
1125,
13,
4706,
620,
29889,
2987,
358,
29918,
361,
29918,
484,
19226,
580,
13,
4706,
4450,
29918,
3977,
353,
620,
29889,
695,
29888,
29918,
771,
5824,
29889,
1191,
3317,
29898,
8990,
29922,
29896,
29897,
13,
4706,
620,
29889,
1062,
2760,
29918,
695,
29888,
29918,
12276,
580,
13,
4706,
3461,
353,
2071,
19668,
29889,
2527,
10817,
29889,
1990,
2450,
29918,
12276,
29898,
13,
9651,
343,
29918,
3009,
29922,
690,
29889,
29891,
29918,
1688,
29918,
3977,
29892,
13,
9651,
343,
29918,
11965,
29922,
11965,
29918,
3977,
29892,
13,
9651,
3646,
29918,
7039,
29922,
690,
29889,
1990,
29918,
7039,
29892,
13,
9651,
4559,
29918,
7915,
29922,
690,
29889,
11249,
29918,
7915,
29892,
13,
4706,
1723,
13,
4706,
17927,
29889,
3888,
877,
29925,
3757,
2459,
29914,
4789,
497,
13969,
29901,
1495,
13,
4706,
17927,
29889,
3888,
29898,
12276,
29897,
13,
13,
1678,
822,
679,
29918,
386,
3781,
3361,
29898,
690,
29892,
12714,
2433,
29885,
617,
742,
995,
2433,
27525,
675,
29374,
13,
4706,
9995,
13,
4706,
679,
29918,
16414,
353,
525,
386,
3781,
3361,
29915,
13,
4706,
472,
29918,
16414,
353,
12714,
353,
525,
29885,
617,
29915,
13,
4706,
472,
29918,
1767,
353,
995,
353,
525,
27525,
675,
29915,
13,
13,
4706,
263,
353,
5159,
13,
4706,
289,
353,
5159,
13,
4706,
363,
921,
297,
7442,
29889,
1915,
3493,
29898,
29900,
29892,
29871,
29896,
29892,
29871,
29896,
29900,
29900,
29900,
1125,
13,
9651,
263,
4619,
518,
6854,
1516,
29889,
657,
29918,
16414,
29918,
271,
29918,
16414,
877,
386,
3781,
3361,
742,
525,
29888,
558,
742,
921,
29892,
1014,
2248,
29922,
5574,
4638,
13,
9651,
289,
4619,
518,
6854,
1516,
29889,
657,
29918,
386,
3781,
29918,
271,
29918,
16414,
877,
29888,
558,
742,
921,
4638,
13,
4706,
263,
353,
7442,
29889,
2378,
29898,
29874,
29897,
13,
4706,
289,
353,
7442,
29889,
2378,
29898,
29890,
29897,
13,
4706,
270,
353,
313,
29874,
448,
289,
29897,
13,
4706,
17927,
29889,
3888,
3552,
29881,
29889,
1195,
3285,
270,
29889,
3317,
22130,
13,
4706,
9995,
13,
4706,
266,
3781,
267,
353,
6571,
13,
4706,
363,
770,
29918,
978,
297,
620,
29889,
1990,
29918,
7039,
29901,
13,
9651,
274,
29888,
1516,
353,
620,
29889,
5527,
375,
1080,
29898,
1990,
29918,
978,
29897,
13,
9651,
266,
3781,
353,
274,
29888,
1516,
29889,
657,
29918,
16414,
29918,
271,
29918,
16414,
877,
386,
3781,
742,
12714,
29892,
995,
29897,
13,
9651,
266,
3781,
267,
29961,
1990,
29918,
978,
29962,
353,
266,
3781,
13,
4706,
736,
266,
3781,
267,
13,
13,
1678,
732,
10185,
13,
1678,
822,
679,
29918,
1066,
29918,
386,
3781,
267,
29898,
13,
4706,
620,
29892,
13,
4706,
12714,
2433,
29888,
558,
742,
13,
4706,
995,
29922,
29896,
29872,
29899,
29946,
29892,
13,
4706,
5256,
675,
29922,
8824,
29892,
13,
4706,
14294,
786,
29922,
29906,
29900,
29900,
29892,
13,
4706,
3691,
943,
29922,
8516,
29892,
13,
4706,
1375,
29918,
386,
3781,
29922,
29900,
29889,
29945,
29892,
13,
268,
1125,
13,
4706,
9995,
13,
4706,
10987,
29879,
263,
16897,
393,
3657,
17180,
278,
7429,
421,
1767,
29952,
363,
278,
7429,
13,
4706,
12714,
29892,
1550,
5256,
5281,
470,
6260,
5281,
278,
16897,
29889,
13,
13,
4706,
1152,
6374,
12965,
366,
864,
304,
6260,
675,
278,
16897,
29889,
13,
4706,
8289,
943,
508,
367,
4502,
297,
304,
18765,
2070,
11614,
8679,
373,
2304,
29889,
13,
4706,
2648,
2322,
263,
770,
7536,
338,
29871,
29896,
363,
16897,
6260,
2133,
322,
29871,
29900,
363,
13,
4706,
5256,
2133,
29889,
13,
4706,
9995,
13,
4706,
926,
29918,
386,
3781,
267,
353,
6571,
13,
4706,
565,
3691,
943,
338,
6213,
29901,
13,
9651,
3691,
943,
353,
426,
978,
29901,
5785,
29898,
1333,
5256,
675,
29897,
363,
1024,
297,
620,
29889,
1990,
29918,
7039,
29913,
13,
4706,
363,
770,
29918,
978,
297,
620,
29889,
1990,
29918,
7039,
29901,
13,
9651,
274,
29888,
1516,
353,
620,
29889,
5527,
375,
1080,
29898,
1990,
29918,
978,
29897,
13,
13,
9651,
10972,
29918,
386,
3781,
353,
274,
29888,
1516,
29889,
657,
29918,
16414,
29918,
271,
29918,
16414,
877,
386,
3781,
742,
12714,
29892,
995,
29897,
13,
9651,
396,
10972,
29918,
386,
3781,
353,
274,
29888,
1516,
29889,
657,
29918,
386,
3781,
29918,
271,
29918,
16414,
29898,
13,
9651,
396,
268,
12714,
29892,
995,
29892,
5256,
675,
29922,
27525,
675,
29897,
13,
13,
9651,
7536,
29918,
386,
3781,
353,
3691,
943,
29961,
1990,
29918,
978,
29962,
13,
9651,
302,
29918,
5924,
353,
274,
29888,
1516,
29889,
29876,
29918,
1066,
13,
13,
9651,
565,
14294,
786,
338,
451,
6213,
29901,
13,
18884,
9995,
13,
18884,
3017,
448,
29885,
281,
15959,
29889,
5317,
10154,
29889,
4012,
29918,
9891,
29906,
6492,
29918,
9891,
1192,
4294,
1192,
3881,
29922,
29900,
29892,
29896,
320,
13,
462,
4706,
1192,
9891,
543,
2892,
921,
29901,
7442,
29889,
27525,
398,
29898,
29900,
29892,
313,
29916,
448,
869,
29953,
29897,
847,
313,
29896,
448,
869,
29953,
876,
29908,
13,
18884,
9995,
13,
18884,
396,
960,
302,
29918,
5924,
529,
14294,
786,
29901,
769,
20064,
403,
304,
10972,
266,
3781,
13,
18884,
302,
3317,
353,
14294,
786,
565,
338,
8758,
29898,
29893,
2817,
786,
29892,
938,
29897,
1683,
14294,
786,
29961,
1990,
29918,
978,
29962,
13,
18884,
396,
15595,
722,
583,
515,
29871,
29900,
304,
29871,
29896,
13,
18884,
15595,
353,
1375,
29898,
29876,
3317,
29892,
302,
29918,
5924,
29897,
847,
302,
3317,
13,
18884,
396,
4327,
15595,
1549,
1661,
10660,
740,
313,
29764,
304,
830,
29931,
29965,
29897,
13,
18884,
282,
353,
29871,
29900,
29889,
29953,
29871,
396,
9558,
1298,
13,
18884,
15595,
353,
4236,
29898,
29900,
29892,
313,
2312,
448,
282,
29897,
847,
313,
29896,
448,
282,
876,
13,
18884,
266,
3781,
353,
7536,
29918,
386,
3781,
334,
313,
29896,
448,
15595,
29897,
718,
10972,
29918,
386,
3781,
334,
313,
2312,
29897,
13,
9651,
1683,
29901,
13,
18884,
266,
3781,
353,
10972,
29918,
386,
3781,
13,
9651,
926,
29918,
386,
3781,
267,
29961,
1990,
29918,
978,
29962,
353,
4236,
29898,
1195,
29918,
386,
3781,
29892,
266,
3781,
29897,
13,
4706,
736,
926,
29918,
386,
3781,
267,
13,
13,
1678,
822,
3461,
29918,
386,
3781,
3361,
29898,
690,
29892,
14294,
786,
29922,
29906,
29900,
29900,
1125,
13,
4706,
396,
1053,
325,
10154,
408,
325,
29873,
13,
4706,
3477,
29889,
29883,
2158,
877,
1349,
12268,
13969,
742,
525,
29136,
1495,
13,
4706,
343,
29918,
1688,
29918,
2109,
353,
620,
29889,
5182,
29918,
2109,
29918,
2176,
29889,
5975,
13,
4706,
396,
343,
29918,
1688,
29918,
3977,
353,
343,
29918,
1688,
29918,
2109,
29889,
1191,
3317,
29898,
8990,
29922,
29896,
29897,
13,
4706,
396,
1067,
29888,
29918,
771,
5824,
353,
620,
29889,
771,
5824,
29918,
2176,
29889,
5975,
13,
13,
4706,
396,
450,
7472,
6068,
2089,
6374,
6554,
13,
4706,
396,
1334,
2149,
393,
591,
674,
1207,
29871,
29896,
1059,
1432,
29871,
29896,
29892,
29900,
29900,
29900,
1602,
12112,
13,
4706,
396,
266,
3781,
29918,
2176,
1839,
5431,
2033,
353,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
4706,
396,
266,
3781,
29918,
2176,
1839,
5431,
2033,
29961,
690,
29889,
1990,
29918,
7039,
29961,
29895,
5262,
353,
29871,
29896,
13,
13,
4706,
396,
363,
413,
297,
518,
29906,
29892,
29871,
29900,
29892,
29871,
29896,
5387,
13,
4706,
7348,
29918,
29324,
353,
3477,
29889,
397,
919,
29898,
13,
9651,
518,
13,
18884,
6702,
29992,
29888,
558,
21098,
29900,
29896,
742,
6702,
29888,
558,
742,
29871,
29900,
29889,
29900,
29896,
8243,
13,
18884,
6702,
29992,
29888,
558,
21098,
29900,
29900,
29896,
742,
6702,
29888,
558,
742,
29871,
29900,
29889,
29900,
29900,
29896,
8243,
13,
18884,
6702,
29992,
29888,
558,
21098,
29900,
29900,
29900,
29896,
742,
6702,
29888,
558,
742,
29871,
29896,
29872,
29899,
29946,
8243,
13,
18884,
6702,
29992,
29888,
558,
21098,
29900,
29900,
29900,
29900,
742,
6702,
29888,
558,
742,
29871,
29900,
8243,
13,
18884,
6702,
29992,
3317,
29898,
29885,
617,
29897,
742,
6702,
29885,
617,
742,
525,
3317,
1495,
511,
13,
18884,
396,
313,
1990,
29918,
978,
718,
18803,
3317,
29898,
5753,
29897,
742,
6702,
5753,
742,
525,
3317,
1495,
511,
13,
18884,
396,
313,
1990,
29918,
978,
718,
18803,
3317,
29898,
11256,
29897,
742,
6702,
11256,
742,
525,
3317,
1495,
511,
13,
18884,
396,
313,
1990,
29918,
978,
718,
18803,
3317,
29898,
5838,
29897,
742,
6702,
5838,
742,
525,
3317,
1495,
511,
13,
9651,
4514,
13,
4706,
1723,
13,
4706,
363,
413,
297,
3464,
29898,
29891,
29918,
1688,
29918,
2109,
29889,
12181,
29961,
29896,
29962,
1125,
13,
9651,
266,
3781,
29918,
8977,
353,
3477,
29889,
397,
919,
580,
13,
9651,
770,
29918,
978,
353,
620,
29889,
1990,
29918,
7039,
29961,
29895,
29962,
13,
9651,
274,
29888,
1516,
353,
620,
29889,
5527,
375,
1080,
29898,
1990,
29918,
978,
29897,
13,
9651,
396,
2070,
29879,
29892,
11073,
353,
1067,
29888,
29918,
771,
5824,
29889,
29911,
29961,
29895,
1402,
343,
29918,
1688,
29918,
2109,
29889,
29911,
29961,
29895,
29962,
13,
9651,
396,
274,
29888,
1516,
353,
325,
29873,
29889,
16376,
3958,
10095,
10817,
2141,
9202,
29898,
771,
5824,
29892,
11073,
29897,
13,
13,
9651,
363,
413,
29892,
28241,
297,
7348,
29918,
29324,
29889,
7076,
7295,
13,
18884,
12714,
29892,
995,
353,
28241,
13,
18884,
22645,
353,
274,
29888,
1516,
29889,
657,
29918,
2248,
29918,
271,
29918,
16414,
29898,
16414,
29892,
995,
29897,
13,
18884,
1820,
353,
770,
29918,
978,
718,
413,
13,
18884,
266,
3781,
29918,
8977,
29961,
1989,
29962,
353,
3477,
29889,
397,
919,
580,
13,
18884,
363,
12714,
297,
6024,
386,
3781,
742,
525,
29888,
558,
742,
525,
29873,
558,
742,
525,
29873,
3274,
742,
525,
5838,
742,
525,
11256,
742,
525,
29885,
617,
2033,
29901,
13,
462,
1678,
266,
3781,
29918,
8977,
29961,
1989,
3816,
16414,
29962,
353,
274,
29888,
1516,
29889,
657,
29918,
16414,
29918,
271,
29918,
2248,
29898,
16414,
29892,
22645,
29897,
13,
9651,
266,
3781,
29918,
2176,
353,
10518,
29889,
17271,
29889,
3166,
29918,
8977,
29898,
386,
3781,
29918,
8977,
29892,
7769,
2433,
2248,
1495,
13,
9651,
266,
3781,
29918,
2176,
353,
266,
3781,
29918,
2176,
29889,
2029,
29961,
1761,
29898,
386,
3781,
29918,
8977,
29889,
8149,
3101,
29962,
13,
9651,
565,
274,
29888,
1516,
29889,
29876,
29918,
1066,
1405,
29871,
29900,
322,
274,
29888,
1516,
29889,
29876,
29918,
10052,
1405,
29871,
29900,
29901,
13,
18884,
17927,
29889,
3888,
877,
22131,
29871,
29896,
29894,
29934,
6571,
498,
3781,
3361,
4286,
4830,
29898,
1990,
29918,
978,
876,
13,
18884,
17927,
29889,
3888,
29898,
329,
29889,
12860,
29898,
386,
3781,
29918,
2176,
29889,
517,
29918,
1807,
29898,
7411,
29918,
4830,
2433,
25641,
29889,
29946,
29888,
29913,
4286,
4830,
4961,
13,
18884,
396,
10434,
29918,
1853,
353,
770,
29918,
978,
718,
18803,
29888,
558,
29922,
29900,
29915,
13,
18884,
396,
926,
29918,
386,
3781,
267,
29961,
1990,
29918,
978,
29962,
353,
266,
3781,
29918,
2176,
29889,
2029,
29961,
305,
7749,
29918,
1853,
22322,
386,
3781,
2033,
13,
13,
4706,
363,
7348,
29918,
29895,
29892,
7348,
29918,
29324,
297,
4256,
29898,
16957,
29918,
29324,
29889,
7076,
580,
1125,
13,
9651,
12714,
29892,
995,
353,
7348,
29918,
29324,
13,
9651,
926,
29918,
386,
3781,
267,
353,
620,
29889,
657,
29918,
1066,
29918,
386,
3781,
267,
29898,
16414,
29892,
995,
29892,
14294,
786,
29922,
29893,
2817,
786,
29897,
13,
9651,
17927,
29889,
3888,
877,
15954,
14556,
16897,
2729,
373,
1273,
29879,
29915,
1273,
313,
16957,
29918,
29895,
29892,
876,
13,
9651,
620,
29889,
12276,
29918,
6921,
29918,
386,
3781,
3361,
29898,
1066,
29918,
386,
3781,
267,
29897,
13,
13,
1678,
822,
3461,
29918,
6921,
29918,
386,
3781,
3361,
29898,
690,
29892,
266,
3781,
267,
29892,
26952,
29922,
5574,
1125,
13,
4706,
3461,
29918,
9012,
353,
5159,
13,
4706,
1596,
29918,
353,
3461,
29918,
9012,
29889,
4397,
13,
4706,
1596,
23538,
13,
9651,
525,
1451,
7749,
266,
3781,
3361,
353,
1273,
29879,
29915,
13,
9651,
1273,
313,
329,
29889,
276,
558,
29906,
29898,
386,
3781,
267,
29892,
302,
29880,
29922,
29896,
29892,
16716,
29922,
29946,
29892,
7595,
29922,
5574,
511,
29897,
13,
4706,
1723,
13,
13,
4706,
620,
29889,
2987,
358,
29918,
361,
29918,
484,
19226,
580,
13,
4706,
3646,
29918,
7039,
353,
620,
29889,
1990,
29918,
7039,
13,
4706,
4559,
29918,
7915,
353,
620,
29889,
11249,
29918,
7915,
13,
4706,
343,
29918,
3009,
353,
620,
29889,
29891,
29918,
1688,
29918,
3977,
29889,
336,
955,
580,
13,
4706,
343,
29918,
11965,
29892,
508,
29918,
1300,
356,
8204,
353,
2071,
19668,
29918,
13239,
29889,
27711,
29918,
3166,
29918,
771,
5824,
29898,
13,
9651,
620,
29889,
695,
29888,
29918,
771,
5824,
29892,
13,
9651,
266,
3781,
267,
29892,
13,
9651,
620,
29889,
1990,
29918,
7039,
29892,
13,
9651,
4889,
29922,
8824,
29892,
13,
9651,
2473,
29922,
8824,
29892,
13,
9651,
736,
29918,
15764,
29922,
5574,
29892,
13,
4706,
1723,
13,
4706,
508,
29918,
1300,
356,
8204,
29961,
690,
29889,
11249,
29918,
7915,
1275,
29871,
29900,
29962,
353,
7700,
13,
13,
4706,
4469,
29918,
11965,
353,
343,
29918,
11965,
29961,
3068,
29918,
1300,
356,
8204,
1822,
579,
668,
29898,
9302,
29889,
524,
29897,
13,
4706,
4469,
29918,
3009,
353,
343,
29918,
3009,
29961,
3068,
29918,
1300,
356,
8204,
1822,
336,
955,
580,
13,
4706,
4469,
29918,
771,
5824,
353,
620,
29889,
695,
29888,
29918,
771,
5824,
29961,
3068,
29918,
1300,
356,
8204,
29962,
13,
13,
4706,
3001,
29918,
11436,
353,
938,
29898,
11249,
29918,
7915,
29889,
2083,
3101,
13,
4706,
1596,
29918,
877,
12984,
1120,
356,
8204,
363,
1273,
29878,
22584,
29878,
4251,
29915,
1273,
313,
3068,
29918,
1300,
356,
8204,
29889,
2083,
3285,
313,
7827,
29918,
11436,
4961,
13,
13,
4706,
822,
285,
945,
29918,
710,
29898,
29874,
29892,
289,
1125,
13,
9651,
736,
22372,
3854,
19248,
3854,
353,
12365,
29889,
29906,
29888,
10560,
4286,
4830,
29898,
524,
29898,
29874,
511,
938,
29898,
29890,
511,
263,
847,
289,
29897,
13,
13,
4706,
343,
29918,
1688,
29918,
2109,
353,
620,
29889,
5182,
29918,
2109,
29918,
2176,
29889,
5975,
13,
4706,
6969,
29918,
1990,
29918,
333,
10351,
353,
518,
29895,
363,
413,
29892,
343,
297,
26985,
29898,
29891,
29918,
1688,
29918,
2109,
29889,
29911,
29897,
565,
343,
29889,
2083,
580,
1405,
29871,
29900,
29962,
13,
13,
4706,
1596,
29918,
877,
334,
11133,
29899,
2772,
8204,
2431,
29899,
2385,
6991,
5219,
1495,
13,
4706,
363,
413,
297,
6969,
29918,
1990,
29918,
333,
10351,
29901,
13,
9651,
396,
7419,
472,
4418,
29914,
2146,
617,
29879,
297,
16897,
13,
9651,
1024,
353,
620,
29889,
1990,
29918,
7039,
29961,
29895,
29962,
13,
9651,
396,
1353,
310,
3064,
445,
770,
5692,
12463,
13,
9651,
302,
29918,
7827,
29918,
29895,
353,
313,
29891,
29918,
1688,
29918,
2109,
29889,
29911,
29961,
29895,
14664,
2083,
580,
13,
9651,
396,
679,
278,
4251,
988,
445,
770,
471,
25383,
13,
9651,
4469,
29918,
3009,
29918,
29895,
353,
4469,
29918,
3009,
1275,
413,
13,
9651,
4469,
29918,
11965,
29918,
29895,
353,
4469,
29918,
11965,
1275,
413,
13,
9651,
396,
1353,
310,
4251,
4469,
25383,
13,
9651,
302,
29918,
11965,
29918,
29895,
353,
4469,
29918,
11965,
29918,
29895,
29889,
2083,
580,
13,
9651,
396,
1353,
310,
3064,
4469,
471,
1492,
13,
9651,
302,
29918,
9392,
353,
313,
6921,
29918,
3009,
29918,
29895,
669,
4469,
29918,
11965,
29918,
29895,
467,
2083,
580,
13,
9651,
396,
1353,
310,
3064,
4469,
471,
2743,
13,
9651,
302,
29918,
18091,
353,
313,
30022,
6921,
29918,
3009,
29918,
29895,
669,
4469,
29918,
11965,
29918,
29895,
467,
2083,
580,
13,
9651,
4418,
29918,
710,
353,
285,
945,
29918,
710,
29898,
29876,
29918,
18091,
29892,
302,
29918,
11965,
29918,
29895,
29897,
13,
9651,
1209,
29918,
710,
353,
285,
945,
29918,
710,
29898,
29876,
29918,
9392,
29892,
302,
29918,
7827,
29918,
29895,
29897,
13,
9651,
19200,
710,
353,
11297,
29876,
4286,
7122,
29898,
13,
18884,
518,
13,
462,
1678,
22372,
978,
6177,
742,
13,
462,
1678,
525,
1678,
426,
29876,
29918,
7827,
29918,
29895,
29913,
11916,
22856,
29892,
322,
1258,
426,
29876,
29918,
11965,
29918,
29895,
29913,
4469,
27303,
742,
13,
462,
1678,
525,
1678,
2355,
426,
3364,
29918,
710,
29913,
1492,
742,
13,
462,
1678,
525,
1678,
1754,
426,
14057,
29918,
710,
29913,
4436,
742,
13,
18884,
4514,
13,
9651,
1723,
13,
9651,
1596,
23538,
329,
29889,
12860,
29898,
23479,
710,
29889,
4830,
29898,
1068,
2997,
29879,
580,
4961,
13,
13,
4706,
3461,
353,
2071,
19668,
29918,
13239,
29889,
1990,
2450,
29918,
12276,
29906,
29898,
13,
9651,
343,
29918,
3009,
29892,
13,
9651,
343,
29918,
11965,
29892,
13,
9651,
3646,
29918,
7039,
29922,
5182,
29918,
7039,
29892,
13,
9651,
4559,
29918,
7915,
29922,
3068,
29918,
1300,
356,
8204,
29889,
579,
668,
29898,
9302,
29889,
7411,
511,
13,
9651,
26952,
29922,
8824,
29892,
13,
4706,
1723,
13,
4706,
1596,
29918,
877,
334,
11133,
29899,
2772,
8204,
10811,
3958,
1495,
13,
4706,
1596,
23538,
329,
29889,
12860,
29898,
710,
29898,
12276,
1839,
5527,
3958,
2033,
4961,
13,
4706,
1596,
29918,
877,
334,
11133,
29899,
2772,
8204,
4737,
10817,
1495,
13,
4706,
1596,
23538,
329,
29889,
12860,
29898,
710,
29898,
12276,
1839,
2527,
10817,
2033,
4961,
13,
4706,
565,
525,
29885,
617,
29915,
297,
3461,
29901,
13,
9651,
1596,
23538,
329,
29889,
12860,
29898,
710,
29898,
12276,
1839,
29885,
617,
2033,
4961,
13,
13,
4706,
1018,
29901,
13,
9651,
4469,
29918,
509,
2806,
29918,
2109,
353,
620,
29889,
29891,
29918,
1688,
29918,
2109,
29961,
3068,
29918,
1300,
356,
8204,
29962,
13,
9651,
363,
413,
297,
6969,
29918,
1990,
29918,
333,
10351,
29901,
13,
18884,
4469,
29918,
509,
2806,
29918,
29895,
353,
4469,
29918,
509,
2806,
29918,
2109,
29889,
29911,
29961,
29895,
29962,
13,
18884,
4469,
29918,
771,
5824,
29918,
29895,
353,
4469,
29918,
771,
5824,
29889,
29911,
29961,
29895,
29962,
13,
18884,
565,
4469,
29918,
771,
5824,
29918,
29895,
29889,
2083,
7295,
13,
462,
1678,
20480,
353,
2071,
19668,
29889,
2527,
10817,
29889,
10198,
29918,
14766,
29918,
13628,
29898,
6921,
29918,
509,
2806,
29918,
29895,
29892,
4469,
29918,
771,
5824,
29918,
29895,
29897,
13,
462,
1678,
1596,
23538,
13,
462,
4706,
525,
334,
11133,
319,
23129,
29898,
15735,
307,
1125,
12365,
29889,
29946,
29888,
29913,
363,
770,
3790,
29913,
4286,
4830,
29898,
13,
462,
9651,
20480,
29892,
620,
29889,
1990,
29918,
7039,
29961,
29895,
29962,
13,
462,
4706,
1723,
13,
462,
1678,
1723,
13,
4706,
5174,
7865,
2392,
29901,
13,
9651,
1209,
13,
4706,
3461,
353,
11297,
29876,
4286,
7122,
29898,
12276,
29918,
9012,
29897,
13,
4706,
565,
26952,
29901,
13,
9651,
17927,
29889,
3888,
29898,
12276,
29897,
13,
4706,
736,
3461,
13,
13,
1678,
822,
1970,
375,
1080,
29898,
690,
29892,
770,
29918,
978,
1125,
13,
4706,
1053,
325,
10154,
408,
325,
29873,
13,
13,
4706,
343,
29918,
1688,
29918,
2109,
353,
620,
29889,
5182,
29918,
2109,
29918,
2176,
29889,
5975,
13,
4706,
1067,
29888,
29918,
771,
5824,
353,
620,
29889,
771,
5824,
29918,
2176,
29889,
5975,
13,
4706,
413,
353,
620,
29889,
1990,
29918,
7039,
29889,
2248,
29898,
1990,
29918,
978,
29897,
13,
4706,
2070,
29879,
29892,
11073,
353,
1067,
29888,
29918,
771,
5824,
29889,
29911,
29961,
29895,
1402,
343,
29918,
1688,
29918,
2109,
29889,
29911,
29961,
29895,
29962,
13,
4706,
1970,
375,
1080,
353,
325,
29873,
29889,
16376,
3958,
10095,
10817,
2141,
9202,
29898,
771,
5824,
29892,
11073,
29897,
13,
4706,
736,
1970,
375,
1080,
13,
13,
1678,
822,
338,
3525,
29918,
10198,
29898,
690,
1125,
13,
4706,
1053,
325,
10154,
408,
325,
29873,
13,
4706,
1053,
281,
15959,
29889,
5317,
10154,
408,
19592,
13,
13,
4706,
3477,
29889,
17915,
7469,
580,
13,
4706,
343,
29918,
1688,
29918,
2109,
353,
620,
29889,
5182,
29918,
2109,
29918,
2176,
29889,
5975,
13,
4706,
396,
450,
7472,
6068,
2089,
6374,
6554,
13,
4706,
396,
1334,
2149,
393,
591,
674,
1207,
29871,
29896,
1059,
1432,
29871,
29896,
29892,
29900,
29900,
29900,
1602,
12112,
13,
4706,
396,
266,
3781,
29918,
2176,
1839,
5431,
2033,
353,
518,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29962,
13,
4706,
396,
266,
3781,
29918,
2176,
1839,
5431,
2033,
29961,
690,
29889,
1990,
29918,
7039,
29961,
29895,
5262,
353,
29871,
29896,
13,
4706,
396,
363,
413,
297,
518,
29906,
29892,
29871,
29900,
29892,
29871,
29896,
5387,
13,
4706,
363,
413,
297,
3464,
29898,
29891,
29918,
1688,
29918,
2109,
29889,
12181,
29961,
29896,
29962,
1125,
13,
9651,
565,
343,
29918,
1688,
29918,
2109,
29889,
12181,
29961,
29896,
29962,
1275,
29871,
29906,
322,
413,
1275,
29871,
29900,
29901,
13,
18884,
396,
871,
1510,
697,
297,
278,
7581,
1206,
13,
18884,
6773,
13,
9651,
770,
29918,
978,
353,
620,
29889,
1990,
29918,
7039,
29961,
29895,
29962,
13,
9651,
1970,
375,
1080,
353,
620,
29889,
5527,
375,
1080,
29898,
1990,
29918,
978,
29897,
13,
9651,
16641,
29907,
4074,
2467,
353,
325,
29873,
29889,
1639,
627,
29918,
10198,
29918,
14399,
29898,
13,
18884,
1970,
375,
1080,
29892,
1510,
29918,
3372,
1218,
29918,
3149,
29922,
5574,
13,
9651,
1723,
13,
9651,
285,
1949,
353,
19592,
29889,
7469,
29918,
29888,
1949,
29898,
29895,
29897,
13,
9651,
396,
16641,
29907,
4074,
2467,
29889,
7959,
29918,
5317,
29898,
29888,
1949,
29892,
6213,
29892,
1024,
29922,
1990,
29918,
978,
29897,
13,
9651,
1006,
353,
16641,
29907,
4074,
2467,
29898,
29888,
1949,
29922,
29888,
1949,
29892,
282,
1949,
29922,
8516,
29892,
1024,
29922,
1990,
29918,
978,
29897,
13,
9651,
1006,
29889,
2962,
580,
13,
4706,
396,
565,
7700,
29901,
13,
4706,
396,
268,
1060,
353,
2070,
29879,
13,
4706,
396,
268,
343,
353,
11073,
13,
4706,
396,
268,
2094,
6119,
353,
325,
29873,
29889,
20097,
19077,
3950,
580,
13,
4706,
396,
268,
2094,
6119,
29889,
9202,
29898,
771,
5824,
29892,
11073,
29897,
13,
4706,
396,
268,
5110,
29918,
386,
3781,
353,
2094,
6119,
29889,
19668,
29918,
386,
12268,
29906,
580,
13,
4706,
396,
268,
2094,
6119,
29889,
262,
3901,
29918,
8945,
675,
29898,
19668,
29918,
386,
3781,
29897,
13,
4706,
396,
2094,
6119,
29889,
20119,
675,
29898,
29888,
1949,
29922,
29895,
29897,
13,
4706,
1209,
13,
13,
1678,
822,
1510,
29918,
10198,
29898,
690,
29892,
770,
29918,
978,
29892,
3579,
19290,
1125,
13,
4706,
1053,
325,
10154,
408,
325,
29873,
13,
13,
4706,
11073,
353,
620,
29889,
5182,
29918,
2109,
29918,
2176,
29961,
1990,
29918,
978,
1822,
5975,
13,
4706,
2070,
29879,
353,
620,
29889,
771,
5824,
29918,
2176,
29961,
1990,
29918,
978,
1822,
5975,
13,
4706,
1970,
375,
1080,
353,
325,
29873,
29889,
16376,
3958,
10095,
10817,
2141,
9202,
29898,
771,
5824,
29892,
11073,
29897,
13,
4706,
1970,
375,
1080,
29889,
4012,
29918,
10198,
29918,
2764,
345,
29898,
1068,
19290,
29897,
13,
13,
1678,
822,
696,
29883,
29918,
1557,
2361,
29918,
586,
29878,
29918,
2455,
29898,
690,
1125,
13,
4706,
620,
29889,
2987,
358,
29918,
361,
29918,
484,
19226,
580,
13,
4706,
363,
413,
297,
3464,
29898,
2435,
29898,
690,
29889,
1990,
29918,
7039,
22164,
13,
9651,
770,
29918,
29895,
29918,
509,
2806,
353,
620,
29889,
29891,
29918,
1688,
29918,
2109,
29889,
29911,
29961,
29895,
29962,
13,
9651,
770,
29918,
29895,
29918,
771,
5824,
353,
620,
29889,
22795,
29882,
1446,
29918,
2176,
29889,
5975,
29889,
29911,
29961,
29895,
29962,
13,
9651,
20480,
353,
2071,
19668,
29889,
2527,
10817,
29889,
10198,
29918,
14766,
29918,
13628,
29898,
1990,
29918,
29895,
29918,
509,
2806,
29892,
770,
29918,
29895,
29918,
771,
5824,
29897,
13,
9651,
7709,
20480,
13,
13,
1678,
822,
696,
29883,
29918,
1557,
2361,
29918,
586,
29878,
29898,
690,
1125,
13,
4706,
620,
29889,
2987,
358,
29918,
361,
29918,
484,
19226,
580,
13,
4706,
363,
413,
297,
3464,
29898,
690,
29889,
29891,
29918,
1688,
29918,
2109,
29889,
12181,
29961,
29896,
29962,
1125,
13,
9651,
770,
29918,
29895,
29918,
509,
2806,
353,
620,
29889,
29891,
29918,
1688,
29918,
2109,
29889,
29911,
29961,
29895,
29962,
13,
9651,
770,
29918,
29895,
29918,
771,
5824,
353,
620,
29889,
695,
29888,
29918,
771,
5824,
29889,
29911,
29961,
29895,
29962,
13,
9651,
20480,
353,
2071,
19668,
29889,
2527,
10817,
29889,
10198,
29918,
14766,
29918,
13628,
29898,
1990,
29918,
29895,
29918,
509,
2806,
29892,
770,
29918,
29895,
29918,
771,
5824,
29897,
13,
9651,
7709,
20480,
13,
13,
1678,
822,
1970,
375,
1080,
29918,
586,
29878,
29898,
690,
1125,
13,
4706,
396,
697,
29918,
4270,
29918,
5060,
1970,
375,
1080,
13,
4706,
1053,
325,
10154,
408,
325,
29873,
13,
13,
4706,
620,
29889,
2987,
358,
29918,
361,
29918,
484,
19226,
580,
13,
4706,
363,
413,
297,
3464,
29898,
690,
29889,
29891,
29918,
1688,
29918,
2109,
29889,
12181,
29961,
29896,
29962,
1125,
13,
9651,
770,
29918,
29895,
29918,
509,
2806,
353,
620,
29889,
29891,
29918,
1688,
29918,
2109,
29889,
29911,
29961,
29895,
29962,
13,
9651,
770,
29918,
29895,
29918,
771,
5824,
353,
620,
29889,
695,
29888,
29918,
771,
5824,
29889,
29911,
29961,
29895,
29962,
13,
9651,
274,
29888,
1516,
353,
325,
29873,
29889,
16376,
3958,
10095,
10817,
2141,
9202,
29898,
1990,
29918,
29895,
29918,
771,
5824,
29892,
770,
29918,
29895,
29918,
509,
2806,
29897,
13,
9651,
396,
20480,
353,
2071,
19668,
29889,
2527,
10817,
29889,
10198,
29918,
14766,
29918,
13628,
29898,
1990,
29918,
29895,
29918,
509,
2806,
29892,
770,
29918,
29895,
29918,
771,
5824,
29897,
13,
9651,
7709,
620,
29889,
1990,
29918,
7039,
29961,
29895,
1402,
274,
29888,
1516,
13,
13,
1678,
822,
696,
29883,
29918,
13628,
29898,
690,
1125,
13,
4706,
620,
29889,
2987,
358,
29918,
361,
29918,
484,
19226,
580,
13,
4706,
20480,
29918,
19668,
353,
2071,
19668,
29889,
2527,
10817,
29889,
10198,
29918,
14766,
29918,
13628,
29898,
690,
29889,
29891,
29918,
1688,
29918,
2109,
29892,
620,
29889,
695,
29888,
29918,
771,
5824,
29897,
13,
4706,
736,
20480,
29918,
19668,
13,
13,
13,
29992,
329,
29889,
28120,
519,
29918,
1990,
13,
1990,
14974,
5398,
29903,
9422,
29898,
329,
29889,
29940,
625,
1123,
558,
1125,
13,
1678,
9995,
13,
1678,
5166,
793,
11916,
313,
29875,
29889,
29872,
29889,
4682,
29899,
1643,
11000,
29897,
411,
263,
10296,
310,
13,
1678,
1661,
29899,
6149,
1474,
29192,
19481,
2450,
11073,
13,
13,
1678,
10516,
3542,
29901,
13,
4706,
3017,
448,
29885,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
695,
29888,
29918,
3952,
6774,
14974,
5398,
29903,
9422,
13,
13,
1678,
8741,
29901,
13,
4706,
8653,
396,
12524,
6181,
29918,
3970,
1783,
29923,
1254,
13,
4706,
8653,
515,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
695,
29888,
29918,
3952,
6774,
1053,
334,
29871,
396,
11698,
29984,
29909,
13,
4706,
8653,
11916,
353,
14974,
5398,
29903,
9422,
4197,
29900,
29892,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
2314,
13,
4706,
8653,
9595,
29918,
517,
29918,
513,
293,
4097,
353,
3477,
29889,
397,
919,
4197,
13,
4706,
8653,
268,
6702,
7662,
29896,
742,
3477,
29889,
397,
919,
4197,
13,
4706,
8653,
308,
6702,
3859,
29896,
742,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
11724,
13,
4706,
8653,
308,
6702,
3859,
29906,
742,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
11724,
13,
4706,
8653,
308,
6702,
3859,
29941,
742,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
11724,
13,
4706,
8653,
418,
2314,
511,
13,
4706,
8653,
268,
6702,
7662,
29906,
742,
3477,
29889,
397,
919,
4197,
13,
4706,
8653,
308,
6702,
3859,
29946,
742,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
11724,
13,
4706,
8653,
308,
6702,
3859,
29945,
742,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
11724,
13,
4706,
8653,
268,
4514,
876,
13,
4706,
8653,
29871,
2314,
13,
4706,
8653,
11916,
29889,
7302,
29918,
513,
293,
4097,
29898,
20673,
29918,
517,
29918,
513,
293,
4097,
29897,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
27736,
29892,
2380,
1125,
13,
4706,
11916,
29889,
2248,
353,
2380,
13,
4706,
11916,
29889,
1491,
20673,
353,
3477,
29889,
397,
919,
580,
13,
13,
1678,
396,
822,
731,
29918,
12857,
29918,
1557,
2361,
29898,
27736,
29892,
2560,
29918,
1557,
2361,
1125,
13,
1678,
396,
268,
565,
2560,
29918,
1557,
2361,
338,
451,
6213,
29901,
13,
1678,
396,
308,
12770,
353,
3477,
29889,
331,
481,
29898,
23583,
29892,
11916,
29889,
29874,
333,
29918,
29886,
7121,
29889,
25027,
391,
3101,
13,
1678,
396,
308,
4974,
313,
287,
2710,
1275,
2560,
29918,
1557,
2361,
29889,
2248,
29889,
25027,
391,
3101,
13,
1678,
396,
268,
11916,
29889,
12857,
29918,
1557,
2361,
353,
2560,
29918,
1557,
2361,
13,
13,
1678,
396,
822,
731,
29918,
1725,
1446,
29898,
27736,
29892,
1060,
29918,
8977,
1125,
13,
1678,
396,
268,
565,
1060,
29918,
8977,
338,
451,
6213,
29901,
13,
1678,
396,
308,
12770,
353,
3477,
29889,
331,
481,
29898,
23583,
29892,
11916,
29889,
29874,
333,
29918,
29886,
7121,
29889,
25027,
391,
3101,
13,
1678,
396,
308,
363,
1060,
297,
1060,
29918,
8977,
29889,
5975,
7295,
13,
1678,
396,
632,
4974,
7442,
29889,
497,
29898,
287,
2710,
1275,
1060,
29889,
2248,
29889,
25027,
391,
3101,
13,
1678,
396,
268,
11916,
29889,
29990,
29918,
8977,
353,
1060,
29918,
8977,
13,
13,
1678,
822,
6969,
29918,
20673,
29898,
27736,
1125,
13,
4706,
363,
3414,
29918,
1989,
29892,
11073,
297,
11916,
29889,
1491,
20673,
29889,
7076,
7295,
13,
9651,
11073,
353,
11916,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
29962,
13,
9651,
565,
11073,
29889,
5349,
29918,
5924,
7295,
13,
18884,
7709,
3414,
29918,
1989,
13,
13,
1678,
822,
3394,
29918,
513,
293,
4097,
29898,
27736,
29892,
9595,
29918,
517,
29918,
513,
293,
4097,
1125,
13,
4706,
9995,
13,
4706,
3462,
29879,
11073,
363,
263,
2702,
3414,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
9595,
29918,
517,
29918,
513,
293,
4097,
313,
8977,
1125,
4893,
278,
883,
29901,
13,
18884,
426,
13,
462,
259,
421,
1357,
29918,
7662,
29918,
978,
29896,
29915,
426,
13,
462,
539,
525,
1990,
29896,
2396,
518,
1761,
310,
1045,
3775,
23941,
770,
28512,
29962,
13,
462,
539,
2023,
13,
462,
539,
525,
1990,
29940,
2396,
518,
1761,
310,
1045,
3775,
23941,
770,
28512,
29962,
13,
462,
259,
500,
13,
462,
259,
2023,
13,
462,
259,
421,
1357,
29918,
7662,
29918,
978,
29940,
2396,
2023,
13,
1669,
500,
13,
4706,
9995,
13,
4706,
302,
29918,
27736,
353,
6213,
13,
4706,
11916,
29889,
29876,
29918,
20673,
353,
7431,
29898,
20673,
29918,
517,
29918,
513,
293,
4097,
29897,
13,
4706,
363,
3414,
29918,
978,
29892,
27717,
297,
9595,
29918,
517,
29918,
513,
293,
4097,
29889,
7076,
7295,
13,
9651,
11073,
353,
14974,
2385,
4775,
29879,
29889,
3166,
29918,
513,
293,
4097,
29898,
13,
18884,
27717,
29892,
3414,
29918,
978,
29922,
7662,
29918,
978,
29892,
2380,
29922,
27736,
29889,
2248,
13,
9651,
1723,
13,
9651,
11916,
29889,
1491,
20673,
29961,
7662,
29918,
978,
29962,
353,
11073,
13,
9651,
565,
302,
29918,
27736,
338,
6213,
29901,
13,
18884,
302,
29918,
27736,
353,
11073,
29889,
29876,
29918,
27736,
13,
9651,
25342,
302,
29918,
27736,
2804,
11073,
29889,
29876,
29918,
27736,
29901,
13,
18884,
12020,
7865,
2392,
877,
8058,
310,
11916,
338,
1422,
1495,
13,
4706,
11916,
29889,
29876,
29918,
27736,
353,
302,
29918,
27736,
13,
13,
1678,
822,
3394,
29918,
26716,
29918,
21134,
29898,
27736,
29892,
343,
29918,
3977,
29892,
770,
29918,
7039,
29892,
3414,
29918,
978,
1125,
13,
4706,
9995,
13,
4706,
3462,
29879,
11073,
363,
263,
2702,
3414,
29889,
12440,
1230,
304,
421,
7302,
29918,
513,
293,
4097,
29952,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
343,
29918,
3977,
313,
1761,
1125,
6043,
3858,
23941,
278,
770,
363,
1269,
4559,
13,
9651,
770,
29918,
7039,
313,
1761,
1125,
1051,
310,
6031,
23941,
278,
770,
29899,
7247,
13,
9651,
3414,
29918,
978,
313,
710,
1125,
1820,
363,
972,
11427,
445,
2702,
3414,
13,
4706,
9995,
13,
4706,
396,
3588,
304,
27717,
3829,
322,
671,
393,
13,
4706,
9595,
29918,
517,
29918,
513,
293,
4097,
353,
3477,
29889,
397,
919,
29898,
13,
9651,
518,
13,
18884,
313,
13,
462,
1678,
3414,
29918,
978,
29892,
13,
462,
1678,
3477,
29889,
397,
919,
29898,
13,
462,
4706,
518,
13,
462,
9651,
313,
978,
29892,
7442,
29889,
2378,
29898,
29891,
29918,
3977,
29897,
1275,
474,
29897,
13,
462,
9651,
363,
474,
29892,
1024,
297,
26985,
29898,
1990,
29918,
7039,
29897,
13,
462,
4706,
4514,
13,
462,
1678,
10353,
13,
18884,
1723,
13,
9651,
4514,
13,
4706,
1723,
13,
4706,
11916,
29889,
7302,
29918,
513,
293,
4097,
29898,
20673,
29918,
517,
29918,
513,
293,
4097,
29897,
13,
13,
1678,
396,
732,
329,
29889,
6954,
29877,
675,
13,
1678,
822,
18511,
29918,
29906,
29881,
29898,
27736,
1125,
13,
4706,
18511,
29918,
29906,
29881,
353,
10518,
29889,
17685,
4197,
29894,
29889,
26716,
29918,
2176,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
1402,
9685,
29922,
29896,
29897,
13,
4706,
736,
18511,
29918,
29906,
29881,
13,
13,
1678,
822,
770,
29918,
978,
29918,
6500,
275,
29898,
27736,
1125,
13,
4706,
9995,
2616,
3636,
29879,
411,
18111,
4133,
515,
18511,
29896,
29881,
15945,
29908,
13,
4706,
770,
29918,
978,
29918,
6500,
275,
353,
518,
13,
9651,
260,
29961,
1057,
29899,
29896,
29962,
13,
9651,
363,
260,
297,
3477,
29889,
4704,
10456,
29961,
29894,
29889,
1990,
29918,
7039,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
3816,
1057,
29899,
29896,
2314,
13,
4706,
4514,
13,
4706,
396,
770,
29918,
978,
29918,
6500,
275,
353,
17288,
29890,
29892,
263,
29897,
363,
263,
29892,
289,
297,
3477,
29889,
4704,
10456,
29961,
13,
4706,
396,
268,
325,
29889,
1990,
29918,
7039,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
3816,
1057,
29899,
29896,
2314,
29962,
13,
4706,
736,
770,
29918,
978,
29918,
6500,
275,
13,
13,
1678,
822,
770,
29918,
13140,
29918,
6500,
275,
29918,
29906,
29881,
29898,
27736,
1125,
13,
4706,
9995,
29906,
29881,
29899,
2248,
1873,
310,
770,
29918,
978,
29918,
6500,
275,
15945,
29908,
13,
4706,
770,
29918,
13140,
29918,
6500,
275,
29918,
29906,
29881,
353,
518,
13,
9651,
313,
29890,
29892,
263,
29897,
13,
9651,
363,
263,
29892,
289,
297,
3477,
29889,
4704,
29898,
13,
18884,
334,
29961,
3881,
29898,
29894,
29889,
29876,
29918,
13203,
29897,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
3816,
1057,
29899,
29896,
29962,
13,
9651,
1723,
13,
4706,
4514,
13,
4706,
736,
770,
29918,
13140,
29918,
6500,
275,
29918,
29906,
29881,
13,
13,
1678,
822,
770,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
29898,
27736,
1125,
13,
4706,
9995,
29896,
29881,
29899,
2248,
1873,
310,
770,
29918,
978,
29918,
6500,
275,
15945,
29908,
13,
4706,
302,
29918,
28631,
353,
7442,
29889,
10633,
4197,
29894,
29889,
29876,
29918,
13203,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
2314,
13,
4706,
770,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
353,
7442,
29889,
279,
927,
29898,
29876,
29918,
28631,
29892,
26688,
29922,
9302,
29889,
524,
29897,
13,
4706,
736,
770,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
13,
13,
1678,
396,
732,
329,
29889,
6954,
29877,
675,
13,
1678,
822,
18511,
29918,
29896,
29881,
29898,
27736,
1125,
13,
4706,
9995,
11609,
29879,
263,
5412,
3858,
363,
1269,
10296,
310,
11916,
15945,
29908,
13,
4706,
396,
515,
2071,
19668,
29889,
1457,
19170,
1053,
14974,
4775,
29933,
18220,
3950,
13,
4706,
18511,
29918,
29906,
29881,
353,
11916,
29889,
26716,
29918,
29906,
29881,
580,
13,
4706,
770,
29918,
3493,
353,
518,
29894,
29889,
29876,
29918,
13203,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
29962,
13,
4706,
1283,
7224,
353,
7442,
29889,
2378,
4197,
29896,
29962,
718,
7442,
29889,
29883,
398,
10633,
29898,
1990,
29918,
3493,
467,
25027,
391,
580,
7503,
29899,
29896,
2314,
29961,
8516,
29892,
584,
29962,
13,
4706,
18511,
29918,
29896,
29881,
353,
313,
2696,
7224,
334,
18511,
29918,
29906,
29881,
467,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
396,
321,
353,
14974,
4775,
29933,
18220,
3950,
580,
13,
4706,
396,
9016,
29918,
1111,
12352,
353,
321,
29889,
9202,
29918,
9067,
29898,
26716,
29918,
29906,
29881,
29897,
13,
4706,
396,
9016,
29918,
6500,
275,
353,
313,
29906,
3579,
7442,
29889,
279,
927,
29898,
2109,
29918,
1111,
12352,
29889,
12181,
29961,
29896,
12622,
29961,
8516,
29892,
584,
29962,
13,
4706,
396,
396,
18511,
29918,
29896,
29881,
353,
313,
2109,
29918,
1111,
12352,
334,
9016,
29918,
6500,
275,
467,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
396,
18511,
29918,
29896,
29881,
353,
313,
2109,
29918,
1111,
12352,
334,
9016,
29918,
6500,
275,
29961,
1057,
29899,
29896,
14664,
2083,
29898,
8990,
29922,
29896,
29897,
13,
4706,
396,
396,
325,
29873,
29889,
13092,
29918,
5727,
29898,
808,
19668,
29889,
1457,
19170,
29889,
15329,
4775,
29933,
18220,
3950,
2141,
9202,
29918,
9067,
29898,
26716,
29918,
29906,
29881,
876,
13,
4706,
396,
518,
29894,
29889,
26716,
29918,
2176,
29889,
5975,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
29962,
13,
4706,
396,
18511,
29918,
2176,
29918,
29896,
29881,
353,
10518,
29889,
17685,
4197,
29894,
29889,
26716,
29918,
2176,
363,
413,
29892,
325,
297,
11916,
29889,
7076,
580,
1402,
9685,
29922,
29896,
29897,
13,
4706,
736,
18511,
29918,
29896,
29881,
13,
13,
1678,
822,
4770,
16533,
12035,
27736,
1125,
13,
4706,
736,
525,
29876,
29903,
16328,
29878,
29892,
302,
29911,
16328,
29878,
29915,
1273,
313,
2435,
29898,
27736,
511,
11916,
29889,
29876,
29918,
20673,
29897,
13,
13,
1678,
822,
4770,
657,
667,
12035,
27736,
29892,
3414,
29918,
1989,
1125,
13,
4706,
736,
11916,
29889,
1491,
20673,
29961,
7662,
29918,
1989,
29962,
13,
13,
1678,
822,
4770,
2435,
12035,
27736,
1125,
13,
4706,
736,
11916,
29889,
29876,
29918,
27736,
13,
13,
1678,
822,
1596,
29918,
3888,
29898,
27736,
1125,
13,
4706,
363,
3414,
29918,
978,
29892,
11073,
297,
11916,
29889,
7076,
7295,
13,
9651,
11073,
29889,
2158,
29918,
3888,
580,
13,
4706,
17927,
29889,
3888,
877,
29882,
391,
29898,
497,
29897,
353,
1273,
29879,
29915,
1273,
313,
329,
29889,
276,
558,
29946,
29898,
27736,
29889,
5675,
29918,
29882,
391,
13342,
580,
4961,
13,
4706,
17927,
29889,
3888,
877,
2435,
29898,
497,
29897,
353,
1273,
29879,
29915,
1273,
313,
2435,
29898,
27736,
4961,
13,
13,
1678,
822,
1207,
29918,
29882,
391,
13342,
29898,
27736,
1125,
13,
4706,
9995,
1643,
9825,
13342,
15945,
29908,
13,
4706,
770,
29918,
978,
29918,
6500,
275,
353,
11916,
29889,
1990,
29918,
978,
29918,
6500,
275,
580,
13,
4706,
770,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
353,
11916,
29889,
1990,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
580,
13,
4706,
396,
17927,
29889,
3888,
877,
1990,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
353,
1273,
29878,
29915,
1273,
313,
1990,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
29892,
876,
13,
4706,
396,
17927,
29889,
3888,
29898,
27736,
29889,
26716,
29918,
29896,
29881,
3101,
13,
4706,
2473,
29918,
7662,
29918,
13140,
29918,
29882,
391,
353,
3477,
29889,
8977,
29918,
29882,
391,
29898,
13,
9651,
11916,
29889,
26716,
29918,
29896,
29881,
2141,
5975,
29892,
11073,
29922,
1990,
29918,
13140,
29918,
6500,
275,
29918,
29896,
29881,
13,
4706,
1723,
13,
4706,
2473,
29918,
7662,
29918,
29882,
391,
353,
3477,
29889,
1958,
29918,
8149,
29898,
2892,
413,
29901,
770,
29918,
978,
29918,
6500,
275,
29961,
29895,
1402,
2473,
29918,
7662,
29918,
13140,
29918,
29882,
391,
29897,
13,
4706,
736,
2473,
29918,
7662,
29918,
29882,
391,
13,
13,
1678,
822,
4452,
29898,
27736,
1125,
13,
4706,
363,
3414,
29918,
978,
29892,
11073,
297,
11916,
29889,
1491,
20673,
29889,
7076,
7295,
13,
9651,
7709,
3414,
29918,
978,
29892,
11073,
13,
13,
1678,
396,
822,
2125,
29898,
27736,
29892,
1178,
10351,
1125,
13,
1678,
396,
268,
11105,
353,
3477,
29889,
2248,
29918,
517,
29918,
11227,
13168,
29898,
333,
10351,
29892,
7431,
29898,
27736,
876,
13,
1678,
396,
268,
736,
11916,
29889,
510,
2139,
29898,
13168,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2318,
29918,
4841,
29898,
27736,
1125,
13,
4706,
736,
6213,
13,
13,
1678,
822,
26742,
2164,
29918,
29895,
8771,
29918,
513,
1575,
29898,
27736,
29892,
3579,
29916,
791,
29918,
11022,
1125,
13,
4706,
9995,
13,
4706,
14402,
29901,
1423,
921,
791,
3858,
10868,
13,
13,
13,
4706,
9995,
13,
4706,
515,
2071,
19668,
1053,
1904,
29918,
21731,
13,
13,
4706,
1060,
353,
7442,
29889,
6310,
3552,
2435,
29898,
27736,
511,
29871,
29900,
876,
13,
4706,
343,
353,
11916,
29889,
26716,
29918,
29896,
29881,
2141,
5975,
13,
4706,
6471,
353,
11916,
29889,
2972,
29918,
4841,
13,
13,
4706,
1134,
29918,
353,
921,
791,
29918,
11022,
29889,
7323,
877,
1853,
742,
525,
5015,
271,
2164,
4782,
29968,
29943,
1025,
1495,
13,
4706,
565,
1134,
29918,
1275,
525,
5015,
271,
2164,
4782,
29968,
29943,
1025,
2396,
13,
9651,
4974,
6471,
338,
451,
6213,
13,
9651,
396,
383,
6415,
2303,
29901,
450,
3767,
271,
2164,
4782,
29968,
29943,
1025,
1033,
367,
8762,
2253,
29889,
13,
9651,
6219,
357,
353,
2071,
19668,
29918,
13239,
29889,
5015,
271,
2164,
4782,
29968,
29943,
1025,
29898,
1068,
29916,
791,
29918,
11022,
29897,
13,
9651,
2071,
29888,
29918,
1761,
353,
1051,
29898,
5451,
357,
29889,
5451,
29898,
29990,
29922,
29990,
29892,
343,
29922,
29891,
29892,
6471,
29922,
13155,
876,
13,
4706,
25342,
1134,
29918,
1275,
525,
5015,
271,
2164,
29968,
29943,
1025,
2396,
13,
9651,
6219,
357,
353,
1904,
29918,
21731,
29889,
5015,
271,
2164,
29968,
29943,
1025,
29898,
1068,
29916,
791,
29918,
11022,
29897,
13,
9651,
2071,
29888,
29918,
1761,
353,
1051,
29898,
5451,
357,
29889,
5451,
29898,
29990,
29922,
29990,
29892,
343,
29922,
29891,
876,
13,
4706,
736,
2071,
29888,
29918,
1761,
13,
13,
1678,
822,
1014,
5451,
29918,
513,
1575,
29898,
27736,
29892,
11306,
29918,
13140,
29892,
3579,
29916,
791,
29918,
11022,
1125,
13,
4706,
9995,
5451,
385,
5923,
731,
15945,
29908,
13,
4706,
515,
2071,
19668,
1053,
1904,
29918,
21731,
13,
13,
4706,
1060,
353,
7442,
29889,
6310,
3552,
2435,
29898,
6484,
29918,
13140,
511,
29871,
29900,
876,
13,
4706,
343,
353,
11916,
29889,
26716,
29918,
29896,
29881,
2141,
5975,
29961,
6484,
29918,
13140,
29962,
13,
4706,
6471,
353,
11916,
29889,
2972,
29918,
4841,
29961,
6484,
29918,
13140,
29962,
13,
13,
4706,
921,
791,
29918,
11022,
29918,
353,
921,
791,
29918,
11022,
29889,
8552,
580,
13,
4706,
565,
525,
29876,
29918,
23579,
1169,
29915,
451,
297,
921,
791,
29918,
11022,
29918,
29901,
13,
9651,
921,
791,
29918,
11022,
29918,
1839,
29876,
29918,
23579,
1169,
2033,
353,
29871,
29941,
13,
4706,
1134,
29918,
353,
921,
791,
29918,
11022,
5396,
7323,
877,
1853,
742,
525,
5015,
271,
2164,
4782,
29968,
29943,
1025,
1495,
13,
4706,
565,
1134,
29918,
1275,
525,
5015,
271,
2164,
4782,
29968,
29943,
1025,
2396,
13,
9651,
4974,
6471,
338,
451,
6213,
13,
9651,
396,
383,
6415,
2303,
29901,
450,
3767,
271,
2164,
4782,
29968,
29943,
1025,
1033,
367,
8762,
2253,
29889,
13,
9651,
6219,
357,
353,
2071,
19668,
29918,
13239,
29889,
5015,
271,
2164,
4782,
29968,
29943,
1025,
29898,
1068,
29916,
791,
29918,
11022,
19925,
13,
9651,
1104,
29918,
808,
29888,
29918,
1761,
353,
1051,
29898,
5451,
357,
29889,
5451,
29898,
29990,
29922,
29990,
29892,
343,
29922,
29891,
29892,
6471,
29922,
13155,
876,
13,
4706,
25342,
1134,
29918,
1275,
525,
5015,
271,
2164,
29968,
29943,
1025,
2396,
13,
9651,
6219,
357,
353,
1904,
29918,
21731,
29889,
5015,
271,
2164,
29968,
29943,
1025,
29898,
1068,
29916,
791,
29918,
11022,
19925,
13,
9651,
1104,
29918,
808,
29888,
29918,
1761,
353,
1051,
29898,
5451,
357,
29889,
5451,
29898,
29990,
29922,
29990,
29892,
343,
29922,
29891,
876,
13,
13,
4706,
396,
2910,
1250,
964,
2441,
1302,
4339,
13,
4706,
2071,
29888,
29918,
1761,
353,
518,
13,
9651,
313,
6484,
29918,
13140,
29961,
2674,
29918,
13140,
29896,
1402,
11306,
29918,
13140,
29961,
2674,
29918,
13140,
29906,
2314,
13,
9651,
363,
1104,
29918,
13140,
29896,
29892,
1104,
29918,
13140,
29906,
297,
1104,
29918,
808,
29888,
29918,
1761,
13,
4706,
4514,
13,
13,
4706,
363,
22645,
29896,
29892,
22645,
29906,
297,
2071,
29888,
29918,
1761,
29901,
13,
9651,
4974,
7431,
29898,
9302,
29889,
1639,
8803,
29896,
29881,
29898,
6484,
29918,
13140,
29892,
22645,
29896,
876,
1275,
7431,
29898,
13140,
29896,
29897,
13,
9651,
4974,
7431,
29898,
9302,
29889,
1639,
8803,
29896,
29881,
29898,
6484,
29918,
13140,
29892,
22645,
29906,
876,
1275,
7431,
29898,
13140,
29906,
29897,
13,
9651,
396,
4974,
13,
4706,
736,
2071,
29888,
29918,
1761,
13,
13,
13,
29992,
329,
29889,
28120,
519,
29918,
1990,
13,
1990,
14974,
2385,
4775,
29879,
29898,
329,
29889,
29940,
625,
1123,
558,
1125,
13,
1678,
9995,
13,
1678,
501,
8485,
491,
11916,
304,
19750,
263,
2323,
731,
310,
5478,
1474,
29192,
11073,
29889,
29871,
4525,
13,
1678,
508,
2845,
367,
7581,
470,
1773,
293,
605,
29889,
13,
13,
4706,
1053,
11701,
408,
10518,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29896,
29900,
13,
4706,
396,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
5727,
353,
29871,
29906,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
3317,
29918,
13099,
353,
29871,
29946,
29900,
13,
4706,
10518,
29889,
6768,
29889,
4990,
29889,
2103,
353,
29871,
29896,
29953,
29900,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
21134,
1125,
13,
4706,
396,
6162,
546,
22140,
13,
4706,
11073,
29889,
7662,
29918,
978,
353,
6213,
13,
4706,
11073,
29889,
29876,
29918,
27736,
353,
6213,
13,
4706,
11073,
29889,
29876,
29918,
13203,
353,
6213,
13,
4706,
11073,
29889,
1990,
29918,
7039,
353,
6213,
13,
4706,
11073,
29889,
13203,
29918,
353,
6213,
13,
4706,
396,
10239,
848,
13,
4706,
11073,
29889,
513,
20485,
29918,
2176,
353,
6213,
13,
4706,
11073,
29889,
26716,
29918,
2176,
353,
6213,
13,
4706,
11073,
29889,
4381,
29918,
1990,
353,
6213,
13,
13,
1678,
822,
756,
29918,
5924,
29898,
21134,
1125,
13,
4706,
736,
7431,
29898,
21134,
29889,
5675,
29918,
29882,
391,
13342,
3101,
1405,
29871,
29896,
13,
13,
1678,
822,
16280,
29918,
1990,
29918,
13140,
29898,
21134,
29892,
770,
29918,
978,
1125,
13,
4706,
736,
3477,
29889,
5601,
666,
29898,
21134,
29889,
1990,
29918,
7039,
29892,
11073,
29889,
13203,
29918,
9601,
1990,
29918,
978,
29962,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
29918,
513,
293,
4097,
29898,
15329,
2385,
4775,
29879,
29892,
27717,
29892,
2380,
29922,
8516,
29892,
3414,
29918,
978,
29922,
8516,
1125,
13,
4706,
11073,
353,
14974,
2385,
4775,
29879,
580,
13,
4706,
302,
29918,
27736,
353,
7431,
29898,
4622,
29898,
1524,
29898,
513,
20485,
29889,
5975,
580,
4961,
13,
4706,
396,
565,
2380,
338,
6213,
29901,
13,
4706,
396,
268,
2380,
353,
10518,
29889,
19204,
29898,
9302,
29889,
279,
927,
29898,
29876,
29918,
27736,
511,
1024,
2433,
2248,
1495,
13,
4706,
27717,
29918,
2176,
353,
10518,
29889,
17271,
29898,
513,
20485,
29892,
2380,
29922,
2248,
29897,
13,
4706,
4974,
7442,
29889,
497,
29898,
13,
9651,
27717,
29918,
2176,
29889,
2083,
29898,
8990,
29922,
29896,
467,
5975,
13,
4706,
10353,
525,
28631,
297,
278,
1021,
3414,
1818,
367,
5478,
1474,
29192,
29915,
13,
4706,
11073,
29889,
513,
20485,
29918,
2176,
353,
27717,
29918,
2176,
13,
4706,
11073,
29889,
1990,
29918,
7039,
353,
27717,
29918,
2176,
29889,
13099,
29889,
5975,
13,
4706,
11073,
29889,
26716,
29918,
2176,
353,
10518,
29889,
17271,
29898,
13,
9651,
27717,
29918,
2176,
29889,
5975,
29889,
1191,
3317,
29898,
8990,
29922,
29896,
511,
4341,
11759,
7662,
29918,
978,
1402,
2380,
29922,
2248,
13,
4706,
1723,
13,
4706,
11073,
29889,
7662,
29918,
978,
353,
3414,
29918,
978,
13,
4706,
11073,
29889,
29876,
29918,
27736,
353,
302,
29918,
27736,
13,
4706,
11073,
29889,
29876,
29918,
13203,
353,
7431,
29898,
21134,
29889,
1990,
29918,
7039,
29897,
13,
4706,
565,
11073,
29889,
29876,
29918,
13203,
1275,
29871,
29896,
29901,
13,
9651,
11073,
29889,
29876,
29918,
13203,
353,
29871,
29906,
29871,
396,
29871,
29896,
1897,
2794,
7581,
1206,
13,
4706,
11073,
29889,
13203,
29918,
353,
7442,
29889,
279,
927,
29898,
21134,
29889,
29876,
29918,
13203,
29897,
13,
4706,
11073,
29889,
4381,
29918,
1990,
29918,
978,
353,
11073,
29889,
1990,
29918,
7039,
29961,
29896,
29962,
13,
4706,
736,
11073,
13,
13,
1678,
732,
6799,
13,
1678,
822,
3646,
29918,
1853,
29898,
21134,
1125,
13,
4706,
736,
2071,
19668,
29889,
13239,
29889,
4713,
293,
605,
29889,
1853,
29918,
974,
29918,
5182,
29898,
21134,
29889,
29891,
29918,
3977,
29897,
13,
13,
1678,
822,
697,
29918,
4270,
29918,
5060,
29918,
7662,
29918,
7039,
29898,
21134,
1125,
13,
4706,
736,
518,
13,
9651,
11073,
29889,
7662,
29918,
978,
718,
525,
877,
718,
11073,
29889,
1990,
29918,
7039,
29961,
29895,
29962,
718,
17411,
29894,
29899,
5060,
16029,
13,
9651,
363,
413,
297,
3464,
29898,
21134,
29889,
29876,
29918,
13203,
29897,
13,
4706,
4514,
13,
13,
1678,
822,
2531,
29918,
650,
29918,
4270,
29918,
5060,
29918,
21134,
29898,
21134,
1125,
13,
4706,
9995,
13,
4706,
8741,
29901,
13,
9651,
8653,
396,
12524,
6181,
29918,
3970,
1783,
29923,
1254,
13,
9651,
8653,
515,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
695,
29888,
29918,
3952,
6774,
1053,
334,
29871,
396,
11698,
29984,
29909,
13,
9651,
8653,
27717,
353,
3477,
29889,
397,
919,
4197,
13,
9651,
8653,
308,
6702,
3859,
29896,
742,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
11724,
13,
9651,
8653,
308,
6702,
3859,
29906,
742,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
11724,
13,
9651,
8653,
308,
6702,
3859,
29941,
742,
518,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
11724,
13,
9651,
8653,
418,
2314,
13,
9651,
8653,
11073,
353,
14974,
2385,
4775,
29879,
29889,
3166,
29918,
513,
293,
4097,
29898,
513,
20485,
29892,
3414,
29918,
978,
2433,
7662,
29896,
1495,
13,
9651,
8653,
1014,
21134,
353,
1051,
29898,
21134,
29889,
1885,
29918,
650,
29918,
4270,
29918,
5060,
29918,
21134,
3101,
13,
9651,
8653,
1014,
1643,
353,
1014,
21134,
29961,
29900,
29962,
13,
4706,
9995,
13,
4706,
565,
11073,
29889,
5182,
29918,
1853,
1275,
525,
19541,
2396,
13,
9651,
7709,
11073,
13,
9651,
736,
13,
4706,
3414,
29918,
7039,
29918,
29896,
29894,
29934,
353,
11073,
29889,
650,
29918,
4270,
29918,
5060,
29918,
7662,
29918,
7039,
580,
13,
4706,
363,
413,
297,
3464,
29898,
21134,
29889,
29876,
29918,
13203,
1125,
13,
9651,
770,
29918,
978,
353,
11073,
29889,
1990,
29918,
7039,
29961,
29895,
29962,
13,
9651,
3414,
29918,
978,
353,
3414,
29918,
7039,
29918,
29896,
29894,
29934,
29961,
29895,
29962,
13,
9651,
2380,
353,
11073,
29889,
513,
20485,
29918,
2176,
29889,
2248,
13,
9651,
27717,
29918,
2176,
353,
10518,
29889,
17271,
580,
13,
9651,
27717,
29918,
2176,
1839,
1333,
29899,
29915,
718,
770,
29918,
978,
29962,
353,
29871,
29896,
448,
11073,
29889,
513,
20485,
29918,
2176,
29961,
1990,
29918,
978,
29962,
13,
9651,
27717,
29918,
2176,
29961,
1990,
29918,
978,
29962,
353,
11073,
29889,
513,
20485,
29918,
2176,
29961,
1990,
29918,
978,
29962,
13,
9651,
27717,
29918,
2176,
29889,
2248,
353,
2380,
13,
9651,
396,
27717,
353,
11073,
29889,
26716,
29918,
2176,
1275,
413,
13,
9651,
396,
27717,
29889,
1267,
420,
29898,
13099,
3790,
513,
20485,
29889,
13099,
29961,
29900,
5387,
770,
29918,
978,
1118,
297,
6689,
29922,
5574,
29897,
13,
9651,
302,
29918,
27736,
353,
7431,
29898,
513,
20485,
29918,
2176,
29897,
13,
9651,
1014,
1643,
353,
14974,
2385,
4775,
29879,
580,
13,
9651,
1014,
1643,
29889,
513,
20485,
29918,
2176,
353,
27717,
29918,
2176,
13,
9651,
1014,
1643,
29889,
1990,
29918,
7039,
353,
27717,
29918,
2176,
29889,
13099,
29889,
5975,
13,
9651,
396,
565,
7431,
29898,
513,
20485,
29918,
2176,
29889,
13099,
29897,
1275,
29871,
29896,
29901,
13,
9651,
396,
268,
1014,
1643,
29889,
26716,
29918,
2176,
353,
10518,
29889,
17271,
29898,
13,
9651,
396,
308,
27717,
29918,
2176,
29889,
5975,
29889,
29911,
29961,
29900,
1402,
13,
9651,
396,
308,
4341,
11759,
7662,
29918,
978,
29962,
13,
9651,
396,
268,
1723,
13,
9651,
396,
1683,
29901,
13,
9651,
1014,
1643,
29889,
26716,
29918,
2176,
353,
10518,
29889,
17271,
29898,
13,
18884,
27717,
29918,
2176,
29889,
5975,
29889,
1191,
3317,
29898,
8990,
29922,
29896,
511,
4341,
11759,
7662,
29918,
978,
1402,
2380,
29922,
2248,
13,
9651,
1723,
13,
9651,
1014,
1643,
29889,
7662,
29918,
978,
353,
3414,
29918,
978,
13,
9651,
1014,
1643,
29889,
29876,
29918,
27736,
353,
302,
29918,
27736,
13,
9651,
1014,
1643,
29889,
29876,
29918,
13203,
353,
7431,
29898,
1491,
1643,
29889,
1990,
29918,
7039,
29897,
13,
9651,
396,
565,
1014,
1643,
29889,
29876,
29918,
13203,
1275,
29871,
29896,
29901,
13,
9651,
396,
268,
1014,
1643,
29889,
29876,
29918,
13203,
353,
29871,
29906,
29871,
396,
29871,
29896,
1897,
2794,
7581,
1206,
13,
9651,
1014,
1643,
29889,
13203,
29918,
353,
7442,
29889,
279,
927,
29898,
1491,
1643,
29889,
29876,
29918,
13203,
29897,
13,
13,
9651,
396,
1014,
1643,
353,
14974,
2385,
4775,
29879,
29889,
3166,
29918,
513,
293,
4097,
29898,
513,
20485,
29892,
13,
9651,
396,
3414,
29918,
978,
29922,
1491,
978,
29892,
2380,
29922,
27736,
29889,
2248,
29897,
13,
9651,
7709,
1014,
1643,
13,
13,
1678,
732,
6799,
13,
1678,
822,
343,
29918,
2109,
29898,
21134,
1125,
13,
4706,
736,
11073,
29889,
513,
20485,
29918,
2176,
29889,
5975,
13,
13,
1678,
732,
6799,
13,
1678,
822,
343,
29918,
3977,
29898,
21134,
1125,
13,
4706,
736,
11073,
29889,
26716,
29918,
2176,
29889,
5975,
29889,
336,
955,
580,
13,
13,
1678,
822,
4770,
16533,
12035,
21134,
1125,
13,
4706,
5633,
353,
5159,
13,
4706,
565,
11073,
29889,
7662,
29918,
978,
338,
451,
6213,
29901,
13,
9651,
5633,
29889,
4397,
29898,
21134,
29889,
7662,
29918,
978,
29897,
13,
4706,
5633,
29889,
4397,
877,
29876,
29928,
16328,
29878,
29915,
1273,
313,
21134,
29889,
29876,
29918,
27736,
876,
13,
4706,
5633,
29889,
4397,
877,
29876,
29907,
16328,
29878,
29915,
1273,
313,
21134,
29889,
29876,
29918,
13203,
876,
13,
4706,
736,
525,
15300,
7122,
29898,
20895,
29897,
13,
13,
1678,
822,
4770,
2435,
12035,
21134,
1125,
13,
4706,
736,
11073,
29889,
29876,
29918,
27736,
13,
13,
1678,
822,
1207,
29918,
29882,
391,
13342,
29898,
21134,
1125,
13,
4706,
770,
29918,
13140,
29918,
29882,
391,
353,
3477,
29889,
8977,
29918,
29882,
391,
29898,
21134,
29889,
29891,
29918,
3977,
29897,
13,
4706,
770,
29918,
29882,
391,
353,
3477,
29889,
1958,
29918,
8149,
29898,
2892,
22645,
29901,
11073,
29889,
1990,
29918,
7039,
29961,
13140,
1402,
770,
29918,
13140,
29918,
29882,
391,
29897,
13,
4706,
736,
770,
29918,
29882,
391,
13,
13,
1678,
822,
1596,
29918,
3888,
29898,
21134,
1125,
13,
4706,
17927,
29889,
3888,
29898,
13,
9651,
525,
29882,
391,
29414,
29879,
29897,
353,
1273,
29879,
29915,
1273,
313,
21134,
29889,
7662,
29918,
978,
29892,
3477,
29889,
276,
558,
29946,
29898,
21134,
29889,
5675,
29918,
29882,
391,
13342,
22130,
13,
4706,
1723,
13,
4706,
17927,
29889,
3888,
877,
2435,
29414,
29879,
29897,
353,
1273,
29879,
29915,
1273,
313,
21134,
29889,
7662,
29918,
978,
29892,
7431,
29898,
21134,
4961,
13,
13,
13,
1990,
306,
3780,
26604,
29898,
6821,
29888,
26604,
1125,
13,
1678,
9995,
13,
1678,
12545,
13455,
773,
278,
9846,
1067,
29888,
1108,
304,
664,
373,
278,
3805,
275,
8783,
29889,
13,
13,
4706,
8741,
29901,
13,
9651,
8653,
396,
12524,
6181,
29918,
3970,
1783,
29923,
1254,
13,
9651,
8653,
515,
281,
15959,
29889,
284,
1484,
29889,
369,
361,
29889,
695,
29888,
29918,
3952,
6774,
1053,
334,
29871,
396,
11698,
29984,
29909,
13,
9651,
8653,
282,
2204,
29885,
353,
306,
3780,
26604,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
14669,
580,
13,
9651,
8653,
282,
2204,
29885,
29889,
27736,
13,
13,
1678,
9995,
13,
13,
1678,
822,
6230,
29898,
29886,
2204,
29885,
1125,
13,
4706,
1053,
2071,
19668,
29889,
14538,
1691,
13,
13,
4706,
3805,
275,
353,
2071,
19668,
29889,
14538,
1691,
29889,
1359,
29918,
381,
275,
580,
13,
13,
4706,
282,
2204,
29885,
29889,
16072,
29918,
7662,
29918,
1989,
353,
525,
381,
275,
29915,
13,
4706,
282,
2204,
29885,
29889,
4381,
29918,
1272,
29918,
1989,
353,
525,
19668,
29898,
497,
16029,
13,
4706,
282,
2204,
29885,
29889,
4381,
29918,
695,
29888,
29918,
1989,
353,
525,
29934,
29943,
29915,
13,
13,
4706,
1060,
29918,
2176,
353,
10518,
29889,
17271,
29898,
381,
275,
29889,
1272,
29892,
4341,
29922,
381,
275,
29889,
14394,
29918,
7039,
29897,
13,
4706,
11916,
353,
14974,
5398,
29903,
9422,
29898,
29990,
29918,
2176,
29889,
2248,
29897,
13,
4706,
11916,
29889,
7302,
29918,
513,
293,
4097,
29898,
13,
9651,
426,
13,
18884,
525,
381,
275,
2396,
426,
13,
462,
1678,
1024,
29901,
3805,
275,
29889,
5182,
1275,
22645,
363,
22645,
29892,
1024,
297,
26985,
29898,
381,
275,
29889,
5182,
29918,
7039,
29897,
13,
18884,
500,
13,
9651,
500,
13,
4706,
1723,
13,
4706,
11916,
29889,
29990,
29918,
8977,
353,
11117,
19668,
29898,
497,
29897,
2396,
1060,
29918,
2176,
29913,
13,
13,
4706,
282,
2204,
29885,
29889,
27736,
353,
11916,
13,
4706,
282,
2204,
29885,
29889,
29916,
791,
29918,
11022,
1839,
1853,
2033,
353,
525,
5015,
271,
2164,
29968,
29943,
1025,
29915,
13,
2
] |
src/RNN_utils.py | SergioEG/ScalableAVITM | 3 | 152536 | <reponame>SergioEG/ScalableAVITM<filename>src/RNN_utils.py
"""
Grouping all parsers specifications here
@authors: <NAME> (<EMAIL>) AND
<NAME> (<EMAIL>)
"""
import argparse
import pickle
from pandas import read_csv
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
import logging
logging.getLogger().setLevel(logging.INFO)
def parse_args():
desc = 'Variational Inference for Topic Models based on Dense Layers'
parser = argparse.ArgumentParser(description=desc)
parser.add_argument('--batch_size', type=int, default=200, help='Size of the batches')
parser.add_argument('--epochs',type=int,default=10,
help='Number of epochs of the simulations')
parser.add_argument('--train', type=int,default=1, help='Training model flag')
parser.add_argument('--verbose', type=int,default=1, help='Verbose option flag')
parser.add_argument('--save_it', type=int,default=1000,
help='Save variables every save_it iterations')
parser.add_argument('--restore', type=int,default=0,
help='To restore session, to keep training or evaluation')
parser.add_argument('--save_file', type=str, default='abcnews',
help='Save file name (will be extended with other conf. parameters)')
parser.add_argument('--corpus', type=str, default='abcnews',
help='Corpus. Instructions to read each corpus are given in utils.py')
parser.add_argument('--ntopics', type=int, default=10, help='Number of topics')
parser.add_argument('--display', type=int, default=1,
help='If verbose, print results every display epochs')
parser.add_argument('--nlayers', type=int, default=2,
help='Number of dense layers for the inference network')
parser.add_argument('--hidden_list','--list', nargs='+',
help='List of hidden units per layer',default=100)
#If only one number, same number of units perlayer!
parser.add_argument('--rate', type=float,default=0.005, help='Learning rate')
parser.add_argument('--vocabulary_size', type=int,default=10000, help='Vocabulary size')
parser.add_argument('--alpha', type=float,default=1.0, help='Dirich hiper.')
return parser.parse_args()
def get_corpus(corpus_name,nwords):
bow = None
dictionary = None
logging.info(f"Getting corpus and embeds of {corpus_name}")
if(corpus_name == 'FECYT'):
documents = list(pickle.load(open( "data/df_proyectosFECYT.pkl", "rb" ) )['LEMAS_UC3M'])
vectorizer = CountVectorizer(max_df=0.95, min_df=2, max_features=nwords, stop_words='english')
bow = vectorizer.fit_transform(documents)
dictionary = vectorizer.get_feature_names()
embeds = np.load("data/embeds_FECYT_256_LSTM.npy")
if(corpus_name == 'abcnews'):
data = read_csv('Data/abcnews-date-text.csv', error_bad_lines=False)
documents = data[['headline_text']].values.reshape(-1).tolist()
vectorizer = CountVectorizer(max_df=0.95, min_df=2, max_features=nwords, stop_words='english')
bow = vectorizer.fit_transform(documents)
dictionary = vectorizer.get_feature_names()
embeds = np.load("data/embeds_abcnews_512.npy")
logging.info(f"Corpus and embeds obtained")
return documents, bow,dictionary, embeds
def display_topics(lda_matrix, dictionary, no_top_words):
for topic_idx, topic in enumerate(lda_matrix):
print ("Topic %d:" % (topic_idx))
print (" ".join([dictionary[i] for i in topic.argsort()[:-no_top_words - 1:-1]]))
def next_batch(idx_vector,index_batch,batch_size):
return idx_vector[index_batch*batch_size:(index_batch*batch_size+batch_size)]
| [
1,
529,
276,
1112,
420,
29958,
1748,
5346,
11787,
29914,
29636,
519,
7520,
1806,
29924,
29966,
9507,
29958,
4351,
29914,
29934,
10262,
29918,
13239,
29889,
2272,
13,
13,
15945,
29908,
13,
4782,
292,
599,
610,
4253,
2702,
800,
1244,
13,
13,
29992,
5150,
943,
29901,
529,
5813,
29958,
313,
29966,
26862,
6227,
12948,
5300,
13,
3986,
529,
5813,
29958,
313,
29966,
26862,
6227,
12948,
13,
15945,
29908,
13,
13,
5215,
1852,
5510,
13,
5215,
5839,
280,
13,
3166,
11701,
1053,
1303,
29918,
7638,
13,
5215,
12655,
408,
7442,
13,
3166,
2071,
19668,
29889,
14394,
29918,
1062,
13857,
29889,
726,
1053,
3917,
12877,
3950,
13,
13,
5215,
12183,
13,
21027,
29889,
657,
16363,
2141,
842,
10108,
29898,
21027,
29889,
11690,
29897,
13,
13,
1753,
6088,
29918,
5085,
7295,
13,
1678,
5153,
353,
525,
10444,
1288,
512,
1659,
363,
7488,
293,
3382,
1379,
2729,
373,
360,
1947,
365,
388,
414,
29915,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
29922,
14273,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
16175,
29918,
2311,
742,
1134,
29922,
524,
29892,
2322,
29922,
29906,
29900,
29900,
29892,
1371,
2433,
3505,
310,
278,
9853,
267,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
1022,
2878,
29879,
742,
1853,
29922,
524,
29892,
4381,
29922,
29896,
29900,
29892,
29871,
13,
462,
4706,
1371,
2433,
4557,
310,
21502,
12168,
310,
278,
23876,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
14968,
742,
1134,
29922,
524,
29892,
4381,
29922,
29896,
29892,
1371,
2433,
5323,
2827,
1904,
7353,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
369,
15828,
742,
1134,
29922,
524,
29892,
4381,
29922,
29896,
29892,
1371,
2433,
6565,
15828,
2984,
7353,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
7620,
29918,
277,
742,
1134,
29922,
524,
29892,
4381,
29922,
29896,
29900,
29900,
29900,
29892,
29871,
13,
462,
4706,
1371,
2433,
11371,
3651,
1432,
4078,
29918,
277,
24372,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
5060,
487,
742,
1134,
29922,
524,
29892,
4381,
29922,
29900,
29892,
29871,
13,
462,
4706,
1371,
2433,
1762,
17749,
4867,
29892,
304,
3013,
6694,
470,
17983,
1495,
29871,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
7620,
29918,
1445,
742,
1134,
29922,
710,
29892,
2322,
2433,
10736,
15753,
742,
29871,
13,
462,
4706,
1371,
2433,
11371,
934,
1024,
313,
14043,
367,
10410,
411,
916,
1970,
29889,
4128,
29897,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
2616,
13364,
742,
1134,
29922,
710,
29892,
2322,
2433,
10736,
15753,
742,
29871,
13,
462,
4706,
1371,
2433,
12521,
13364,
29889,
2799,
582,
1953,
304,
1303,
1269,
1034,
13364,
526,
2183,
297,
3667,
29879,
29889,
2272,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
593,
459,
1199,
742,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29900,
29892,
1371,
2433,
4557,
310,
23820,
1495,
1678,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
4990,
742,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29892,
29871,
13,
462,
4706,
1371,
2433,
3644,
26952,
29892,
1596,
2582,
1432,
2479,
21502,
12168,
1495,
268,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
29876,
29277,
742,
1134,
29922,
524,
29892,
2322,
29922,
29906,
29892,
29871,
13,
462,
4706,
1371,
2433,
4557,
310,
20619,
15359,
363,
278,
27262,
3564,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
10892,
29918,
1761,
3788,
489,
1761,
742,
302,
5085,
2433,
29974,
742,
29871,
13,
462,
4706,
1371,
2433,
1293,
310,
7934,
10340,
639,
7546,
742,
4381,
29922,
29896,
29900,
29900,
29897,
29871,
13,
462,
4706,
396,
3644,
871,
697,
1353,
29892,
1021,
1353,
310,
10340,
639,
13148,
29991,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
10492,
742,
1134,
29922,
7411,
29892,
4381,
29922,
29900,
29889,
29900,
29900,
29945,
29892,
1371,
2433,
29931,
799,
1076,
6554,
1495,
13,
268,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
29894,
542,
370,
352,
653,
29918,
2311,
742,
1134,
29922,
524,
29892,
4381,
29922,
29896,
29900,
29900,
29900,
29900,
29892,
1371,
2433,
29963,
542,
370,
352,
653,
2159,
1495,
13,
268,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
2312,
742,
1134,
29922,
7411,
29892,
4381,
29922,
29896,
29889,
29900,
29892,
1371,
2433,
9170,
436,
7251,
546,
29889,
1495,
13,
268,
13,
1678,
736,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
13,
13,
1753,
679,
29918,
2616,
13364,
29898,
2616,
13364,
29918,
978,
29892,
29876,
9303,
1125,
13,
29871,
13,
1678,
12580,
353,
6213,
13,
1678,
8600,
353,
6213,
13,
268,
13,
1678,
12183,
29889,
3888,
29898,
29888,
29908,
2577,
1259,
1034,
13364,
322,
8297,
29879,
310,
426,
2616,
13364,
29918,
978,
27195,
13,
268,
13,
1678,
565,
29898,
2616,
13364,
29918,
978,
1275,
525,
29943,
11206,
29979,
29911,
29374,
29871,
13,
308,
13,
4706,
10701,
353,
1051,
29898,
23945,
280,
29889,
1359,
29898,
3150,
29898,
376,
1272,
29914,
2176,
29918,
771,
17113,
359,
29943,
11206,
29979,
29911,
29889,
29886,
6321,
613,
376,
6050,
29908,
1723,
1723,
1839,
1307,
1529,
29903,
29918,
23129,
29941,
29924,
11287,
13,
308,
13,
4706,
4608,
3950,
353,
3917,
12877,
3950,
29898,
3317,
29918,
2176,
29922,
29900,
29889,
29929,
29945,
29892,
1375,
29918,
2176,
29922,
29906,
29892,
4236,
29918,
22100,
29922,
29876,
9303,
29892,
5040,
29918,
9303,
2433,
996,
1674,
1495,
308,
13,
13,
4706,
12580,
353,
4608,
3950,
29889,
9202,
29918,
9067,
29898,
3225,
29879,
29897,
13,
308,
13,
4706,
8600,
353,
4608,
3950,
29889,
657,
29918,
14394,
29918,
7039,
580,
1678,
13,
268,
13,
4706,
8297,
29879,
353,
7442,
29889,
1359,
703,
1272,
29914,
1590,
5779,
29918,
29943,
11206,
29979,
29911,
29918,
29906,
29945,
29953,
29918,
29931,
1254,
29924,
29889,
29876,
2272,
1159,
13,
13,
1678,
565,
29898,
2616,
13364,
29918,
978,
1275,
525,
10736,
15753,
29374,
13,
308,
13,
4706,
848,
353,
1303,
29918,
7638,
877,
1469,
29914,
10736,
15753,
29899,
1256,
29899,
726,
29889,
7638,
742,
1059,
29918,
12313,
29918,
9012,
29922,
8824,
29897,
13,
308,
13,
4706,
10701,
353,
848,
29961,
1839,
2813,
1220,
29918,
726,
2033,
1822,
5975,
29889,
690,
14443,
6278,
29896,
467,
25027,
391,
580,
13,
308,
13,
4706,
4608,
3950,
353,
3917,
12877,
3950,
29898,
3317,
29918,
2176,
29922,
29900,
29889,
29929,
29945,
29892,
1375,
29918,
2176,
29922,
29906,
29892,
4236,
29918,
22100,
29922,
29876,
9303,
29892,
5040,
29918,
9303,
2433,
996,
1674,
1495,
13,
308,
13,
4706,
12580,
353,
4608,
3950,
29889,
9202,
29918,
9067,
29898,
3225,
29879,
29897,
13,
308,
13,
4706,
8600,
353,
4608,
3950,
29889,
657,
29918,
14394,
29918,
7039,
580,
13,
308,
13,
4706,
8297,
29879,
353,
7442,
29889,
1359,
703,
1272,
29914,
1590,
5779,
29918,
10736,
15753,
29918,
29945,
29896,
29906,
29889,
29876,
2272,
1159,
13,
308,
13,
268,
13,
1678,
12183,
29889,
3888,
29898,
29888,
29908,
12521,
13364,
322,
8297,
29879,
7625,
1159,
13,
1678,
736,
10701,
29892,
12580,
29892,
27126,
29892,
8297,
29879,
13,
13,
308,
13,
1753,
2479,
29918,
3332,
1199,
29898,
430,
29874,
29918,
5344,
29892,
8600,
29892,
694,
29918,
3332,
29918,
9303,
1125,
13,
1678,
363,
11261,
29918,
13140,
29892,
11261,
297,
26985,
29898,
430,
29874,
29918,
5344,
1125,
13,
4706,
1596,
4852,
7031,
293,
1273,
29881,
6160,
1273,
313,
13010,
29918,
13140,
876,
13,
4706,
1596,
4852,
11393,
7122,
4197,
27126,
29961,
29875,
29962,
363,
474,
297,
11261,
29889,
5085,
441,
580,
7503,
29899,
1217,
29918,
3332,
29918,
9303,
448,
29871,
29896,
13018,
29896,
5262,
876,
13,
13,
13,
1753,
2446,
29918,
16175,
29898,
13140,
29918,
8111,
29892,
2248,
29918,
16175,
29892,
16175,
29918,
2311,
1125,
13,
1678,
736,
22645,
29918,
8111,
29961,
2248,
29918,
16175,
29930,
16175,
29918,
2311,
5919,
2248,
29918,
16175,
29930,
16175,
29918,
2311,
29974,
16175,
29918,
2311,
4638,
13,
268,
2
] |
migrations/versions/5ae213c6353_.py | eugeneandrienko/PyArtistsGallery | 0 | 193247 | """empty message
Revision ID: 5ae213c6353
Revises: 3c73f5517a2
Create Date: 2015-07-01 16:08:50.298141
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '3c73f5517a2'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.drop_index('ix_pictures_path_to_image')
op.drop_index('ix_pictures_path_to_thumbnail')
op.drop_index('ix_pictures_name')
op.drop_index('ix_pictures_description')
op.drop_index('ix_pictures_upload_date')
op.drop_index('ix_pictures_size')
with op.batch_alter_table(
'pictures',
reflect_args=[sa.Column(
'description',
sa.VARCHAR())]
) as batch_op:
batch_op.alter_column('description',
existing_type=sa.VARCHAR(),
nullable=True)
op.create_index(
op.f('ix_pictures_path_to_image'),
'pictures', ['path_to_image'], unique=False)
op.create_index(
op.f('ix_pictures_path_to_thumbnail'),
'pictures', ['path_to_thumbnail'], unique=False)
op.create_index(op.f('ix_pictures_name'), 'pictures', ['name'],
unique=False)
op.create_index(op.f('ix_pictures_description'), 'pictures', ['description'],
unique=False)
op.create_index(
op.f('ix_pictures_upload_date'),
'pictures',
['upload_date'],
unique=False)
op.create_index(op.f('ix_pictures_size'), 'pictures', ['size'], unique=False)
def downgrade():
op.drop_index('ix_pictures_path_to_image')
op.drop_index('ix_pictures_path_to_thumbnail')
op.drop_index('ix_pictures_name')
op.drop_index('ix_pictures_description')
op.drop_index('ix_pictures_upload_date')
op.drop_index('ix_pictures_size')
with op.batch_alter_table(
'pictures',
reflect_args=[sa.Column(
'description',
sa.VARCHAR())]
) as batch_op:
batch_op.alter_column('description',
existing_type=sa.VARCHAR(),
nullable=False)
| [
1,
9995,
6310,
2643,
13,
13,
1123,
4924,
3553,
29901,
29871,
29945,
3660,
29906,
29896,
29941,
29883,
29953,
29941,
29945,
29941,
13,
1123,
1730,
267,
29901,
29871,
29941,
29883,
29955,
29941,
29888,
29945,
29945,
29896,
29955,
29874,
29906,
13,
4391,
4712,
29901,
29871,
29906,
29900,
29896,
29945,
29899,
29900,
29955,
29899,
29900,
29896,
29871,
29896,
29953,
29901,
29900,
29947,
29901,
29945,
29900,
29889,
29906,
29929,
29947,
29896,
29946,
29896,
13,
13,
15945,
29908,
13,
13,
29937,
26554,
2893,
14903,
29892,
1304,
491,
319,
2409,
29890,
293,
29889,
13,
276,
4924,
353,
12801,
10818,
16299,
13,
3204,
29918,
276,
4924,
353,
525,
29941,
29883,
29955,
29941,
29888,
29945,
29945,
29896,
29955,
29874,
29906,
29915,
13,
13,
3166,
20712,
29890,
293,
1053,
1015,
13,
5215,
4576,
284,
305,
6764,
408,
872,
13,
13,
13,
1753,
14955,
7295,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
2084,
29918,
517,
29918,
3027,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
2084,
29918,
517,
29918,
386,
21145,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
978,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
8216,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
9009,
29918,
1256,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
2311,
1495,
13,
1678,
411,
1015,
29889,
16175,
29918,
13794,
29918,
2371,
29898,
13,
9651,
525,
29886,
10373,
742,
13,
9651,
9432,
29918,
5085,
11759,
4977,
29889,
4409,
29898,
13,
18884,
525,
8216,
742,
13,
18884,
872,
29889,
29963,
15364,
3101,
29962,
13,
1678,
1723,
408,
9853,
29918,
459,
29901,
13,
4706,
9853,
29918,
459,
29889,
13794,
29918,
4914,
877,
8216,
742,
13,
462,
795,
5923,
29918,
1853,
29922,
4977,
29889,
29963,
15364,
3285,
13,
462,
795,
1870,
519,
29922,
5574,
29897,
13,
1678,
1015,
29889,
3258,
29918,
2248,
29898,
13,
4706,
1015,
29889,
29888,
877,
861,
29918,
29886,
10373,
29918,
2084,
29918,
517,
29918,
3027,
5477,
13,
4706,
525,
29886,
10373,
742,
6024,
2084,
29918,
517,
29918,
3027,
7464,
5412,
29922,
8824,
29897,
13,
1678,
1015,
29889,
3258,
29918,
2248,
29898,
13,
4706,
1015,
29889,
29888,
877,
861,
29918,
29886,
10373,
29918,
2084,
29918,
517,
29918,
386,
21145,
5477,
13,
4706,
525,
29886,
10373,
742,
6024,
2084,
29918,
517,
29918,
386,
21145,
7464,
5412,
29922,
8824,
29897,
13,
1678,
1015,
29889,
3258,
29918,
2248,
29898,
459,
29889,
29888,
877,
861,
29918,
29886,
10373,
29918,
978,
5477,
525,
29886,
10373,
742,
6024,
978,
7464,
13,
462,
1678,
5412,
29922,
8824,
29897,
13,
1678,
1015,
29889,
3258,
29918,
2248,
29898,
459,
29889,
29888,
877,
861,
29918,
29886,
10373,
29918,
8216,
5477,
525,
29886,
10373,
742,
6024,
8216,
7464,
13,
462,
1678,
5412,
29922,
8824,
29897,
13,
1678,
1015,
29889,
3258,
29918,
2248,
29898,
13,
4706,
1015,
29889,
29888,
877,
861,
29918,
29886,
10373,
29918,
9009,
29918,
1256,
5477,
13,
4706,
525,
29886,
10373,
742,
13,
4706,
6024,
9009,
29918,
1256,
7464,
13,
4706,
5412,
29922,
8824,
29897,
13,
1678,
1015,
29889,
3258,
29918,
2248,
29898,
459,
29889,
29888,
877,
861,
29918,
29886,
10373,
29918,
2311,
5477,
525,
29886,
10373,
742,
6024,
2311,
7464,
5412,
29922,
8824,
29897,
13,
13,
13,
1753,
1623,
8228,
7295,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
2084,
29918,
517,
29918,
3027,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
2084,
29918,
517,
29918,
386,
21145,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
978,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
8216,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
9009,
29918,
1256,
1495,
13,
1678,
1015,
29889,
8865,
29918,
2248,
877,
861,
29918,
29886,
10373,
29918,
2311,
1495,
13,
1678,
411,
1015,
29889,
16175,
29918,
13794,
29918,
2371,
29898,
13,
9651,
525,
29886,
10373,
742,
13,
9651,
9432,
29918,
5085,
11759,
4977,
29889,
4409,
29898,
13,
18884,
525,
8216,
742,
13,
18884,
872,
29889,
29963,
15364,
3101,
29962,
13,
1678,
1723,
408,
9853,
29918,
459,
29901,
13,
4706,
9853,
29918,
459,
29889,
13794,
29918,
4914,
877,
8216,
742,
13,
462,
795,
5923,
29918,
1853,
29922,
4977,
29889,
29963,
15364,
3285,
13,
462,
795,
1870,
519,
29922,
8824,
29897,
13,
2
] |
zink/templatetags/markdownify.py | jw/zink | 2 | 195206 | <reponame>jw/zink
import logging
from django import template
import mistune
from pygments import highlight
from pygments.formatters import html
from pygments.lexers import get_lexer_by_name, guess_lexer
from pygments.util import ClassNotFound
logger = logging.getLogger(__name__)
register = template.Library()
class HighlightRenderer(mistune.Renderer):
def block_code(self, code, lang):
if not lang:
first_line, _, code = code.partition('\n')
name = first_line.replace(":", "")
try:
lexer = get_lexer_by_name(name, stripall=True)
formatter = html.HtmlFormatter()
return highlight(code, lexer, formatter)
except ClassNotFound as e:
return f'<pre><em>{e}</em><code>{mistune.escape(code)}</code></pre>'
lexer = get_lexer_by_name(lang, stripall=True)
formatter = html.HtmlFormatter()
return highlight(code, lexer, formatter)
@register.filter
def markdown(value):
markdown = mistune.Markdown(renderer=HighlightRenderer())
return markdown(value)
| [
1,
529,
276,
1112,
420,
29958,
29926,
29893,
29914,
29920,
682,
13,
5215,
12183,
13,
13,
3166,
9557,
1053,
4472,
13,
5215,
5862,
1540,
13,
3166,
19484,
1860,
1053,
12141,
13,
3166,
19484,
1860,
29889,
4830,
2153,
1053,
3472,
13,
3166,
19484,
1860,
29889,
2506,
414,
1053,
679,
29918,
2506,
261,
29918,
1609,
29918,
978,
29892,
4140,
29918,
2506,
261,
13,
3166,
19484,
1860,
29889,
4422,
1053,
4134,
17413,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
9573,
353,
4472,
29889,
12284,
580,
13,
13,
13,
1990,
5057,
4366,
21323,
29898,
29885,
391,
1540,
29889,
21323,
1125,
13,
1678,
822,
2908,
29918,
401,
29898,
1311,
29892,
775,
29892,
6361,
1125,
13,
4706,
565,
451,
6361,
29901,
13,
9651,
937,
29918,
1220,
29892,
17117,
775,
353,
775,
29889,
16707,
28909,
29876,
1495,
13,
9651,
1024,
353,
937,
29918,
1220,
29889,
6506,
703,
29901,
613,
20569,
13,
9651,
1018,
29901,
13,
18884,
19566,
261,
353,
679,
29918,
2506,
261,
29918,
1609,
29918,
978,
29898,
978,
29892,
17820,
497,
29922,
5574,
29897,
13,
18884,
883,
2620,
353,
3472,
29889,
10922,
18522,
580,
13,
18884,
736,
12141,
29898,
401,
29892,
19566,
261,
29892,
883,
2620,
29897,
13,
9651,
5174,
4134,
17413,
408,
321,
29901,
13,
18884,
736,
285,
29915,
29966,
1457,
5299,
331,
26208,
29872,
16040,
331,
5299,
401,
26208,
29885,
391,
1540,
29889,
21587,
29898,
401,
2915,
829,
401,
2565,
1457,
16299,
13,
4706,
19566,
261,
353,
679,
29918,
2506,
261,
29918,
1609,
29918,
978,
29898,
3893,
29892,
17820,
497,
29922,
5574,
29897,
13,
4706,
883,
2620,
353,
3472,
29889,
10922,
18522,
580,
13,
4706,
736,
12141,
29898,
401,
29892,
19566,
261,
29892,
883,
2620,
29897,
13,
13,
13,
29992,
9573,
29889,
4572,
13,
1753,
2791,
3204,
29898,
1767,
1125,
13,
1678,
2791,
3204,
353,
5862,
1540,
29889,
9802,
3204,
29898,
9482,
261,
29922,
16382,
4366,
21323,
3101,
13,
1678,
736,
2791,
3204,
29898,
1767,
29897,
13,
2
] |
build/lib/tnetwork/DCD/analytics/dynamic_partition.py | Yquetzal/tnetwork | 4 | 87368 | import tnetwork as tn
import sklearn
import sklearn.metrics
import scipy
import statistics
import networkx as nx
from tnetwork.DCD.analytics.onmi import onmi
import numpy as np
__all__ = ["longitudinal_similarity", "consecutive_sn_similarity", "similarity_at_each_step", "entropy_by_node","nb_node_change","quality_at_each_step","SM_N","SM_P","SM_L"]
def longitudinal_similarity(dynamicCommunityReference:tn.DynCommunitiesSN, dynamicCommunityObserved:tn.DynCommunitiesSN, score=None,convert_coms_sklearn_format=True):
"""
Longitudinal similarity
The longitudinal similarity between two dynamic clusters is computed by considering each couple (node,time) as an element belong to a cluster, a cluster containing therefore nodes in differnt times
It takes into account the fact that the reference might by incomplete by removing from the partition to evaluate all (node,time) not present in the reference.
:param dynamicCommunityReference: the dynamic partition used as reference (ground truth)
:param dynamicCommunityObserved: the dynamic partition to evaluate (result of an algorithm)
:param score: community comparison score, by default the adjsted NMI. (sklearn)
:param convert_coms_sklearn_format: if the score expect in input clusters represented as in sklearn, True. if False, score will receive in input lists of sets of nodes
:return: score
"""
if score==None:
score=lambda x,y : sklearn.metrics.adjusted_mutual_info_score(x,y,average_method="arithmetic")
affilReference=[]
affilToEvaluate=[]
if convert_coms_sklearn_format:
comsToEvaluate = dynamicCommunityObserved.snapshot_affiliations()
#for each step
for t,affils in dynamicCommunityReference.snapshot_affiliations().items():
#for each node
for n,comId in affils.items():
affilReference.append(str(list(comId)[0]))
if n in comsToEvaluate[t]:
affilToEvaluate.append(str(list(comsToEvaluate[t][n])[0]))
else:
print("node not in partition to evaluate: ",str(n)," ",str(t))
affilToEvaluate.append("-1")
else:
affilReference={}
affilToEvaluate={}
for t,coms in dynamicCommunityReference.snapshot_communities().items():
all_nodes = set()
for id,nodes in coms.items():
node_sn = {(n,t) for n in nodes}
all_nodes.update(node_sn)
affilReference.setdefault(id,set()).update(node_sn)
for id,nodes in dynamicCommunityObserved.snapshot_communities(t).items():
node_sn = {(n,t) for n in nodes}
affilToEvaluate.setdefault(id,set()).update(node_sn & all_nodes)
affilReference = list(affilReference.values())
affilToEvaluate = list(affilToEvaluate.values())
return score(affilReference,affilToEvaluate)
def consecutive_sn_similarity(dynamicCommunity:tn.DynCommunitiesSN,score=None):
"""
Similarity between partitions in consecutive snapshots.
Compute the average of a similarity score between all pair of successive partitions
:param dynamicCommunity: the dynamic partition to evaluate
:param score: the score to use for computing the similarity between each pair of snapshots. default: Overlapping NMI
:return: pair (list of scores, list of partition sizes (avg both partitions))
"""
if score==None:
score=onmi #We use onmi because the number of labels can be different
scores=[]
sizes=[]
#for each step
com_snapshots = list(dynamicCommunity.snapshot_communities().values())
#print(com_snapshots)
for i in range(len(com_snapshots)-1):
partition_before = list(com_snapshots[i].values())
partition_after = list(com_snapshots[i+1].values())
elts_before = sum([len(x) for x in partition_before])
elts_after = sum([len(x) for x in partition_after])
scores.append(score(partition_before,partition_after))
sizes.append((elts_after+elts_before)/2)
return scores,sizes
def similarity_at_each_step(dynamicCommunityReference:tn.DynCommunitiesSN, dynamicCommunityObserved:tn.DynCommunitiesSN, score=None):
"""
Compute similarity at each step
It takes into account the fact that the reference might by incomplete. (remove from the observations all nodes/time not present in the reference)
:param dynamicCommunityReference: the dynamic partition to use as reference
:param dynamicCommunityObserved: the dynamic partition to evaluate
:param score: score to use, default adjusted NMI
:return: pair (list of scores, list of sizes)
"""
if score==None:
score=sklearn.metrics.adjusted_mutual_info_score
scores=[]
sizes=[]
comsToEvaluate = dynamicCommunityObserved.snapshot_affiliations()
#for each step
for t,affils in dynamicCommunityReference.snapshot_affiliations().items():
affilReference = []
affilToEvaluate = []
#for each node
for n,comId in affils.items():
affilReference.append(list(comId)[0])
if n in comsToEvaluate[t]:
affilToEvaluate.append(list(comsToEvaluate[t][n])[0])
else:
affilToEvaluate.append("-1")
scores.append(score(affilReference,affilToEvaluate))
sizes.append(len(affilReference))
return scores,sizes
def quality_at_each_step(dynamicCommunities:tn.DynCommunitiesSN,dynamicGraph:tn.DynGraphSN, score=None):
"""
Compute a community quality at each step
:param dynamicCommunities: dynamic communities as SN
:param score: score to use, default: Modularity
:return: pair(scores, sizes)
"""
if score==None:
score=nx.algorithms.community.modularity
scores=[]
sizes=[]
#for each step
for t,affils in dynamicCommunities.snapshot_communities().items():
g = dynamicGraph.snapshots(t)
partition = list(affils.values())
try:
sc = score(g,partition)
scores.append(sc)
except:
#print("problem to compute with partition: ",partition," nodes",g.nodes())
scores.append(None)
sizes.append(len(g.nodes))
return scores,sizes
def nb_node_change(dyn_com:tn.DynCommunitiesSN):
"""
Compute the total number of node changes
Measure of smoothness at the level of nodes, adapated to evaluate glitches
:param dyn_com: The dynamic community
:return: total number of node changes
"""
coms_by_nodes={}
for t,coms in dyn_com.snapshot_communities().items():
#print(t,coms)
for com,nodes in coms.items():
#print(n,com)
for n in nodes:
coms_by_nodes.setdefault(n,[com])
if coms_by_nodes[n][-1]!=com:
coms_by_nodes[n].append(com)
nb_changes = 0
for n in coms_by_nodes:
#print(n,coms_by_nodes[n])
nb_changes+=len(coms_by_nodes[n])-1
return nb_changes
# def entropy(dyn_com,sn_duration=1):
# """
# Compute the entropy.
#
# Consider each community label as a data value. The probability of observing this data value is the frequency of a random node to belong to the corresponding community.
#
# Interpretation: The less communities, the lower the score. The less homogeneous the community sizes, the lower the score.
#
# This score does not take into account the order of the community changes.
#
# Be careful, convert SN graph into IG.
#
#
# :param dyn_com: dynamic community to evaluate, can be SN or IG
# :param sn_duration: if graph is SN, used to
# :return:
# """
# dc2 = dyn_com
# fractions = []
# if isinstance(dc2,tn.DynCommunitiesSN):
# dc2 = dc2.to_DynCommunitiesIG(sn_duration=sn_duration)
# for com,nodes in dc2.communities().items():
# this_com_cumulated = 0
# for n,times in nodes.items():
# this_com_cumulated += times.duration()
# fractions.append(this_com_cumulated)
# sum_durations = sum(fractions)
# fractions = [x/sum_durations for x in fractions]
#
# return scipy.stats.entropy(fractions)
def entropy_by_node(dyn_com,sn_duration=1,fast_on_sn=False):
"""
Compute the entropy by node.
For each node, compute the shannon entropy of its labels. (always same label=min entropy, every step a new label=max entropy)
return the average value for all nodes
:param dyn_com: dynamic community to evaluate, can be SN or IG
:param sn_duration: if graph is SN, used to discretize
:return:
"""
dc2 = dyn_com
if not fast_on_sn:
if isinstance(dc2,tn.DynCommunitiesSN):
if sn_duration==1:
dc2 = dc2._to_DynCommunitiesIG_fast()
else:
dc2 = dc2.to_DynCommunitiesIG(sn_duration=sn_duration)
all_entropies = []
for n,coms in dc2.affiliations().items():
fractions = []
for com,times in coms.items():
fractions.append(times.duration())
sum_durations = sum(fractions)
fractions = [x/sum_durations for x in fractions]
ent_this_node = scipy.stats.entropy(fractions)
all_entropies.append(ent_this_node)
return statistics.mean(all_entropies)
def SM_N(dyn_com):
"""
Smoothness for nodes
Inverse of the number of node changes
:param dyn_com: dynamic partition
:return: SM-N score
"""
return 1/nb_node_change(dyn_com)
def SM_P(dyn_com):
"""
Smoothness for partitions
Averge of the NMI between successive snapshots
:param dyn_com: dynamic partition
:return: SM-P score
"""
consecutive_NMIs = consecutive_sn_similarity(dyn_com)
return np.average(consecutive_NMIs[0], weights=consecutive_NMIs[1])
def SM_L(dyn_com,sn_duration=1):
"""
Smoothness for labels
Inverse of the entropy by node
:param dyn_com: dyanamic partition
:param sn_duration: used to indicate the duration of snapshots if provided graph is a snapshot graph
:return: SM-L score
"""
return 1/entropy_by_node(dyn_com,sn_duration=sn_duration)
| [
1,
1053,
260,
11618,
408,
260,
29876,
13,
5215,
2071,
19668,
13,
5215,
2071,
19668,
29889,
2527,
10817,
13,
5215,
4560,
2272,
13,
5215,
13964,
13,
5215,
3564,
29916,
408,
302,
29916,
13,
3166,
260,
11618,
29889,
29928,
6530,
29889,
7054,
22026,
29889,
265,
2460,
1053,
373,
2460,
13,
5215,
12655,
408,
7442,
13,
13,
1649,
497,
1649,
353,
6796,
5426,
11267,
979,
29918,
29764,
537,
613,
376,
535,
3471,
11067,
29918,
16586,
29918,
29764,
537,
613,
376,
29764,
537,
29918,
271,
29918,
4204,
29918,
10568,
613,
376,
296,
14441,
29918,
1609,
29918,
3177,
3284,
9877,
29918,
3177,
29918,
3167,
3284,
29567,
29918,
271,
29918,
4204,
29918,
10568,
3284,
17061,
29918,
29940,
3284,
17061,
29918,
29925,
3284,
17061,
29918,
29931,
3108,
13,
13,
1753,
25579,
979,
29918,
29764,
537,
29898,
16626,
5261,
6997,
7422,
29901,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
29892,
7343,
5261,
6997,
6039,
643,
1490,
29901,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
29892,
8158,
29922,
8516,
29892,
13441,
29918,
510,
29879,
29918,
808,
19668,
29918,
4830,
29922,
5574,
1125,
13,
1678,
9995,
13,
1678,
6242,
11267,
979,
29501,
13,
13,
1678,
450,
25579,
979,
29501,
1546,
1023,
7343,
24554,
338,
15712,
491,
13858,
1269,
7303,
313,
3177,
29892,
2230,
29897,
408,
385,
1543,
6852,
304,
263,
9867,
29892,
263,
9867,
6943,
5480,
7573,
297,
1163,
593,
3064,
13,
1678,
739,
4893,
964,
3633,
278,
2114,
393,
278,
3407,
1795,
491,
28907,
491,
11077,
515,
278,
8877,
304,
14707,
599,
313,
3177,
29892,
2230,
29897,
451,
2198,
297,
278,
3407,
29889,
13,
13,
1678,
584,
3207,
7343,
5261,
6997,
7422,
29901,
278,
7343,
8877,
1304,
408,
3407,
313,
2057,
8760,
29897,
13,
1678,
584,
3207,
7343,
5261,
6997,
6039,
643,
1490,
29901,
278,
7343,
8877,
304,
14707,
313,
2914,
310,
385,
5687,
29897,
13,
1678,
584,
3207,
8158,
29901,
7881,
10230,
8158,
29892,
491,
2322,
278,
12109,
16470,
405,
10403,
29889,
313,
808,
19668,
29897,
13,
1678,
584,
3207,
3588,
29918,
510,
29879,
29918,
808,
19668,
29918,
4830,
29901,
565,
278,
8158,
2149,
297,
1881,
24554,
9875,
408,
297,
2071,
19668,
29892,
5852,
29889,
565,
7700,
29892,
8158,
674,
7150,
297,
1881,
8857,
310,
6166,
310,
7573,
13,
1678,
584,
2457,
29901,
8158,
13,
1678,
9995,
13,
13,
1678,
565,
8158,
1360,
8516,
29901,
13,
4706,
8158,
29922,
2892,
921,
29892,
29891,
584,
2071,
19668,
29889,
2527,
10817,
29889,
328,
5143,
287,
29918,
6149,
950,
29918,
3888,
29918,
13628,
29898,
29916,
29892,
29891,
29892,
12483,
482,
29918,
5696,
543,
279,
18542,
1159,
13,
13,
1678,
2756,
309,
7422,
29922,
2636,
13,
1678,
2756,
309,
1762,
29923,
4387,
403,
29922,
2636,
13,
13,
1678,
565,
3588,
29918,
510,
29879,
29918,
808,
19668,
29918,
4830,
29901,
13,
13,
4706,
419,
29879,
1762,
29923,
4387,
403,
353,
7343,
5261,
6997,
6039,
643,
1490,
29889,
29879,
14551,
29918,
3470,
2638,
800,
580,
13,
13,
4706,
396,
1454,
1269,
4331,
13,
4706,
363,
260,
29892,
3470,
2719,
297,
7343,
5261,
6997,
7422,
29889,
29879,
14551,
29918,
3470,
2638,
800,
2141,
7076,
7295,
13,
13,
13,
18884,
396,
1454,
1269,
2943,
13,
18884,
363,
302,
29892,
510,
1204,
297,
2756,
2719,
29889,
7076,
7295,
13,
462,
1678,
2756,
309,
7422,
29889,
4397,
29898,
710,
29898,
1761,
29898,
510,
1204,
9601,
29900,
12622,
13,
462,
1678,
565,
302,
297,
419,
29879,
1762,
29923,
4387,
403,
29961,
29873,
5387,
13,
462,
4706,
2756,
309,
1762,
29923,
4387,
403,
29889,
4397,
29898,
710,
29898,
1761,
29898,
510,
29879,
1762,
29923,
4387,
403,
29961,
29873,
3816,
29876,
2314,
29961,
29900,
12622,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
1596,
703,
3177,
451,
297,
8877,
304,
14707,
29901,
9162,
710,
29898,
29876,
511,
29908,
9162,
710,
29898,
29873,
876,
13,
462,
4706,
2756,
309,
1762,
29923,
4387,
403,
29889,
4397,
703,
29899,
29896,
1159,
13,
1678,
1683,
29901,
13,
13,
4706,
2756,
309,
7422,
3790,
29913,
13,
4706,
2756,
309,
1762,
29923,
4387,
403,
3790,
29913,
13,
4706,
363,
260,
29892,
510,
29879,
297,
7343,
5261,
6997,
7422,
29889,
29879,
14551,
29918,
2055,
348,
1907,
2141,
7076,
7295,
13,
9651,
599,
29918,
18010,
353,
731,
580,
13,
9651,
363,
1178,
29892,
18010,
297,
419,
29879,
29889,
7076,
7295,
13,
18884,
2943,
29918,
16586,
353,
426,
29898,
29876,
29892,
29873,
29897,
363,
302,
297,
7573,
29913,
13,
18884,
599,
29918,
18010,
29889,
5504,
29898,
3177,
29918,
16586,
29897,
13,
18884,
2756,
309,
7422,
29889,
842,
4381,
29898,
333,
29892,
842,
16655,
5504,
29898,
3177,
29918,
16586,
29897,
13,
13,
9651,
363,
1178,
29892,
18010,
297,
7343,
5261,
6997,
6039,
643,
1490,
29889,
29879,
14551,
29918,
2055,
348,
1907,
29898,
29873,
467,
7076,
7295,
13,
18884,
2943,
29918,
16586,
353,
426,
29898,
29876,
29892,
29873,
29897,
363,
302,
297,
7573,
29913,
13,
13,
18884,
2756,
309,
1762,
29923,
4387,
403,
29889,
842,
4381,
29898,
333,
29892,
842,
16655,
5504,
29898,
3177,
29918,
16586,
669,
599,
29918,
18010,
29897,
13,
13,
4706,
2756,
309,
7422,
353,
1051,
29898,
3470,
309,
7422,
29889,
5975,
3101,
13,
4706,
2756,
309,
1762,
29923,
4387,
403,
353,
1051,
29898,
3470,
309,
1762,
29923,
4387,
403,
29889,
5975,
3101,
13,
13,
13,
1678,
736,
8158,
29898,
3470,
309,
7422,
29892,
3470,
309,
1762,
29923,
4387,
403,
29897,
13,
13,
1753,
18942,
29918,
16586,
29918,
29764,
537,
29898,
16626,
5261,
6997,
29901,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
29892,
13628,
29922,
8516,
1125,
13,
1678,
9995,
13,
539,
13999,
537,
1546,
23629,
297,
18942,
15101,
845,
1862,
29889,
13,
13,
4706,
11796,
29872,
278,
6588,
310,
263,
29501,
8158,
1546,
599,
5101,
310,
2551,
573,
23629,
13,
13,
539,
584,
3207,
7343,
5261,
6997,
29901,
278,
7343,
8877,
304,
14707,
13,
539,
584,
3207,
8158,
29901,
278,
8158,
304,
671,
363,
20602,
278,
29501,
1546,
1269,
5101,
310,
15101,
845,
1862,
29889,
2322,
29901,
6811,
433,
3262,
405,
10403,
13,
539,
584,
2457,
29901,
5101,
313,
1761,
310,
19435,
29892,
1051,
310,
8877,
15786,
313,
485,
29887,
1716,
23629,
876,
13,
539,
9995,
13,
1678,
565,
8158,
1360,
8516,
29901,
13,
4706,
8158,
29922,
265,
2460,
396,
4806,
671,
373,
2460,
1363,
278,
1353,
310,
11073,
508,
367,
1422,
13,
1678,
19435,
29922,
2636,
13,
1678,
15786,
29922,
2636,
13,
13,
13,
1678,
396,
1454,
1269,
4331,
13,
1678,
419,
29918,
29879,
8971,
845,
1862,
353,
1051,
29898,
16626,
5261,
6997,
29889,
29879,
14551,
29918,
2055,
348,
1907,
2141,
5975,
3101,
13,
1678,
396,
2158,
29898,
510,
29918,
29879,
8971,
845,
1862,
29897,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
510,
29918,
29879,
8971,
845,
1862,
6817,
29896,
1125,
13,
13,
4706,
8877,
29918,
11083,
353,
1051,
29898,
510,
29918,
29879,
8971,
845,
1862,
29961,
29875,
1822,
5975,
3101,
13,
4706,
8877,
29918,
7045,
353,
1051,
29898,
510,
29918,
29879,
8971,
845,
1862,
29961,
29875,
29974,
29896,
1822,
5975,
3101,
13,
13,
4706,
560,
1372,
29918,
11083,
353,
2533,
4197,
2435,
29898,
29916,
29897,
363,
921,
297,
8877,
29918,
11083,
2314,
13,
4706,
560,
1372,
29918,
7045,
353,
2533,
4197,
2435,
29898,
29916,
29897,
363,
921,
297,
8877,
29918,
7045,
2314,
13,
13,
4706,
19435,
29889,
4397,
29898,
13628,
29898,
16707,
29918,
11083,
29892,
16707,
29918,
7045,
876,
13,
4706,
15786,
29889,
4397,
3552,
295,
1372,
29918,
7045,
29974,
295,
1372,
29918,
11083,
6802,
29906,
29897,
13,
13,
1678,
736,
19435,
29892,
29879,
7093,
13,
13,
13,
13,
1753,
29501,
29918,
271,
29918,
4204,
29918,
10568,
29898,
16626,
5261,
6997,
7422,
29901,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
29892,
7343,
5261,
6997,
6039,
643,
1490,
29901,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
29892,
8158,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
11796,
29872,
29501,
472,
1269,
4331,
13,
13,
1678,
739,
4893,
964,
3633,
278,
2114,
393,
278,
3407,
1795,
491,
28907,
29889,
313,
5992,
515,
278,
13917,
599,
7573,
29914,
2230,
451,
2198,
297,
278,
3407,
29897,
13,
13,
1678,
584,
3207,
7343,
5261,
6997,
7422,
29901,
278,
7343,
8877,
304,
671,
408,
3407,
13,
1678,
584,
3207,
7343,
5261,
6997,
6039,
643,
1490,
29901,
278,
7343,
8877,
304,
14707,
13,
1678,
584,
3207,
8158,
29901,
8158,
304,
671,
29892,
2322,
10365,
287,
405,
10403,
13,
1678,
584,
2457,
29901,
5101,
313,
1761,
310,
19435,
29892,
1051,
310,
15786,
29897,
13,
1678,
9995,
13,
13,
1678,
565,
8158,
1360,
8516,
29901,
13,
4706,
8158,
29922,
808,
19668,
29889,
2527,
10817,
29889,
328,
5143,
287,
29918,
6149,
950,
29918,
3888,
29918,
13628,
13,
1678,
19435,
29922,
2636,
13,
1678,
15786,
29922,
2636,
13,
13,
13,
1678,
419,
29879,
1762,
29923,
4387,
403,
353,
7343,
5261,
6997,
6039,
643,
1490,
29889,
29879,
14551,
29918,
3470,
2638,
800,
580,
13,
13,
1678,
396,
1454,
1269,
4331,
13,
1678,
363,
260,
29892,
3470,
2719,
297,
7343,
5261,
6997,
7422,
29889,
29879,
14551,
29918,
3470,
2638,
800,
2141,
7076,
7295,
13,
4706,
2756,
309,
7422,
353,
5159,
13,
4706,
2756,
309,
1762,
29923,
4387,
403,
353,
5159,
13,
13,
4706,
396,
1454,
1269,
2943,
13,
4706,
363,
302,
29892,
510,
1204,
297,
2756,
2719,
29889,
7076,
7295,
13,
9651,
2756,
309,
7422,
29889,
4397,
29898,
1761,
29898,
510,
1204,
9601,
29900,
2314,
13,
9651,
565,
302,
297,
419,
29879,
1762,
29923,
4387,
403,
29961,
29873,
5387,
13,
18884,
2756,
309,
1762,
29923,
4387,
403,
29889,
4397,
29898,
1761,
29898,
510,
29879,
1762,
29923,
4387,
403,
29961,
29873,
3816,
29876,
2314,
29961,
29900,
2314,
13,
9651,
1683,
29901,
13,
18884,
2756,
309,
1762,
29923,
4387,
403,
29889,
4397,
703,
29899,
29896,
1159,
13,
4706,
19435,
29889,
4397,
29898,
13628,
29898,
3470,
309,
7422,
29892,
3470,
309,
1762,
29923,
4387,
403,
876,
13,
4706,
15786,
29889,
4397,
29898,
2435,
29898,
3470,
309,
7422,
876,
13,
13,
1678,
736,
19435,
29892,
29879,
7093,
13,
13,
13,
13,
13,
1753,
11029,
29918,
271,
29918,
4204,
29918,
10568,
29898,
16626,
5261,
348,
1907,
29901,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
29892,
16626,
9527,
29901,
6277,
29889,
29928,
948,
9527,
19296,
29892,
8158,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
11796,
29872,
263,
7881,
11029,
472,
1269,
4331,
13,
13,
1678,
584,
3207,
7343,
5261,
348,
1907,
29901,
7343,
23507,
408,
21989,
13,
1678,
584,
3207,
8158,
29901,
8158,
304,
671,
29892,
2322,
29901,
3382,
1070,
537,
13,
1678,
584,
2457,
29901,
5101,
29898,
1557,
2361,
29892,
15786,
29897,
13,
1678,
9995,
13,
13,
1678,
565,
8158,
1360,
8516,
29901,
13,
4706,
8158,
29922,
23818,
29889,
9564,
12404,
29889,
23834,
29889,
1545,
1070,
537,
13,
1678,
19435,
29922,
2636,
13,
1678,
15786,
29922,
2636,
13,
13,
13,
1678,
396,
1454,
1269,
4331,
13,
1678,
363,
260,
29892,
3470,
2719,
297,
7343,
5261,
348,
1907,
29889,
29879,
14551,
29918,
2055,
348,
1907,
2141,
7076,
7295,
13,
4706,
330,
353,
7343,
9527,
29889,
29879,
8971,
845,
1862,
29898,
29873,
29897,
13,
4706,
8877,
353,
1051,
29898,
3470,
2719,
29889,
5975,
3101,
13,
4706,
1018,
29901,
13,
9651,
885,
353,
8158,
29898,
29887,
29892,
16707,
29897,
13,
9651,
19435,
29889,
4397,
29898,
1557,
29897,
13,
4706,
5174,
29901,
13,
9651,
396,
2158,
703,
17199,
304,
10272,
411,
8877,
29901,
9162,
16707,
1699,
7573,
613,
29887,
29889,
18010,
3101,
13,
9651,
19435,
29889,
4397,
29898,
8516,
29897,
13,
4706,
15786,
29889,
4397,
29898,
2435,
29898,
29887,
29889,
18010,
876,
13,
13,
1678,
736,
19435,
29892,
29879,
7093,
13,
13,
1753,
302,
29890,
29918,
3177,
29918,
3167,
29898,
29881,
948,
29918,
510,
29901,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
1125,
13,
1678,
9995,
13,
1678,
11796,
29872,
278,
3001,
1353,
310,
2943,
3620,
13,
13,
1678,
2191,
3745,
310,
10597,
2264,
472,
278,
3233,
310,
7573,
29892,
594,
481,
630,
304,
14707,
3144,
2335,
267,
13,
13,
1678,
584,
3207,
270,
948,
29918,
510,
29901,
450,
7343,
7881,
13,
1678,
584,
2457,
29901,
3001,
1353,
310,
2943,
3620,
13,
1678,
9995,
13,
1678,
419,
29879,
29918,
1609,
29918,
18010,
3790,
29913,
13,
1678,
363,
260,
29892,
510,
29879,
297,
270,
948,
29918,
510,
29889,
29879,
14551,
29918,
2055,
348,
1907,
2141,
7076,
7295,
13,
4706,
396,
2158,
29898,
29873,
29892,
510,
29879,
29897,
13,
4706,
363,
419,
29892,
18010,
297,
419,
29879,
29889,
7076,
7295,
13,
9651,
396,
2158,
29898,
29876,
29892,
510,
29897,
13,
9651,
363,
302,
297,
7573,
29901,
13,
18884,
419,
29879,
29918,
1609,
29918,
18010,
29889,
842,
4381,
29898,
29876,
17094,
510,
2314,
13,
18884,
565,
419,
29879,
29918,
1609,
29918,
18010,
29961,
29876,
3816,
29899,
29896,
29962,
19216,
510,
29901,
13,
462,
1678,
419,
29879,
29918,
1609,
29918,
18010,
29961,
29876,
1822,
4397,
29898,
510,
29897,
13,
1678,
302,
29890,
29918,
25990,
353,
29871,
29900,
13,
1678,
363,
302,
297,
419,
29879,
29918,
1609,
29918,
18010,
29901,
13,
4706,
396,
2158,
29898,
29876,
29892,
510,
29879,
29918,
1609,
29918,
18010,
29961,
29876,
2314,
13,
4706,
302,
29890,
29918,
25990,
23661,
2435,
29898,
510,
29879,
29918,
1609,
29918,
18010,
29961,
29876,
2314,
29899,
29896,
13,
1678,
736,
302,
29890,
29918,
25990,
13,
13,
13,
29937,
822,
24687,
29898,
29881,
948,
29918,
510,
29892,
16586,
29918,
19708,
29922,
29896,
1125,
13,
29937,
268,
9995,
13,
29937,
268,
11796,
29872,
278,
24687,
29889,
13,
29937,
13,
29937,
268,
10056,
1269,
7881,
3858,
408,
263,
848,
995,
29889,
450,
6976,
310,
5366,
1747,
445,
848,
995,
338,
278,
10868,
310,
263,
4036,
2943,
304,
6852,
304,
278,
6590,
7881,
29889,
13,
29937,
13,
29937,
268,
4124,
19819,
362,
29901,
450,
3109,
23507,
29892,
278,
5224,
278,
8158,
29889,
450,
3109,
3632,
23724,
278,
7881,
15786,
29892,
278,
5224,
278,
8158,
29889,
13,
29937,
13,
29937,
268,
910,
8158,
947,
451,
2125,
964,
3633,
278,
1797,
310,
278,
7881,
3620,
29889,
13,
29937,
13,
29937,
268,
1522,
16010,
29892,
3588,
21989,
3983,
964,
306,
29954,
29889,
13,
29937,
13,
29937,
13,
29937,
268,
584,
3207,
270,
948,
29918,
510,
29901,
7343,
7881,
304,
14707,
29892,
508,
367,
21989,
470,
306,
29954,
13,
29937,
268,
584,
3207,
5807,
29918,
19708,
29901,
565,
3983,
338,
21989,
29892,
1304,
304,
13,
29937,
268,
584,
2457,
29901,
13,
29937,
268,
9995,
13,
29937,
268,
270,
29883,
29906,
353,
270,
948,
29918,
510,
13,
29937,
268,
5227,
1953,
353,
5159,
13,
29937,
268,
565,
338,
8758,
29898,
13891,
29906,
29892,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
1125,
13,
29937,
308,
270,
29883,
29906,
353,
270,
29883,
29906,
29889,
517,
29918,
29928,
948,
5261,
348,
1907,
6259,
29898,
16586,
29918,
19708,
29922,
16586,
29918,
19708,
29897,
13,
29937,
268,
363,
419,
29892,
18010,
297,
270,
29883,
29906,
29889,
2055,
348,
1907,
2141,
7076,
7295,
13,
29937,
308,
445,
29918,
510,
29918,
29883,
398,
7964,
353,
29871,
29900,
13,
29937,
308,
363,
302,
29892,
3706,
297,
7573,
29889,
7076,
7295,
13,
29937,
632,
445,
29918,
510,
29918,
29883,
398,
7964,
4619,
3064,
29889,
19708,
580,
13,
29937,
308,
5227,
1953,
29889,
4397,
29898,
1366,
29918,
510,
29918,
29883,
398,
7964,
29897,
13,
29937,
268,
2533,
29918,
29881,
332,
800,
353,
2533,
29898,
20910,
1953,
29897,
13,
29937,
268,
5227,
1953,
353,
518,
29916,
29914,
2083,
29918,
29881,
332,
800,
363,
921,
297,
5227,
1953,
29962,
13,
29937,
13,
29937,
268,
736,
4560,
2272,
29889,
16202,
29889,
296,
14441,
29898,
20910,
1953,
29897,
13,
13,
1753,
24687,
29918,
1609,
29918,
3177,
29898,
29881,
948,
29918,
510,
29892,
16586,
29918,
19708,
29922,
29896,
29892,
11255,
29918,
265,
29918,
16586,
29922,
8824,
1125,
13,
1678,
9995,
13,
1678,
11796,
29872,
278,
24687,
491,
2943,
29889,
13,
13,
1678,
1152,
1269,
2943,
29892,
10272,
278,
528,
23453,
24687,
310,
967,
11073,
29889,
313,
21936,
1021,
3858,
29922,
1195,
24687,
29892,
1432,
4331,
263,
716,
3858,
29922,
3317,
24687,
29897,
13,
1678,
736,
278,
6588,
995,
363,
599,
7573,
13,
13,
13,
1678,
584,
3207,
270,
948,
29918,
510,
29901,
7343,
7881,
304,
14707,
29892,
508,
367,
21989,
470,
306,
29954,
13,
1678,
584,
3207,
5807,
29918,
19708,
29901,
565,
3983,
338,
21989,
29892,
1304,
304,
766,
4838,
675,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
270,
29883,
29906,
353,
270,
948,
29918,
510,
13,
13,
1678,
565,
451,
5172,
29918,
265,
29918,
16586,
29901,
13,
4706,
565,
338,
8758,
29898,
13891,
29906,
29892,
6277,
29889,
29928,
948,
5261,
348,
1907,
19296,
1125,
13,
9651,
565,
5807,
29918,
19708,
1360,
29896,
29901,
13,
18884,
270,
29883,
29906,
353,
270,
29883,
29906,
3032,
517,
29918,
29928,
948,
5261,
348,
1907,
6259,
29918,
11255,
580,
13,
9651,
1683,
29901,
13,
18884,
270,
29883,
29906,
353,
270,
29883,
29906,
29889,
517,
29918,
29928,
948,
5261,
348,
1907,
6259,
29898,
16586,
29918,
19708,
29922,
16586,
29918,
19708,
29897,
13,
1678,
599,
29918,
296,
1336,
583,
353,
5159,
13,
1678,
363,
302,
29892,
510,
29879,
297,
270,
29883,
29906,
29889,
3470,
2638,
800,
2141,
7076,
7295,
13,
4706,
5227,
1953,
353,
5159,
13,
13,
4706,
363,
419,
29892,
3706,
297,
419,
29879,
29889,
7076,
7295,
13,
9651,
5227,
1953,
29889,
4397,
29898,
3706,
29889,
19708,
3101,
13,
4706,
2533,
29918,
29881,
332,
800,
353,
2533,
29898,
20910,
1953,
29897,
13,
4706,
5227,
1953,
353,
518,
29916,
29914,
2083,
29918,
29881,
332,
800,
363,
921,
297,
5227,
1953,
29962,
13,
4706,
875,
29918,
1366,
29918,
3177,
353,
4560,
2272,
29889,
16202,
29889,
296,
14441,
29898,
20910,
1953,
29897,
13,
4706,
599,
29918,
296,
1336,
583,
29889,
4397,
29898,
296,
29918,
1366,
29918,
3177,
29897,
13,
13,
1678,
736,
13964,
29889,
12676,
29898,
497,
29918,
296,
1336,
583,
29897,
13,
13,
1753,
13766,
29918,
29940,
29898,
29881,
948,
29918,
510,
1125,
13,
1678,
9995,
13,
1678,
4116,
6983,
2264,
363,
7573,
13,
13,
1678,
512,
3901,
310,
278,
1353,
310,
2943,
3620,
13,
1678,
584,
3207,
270,
948,
29918,
510,
29901,
7343,
8877,
13,
1678,
584,
2457,
29901,
13766,
29899,
29940,
8158,
13,
1678,
9995,
13,
1678,
736,
29871,
29896,
29914,
9877,
29918,
3177,
29918,
3167,
29898,
29881,
948,
29918,
510,
29897,
13,
13,
1753,
13766,
29918,
29925,
29898,
29881,
948,
29918,
510,
1125,
13,
1678,
9995,
13,
1678,
4116,
6983,
2264,
363,
23629,
13,
13,
1678,
319,
369,
479,
310,
278,
405,
10403,
1546,
2551,
573,
15101,
845,
1862,
13,
1678,
584,
3207,
270,
948,
29918,
510,
29901,
7343,
8877,
13,
1678,
584,
2457,
29901,
13766,
29899,
29925,
8158,
13,
1678,
9995,
13,
1678,
18942,
29918,
29940,
29924,
3624,
353,
18942,
29918,
16586,
29918,
29764,
537,
29898,
29881,
948,
29918,
510,
29897,
13,
1678,
736,
7442,
29889,
12483,
482,
29898,
535,
3471,
11067,
29918,
29940,
29924,
3624,
29961,
29900,
1402,
18177,
29922,
535,
3471,
11067,
29918,
29940,
29924,
3624,
29961,
29896,
2314,
13,
13,
1753,
13766,
29918,
29931,
29898,
29881,
948,
29918,
510,
29892,
16586,
29918,
19708,
29922,
29896,
1125,
13,
1678,
9995,
13,
1678,
4116,
6983,
2264,
363,
11073,
13,
13,
1678,
512,
3901,
310,
278,
24687,
491,
2943,
13,
1678,
584,
3207,
270,
948,
29918,
510,
29901,
270,
10094,
314,
293,
8877,
13,
1678,
584,
3207,
5807,
29918,
19708,
29901,
1304,
304,
12266,
278,
14385,
310,
15101,
845,
1862,
565,
4944,
3983,
338,
263,
22395,
3983,
13,
1678,
584,
2457,
29901,
29871,
13766,
29899,
29931,
8158,
13,
1678,
9995,
13,
1678,
736,
29871,
29896,
29914,
296,
14441,
29918,
1609,
29918,
3177,
29898,
29881,
948,
29918,
510,
29892,
16586,
29918,
19708,
29922,
16586,
29918,
19708,
29897,
13,
2
] |
core/homography.py | Kaktusava/Vis-MVSNet | 131 | 153493 | import time
import os
import torch
from utils.utils import NanError
def depth2class(depth, depth_start, depth_interval, depth_num, inv=False):
if not inv:
return (depth - depth_start) / (depth_interval + 1e-9)
else:
depth_end = depth_start + (depth_num-1) * depth_interval
inv_interv = (1/(depth_start+1e-9) - 1/(depth_end+1e-9)) / (depth_num-1+1e-9)
return (1/(depth+1e-9) - 1/(depth_end+1e-9)) / (inv_interv + 1e-9)
def class2depth(class_, depth_start, depth_interval, depth_num, inv=False):
if not inv:
return depth_start + class_ * depth_interval
else:
depth_end = depth_start + (depth_num-1) * depth_interval
inv_interv = (1/(depth_start+1e-9) - 1/(depth_end+1e-9)) / (depth_num-1+1e-9)
return 1/( 1/(depth_end+1e-9) + class_ * inv_interv + 1e-9)
def get_homographies(left_cam, right_cam, depth_num, depth_start, depth_interval, inv=False):
# n244 n244 1 n111/n1hw n111/n1hw
with torch.no_grad():
n, _, sh, sw = depth_start.size()
n, _, ih, iw = depth_interval.size()
d = depth_num
# cameras (K, R, t)
R_left = left_cam[:, 0, :3, :3] # n33
R_right = right_cam[:, 0, :3, :3] # n33
t_left = left_cam[:, 0, :3, 3:4] # n31
t_right = right_cam[:, 0, :3, 3:4] # n31
K_left = left_cam[:, 1, :3, :3] # n33
K_right = right_cam[:, 1, :3, :3] # n33
# depth nd1111/ndhw11
if not inv:
depth = depth_start + depth_interval * torch.arange(0, depth_num, dtype=left_cam.dtype, device=left_cam.device).view(1,d,1,1)
else:
depth_end = depth_start + (depth_num-1) * depth_interval
inv_interv = (1/(depth_start+1e-9) - 1/(depth_end+1e-9)) / (depth_num-1+1e-9)
depth = 1/( 1/(depth_end+1e-9) + inv_interv * torch.arange(0, depth_num, dtype=left_cam.dtype, device=left_cam.device).view(1,d,1,1) )
depth = depth.unsqueeze(-1).unsqueeze(-1)
# preparation
K_left_inv = K_left.float().inverse().to(left_cam.dtype)
R_left_trans = R_left.transpose(-2, -1)
R_right_trans = R_right.transpose(-2, -1)
fronto_direction = R_left[:, 2:3, :3] # n13
c_left = -R_left_trans @ t_left
c_right = -R_right_trans @ t_right # n31
c_relative = c_right - c_left
# compute
temp_vec = (c_relative @ fronto_direction).view(n,1,1,1,3,3) # n11133
middle_mat0 = torch.eye(3, dtype=left_cam.dtype, device=left_cam.device).view(1,1,1,1,3,3) - temp_vec / (depth + 1e-9) # ndhw33
middle_mat1 = (R_left_trans @ K_left_inv).view(n,1,1,1,3,3) # n11133
middle_mat2 = (middle_mat0 @ middle_mat1) # ndhw33
homographies = K_right.view(n,1,1,1,3,3) @ R_right.view(n,1,1,1,3,3) @ middle_mat2 # ndhw33
if (homographies!=homographies).any():
raise NanError
return homographies
def get_pixel_grids(height, width):
x_coord = (torch.arange(width, dtype=torch.float32).cuda() + 0.5).repeat(height, 1)
y_coord = (torch.arange(height, dtype=torch.float32).cuda() + 0.5).repeat(width, 1).t()
ones = torch.ones_like(x_coord)
indices_grid = torch.stack([x_coord, y_coord, ones], dim=-1).unsqueeze(-1) # hw31
return indices_grid
def interpolate(image, coord): # nchw, nhw2 => nchw
with torch.no_grad():
warped_coord = coord.clone()
warped_coord[..., 0] /= (warped_coord.size()[2])
warped_coord[..., 1] /= (warped_coord.size()[1])
warped_coord = (warped_coord * 2 - 1).clamp(-1.1, 1.1)
warped = torch.nn.functional.grid_sample(image, warped_coord, mode='bilinear', padding_mode='zeros', align_corners=False)
if (warped != warped).any():
raise NanError
return warped
def homography_warping(input, H): # nchw, n33/nhw33 -> nchw
if len(H.size()) == 3: H = H.view(-1, 1, 1, 3, 3)
with torch.no_grad():
pixel_grids = get_pixel_grids(*input.size()[-2:]).unsqueeze(0) # 1hw31
warped_homo_coord = (H @ pixel_grids).squeeze(-1) # nhw3
warped_coord = warped_homo_coord[..., :2] / (warped_homo_coord[..., 2:3] + 1e-9) # nhw2
warped = interpolate(input, warped_coord)
return warped # nchw
| [
1,
1053,
931,
13,
5215,
2897,
13,
5215,
4842,
305,
13,
13,
3166,
3667,
29879,
29889,
13239,
1053,
25701,
2392,
13,
13,
13,
1753,
10809,
29906,
1990,
29898,
19488,
29892,
10809,
29918,
2962,
29892,
10809,
29918,
19207,
29892,
10809,
29918,
1949,
29892,
2437,
29922,
8824,
1125,
13,
1678,
565,
451,
2437,
29901,
13,
4706,
736,
313,
19488,
448,
10809,
29918,
2962,
29897,
847,
313,
19488,
29918,
19207,
718,
29871,
29896,
29872,
29899,
29929,
29897,
13,
1678,
1683,
29901,
13,
4706,
10809,
29918,
355,
353,
10809,
29918,
2962,
718,
313,
19488,
29918,
1949,
29899,
29896,
29897,
334,
10809,
29918,
19207,
13,
4706,
2437,
29918,
1639,
29894,
353,
313,
29896,
14571,
19488,
29918,
2962,
29974,
29896,
29872,
29899,
29929,
29897,
448,
29871,
29896,
14571,
19488,
29918,
355,
29974,
29896,
29872,
29899,
29929,
876,
847,
313,
19488,
29918,
1949,
29899,
29896,
29974,
29896,
29872,
29899,
29929,
29897,
13,
4706,
736,
313,
29896,
14571,
19488,
29974,
29896,
29872,
29899,
29929,
29897,
448,
29871,
29896,
14571,
19488,
29918,
355,
29974,
29896,
29872,
29899,
29929,
876,
847,
313,
11569,
29918,
1639,
29894,
718,
29871,
29896,
29872,
29899,
29929,
29897,
13,
13,
13,
1753,
770,
29906,
19488,
29898,
1990,
3383,
10809,
29918,
2962,
29892,
10809,
29918,
19207,
29892,
10809,
29918,
1949,
29892,
2437,
29922,
8824,
1125,
13,
1678,
565,
451,
2437,
29901,
13,
4706,
736,
10809,
29918,
2962,
718,
770,
29918,
334,
10809,
29918,
19207,
13,
1678,
1683,
29901,
13,
4706,
10809,
29918,
355,
353,
10809,
29918,
2962,
718,
313,
19488,
29918,
1949,
29899,
29896,
29897,
334,
10809,
29918,
19207,
13,
4706,
2437,
29918,
1639,
29894,
353,
313,
29896,
14571,
19488,
29918,
2962,
29974,
29896,
29872,
29899,
29929,
29897,
448,
29871,
29896,
14571,
19488,
29918,
355,
29974,
29896,
29872,
29899,
29929,
876,
847,
313,
19488,
29918,
1949,
29899,
29896,
29974,
29896,
29872,
29899,
29929,
29897,
13,
4706,
736,
29871,
29896,
14571,
29871,
29896,
14571,
19488,
29918,
355,
29974,
29896,
29872,
29899,
29929,
29897,
718,
770,
29918,
334,
2437,
29918,
1639,
29894,
718,
29871,
29896,
29872,
29899,
29929,
29897,
13,
13,
13,
1753,
679,
29918,
9706,
1946,
583,
29898,
1563,
29918,
11108,
29892,
1492,
29918,
11108,
29892,
10809,
29918,
1949,
29892,
10809,
29918,
2962,
29892,
10809,
29918,
19207,
29892,
2437,
29922,
8824,
1125,
13,
1678,
396,
18884,
302,
29906,
29946,
29946,
418,
302,
29906,
29946,
29946,
4706,
29896,
3986,
302,
29896,
29896,
29896,
29914,
29876,
29896,
26828,
1678,
302,
29896,
29896,
29896,
29914,
29876,
29896,
26828,
13,
1678,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
4706,
302,
29892,
17117,
528,
29892,
2381,
353,
10809,
29918,
2962,
29889,
2311,
580,
13,
4706,
302,
29892,
17117,
4686,
29892,
474,
29893,
353,
10809,
29918,
19207,
29889,
2311,
580,
13,
4706,
270,
353,
10809,
29918,
1949,
13,
13,
4706,
396,
3949,
18464,
313,
29968,
29892,
390,
29892,
260,
29897,
13,
4706,
390,
29918,
1563,
353,
2175,
29918,
11108,
7503,
29892,
29871,
29900,
29892,
584,
29941,
29892,
584,
29941,
29962,
29871,
396,
302,
29941,
29941,
13,
4706,
390,
29918,
1266,
353,
1492,
29918,
11108,
7503,
29892,
29871,
29900,
29892,
584,
29941,
29892,
584,
29941,
29962,
29871,
396,
302,
29941,
29941,
13,
4706,
260,
29918,
1563,
353,
2175,
29918,
11108,
7503,
29892,
29871,
29900,
29892,
584,
29941,
29892,
29871,
29941,
29901,
29946,
29962,
29871,
396,
302,
29941,
29896,
13,
4706,
260,
29918,
1266,
353,
1492,
29918,
11108,
7503,
29892,
29871,
29900,
29892,
584,
29941,
29892,
29871,
29941,
29901,
29946,
29962,
29871,
396,
302,
29941,
29896,
13,
4706,
476,
29918,
1563,
353,
2175,
29918,
11108,
7503,
29892,
29871,
29896,
29892,
584,
29941,
29892,
584,
29941,
29962,
29871,
396,
302,
29941,
29941,
13,
4706,
476,
29918,
1266,
353,
1492,
29918,
11108,
7503,
29892,
29871,
29896,
29892,
584,
29941,
29892,
584,
29941,
29962,
29871,
396,
302,
29941,
29941,
13,
13,
4706,
396,
10809,
29871,
299,
29896,
29896,
29896,
29896,
29914,
299,
26828,
29896,
29896,
13,
4706,
565,
451,
2437,
29901,
13,
9651,
10809,
353,
10809,
29918,
2962,
718,
10809,
29918,
19207,
334,
4842,
305,
29889,
279,
927,
29898,
29900,
29892,
10809,
29918,
1949,
29892,
26688,
29922,
1563,
29918,
11108,
29889,
29881,
1853,
29892,
4742,
29922,
1563,
29918,
11108,
29889,
10141,
467,
1493,
29898,
29896,
29892,
29881,
29892,
29896,
29892,
29896,
29897,
13,
4706,
1683,
29901,
13,
9651,
10809,
29918,
355,
353,
10809,
29918,
2962,
718,
313,
19488,
29918,
1949,
29899,
29896,
29897,
334,
10809,
29918,
19207,
13,
9651,
2437,
29918,
1639,
29894,
353,
313,
29896,
14571,
19488,
29918,
2962,
29974,
29896,
29872,
29899,
29929,
29897,
448,
29871,
29896,
14571,
19488,
29918,
355,
29974,
29896,
29872,
29899,
29929,
876,
847,
313,
19488,
29918,
1949,
29899,
29896,
29974,
29896,
29872,
29899,
29929,
29897,
13,
9651,
10809,
353,
29871,
29896,
14571,
29871,
29896,
14571,
19488,
29918,
355,
29974,
29896,
29872,
29899,
29929,
29897,
718,
2437,
29918,
1639,
29894,
334,
4842,
305,
29889,
279,
927,
29898,
29900,
29892,
10809,
29918,
1949,
29892,
26688,
29922,
1563,
29918,
11108,
29889,
29881,
1853,
29892,
4742,
29922,
1563,
29918,
11108,
29889,
10141,
467,
1493,
29898,
29896,
29892,
29881,
29892,
29896,
29892,
29896,
29897,
1723,
13,
308,
13,
4706,
10809,
353,
10809,
29889,
6948,
802,
29872,
911,
6278,
29896,
467,
6948,
802,
29872,
911,
6278,
29896,
29897,
13,
13,
4706,
396,
10223,
362,
13,
4706,
476,
29918,
1563,
29918,
11569,
353,
476,
29918,
1563,
29889,
7411,
2141,
262,
3901,
2141,
517,
29898,
1563,
29918,
11108,
29889,
29881,
1853,
29897,
13,
4706,
390,
29918,
1563,
29918,
3286,
353,
390,
29918,
1563,
29889,
3286,
4220,
6278,
29906,
29892,
448,
29896,
29897,
13,
4706,
390,
29918,
1266,
29918,
3286,
353,
390,
29918,
1266,
29889,
3286,
4220,
6278,
29906,
29892,
448,
29896,
29897,
13,
13,
4706,
1424,
10268,
29918,
20845,
353,
390,
29918,
1563,
7503,
29892,
29871,
29906,
29901,
29941,
29892,
584,
29941,
29962,
29871,
396,
302,
29896,
29941,
13,
13,
4706,
274,
29918,
1563,
353,
448,
29934,
29918,
1563,
29918,
3286,
732,
260,
29918,
1563,
13,
4706,
274,
29918,
1266,
353,
448,
29934,
29918,
1266,
29918,
3286,
732,
260,
29918,
1266,
29871,
396,
302,
29941,
29896,
13,
4706,
274,
29918,
22925,
353,
274,
29918,
1266,
448,
274,
29918,
1563,
13,
13,
4706,
396,
10272,
13,
4706,
5694,
29918,
2003,
353,
313,
29883,
29918,
22925,
732,
1424,
10268,
29918,
20845,
467,
1493,
29898,
29876,
29892,
29896,
29892,
29896,
29892,
29896,
29892,
29941,
29892,
29941,
29897,
29871,
396,
302,
29896,
29896,
29896,
29941,
29941,
13,
13,
4706,
7256,
29918,
2922,
29900,
353,
4842,
305,
29889,
1032,
29872,
29898,
29941,
29892,
26688,
29922,
1563,
29918,
11108,
29889,
29881,
1853,
29892,
4742,
29922,
1563,
29918,
11108,
29889,
10141,
467,
1493,
29898,
29896,
29892,
29896,
29892,
29896,
29892,
29896,
29892,
29941,
29892,
29941,
29897,
448,
5694,
29918,
2003,
847,
313,
19488,
718,
29871,
29896,
29872,
29899,
29929,
29897,
29871,
396,
29871,
299,
26828,
29941,
29941,
13,
4706,
7256,
29918,
2922,
29896,
353,
313,
29934,
29918,
1563,
29918,
3286,
732,
476,
29918,
1563,
29918,
11569,
467,
1493,
29898,
29876,
29892,
29896,
29892,
29896,
29892,
29896,
29892,
29941,
29892,
29941,
29897,
29871,
396,
302,
29896,
29896,
29896,
29941,
29941,
13,
4706,
7256,
29918,
2922,
29906,
353,
313,
17662,
29918,
2922,
29900,
732,
7256,
29918,
2922,
29896,
29897,
29871,
396,
29871,
299,
26828,
29941,
29941,
13,
13,
4706,
3632,
1946,
583,
353,
476,
29918,
1266,
29889,
1493,
29898,
29876,
29892,
29896,
29892,
29896,
29892,
29896,
29892,
29941,
29892,
29941,
29897,
732,
390,
29918,
1266,
29889,
1493,
29898,
29876,
29892,
29896,
29892,
29896,
29892,
29896,
29892,
29941,
29892,
29941,
29897,
732,
7256,
29918,
2922,
29906,
29871,
396,
29871,
299,
26828,
29941,
29941,
13,
268,
13,
1678,
565,
313,
9706,
1946,
583,
19216,
9706,
1946,
583,
467,
1384,
7295,
13,
4706,
12020,
25701,
2392,
13,
268,
13,
1678,
736,
3632,
1946,
583,
13,
13,
13,
1753,
679,
29918,
29886,
15711,
29918,
629,
4841,
29898,
3545,
29892,
2920,
1125,
13,
1678,
921,
29918,
1111,
536,
353,
313,
7345,
305,
29889,
279,
927,
29898,
2103,
29892,
26688,
29922,
7345,
305,
29889,
7411,
29941,
29906,
467,
29883,
6191,
580,
718,
29871,
29900,
29889,
29945,
467,
14358,
29898,
3545,
29892,
29871,
29896,
29897,
13,
1678,
343,
29918,
1111,
536,
353,
313,
7345,
305,
29889,
279,
927,
29898,
3545,
29892,
26688,
29922,
7345,
305,
29889,
7411,
29941,
29906,
467,
29883,
6191,
580,
718,
29871,
29900,
29889,
29945,
467,
14358,
29898,
2103,
29892,
29871,
29896,
467,
29873,
580,
13,
1678,
6743,
353,
4842,
305,
29889,
2873,
29918,
4561,
29898,
29916,
29918,
1111,
536,
29897,
13,
1678,
16285,
29918,
7720,
353,
4842,
305,
29889,
1429,
4197,
29916,
29918,
1111,
536,
29892,
343,
29918,
1111,
536,
29892,
6743,
1402,
3964,
10457,
29896,
467,
6948,
802,
29872,
911,
6278,
29896,
29897,
29871,
396,
298,
29893,
29941,
29896,
13,
1678,
736,
16285,
29918,
7720,
13,
13,
13,
1753,
20064,
403,
29898,
3027,
29892,
29311,
1125,
29871,
396,
302,
305,
29893,
29892,
302,
26828,
29906,
1149,
302,
305,
29893,
13,
1678,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
4706,
1370,
9795,
29918,
1111,
536,
353,
29311,
29889,
16513,
580,
13,
4706,
1370,
9795,
29918,
1111,
536,
29961,
16361,
29871,
29900,
29962,
847,
29922,
313,
4495,
9795,
29918,
1111,
536,
29889,
2311,
580,
29961,
29906,
2314,
13,
4706,
1370,
9795,
29918,
1111,
536,
29961,
16361,
29871,
29896,
29962,
847,
29922,
313,
4495,
9795,
29918,
1111,
536,
29889,
2311,
580,
29961,
29896,
2314,
13,
4706,
1370,
9795,
29918,
1111,
536,
353,
313,
4495,
9795,
29918,
1111,
536,
334,
29871,
29906,
448,
29871,
29896,
467,
695,
1160,
6278,
29896,
29889,
29896,
29892,
29871,
29896,
29889,
29896,
29897,
13,
1678,
1370,
9795,
353,
4842,
305,
29889,
15755,
29889,
2220,
284,
29889,
7720,
29918,
11249,
29898,
3027,
29892,
1370,
9795,
29918,
1111,
536,
29892,
4464,
2433,
18152,
457,
279,
742,
7164,
29918,
8513,
2433,
3298,
359,
742,
7595,
29918,
29883,
1398,
414,
29922,
8824,
29897,
13,
1678,
565,
313,
4495,
9795,
2804,
1370,
9795,
467,
1384,
7295,
13,
4706,
12020,
25701,
2392,
13,
1678,
736,
1370,
9795,
13,
13,
13,
1753,
3632,
5275,
29918,
4495,
15702,
29898,
2080,
29892,
379,
1125,
29871,
396,
302,
305,
29893,
29892,
302,
29941,
29941,
29914,
29876,
26828,
29941,
29941,
1599,
302,
305,
29893,
13,
1678,
565,
7431,
29898,
29950,
29889,
2311,
3101,
1275,
29871,
29941,
29901,
379,
353,
379,
29889,
1493,
6278,
29896,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29941,
29892,
29871,
29941,
29897,
13,
1678,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
4706,
15526,
29918,
629,
4841,
353,
679,
29918,
29886,
15711,
29918,
629,
4841,
10456,
2080,
29889,
2311,
580,
14352,
29906,
29901,
14664,
6948,
802,
29872,
911,
29898,
29900,
29897,
29871,
396,
29871,
29896,
26828,
29941,
29896,
13,
4706,
1370,
9795,
29918,
9706,
29877,
29918,
1111,
536,
353,
313,
29950,
732,
15526,
29918,
629,
4841,
467,
29879,
802,
29872,
911,
6278,
29896,
29897,
29871,
396,
302,
26828,
29941,
13,
4706,
1370,
9795,
29918,
1111,
536,
353,
1370,
9795,
29918,
9706,
29877,
29918,
1111,
536,
29961,
16361,
584,
29906,
29962,
847,
313,
4495,
9795,
29918,
9706,
29877,
29918,
1111,
536,
29961,
16361,
29871,
29906,
29901,
29941,
29962,
718,
29871,
29896,
29872,
29899,
29929,
29897,
29871,
396,
302,
26828,
29906,
13,
1678,
1370,
9795,
353,
20064,
403,
29898,
2080,
29892,
1370,
9795,
29918,
1111,
536,
29897,
13,
1678,
736,
1370,
9795,
29871,
396,
302,
305,
29893,
13,
2
] |
calixis/plan/submodels/weighted.py | kyleady/SectorsOfInequity | 0 | 72591 | from django.db import models
from django.forms.models import model_to_dict
class Weighted_Value(models.Model):
class Meta:
abstract = True
def get_weights_as_str(self):
weights = []
has_conditional_weights = False
for weight in self.weights.all():
if not weight.required_flags:
weights.append(str(weight))
else:
has_conditional_weights = True
weights_as_str = "+".join(weights)
if has_conditional_weights:
weights_as_str += "*"
return weights_as_str
def __repr__(self):
return json.dumps(model_to_dict(
self,
fields=[field.name for field in self._meta.fields]
))
def __str__(self):
return "({weights}) {value_name}".format(weights=self.get_weights_as_str(), value_name=self.value.name)
weights = models.ManyToManyField('Roll', related_name='+')
order = models.ManyToManyField('Roll', related_name='+')
value = None
class Weighted_Inspiration(Weighted_Value):
value = models.ForeignKey('Inspiration', on_delete=models.CASCADE)
class Weighted_Region(Weighted_Value):
value = models.ForeignKey('Config_Region', on_delete=models.CASCADE)
class Weighted_Type(Weighted_Value):
value = models.ForeignKey('Config_Name', on_delete=models.CASCADE)
class Weighted_Table(Weighted_Value):
value = models.ForeignKey('Inspiration_Table', on_delete=models.CASCADE)
| [
1,
515,
9557,
29889,
2585,
1053,
4733,
30004,
13,
3166,
9557,
29889,
9514,
29889,
9794,
1053,
1904,
29918,
517,
29918,
8977,
30004,
13,
30004,
13,
1990,
1334,
523,
287,
29918,
1917,
29898,
9794,
29889,
3195,
1125,
30004,
13,
1678,
770,
20553,
29901,
30004,
13,
4706,
9846,
353,
5852,
30004,
13,
30004,
13,
1678,
822,
679,
29918,
705,
5861,
29918,
294,
29918,
710,
29898,
1311,
1125,
30004,
13,
4706,
18177,
353,
5159,
30004,
13,
4706,
756,
29918,
1116,
3245,
29918,
705,
5861,
353,
7700,
30004,
13,
4706,
363,
7688,
297,
1583,
29889,
705,
5861,
29889,
497,
7295,
30004,
13,
9651,
565,
451,
7688,
29889,
12403,
29918,
15764,
29901,
30004,
13,
18884,
18177,
29889,
4397,
29898,
710,
29898,
7915,
876,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
756,
29918,
1116,
3245,
29918,
705,
5861,
353,
5852,
30004,
13,
30004,
13,
4706,
18177,
29918,
294,
29918,
710,
353,
15691,
1642,
7122,
29898,
705,
5861,
8443,
13,
4706,
565,
756,
29918,
1116,
3245,
29918,
705,
5861,
29901,
30004,
13,
9651,
18177,
29918,
294,
29918,
710,
4619,
26345,
19451,
13,
4706,
736,
18177,
29918,
294,
29918,
710,
30004,
13,
30004,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
30004,
13,
4706,
736,
4390,
29889,
29881,
17204,
29898,
4299,
29918,
517,
29918,
8977,
29898,
30004,
13,
9651,
1583,
11167,
13,
9651,
4235,
11759,
2671,
29889,
978,
363,
1746,
297,
1583,
3032,
7299,
29889,
9621,
29962,
30004,
13,
308,
876,
30004,
13,
30004,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
30004,
13,
4706,
736,
376,
3319,
705,
5861,
1800,
426,
1767,
29918,
978,
29913,
1642,
4830,
29898,
705,
5861,
29922,
1311,
29889,
657,
29918,
705,
5861,
29918,
294,
29918,
710,
3285,
995,
29918,
978,
29922,
1311,
29889,
1767,
29889,
978,
8443,
13,
30004,
13,
1678,
18177,
353,
4733,
29889,
14804,
1762,
14804,
3073,
877,
29934,
3028,
742,
4475,
29918,
978,
2433,
29974,
1495,
30004,
13,
1678,
1797,
353,
4733,
29889,
14804,
1762,
14804,
3073,
877,
29934,
3028,
742,
4475,
29918,
978,
2433,
29974,
1495,
30004,
13,
1678,
995,
353,
6213,
30004,
13,
30004,
13,
1990,
1334,
523,
287,
29918,
797,
1028,
12232,
29898,
22676,
287,
29918,
1917,
1125,
30004,
13,
1678,
995,
353,
4733,
29889,
27755,
2558,
877,
797,
1028,
12232,
742,
373,
29918,
8143,
29922,
9794,
29889,
29907,
3289,
5454,
2287,
8443,
13,
30004,
13,
1990,
1334,
523,
287,
29918,
18457,
29898,
22676,
287,
29918,
1917,
1125,
30004,
13,
1678,
995,
353,
4733,
29889,
27755,
2558,
877,
3991,
29918,
18457,
742,
373,
29918,
8143,
29922,
9794,
29889,
29907,
3289,
5454,
2287,
8443,
13,
30004,
13,
1990,
1334,
523,
287,
29918,
1542,
29898,
22676,
287,
29918,
1917,
1125,
30004,
13,
1678,
995,
353,
4733,
29889,
27755,
2558,
877,
3991,
29918,
1170,
742,
373,
29918,
8143,
29922,
9794,
29889,
29907,
3289,
5454,
2287,
8443,
13,
30004,
13,
1990,
1334,
523,
287,
29918,
3562,
29898,
22676,
287,
29918,
1917,
1125,
30004,
13,
1678,
995,
353,
4733,
29889,
27755,
2558,
877,
797,
1028,
12232,
29918,
3562,
742,
373,
29918,
8143,
29922,
9794,
29889,
29907,
3289,
5454,
2287,
8443,
13,
2
] |
tests/test_github.py | xhusar2/repocribro | 5 | 136567 | <filename>tests/test_github.py
import pytest
REPOSITORY = 'MarekSuchanek/pyplayground'
NOT_REPOSITORY = 'MarekSuchanek/pyplaygroundzzzz7'
def test_login_bad(github_api):
assert not github_api.login('random_code')
def test_get_user_self(github_api):
user = github_api.get('/user')
assert user.is_ok
assert 'login' in user.data
def test_get_webhooks_bad(github_api):
res = github_api.webhooks_get(NOT_REPOSITORY)
assert not res.is_ok
def test_get_webhook_bad(github_api):
res = github_api.webhook_get(REPOSITORY, 666)
assert not res.is_ok
def test_get_webhook_create_check(github_api):
res = github_api.webhook_create(
REPOSITORY, 'http://localhost:5000/test'
)
assert res is not None
webhook_id = res['id']
res = github_api.webhooks_get(REPOSITORY)
assert len(res.data) >= 1
found = False
for webhook in res.data:
if webhook['id'] == webhook_id:
found = True
break
assert found
res = github_api.webhook_get(REPOSITORY, webhook_id)
assert res.is_ok
assert res.data['id'] == webhook_id
# Delivery on localhost must fail
assert not github_api.webhook_tests(REPOSITORY, webhook_id)
res = github_api.webhook_delete(REPOSITORY, webhook_id)
assert res
def test_get_webhook_delete_check(github_api):
res = github_api.webhook_create(
REPOSITORY, 'http://localhost:5000/test'
)
assert res is not None
webhook_id = res['id']
res = github_api.webhook_delete(REPOSITORY, webhook_id)
assert res
res = github_api.webhook_get(REPOSITORY, webhook_id)
assert not res.is_ok
def compute_signature(payload, secret):
import hmac
import hashlib
h = hmac.new(
secret.encode('utf-8'),
payload.encode('utf-8'),
hashlib.sha1
)
return h.hexdigest()
@pytest.mark.parametrize('payload', [
'aasas', '["a","b","c"]', '{"nope":"nope"}'
])
def test_get_webhook_verify(github_api, payload):
sig = compute_signature(payload, github_api.webhooks_secret)
assert github_api.webhook_verify_signature(
payload.encode('utf-8'), sig
)
@pytest.mark.parametrize('payload', [
'aasas', '["a","b","c"]', '{"nope":"nope"}'
])
def test_get_webhook_unverify(github_api, payload):
sig = compute_signature(payload, github_api.webhooks_secret) + 'xxx'
assert not github_api.webhook_verify_signature(
payload.encode('utf-8'), sig
)
| [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
3292,
29889,
2272,
13,
5215,
11451,
1688,
13,
13,
1525,
24815,
1806,
18929,
353,
525,
29924,
598,
29895,
29903,
987,
273,
1416,
29914,
2272,
1456,
2057,
29915,
13,
12256,
29918,
1525,
24815,
1806,
18929,
353,
525,
29924,
598,
29895,
29903,
987,
273,
1416,
29914,
2272,
1456,
2057,
5617,
5617,
29955,
29915,
13,
13,
13,
1753,
1243,
29918,
7507,
29918,
12313,
29898,
3292,
29918,
2754,
1125,
13,
1678,
4974,
451,
18546,
29918,
2754,
29889,
7507,
877,
8172,
29918,
401,
1495,
13,
13,
13,
1753,
1243,
29918,
657,
29918,
1792,
29918,
1311,
29898,
3292,
29918,
2754,
1125,
13,
1678,
1404,
353,
18546,
29918,
2754,
29889,
657,
11219,
1792,
1495,
13,
1678,
4974,
1404,
29889,
275,
29918,
554,
13,
1678,
4974,
525,
7507,
29915,
297,
1404,
29889,
1272,
13,
13,
13,
1753,
1243,
29918,
657,
29918,
2676,
1251,
12117,
29918,
12313,
29898,
3292,
29918,
2754,
1125,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
1251,
12117,
29918,
657,
29898,
12256,
29918,
1525,
24815,
1806,
18929,
29897,
13,
1678,
4974,
451,
620,
29889,
275,
29918,
554,
13,
13,
13,
1753,
1243,
29918,
657,
29918,
2676,
20849,
29918,
12313,
29898,
3292,
29918,
2754,
1125,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
657,
29898,
1525,
24815,
1806,
18929,
29892,
29871,
29953,
29953,
29953,
29897,
13,
1678,
4974,
451,
620,
29889,
275,
29918,
554,
13,
13,
13,
1753,
1243,
29918,
657,
29918,
2676,
20849,
29918,
3258,
29918,
3198,
29898,
3292,
29918,
2754,
1125,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
3258,
29898,
13,
4706,
5195,
24815,
1806,
18929,
29892,
525,
1124,
597,
7640,
29901,
29945,
29900,
29900,
29900,
29914,
1688,
29915,
13,
1678,
1723,
13,
1678,
4974,
620,
338,
451,
6213,
13,
1678,
1856,
20849,
29918,
333,
353,
620,
1839,
333,
2033,
13,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
1251,
12117,
29918,
657,
29898,
1525,
24815,
1806,
18929,
29897,
13,
1678,
4974,
7431,
29898,
690,
29889,
1272,
29897,
6736,
29871,
29896,
13,
1678,
1476,
353,
7700,
13,
1678,
363,
1856,
20849,
297,
620,
29889,
1272,
29901,
13,
4706,
565,
1856,
20849,
1839,
333,
2033,
1275,
1856,
20849,
29918,
333,
29901,
13,
9651,
1476,
353,
5852,
13,
9651,
2867,
13,
1678,
4974,
1476,
13,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
657,
29898,
1525,
24815,
1806,
18929,
29892,
1856,
20849,
29918,
333,
29897,
13,
1678,
4974,
620,
29889,
275,
29918,
554,
13,
1678,
4974,
620,
29889,
1272,
1839,
333,
2033,
1275,
1856,
20849,
29918,
333,
13,
13,
1678,
396,
360,
27657,
373,
15683,
1818,
4418,
13,
1678,
4974,
451,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
21150,
29898,
1525,
24815,
1806,
18929,
29892,
1856,
20849,
29918,
333,
29897,
13,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
8143,
29898,
1525,
24815,
1806,
18929,
29892,
1856,
20849,
29918,
333,
29897,
13,
1678,
4974,
620,
13,
13,
13,
1753,
1243,
29918,
657,
29918,
2676,
20849,
29918,
8143,
29918,
3198,
29898,
3292,
29918,
2754,
1125,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
3258,
29898,
13,
4706,
5195,
24815,
1806,
18929,
29892,
525,
1124,
597,
7640,
29901,
29945,
29900,
29900,
29900,
29914,
1688,
29915,
13,
1678,
1723,
13,
1678,
4974,
620,
338,
451,
6213,
13,
1678,
1856,
20849,
29918,
333,
353,
620,
1839,
333,
2033,
13,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
8143,
29898,
1525,
24815,
1806,
18929,
29892,
1856,
20849,
29918,
333,
29897,
13,
1678,
4974,
620,
13,
13,
1678,
620,
353,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
657,
29898,
1525,
24815,
1806,
18929,
29892,
1856,
20849,
29918,
333,
29897,
13,
1678,
4974,
451,
620,
29889,
275,
29918,
554,
13,
13,
13,
1753,
10272,
29918,
4530,
1535,
29898,
23813,
29892,
7035,
1125,
13,
1678,
1053,
298,
8628,
13,
1678,
1053,
6608,
1982,
13,
1678,
298,
353,
298,
8628,
29889,
1482,
29898,
13,
4706,
7035,
29889,
12508,
877,
9420,
29899,
29947,
5477,
13,
4706,
20092,
29889,
12508,
877,
9420,
29899,
29947,
5477,
13,
4706,
6608,
1982,
29889,
17051,
29896,
13,
1678,
1723,
13,
1678,
736,
298,
29889,
20970,
7501,
342,
580,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
23813,
742,
518,
13,
1678,
525,
29874,
294,
294,
742,
525,
3366,
29874,
3284,
29890,
3284,
29883,
3108,
742,
525,
6377,
1217,
412,
4710,
1217,
412,
9092,
29915,
13,
2314,
13,
1753,
1243,
29918,
657,
29918,
2676,
20849,
29918,
27902,
29898,
3292,
29918,
2754,
29892,
20092,
1125,
13,
1678,
4365,
353,
10272,
29918,
4530,
1535,
29898,
23813,
29892,
18546,
29918,
2754,
29889,
2676,
1251,
12117,
29918,
19024,
29897,
13,
1678,
4974,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
27902,
29918,
4530,
1535,
29898,
13,
4706,
20092,
29889,
12508,
877,
9420,
29899,
29947,
5477,
4365,
13,
1678,
1723,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
877,
23813,
742,
518,
13,
1678,
525,
29874,
294,
294,
742,
525,
3366,
29874,
3284,
29890,
3284,
29883,
3108,
742,
525,
6377,
1217,
412,
4710,
1217,
412,
9092,
29915,
13,
2314,
13,
1753,
1243,
29918,
657,
29918,
2676,
20849,
29918,
348,
27902,
29898,
3292,
29918,
2754,
29892,
20092,
1125,
13,
1678,
4365,
353,
10272,
29918,
4530,
1535,
29898,
23813,
29892,
18546,
29918,
2754,
29889,
2676,
1251,
12117,
29918,
19024,
29897,
718,
525,
12353,
29915,
13,
1678,
4974,
451,
18546,
29918,
2754,
29889,
2676,
20849,
29918,
27902,
29918,
4530,
1535,
29898,
13,
4706,
20092,
29889,
12508,
877,
9420,
29899,
29947,
5477,
4365,
13,
1678,
1723,
13,
2
] |
qsBack/app/urls.py | joest67/qsProj | 0 | 58903 | from django.conf.urls import patterns, url
from qs import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^sendqs/$', views.sendqs, name='sendqs'),
url(r'^show/$', views.showall, name='showall'),
)
| [
1,
515,
9557,
29889,
5527,
29889,
26045,
1053,
15038,
29892,
3142,
13,
13,
3166,
3855,
29879,
1053,
8386,
13,
13,
2271,
11037,
29879,
353,
15038,
877,
742,
13,
1678,
3142,
29898,
29878,
29915,
29985,
29938,
742,
8386,
29889,
2248,
29892,
1024,
2433,
2248,
5477,
13,
1678,
3142,
29898,
29878,
29915,
29985,
6717,
29939,
29879,
13346,
742,
8386,
29889,
6717,
29939,
29879,
29892,
1024,
2433,
6717,
29939,
29879,
5477,
13,
1678,
3142,
29898,
29878,
29915,
29985,
4294,
13346,
742,
8386,
29889,
4294,
497,
29892,
1024,
2433,
4294,
497,
5477,
13,
13,
29897,
29871,
13,
2
] |
6.0_prs_random_forest.py.py | psohn/Forest_Fires_Regression | 2 | 53061 | <reponame>psohn/Forest_Fires_Regression
### because how can you not use random forest regression on a forest fire
### regression? this is lazily coded and uncommented. purely for entertainment
### and completion
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import r2_score, mean_squared_error
train_X = pd.read_csv('data/features_train.csv', index_col = 0)
train_y = pd.read_csv('data/target_train.csv', index_col = 0).astype(int).values.ravel()
test_X = pd.read_csv('data/features_test.csv', index_col = 0)
test_y = pd.read_csv('data/target_test.csv', index_col = 0).astype(int).values.ravel()
model = RandomForestClassifier(random_state = 0, max_depth = 5).fit(X = train_X, y = train_y)
pred_train = model.predict(train_X)
pred_test = model.predict(test_X)
r2_train = r2_score(train_y, pred_train)
r2_test = r2_score(test_y, pred_test)
mse_train = mean_squared_error(train_y, pred_train, squared = False)
mse_test = mean_squared_error(test_y, pred_test, squared = False)
print(r2_train, mse_train)
print(r2_test, mse_test)
### r2_train = -0.1386
### mse_train = 0.5807
### r2_test = -0.1518
### mse_test = 0.6487 | [
1,
529,
276,
1112,
420,
29958,
567,
6547,
29914,
2831,
342,
29918,
29943,
2658,
29918,
4597,
23881,
13,
2277,
29937,
1363,
920,
508,
366,
451,
671,
4036,
13569,
17855,
373,
263,
13569,
3974,
30004,
13,
2277,
29937,
17855,
29973,
445,
338,
425,
29920,
2354,
274,
6797,
322,
443,
9342,
287,
29889,
24837,
363,
22684,
358,
30004,
13,
2277,
29937,
322,
13285,
30004,
13,
30004,
13,
5215,
11701,
408,
10518,
30004,
13,
3166,
2071,
19668,
29889,
24031,
1053,
16968,
2831,
342,
2385,
3709,
30004,
13,
3166,
2071,
19668,
29889,
2527,
10817,
1053,
364,
29906,
29918,
13628,
29892,
2099,
29918,
26613,
1965,
29918,
2704,
30004,
13,
30004,
13,
14968,
29918,
29990,
353,
10518,
29889,
949,
29918,
7638,
877,
1272,
29914,
22100,
29918,
14968,
29889,
7638,
742,
2380,
29918,
1054,
353,
29871,
29900,
8443,
13,
14968,
29918,
29891,
353,
10518,
29889,
949,
29918,
7638,
877,
1272,
29914,
5182,
29918,
14968,
29889,
7638,
742,
2380,
29918,
1054,
353,
29871,
29900,
467,
579,
668,
29898,
524,
467,
5975,
29889,
336,
955,
26471,
13,
30004,
13,
1688,
29918,
29990,
353,
10518,
29889,
949,
29918,
7638,
877,
1272,
29914,
22100,
29918,
1688,
29889,
7638,
742,
2380,
29918,
1054,
353,
29871,
29900,
8443,
13,
1688,
29918,
29891,
353,
10518,
29889,
949,
29918,
7638,
877,
1272,
29914,
5182,
29918,
1688,
29889,
7638,
742,
2380,
29918,
1054,
353,
29871,
29900,
467,
579,
668,
29898,
524,
467,
5975,
29889,
336,
955,
26471,
13,
30004,
13,
4299,
353,
16968,
2831,
342,
2385,
3709,
29898,
8172,
29918,
3859,
353,
29871,
29900,
29892,
4236,
29918,
19488,
353,
29871,
29945,
467,
9202,
29898,
29990,
353,
7945,
29918,
29990,
29892,
343,
353,
7945,
29918,
29891,
8443,
13,
30004,
13,
11965,
29918,
14968,
353,
1904,
29889,
27711,
29898,
14968,
29918,
29990,
8443,
13,
11965,
29918,
1688,
353,
1904,
29889,
27711,
29898,
1688,
29918,
29990,
8443,
13,
30004,
13,
29878,
29906,
29918,
14968,
353,
364,
29906,
29918,
13628,
29898,
14968,
29918,
29891,
29892,
4450,
29918,
14968,
8443,
13,
29878,
29906,
29918,
1688,
353,
364,
29906,
29918,
13628,
29898,
1688,
29918,
29891,
29892,
4450,
29918,
1688,
8443,
13,
30004,
13,
29885,
344,
29918,
14968,
353,
2099,
29918,
26613,
1965,
29918,
2704,
29898,
14968,
29918,
29891,
29892,
4450,
29918,
14968,
29892,
10674,
1965,
353,
7700,
8443,
13,
29885,
344,
29918,
1688,
353,
2099,
29918,
26613,
1965,
29918,
2704,
29898,
1688,
29918,
29891,
29892,
4450,
29918,
1688,
29892,
10674,
1965,
353,
7700,
8443,
13,
30004,
13,
2158,
29898,
29878,
29906,
29918,
14968,
29892,
286,
344,
29918,
14968,
8443,
13,
2158,
29898,
29878,
29906,
29918,
1688,
29892,
286,
344,
29918,
1688,
8443,
13,
30004,
13,
2277,
29937,
364,
29906,
29918,
14968,
353,
448,
29900,
29889,
29896,
29941,
29947,
29953,
30004,
13,
2277,
29937,
286,
344,
29918,
14968,
353,
29871,
29900,
29889,
29945,
29947,
29900,
29955,
30004,
13,
30004,
13,
2277,
29937,
364,
29906,
29918,
1688,
353,
448,
29900,
29889,
29896,
29945,
29896,
29947,
30004,
13,
2277,
29937,
286,
344,
29918,
1688,
353,
29871,
29900,
29889,
29953,
29946,
29947,
29955,
2
] |
ch02-安装OpenCV/最简单-使用pip安装opencv-python和opencv-contrib-python/test_video.py | makelove/OpenCV-Python-Tutorial | 2,875 | 47463 | # -*- coding: utf-8 -*-
# @Time : 2017/8/2 10:46
# @Author : play4fun
# @File : test_video.py
# @Software: PyCharm
"""
test_video.py:
"""
import numpy as np
import cv2
from matplotlib import pyplot as plt
cap = cv2.VideoCapture('../../data/vtest.avi')#不支持读取视频
# cap = cv2.VideoCapture('output.avi')
# cap = cv2.VideoCapture('Minions_banana.mp4')
# 帧率
fps = cap.get(cv2.CAP_PROP_FPS) # 25.0
print("Frames per second using video.get(cv2.CAP_PROP_FPS) : {0}".format(fps))
# 总共有多少帧
num_frames = cap.get(cv2.CAP_PROP_FRAME_COUNT)
print('共有', num_frames, '帧')
#
frame_height = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
frame_width = cap.get(cv2.CAP_PROP_FRAME_WIDTH)
print('高:', frame_height, '宽:', frame_width)
FRAME_NOW = cap.get(cv2.CAP_PROP_POS_FRAMES) # 第0帧
print('当前帧数', FRAME_NOW) # 当前帧数 0.0
# 读取指定帧,对视频文件才有效,对摄像头无效??
# frame_no = 121
# cap.set(1, frame_no) # Where frame_no is the frame you want
ret, frame = cap.read() # Read the frame
print(ret, frame)
# cv2.imshow('frame_no'+str(frame_no), frame)
FRAME_NOW = cap.get(cv2.CAP_PROP_POS_FRAMES)
print('当前帧数', FRAME_NOW) # 当前帧数 122.0
if frame is not None:#出错
plt.imshow(frame)
# plt.imshow(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))
plt.show() | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
2481,
1678,
584,
29871,
29906,
29900,
29896,
29955,
29914,
29947,
29914,
29906,
29871,
29896,
29900,
29901,
29946,
29953,
13,
29937,
732,
13720,
29871,
584,
1708,
29946,
7692,
13,
29937,
732,
2283,
1678,
584,
1243,
29918,
9641,
29889,
2272,
13,
29937,
732,
6295,
14093,
29901,
10772,
1451,
2817,
13,
13,
15945,
29908,
13,
1688,
29918,
9641,
29889,
2272,
29901,
13,
15945,
29908,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
13850,
29906,
13,
3166,
22889,
1053,
11451,
5317,
408,
14770,
13,
13,
5030,
353,
13850,
29906,
29889,
15167,
21133,
545,
877,
21546,
1272,
29914,
29894,
1688,
29889,
17345,
1495,
29937,
30413,
31541,
31695,
235,
178,
190,
30683,
31568,
236,
165,
148,
13,
29937,
2117,
353,
13850,
29906,
29889,
15167,
21133,
545,
877,
4905,
29889,
17345,
1495,
13,
29937,
2117,
353,
13850,
29906,
29889,
15167,
21133,
545,
877,
8140,
1080,
29918,
2571,
1648,
29889,
1526,
29946,
1495,
13,
13,
13,
29937,
29871,
232,
187,
170,
234,
145,
138,
13,
29888,
567,
353,
2117,
29889,
657,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
29943,
7024,
29897,
29871,
396,
29871,
29906,
29945,
29889,
29900,
13,
2158,
703,
14438,
1280,
639,
1473,
773,
4863,
29889,
657,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
29943,
7024,
29897,
584,
426,
29900,
29913,
1642,
4830,
29898,
29888,
567,
876,
13,
29937,
29871,
233,
131,
190,
31611,
30417,
30923,
31022,
232,
187,
170,
13,
1949,
29918,
19935,
353,
2117,
29889,
657,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
29943,
4717,
2303,
29918,
18736,
29897,
13,
2158,
877,
31611,
30417,
742,
954,
29918,
19935,
29892,
525,
232,
187,
170,
1495,
13,
29937,
13,
2557,
29918,
3545,
353,
2117,
29889,
657,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
29943,
4717,
2303,
29918,
9606,
22530,
29897,
13,
2557,
29918,
2103,
353,
2117,
29889,
657,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
29943,
4717,
2303,
29918,
22574,
29897,
13,
2158,
877,
30528,
30383,
742,
3515,
29918,
3545,
29892,
525,
232,
177,
192,
30383,
742,
3515,
29918,
2103,
29897,
13,
13,
29943,
4717,
2303,
29918,
6632,
29956,
353,
2117,
29889,
657,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
24815,
29918,
29943,
4717,
2303,
29903,
29897,
29871,
396,
29871,
30622,
29900,
232,
187,
170,
13,
2158,
877,
30948,
30658,
232,
187,
170,
30354,
742,
383,
4717,
2303,
29918,
6632,
29956,
29897,
29871,
396,
29871,
30948,
30658,
232,
187,
170,
30354,
29871,
29900,
29889,
29900,
13,
13,
29937,
29871,
235,
178,
190,
30683,
31084,
30495,
232,
187,
170,
29892,
30783,
31568,
236,
165,
148,
30333,
30631,
31979,
30417,
31944,
30214,
30783,
233,
148,
135,
31551,
31584,
31352,
31944,
30882,
30882,
13,
29937,
3515,
29918,
1217,
353,
29871,
29896,
29906,
29896,
13,
29937,
2117,
29889,
842,
29898,
29896,
29892,
3515,
29918,
1217,
29897,
29871,
396,
6804,
3515,
29918,
1217,
338,
278,
3515,
366,
864,
13,
2267,
29892,
3515,
353,
2117,
29889,
949,
580,
29871,
396,
7523,
278,
3515,
13,
2158,
29898,
2267,
29892,
3515,
29897,
13,
29937,
13850,
29906,
29889,
326,
4294,
877,
2557,
29918,
1217,
18717,
710,
29898,
2557,
29918,
1217,
511,
3515,
29897,
13,
13,
29943,
4717,
2303,
29918,
6632,
29956,
353,
2117,
29889,
657,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
24815,
29918,
29943,
4717,
2303,
29903,
29897,
13,
2158,
877,
30948,
30658,
232,
187,
170,
30354,
742,
383,
4717,
2303,
29918,
6632,
29956,
29897,
29871,
396,
29871,
30948,
30658,
232,
187,
170,
30354,
29871,
29896,
29906,
29906,
29889,
29900,
13,
13,
361,
3515,
338,
451,
29871,
6213,
21968,
30544,
31745,
13,
1678,
14770,
29889,
326,
4294,
29898,
2557,
29897,
13,
1678,
396,
14770,
29889,
326,
4294,
29898,
11023,
29906,
29889,
11023,
29873,
3306,
29898,
2557,
29892,
13850,
29906,
29889,
15032,
1955,
29918,
29933,
14345,
29906,
28212,
876,
13,
1678,
14770,
29889,
4294,
580,
2
] |
tools/train.py | RocketFlash/SiameseNet | 24 | 1611133 | import os
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(ROOT_DIR)
import numpy as np
from embedding_net.models import EmbeddingNet, TripletNet, SiameseNet
from tensorflow.keras.callbacks import TensorBoard, LearningRateScheduler
from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint
from embedding_net.datagenerators import ENDataLoader, SimpleDataGenerator, TripletsDataGenerator, SimpleTripletsDataGenerator, SiameseDataGenerator
from embedding_net.utils import parse_params, plot_grapths
from embedding_net.backbones import pretrain_backbone_softmax
from embedding_net.losses_and_accuracies import contrastive_loss, triplet_loss, accuracy
import argparse
from tensorflow import keras
from tensorflow.keras.utils import multi_gpu_model
import tensorflow as tf
def parse_args():
parser = argparse.ArgumentParser(description='Train a classificator')
parser.add_argument('config', help='model config file path')
parser.add_argument('--resume_from', help='the checkpoint file to resume from')
args = parser.parse_args()
return args
def create_save_folders(params):
work_dir_path = os.path.join(params['work_dir'], params['project_name'])
weights_save_path = os.path.join(work_dir_path, 'weights/')
weights_pretrained_save_path = os.path.join(work_dir_path, 'pretraining_model/weights/')
encodings_save_path = os.path.join(work_dir_path, 'encodings/')
plots_save_path = os.path.join(work_dir_path, 'plots/')
tensorboard_save_path = os.path.join(work_dir_path, 'tf_log/')
tensorboard_pretrained_save_path = os.path.join(work_dir_path, 'pretraining_model/tf_log/')
weights_save_file_path = os.path.join(weights_save_path, 'epoch_{epoch:03d}' + '.hdf5')
os.makedirs(work_dir_path , exist_ok=True)
os.makedirs(weights_save_path, exist_ok=True)
os.makedirs(weights_pretrained_save_path, exist_ok=True)
os.makedirs(encodings_save_path, exist_ok=True)
os.makedirs(plots_save_path, exist_ok=True)
os.makedirs(tensorboard_pretrained_save_path, exist_ok=True)
return tensorboard_save_path, weights_save_file_path, plots_save_path
def main():
print('LOAD PARAMETERS')
args = parse_args()
cfg_params = parse_params(args.config)
params_train = cfg_params['train']
params_model = cfg_params['model']
params_dataloader = cfg_params['dataloader']
params_generator = cfg_params['generator']
tensorboard_save_path, weights_save_file_path, plots_save_path = create_save_folders(cfg_params['general'])
work_dir_path = os.path.join(cfg_params['general']['work_dir'],
cfg_params['general']['project_name'])
weights_save_path = os.path.join(work_dir_path, 'weights/')
initial_lr = params_train['learning_rate']
decay_factor = params_train['decay_factor']
step_size = params_train['step_size']
if params_dataloader['validate']:
callback_monitor = 'val_loss'
else:
callback_monitor = 'loss'
print('LOADING COMPLETED')
callbacks = [
LearningRateScheduler(lambda x: initial_lr *
decay_factor ** np.floor(x/step_size)),
ReduceLROnPlateau(monitor=callback_monitor, factor=0.1,
patience=4, verbose=1),
EarlyStopping(monitor=callback_monitor,
patience=10,
verbose=1),
ModelCheckpoint(filepath=weights_save_file_path,
monitor=callback_monitor,
save_best_only=True,
verbose=1)
]
print('CREATE DATALOADER')
data_loader = ENDataLoader(**params_dataloader)
print('DATALOADER CREATED!')
if cfg_params['general']['tensorboard_callback']:
callbacks.append(TensorBoard(log_dir=tensorboard_save_path))
if cfg_params['general']['wandb_callback']:
import wandb
from wandb.keras import WandbCallback
wandb.init()
callbacks.append(WandbCallback(data_type="image", labels=data_loader.class_names))
val_generator = None
print('CREATE MODEL AND DATA GENETATORS')
if params_model['mode'] == 'siamese':
model = SiameseNet(cfg_params, training=True)
train_generator = SiameseDataGenerator(class_files_paths=data_loader.train_data,
class_names=data_loader.class_names,
**params_generator)
if data_loader.validate:
val_generator = SiameseDataGenerator(class_files_paths=data_loader.val_data,
class_names=data_loader.class_names,
val_gen = True,
**params_generator)
losses = {'output_siamese' : contrastive_loss}
metric = {'output_siamese' : accuracy}
else:
if cfg_params['general']['gpu_ids']:
print('Multiple gpu mode')
gpu_ids = cfg_params['general']['gpu_ids']
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = gpu_ids
print(f'Using gpu ids: {gpu_ids}')
gpu_ids_list = gpu_ids.split(',')
n_gpu = len(gpu_ids_list)
else:
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
n_gpu = 1
print('Use single gpu mode')
model = TripletNet(cfg_params, training=True)
if n_gpu>1:
strategy = tf.distribute.MirroredStrategy()
with strategy.scope():
model.base_model = multi_gpu_model(model.base_model, gpus=n_gpu)
# model.base_model = tf.keras.utils.multi_gpu_model(model.base_model, gpus=n_gpu)
train_generator = TripletsDataGenerator(embedding_model=model.base_model,
class_files_paths=data_loader.train_data,
class_names=data_loader.class_names,
**params_generator)
if data_loader.validate:
val_generator = SimpleTripletsDataGenerator(data_loader.val_data,
data_loader.class_names,
**params_generator)
losses = triplet_loss(params_generator['margin'])
metric = ['accuracy']
print('DONE')
if args.resume_from is not None:
model.load_model(args.resume_from)
print('COMPILE MODEL')
model.model.compile(loss=losses,
optimizer=params_train['optimizer'],
metrics=metric)
if 'softmax' in cfg_params:
params_softmax = cfg_params['softmax']
params_save_paths = cfg_params['general']
pretrain_backbone_softmax(model.backbone_model,
data_loader,
params_softmax,
params_save_paths)
history = model.model.fit_generator(train_generator,
validation_data=val_generator,
epochs=params_train['n_epochs'],
callbacks=callbacks,
verbose=1,
use_multiprocessing=False)
if params_train['plot_history']:
plot_grapths(history, plots_save_path)
if __name__ == '__main__':
main()
| [
1,
1053,
2897,
13,
5215,
10876,
13,
13,
25416,
29918,
9464,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
22168,
1445,
1649,
876,
13,
21289,
29918,
9464,
353,
2897,
29889,
2084,
29889,
25721,
29898,
25416,
29918,
9464,
29897,
13,
9675,
29889,
2084,
29889,
4397,
29898,
21289,
29918,
9464,
29897,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
23655,
29918,
1212,
29889,
9794,
1053,
2812,
2580,
8497,
6779,
29892,
8602,
552,
29873,
6779,
29892,
317,
2829,
968,
6779,
13,
3166,
26110,
29889,
3946,
294,
29889,
14035,
29879,
1053,
323,
6073,
28397,
29892,
29257,
19907,
4504,
14952,
13,
3166,
26110,
29889,
3946,
294,
29889,
14035,
29879,
1053,
11095,
20754,
3262,
29892,
4367,
24551,
29931,
1672,
29876,
3247,
403,
585,
29892,
8125,
5596,
3149,
13,
3166,
23655,
29918,
1212,
29889,
4130,
351,
759,
4097,
1053,
12524,
1469,
10036,
29892,
12545,
1469,
21575,
29892,
8602,
552,
1372,
1469,
21575,
29892,
12545,
29565,
552,
1372,
1469,
21575,
29892,
317,
2829,
968,
1469,
21575,
13,
3166,
23655,
29918,
1212,
29889,
13239,
1053,
6088,
29918,
7529,
29892,
6492,
29918,
29887,
2390,
386,
29879,
13,
3166,
23655,
29918,
1212,
29889,
1627,
29890,
2873,
1053,
758,
14968,
29918,
1627,
15933,
29918,
2695,
3317,
13,
3166,
23655,
29918,
1212,
29889,
6758,
267,
29918,
392,
29918,
5753,
2002,
2478,
1053,
12814,
573,
29918,
6758,
29892,
21954,
29873,
29918,
6758,
29892,
13600,
13,
5215,
1852,
5510,
13,
3166,
26110,
1053,
13023,
294,
13,
3166,
26110,
29889,
3946,
294,
29889,
13239,
1053,
2473,
29918,
29887,
3746,
29918,
4299,
13,
5215,
26110,
408,
15886,
13,
13,
13,
13,
13,
1753,
6088,
29918,
5085,
7295,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
2433,
5323,
262,
263,
20670,
1061,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
2917,
742,
1371,
2433,
4299,
2295,
934,
2224,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
690,
2017,
29918,
3166,
742,
1371,
2433,
1552,
1423,
3149,
934,
304,
620,
2017,
515,
1495,
13,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
736,
6389,
13,
13,
1753,
1653,
29918,
7620,
29918,
8771,
414,
29898,
7529,
1125,
13,
1678,
664,
29918,
3972,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
7529,
1839,
1287,
29918,
3972,
7464,
8636,
1839,
4836,
29918,
978,
11287,
13,
1678,
18177,
29918,
7620,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
29918,
3972,
29918,
2084,
29892,
525,
705,
5861,
29914,
1495,
13,
1678,
18177,
29918,
1457,
3018,
1312,
29918,
7620,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
29918,
3972,
29918,
2084,
29892,
525,
1457,
26495,
29918,
4299,
29914,
705,
5861,
29914,
1495,
13,
1678,
2094,
397,
886,
29918,
7620,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
29918,
3972,
29918,
2084,
29892,
525,
3977,
397,
886,
29914,
1495,
13,
1678,
24580,
29918,
7620,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
29918,
3972,
29918,
2084,
29892,
525,
26762,
29914,
1495,
13,
1678,
12489,
3377,
29918,
7620,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
29918,
3972,
29918,
2084,
29892,
525,
13264,
29918,
1188,
29914,
1495,
13,
1678,
12489,
3377,
29918,
1457,
3018,
1312,
29918,
7620,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
29918,
3972,
29918,
2084,
29892,
525,
1457,
26495,
29918,
4299,
29914,
13264,
29918,
1188,
29914,
1495,
13,
1678,
18177,
29918,
7620,
29918,
1445,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
705,
5861,
29918,
7620,
29918,
2084,
29892,
525,
1022,
2878,
648,
1022,
2878,
29901,
29900,
29941,
29881,
10162,
718,
15300,
29882,
2176,
29945,
1495,
13,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
1287,
29918,
3972,
29918,
2084,
1919,
1863,
29918,
554,
29922,
5574,
29897,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
705,
5861,
29918,
7620,
29918,
2084,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
705,
5861,
29918,
1457,
3018,
1312,
29918,
7620,
29918,
2084,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
3977,
397,
886,
29918,
7620,
29918,
2084,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
26762,
29918,
7620,
29918,
2084,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
1678,
2897,
29889,
29885,
12535,
12935,
29898,
20158,
3377,
29918,
1457,
3018,
1312,
29918,
7620,
29918,
2084,
29892,
1863,
29918,
554,
29922,
5574,
29897,
13,
13,
1678,
736,
12489,
3377,
29918,
7620,
29918,
2084,
29892,
18177,
29918,
7620,
29918,
1445,
29918,
2084,
29892,
24580,
29918,
7620,
29918,
2084,
13,
13,
1753,
1667,
7295,
13,
1678,
1596,
877,
29428,
349,
1718,
25797,
4945,
29903,
1495,
13,
1678,
6389,
353,
6088,
29918,
5085,
580,
13,
1678,
274,
16434,
29918,
7529,
353,
6088,
29918,
7529,
29898,
5085,
29889,
2917,
29897,
13,
1678,
8636,
29918,
14968,
353,
274,
16434,
29918,
7529,
1839,
14968,
2033,
13,
1678,
8636,
29918,
4299,
353,
274,
16434,
29918,
7529,
1839,
4299,
2033,
13,
1678,
8636,
29918,
29881,
2075,
29877,
1664,
353,
274,
16434,
29918,
7529,
1839,
29881,
2075,
29877,
1664,
2033,
13,
1678,
8636,
29918,
27959,
353,
274,
16434,
29918,
7529,
1839,
27959,
2033,
13,
13,
1678,
12489,
3377,
29918,
7620,
29918,
2084,
29892,
18177,
29918,
7620,
29918,
1445,
29918,
2084,
29892,
24580,
29918,
7620,
29918,
2084,
353,
1653,
29918,
7620,
29918,
8771,
414,
29898,
16859,
29918,
7529,
1839,
17492,
11287,
13,
13,
13,
1678,
664,
29918,
3972,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
16859,
29918,
7529,
1839,
17492,
16215,
1287,
29918,
3972,
7464,
13,
462,
462,
274,
16434,
29918,
7529,
1839,
17492,
16215,
4836,
29918,
978,
11287,
13,
1678,
18177,
29918,
7620,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
1287,
29918,
3972,
29918,
2084,
29892,
525,
705,
5861,
29914,
1495,
13,
268,
13,
13,
1678,
2847,
29918,
29212,
353,
8636,
29918,
14968,
1839,
21891,
29918,
10492,
2033,
13,
1678,
20228,
29918,
19790,
353,
8636,
29918,
14968,
1839,
7099,
388,
29918,
19790,
2033,
13,
1678,
4331,
29918,
2311,
353,
8636,
29918,
14968,
1839,
10568,
29918,
2311,
2033,
13,
13,
1678,
565,
8636,
29918,
29881,
2075,
29877,
1664,
1839,
15480,
2033,
29901,
13,
4706,
6939,
29918,
3712,
2105,
353,
525,
791,
29918,
6758,
29915,
13,
1678,
1683,
29901,
13,
4706,
6939,
29918,
3712,
2105,
353,
525,
6758,
29915,
13,
13,
1678,
1596,
877,
29428,
4214,
4810,
3580,
1307,
29911,
3352,
1495,
13,
1678,
6939,
29879,
353,
518,
13,
4706,
29257,
19907,
4504,
14952,
29898,
2892,
921,
29901,
2847,
29918,
29212,
334,
13,
462,
795,
20228,
29918,
19790,
3579,
7442,
29889,
14939,
29898,
29916,
29914,
10568,
29918,
2311,
8243,
13,
4706,
4367,
24551,
29931,
1672,
29876,
3247,
403,
585,
29898,
3712,
2105,
29922,
14035,
29918,
3712,
2105,
29892,
7329,
29922,
29900,
29889,
29896,
29892,
13,
462,
3986,
282,
24701,
29922,
29946,
29892,
26952,
29922,
29896,
511,
13,
4706,
11095,
20754,
3262,
29898,
3712,
2105,
29922,
14035,
29918,
3712,
2105,
29892,
13,
462,
418,
282,
24701,
29922,
29896,
29900,
29892,
29871,
13,
462,
418,
26952,
29922,
29896,
511,
13,
4706,
8125,
5596,
3149,
29898,
1445,
2084,
29922,
705,
5861,
29918,
7620,
29918,
1445,
29918,
2084,
29892,
13,
462,
4706,
11819,
29922,
14035,
29918,
3712,
2105,
29892,
29871,
13,
462,
4706,
4078,
29918,
13318,
29918,
6194,
29922,
5574,
29892,
13,
462,
4706,
26952,
29922,
29896,
29897,
13,
1678,
4514,
13,
268,
13,
1678,
1596,
877,
27045,
27640,
1964,
29949,
3035,
1001,
1495,
13,
1678,
848,
29918,
12657,
353,
12524,
1469,
10036,
29898,
1068,
7529,
29918,
29881,
2075,
29877,
1664,
29897,
13,
1678,
1596,
877,
25832,
1964,
29949,
3035,
1001,
14602,
29928,
29991,
1495,
13,
13,
1678,
565,
274,
16434,
29918,
7529,
1839,
17492,
16215,
20158,
3377,
29918,
14035,
2033,
29901,
13,
4706,
6939,
29879,
29889,
4397,
29898,
29911,
6073,
28397,
29898,
1188,
29918,
3972,
29922,
20158,
3377,
29918,
7620,
29918,
2084,
876,
13,
13,
1678,
565,
274,
16434,
29918,
7529,
1839,
17492,
16215,
18622,
29890,
29918,
14035,
2033,
29901,
13,
4706,
1053,
24706,
29890,
13,
4706,
515,
24706,
29890,
29889,
3946,
294,
1053,
399,
392,
29890,
10717,
13,
4706,
24706,
29890,
29889,
2344,
580,
29871,
13,
4706,
6939,
29879,
29889,
4397,
29898,
29956,
392,
29890,
10717,
29898,
1272,
29918,
1853,
543,
3027,
613,
11073,
29922,
1272,
29918,
12657,
29889,
1990,
29918,
7039,
876,
13,
13,
1678,
659,
29918,
27959,
353,
6213,
13,
1678,
1596,
877,
27045,
16999,
2287,
29931,
5300,
360,
8254,
402,
1430,
2544,
1299,
24125,
1495,
13,
1678,
565,
8636,
29918,
4299,
1839,
8513,
2033,
1275,
525,
1039,
314,
968,
2396,
13,
4706,
1904,
353,
317,
2829,
968,
6779,
29898,
16859,
29918,
7529,
29892,
6694,
29922,
5574,
29897,
13,
4706,
7945,
29918,
27959,
353,
317,
2829,
968,
1469,
21575,
29898,
1990,
29918,
5325,
29918,
24772,
29922,
1272,
29918,
12657,
29889,
14968,
29918,
1272,
29892,
13,
462,
462,
1669,
770,
29918,
7039,
29922,
1272,
29918,
12657,
29889,
1990,
29918,
7039,
29892,
13,
462,
462,
1669,
3579,
7529,
29918,
27959,
29897,
13,
4706,
565,
848,
29918,
12657,
29889,
15480,
29901,
13,
9651,
659,
29918,
27959,
353,
317,
2829,
968,
1469,
21575,
29898,
1990,
29918,
5325,
29918,
24772,
29922,
1272,
29918,
12657,
29889,
791,
29918,
1272,
29892,
13,
462,
462,
1669,
770,
29918,
7039,
29922,
1272,
29918,
12657,
29889,
1990,
29918,
7039,
29892,
13,
462,
462,
1669,
659,
29918,
1885,
353,
5852,
29892,
13,
462,
462,
1669,
3579,
7529,
29918,
27959,
29897,
13,
4706,
28495,
353,
11117,
4905,
29918,
1039,
314,
968,
29915,
584,
12814,
573,
29918,
6758,
29913,
13,
4706,
12714,
353,
11117,
4905,
29918,
1039,
314,
968,
29915,
584,
13600,
29913,
13,
1678,
1683,
29901,
13,
4706,
565,
274,
16434,
29918,
7529,
1839,
17492,
16215,
29887,
3746,
29918,
4841,
2033,
29901,
13,
9651,
1596,
877,
15329,
552,
330,
3746,
4464,
1495,
13,
9651,
330,
3746,
29918,
4841,
353,
274,
16434,
29918,
7529,
1839,
17492,
16215,
29887,
3746,
29918,
4841,
2033,
13,
9651,
2897,
29889,
21813,
3366,
29907,
29965,
7698,
29918,
2287,
19059,
29918,
22364,
3108,
353,
376,
29925,
8426,
29918,
29933,
3308,
29918,
1367,
29908,
29871,
13,
9651,
2897,
29889,
21813,
3366,
29907,
29965,
7698,
29918,
28607,
8979,
1307,
29918,
2287,
29963,
2965,
2890,
3108,
353,
330,
3746,
29918,
4841,
13,
9651,
1596,
29898,
29888,
29915,
15156,
330,
3746,
18999,
29901,
426,
29887,
3746,
29918,
4841,
29913,
1495,
13,
9651,
330,
3746,
29918,
4841,
29918,
1761,
353,
330,
3746,
29918,
4841,
29889,
5451,
29317,
1495,
13,
9651,
302,
29918,
29887,
3746,
353,
7431,
29898,
29887,
3746,
29918,
4841,
29918,
1761,
29897,
13,
4706,
1683,
29901,
13,
9651,
2897,
29889,
21813,
3366,
29907,
29965,
7698,
29918,
2287,
19059,
29918,
22364,
3108,
353,
376,
29925,
8426,
29918,
29933,
3308,
29918,
1367,
29908,
29871,
13,
9651,
2897,
29889,
21813,
3366,
29907,
29965,
7698,
29918,
28607,
8979,
1307,
29918,
2287,
29963,
2965,
2890,
3108,
353,
525,
29900,
29915,
13,
9651,
302,
29918,
29887,
3746,
353,
29871,
29896,
13,
9651,
1596,
877,
11403,
2323,
330,
3746,
4464,
1495,
13,
308,
13,
4706,
1904,
353,
8602,
552,
29873,
6779,
29898,
16859,
29918,
7529,
29892,
6694,
29922,
5574,
29897,
13,
4706,
565,
302,
29918,
29887,
3746,
29958,
29896,
29901,
13,
9651,
13705,
353,
15886,
29889,
5721,
2666,
29889,
29924,
381,
729,
287,
26910,
580,
13,
9651,
411,
13705,
29889,
6078,
7295,
13,
18884,
1904,
29889,
3188,
29918,
4299,
353,
2473,
29918,
29887,
3746,
29918,
4299,
29898,
4299,
29889,
3188,
29918,
4299,
29892,
330,
13364,
29922,
29876,
29918,
29887,
3746,
29897,
13,
9651,
396,
1904,
29889,
3188,
29918,
4299,
353,
15886,
29889,
3946,
294,
29889,
13239,
29889,
9910,
29918,
29887,
3746,
29918,
4299,
29898,
4299,
29889,
3188,
29918,
4299,
29892,
330,
13364,
29922,
29876,
29918,
29887,
3746,
29897,
13,
13,
4706,
7945,
29918,
27959,
353,
8602,
552,
1372,
1469,
21575,
29898,
17987,
8497,
29918,
4299,
29922,
4299,
29889,
3188,
29918,
4299,
29892,
13,
462,
462,
9651,
770,
29918,
5325,
29918,
24772,
29922,
1272,
29918,
12657,
29889,
14968,
29918,
1272,
29892,
13,
462,
462,
9651,
770,
29918,
7039,
29922,
1272,
29918,
12657,
29889,
1990,
29918,
7039,
29892,
13,
462,
462,
9651,
3579,
7529,
29918,
27959,
29897,
13,
13,
4706,
565,
848,
29918,
12657,
29889,
15480,
29901,
13,
9651,
659,
29918,
27959,
353,
12545,
29565,
552,
1372,
1469,
21575,
29898,
1272,
29918,
12657,
29889,
791,
29918,
1272,
29892,
13,
462,
462,
462,
1678,
848,
29918,
12657,
29889,
1990,
29918,
7039,
29892,
13,
462,
462,
462,
1678,
3579,
7529,
29918,
27959,
29897,
13,
4706,
28495,
353,
21954,
29873,
29918,
6758,
29898,
7529,
29918,
27959,
1839,
9264,
11287,
13,
4706,
12714,
353,
6024,
562,
2764,
4135,
2033,
13,
1678,
1596,
877,
29928,
12413,
1495,
13,
13,
13,
1678,
565,
6389,
29889,
690,
2017,
29918,
3166,
338,
451,
6213,
29901,
13,
4706,
1904,
29889,
1359,
29918,
4299,
29898,
5085,
29889,
690,
2017,
29918,
3166,
29897,
13,
268,
13,
1678,
1596,
877,
19795,
2227,
1307,
16999,
2287,
29931,
1495,
13,
1678,
1904,
29889,
4299,
29889,
12198,
29898,
6758,
29922,
6758,
267,
29892,
29871,
13,
462,
4706,
5994,
3950,
29922,
7529,
29918,
14968,
1839,
20640,
3950,
7464,
29871,
13,
462,
4706,
21556,
29922,
16414,
29897,
13,
13,
1678,
565,
525,
2695,
3317,
29915,
297,
274,
16434,
29918,
7529,
29901,
13,
4706,
8636,
29918,
2695,
3317,
353,
274,
16434,
29918,
7529,
1839,
2695,
3317,
2033,
13,
4706,
8636,
29918,
7620,
29918,
24772,
353,
274,
16434,
29918,
7529,
1839,
17492,
2033,
13,
4706,
758,
14968,
29918,
1627,
15933,
29918,
2695,
3317,
29898,
4299,
29889,
1627,
15933,
29918,
4299,
29892,
29871,
13,
462,
462,
29871,
848,
29918,
12657,
29892,
29871,
13,
462,
462,
29871,
8636,
29918,
2695,
3317,
29892,
259,
13,
462,
462,
29871,
8636,
29918,
7620,
29918,
24772,
29897,
13,
13,
1678,
4955,
353,
1904,
29889,
4299,
29889,
9202,
29918,
27959,
29898,
14968,
29918,
27959,
29892,
13,
462,
18884,
8845,
29918,
1272,
29922,
791,
29918,
27959,
29892,
259,
13,
462,
18884,
21502,
12168,
29922,
7529,
29918,
14968,
1839,
29876,
29918,
1022,
2878,
29879,
7464,
29871,
13,
462,
18884,
6939,
29879,
29922,
14035,
29879,
29892,
13,
462,
18884,
26952,
29922,
29896,
29892,
13,
462,
18884,
671,
29918,
18056,
307,
985,
292,
29922,
8824,
29897,
13,
13,
1678,
565,
8636,
29918,
14968,
1839,
5317,
29918,
18434,
2033,
29901,
13,
4706,
6492,
29918,
29887,
2390,
386,
29879,
29898,
18434,
29892,
24580,
29918,
7620,
29918,
2084,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
2
] |
osprey/open.py | cjbassi/claw | 14 | 107087 | import subprocess
import sys
config_dir_path = None
history_file_path = None
log_file_path = None
def open(path):
if sys.platform == 'darwin':
subprocess.Popen(['open', path])
elif sys.platform == 'win32':
subprocess.Popen(['start', '', path])
else:
subprocess.Popen(['xdg-open', path])
def open_config_dir():
global config_dir_path
open(config_dir_path)
def open_history_file():
global history_file_path
open(history_file_path)
def open_log_file():
global log_file_path
open(log_file_path)
| [
1,
1053,
1014,
5014,
13,
5215,
10876,
13,
13,
2917,
29918,
3972,
29918,
2084,
353,
6213,
13,
18434,
29918,
1445,
29918,
2084,
353,
6213,
13,
1188,
29918,
1445,
29918,
2084,
353,
6213,
13,
13,
13,
1753,
1722,
29898,
2084,
1125,
13,
1678,
565,
10876,
29889,
12120,
1275,
525,
16702,
5080,
2396,
13,
4706,
1014,
5014,
29889,
29925,
3150,
18959,
3150,
742,
2224,
2314,
13,
1678,
25342,
10876,
29889,
12120,
1275,
525,
5080,
29941,
29906,
2396,
13,
4706,
1014,
5014,
29889,
29925,
3150,
18959,
2962,
742,
15516,
2224,
2314,
13,
1678,
1683,
29901,
13,
4706,
1014,
5014,
29889,
29925,
3150,
18959,
29916,
20726,
29899,
3150,
742,
2224,
2314,
13,
13,
13,
1753,
1722,
29918,
2917,
29918,
3972,
7295,
13,
1678,
5534,
2295,
29918,
3972,
29918,
2084,
13,
1678,
1722,
29898,
2917,
29918,
3972,
29918,
2084,
29897,
13,
13,
13,
1753,
1722,
29918,
18434,
29918,
1445,
7295,
13,
1678,
5534,
4955,
29918,
1445,
29918,
2084,
13,
1678,
1722,
29898,
18434,
29918,
1445,
29918,
2084,
29897,
13,
13,
13,
1753,
1722,
29918,
1188,
29918,
1445,
7295,
13,
1678,
5534,
1480,
29918,
1445,
29918,
2084,
13,
1678,
1722,
29898,
1188,
29918,
1445,
29918,
2084,
29897,
13,
2
] |
django_render/url_patterns_maker/url_patterns_maker.py | jasonmaoverlord/django_render | 76 | 81123 | <gh_stars>10-100
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Last modified: <NAME> (<EMAIL>)
"""urlpatterns_maker
This urlpatterns_maker is used to auto load url configurations loosely distributed in the ``views`` package.
Usage:
1. got views like this
#################################### my_app/views/default.py #####################################################
from django_render.annotations import *
@url(ur'^login/auth$', method=M.POST)
@post(auth_type=int, auth_id=str, auth_token=str, jpush_registration_id=str)
def login_auth(request, auth_type, auth_id, auth_token, jpush_registration_id):
pass
return True, {'token': login_token, 'user_id': user_id}
#################################### my_app/views/profile.py #####################################################
...
#################################### my_app/views/friend.py ######################################################
...
#################################### my_app/views/feed.py ########################################################
...
2. config urlpatterns as follow
#################################### my_app/views/__init__.py ####################################################
from django_render.url_patterns_maker import urlpatterns_maker
urlpatterns = urlpatterns_maker(default='^', profile='^my/')
3. equivalent to
urlpatterns = patterns('',
url(ur'^', include('chooper_api.views.default')),
url(ur'^my/', include('chooper_api.views.profile')),
url(ur'^friend/', include('chooper_api.views.friend')),
url(ur'^feed/', include('chooper_api.views.feed')),
)
note that unspecified views(friend.py and feed.py here) got their file name(without extension,
and surrounded by '^' and '/') as the url regex
"""
import inspect
import os
from django.conf.urls import patterns, include, url
revision = '0.1'
def urlpatterns_maker(**kwargs):
path_init = inspect.getouterframes(inspect.currentframe())[1][1]
path_views, file_name_init = os.path.split(path_init)
path_app, folder_name_views = os.path.split(path_views)
app_name = os.path.split(path_app)[1]
files = [f.split('.')[0] for f in os.listdir(path_views) if not f.startswith('_') and
(f.endswith('.py') or os.path.isdir(os.path.join(path_views, f))) and file_name_init != f]
path_list = path_init.split('/')
views_index = path_list.index('views')
prefix = '.'.join(path_list[views_index-1:-1])
# print(path_init)
# print(file_name_init)
# print(path_views)
# print(path_app)
# print(folder_name_views)
# print(app_name)
# print(files)
urlpatterns = []
for file_name in files:
if file_name in kwargs:
urlpatterns.append(
url(r'{0}'.format(kwargs[file_name]),
include('{0}.{1}'.format(prefix, file_name)))
)
else:
urlpatterns.append(
url(r'^{0}/'.format(file_name),
include('{0}.{1}'.format(prefix, file_name)))
)
for urlpattern in urlpatterns:
urlpattern.regex # url pattern check, thanks to django
return urlpatterns
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
9208,
9120,
29901,
529,
5813,
29958,
313,
29966,
26862,
6227,
12948,
13,
13,
15945,
29908,
2271,
11037,
29879,
29918,
28107,
13,
4013,
3142,
11037,
29879,
29918,
28107,
338,
1304,
304,
4469,
2254,
3142,
22920,
658,
359,
873,
13235,
29871,
297,
278,
4954,
7406,
16159,
3577,
29889,
13,
13,
27573,
29901,
13,
259,
29896,
29889,
2355,
8386,
763,
445,
13,
1678,
835,
13383,
13383,
29937,
590,
29918,
932,
29914,
7406,
29914,
4381,
29889,
2272,
835,
13383,
13383,
13383,
2277,
13,
1678,
515,
9557,
29918,
9482,
29889,
6735,
800,
1053,
334,
13,
1678,
732,
2271,
29898,
332,
29915,
29985,
7507,
29914,
5150,
29938,
742,
1158,
29922,
29924,
29889,
5438,
29897,
13,
1678,
732,
2490,
29898,
5150,
29918,
1853,
29922,
524,
29892,
4817,
29918,
333,
29922,
710,
29892,
4817,
29918,
6979,
29922,
710,
29892,
432,
5910,
29918,
1727,
8306,
29918,
333,
29922,
710,
29897,
13,
1678,
822,
6464,
29918,
5150,
29898,
3827,
29892,
4817,
29918,
1853,
29892,
4817,
29918,
333,
29892,
4817,
29918,
6979,
29892,
432,
5910,
29918,
1727,
8306,
29918,
333,
1125,
13,
4706,
1209,
13,
4706,
736,
5852,
29892,
11117,
6979,
2396,
6464,
29918,
6979,
29892,
525,
1792,
29918,
333,
2396,
1404,
29918,
333,
29913,
13,
13,
1678,
835,
13383,
13383,
29937,
590,
29918,
932,
29914,
7406,
29914,
10185,
29889,
2272,
835,
13383,
13383,
13383,
2277,
13,
1678,
2023,
13,
13,
1678,
835,
13383,
13383,
29937,
590,
29918,
932,
29914,
7406,
29914,
18326,
29889,
2272,
835,
13383,
13383,
13383,
2277,
29937,
13,
1678,
2023,
13,
13,
1678,
835,
13383,
13383,
29937,
590,
29918,
932,
29914,
7406,
29914,
18798,
29889,
2272,
835,
13383,
13383,
13383,
4136,
29937,
13,
1678,
2023,
13,
13,
259,
29906,
29889,
2295,
3142,
11037,
29879,
408,
1101,
13,
1678,
835,
13383,
13383,
29937,
590,
29918,
932,
29914,
7406,
29914,
1649,
2344,
26914,
2272,
835,
13383,
13383,
13383,
29937,
13,
1678,
515,
9557,
29918,
9482,
29889,
2271,
29918,
11037,
29879,
29918,
28107,
1053,
3142,
11037,
29879,
29918,
28107,
13,
1678,
3142,
11037,
29879,
353,
3142,
11037,
29879,
29918,
28107,
29898,
4381,
2433,
29985,
742,
8722,
2433,
29985,
1357,
29914,
1495,
13,
13,
259,
29941,
29889,
7126,
304,
13,
1678,
3142,
11037,
29879,
353,
15038,
877,
742,
13,
462,
965,
3142,
29898,
332,
29915,
29985,
742,
3160,
877,
1859,
3372,
29918,
2754,
29889,
7406,
29889,
4381,
1495,
511,
13,
462,
965,
3142,
29898,
332,
29915,
29985,
1357,
29914,
742,
3160,
877,
1859,
3372,
29918,
2754,
29889,
7406,
29889,
10185,
1495,
511,
13,
462,
965,
3142,
29898,
332,
29915,
29985,
18326,
29914,
742,
3160,
877,
1859,
3372,
29918,
2754,
29889,
7406,
29889,
18326,
1495,
511,
13,
462,
965,
3142,
29898,
332,
29915,
29985,
18798,
29914,
742,
3160,
877,
1859,
3372,
29918,
2754,
29889,
7406,
29889,
18798,
1495,
511,
13,
1678,
1723,
13,
13,
1678,
4443,
393,
443,
6550,
2164,
8386,
29898,
18326,
29889,
2272,
322,
8343,
29889,
2272,
1244,
29897,
2355,
1009,
934,
1024,
29898,
14037,
6081,
29892,
13,
1678,
322,
22047,
491,
525,
29985,
29915,
322,
8207,
1495,
408,
278,
3142,
6528,
13,
15945,
29908,
13,
13,
5215,
16096,
13,
5215,
2897,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
15038,
29892,
3160,
29892,
3142,
13,
13,
276,
4924,
353,
525,
29900,
29889,
29896,
29915,
13,
13,
13,
1753,
3142,
11037,
29879,
29918,
28107,
29898,
1068,
19290,
1125,
13,
1678,
2224,
29918,
2344,
353,
16096,
29889,
657,
5561,
19935,
29898,
1144,
1103,
29889,
3784,
2557,
3101,
29961,
29896,
3816,
29896,
29962,
13,
1678,
2224,
29918,
7406,
29892,
934,
29918,
978,
29918,
2344,
353,
2897,
29889,
2084,
29889,
5451,
29898,
2084,
29918,
2344,
29897,
13,
1678,
2224,
29918,
932,
29892,
4138,
29918,
978,
29918,
7406,
353,
2897,
29889,
2084,
29889,
5451,
29898,
2084,
29918,
7406,
29897,
13,
1678,
623,
29918,
978,
353,
2897,
29889,
2084,
29889,
5451,
29898,
2084,
29918,
932,
9601,
29896,
29962,
13,
1678,
2066,
353,
518,
29888,
29889,
5451,
12839,
29861,
29900,
29962,
363,
285,
297,
2897,
29889,
1761,
3972,
29898,
2084,
29918,
7406,
29897,
565,
451,
285,
29889,
27382,
2541,
877,
29918,
1495,
322,
13,
632,
313,
29888,
29889,
1975,
2541,
12839,
2272,
1495,
470,
2897,
29889,
2084,
29889,
275,
3972,
29898,
359,
29889,
2084,
29889,
7122,
29898,
2084,
29918,
7406,
29892,
285,
4961,
322,
934,
29918,
978,
29918,
2344,
2804,
285,
29962,
13,
1678,
2224,
29918,
1761,
353,
2224,
29918,
2344,
29889,
5451,
11219,
1495,
13,
1678,
8386,
29918,
2248,
353,
2224,
29918,
1761,
29889,
2248,
877,
7406,
1495,
13,
1678,
10944,
353,
15300,
4286,
7122,
29898,
2084,
29918,
1761,
29961,
7406,
29918,
2248,
29899,
29896,
13018,
29896,
2314,
13,
1678,
396,
1596,
29898,
2084,
29918,
2344,
29897,
13,
1678,
396,
1596,
29898,
1445,
29918,
978,
29918,
2344,
29897,
13,
1678,
396,
1596,
29898,
2084,
29918,
7406,
29897,
13,
1678,
396,
1596,
29898,
2084,
29918,
932,
29897,
13,
1678,
396,
1596,
29898,
12083,
29918,
978,
29918,
7406,
29897,
13,
1678,
396,
1596,
29898,
932,
29918,
978,
29897,
13,
1678,
396,
1596,
29898,
5325,
29897,
13,
1678,
3142,
11037,
29879,
353,
5159,
13,
1678,
363,
934,
29918,
978,
297,
2066,
29901,
13,
4706,
565,
934,
29918,
978,
297,
9049,
5085,
29901,
13,
9651,
3142,
11037,
29879,
29889,
4397,
29898,
13,
462,
18884,
3142,
29898,
29878,
29915,
29912,
29900,
29913,
4286,
4830,
29898,
19290,
29961,
1445,
29918,
978,
11724,
13,
462,
462,
1678,
3160,
877,
29912,
29900,
1836,
29912,
29896,
29913,
4286,
4830,
29898,
13506,
29892,
934,
29918,
978,
4961,
13,
462,
462,
1678,
1723,
13,
4706,
1683,
29901,
13,
9651,
3142,
11037,
29879,
29889,
4397,
29898,
13,
462,
18884,
3142,
29898,
29878,
29915,
998,
29900,
6822,
4286,
4830,
29898,
1445,
29918,
978,
511,
13,
462,
462,
1678,
3160,
877,
29912,
29900,
1836,
29912,
29896,
29913,
4286,
4830,
29898,
13506,
29892,
934,
29918,
978,
4961,
13,
462,
462,
1678,
1723,
13,
4706,
363,
3142,
11037,
297,
3142,
11037,
29879,
29901,
13,
9651,
3142,
11037,
29889,
13087,
29871,
396,
3142,
4766,
1423,
29892,
3969,
304,
9557,
13,
1678,
736,
3142,
11037,
29879,
13,
2
] |
mlops/data_validation/__init__.py | colingwuyu/mlops | 1 | 58361 | <reponame>colingwuyu/mlops
from mlops.data_validation.view import view_report
| [
1,
529,
276,
1112,
420,
29958,
1054,
292,
29893,
8631,
29884,
29914,
29885,
417,
567,
13,
3166,
286,
417,
567,
29889,
1272,
29918,
18157,
29889,
1493,
1053,
1776,
29918,
12276,
13,
2
] |
DML/datasets_ids.py | yuichikano/Fashion-Image-Retrieval-System | 0 | 1613209 | # Copyright 2019 <NAME> and <NAME>
#
# 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.
# ==============================================================================
################# LIBRARIES ###############################
import warnings
warnings.filterwarnings("ignore")
import numpy as np, os, sys, pandas as pd, csv, copy
import torch, torch.nn as nn, matplotlib.pyplot as plt, random
from torch.utils.data import Dataset
from PIL import Image
from torchvision import transforms
from tqdm import tqdm
import pretrainedmodels.utils as utils
import auxiliaries as aux
"""============================================================================"""
################ FUNCTION TO RETURN ALL DATALOADERS NECESSARY ####################
def give_dataloaders(dataset, opt):
"""
Args:
dataset: string, name of dataset for which the dataloaders should be returned.
opt: argparse.Namespace, contains all training-specific parameters.
Returns:
dataloaders: dict of dataloaders for training, testing and evaluation on training.
"""
#Dataset selection
if opt.dataset=='cub200':
datasets = give_CUB200_datasets(opt)
elif opt.dataset=='cars196':
datasets = give_CARS196_datasets(opt)
elif opt.dataset=='online_products':
datasets = give_OnlineProducts_datasets(opt)
elif opt.dataset=='in-shop':
datasets = give_InShop_datasets(opt)
elif opt.dataset=='vehicle_id':
datasets = give_VehicleID_datasets(opt)
else:
raise Exception('No Dataset >{}< available!'.format(dataset))
#Move datasets to dataloaders.
dataloaders = {}
for key,dataset in datasets.items():
is_val = dataset.is_validation
dataloaders[key] = torch.utils.data.DataLoader(dataset, batch_size=opt.bs, num_workers=opt.kernels, shuffle=not is_val, pin_memory=True, drop_last=not is_val)
return dataloaders
"""============================================================================"""
################# FUNCTIONS TO RETURN TRAIN/VAL PYTORCH DATASETS FOR CUB200, CARS196, STANFORD ONLINE PRODUCTS, IN-SHOP CLOTHES, PKU VEHICLE-ID ####################################
def give_CUB200_datasets(opt):
"""
This function generates a training, testing and evaluation dataloader for Metric Learning on the CUB-200-2011 dataset.
For Metric Learning, the dataset classes are sorted by name, and the first half used for training while the last half is used for testing.
So no random shuffling of classes.
Args:
opt: argparse.Namespace, contains all traininig-specific parameters.
Returns:
dict of PyTorch datasets for training, testing and evaluation.
"""
image_sourcepath = opt.source_path+'/images'
#Find available data classes.
image_classes = sorted([x for x in os.listdir(image_sourcepath) if '._' not in x], key=lambda x: int(x.split('.')[0]))
#Make a index-to-labelname conversion dict.
conversion = {int(x.split('.')[0]):x.split('.')[-1] for x in image_classes}
#Generate a list of tuples (class_label, image_path)
image_list = {int(key.split('.')[0]):sorted([image_sourcepath+'/'+key+'/'+x for x in os.listdir(image_sourcepath+'/'+key) if '._' not in x]) for key in image_classes}
image_list = [[(key,img_path) for img_path in image_list[key]] for key in image_list.keys()]
image_list = [x for y in image_list for x in y]
#Image-dict of shape {class_idx:[list of paths to images belong to this class] ...}
image_dict = {}
for key, img_path in image_list:
key = key-1
if not key in image_dict.keys():
image_dict[key] = []
image_dict[key].append(img_path)
keys = sorted(list(image_dict.keys()))
#Following "Deep Metric Learning via Lifted Structured Feature Embedding", we use the first half of classes for training.
train,test = keys[:len(keys)//2], keys[len(keys)//2:]
train_image_dict, val_image_dict = {key:image_dict[key] for key in train},{key:image_dict[key] for key in test}
train_dataset = BaseTripletDataset(train_image_dict, opt, samples_per_class=opt.samples_per_class)
val_dataset = BaseTripletDataset(val_image_dict, opt, is_validation=True)
eval_dataset = BaseTripletDataset(train_image_dict, opt, is_validation=True)
train_dataset.conversion = conversion
val_dataset.conversion = conversion
eval_dataset.conversion = conversion
return {'training':train_dataset, 'testing':val_dataset, 'evaluation':eval_dataset}
def give_CARS196_datasets(opt):
"""
This function generates a training, testing and evaluation dataloader for Metric Learning on the CARS196 dataset.
For Metric Learning, the dataset classes are sorted by name, and the first half used for training while the last half is used for testing.
So no random shuffling of classes.
Args:
opt: argparse.Namespace, contains all traininig-specific parameters.
Returns:
dict of PyTorch datasets for training, testing and evaluation.
"""
image_sourcepath = opt.source_path+'/images'
#Find available data classes.
image_classes = sorted([x for x in os.listdir(image_sourcepath)])
#Make a index-to-labelname conversion dict.
conversion = {i:x for i,x in enumerate(image_classes)}
#Generate a list of tuples (class_label, image_path)
image_list = {i:sorted([image_sourcepath+'/'+key+'/'+x for x in os.listdir(image_sourcepath+'/'+key)]) for i,key in enumerate(image_classes)}
image_list = [[(key,img_path) for img_path in image_list[key]] for key in image_list.keys()]
image_list = [x for y in image_list for x in y]
#Image-dict of shape {class_idx:[list of paths to images belong to this class] ...}
image_dict = {}
for key, img_path in image_list:
key = key
# key = key-1
if not key in image_dict.keys():
image_dict[key] = []
image_dict[key].append(img_path)
keys = sorted(list(image_dict.keys()))
#Following "Deep Metric Learning via Lifted Structured Feature Embedding", we use the first half of classes for training.
train,test = keys[:len(keys)//2], keys[len(keys)//2:]
train_image_dict, val_image_dict = {key:image_dict[key] for key in train},{key:image_dict[key] for key in test}
train_dataset = BaseTripletDataset(train_image_dict, opt, samples_per_class=opt.samples_per_class)
val_dataset = BaseTripletDataset(val_image_dict, opt, is_validation=True)
eval_dataset = BaseTripletDataset(train_image_dict, opt, is_validation=True)
train_dataset.conversion = conversion
val_dataset.conversion = conversion
eval_dataset.conversion = conversion
return {'training':train_dataset, 'testing':val_dataset, 'evaluation':eval_dataset}
def give_OnlineProducts_datasets(opt):
"""
This function generates a training, testing and evaluation dataloader for Metric Learning on the Online-Products dataset.
For Metric Learning, training and test sets are provided by given text-files, Ebay_train.txt & Ebay_test.txt.
So no random shuffling of classes.
Args:
opt: argparse.Namespace, contains all traininig-specific parameters.
Returns:
dict of PyTorch datasets for training, testing and evaluation.
"""
image_sourcepath = opt.source_path+'/images'
#Load text-files containing classes and imagepaths.
training_files = pd.read_table(opt.source_path+'/Info_Files/Ebay_train.txt', header=0, delimiter=' ')
test_files = pd.read_table(opt.source_path+'/Info_Files/Ebay_test.txt', header=0, delimiter=' ')
#Generate Conversion dict.
conversion = {}
for class_id, path in zip(training_files['class_id'],training_files['path']):
conversion[class_id] = path.split('/')[0]
for class_id, path in zip(test_files['class_id'],test_files['path']):
conversion[class_id] = path.split('/')[0]
#Generate image_dicts of shape {class_idx:[list of paths to images belong to this class] ...}
train_image_dict, val_image_dict = {},{}
for key, img_path in zip(training_files['class_id'],training_files['path']):
key = key-1
if not key in train_image_dict.keys():
train_image_dict[key] = []
train_image_dict[key].append(image_sourcepath+'/'+img_path)
for key, img_path in zip(test_files['class_id'],test_files['path']):
key = key-1
if not key in val_image_dict.keys():
val_image_dict[key] = []
val_image_dict[key].append(image_sourcepath+'/'+img_path)
### Uncomment this if super-labels should be used to generate resp.datasets
# super_conversion = {}
# for super_class_id, path in zip(training_files['super_class_id'],training_files['path']):
# conversion[super_class_id] = path.split('/')[0]
# for key, img_path in zip(training_files['super_class_id'],training_files['path']):
# key = key-1
# if not key in super_train_image_dict.keys():
# super_train_image_dict[key] = []
# super_train_image_dict[key].append(image_sourcepath+'/'+img_path)
# super_train_dataset = BaseTripletDataset(super_train_image_dict, opt, is_validation=True)
# super_train_dataset.conversion = super_conversion
train_dataset = BaseTripletDataset(train_image_dict, opt, samples_per_class=opt.samples_per_class)
val_dataset = BaseTripletDataset(val_image_dict, opt, is_validation=True)
eval_dataset = BaseTripletDataset(train_image_dict, opt, is_validation=True)
train_dataset.conversion = conversion
val_dataset.conversion = conversion
eval_dataset.conversion = conversion
return {'training':train_dataset, 'testing':val_dataset, 'evaluation':eval_dataset}
# return {'training':train_dataset, 'testing':val_dataset, 'evaluation':eval_dataset, 'super_evaluation':super_train_dataset}
def give_InShop_datasets(opt):
"""
This function generates a training, testing and evaluation dataloader for Metric Learning on the In-Shop Clothes dataset.
For Metric Learning, training and test sets are provided by one text file, list_eval_partition.txt.
So no random shuffling of classes.
Args:
opt: argparse.Namespace, contains all traininig-specific parameters.
Returns:
dict of PyTorch datasets for training, testing (by query and gallery separation) and evaluation.
"""
#Load train-test-partition text file.
data_info = np.array(pd.read_table(opt.source_path+'/Eval/list_eval_partition.txt', header=1, delim_whitespace=True))[1:,:]
#Separate into training dataset and query/gallery dataset for testing.
train, query, gallery = data_info[data_info[:,2]=='train'][:,:2], data_info[data_info[:,2]=='query'][:,:2], data_info[data_info[:,2]=='gallery'][:,:2]
#Generate conversions(id verson)
# use_train_image_num = 10000
# use_val_image_num = int(use_train_image_num/3)
# np.random.seed(0)
# train_idx = np.random.choice(len(train), size=use_train_image_num, replace = False)
# train = train[train_idx]
# query_idx = np.random.choice(len(query), size=use_val_image_num, replace = False)
# query = query[query_idx]
# gallery_idx = np.random.choice(len(gallery), size=use_val_image_num, replace = False)
# gallery = gallery[gallery_idx]
#Generate conversions
lab_conv = {x:i for i,x in enumerate(np.unique(np.array([int(x.split('_')[-1]) for x in train[:,1]])))}
train[:,1] = np.array([lab_conv[int(x.split('_')[-1])] for x in train[:,1]])
lab_conv = {x:i for i,x in enumerate(np.unique(np.array([int(x.split('_')[-1]) for x in np.concatenate([query[:,1], gallery[:,1]])])))}
query[:,1] = np.array([lab_conv[int(x.split('_')[-1])] for x in query[:,1]])
gallery[:,1] = np.array([lab_conv[int(x.split('_')[-1])] for x in gallery[:,1]])
#Generate Image-Dicts for training, query and gallery of shape {class_idx:[list of paths to images belong to this class] ...}
train_image_dict = {}
for img_path, key in train:
if not key in train_image_dict.keys():
train_image_dict[key] = []
train_image_dict[key].append(opt.source_path+'/'+img_path)
query_image_dict = {}
for img_path, key in query:
if not key in query_image_dict.keys():
query_image_dict[key] = []
query_image_dict[key].append(opt.source_path+'/'+img_path)
gallery_image_dict = {}
for img_path, key in gallery:
if not key in gallery_image_dict.keys():
gallery_image_dict[key] = []
gallery_image_dict[key].append(opt.source_path+'/'+img_path)
### Uncomment this if super-labels should be used to generate resp.datasets
# super_train_image_dict, counter, super_assign = {},0,{}
# for img_path, _ in train:
# key = '_'.join(img_path.split('/')[1:3])
# if key not in super_assign.keys():
# super_assign[key] = counter
# counter += 1
# key = super_assign[key]
#
# if not key in super_train_image_dict.keys():
# super_train_image_dict[key] = []
# super_train_image_dict[key].append(opt.source_path+'/'+img_path)
# super_train_dataset = BaseTripletDataset(super_train_image_dict, opt, is_validation=True)
train_dataset = BaseTripletDataset(train_image_dict, opt, samples_per_class=opt.samples_per_class)
eval_dataset = BaseTripletDataset(train_image_dict, opt, is_validation=True)
query_dataset = BaseTripletDataset(query_image_dict, opt, is_validation=True)
gallery_dataset = BaseTripletDataset(gallery_image_dict, opt, is_validation=True)
return {'training':train_dataset, 'testing_query':query_dataset, 'evaluation':eval_dataset, 'testing_gallery':gallery_dataset}
# return {'training':train_dataset, 'testing_query':query_dataset, 'evaluation':eval_dataset, 'testing_gallery':gallery_dataset, 'super_evaluation':super_train_dataset}
def give_VehicleID_datasets(opt):
"""
This function generates a training, testing and evaluation dataloader for Metric Learning on the PKU Vehicle dataset.
For Metric Learning, training and (multiple) test sets are provided by separate text files, train_list and test_list_<n_classes_2_test>.txt.
So no random shuffling of classes.
Args:
opt: argparse.Namespace, contains all traininig-specific parameters.
Returns:
dict of PyTorch datasets for training, testing and evaluation.
"""
#Load respective text-files
train = np.array(pd.read_table(opt.source_path+'/train_test_split/train_list.txt', header=None, delim_whitespace=True))
small_test = np.array(pd.read_table(opt.source_path+'/train_test_split/test_list_800.txt', header=None, delim_whitespace=True))
medium_test = np.array(pd.read_table(opt.source_path+'/train_test_split/test_list_1600.txt', header=None, delim_whitespace=True))
big_test = np.array(pd.read_table(opt.source_path+'/train_test_split/test_list_2400.txt', header=None, delim_whitespace=True))
#Generate conversions
lab_conv = {x:i for i,x in enumerate(np.unique(train[:,1]))}
train[:,1] = np.array([lab_conv[x] for x in train[:,1]])
lab_conv = {x:i for i,x in enumerate(np.unique(np.concatenate([small_test[:,1], medium_test[:,1], big_test[:,1]])))}
small_test[:,1] = np.array([lab_conv[x] for x in small_test[:,1]])
medium_test[:,1] = np.array([lab_conv[x] for x in medium_test[:,1]])
big_test[:,1] = np.array([lab_conv[x] for x in big_test[:,1]])
#Generate Image-Dicts for training and different testings of shape {class_idx:[list of paths to images belong to this class] ...}
train_image_dict = {}
for img_path, key in train:
if not key in train_image_dict.keys():
train_image_dict[key] = []
train_image_dict[key].append(opt.source_path+'/image/{:07d}.jpg'.format(img_path))
small_test_dict = {}
for img_path, key in small_test:
if not key in small_test_dict.keys():
small_test_dict[key] = []
small_test_dict[key].append(opt.source_path+'/image/{:07d}.jpg'.format(img_path))
medium_test_dict = {}
for img_path, key in medium_test:
if not key in medium_test_dict.keys():
medium_test_dict[key] = []
medium_test_dict[key].append(opt.source_path+'/image/{:07d}.jpg'.format(img_path))
big_test_dict = {}
for img_path, key in big_test:
if not key in big_test_dict.keys():
big_test_dict[key] = []
big_test_dict[key].append(opt.source_path+'/image/{:07d}.jpg'.format(img_path))
train_dataset = BaseTripletDataset(train_image_dict, opt, samples_per_class=opt.samples_per_class)
eval_dataset = BaseTripletDataset(train_image_dict, opt, is_validation=True)
val_small_dataset = BaseTripletDataset(small_test_dict, opt, is_validation=True)
val_medium_dataset = BaseTripletDataset(medium_test_dict, opt, is_validation=True)
val_big_dataset = BaseTripletDataset(big_test_dict, opt, is_validation=True)
return {'training':train_dataset, 'testing_set1':val_small_dataset, 'testing_set2':val_medium_dataset, \
'testing_set3':val_big_dataset, 'evaluation':eval_dataset}
################## BASIC PYTORCH DATASET USED FOR ALL DATASETS ##################################
class BaseTripletDataset(Dataset):
"""
Dataset class to provide (augmented) correctly prepared training samples corresponding to standard DML literature.
This includes normalizing to ImageNet-standards, and Random & Resized cropping of shapes 224 for ResNet50 and 227 for
GoogLeNet during Training. During validation, only resizing to 256 or center cropping to 224/227 is performed.
"""
def __init__(self, image_dict, opt, samples_per_class=8, is_validation=False):
"""
Dataset Init-Function.
Args:
image_dict: dict, Dictionary of shape {class_idx:[list of paths to images belong to this class] ...} providing all the training paths and classes.
opt: argparse.Namespace, contains all training-specific parameters.
samples_per_class: Number of samples to draw from one class before moving to the next when filling the batch.
is_validation: If is true, dataset properties for validation/testing are used instead of ones for training.
Returns:
Nothing!
"""
#Define length of dataset
self.n_files = np.sum([len(image_dict[key]) for key in image_dict.keys()])
self.is_validation = is_validation
self.pars = opt
self.image_dict = image_dict
self.avail_classes = sorted(list(self.image_dict.keys()))
#Convert image dictionary from classname:content to class_idx:content, because the initial indices are not necessarily from 0 - <n_classes>.
self.image_dict = {i:self.image_dict[key] for i,key in enumerate(self.avail_classes)}
self.avail_classes = sorted(list(self.image_dict.keys()))
#Init. properties that are used when filling up batches.
if not self.is_validation:
self.samples_per_class = samples_per_class
#Select current class to sample images from up to <samples_per_class>
self.current_class = np.random.randint(len(self.avail_classes))
self.classes_visited = [self.current_class, self.current_class]
self.n_samples_drawn = 0
#Data augmentation/processing methods.
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],std=[0.229, 0.224, 0.225])
transf_list = []
if not self.is_validation:
transf_list.extend([transforms.RandomResizedCrop(size=224) if opt.arch=='resnet50' else transforms.RandomResizedCrop(size=227),
transforms.RandomHorizontalFlip(0.5)])
else:
transf_list.extend([transforms.Resize(256),
transforms.CenterCrop(224) if opt.arch=='resnet50' else transforms.CenterCrop(227)])
transf_list.extend([transforms.ToTensor(), normalize])
self.transform = transforms.Compose(transf_list)
#Convert Image-Dict to list of (image_path, image_class). Allows for easier direct sampling.
self.image_list = [[(x,key) for x in self.image_dict[key]] for key in self.image_dict.keys()]
self.image_list = [x for y in self.image_list for x in y]
#Flag that denotes if dataset is called for the first time.
self.is_init = True
def ensure_3dim(self, img):
"""
Function that ensures that the input img is three-dimensional.
Args:
img: PIL.Image, image which is to be checked for three-dimensionality (i.e. if some images are black-and-white in an otherwise coloured dataset).
Returns:
Checked PIL.Image img.
"""
if len(img.size)==2:
img = img.convert('RGB')
return img
def __getitem__(self, idx):
"""
Args:
idx: Sample idx for training sample
Returns:
tuple of form (sample_class, torch.Tensor() of input image)
"""
if self.is_init:
self.current_class = self.avail_classes[idx%len(self.avail_classes)]
self.is_init = False
if not self.is_validation:
if self.samples_per_class==1:
return self.image_list[idx][-1], self.transform(self.ensure_3dim(Image.open(self.image_list[idx][0])))
if self.n_samples_drawn==self.samples_per_class:
#Once enough samples per class have been drawn, we choose another class to draw samples from.
#Note that we ensure with self.classes_visited that no class is chosen if it had been chosen
#previously or one before that.
counter = copy.deepcopy(self.avail_classes)
for prev_class in self.classes_visited:
if prev_class in counter: counter.remove(prev_class)
self.current_class = counter[idx%len(counter)]
self.classes_visited = self.classes_visited[1:]+[self.current_class]
self.n_samples_drawn = 0
class_sample_idx = idx%len(self.image_dict[self.current_class])
self.n_samples_drawn += 1
out_img = self.transform(self.ensure_3dim(Image.open(self.image_dict[self.current_class][class_sample_idx])))
return self.current_class,out_img
else:
return self.image_list[idx][-1], self.transform(self.ensure_3dim(Image.open(self.image_list[idx][0])))
def __len__(self):
return self.n_files
| [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
529,
5813,
29958,
322,
529,
5813,
29958,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
2751,
13,
13,
13383,
29937,
365,
8979,
29934,
1718,
29059,
835,
13383,
7346,
4136,
13,
5215,
18116,
13,
25442,
886,
29889,
4572,
25442,
886,
703,
17281,
1159,
13,
13,
5215,
12655,
408,
7442,
29892,
2897,
29892,
10876,
29892,
11701,
408,
10518,
29892,
11799,
29892,
3509,
13,
5215,
4842,
305,
29892,
4842,
305,
29889,
15755,
408,
302,
29876,
29892,
22889,
29889,
2272,
5317,
408,
14770,
29892,
4036,
13,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
13373,
24541,
13,
3166,
349,
6227,
1053,
7084,
13,
3166,
4842,
305,
4924,
1053,
4327,
29879,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
13,
5215,
758,
3018,
1312,
9794,
29889,
13239,
408,
3667,
29879,
13,
5215,
29587,
4314,
408,
3479,
13,
13,
13,
15945,
29908,
9166,
9166,
9166,
9166,
4936,
25512,
13776,
29908,
13,
13383,
383,
28700,
7495,
28081,
24015,
15149,
27640,
1964,
29949,
3035,
23598,
14693,
23524,
19926,
835,
13383,
29937,
13,
1753,
2367,
29918,
29881,
2075,
29877,
24574,
29898,
24713,
29892,
3523,
1125,
13,
1678,
9995,
13,
1678,
826,
3174,
29901,
13,
4706,
8783,
29901,
1347,
29892,
1024,
310,
8783,
363,
607,
278,
1418,
7003,
24574,
881,
367,
4133,
29889,
13,
4706,
3523,
29901,
268,
1852,
5510,
29889,
23335,
29892,
3743,
599,
6694,
29899,
14940,
4128,
29889,
13,
1678,
16969,
29901,
13,
4706,
1418,
7003,
24574,
29901,
9657,
310,
1418,
7003,
24574,
363,
6694,
29892,
6724,
322,
17983,
373,
6694,
29889,
13,
1678,
9995,
13,
1678,
396,
16390,
24541,
9262,
13,
1678,
565,
3523,
29889,
24713,
1360,
29915,
29883,
431,
29906,
29900,
29900,
2396,
13,
4706,
20035,
353,
2367,
29918,
29907,
7466,
29906,
29900,
29900,
29918,
14538,
1691,
29898,
3670,
29897,
13,
1678,
25342,
3523,
29889,
24713,
1360,
29915,
29883,
1503,
29896,
29929,
29953,
2396,
13,
4706,
20035,
353,
2367,
29918,
29907,
1718,
29903,
29896,
29929,
29953,
29918,
14538,
1691,
29898,
3670,
29897,
13,
1678,
25342,
3523,
29889,
24713,
1360,
29915,
14627,
29918,
14456,
2396,
13,
4706,
20035,
353,
2367,
29918,
2951,
1220,
25767,
29918,
14538,
1691,
29898,
3670,
29897,
13,
1678,
25342,
3523,
29889,
24713,
1360,
29915,
262,
29899,
19032,
2396,
13,
4706,
20035,
353,
2367,
29918,
797,
2713,
459,
29918,
14538,
1691,
29898,
3670,
29897,
13,
1678,
25342,
3523,
29889,
24713,
1360,
29915,
345,
29882,
2512,
29918,
333,
2396,
13,
4706,
20035,
353,
2367,
29918,
29963,
14797,
2512,
1367,
29918,
14538,
1691,
29898,
3670,
29897,
13,
1678,
1683,
29901,
13,
4706,
12020,
8960,
877,
3782,
13373,
24541,
1405,
8875,
29966,
3625,
29991,
4286,
4830,
29898,
24713,
876,
13,
13,
1678,
396,
16619,
20035,
304,
1418,
7003,
24574,
29889,
13,
1678,
1418,
7003,
24574,
353,
6571,
13,
1678,
363,
1820,
29892,
24713,
297,
20035,
29889,
7076,
7295,
13,
4706,
338,
29918,
791,
353,
8783,
29889,
275,
29918,
18157,
13,
4706,
1418,
7003,
24574,
29961,
1989,
29962,
353,
4842,
305,
29889,
13239,
29889,
1272,
29889,
1469,
10036,
29898,
24713,
29892,
9853,
29918,
2311,
29922,
3670,
29889,
5824,
29892,
954,
29918,
1287,
414,
29922,
3670,
29889,
22178,
1379,
29892,
528,
21897,
29922,
1333,
338,
29918,
791,
29892,
12534,
29918,
14834,
29922,
5574,
29892,
5768,
29918,
4230,
29922,
1333,
338,
29918,
791,
29897,
13,
13,
1678,
736,
1418,
7003,
24574,
13,
13,
13,
15945,
29908,
9166,
9166,
9166,
9166,
4936,
25512,
13776,
29908,
13,
13383,
29937,
383,
28700,
29903,
7495,
28081,
24015,
323,
4717,
1177,
29914,
8932,
349,
29979,
29911,
1955,
3210,
27640,
8127,
9375,
15842,
315,
7466,
29906,
29900,
29900,
29892,
315,
1718,
29903,
29896,
29929,
29953,
29892,
6850,
2190,
22051,
29928,
6732,
18521,
13756,
14849,
1783,
29903,
29892,
2672,
29899,
7068,
4590,
17332,
2891,
29950,
2890,
29892,
24457,
29965,
478,
29923,
29950,
2965,
1307,
29899,
1367,
835,
13383,
13383,
29937,
13,
1753,
2367,
29918,
29907,
7466,
29906,
29900,
29900,
29918,
14538,
1691,
29898,
3670,
1125,
13,
1678,
9995,
13,
1678,
910,
740,
16785,
263,
6694,
29892,
6724,
322,
17983,
1418,
7003,
1664,
363,
4737,
2200,
29257,
373,
278,
315,
7466,
29899,
29906,
29900,
29900,
29899,
29906,
29900,
29896,
29896,
8783,
29889,
13,
1678,
1152,
4737,
2200,
29257,
29892,
278,
8783,
4413,
526,
12705,
491,
1024,
29892,
322,
278,
937,
4203,
1304,
363,
6694,
1550,
278,
1833,
4203,
338,
1304,
363,
6724,
29889,
13,
1678,
1105,
694,
4036,
528,
3096,
1847,
310,
4413,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
3523,
29901,
1852,
5510,
29889,
23335,
29892,
3743,
599,
7945,
262,
335,
29899,
14940,
4128,
29889,
13,
1678,
16969,
29901,
13,
4706,
9657,
310,
10772,
29911,
25350,
20035,
363,
6694,
29892,
6724,
322,
17983,
29889,
13,
1678,
9995,
13,
1678,
1967,
29918,
4993,
2084,
29871,
353,
3523,
29889,
4993,
29918,
2084,
23097,
29914,
8346,
29915,
13,
1678,
396,
12542,
3625,
848,
4413,
29889,
13,
1678,
1967,
29918,
13203,
353,
12705,
4197,
29916,
363,
921,
297,
2897,
29889,
1761,
3972,
29898,
3027,
29918,
4993,
2084,
29897,
565,
525,
3032,
29915,
451,
297,
921,
1402,
1820,
29922,
2892,
921,
29901,
938,
29898,
29916,
29889,
5451,
12839,
29861,
29900,
12622,
13,
1678,
396,
9984,
263,
2380,
29899,
517,
29899,
1643,
978,
11301,
9657,
29889,
13,
1678,
11301,
1678,
353,
426,
524,
29898,
29916,
29889,
5451,
12839,
29861,
29900,
29962,
1125,
29916,
29889,
5451,
12839,
1495,
14352,
29896,
29962,
363,
921,
297,
1967,
29918,
13203,
29913,
13,
1678,
396,
5631,
403,
263,
1051,
310,
5291,
2701,
313,
1990,
29918,
1643,
29892,
1967,
29918,
2084,
29897,
13,
1678,
1967,
29918,
1761,
1678,
353,
426,
524,
29898,
1989,
29889,
5451,
12839,
29861,
29900,
29962,
1125,
24582,
4197,
3027,
29918,
4993,
2084,
23097,
29914,
18717,
1989,
23097,
29914,
18717,
29916,
363,
921,
297,
2897,
29889,
1761,
3972,
29898,
3027,
29918,
4993,
2084,
23097,
29914,
18717,
1989,
29897,
565,
525,
3032,
29915,
451,
297,
921,
2314,
363,
1820,
297,
1967,
29918,
13203,
29913,
13,
1678,
1967,
29918,
1761,
1678,
353,
5519,
29898,
1989,
29892,
2492,
29918,
2084,
29897,
363,
10153,
29918,
2084,
297,
1967,
29918,
1761,
29961,
1989,
5262,
363,
1820,
297,
1967,
29918,
1761,
29889,
8149,
580,
29962,
13,
1678,
1967,
29918,
1761,
1678,
353,
518,
29916,
363,
343,
297,
1967,
29918,
1761,
363,
921,
297,
343,
29962,
13,
13,
1678,
396,
2940,
29899,
8977,
310,
8267,
426,
1990,
29918,
13140,
10834,
1761,
310,
10898,
304,
4558,
6852,
304,
445,
770,
29962,
2023,
29913,
13,
1678,
1967,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
1820,
29892,
10153,
29918,
2084,
297,
1967,
29918,
1761,
29901,
13,
4706,
1820,
353,
1820,
29899,
29896,
13,
4706,
565,
451,
1820,
297,
1967,
29918,
8977,
29889,
8149,
7295,
13,
9651,
1967,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
1967,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
2492,
29918,
2084,
29897,
13,
13,
1678,
6611,
353,
12705,
29898,
1761,
29898,
3027,
29918,
8977,
29889,
8149,
22130,
13,
13,
1678,
396,
29943,
2952,
292,
376,
2772,
1022,
4737,
2200,
29257,
3025,
365,
2027,
287,
28771,
2955,
5169,
1535,
2812,
2580,
8497,
613,
591,
671,
278,
937,
4203,
310,
4413,
363,
6694,
29889,
13,
1678,
7945,
29892,
1688,
353,
6611,
7503,
2435,
29898,
8149,
29897,
458,
29906,
1402,
6611,
29961,
2435,
29898,
8149,
29897,
458,
29906,
17531,
13,
1678,
7945,
29918,
3027,
29918,
8977,
29892,
659,
29918,
3027,
29918,
8977,
353,
426,
1989,
29901,
3027,
29918,
8977,
29961,
1989,
29962,
363,
1820,
297,
7945,
29087,
1989,
29901,
3027,
29918,
8977,
29961,
1989,
29962,
363,
1820,
297,
1243,
29913,
13,
13,
13,
1678,
7945,
29918,
24713,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
11916,
29918,
546,
29918,
1990,
29922,
3670,
29889,
27736,
29918,
546,
29918,
1990,
29897,
13,
1678,
659,
29918,
24713,
259,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
791,
29918,
3027,
29918,
8977,
29892,
259,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
19745,
29918,
24713,
29871,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
13,
1678,
7945,
29918,
24713,
29889,
535,
3259,
353,
11301,
13,
1678,
659,
29918,
24713,
29889,
535,
3259,
259,
353,
11301,
13,
1678,
19745,
29918,
24713,
29889,
535,
3259,
29871,
353,
11301,
13,
13,
1678,
736,
11117,
26495,
2396,
14968,
29918,
24713,
29892,
525,
13424,
2396,
791,
29918,
24713,
29892,
525,
24219,
362,
2396,
14513,
29918,
24713,
29913,
13,
13,
13,
1753,
2367,
29918,
29907,
1718,
29903,
29896,
29929,
29953,
29918,
14538,
1691,
29898,
3670,
1125,
13,
1678,
9995,
13,
1678,
910,
740,
16785,
263,
6694,
29892,
6724,
322,
17983,
1418,
7003,
1664,
363,
4737,
2200,
29257,
373,
278,
315,
1718,
29903,
29896,
29929,
29953,
8783,
29889,
13,
1678,
1152,
4737,
2200,
29257,
29892,
278,
8783,
4413,
526,
12705,
491,
1024,
29892,
322,
278,
937,
4203,
1304,
363,
6694,
1550,
278,
1833,
4203,
338,
1304,
363,
6724,
29889,
13,
1678,
1105,
694,
4036,
528,
3096,
1847,
310,
4413,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
3523,
29901,
1852,
5510,
29889,
23335,
29892,
3743,
599,
7945,
262,
335,
29899,
14940,
4128,
29889,
13,
1678,
16969,
29901,
13,
4706,
9657,
310,
10772,
29911,
25350,
20035,
363,
6694,
29892,
6724,
322,
17983,
29889,
13,
1678,
9995,
13,
1678,
1967,
29918,
4993,
2084,
29871,
353,
3523,
29889,
4993,
29918,
2084,
23097,
29914,
8346,
29915,
13,
1678,
396,
12542,
3625,
848,
4413,
29889,
13,
1678,
1967,
29918,
13203,
353,
12705,
4197,
29916,
363,
921,
297,
2897,
29889,
1761,
3972,
29898,
3027,
29918,
4993,
2084,
29897,
2314,
13,
1678,
396,
9984,
263,
2380,
29899,
517,
29899,
1643,
978,
11301,
9657,
29889,
13,
1678,
11301,
1678,
353,
426,
29875,
29901,
29916,
363,
474,
29892,
29916,
297,
26985,
29898,
3027,
29918,
13203,
2915,
13,
1678,
396,
5631,
403,
263,
1051,
310,
5291,
2701,
313,
1990,
29918,
1643,
29892,
1967,
29918,
2084,
29897,
13,
1678,
1967,
29918,
1761,
1678,
353,
426,
29875,
29901,
24582,
4197,
3027,
29918,
4993,
2084,
23097,
29914,
18717,
1989,
23097,
29914,
18717,
29916,
363,
921,
297,
2897,
29889,
1761,
3972,
29898,
3027,
29918,
4993,
2084,
23097,
29914,
18717,
1989,
29897,
2314,
363,
474,
29892,
1989,
297,
26985,
29898,
3027,
29918,
13203,
2915,
13,
1678,
1967,
29918,
1761,
1678,
353,
5519,
29898,
1989,
29892,
2492,
29918,
2084,
29897,
363,
10153,
29918,
2084,
297,
1967,
29918,
1761,
29961,
1989,
5262,
363,
1820,
297,
1967,
29918,
1761,
29889,
8149,
580,
29962,
13,
1678,
1967,
29918,
1761,
1678,
353,
518,
29916,
363,
343,
297,
1967,
29918,
1761,
363,
921,
297,
343,
29962,
13,
13,
1678,
396,
2940,
29899,
8977,
310,
8267,
426,
1990,
29918,
13140,
10834,
1761,
310,
10898,
304,
4558,
6852,
304,
445,
770,
29962,
2023,
29913,
13,
1678,
1967,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
1820,
29892,
10153,
29918,
2084,
297,
1967,
29918,
1761,
29901,
13,
4706,
1820,
353,
1820,
13,
4706,
396,
1820,
353,
1820,
29899,
29896,
13,
4706,
565,
451,
1820,
297,
1967,
29918,
8977,
29889,
8149,
7295,
13,
9651,
1967,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
1967,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
2492,
29918,
2084,
29897,
13,
13,
1678,
6611,
353,
12705,
29898,
1761,
29898,
3027,
29918,
8977,
29889,
8149,
22130,
13,
13,
1678,
396,
29943,
2952,
292,
376,
2772,
1022,
4737,
2200,
29257,
3025,
365,
2027,
287,
28771,
2955,
5169,
1535,
2812,
2580,
8497,
613,
591,
671,
278,
937,
4203,
310,
4413,
363,
6694,
29889,
13,
1678,
7945,
29892,
1688,
353,
6611,
7503,
2435,
29898,
8149,
29897,
458,
29906,
1402,
6611,
29961,
2435,
29898,
8149,
29897,
458,
29906,
17531,
13,
1678,
7945,
29918,
3027,
29918,
8977,
29892,
659,
29918,
3027,
29918,
8977,
353,
426,
1989,
29901,
3027,
29918,
8977,
29961,
1989,
29962,
363,
1820,
297,
7945,
29087,
1989,
29901,
3027,
29918,
8977,
29961,
1989,
29962,
363,
1820,
297,
1243,
29913,
13,
13,
1678,
7945,
29918,
24713,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
11916,
29918,
546,
29918,
1990,
29922,
3670,
29889,
27736,
29918,
546,
29918,
1990,
29897,
13,
1678,
659,
29918,
24713,
259,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
791,
29918,
3027,
29918,
8977,
29892,
259,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
19745,
29918,
24713,
29871,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
13,
1678,
7945,
29918,
24713,
29889,
535,
3259,
353,
11301,
13,
1678,
659,
29918,
24713,
29889,
535,
3259,
259,
353,
11301,
13,
1678,
19745,
29918,
24713,
29889,
535,
3259,
29871,
353,
11301,
13,
13,
1678,
736,
11117,
26495,
2396,
14968,
29918,
24713,
29892,
525,
13424,
2396,
791,
29918,
24713,
29892,
525,
24219,
362,
2396,
14513,
29918,
24713,
29913,
13,
13,
13,
1753,
2367,
29918,
2951,
1220,
25767,
29918,
14538,
1691,
29898,
3670,
1125,
13,
1678,
9995,
13,
1678,
910,
740,
16785,
263,
6694,
29892,
6724,
322,
17983,
1418,
7003,
1664,
363,
4737,
2200,
29257,
373,
278,
13542,
29899,
25767,
8783,
29889,
13,
1678,
1152,
4737,
2200,
29257,
29892,
6694,
322,
1243,
6166,
526,
4944,
491,
2183,
1426,
29899,
5325,
29892,
26302,
388,
29918,
14968,
29889,
3945,
669,
26302,
388,
29918,
1688,
29889,
3945,
29889,
13,
1678,
1105,
694,
4036,
528,
3096,
1847,
310,
4413,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
3523,
29901,
1852,
5510,
29889,
23335,
29892,
3743,
599,
7945,
262,
335,
29899,
14940,
4128,
29889,
13,
1678,
16969,
29901,
13,
4706,
9657,
310,
10772,
29911,
25350,
20035,
363,
6694,
29892,
6724,
322,
17983,
29889,
13,
1678,
9995,
13,
1678,
1967,
29918,
4993,
2084,
29871,
353,
3523,
29889,
4993,
29918,
2084,
23097,
29914,
8346,
29915,
13,
1678,
396,
5896,
1426,
29899,
5325,
6943,
4413,
322,
1967,
24772,
29889,
13,
1678,
6694,
29918,
5325,
353,
10518,
29889,
949,
29918,
2371,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
3401,
29918,
10547,
29914,
29923,
27495,
29918,
14968,
29889,
3945,
742,
4839,
29922,
29900,
29892,
28552,
2433,
25710,
13,
1678,
1243,
29918,
5325,
268,
353,
10518,
29889,
949,
29918,
2371,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
3401,
29918,
10547,
29914,
29923,
27495,
29918,
1688,
29889,
3945,
742,
4839,
29922,
29900,
29892,
28552,
2433,
25710,
13,
13,
1678,
396,
5631,
403,
1281,
3259,
9657,
29889,
13,
1678,
11301,
353,
6571,
13,
1678,
363,
770,
29918,
333,
29892,
2224,
297,
14319,
29898,
26495,
29918,
5325,
1839,
1990,
29918,
333,
7464,
26495,
29918,
5325,
1839,
2084,
2033,
1125,
13,
4706,
11301,
29961,
1990,
29918,
333,
29962,
353,
2224,
29889,
5451,
11219,
29861,
29900,
29962,
13,
1678,
363,
770,
29918,
333,
29892,
2224,
297,
14319,
29898,
1688,
29918,
5325,
1839,
1990,
29918,
333,
7464,
1688,
29918,
5325,
1839,
2084,
2033,
1125,
13,
4706,
11301,
29961,
1990,
29918,
333,
29962,
353,
2224,
29889,
5451,
11219,
29861,
29900,
29962,
13,
13,
1678,
396,
5631,
403,
1967,
29918,
8977,
29879,
310,
8267,
426,
1990,
29918,
13140,
10834,
1761,
310,
10898,
304,
4558,
6852,
304,
445,
770,
29962,
2023,
29913,
13,
1678,
7945,
29918,
3027,
29918,
8977,
29892,
659,
29918,
3027,
29918,
8977,
29871,
353,
24335,
8875,
13,
1678,
363,
1820,
29892,
10153,
29918,
2084,
297,
14319,
29898,
26495,
29918,
5325,
1839,
1990,
29918,
333,
7464,
26495,
29918,
5325,
1839,
2084,
2033,
1125,
13,
4706,
1820,
353,
1820,
29899,
29896,
13,
4706,
565,
451,
1820,
297,
7945,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
9651,
7945,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
7945,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3027,
29918,
4993,
2084,
23097,
29914,
18717,
2492,
29918,
2084,
29897,
13,
13,
1678,
363,
1820,
29892,
10153,
29918,
2084,
297,
14319,
29898,
1688,
29918,
5325,
1839,
1990,
29918,
333,
7464,
1688,
29918,
5325,
1839,
2084,
2033,
1125,
13,
4706,
1820,
353,
1820,
29899,
29896,
13,
4706,
565,
451,
1820,
297,
659,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
9651,
659,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
659,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3027,
29918,
4993,
2084,
23097,
29914,
18717,
2492,
29918,
2084,
29897,
13,
13,
1678,
835,
853,
9342,
445,
565,
2428,
29899,
21134,
881,
367,
1304,
304,
5706,
4613,
29889,
14538,
1691,
13,
1678,
396,
2428,
29918,
535,
3259,
353,
6571,
13,
1678,
396,
363,
2428,
29918,
1990,
29918,
333,
29892,
2224,
297,
14319,
29898,
26495,
29918,
5325,
1839,
9136,
29918,
1990,
29918,
333,
7464,
26495,
29918,
5325,
1839,
2084,
2033,
1125,
13,
1678,
396,
268,
11301,
29961,
9136,
29918,
1990,
29918,
333,
29962,
353,
2224,
29889,
5451,
11219,
29861,
29900,
29962,
13,
1678,
396,
363,
1820,
29892,
10153,
29918,
2084,
297,
14319,
29898,
26495,
29918,
5325,
1839,
9136,
29918,
1990,
29918,
333,
7464,
26495,
29918,
5325,
1839,
2084,
2033,
1125,
13,
1678,
396,
268,
1820,
353,
1820,
29899,
29896,
13,
1678,
396,
268,
565,
451,
1820,
297,
2428,
29918,
14968,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
1678,
396,
308,
2428,
29918,
14968,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
1678,
396,
268,
2428,
29918,
14968,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3027,
29918,
4993,
2084,
23097,
29914,
18717,
2492,
29918,
2084,
29897,
13,
1678,
396,
2428,
29918,
14968,
29918,
24713,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
9136,
29918,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
396,
2428,
29918,
14968,
29918,
24713,
29889,
535,
3259,
353,
2428,
29918,
535,
3259,
13,
13,
13,
1678,
7945,
29918,
24713,
539,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
11916,
29918,
546,
29918,
1990,
29922,
3670,
29889,
27736,
29918,
546,
29918,
1990,
29897,
13,
1678,
659,
29918,
24713,
308,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
791,
29918,
3027,
29918,
8977,
29892,
259,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
19745,
29918,
24713,
4706,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
13,
1678,
7945,
29918,
24713,
29889,
535,
3259,
539,
353,
11301,
13,
1678,
659,
29918,
24713,
29889,
535,
3259,
308,
353,
11301,
13,
1678,
19745,
29918,
24713,
29889,
535,
3259,
4706,
353,
11301,
13,
13,
1678,
736,
11117,
26495,
2396,
14968,
29918,
24713,
29892,
525,
13424,
2396,
791,
29918,
24713,
29892,
525,
24219,
362,
2396,
14513,
29918,
24713,
29913,
13,
1678,
396,
736,
11117,
26495,
2396,
14968,
29918,
24713,
29892,
525,
13424,
2396,
791,
29918,
24713,
29892,
525,
24219,
362,
2396,
14513,
29918,
24713,
29892,
525,
9136,
29918,
24219,
362,
2396,
9136,
29918,
14968,
29918,
24713,
29913,
13,
13,
13,
1753,
2367,
29918,
797,
2713,
459,
29918,
14538,
1691,
29898,
3670,
1125,
13,
1678,
9995,
13,
1678,
910,
740,
16785,
263,
6694,
29892,
6724,
322,
17983,
1418,
7003,
1664,
363,
4737,
2200,
29257,
373,
278,
512,
29899,
2713,
459,
2233,
720,
267,
8783,
29889,
13,
1678,
1152,
4737,
2200,
29257,
29892,
6694,
322,
1243,
6166,
526,
4944,
491,
697,
1426,
934,
29892,
1051,
29918,
14513,
29918,
16707,
29889,
3945,
29889,
13,
1678,
1105,
694,
4036,
528,
3096,
1847,
310,
4413,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
3523,
29901,
1852,
5510,
29889,
23335,
29892,
3743,
599,
7945,
262,
335,
29899,
14940,
4128,
29889,
13,
1678,
16969,
29901,
13,
4706,
9657,
310,
10772,
29911,
25350,
20035,
363,
6694,
29892,
6724,
313,
1609,
2346,
322,
23363,
23683,
29897,
322,
17983,
29889,
13,
1678,
9995,
13,
1678,
396,
5896,
7945,
29899,
1688,
29899,
16707,
1426,
934,
29889,
13,
1678,
848,
29918,
3888,
353,
7442,
29889,
2378,
29898,
15926,
29889,
949,
29918,
2371,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
29923,
791,
29914,
1761,
29918,
14513,
29918,
16707,
29889,
3945,
742,
4839,
29922,
29896,
29892,
628,
326,
29918,
1332,
3246,
3535,
29922,
5574,
876,
29961,
29896,
29901,
29892,
17531,
13,
1678,
396,
2008,
862,
403,
964,
6694,
8783,
322,
2346,
29914,
29887,
23365,
8783,
363,
6724,
29889,
13,
1678,
7945,
29892,
2346,
29892,
23363,
259,
353,
848,
29918,
3888,
29961,
1272,
29918,
3888,
7503,
29892,
29906,
29962,
1360,
29915,
14968,
2033,
7503,
29892,
29901,
29906,
1402,
848,
29918,
3888,
29961,
1272,
29918,
3888,
7503,
29892,
29906,
29962,
1360,
29915,
1972,
2033,
7503,
29892,
29901,
29906,
1402,
848,
29918,
3888,
29961,
1272,
29918,
3888,
7503,
29892,
29906,
29962,
1360,
29915,
29887,
23365,
2033,
7503,
29892,
29901,
29906,
29962,
13,
13,
1678,
396,
5631,
403,
9678,
1080,
29898,
333,
1224,
265,
29897,
13,
1678,
396,
671,
29918,
14968,
29918,
3027,
29918,
1949,
353,
29871,
29896,
29900,
29900,
29900,
29900,
13,
1678,
396,
671,
29918,
791,
29918,
3027,
29918,
1949,
353,
938,
29898,
1509,
29918,
14968,
29918,
3027,
29918,
1949,
29914,
29941,
29897,
13,
1678,
396,
7442,
29889,
8172,
29889,
26776,
29898,
29900,
29897,
13,
1678,
396,
7945,
29918,
13140,
353,
7442,
29889,
8172,
29889,
16957,
29898,
2435,
29898,
14968,
511,
2159,
29922,
1509,
29918,
14968,
29918,
3027,
29918,
1949,
29892,
5191,
353,
7700,
29897,
13,
1678,
396,
7945,
353,
7945,
29961,
14968,
29918,
13140,
29962,
13,
1678,
396,
2346,
29918,
13140,
353,
7442,
29889,
8172,
29889,
16957,
29898,
2435,
29898,
1972,
511,
2159,
29922,
1509,
29918,
791,
29918,
3027,
29918,
1949,
29892,
5191,
353,
7700,
29897,
13,
1678,
396,
2346,
353,
2346,
29961,
1972,
29918,
13140,
29962,
13,
1678,
396,
23363,
29918,
13140,
353,
7442,
29889,
8172,
29889,
16957,
29898,
2435,
29898,
29887,
23365,
511,
2159,
29922,
1509,
29918,
791,
29918,
3027,
29918,
1949,
29892,
5191,
353,
7700,
29897,
13,
1678,
396,
23363,
353,
23363,
29961,
29887,
23365,
29918,
13140,
29962,
13,
13,
1678,
396,
5631,
403,
9678,
1080,
13,
1678,
9775,
29918,
20580,
353,
426,
29916,
29901,
29875,
363,
474,
29892,
29916,
297,
26985,
29898,
9302,
29889,
13092,
29898,
9302,
29889,
2378,
4197,
524,
29898,
29916,
29889,
5451,
877,
29918,
1495,
14352,
29896,
2314,
363,
921,
297,
7945,
7503,
29892,
29896,
5262,
876,
2915,
13,
1678,
7945,
7503,
29892,
29896,
29962,
353,
7442,
29889,
2378,
4197,
8205,
29918,
20580,
29961,
524,
29898,
29916,
29889,
5451,
877,
29918,
1495,
14352,
29896,
2314,
29962,
363,
921,
297,
7945,
7503,
29892,
29896,
24960,
13,
13,
1678,
9775,
29918,
20580,
353,
426,
29916,
29901,
29875,
363,
474,
29892,
29916,
297,
26985,
29898,
9302,
29889,
13092,
29898,
9302,
29889,
2378,
4197,
524,
29898,
29916,
29889,
5451,
877,
29918,
1495,
14352,
29896,
2314,
363,
921,
297,
7442,
29889,
535,
29883,
2579,
403,
4197,
1972,
7503,
29892,
29896,
1402,
23363,
7503,
29892,
29896,
24960,
12622,
2915,
13,
1678,
2346,
7503,
29892,
29896,
29962,
259,
353,
7442,
29889,
2378,
4197,
8205,
29918,
20580,
29961,
524,
29898,
29916,
29889,
5451,
877,
29918,
1495,
14352,
29896,
2314,
29962,
363,
921,
297,
2346,
7503,
29892,
29896,
24960,
13,
1678,
23363,
7503,
29892,
29896,
29962,
353,
7442,
29889,
2378,
4197,
8205,
29918,
20580,
29961,
524,
29898,
29916,
29889,
5451,
877,
29918,
1495,
14352,
29896,
2314,
29962,
363,
921,
297,
23363,
7503,
29892,
29896,
24960,
13,
13,
1678,
396,
5631,
403,
7084,
29899,
21533,
29879,
363,
6694,
29892,
2346,
322,
23363,
310,
8267,
426,
1990,
29918,
13140,
10834,
1761,
310,
10898,
304,
4558,
6852,
304,
445,
770,
29962,
2023,
29913,
13,
1678,
7945,
29918,
3027,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
10153,
29918,
2084,
29892,
1820,
297,
7945,
29901,
13,
4706,
565,
451,
1820,
297,
7945,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
9651,
7945,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
7945,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
18717,
2492,
29918,
2084,
29897,
13,
13,
1678,
2346,
29918,
3027,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
10153,
29918,
2084,
29892,
1820,
297,
2346,
29901,
13,
4706,
565,
451,
1820,
297,
2346,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
9651,
2346,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
2346,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
18717,
2492,
29918,
2084,
29897,
13,
13,
1678,
23363,
29918,
3027,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
10153,
29918,
2084,
29892,
1820,
297,
23363,
29901,
13,
4706,
565,
451,
1820,
297,
23363,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
9651,
23363,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
23363,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
18717,
2492,
29918,
2084,
29897,
13,
13,
1678,
835,
853,
9342,
445,
565,
2428,
29899,
21134,
881,
367,
1304,
304,
5706,
4613,
29889,
14538,
1691,
13,
1678,
396,
2428,
29918,
14968,
29918,
3027,
29918,
8977,
29892,
6795,
29892,
2428,
29918,
16645,
353,
24335,
29900,
29892,
8875,
13,
1678,
396,
363,
10153,
29918,
2084,
29892,
903,
297,
7945,
29901,
13,
1678,
396,
268,
1820,
353,
22868,
4286,
7122,
29898,
2492,
29918,
2084,
29889,
5451,
11219,
29861,
29896,
29901,
29941,
2314,
13,
1678,
396,
268,
565,
1820,
451,
297,
2428,
29918,
16645,
29889,
8149,
7295,
13,
1678,
396,
308,
2428,
29918,
16645,
29961,
1989,
29962,
353,
6795,
13,
1678,
396,
308,
6795,
4619,
29871,
29896,
13,
1678,
396,
268,
1820,
353,
2428,
29918,
16645,
29961,
1989,
29962,
13,
1678,
396,
13,
1678,
396,
268,
565,
451,
1820,
297,
2428,
29918,
14968,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
1678,
396,
308,
2428,
29918,
14968,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
1678,
396,
268,
2428,
29918,
14968,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
18717,
2492,
29918,
2084,
29897,
13,
1678,
396,
2428,
29918,
14968,
29918,
24713,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
9136,
29918,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
13,
1678,
7945,
29918,
24713,
268,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
259,
11916,
29918,
546,
29918,
1990,
29922,
3670,
29889,
27736,
29918,
546,
29918,
1990,
29897,
13,
1678,
19745,
29918,
24713,
418,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
259,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
2346,
29918,
24713,
268,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
1972,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
259,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
23363,
29918,
24713,
259,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
29887,
23365,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
13,
1678,
736,
11117,
26495,
2396,
14968,
29918,
24713,
29892,
525,
13424,
29918,
1972,
2396,
1972,
29918,
24713,
29892,
525,
24219,
362,
2396,
14513,
29918,
24713,
29892,
525,
13424,
29918,
29887,
23365,
2396,
29887,
23365,
29918,
24713,
29913,
13,
1678,
396,
736,
11117,
26495,
2396,
14968,
29918,
24713,
29892,
525,
13424,
29918,
1972,
2396,
1972,
29918,
24713,
29892,
525,
24219,
362,
2396,
14513,
29918,
24713,
29892,
525,
13424,
29918,
29887,
23365,
2396,
29887,
23365,
29918,
24713,
29892,
525,
9136,
29918,
24219,
362,
2396,
9136,
29918,
14968,
29918,
24713,
29913,
13,
13,
13,
1753,
2367,
29918,
29963,
14797,
2512,
1367,
29918,
14538,
1691,
29898,
3670,
1125,
13,
1678,
9995,
13,
1678,
910,
740,
16785,
263,
6694,
29892,
6724,
322,
17983,
1418,
7003,
1664,
363,
4737,
2200,
29257,
373,
278,
24457,
29965,
8980,
29882,
2512,
8783,
29889,
13,
1678,
1152,
4737,
2200,
29257,
29892,
6694,
322,
313,
20787,
29897,
1243,
6166,
526,
4944,
491,
5004,
1426,
2066,
29892,
7945,
29918,
1761,
322,
1243,
29918,
1761,
29918,
29966,
29876,
29918,
13203,
29918,
29906,
29918,
1688,
15513,
3945,
29889,
13,
1678,
1105,
694,
4036,
528,
3096,
1847,
310,
4413,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
3523,
29901,
1852,
5510,
29889,
23335,
29892,
3743,
599,
7945,
262,
335,
29899,
14940,
4128,
29889,
13,
1678,
16969,
29901,
13,
4706,
9657,
310,
10772,
29911,
25350,
20035,
363,
6694,
29892,
6724,
322,
17983,
29889,
13,
1678,
9995,
13,
1678,
396,
5896,
18067,
1426,
29899,
5325,
13,
1678,
7945,
539,
353,
7442,
29889,
2378,
29898,
15926,
29889,
949,
29918,
2371,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
14968,
29918,
1688,
29918,
5451,
29914,
14968,
29918,
1761,
29889,
3945,
742,
4839,
29922,
8516,
29892,
628,
326,
29918,
1332,
3246,
3535,
29922,
5574,
876,
13,
1678,
2319,
29918,
1688,
29871,
353,
7442,
29889,
2378,
29898,
15926,
29889,
949,
29918,
2371,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
14968,
29918,
1688,
29918,
5451,
29914,
1688,
29918,
1761,
29918,
29947,
29900,
29900,
29889,
3945,
742,
4839,
29922,
8516,
29892,
628,
326,
29918,
1332,
3246,
3535,
29922,
5574,
876,
13,
1678,
18350,
29918,
1688,
353,
7442,
29889,
2378,
29898,
15926,
29889,
949,
29918,
2371,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
14968,
29918,
1688,
29918,
5451,
29914,
1688,
29918,
1761,
29918,
29896,
29953,
29900,
29900,
29889,
3945,
742,
4839,
29922,
8516,
29892,
628,
326,
29918,
1332,
3246,
3535,
29922,
5574,
876,
13,
1678,
4802,
29918,
1688,
1678,
353,
7442,
29889,
2378,
29898,
15926,
29889,
949,
29918,
2371,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
14968,
29918,
1688,
29918,
5451,
29914,
1688,
29918,
1761,
29918,
29906,
29946,
29900,
29900,
29889,
3945,
742,
4839,
29922,
8516,
29892,
628,
326,
29918,
1332,
3246,
3535,
29922,
5574,
876,
13,
13,
1678,
396,
5631,
403,
9678,
1080,
13,
1678,
9775,
29918,
20580,
353,
426,
29916,
29901,
29875,
363,
474,
29892,
29916,
297,
26985,
29898,
9302,
29889,
13092,
29898,
14968,
7503,
29892,
29896,
12622,
29913,
13,
1678,
7945,
7503,
29892,
29896,
29962,
353,
7442,
29889,
2378,
4197,
8205,
29918,
20580,
29961,
29916,
29962,
363,
921,
297,
7945,
7503,
29892,
29896,
24960,
13,
1678,
9775,
29918,
20580,
353,
426,
29916,
29901,
29875,
363,
474,
29892,
29916,
297,
26985,
29898,
9302,
29889,
13092,
29898,
9302,
29889,
535,
29883,
2579,
403,
4197,
9278,
29918,
1688,
7503,
29892,
29896,
1402,
18350,
29918,
1688,
7503,
29892,
29896,
1402,
4802,
29918,
1688,
7503,
29892,
29896,
5262,
876,
2915,
13,
1678,
2319,
29918,
1688,
7503,
29892,
29896,
29962,
29871,
353,
7442,
29889,
2378,
4197,
8205,
29918,
20580,
29961,
29916,
29962,
363,
921,
297,
2319,
29918,
1688,
7503,
29892,
29896,
24960,
13,
1678,
18350,
29918,
1688,
7503,
29892,
29896,
29962,
353,
7442,
29889,
2378,
4197,
8205,
29918,
20580,
29961,
29916,
29962,
363,
921,
297,
18350,
29918,
1688,
7503,
29892,
29896,
24960,
13,
1678,
4802,
29918,
1688,
7503,
29892,
29896,
29962,
1678,
353,
7442,
29889,
2378,
4197,
8205,
29918,
20580,
29961,
29916,
29962,
363,
921,
297,
4802,
29918,
1688,
7503,
29892,
29896,
24960,
13,
13,
1678,
396,
5631,
403,
7084,
29899,
21533,
29879,
363,
6694,
322,
1422,
1243,
886,
310,
8267,
426,
1990,
29918,
13140,
10834,
1761,
310,
10898,
304,
4558,
6852,
304,
445,
770,
29962,
2023,
29913,
13,
1678,
7945,
29918,
3027,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
10153,
29918,
2084,
29892,
1820,
297,
7945,
29901,
13,
4706,
565,
451,
1820,
297,
7945,
29918,
3027,
29918,
8977,
29889,
8149,
7295,
13,
9651,
7945,
29918,
3027,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
7945,
29918,
3027,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
3027,
19248,
29901,
29900,
29955,
29881,
1836,
6173,
4286,
4830,
29898,
2492,
29918,
2084,
876,
13,
13,
1678,
2319,
29918,
1688,
29918,
8977,
353,
6571,
13,
1678,
363,
10153,
29918,
2084,
29892,
1820,
297,
2319,
29918,
1688,
29901,
13,
4706,
565,
451,
1820,
297,
2319,
29918,
1688,
29918,
8977,
29889,
8149,
7295,
13,
9651,
2319,
29918,
1688,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
2319,
29918,
1688,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
3027,
19248,
29901,
29900,
29955,
29881,
1836,
6173,
4286,
4830,
29898,
2492,
29918,
2084,
876,
13,
13,
1678,
18350,
29918,
1688,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
10153,
29918,
2084,
29892,
1820,
297,
18350,
29918,
1688,
29901,
13,
4706,
565,
451,
1820,
297,
18350,
29918,
1688,
29918,
8977,
29889,
8149,
7295,
13,
9651,
18350,
29918,
1688,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
18350,
29918,
1688,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
3027,
19248,
29901,
29900,
29955,
29881,
1836,
6173,
4286,
4830,
29898,
2492,
29918,
2084,
876,
13,
13,
1678,
4802,
29918,
1688,
29918,
8977,
1678,
353,
6571,
13,
1678,
363,
10153,
29918,
2084,
29892,
1820,
297,
4802,
29918,
1688,
29901,
13,
4706,
565,
451,
1820,
297,
4802,
29918,
1688,
29918,
8977,
29889,
8149,
7295,
13,
9651,
4802,
29918,
1688,
29918,
8977,
29961,
1989,
29962,
353,
5159,
13,
4706,
4802,
29918,
1688,
29918,
8977,
29961,
1989,
1822,
4397,
29898,
3670,
29889,
4993,
29918,
2084,
23097,
29914,
3027,
19248,
29901,
29900,
29955,
29881,
1836,
6173,
4286,
4830,
29898,
2492,
29918,
2084,
876,
13,
13,
1678,
7945,
29918,
24713,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
11916,
29918,
546,
29918,
1990,
29922,
3670,
29889,
27736,
29918,
546,
29918,
1990,
29897,
13,
1678,
19745,
29918,
24713,
29871,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
14968,
29918,
3027,
29918,
8977,
29892,
3523,
29892,
1678,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
659,
29918,
9278,
29918,
24713,
268,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
9278,
29918,
1688,
29918,
8977,
29892,
3523,
29892,
29871,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
659,
29918,
27891,
29918,
24713,
1678,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
27891,
29918,
1688,
29918,
8977,
29892,
3523,
29892,
338,
29918,
18157,
29922,
5574,
29897,
13,
1678,
659,
29918,
3752,
29918,
24713,
539,
353,
7399,
29565,
552,
29873,
16390,
24541,
29898,
3752,
29918,
1688,
29918,
8977,
29892,
3523,
29892,
1678,
338,
29918,
18157,
29922,
5574,
29897,
13,
13,
1678,
736,
11117,
26495,
2396,
14968,
29918,
24713,
29892,
525,
13424,
29918,
842,
29896,
2396,
791,
29918,
9278,
29918,
24713,
29892,
525,
13424,
29918,
842,
29906,
2396,
791,
29918,
27891,
29918,
24713,
29892,
320,
13,
9651,
525,
13424,
29918,
842,
29941,
2396,
791,
29918,
3752,
29918,
24713,
29892,
525,
24219,
362,
2396,
14513,
29918,
24713,
29913,
13,
13,
13,
13,
13,
13,
13383,
2277,
350,
3289,
2965,
349,
29979,
29911,
1955,
3210,
27640,
8127,
29911,
501,
1660,
29928,
15842,
15149,
27640,
8127,
9375,
835,
13383,
7346,
4136,
2277,
29937,
13,
1990,
7399,
29565,
552,
29873,
16390,
24541,
29898,
16390,
24541,
1125,
13,
1678,
9995,
13,
1678,
13373,
24541,
770,
304,
3867,
313,
2987,
358,
287,
29897,
5149,
13240,
6694,
11916,
6590,
304,
3918,
360,
1988,
12845,
29889,
13,
1678,
910,
7805,
4226,
5281,
304,
7084,
6779,
29899,
1689,
3163,
29892,
322,
16968,
669,
2538,
1891,
8182,
3262,
310,
25834,
29871,
29906,
29906,
29946,
363,
2538,
6779,
29945,
29900,
322,
29871,
29906,
29906,
29955,
363,
13,
1678,
2921,
468,
3226,
6779,
2645,
26101,
29889,
7133,
8845,
29892,
871,
620,
5281,
304,
29871,
29906,
29945,
29953,
470,
4818,
8182,
3262,
304,
29871,
29906,
29906,
29946,
29914,
29906,
29906,
29955,
338,
8560,
29889,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1967,
29918,
8977,
29892,
3523,
29892,
11916,
29918,
546,
29918,
1990,
29922,
29947,
29892,
338,
29918,
18157,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
13373,
24541,
10886,
29899,
6678,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
1967,
29918,
8977,
29901,
308,
9657,
29892,
13343,
310,
8267,
426,
1990,
29918,
13140,
10834,
1761,
310,
10898,
304,
4558,
6852,
304,
445,
770,
29962,
2023,
29913,
13138,
599,
278,
6694,
10898,
322,
4413,
29889,
13,
9651,
3523,
29901,
18884,
1852,
5510,
29889,
23335,
29892,
3743,
599,
6694,
29899,
14940,
4128,
29889,
13,
9651,
11916,
29918,
546,
29918,
1990,
29901,
29871,
9681,
310,
11916,
304,
4216,
515,
697,
770,
1434,
8401,
304,
278,
2446,
746,
27523,
278,
9853,
29889,
13,
9651,
338,
29918,
18157,
29901,
418,
960,
338,
1565,
29892,
8783,
4426,
363,
8845,
29914,
13424,
526,
1304,
2012,
310,
6743,
363,
6694,
29889,
13,
4706,
16969,
29901,
13,
9651,
9531,
29991,
13,
4706,
9995,
13,
4706,
396,
3206,
457,
3309,
310,
8783,
13,
4706,
1583,
29889,
29876,
29918,
5325,
268,
353,
7442,
29889,
2083,
4197,
2435,
29898,
3027,
29918,
8977,
29961,
1989,
2314,
363,
1820,
297,
1967,
29918,
8977,
29889,
8149,
580,
2314,
13,
13,
4706,
1583,
29889,
275,
29918,
18157,
353,
338,
29918,
18157,
13,
13,
4706,
1583,
29889,
862,
29879,
4706,
353,
3523,
13,
4706,
1583,
29889,
3027,
29918,
8977,
29871,
353,
1967,
29918,
8977,
13,
13,
4706,
1583,
29889,
485,
737,
29918,
13203,
1678,
353,
12705,
29898,
1761,
29898,
1311,
29889,
3027,
29918,
8977,
29889,
8149,
22130,
13,
13,
4706,
396,
18455,
1967,
8600,
515,
770,
978,
29901,
3051,
304,
770,
29918,
13140,
29901,
3051,
29892,
1363,
278,
2847,
16285,
526,
451,
12695,
515,
29871,
29900,
448,
529,
29876,
29918,
13203,
15513,
13,
4706,
1583,
29889,
3027,
29918,
8977,
1678,
353,
426,
29875,
29901,
1311,
29889,
3027,
29918,
8977,
29961,
1989,
29962,
363,
474,
29892,
1989,
297,
26985,
29898,
1311,
29889,
485,
737,
29918,
13203,
2915,
13,
4706,
1583,
29889,
485,
737,
29918,
13203,
353,
12705,
29898,
1761,
29898,
1311,
29889,
3027,
29918,
8977,
29889,
8149,
22130,
13,
13,
4706,
396,
6644,
29889,
4426,
393,
526,
1304,
746,
27523,
701,
9853,
267,
29889,
13,
4706,
565,
451,
1583,
29889,
275,
29918,
18157,
29901,
13,
9651,
1583,
29889,
27736,
29918,
546,
29918,
1990,
353,
11916,
29918,
546,
29918,
1990,
13,
9651,
396,
3549,
1857,
770,
304,
4559,
4558,
515,
701,
304,
529,
27736,
29918,
546,
29918,
1990,
29958,
13,
9651,
1583,
29889,
3784,
29918,
1990,
259,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
2435,
29898,
1311,
29889,
485,
737,
29918,
13203,
876,
13,
9651,
1583,
29889,
13203,
29918,
1730,
1573,
353,
518,
1311,
29889,
3784,
29918,
1990,
29892,
1583,
29889,
3784,
29918,
1990,
29962,
13,
9651,
1583,
29889,
29876,
29918,
27736,
29918,
19811,
1233,
353,
29871,
29900,
13,
13,
4706,
396,
1469,
18765,
362,
29914,
19170,
3519,
29889,
13,
4706,
4226,
675,
353,
4327,
29879,
29889,
19077,
675,
29898,
12676,
11759,
29900,
29889,
29946,
29947,
29945,
29892,
29871,
29900,
29889,
29946,
29945,
29953,
29892,
29871,
29900,
29889,
29946,
29900,
29953,
1402,
4172,
11759,
29900,
29889,
29906,
29906,
29929,
29892,
29871,
29900,
29889,
29906,
29906,
29946,
29892,
29871,
29900,
29889,
29906,
29906,
29945,
2314,
13,
4706,
1301,
29888,
29918,
1761,
353,
5159,
13,
4706,
565,
451,
1583,
29889,
275,
29918,
18157,
29901,
13,
9651,
1301,
29888,
29918,
1761,
29889,
21843,
4197,
9067,
29879,
29889,
17875,
1666,
1891,
29907,
1336,
29898,
2311,
29922,
29906,
29906,
29946,
29897,
565,
3523,
29889,
1279,
1360,
29915,
690,
1212,
29945,
29900,
29915,
1683,
4327,
29879,
29889,
17875,
1666,
1891,
29907,
1336,
29898,
2311,
29922,
29906,
29906,
29955,
511,
13,
462,
18884,
4327,
29879,
29889,
17875,
24932,
29943,
3466,
29898,
29900,
29889,
29945,
29897,
2314,
13,
4706,
1683,
29901,
13,
9651,
1301,
29888,
29918,
1761,
29889,
21843,
4197,
9067,
29879,
29889,
1666,
675,
29898,
29906,
29945,
29953,
511,
13,
462,
18884,
4327,
29879,
29889,
13409,
29907,
1336,
29898,
29906,
29906,
29946,
29897,
565,
3523,
29889,
1279,
1360,
29915,
690,
1212,
29945,
29900,
29915,
1683,
4327,
29879,
29889,
13409,
29907,
1336,
29898,
29906,
29906,
29955,
29897,
2314,
13,
13,
4706,
1301,
29888,
29918,
1761,
29889,
21843,
4197,
9067,
29879,
29889,
1762,
29911,
6073,
3285,
4226,
675,
2314,
13,
4706,
1583,
29889,
9067,
353,
4327,
29879,
29889,
1523,
4220,
29898,
3286,
29888,
29918,
1761,
29897,
13,
13,
4706,
396,
18455,
7084,
29899,
21533,
304,
1051,
310,
313,
3027,
29918,
2084,
29892,
1967,
29918,
1990,
467,
2178,
1242,
363,
6775,
1513,
23460,
29889,
13,
4706,
1583,
29889,
3027,
29918,
1761,
353,
5519,
29898,
29916,
29892,
1989,
29897,
363,
921,
297,
1583,
29889,
3027,
29918,
8977,
29961,
1989,
5262,
363,
1820,
297,
1583,
29889,
3027,
29918,
8977,
29889,
8149,
580,
29962,
13,
4706,
1583,
29889,
3027,
29918,
1761,
353,
518,
29916,
363,
343,
297,
1583,
29889,
3027,
29918,
1761,
363,
921,
297,
343,
29962,
13,
13,
4706,
396,
21979,
393,
20169,
565,
8783,
338,
2000,
363,
278,
937,
931,
29889,
13,
4706,
1583,
29889,
275,
29918,
2344,
353,
5852,
13,
13,
13,
1678,
822,
9801,
29918,
29941,
6229,
29898,
1311,
29892,
10153,
1125,
13,
4706,
9995,
13,
4706,
6680,
393,
5662,
1973,
393,
278,
1881,
10153,
338,
2211,
29899,
12531,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
10153,
29901,
349,
6227,
29889,
2940,
29892,
1967,
607,
338,
304,
367,
7120,
363,
2211,
29899,
12531,
537,
313,
29875,
29889,
29872,
29889,
565,
777,
4558,
526,
4628,
29899,
392,
29899,
10921,
297,
385,
6467,
784,
14076,
8783,
467,
13,
4706,
16969,
29901,
13,
9651,
5399,
287,
349,
6227,
29889,
2940,
10153,
29889,
13,
4706,
9995,
13,
4706,
565,
7431,
29898,
2492,
29889,
2311,
29897,
1360,
29906,
29901,
13,
9651,
10153,
353,
10153,
29889,
13441,
877,
28212,
1495,
13,
4706,
736,
10153,
13,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
22645,
1125,
13,
4706,
9995,
13,
4706,
826,
3174,
29901,
13,
9651,
22645,
29901,
21029,
22645,
363,
6694,
4559,
13,
4706,
16969,
29901,
13,
9651,
18761,
310,
883,
313,
11249,
29918,
1990,
29892,
4842,
305,
29889,
29911,
6073,
580,
310,
1881,
1967,
29897,
13,
4706,
9995,
13,
4706,
565,
1583,
29889,
275,
29918,
2344,
29901,
13,
9651,
1583,
29889,
3784,
29918,
1990,
353,
1583,
29889,
485,
737,
29918,
13203,
29961,
13140,
29995,
2435,
29898,
1311,
29889,
485,
737,
29918,
13203,
4638,
13,
9651,
1583,
29889,
275,
29918,
2344,
353,
7700,
13,
13,
4706,
565,
451,
1583,
29889,
275,
29918,
18157,
29901,
13,
9651,
565,
1583,
29889,
27736,
29918,
546,
29918,
1990,
1360,
29896,
29901,
13,
18884,
736,
1583,
29889,
3027,
29918,
1761,
29961,
13140,
3816,
29899,
29896,
1402,
1583,
29889,
9067,
29898,
1311,
29889,
7469,
29918,
29941,
6229,
29898,
2940,
29889,
3150,
29898,
1311,
29889,
3027,
29918,
1761,
29961,
13140,
3816,
29900,
29962,
4961,
13,
13,
9651,
565,
1583,
29889,
29876,
29918,
27736,
29918,
19811,
1233,
1360,
1311,
29889,
27736,
29918,
546,
29918,
1990,
29901,
13,
18884,
396,
26222,
3307,
11916,
639,
770,
505,
1063,
12061,
29892,
591,
6755,
1790,
770,
304,
4216,
11916,
515,
29889,
13,
18884,
396,
9842,
393,
591,
9801,
411,
1583,
29889,
13203,
29918,
1730,
1573,
393,
694,
770,
338,
10434,
565,
372,
750,
1063,
10434,
13,
18884,
396,
1457,
16604,
470,
697,
1434,
393,
29889,
13,
18884,
6795,
353,
3509,
29889,
24535,
8552,
29898,
1311,
29889,
485,
737,
29918,
13203,
29897,
13,
18884,
363,
12379,
29918,
1990,
297,
1583,
29889,
13203,
29918,
1730,
1573,
29901,
13,
462,
1678,
565,
12379,
29918,
1990,
297,
6795,
29901,
6795,
29889,
5992,
29898,
16304,
29918,
1990,
29897,
13,
13,
18884,
1583,
29889,
3784,
29918,
1990,
259,
353,
6795,
29961,
13140,
29995,
2435,
29898,
11808,
4638,
13,
18884,
1583,
29889,
13203,
29918,
1730,
1573,
353,
1583,
29889,
13203,
29918,
1730,
1573,
29961,
29896,
29901,
10062,
29961,
1311,
29889,
3784,
29918,
1990,
29962,
13,
18884,
1583,
29889,
29876,
29918,
27736,
29918,
19811,
1233,
353,
29871,
29900,
13,
13,
9651,
770,
29918,
11249,
29918,
13140,
353,
22645,
29995,
2435,
29898,
1311,
29889,
3027,
29918,
8977,
29961,
1311,
29889,
3784,
29918,
1990,
2314,
13,
9651,
1583,
29889,
29876,
29918,
27736,
29918,
19811,
1233,
4619,
29871,
29896,
13,
13,
9651,
714,
29918,
2492,
353,
1583,
29889,
9067,
29898,
1311,
29889,
7469,
29918,
29941,
6229,
29898,
2940,
29889,
3150,
29898,
1311,
29889,
3027,
29918,
8977,
29961,
1311,
29889,
3784,
29918,
1990,
3816,
1990,
29918,
11249,
29918,
13140,
29962,
4961,
13,
9651,
736,
1583,
29889,
3784,
29918,
1990,
29892,
449,
29918,
2492,
13,
4706,
1683,
29901,
13,
9651,
736,
1583,
29889,
3027,
29918,
1761,
29961,
13140,
3816,
29899,
29896,
1402,
1583,
29889,
9067,
29898,
1311,
29889,
7469,
29918,
29941,
6229,
29898,
2940,
29889,
3150,
29898,
1311,
29889,
3027,
29918,
1761,
29961,
13140,
3816,
29900,
29962,
4961,
13,
13,
1678,
822,
4770,
2435,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
29876,
29918,
5325,
13,
2
] |
tests/component_tests/test_session.py | lsawade/radical.pilot | 0 | 121768 | # pylint: disable=protected-access, unused-argument
__copyright__ = 'Copyright 2020, The RADICAL-Cybertools Team'
__license__ = 'MIT'
import glob
import os
import shutil
from unittest import TestCase, mock
import radical.pilot as rp
TEST_CASES_PATH = '%s/test_cases' % os.path.dirname(__file__)
# ------------------------------------------------------------------------------
#
class TestSession(TestCase):
# --------------------------------------------------------------------------
#
@classmethod
@mock.patch.object(rp.Session, '_initialize_primary', return_value=None)
def setUpClass(cls, *args, **kwargs):
cls._session = rp.Session()
# --------------------------------------------------------------------------
#
@classmethod
def tearDownClass(cls):
for d in glob.glob('./rp.session.*'):
if os.path.isdir(d):
try:
shutil.rmtree(d)
except OSError as e:
print('[ERROR] %s - %s' % (e.filename, e.strerror))
# --------------------------------------------------------------------------
#
def test_list_resources(self):
listed_resources = self._session.list_resources()
self.assertIsInstance(listed_resources, list)
self.assertIn('local.localhost', listed_resources)
# --------------------------------------------------------------------------
#
def test_get_resource_config(self):
rcfg_label = 'xsede.comet_ssh'
# schemas are ["ssh", "gsissh"]
rcfg = self._session.get_resource_config(rcfg_label)
self.assertEqual(rcfg.job_manager_endpoint,
rcfg[rcfg.schemas[0]].job_manager_endpoint)
new_schema = 'gsissh'
rcfg = self._session.get_resource_config(rcfg_label, schema=new_schema)
self.assertEqual(rcfg.job_manager_endpoint,
rcfg[new_schema].job_manager_endpoint)
# check exceptions
with self.assertRaises(RuntimeError):
self._session.get_resource_config(resource='wrong_domain.host')
with self.assertRaises(RuntimeError):
self._session.get_resource_config(resource='local.wrong_host')
with self.assertRaises(RuntimeError):
self._session.get_resource_config(
resource='local.localhost', schema='wrong_schema')
# ------------------------------------------------------------------------------
#
if __name__ == '__main__':
tc = TestSession()
tc.test_list_resources()
tc.test_get_resource_config()
# ------------------------------------------------------------------------------
| [
1,
396,
282,
2904,
524,
29901,
11262,
29922,
24681,
29899,
5943,
29892,
443,
3880,
29899,
23516,
13,
13,
1649,
8552,
1266,
1649,
353,
525,
11882,
1266,
29871,
29906,
29900,
29906,
29900,
29892,
450,
390,
3035,
2965,
1964,
29899,
29733,
495,
8504,
8583,
29915,
13,
1649,
506,
1947,
1649,
259,
353,
525,
26349,
29915,
13,
13,
5215,
13149,
13,
5215,
2897,
13,
5215,
528,
4422,
13,
13,
3166,
443,
27958,
1053,
4321,
8259,
29892,
11187,
13,
13,
5215,
24818,
29889,
29886,
309,
327,
408,
364,
29886,
13,
13,
18267,
29918,
23487,
29903,
29918,
10145,
353,
14210,
29879,
29914,
1688,
29918,
11436,
29915,
1273,
2897,
29889,
2084,
29889,
25721,
22168,
1445,
1649,
29897,
13,
13,
13,
29937,
448,
2683,
2683,
2683,
2683,
9072,
29899,
13,
29937,
13,
1990,
4321,
7317,
29898,
3057,
8259,
1125,
13,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
1678,
396,
13,
1678,
732,
1990,
5696,
13,
1678,
732,
17640,
29889,
5041,
29889,
3318,
29898,
19080,
29889,
7317,
29892,
22868,
24926,
29918,
16072,
742,
736,
29918,
1767,
29922,
8516,
29897,
13,
1678,
822,
731,
3373,
2385,
29898,
25932,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
1067,
29879,
3032,
7924,
353,
364,
29886,
29889,
7317,
580,
13,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
1678,
396,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
734,
279,
6767,
2385,
29898,
25932,
1125,
13,
4706,
363,
270,
297,
13149,
29889,
23705,
877,
6904,
19080,
29889,
7924,
5575,
29374,
13,
9651,
565,
2897,
29889,
2084,
29889,
275,
3972,
29898,
29881,
1125,
13,
18884,
1018,
29901,
13,
462,
1678,
528,
4422,
29889,
1758,
8336,
29898,
29881,
29897,
13,
18884,
5174,
438,
29173,
408,
321,
29901,
13,
462,
1678,
1596,
877,
29961,
11432,
29962,
1273,
29879,
448,
1273,
29879,
29915,
1273,
313,
29872,
29889,
9507,
29892,
321,
29889,
710,
2704,
876,
13,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
1761,
29918,
13237,
29898,
1311,
1125,
13,
13,
4706,
9904,
29918,
13237,
353,
1583,
3032,
7924,
29889,
1761,
29918,
13237,
580,
13,
13,
4706,
1583,
29889,
9294,
3624,
4998,
29898,
1761,
287,
29918,
13237,
29892,
1051,
29897,
13,
4706,
1583,
29889,
9294,
797,
877,
2997,
29889,
7640,
742,
9904,
29918,
13237,
29897,
13,
13,
13,
1678,
396,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
657,
29918,
10314,
29918,
2917,
29898,
1311,
1125,
13,
13,
4706,
364,
16859,
29918,
1643,
353,
525,
10351,
2742,
29889,
510,
300,
29918,
15269,
29915,
13,
13,
4706,
396,
1364,
8609,
526,
6796,
15269,
613,
376,
3174,
790,
29882,
3108,
13,
4706,
364,
16859,
353,
1583,
3032,
7924,
29889,
657,
29918,
10314,
29918,
2917,
29898,
2214,
16434,
29918,
1643,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2214,
16434,
29889,
9057,
29918,
12847,
29918,
29734,
29892,
13,
462,
308,
364,
16859,
29961,
2214,
16434,
29889,
11993,
29961,
29900,
29962,
1822,
9057,
29918,
12847,
29918,
29734,
29897,
13,
4706,
716,
29918,
11010,
353,
525,
3174,
790,
29882,
29915,
13,
4706,
364,
16859,
353,
1583,
3032,
7924,
29889,
657,
29918,
10314,
29918,
2917,
29898,
2214,
16434,
29918,
1643,
29892,
10938,
29922,
1482,
29918,
11010,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2214,
16434,
29889,
9057,
29918,
12847,
29918,
29734,
29892,
13,
462,
308,
364,
16859,
29961,
1482,
29918,
11010,
1822,
9057,
29918,
12847,
29918,
29734,
29897,
13,
13,
4706,
396,
1423,
15283,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
9651,
1583,
3032,
7924,
29889,
657,
29918,
10314,
29918,
2917,
29898,
10314,
2433,
15866,
549,
29918,
7247,
29889,
3069,
1495,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
9651,
1583,
3032,
7924,
29889,
657,
29918,
10314,
29918,
2917,
29898,
10314,
2433,
2997,
29889,
15866,
549,
29918,
3069,
1495,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
7944,
2392,
1125,
13,
9651,
1583,
3032,
7924,
29889,
657,
29918,
10314,
29918,
2917,
29898,
13,
18884,
6503,
2433,
2997,
29889,
7640,
742,
10938,
2433,
15866,
549,
29918,
11010,
1495,
13,
13,
13,
29937,
448,
2683,
2683,
2683,
2683,
9072,
29899,
13,
29937,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
260,
29883,
353,
4321,
7317,
580,
13,
1678,
260,
29883,
29889,
1688,
29918,
1761,
29918,
13237,
580,
13,
1678,
260,
29883,
29889,
1688,
29918,
657,
29918,
10314,
29918,
2917,
580,
13,
13,
13,
29937,
448,
2683,
2683,
2683,
2683,
9072,
29899,
13,
13,
2
] |
js_search/cms_apps.py | compoundpartners/js-search | 0 | 133077 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from . import DEFAULT_APP_NAMESPACE
class SearchApp(CMSApp):
name = _('Search')
app_name = DEFAULT_APP_NAMESPACE
urls = ['js_search.urls']
def get_urls(self, *args, **kwargs):
return self.urls
apphook_pool.register(SearchApp)
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
657,
726,
29918,
433,
1537,
408,
903,
13,
13,
3166,
274,
1516,
29889,
932,
29918,
3188,
1053,
315,
4345,
2052,
13,
3166,
274,
1516,
29889,
932,
20849,
29918,
10109,
1053,
623,
20849,
29918,
10109,
13,
13,
3166,
869,
1053,
22236,
29918,
20576,
29918,
5813,
5550,
11538,
13,
13,
13,
1990,
11856,
2052,
29898,
29907,
4345,
2052,
1125,
13,
1678,
1024,
353,
903,
877,
7974,
1495,
13,
1678,
623,
29918,
978,
353,
22236,
29918,
20576,
29918,
5813,
5550,
11538,
13,
1678,
23942,
353,
6024,
1315,
29918,
4478,
29889,
26045,
2033,
13,
13,
1678,
822,
679,
29918,
26045,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
736,
1583,
29889,
26045,
13,
13,
932,
20849,
29918,
10109,
29889,
9573,
29898,
7974,
2052,
29897,
13,
2
] |
model/gif2png.py | THCloud9/naruto | 20 | 119220 | <reponame>THCloud9/naruto<filename>model/gif2png.py
#-*- coding: UTF-8 -*-
import os
from PIL import Image
def analyseImage(path):
'''''
Pre-process pass over the image to determine the mode (full or additive).
Necessary as assessing single frames isn't reliable. Need to know the mode
before processing all frames.
'''
im = Image.open(path)
results = {
'size': im.size,
'mode': 'full',
}
try:
while True:
if im.tile:
tile = im.tile[0]
update_region = tile[1]
update_region_dimensions = update_region[2:]
if update_region_dimensions != im.size:
results['mode'] = 'partial'
break
im.seek(im.tell() + 1)
except EOFError:
pass
return results
def processImage(path):
'''''
传入GIF图的完整路径名字,自动在该位置创建png文件夹来保存所有图片
'''
mode = analyseImage(path)['mode']
im = Image.open(path)
i = 0
p = im.getpalette()
last_frame = im.convert('RGBA')
try:
while True:
print ("saving %s (%s) frame %d, %s %s" % (path, mode, i, im.size, im.tile) )
'''''
If the GIF uses local colour tables, each frame will have its own palette.
If not, we need to apply the global palette to the new frame.
'''
if not im.getpalette():
im.putpalette(p)
new_frame = Image.new('RGBA', im.size)
'''''
Is this file a "partial"-mode GIF where frames update a region of a different size to the entire image?
If so, we need to construct the new frame by pasting it on top of the preceding frames.
'''
if mode == 'partial':
new_frame.paste(last_frame)
new_frame.paste(im, (0,0), im.convert('RGBA'))
fp = "/".join(path.split('/')[:-1]) + '/png'
make_path(fp)
fp = "/".join(path.split('/')[:-1]) + '/png/' + 'action'
new_frame.save('%s-%02d.png' % (fp , i), 'PNG')
i += 1
last_frame = new_frame
im.seek(im.tell() + 1)
except EOFError:
pass
def make_path(p):
if not os.path.exists(p): # 判断文件夹是否存在
os.makedirs(p) # 创建文件夹
def main():
processImage('image/shuidun/shuidun.gif')
if __name__ == "__main__":
main() | [
1,
529,
276,
1112,
420,
29958,
4690,
20442,
29929,
29914,
24156,
3066,
29966,
9507,
29958,
4299,
29914,
18660,
29906,
2732,
29889,
2272,
13,
29937,
29899,
29930,
29899,
14137,
29901,
18351,
29899,
29947,
448,
29930,
29899,
1678,
6756,
13,
5215,
2897,
29871,
6756,
13,
3166,
349,
6227,
1053,
7084,
29871,
6756,
13,
29871,
6756,
13,
1753,
16455,
344,
2940,
29898,
2084,
1125,
29871,
6756,
13,
1678,
14550,
4907,
6756,
13,
1678,
4721,
29899,
5014,
1209,
975,
278,
1967,
304,
8161,
278,
4464,
313,
8159,
470,
788,
3321,
467,
6756,
13,
1678,
405,
687,
404,
653,
408,
24809,
292,
2323,
16608,
3508,
29915,
29873,
23279,
29889,
20768,
304,
1073,
278,
4464,
29871,
6756,
13,
1678,
1434,
9068,
599,
16608,
29889,
6756,
13,
1678,
14550,
29871,
6756,
13,
1678,
527,
353,
7084,
29889,
3150,
29898,
2084,
29897,
29871,
6756,
13,
1678,
2582,
353,
426,
29871,
6756,
13,
4706,
525,
2311,
2396,
527,
29889,
2311,
29892,
29871,
6756,
13,
4706,
525,
8513,
2396,
525,
8159,
742,
29871,
6756,
13,
1678,
500,
29871,
6756,
13,
1678,
1018,
29901,
29871,
6756,
13,
4706,
1550,
5852,
29901,
29871,
6756,
13,
9651,
565,
527,
29889,
29873,
488,
29901,
29871,
6756,
13,
18884,
25900,
353,
527,
29889,
29873,
488,
29961,
29900,
29962,
29871,
6756,
13,
18884,
2767,
29918,
12803,
353,
25900,
29961,
29896,
29962,
29871,
6756,
13,
18884,
2767,
29918,
12803,
29918,
6229,
5580,
353,
2767,
29918,
12803,
29961,
29906,
17531,
29871,
6756,
13,
18884,
565,
2767,
29918,
12803,
29918,
6229,
5580,
2804,
527,
29889,
2311,
29901,
29871,
6756,
13,
462,
1678,
2582,
1839,
8513,
2033,
353,
525,
3846,
29915,
29871,
6756,
13,
462,
1678,
2867,
29871,
6756,
13,
9651,
527,
29889,
344,
1416,
29898,
326,
29889,
29873,
514,
580,
718,
29871,
29896,
29897,
29871,
6756,
13,
1678,
5174,
382,
9800,
2392,
29901,
29871,
6756,
13,
4706,
1209,
29871,
6756,
13,
1678,
736,
2582,
29871,
6756,
13,
29871,
6756,
13,
29871,
6756,
13,
1753,
1889,
2940,
29898,
2084,
1125,
29871,
6756,
13,
1678,
14550,
4907,
6756,
13,
268,
31471,
30752,
29954,
6545,
30861,
30210,
31366,
233,
152,
183,
30874,
232,
193,
135,
30548,
30578,
29892,
30688,
30846,
30505,
31751,
30956,
30669,
31441,
30886,
2732,
30333,
30631,
232,
167,
188,
30805,
30982,
30946,
30744,
30417,
30861,
31122,
30004,
13,
1678,
6756,
13,
1678,
14550,
29871,
6756,
13,
1678,
4464,
353,
16455,
344,
2940,
29898,
2084,
29897,
1839,
8513,
2033,
29871,
6756,
13,
418,
6756,
13,
1678,
527,
353,
7084,
29889,
3150,
29898,
2084,
29897,
29871,
6756,
13,
29871,
6756,
13,
1678,
474,
353,
29871,
29900,
29871,
6756,
13,
1678,
282,
353,
527,
29889,
657,
29886,
26456,
580,
29871,
6756,
13,
1678,
1833,
29918,
2557,
353,
527,
29889,
13441,
877,
29934,
29954,
5688,
1495,
29871,
6756,
13,
418,
6756,
13,
1678,
1018,
29901,
29871,
6756,
13,
4706,
1550,
5852,
29901,
29871,
6756,
13,
9651,
1596,
4852,
29879,
5555,
1273,
29879,
313,
29995,
29879,
29897,
3515,
1273,
29881,
29892,
1273,
29879,
1273,
29879,
29908,
1273,
313,
2084,
29892,
4464,
29892,
474,
29892,
527,
29889,
2311,
29892,
527,
29889,
29873,
488,
29897,
29871,
1723,
30004,
13,
795,
6756,
13,
9651,
14550,
4907,
6756,
13,
9651,
960,
278,
402,
6545,
3913,
1887,
12384,
6131,
29892,
1269,
3515,
674,
505,
967,
1914,
282,
26456,
29889,
6756,
13,
9651,
960,
451,
29892,
591,
817,
304,
3394,
278,
5534,
282,
26456,
304,
278,
716,
3515,
29889,
6756,
13,
9651,
14550,
29871,
6756,
13,
9651,
565,
451,
527,
29889,
657,
29886,
26456,
7295,
29871,
6756,
13,
18884,
527,
29889,
649,
29886,
26456,
29898,
29886,
29897,
29871,
6756,
13,
795,
6756,
13,
9651,
716,
29918,
2557,
353,
7084,
29889,
1482,
877,
29934,
29954,
5688,
742,
527,
29889,
2311,
29897,
29871,
6756,
13,
795,
6756,
13,
9651,
14550,
4907,
6756,
13,
9651,
1317,
445,
934,
263,
376,
3846,
29908,
29899,
8513,
402,
6545,
988,
16608,
2767,
263,
5120,
310,
263,
1422,
2159,
304,
278,
4152,
1967,
29973,
6756,
13,
9651,
960,
577,
29892,
591,
817,
304,
3386,
278,
716,
3515,
491,
4940,
292,
372,
373,
2246,
310,
278,
26328,
16608,
29889,
6756,
13,
9651,
14550,
29871,
6756,
13,
9651,
565,
4464,
1275,
525,
3846,
2396,
29871,
6756,
13,
18884,
716,
29918,
2557,
29889,
16179,
29898,
4230,
29918,
2557,
29897,
29871,
6756,
13,
795,
6756,
13,
9651,
716,
29918,
2557,
29889,
16179,
29898,
326,
29892,
313,
29900,
29892,
29900,
511,
527,
29889,
13441,
877,
29934,
29954,
5688,
8785,
29871,
6756,
13,
9651,
285,
29886,
353,
5591,
1642,
7122,
29898,
2084,
29889,
5451,
11219,
1495,
7503,
29899,
29896,
2314,
718,
8207,
2732,
29915,
30004,
13,
9651,
1207,
29918,
2084,
29898,
18091,
8443,
13,
9651,
285,
29886,
353,
5591,
1642,
7122,
29898,
2084,
29889,
5451,
11219,
1495,
7503,
29899,
29896,
2314,
718,
8207,
2732,
22208,
718,
525,
2467,
29915,
30004,
13,
9651,
716,
29918,
2557,
29889,
7620,
877,
29995,
29879,
19222,
29900,
29906,
29881,
29889,
2732,
29915,
1273,
313,
18091,
1919,
474,
511,
525,
29925,
9312,
1495,
29871,
6756,
13,
29871,
6756,
13,
9651,
474,
4619,
29871,
29896,
29871,
6756,
13,
9651,
1833,
29918,
2557,
353,
716,
29918,
2557,
29871,
6756,
13,
9651,
527,
29889,
344,
1416,
29898,
326,
29889,
29873,
514,
580,
718,
29871,
29896,
29897,
29871,
6756,
13,
1678,
5174,
382,
9800,
2392,
29901,
29871,
6756,
13,
4706,
1209,
29871,
6756,
13,
1753,
1207,
29918,
2084,
29898,
29886,
1125,
29871,
6756,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
29886,
1125,
539,
396,
29871,
31791,
31683,
30333,
30631,
232,
167,
188,
30392,
31191,
30946,
30505,
29871,
6756,
13,
4706,
2897,
29889,
29885,
12535,
12935,
29898,
29886,
29897,
3986,
396,
29871,
31441,
30886,
30333,
30631,
232,
167,
188,
30004,
13,
1669,
6756,
13,
29871,
6756,
13,
29871,
6756,
13,
1753,
1667,
7295,
29871,
6756,
13,
1678,
1889,
2940,
877,
3027,
29914,
845,
5416,
348,
29914,
845,
5416,
348,
29889,
18660,
1495,
29871,
6756,
13,
418,
6756,
13,
29871,
6756,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
29871,
6756,
13,
1678,
1667,
580,
29871,
2
] |
ambry/dbexceptions.py | kball/ambry | 1 | 1605968 | """Common exception objects
Copyright (c) 2013 Clarinova. This file is licensed under the terms of the
Revised BSD License, included in this distribution as LICENSE.txt
"""
import textwrap
class BundleError(Exception):
def __init__(self, message, *args, **kwargs):
# Call the base class constructor with the parameters it needs
#Exception.__init__(self,textwrap.fill(message, 120), *args, **kwargs)
Exception.__init__(self, message, *args, **kwargs)
class BadRequest(BundleError):
'''The functioncall or request was malformed or incorrect'''
class ProcessError(BundleError):
'''Error in the configuration files'''
class ObjectStateError(BundleError):
'''Object not put into appropriate state before uses'''
class ConfigurationError(BundleError):
'''Error in the configuration files'''
class ResultCountError(BundleError):
'''Got too many or too few results'''
class FilesystemError(BundleError):
'''Missing file, etc. '''
class NotFoundError(BundleError):
'''Failed to find resource'''
class DependencyError(Exception):
"""Required bundle dependencies not satisfied"""
class NoLock(BundleError):
'''Error in the configuration files'''
class Locked(BundleError):
'''Error in the configuration files'''
class QueryError(BundleError):
"""Error while executing a query"""
class ConflictError(BundleError):
"""Conflict with existing resource"""
class SyncError(BundleError):
"""Could not sync a resource"""
class FatalError(BundleError):
"""A Fatal Bundle Error, generated in testing instead of a system exit. """
class DatabaseError(BundleError):
"""A general database error """
class DatabaseMissingError(DatabaseError):
"""A general database error """ | [
1,
9995,
18877,
3682,
3618,
13,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29941,
15183,
262,
4273,
29889,
910,
934,
338,
7794,
21144,
1090,
278,
4958,
310,
278,
13,
1123,
11292,
350,
7230,
19245,
29892,
5134,
297,
445,
4978,
408,
365,
2965,
1430,
1660,
29889,
3945,
13,
15945,
29908,
13,
13,
5215,
1426,
6312,
13,
13,
1990,
24470,
2392,
29898,
2451,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2643,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
13,
4706,
396,
8251,
278,
2967,
770,
5823,
411,
278,
4128,
372,
4225,
13,
4706,
396,
2451,
17255,
2344,
12035,
1311,
29892,
726,
6312,
29889,
5589,
29898,
4906,
29892,
29871,
29896,
29906,
29900,
511,
334,
5085,
29892,
3579,
19290,
29897,
13,
4706,
8960,
17255,
2344,
12035,
1311,
29892,
2643,
29892,
334,
5085,
29892,
3579,
19290,
29897,
13,
13,
1990,
9178,
3089,
29898,
9534,
2392,
1125,
13,
1678,
14550,
1576,
740,
4804,
470,
2009,
471,
4439,
15628,
470,
10240,
12008,
13,
13,
1990,
10554,
2392,
29898,
9534,
2392,
1125,
13,
1678,
14550,
2392,
297,
278,
5285,
2066,
12008,
13,
13,
1990,
4669,
2792,
2392,
29898,
9534,
2392,
1125,
13,
1678,
14550,
2061,
451,
1925,
964,
8210,
2106,
1434,
3913,
12008,
13,
13,
1990,
20999,
2392,
29898,
9534,
2392,
1125,
13,
1678,
14550,
2392,
297,
278,
5285,
2066,
12008,
13,
268,
13,
1990,
7867,
3981,
2392,
29898,
9534,
2392,
1125,
13,
1678,
14550,
29954,
327,
2086,
1784,
470,
2086,
2846,
2582,
12008,
13,
268,
13,
1990,
12745,
973,
2392,
29898,
9534,
2392,
1125,
13,
1678,
14550,
18552,
292,
934,
29892,
2992,
29889,
14550,
13,
13,
1990,
2216,
9692,
2392,
29898,
9534,
2392,
1125,
13,
1678,
14550,
17776,
304,
1284,
6503,
12008,
13,
268,
13,
1990,
10034,
5197,
2392,
29898,
2451,
1125,
13,
1678,
9995,
19347,
11846,
9962,
451,
15787,
15945,
29908,
13,
13,
1990,
1939,
16542,
29898,
9534,
2392,
1125,
13,
1678,
14550,
2392,
297,
278,
5285,
2066,
12008,
13,
13,
1990,
18199,
287,
29898,
9534,
2392,
1125,
13,
1678,
14550,
2392,
297,
278,
5285,
2066,
12008,
13,
13,
1990,
13641,
2392,
29898,
9534,
2392,
1125,
13,
1678,
9995,
2392,
1550,
14012,
263,
2346,
15945,
29908,
13,
13,
1990,
10811,
29176,
2392,
29898,
9534,
2392,
1125,
13,
1678,
9995,
16376,
29176,
411,
5923,
6503,
15945,
29908,
13,
13,
13,
1990,
317,
2720,
2392,
29898,
9534,
2392,
1125,
13,
1678,
9995,
23323,
451,
16523,
263,
6503,
15945,
29908,
13,
13,
1990,
383,
2075,
2392,
29898,
9534,
2392,
1125,
13,
1678,
9995,
29909,
383,
2075,
24470,
4829,
29892,
5759,
297,
6724,
2012,
310,
263,
1788,
6876,
29889,
9995,
13,
13,
1990,
5470,
2392,
29898,
9534,
2392,
1125,
13,
1678,
9995,
29909,
2498,
2566,
1059,
9995,
13,
13,
1990,
5470,
18552,
292,
2392,
29898,
9112,
2392,
1125,
13,
1678,
9995,
29909,
2498,
2566,
1059,
9995,
2
] |
test_file.py | lulivi/gh-actions-tests | 0 | 66498 | <reponame>lulivi/gh-actions-tests
import pathlib
from os import environ
import path # type: ignore
def sample_function(text: str) -> None:
print(f"This is a test function")
print(f"The argument value is {text}")
def main() -> None:
"""Multiples errors."""
print("Sample file with bad formatting!!!")
environ["SAMPLE_VAR"] = "test"
This_isAList: list = ["Sample object",
"bad",
"Formatted",
"Ups"
]
sample_function(
"12345"
)
if __name__ == "__main__":
main()
| [
1,
529,
276,
1112,
420,
29958,
29880,
352,
8107,
29914,
12443,
29899,
7387,
29899,
21150,
13,
5215,
2224,
1982,
13,
3166,
2897,
1053,
12471,
13,
13,
5215,
2224,
29871,
396,
1134,
29901,
11455,
13,
13,
13,
1753,
4559,
29918,
2220,
29898,
726,
29901,
851,
29897,
1599,
6213,
29901,
13,
1678,
1596,
29898,
29888,
29908,
4013,
338,
263,
1243,
740,
1159,
13,
1678,
1596,
29898,
29888,
29908,
1576,
2980,
995,
338,
426,
726,
27195,
13,
13,
13,
1753,
1667,
580,
1599,
6213,
29901,
13,
1678,
9995,
15329,
2701,
4436,
1213,
15945,
13,
1678,
1596,
703,
17708,
934,
411,
4319,
15998,
21004,
1159,
13,
1678,
12471,
3366,
8132,
3580,
1307,
29918,
26865,
3108,
353,
376,
1688,
29908,
13,
13,
1678,
910,
29918,
275,
29909,
1293,
29901,
1051,
353,
6796,
17708,
1203,
613,
29871,
13,
462,
3986,
376,
12313,
613,
13,
462,
3986,
376,
2500,
19667,
613,
13,
462,
3986,
376,
29965,
567,
29908,
13,
1678,
4514,
13,
13,
1678,
4559,
29918,
2220,
29898,
13,
4706,
376,
29896,
29906,
29941,
29946,
29945,
29908,
13,
1678,
1723,
13,
13,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1667,
580,
13,
2
] |
build_dataset.py | KrishnaGarg/named-entity-recognition | 1 | 95575 | <gh_stars>1-10
import csv
import os
import sys
def load_dataset(path_csv):
"""Load dataset from csv file"""
with open(path_csv, encoding="windows-1252") as f:
csv_file = csv.reader(f, delimiter=',')
dataset = []; words = []; tags = []
# Each line of csv corresponds to one word
for idx, row in enumerate(csv_file):
if idx == 0: continue # first row has only labels
sentence, word, pos, tag = row
# Non-empty sentence marks beginning of new sentence
if len(sentence) != 0:
if len(words) > 0:
assert len(words) == len(tags)
dataset.append((words, tags))
words, tags = [], []
# try:
word, tag = str(word), str(tag)
words.append(word)
tags.append(tag)
return dataset
def save_dataset(dataset, save_dir):
"""Create splits from dataset"""
print("Saving in {}...".format(save_dir))
if not os.path.exists(save_dir):
os.makedirs(save_dir)
# Export the dataset
with open(os.path.join(save_dir, 'sentences.txt'), 'w') as file_sentences:
with open(os.path.join(save_dir, 'labels.txt'), 'w') as file_labels:
for words, tags in dataset:
file_sentences.write("{}\n".format(" ".join(words)))
file_labels.write("{}\n".format(" ".join(tags)))
print("- done.")
if __name__ == "__main__":
dataset_path = 'data/ner_dataset.csv'
msg = '{} file not found. Make sure you have downloaded the right dataset'.format(dataset_path)
assert os.path.isfile(dataset_path), msg
# Load the dataset
print("Loading dataset...")
dataset = load_dataset(dataset_path)
print("- done.")
# Split the dataset into train, val and test
train_dataset = dataset[:int(0.7*len(dataset))]
val_dataset = dataset[int(0.7*len(dataset)) : int(0.85*len(dataset))]
test_dataset = dataset[int(0.85*len(dataset)):]
save_dataset(train_dataset, 'data/train')
save_dataset(val_dataset, 'data/val')
save_dataset(test_dataset, 'data/test') | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
11799,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
1753,
2254,
29918,
24713,
29898,
2084,
29918,
7638,
1125,
13,
12,
15945,
29908,
5896,
8783,
515,
11799,
934,
15945,
29908,
13,
13,
12,
2541,
1722,
29898,
2084,
29918,
7638,
29892,
8025,
543,
10499,
29899,
29896,
29906,
29945,
29906,
1159,
408,
285,
29901,
13,
12,
12,
7638,
29918,
1445,
353,
11799,
29889,
16950,
29898,
29888,
29892,
28552,
29922,
742,
1495,
13,
12,
12,
24713,
353,
13769,
3838,
353,
13769,
8282,
353,
5159,
13,
13,
12,
12,
29937,
7806,
1196,
310,
11799,
16161,
304,
697,
1734,
13,
12,
12,
1454,
22645,
29892,
1948,
297,
26985,
29898,
7638,
29918,
1445,
1125,
13,
12,
12,
12,
361,
22645,
1275,
29871,
29900,
29901,
6773,
12,
29937,
937,
1948,
756,
871,
11073,
13,
12,
12,
12,
18616,
663,
29892,
1734,
29892,
926,
29892,
4055,
353,
1948,
13,
12,
12,
12,
13,
12,
12,
12,
29937,
10050,
29899,
6310,
10541,
17997,
6763,
310,
716,
10541,
13,
12,
12,
12,
361,
7431,
29898,
18616,
663,
29897,
2804,
29871,
29900,
29901,
13,
12,
12,
12,
12,
361,
7431,
29898,
9303,
29897,
1405,
29871,
29900,
29901,
13,
12,
12,
12,
12,
12,
9294,
7431,
29898,
9303,
29897,
1275,
7431,
29898,
11338,
29897,
13,
12,
12,
12,
12,
12,
24713,
29889,
4397,
3552,
9303,
29892,
8282,
876,
13,
12,
12,
12,
12,
12,
9303,
29892,
8282,
353,
19997,
5159,
13,
12,
12,
12,
29937,
1018,
29901,
13,
12,
12,
12,
1742,
29892,
4055,
353,
851,
29898,
1742,
511,
851,
29898,
4039,
29897,
13,
12,
12,
12,
9303,
29889,
4397,
29898,
1742,
29897,
13,
12,
12,
12,
11338,
29889,
4397,
29898,
4039,
29897,
13,
13,
12,
2457,
8783,
13,
13,
1753,
4078,
29918,
24713,
29898,
24713,
29892,
4078,
29918,
3972,
1125,
13,
12,
15945,
29908,
4391,
8536,
1169,
515,
8783,
15945,
29908,
13,
13,
12,
2158,
703,
29903,
5555,
297,
6571,
856,
1642,
4830,
29898,
7620,
29918,
3972,
876,
13,
12,
361,
451,
2897,
29889,
2084,
29889,
9933,
29898,
7620,
29918,
3972,
1125,
13,
12,
12,
359,
29889,
29885,
12535,
12935,
29898,
7620,
29918,
3972,
29897,
13,
13,
12,
29937,
1222,
637,
278,
8783,
13,
12,
2541,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
7620,
29918,
3972,
29892,
525,
18616,
2063,
29889,
3945,
5477,
525,
29893,
1495,
408,
934,
29918,
18616,
2063,
29901,
13,
12,
12,
2541,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
7620,
29918,
3972,
29892,
525,
21134,
29889,
3945,
5477,
525,
29893,
1495,
408,
934,
29918,
21134,
29901,
13,
12,
12,
12,
1454,
3838,
29892,
8282,
297,
8783,
29901,
13,
12,
12,
12,
12,
1445,
29918,
18616,
2063,
29889,
3539,
703,
29912,
1012,
29876,
1642,
4830,
703,
11393,
7122,
29898,
9303,
4961,
13,
12,
12,
12,
12,
1445,
29918,
21134,
29889,
3539,
703,
29912,
1012,
29876,
1642,
4830,
703,
11393,
7122,
29898,
11338,
4961,
13,
12,
2158,
703,
29899,
2309,
23157,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
13,
12,
24713,
29918,
2084,
353,
525,
1272,
29914,
1089,
29918,
24713,
29889,
7638,
29915,
13,
12,
7645,
353,
525,
8875,
934,
451,
1476,
29889,
8561,
1854,
366,
505,
16532,
278,
1492,
8783,
4286,
4830,
29898,
24713,
29918,
2084,
29897,
13,
12,
9294,
2897,
29889,
2084,
29889,
275,
1445,
29898,
24713,
29918,
2084,
511,
10191,
13,
13,
12,
29937,
16012,
278,
8783,
13,
12,
2158,
703,
23456,
8783,
856,
1159,
13,
12,
24713,
353,
2254,
29918,
24713,
29898,
24713,
29918,
2084,
29897,
13,
12,
2158,
703,
29899,
2309,
23157,
13,
13,
12,
29937,
26178,
278,
8783,
964,
7945,
29892,
659,
322,
1243,
13,
12,
14968,
29918,
24713,
353,
8783,
7503,
524,
29898,
29900,
29889,
29955,
29930,
2435,
29898,
24713,
28166,
13,
12,
791,
29918,
24713,
353,
8783,
29961,
524,
29898,
29900,
29889,
29955,
29930,
2435,
29898,
24713,
876,
584,
938,
29898,
29900,
29889,
29947,
29945,
29930,
2435,
29898,
24713,
28166,
13,
12,
1688,
29918,
24713,
353,
8783,
29961,
524,
29898,
29900,
29889,
29947,
29945,
29930,
2435,
29898,
24713,
876,
17531,
13,
13,
12,
7620,
29918,
24713,
29898,
14968,
29918,
24713,
29892,
525,
1272,
29914,
14968,
1495,
13,
12,
7620,
29918,
24713,
29898,
791,
29918,
24713,
29892,
525,
1272,
29914,
791,
1495,
13,
12,
7620,
29918,
24713,
29898,
1688,
29918,
24713,
29892,
525,
1272,
29914,
1688,
1495,
2
] |
sdk/python/pulumi_azure/automation/connection.py | suresh198526/pulumi-azure | 0 | 165971 | <gh_stars>0
# 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
from .. import _utilities, _tables
__all__ = ['Connection']
class Connection(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
automation_account_name: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
values: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
__props__=None,
__name__=None,
__opts__=None):
"""
Manages an Automation Connection.
## Import
Automation Connection can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:automation/connection:Connection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/connections/conn1
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] automation_account_name: The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] description: A description for this Connection.
:param pulumi.Input[str] name: Specifies the name of the Connection. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] type: The type of the Connection - can be either builtin type such as `Azure`, `AzureClassicCertificate`, and `AzureServicePrincipal`, or a user defined types. Changing this forces a new resource to be created.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] values: A mapping of key value pairs passed to the connection. Different `type` needs different parameters in the `values`. Builtin types have required field values as below:
"""
if __name__ is not None:
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
resource_name = __name__
if __opts__ is not None:
warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
opts = __opts__
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__ = dict()
if automation_account_name is None:
raise TypeError("Missing required property 'automation_account_name'")
__props__['automation_account_name'] = automation_account_name
__props__['description'] = description
__props__['name'] = name
if resource_group_name is None:
raise TypeError("Missing required property 'resource_group_name'")
__props__['resource_group_name'] = resource_group_name
if type is None:
raise TypeError("Missing required property 'type'")
__props__['type'] = type
if values is None:
raise TypeError("Missing required property 'values'")
__props__['values'] = values
super(Connection, __self__).__init__(
'azure:automation/connection:Connection',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
automation_account_name: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
values: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'Connection':
"""
Get an existing Connection 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] automation_account_name: The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] description: A description for this Connection.
:param pulumi.Input[str] name: Specifies the name of the Connection. Changing this forces a new resource to be created.
:param pulumi.Input[str] resource_group_name: The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
:param pulumi.Input[str] type: The type of the Connection - can be either builtin type such as `Azure`, `AzureClassicCertificate`, and `AzureServicePrincipal`, or a user defined types. Changing this forces a new resource to be created.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] values: A mapping of key value pairs passed to the connection. Different `type` needs different parameters in the `values`. Builtin types have required field values as below:
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["automation_account_name"] = automation_account_name
__props__["description"] = description
__props__["name"] = name
__props__["resource_group_name"] = resource_group_name
__props__["type"] = type
__props__["values"] = values
return Connection(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="automationAccountName")
def automation_account_name(self) -> pulumi.Output[str]:
"""
The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "automation_account_name")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
A description for this Connection.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Specifies the name of the Connection. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Output[str]:
"""
The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "resource_group_name")
@property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
"""
The type of the Connection - can be either builtin type such as `Azure`, `AzureClassicCertificate`, and `AzureServicePrincipal`, or a user defined types. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def values(self) -> pulumi.Output[Mapping[str, str]]:
"""
A mapping of key value pairs passed to the connection. Different `type` needs different parameters in the `values`. Builtin types have required field values as below:
"""
return pulumi.get(self, "values")
def translate_output_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
def translate_input_property(self, prop):
return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
29937,
18610,
399,
25614,
29901,
445,
934,
471,
5759,
491,
278,
27477,
15547,
20839,
689,
16230,
313,
13264,
1885,
29897,
21704,
29889,
18610,
13,
29937,
18610,
1938,
451,
3863,
491,
1361,
6521,
366,
29915,
276,
3058,
366,
1073,
825,
366,
526,
2599,
29991,
18610,
13,
13,
5215,
18116,
13,
5215,
9505,
15547,
13,
5215,
9505,
15547,
29889,
15634,
13,
3166,
19229,
1053,
3139,
29892,
341,
20304,
29892,
28379,
29892,
922,
3910,
29892,
7761,
13,
3166,
6317,
1053,
903,
4422,
1907,
29892,
903,
24051,
13,
13,
1649,
497,
1649,
353,
6024,
5350,
2033,
13,
13,
13,
1990,
15160,
29898,
29886,
352,
15547,
29889,
7281,
6848,
1125,
13,
1678,
822,
4770,
2344,
12035,
1649,
1311,
1649,
29892,
13,
462,
6503,
29918,
978,
29901,
851,
29892,
13,
462,
29111,
29901,
28379,
29961,
29886,
352,
15547,
29889,
6848,
5856,
29962,
353,
6213,
29892,
13,
462,
3345,
362,
29918,
10149,
29918,
978,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
462,
6139,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
462,
1024,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
462,
6503,
29918,
2972,
29918,
978,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
462,
1134,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
462,
1819,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
15845,
29961,
710,
29892,
9505,
15547,
29889,
4290,
29961,
710,
5262,
5262,
353,
6213,
29892,
13,
462,
4770,
11030,
1649,
29922,
8516,
29892,
13,
462,
4770,
978,
1649,
29922,
8516,
29892,
13,
462,
4770,
25707,
1649,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
2315,
1179,
385,
15854,
362,
15160,
29889,
13,
13,
4706,
444,
16032,
13,
13,
4706,
15854,
362,
15160,
508,
367,
19673,
773,
278,
421,
10314,
1178,
1673,
321,
29889,
29887,
29889,
13,
13,
4706,
7521,
845,
13,
308,
395,
9505,
15547,
1053,
15699,
29901,
17405,
362,
29914,
9965,
29901,
5350,
1342,
847,
1491,
7588,
1980,
29914,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29900,
29914,
10314,
24020,
29914,
2972,
29896,
29914,
771,
29454,
29914,
11277,
29889,
28451,
362,
29914,
17405,
362,
10601,
29879,
29914,
10149,
29896,
29914,
11958,
1953,
29914,
13082,
29896,
13,
4706,
7521,
13,
13,
4706,
584,
3207,
851,
6503,
29918,
978,
29901,
450,
1024,
310,
278,
6503,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
6848,
5856,
29111,
29901,
25186,
363,
278,
6503,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
3345,
362,
29918,
10149,
29918,
978,
29901,
450,
1024,
310,
278,
3345,
362,
3633,
297,
607,
278,
15160,
338,
2825,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
6139,
29901,
319,
6139,
363,
445,
15160,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
1024,
29901,
12048,
11057,
278,
1024,
310,
278,
15160,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
6503,
29918,
2972,
29918,
978,
29901,
450,
1024,
310,
278,
6503,
2318,
297,
607,
278,
15160,
338,
2825,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
1134,
29901,
450,
1134,
310,
278,
15160,
448,
508,
367,
2845,
4240,
262,
1134,
1316,
408,
421,
28413,
1673,
421,
28413,
2385,
293,
20455,
8021,
1673,
322,
421,
28413,
3170,
4040,
26706,
1673,
470,
263,
1404,
3342,
4072,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
15845,
29961,
710,
29892,
9505,
15547,
29889,
4290,
29961,
710,
5262,
29962,
1819,
29901,
319,
10417,
310,
1820,
995,
11000,
4502,
304,
278,
3957,
29889,
360,
15622,
421,
1853,
29952,
4225,
1422,
4128,
297,
278,
421,
5975,
1412,
5373,
2782,
262,
4072,
505,
3734,
1746,
1819,
408,
2400,
29901,
13,
4706,
9995,
13,
4706,
565,
4770,
978,
1649,
338,
451,
6213,
29901,
13,
9651,
18116,
29889,
25442,
703,
4548,
4019,
671,
310,
4770,
978,
1649,
338,
18164,
613,
897,
1457,
9252,
22709,
29897,
13,
9651,
6503,
29918,
978,
353,
4770,
978,
1649,
13,
4706,
565,
4770,
25707,
1649,
338,
451,
6213,
29901,
13,
9651,
18116,
29889,
25442,
703,
4548,
4019,
671,
310,
4770,
25707,
1649,
338,
18164,
29892,
671,
525,
25707,
29915,
2012,
613,
897,
1457,
9252,
22709,
29897,
13,
9651,
29111,
353,
4770,
25707,
1649,
13,
4706,
565,
29111,
338,
6213,
29901,
13,
9651,
29111,
353,
9505,
15547,
29889,
6848,
5856,
580,
13,
4706,
565,
451,
338,
8758,
29898,
25707,
29892,
9505,
15547,
29889,
6848,
5856,
1125,
13,
9651,
12020,
20948,
877,
1252,
6021,
6503,
3987,
304,
367,
263,
18981,
5856,
2777,
1495,
13,
4706,
565,
29111,
29889,
3259,
338,
6213,
29901,
13,
9651,
29111,
29889,
3259,
353,
903,
4422,
1907,
29889,
657,
29918,
3259,
580,
13,
4706,
565,
29111,
29889,
333,
338,
6213,
29901,
13,
9651,
565,
4770,
11030,
1649,
338,
451,
6213,
29901,
13,
18884,
12020,
20948,
877,
1649,
11030,
1649,
338,
871,
2854,
746,
4502,
297,
10296,
411,
263,
2854,
29111,
29889,
333,
304,
679,
385,
5923,
6503,
1495,
13,
9651,
4770,
11030,
1649,
353,
9657,
580,
13,
13,
9651,
565,
3345,
362,
29918,
10149,
29918,
978,
338,
6213,
29901,
13,
18884,
12020,
20948,
703,
18552,
292,
3734,
2875,
525,
17405,
362,
29918,
10149,
29918,
978,
29915,
1159,
13,
9651,
4770,
11030,
1649,
1839,
17405,
362,
29918,
10149,
29918,
978,
2033,
353,
3345,
362,
29918,
10149,
29918,
978,
13,
9651,
4770,
11030,
1649,
1839,
8216,
2033,
353,
6139,
13,
9651,
4770,
11030,
1649,
1839,
978,
2033,
353,
1024,
13,
9651,
565,
6503,
29918,
2972,
29918,
978,
338,
6213,
29901,
13,
18884,
12020,
20948,
703,
18552,
292,
3734,
2875,
525,
10314,
29918,
2972,
29918,
978,
29915,
1159,
13,
9651,
4770,
11030,
1649,
1839,
10314,
29918,
2972,
29918,
978,
2033,
353,
6503,
29918,
2972,
29918,
978,
13,
9651,
565,
1134,
338,
6213,
29901,
13,
18884,
12020,
20948,
703,
18552,
292,
3734,
2875,
525,
1853,
29915,
1159,
13,
9651,
4770,
11030,
1649,
1839,
1853,
2033,
353,
1134,
13,
9651,
565,
1819,
338,
6213,
29901,
13,
18884,
12020,
20948,
703,
18552,
292,
3734,
2875,
525,
5975,
29915,
1159,
13,
9651,
4770,
11030,
1649,
1839,
5975,
2033,
353,
1819,
13,
4706,
2428,
29898,
5350,
29892,
4770,
1311,
1649,
467,
1649,
2344,
12035,
13,
9651,
525,
17688,
29901,
17405,
362,
29914,
9965,
29901,
5350,
742,
13,
9651,
6503,
29918,
978,
29892,
13,
9651,
4770,
11030,
1649,
29892,
13,
9651,
29111,
29897,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
679,
29898,
10314,
29918,
978,
29901,
851,
29892,
13,
9651,
1178,
29901,
9505,
15547,
29889,
4290,
29961,
710,
1402,
13,
9651,
29111,
29901,
28379,
29961,
29886,
352,
15547,
29889,
6848,
5856,
29962,
353,
6213,
29892,
13,
9651,
3345,
362,
29918,
10149,
29918,
978,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
9651,
6139,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
9651,
1024,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
9651,
6503,
29918,
2972,
29918,
978,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
9651,
1134,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
710,
5262,
353,
6213,
29892,
13,
9651,
1819,
29901,
28379,
29961,
29886,
352,
15547,
29889,
4290,
29961,
15845,
29961,
710,
29892,
9505,
15547,
29889,
4290,
29961,
710,
5262,
5262,
353,
6213,
29897,
1599,
525,
5350,
2396,
13,
4706,
9995,
13,
4706,
3617,
385,
5923,
15160,
6503,
29915,
29879,
2106,
411,
278,
2183,
1024,
29892,
1178,
29892,
322,
13136,
4805,
13,
4706,
4426,
1304,
304,
4021,
1598,
278,
16280,
29889,
13,
13,
4706,
584,
3207,
851,
6503,
29918,
978,
29901,
450,
5412,
1024,
310,
278,
9819,
6503,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
1178,
29901,
450,
5412,
13113,
3553,
310,
278,
6503,
304,
16280,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
6848,
5856,
29111,
29901,
25186,
363,
278,
6503,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
3345,
362,
29918,
10149,
29918,
978,
29901,
450,
1024,
310,
278,
3345,
362,
3633,
297,
607,
278,
15160,
338,
2825,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
6139,
29901,
319,
6139,
363,
445,
15160,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
1024,
29901,
12048,
11057,
278,
1024,
310,
278,
15160,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
6503,
29918,
2972,
29918,
978,
29901,
450,
1024,
310,
278,
6503,
2318,
297,
607,
278,
15160,
338,
2825,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
710,
29962,
1134,
29901,
450,
1134,
310,
278,
15160,
448,
508,
367,
2845,
4240,
262,
1134,
1316,
408,
421,
28413,
1673,
421,
28413,
2385,
293,
20455,
8021,
1673,
322,
421,
28413,
3170,
4040,
26706,
1673,
470,
263,
1404,
3342,
4072,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
584,
3207,
9505,
15547,
29889,
4290,
29961,
15845,
29961,
710,
29892,
9505,
15547,
29889,
4290,
29961,
710,
5262,
29962,
1819,
29901,
319,
10417,
310,
1820,
995,
11000,
4502,
304,
278,
3957,
29889,
360,
15622,
421,
1853,
29952,
4225,
1422,
4128,
297,
278,
421,
5975,
1412,
5373,
2782,
262,
4072,
505,
3734,
1746,
1819,
408,
2400,
29901,
13,
4706,
9995,
13,
4706,
29111,
353,
9505,
15547,
29889,
6848,
5856,
29889,
14634,
29898,
25707,
29892,
9505,
15547,
29889,
6848,
5856,
29898,
333,
29922,
333,
876,
13,
13,
4706,
4770,
11030,
1649,
353,
9657,
580,
13,
13,
4706,
4770,
11030,
1649,
3366,
17405,
362,
29918,
10149,
29918,
978,
3108,
353,
3345,
362,
29918,
10149,
29918,
978,
13,
4706,
4770,
11030,
1649,
3366,
8216,
3108,
353,
6139,
13,
4706,
4770,
11030,
1649,
3366,
978,
3108,
353,
1024,
13,
4706,
4770,
11030,
1649,
3366,
10314,
29918,
2972,
29918,
978,
3108,
353,
6503,
29918,
2972,
29918,
978,
13,
4706,
4770,
11030,
1649,
3366,
1853,
3108,
353,
1134,
13,
4706,
4770,
11030,
1649,
3366,
5975,
3108,
353,
1819,
13,
4706,
736,
15160,
29898,
10314,
29918,
978,
29892,
29111,
29922,
25707,
29892,
4770,
11030,
1649,
29922,
1649,
11030,
1649,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
732,
29886,
352,
15547,
29889,
657,
357,
29898,
978,
543,
17405,
362,
10601,
1170,
1159,
13,
1678,
822,
3345,
362,
29918,
10149,
29918,
978,
29898,
1311,
29897,
1599,
9505,
15547,
29889,
6466,
29961,
710,
5387,
13,
4706,
9995,
13,
4706,
450,
1024,
310,
278,
3345,
362,
3633,
297,
607,
278,
15160,
338,
2825,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
9995,
13,
4706,
736,
9505,
15547,
29889,
657,
29898,
1311,
29892,
376,
17405,
362,
29918,
10149,
29918,
978,
1159,
13,
13,
1678,
732,
6799,
13,
1678,
732,
29886,
352,
15547,
29889,
657,
357,
13,
1678,
822,
6139,
29898,
1311,
29897,
1599,
9505,
15547,
29889,
6466,
29961,
27636,
29961,
710,
5262,
29901,
13,
4706,
9995,
13,
4706,
319,
6139,
363,
445,
15160,
29889,
13,
4706,
9995,
13,
4706,
736,
9505,
15547,
29889,
657,
29898,
1311,
29892,
376,
8216,
1159,
13,
13,
1678,
732,
6799,
13,
1678,
732,
29886,
352,
15547,
29889,
657,
357,
13,
1678,
822,
1024,
29898,
1311,
29897,
1599,
9505,
15547,
29889,
6466,
29961,
710,
5387,
13,
4706,
9995,
13,
4706,
12048,
11057,
278,
1024,
310,
278,
15160,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
9995,
13,
4706,
736,
9505,
15547,
29889,
657,
29898,
1311,
29892,
376,
978,
1159,
13,
13,
1678,
732,
6799,
13,
1678,
732,
29886,
352,
15547,
29889,
657,
357,
29898,
978,
543,
10314,
4782,
1170,
1159,
13,
1678,
822,
6503,
29918,
2972,
29918,
978,
29898,
1311,
29897,
1599,
9505,
15547,
29889,
6466,
29961,
710,
5387,
13,
4706,
9995,
13,
4706,
450,
1024,
310,
278,
6503,
2318,
297,
607,
278,
15160,
338,
2825,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
9995,
13,
4706,
736,
9505,
15547,
29889,
657,
29898,
1311,
29892,
376,
10314,
29918,
2972,
29918,
978,
1159,
13,
13,
1678,
732,
6799,
13,
1678,
732,
29886,
352,
15547,
29889,
657,
357,
13,
1678,
822,
1134,
29898,
1311,
29897,
1599,
9505,
15547,
29889,
6466,
29961,
710,
5387,
13,
4706,
9995,
13,
4706,
450,
1134,
310,
278,
15160,
448,
508,
367,
2845,
4240,
262,
1134,
1316,
408,
421,
28413,
1673,
421,
28413,
2385,
293,
20455,
8021,
1673,
322,
421,
28413,
3170,
4040,
26706,
1673,
470,
263,
1404,
3342,
4072,
29889,
678,
9776,
445,
8249,
263,
716,
6503,
304,
367,
2825,
29889,
13,
4706,
9995,
13,
4706,
736,
9505,
15547,
29889,
657,
29898,
1311,
29892,
376,
1853,
1159,
13,
13,
1678,
732,
6799,
13,
1678,
732,
29886,
352,
15547,
29889,
657,
357,
13,
1678,
822,
1819,
29898,
1311,
29897,
1599,
9505,
15547,
29889,
6466,
29961,
15845,
29961,
710,
29892,
851,
5262,
29901,
13,
4706,
9995,
13,
4706,
319,
10417,
310,
1820,
995,
11000,
4502,
304,
278,
3957,
29889,
360,
15622,
421,
1853,
29952,
4225,
1422,
4128,
297,
278,
421,
5975,
1412,
5373,
2782,
262,
4072,
505,
3734,
1746,
1819,
408,
2400,
29901,
13,
4706,
9995,
13,
4706,
736,
9505,
15547,
29889,
657,
29898,
1311,
29892,
376,
5975,
1159,
13,
13,
1678,
822,
14240,
29918,
4905,
29918,
6799,
29898,
1311,
29892,
3107,
1125,
13,
4706,
736,
903,
24051,
29889,
5454,
2303,
29931,
29918,
4986,
29918,
29903,
3521,
6059,
29918,
23487,
29918,
21009,
29889,
657,
29898,
7728,
29897,
470,
3107,
13,
13,
1678,
822,
14240,
29918,
2080,
29918,
6799,
29898,
1311,
29892,
3107,
1125,
13,
4706,
736,
903,
24051,
29889,
29903,
3521,
6059,
29918,
4986,
29918,
5454,
2303,
29931,
29918,
23487,
29918,
21009,
29889,
657,
29898,
7728,
29897,
470,
3107,
13,
13,
2
] |
start.py | AndersonOyama/TCC | 0 | 121507 | import re
from spellchecker import SpellChecker
def countSpellError(file):
spell = SpellChecker(language='pt')
lines = []
with open(file, 'r') as f:
lines = [word.replace('.', '').replace(',','') for line in f for word in line.split()]
f.close()
count = 0
misspelled = spell.unknown(lines)
for word in misspelled:
# spell.correction(word)
# print(word)
# print(word, spell.correction(word))
count += 1
return misspelled, count
| [
1,
1053,
337,
13,
13,
3166,
24779,
3198,
261,
1053,
1706,
514,
5596,
261,
13,
13,
1753,
2302,
5592,
514,
2392,
29898,
1445,
1125,
13,
13,
1678,
24779,
353,
1706,
514,
5596,
261,
29898,
11675,
2433,
415,
1495,
13,
1678,
3454,
353,
5159,
13,
1678,
411,
1722,
29898,
1445,
29892,
525,
29878,
1495,
408,
285,
29901,
13,
4706,
3454,
353,
518,
1742,
29889,
6506,
12839,
742,
525,
2824,
6506,
29317,
3788,
1495,
363,
1196,
297,
285,
363,
1734,
297,
1196,
29889,
5451,
580,
29962,
13,
1678,
285,
29889,
5358,
580,
13,
1678,
2302,
353,
29871,
29900,
13,
1678,
3052,
13111,
839,
353,
24779,
29889,
26690,
29898,
9012,
29897,
13,
13,
1678,
363,
1734,
297,
3052,
13111,
839,
29901,
13,
4706,
396,
24779,
29889,
2616,
276,
428,
29898,
1742,
29897,
13,
4706,
396,
1596,
29898,
1742,
29897,
13,
4706,
396,
1596,
29898,
1742,
29892,
24779,
29889,
2616,
276,
428,
29898,
1742,
876,
13,
4706,
2302,
4619,
29871,
29896,
13,
268,
13,
268,
13,
1678,
736,
3052,
13111,
839,
29892,
2302,
13,
2
] |
test-projects/django_1_0/urls.py | TheLitvinoff/django-async | 13 | 182659 | from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Enable Slumber
(r'^slumber/', include('slumber.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/(.*)', admin.site.root),
)
| [
1,
515,
9557,
29889,
5527,
29889,
26045,
29889,
4381,
29879,
1053,
334,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
13,
13,
6406,
29889,
1300,
397,
10669,
957,
580,
13,
13,
2271,
11037,
29879,
353,
15038,
877,
742,
13,
1678,
396,
1174,
519,
14866,
2807,
13,
1678,
313,
29878,
29915,
29985,
2536,
2807,
29914,
742,
3160,
877,
2536,
2807,
29889,
26045,
1495,
511,
13,
13,
1678,
396,
853,
9342,
278,
2446,
1196,
304,
9025,
278,
4113,
29901,
13,
1678,
313,
29878,
29915,
29985,
6406,
14571,
5575,
29897,
742,
4113,
29889,
2746,
29889,
4632,
511,
13,
29897,
13,
2
] |
dockerimp.py | N4SJAMK/dockerimp | 0 | 195181 | #!/usr/bin/env python
DOCUMENTATION = '''
---
module: dockerimp
short_description: improved docker container management module
description:
- Manage docker containers with ansible
options:
name:
description:
- Set the name of the container
required: false
default: null
aliases: ["id"]
state:
description:
- Set the state of the container
required: true
default: null
choices: [
"present", "running", "stopped", "absent",
"restarted", "image_present", "image_latest",
"image_absent"
]
aliases: []
image:
description:
- Set the image for the container
required: false
default: null
aliases: []
env:
description:
- Set the container environment variables
required: false
default: null
aliases: []
volumes:
description:
- Mount voulumes for the container
required: false
default: null
aliases: []
ports:
description:
- Map ports for container
required: false
default: null
aliases: []
command:
description:
- Set the command for container
required: false
default: null
aliases: []
expose:
description:
- Expose ports
required: false
default: null
aliases: []
links:
description:
- Link containers
required: false
default: null
aliases: []
client_url:
description:
- Client base url
required: false
default: "unix://var/run/docker.sock"
aliases: []
insecure_registry:
description:
- Trust insecure registrys
required: false
default: false
aliases: []
'''
import sys
import copy
try:
import docker.client
except ImportError as e:
print("Failed to import module {0}".format(e))
sys.exit(1)
class ContainerManagerException(Exception):
pass
class ContainerManager():
def __init__(self, module):
self.module = module
self.client = docker.Client(base_url = module.params.get('client_url'))
self.changed = False
self.check_mode = module.check_mode
self.changes_made = []
self.params = self.fix_parameters()
def fix_parameters(self):
params = copy.deepcopy(self.module.params)
if params.get('volumes'):
try:
if type(params['volumes']) is str:
volumes = params['volumes'].split(",")
elif type(params['volumes']) is list:
volumes = params['volumes']
else:
raise ContainerManagerException({'Invalid argument': params['volumes']})
mount_points = [x.split(":")[1] for x in volumes]
binds = {}
for i in volumes:
j = i.split(":")
len_j = len(j)
if len_j != 2 and len_j != 3:
raise ContainerManagerException({'Invalid argument': params['volumes']})
ro = False
if len_j == 3:
if j[2] == "ro":
ro = True
elif j[2] == "rw":
ro = False
else:
raise ContainerManagerException({'Invalid argument': params['volumes']})
binds[j[0]] = {'bind': j[1], 'ro': ro}
params['binds'] = binds
params['volumes'] = mount_points
except IndexError as e:
raise ContainerManagerException({'Invalid argument': params['volumes']})
if params.get('image'):
# add 'latest' tag to the image name if no tag is already provided
image = params['image']
image_split = image.split("/")[-1].split(":")
if len(image_split) == 1:
params['image'] = "{0}:latest".format(params['image'])
if params.get('ports'):
try:
if type(params['ports']) is str:
port_params = params['ports'].split(",")
elif type(params['ports']) is list:
port_params = params['ports']
else:
raise ContainerManagerException({'Invalid argument': params['ports']})
ports = []
for i in port_params:
values = i.split(":")
len_values = len(values)
if len_values != 2 and len_values != 3:
raise ContainerManagerException({'Invalid argument': params['ports']})
port_and_prot = values[-1].split("/")
len_port_and_prot = len(port_and_prot)
if len_port_and_prot > 2:
raise ContainerManagerException({'Invalid argument': params['ports']})
p = (port_and_prot[0], port_and_prot[1]) if len_port_and_prot == 2 else port_and_prot[0]
ports.append(p)
port_bindings = {}
for i in port_params:
values = i.split(":")
len_values = len(values)
if len_values == 2:
host_port = values[0]
prot_and_port = values[1]
bind_ip = None
elif len_values == 3:
host_port = values[1]
prot_and_port = values[2]
bind_ip = values[0]
else:
raise ContainerManagerException({'Invalid argument': params['ports']})
prot_and_port = prot_and_port.split("/")
len_prot_and_port = len(prot_and_port)
if len_prot_and_port == 2:
key = "{0}/{1}".format(prot_and_port[0], prot_and_port[1])
elif len_prot_and_port == 1:
key = prot_and_port[0]
else:
raise ContainerManagerException({'Invalid argument': params['ports']})
if bind_ip:
val = (bind_ip, host_port) if host_port else (bind_ip,)
else:
val = host_port or None
port_bindings[key] = val
params['ports'] = ports
params['port_bindings'] = port_bindings
except IndexError as e:
raise ContainerManagerException({'Invalid argument': params['ports'], 'error': e})
if params.get('env'):
if type(params['env']) is str:
envs = params['env'].split(",")
elif type(params['env']) is list:
envs = params['env']
elif type(params['env']) is dict:
envs = ["{0}={1}".format(x, params['env'][x]) for x in params['env']]
else:
raise ContainerManagerException({'Invalid argument': params['env']})
# Add special ANSIBLE_MANAGED_ENVS variable so we can track which
# variables are managed by ansible
envs.append("ANSIBLE_MANAGED_ENVS={0}".format(":".join([x.split("=")[0] for x in envs])))
params['environment'] = envs
return params
def ensure_present(self):
required_params = ("name", "image")
self.check_required_parameters(required_params)
container = self.find_container(self.params['name'])
self.__ensure_present(container)
def ensure_running(self):
required_params = ("name", "image")
self.check_required_parameters(required_params)
container = self.find_container(self.params['name'])
container = self.__ensure_present(container)
if not container['State']['Running']:
container = self.start_container(container)
def ensure_running_latest(self):
required_params = ("name", "image")
self.check_required_parameters(required_params)
container = self.find_container(self.params['name'])
image = self.find_image(self.params['image'])
if not container:
container = self.__ensure_present(container)
elif not self.is_running_latest_image(container, image):
self.remove_container(container)
container = self.__ensure_present()
elif not self.ensure_same(container):
self.ensure_absent()
container = self.__ensure_present()
if not container['State']['Running']:
self.start_container(container)
def ensure_stopped(self):
required_params = ("name",)
self.check_required_parameters(required_params)
container = self.find_container(self.params['name'])
if not container:
raise ContainerManagerException("Container not found")
if container['State']['Running']:
self.stop_container(container)
def ensure_absent(self):
required_params = ("name",)
self.check_required_parameters(required_params)
container = self.find_container(self.params['name'])
self.remove_container(container)
def restart(self):
required_params = ("name",)
self.check_required_parameters(required_params)
container = self.find_container(self.params.get('name'))
if not container:
raise ContainerManagerException("Container not found")
if not container['State']['Running']:
raise ContainerManagerException("Container not running")
self.restart_container(container)
def ensure_image_present(self):
required_params = ("image",)
self.check_required_parameters(required_params)
self.__ensure_image_present(self.params['image'])
def ensure_image_latest(self):
required_params = ("image",)
self.check_required_parameters(required_params)
self.__ensure_image_latest(self.params['image'])
def ensure_image_absent(self):
required_params = ("image",)
self.check_required_parameters(required_params)
name = self.params['image']
if self.find_image(name):
self.client.remove_image(name)
def __ensure_present(self, container = None):
if not container:
self.__ensure_image_present(self.params['image'])
container = self.create_container()
elif not self.ensure_same(container):
self.ensure_absent()
container = self.__ensure_present()
return container
def __ensure_image_present(self, name):
image = self.find_image(name)
if not image:
self.pull_image(name)
def __ensure_image_latest(self, name):
self.pull_image(name)
return self.find_image(name)
def check_required_parameters(self, required):
for i in required:
if not self.params.get(i):
state = self.params['state']
error_msg = "{0} required for {1} satate".format(i, state)
raise ContainerManagerException(error_msg)
def find_container(self, name):
containers = self.client.containers(all = True)
c = [x for x in containers if
((x['Names'] or [""])[0] == "/{0}".format(name)) or
(len(name) > 9 and x['Id'].startswith(name))]
if len(c) > 1:
error_msg = "Found more than one container with name or id"
raise ContainerManagerException({'Unexpected error': error_msg})
if c:
container = self.get_info(c[0])
return container
return None
def find_image(self, name):
# client.images method does not throw an error if image is not found, it just
# returns an empty array. client.inspect_image throws an error if image is not
# found. Propably cleaner to do this way than to catch an error.
image_name = name.split(":")
# image name may contain port, so rejoin everything exept last item which is tag
images = self.client.images(name = ":".join(image_name[:-1]))
image_len = len(images)
if image_len == 0:
return None
else:
for i in images:
if name in i['RepoTags']:
return self.client.inspect_image(name)
else:
return None
def is_running_latest_image(self, container, image):
if not image:
return False
if image['Id'] == container['Image']:
return True
else:
return False
def get_info(self, container):
return self.client.inspect_container(container)
def get_image_info(self, image):
return self.client.inspect_image(image)
def pull_image(self, name):
insecure_registry = self.params['insecure_registry']
old = self.find_image(name)
self.client.pull(name, insecure_registry = insecure_registry)
new = self.find_image(name)
if not new:
error_msg = "Cannot find {0}".format(name)
raise ContainerManagerException({'Image not found': error_msg})
elif new['Id'] != (old or {}).get('Id'):
self.write_log('PULLED', new)
def create_container(self):
params = self.params
key_filter = (
'image', 'command', 'hostname', 'user',
'detach', 'stdin_open', 'tty', 'mem_limit',
'ports', 'environment', 'dns', 'volumes',
'volumes_from', 'network_disabled', 'name',
'entrypoint', 'cpu_shares', 'working_dir',
'memswap_limit'
)
filtered = { x: params[x] for x in key_filter if x in params }
c = self.client.create_container(**filtered)
container = self.get_info(c)
self.write_log('CREATED', container)
return container
def start_container(self, container):
params = self.params
key_filter = (
'binds', 'port_bindings', 'lxc_conf',
'publish_all_ports', 'links', 'privileged',
'dns', 'dns_search', 'volumes_from', 'network_mode',
'restart_policy', 'cap_add', 'cap_drop'
)
filtered = { x: params[x] for x in key_filter if x in params }
self.client.start(container, **filtered)
container = self.get_info(container)
self.write_log('STARTED', container)
return container
def stop_container(self, container):
self.client.stop(container)
container = self.get_info(container)
self.write_log('STOPPED', container)
return container
def remove_container(self, container):
if container['State']['Running']:
container = self.stop_container(container)
self.client.remove_container(container)
c = self.find_container(container['Id'])
if c:
raise ContainerManagerException("Could not remove the container")
self.write_log('REMOVED', container)
def restart_container(self, container):
self.client.restart(container)
container = self.get_info(container)
self.write_log('RESTARTED', container)
def ensure_same(self, container):
params = self.params
require_restart = False
# Ensure running the right image
if container['Config']['Image'] != params['image']:
require_restart = True
# Ensure running latest image if the parameter is provided
same = True
if params.get('latest_image'):
self.client.pull(params['image'])
if not self.running_latest_image(container, params['image']):
same = False
require_restart = True
# Ensure environment vars are up to date
for i in container['Config']['Env']:
if "ANSIBLE_MANAGED_ENVS" in i:
ansible_managed_envs = i.split("=")[1].split(":")
# Add the magic ANSIBLE_MANAGED_ENVS key value here
# so that the two lists are easily comparable with
# set() below
ansible_managed_envs.append("ANSIBLE_MANAGED_ENVS")
has_ansible_managed_envs = True
break
else:
has_ansible_managed_envs = False
has_env_params = params.get('environment') != None
if has_env_params or has_ansible_managed_envs:
if has_env_params and has_ansible_managed_envs:
env_params = params['environment']
# Check same variables are set
if set(ansible_managed_envs) != set([x.split("=")[0] for x in env_params]):
require_restart = True
# Check that the values are right
else:
for env in env_params:
if env not in container['Config']['Env']:
require_restart = True
break
else:
require_restart = True
# Ensure volume mountings are right
container_binds = container['HostConfig']['Binds']
bind_params = params.get('binds')
if container_binds or bind_params:
if container_binds and bind_params:
_bind_params = [
":".join([
x, bind_params[x]['bind'], "ro" if bind_params[x]['ro'] else "rw"
]) for x in bind_params
]
if set(_bind_params) != set(container_binds):
require_restart = True
else:
require_restart = True
# Ensure command is right
if params.get('command'):
if params['command'] != container['Command']:
require_restart = True
return require_restart != True
def generate_message(self):
if not self.has_changes():
msg = "Up to date. No changes made"
else:
msg = self.changes_made
return msg
def write_log(self, action, info):
key_filter = (
'Name', 'Id', 'Image',
)
filtered = { x: info[x] for x in key_filter if x in info }
self.changes_made.append({action: filtered})
def has_changes(self):
if self.changes_made:
return True
return False
def main():
arguments = {
'state': {
'required': True,
'choices': [
"present", "running", "running_latest",
"stopped", "absent", "restarted",
"image_present", "image_latest",
]
},
'name': { 'default': None, 'aliases': ["id"] },
'image': { 'default': None },
'env': { 'default': None },
'volumes': { 'default': None },
'ports': { 'default': None },
'command': { 'default': None },
'expose': { 'default': None },
'links': { 'default': None },
'insecure_registry': { 'default': False, 'choises': BOOLEANS },
}
#module = AnsibleModule(argument_spec = arguments, supports_check_mode = True)
module = AnsibleModule(argument_spec = arguments)
try:
manager = ContainerManager(module)
state = module.params.get('state')
if state == "present":
manager.ensure_present()
elif state == "running":
manager.ensure_running()
elif state == "running_latest":
manager.ensure_running_latest()
elif state == "stopped":
manager.ensure_stopped()
elif state == "absent":
manager.ensure_absent()
elif state == "restarted":
manager.restart()
elif state == "image_present":
manager.ensure_image_present()
elif state == "image_latest":
manager.ensure_image_latest()
elif state == "image_absent":
manager.ensure_image_absent()
module.exit_json(changed = manager.has_changes(), msg = manager.generate_message())
except ContainerManagerException as e:
module.fail_json(msg = str(e))
except docker.errors.APIError as e:
module.fail_json(msg = str(e))
except docker.errors.DockerException as e:
module.fail_json(msg = str(e))
from ansible.module_utils.basic import *
main()
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
28665,
5005,
3919,
8098,
353,
14550,
13,
5634,
13,
5453,
29901,
10346,
6574,
13,
12759,
29918,
8216,
29901,
16710,
10346,
5639,
10643,
3883,
13,
8216,
29901,
13,
1678,
448,
2315,
482,
10346,
22637,
411,
385,
1687,
13,
6768,
29901,
13,
1678,
1024,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
3789,
278,
1024,
310,
278,
5639,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
6796,
333,
3108,
13,
1678,
2106,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
3789,
278,
2106,
310,
278,
5639,
13,
4706,
3734,
29901,
1565,
13,
4706,
2322,
29901,
1870,
13,
4706,
19995,
29901,
518,
13,
9651,
376,
6338,
613,
376,
21094,
613,
376,
7864,
2986,
613,
376,
6897,
296,
613,
13,
9651,
376,
5060,
442,
287,
613,
376,
3027,
29918,
6338,
613,
376,
3027,
29918,
12333,
613,
13,
9651,
376,
3027,
29918,
6897,
296,
29908,
13,
4706,
4514,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
1967,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
3789,
278,
1967,
363,
278,
5639,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
8829,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
3789,
278,
5639,
5177,
3651,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
18167,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
8040,
325,
5059,
9351,
363,
278,
5639,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
16169,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
7315,
16169,
363,
5639,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
1899,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
3789,
278,
1899,
363,
5639,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
24396,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
1222,
4220,
16169,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
2988,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
6645,
22637,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
1870,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
3132,
29918,
2271,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
12477,
2967,
3142,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
376,
24538,
597,
1707,
29914,
3389,
29914,
14695,
29889,
21852,
29908,
13,
4706,
14430,
2129,
29901,
5159,
13,
1678,
297,
24216,
29918,
1727,
6020,
29901,
13,
4706,
6139,
29901,
13,
9651,
448,
20692,
297,
24216,
21235,
29879,
13,
4706,
3734,
29901,
2089,
13,
4706,
2322,
29901,
2089,
13,
4706,
14430,
2129,
29901,
5159,
13,
12008,
13,
5215,
10876,
13,
5215,
3509,
13,
2202,
29901,
13,
1678,
1053,
10346,
29889,
4645,
13,
19499,
16032,
2392,
408,
321,
29901,
13,
1678,
1596,
703,
17776,
304,
1053,
3883,
426,
29900,
29913,
1642,
4830,
29898,
29872,
876,
13,
1678,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
1990,
21679,
3260,
2451,
29898,
2451,
1125,
13,
1678,
1209,
13,
13,
1990,
21679,
3260,
7295,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3883,
1125,
13,
4706,
1583,
29889,
5453,
353,
3883,
13,
4706,
1583,
29889,
4645,
353,
10346,
29889,
4032,
29898,
3188,
29918,
2271,
353,
3883,
29889,
7529,
29889,
657,
877,
4645,
29918,
2271,
8785,
13,
4706,
1583,
29889,
15033,
353,
7700,
13,
4706,
1583,
29889,
3198,
29918,
8513,
353,
3883,
29889,
3198,
29918,
8513,
13,
4706,
1583,
29889,
25990,
29918,
26350,
353,
5159,
13,
4706,
1583,
29889,
7529,
353,
1583,
29889,
5878,
29918,
16744,
580,
13,
13,
1678,
822,
2329,
29918,
16744,
29898,
1311,
1125,
13,
4706,
8636,
353,
3509,
29889,
24535,
8552,
29898,
1311,
29889,
5453,
29889,
7529,
29897,
13,
4706,
565,
8636,
29889,
657,
877,
1555,
9351,
29374,
13,
9651,
1018,
29901,
13,
18884,
565,
1134,
29898,
7529,
1839,
1555,
9351,
11287,
338,
851,
29901,
13,
462,
1678,
18167,
353,
8636,
1839,
1555,
9351,
13359,
5451,
28165,
1159,
13,
18884,
25342,
1134,
29898,
7529,
1839,
1555,
9351,
11287,
338,
1051,
29901,
13,
462,
1678,
18167,
353,
8636,
1839,
1555,
9351,
2033,
13,
18884,
1683,
29901,
13,
462,
1678,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
1555,
9351,
2033,
1800,
13,
18884,
5766,
29918,
9748,
353,
518,
29916,
29889,
5451,
703,
29901,
1159,
29961,
29896,
29962,
363,
921,
297,
18167,
29962,
13,
13,
18884,
7868,
29879,
353,
6571,
13,
18884,
363,
474,
297,
18167,
29901,
13,
462,
1678,
432,
353,
474,
29889,
5451,
703,
29901,
1159,
13,
462,
1678,
7431,
29918,
29926,
353,
7431,
29898,
29926,
29897,
13,
462,
1678,
565,
7431,
29918,
29926,
2804,
29871,
29906,
322,
7431,
29918,
29926,
2804,
29871,
29941,
29901,
13,
462,
4706,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
1555,
9351,
2033,
1800,
13,
462,
1678,
696,
353,
7700,
13,
462,
1678,
565,
7431,
29918,
29926,
1275,
29871,
29941,
29901,
13,
462,
4706,
565,
432,
29961,
29906,
29962,
1275,
376,
307,
1115,
13,
462,
9651,
696,
353,
5852,
13,
462,
4706,
25342,
432,
29961,
29906,
29962,
1275,
376,
13975,
1115,
13,
462,
9651,
696,
353,
7700,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
1555,
9351,
2033,
1800,
13,
13,
462,
1678,
7868,
29879,
29961,
29926,
29961,
29900,
5262,
353,
11117,
5355,
2396,
432,
29961,
29896,
1402,
525,
307,
2396,
696,
29913,
13,
13,
18884,
8636,
1839,
5355,
29879,
2033,
353,
7868,
29879,
13,
18884,
8636,
1839,
1555,
9351,
2033,
353,
5766,
29918,
9748,
13,
9651,
5174,
11374,
2392,
408,
321,
29901,
13,
18884,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
1555,
9351,
2033,
1800,
13,
13,
4706,
565,
8636,
29889,
657,
877,
3027,
29374,
13,
9651,
396,
788,
525,
12333,
29915,
4055,
304,
278,
1967,
1024,
565,
694,
4055,
338,
2307,
4944,
13,
9651,
1967,
353,
8636,
1839,
3027,
2033,
13,
9651,
1967,
29918,
5451,
353,
1967,
29889,
5451,
11974,
1159,
14352,
29896,
1822,
5451,
703,
29901,
1159,
13,
9651,
565,
7431,
29898,
3027,
29918,
5451,
29897,
1275,
29871,
29896,
29901,
13,
18884,
8636,
1839,
3027,
2033,
353,
29850,
29900,
6177,
12333,
1642,
4830,
29898,
7529,
1839,
3027,
11287,
13,
13,
4706,
565,
8636,
29889,
657,
877,
4011,
29374,
13,
9651,
1018,
29901,
13,
18884,
565,
1134,
29898,
7529,
1839,
4011,
11287,
338,
851,
29901,
13,
462,
1678,
2011,
29918,
7529,
353,
8636,
1839,
4011,
13359,
5451,
28165,
1159,
13,
18884,
25342,
1134,
29898,
7529,
1839,
4011,
11287,
338,
1051,
29901,
13,
462,
1678,
2011,
29918,
7529,
353,
8636,
1839,
4011,
2033,
13,
18884,
1683,
29901,
13,
462,
1678,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
4011,
2033,
1800,
13,
13,
18884,
16169,
353,
5159,
13,
18884,
363,
474,
297,
2011,
29918,
7529,
29901,
13,
462,
1678,
1819,
353,
474,
29889,
5451,
703,
29901,
1159,
13,
462,
1678,
7431,
29918,
5975,
353,
7431,
29898,
5975,
29897,
13,
462,
1678,
565,
7431,
29918,
5975,
2804,
29871,
29906,
322,
7431,
29918,
5975,
2804,
29871,
29941,
29901,
13,
462,
4706,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
4011,
2033,
1800,
13,
462,
1678,
2011,
29918,
392,
29918,
771,
29873,
353,
1819,
14352,
29896,
1822,
5451,
11974,
1159,
13,
462,
1678,
7431,
29918,
637,
29918,
392,
29918,
771,
29873,
353,
7431,
29898,
637,
29918,
392,
29918,
771,
29873,
29897,
13,
462,
1678,
565,
7431,
29918,
637,
29918,
392,
29918,
771,
29873,
1405,
29871,
29906,
29901,
13,
462,
4706,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
4011,
2033,
1800,
13,
462,
1678,
282,
353,
313,
637,
29918,
392,
29918,
771,
29873,
29961,
29900,
1402,
2011,
29918,
392,
29918,
771,
29873,
29961,
29896,
2314,
565,
7431,
29918,
637,
29918,
392,
29918,
771,
29873,
1275,
29871,
29906,
1683,
2011,
29918,
392,
29918,
771,
29873,
29961,
29900,
29962,
13,
462,
1678,
16169,
29889,
4397,
29898,
29886,
29897,
13,
13,
18884,
2011,
29918,
5355,
886,
353,
6571,
13,
18884,
363,
474,
297,
2011,
29918,
7529,
29901,
13,
462,
1678,
1819,
353,
474,
29889,
5451,
703,
29901,
1159,
13,
462,
1678,
7431,
29918,
5975,
353,
7431,
29898,
5975,
29897,
13,
462,
1678,
565,
7431,
29918,
5975,
1275,
29871,
29906,
29901,
13,
462,
4706,
3495,
29918,
637,
353,
1819,
29961,
29900,
29962,
13,
462,
4706,
17512,
29918,
392,
29918,
637,
353,
1819,
29961,
29896,
29962,
13,
462,
4706,
7868,
29918,
666,
353,
6213,
13,
462,
1678,
25342,
7431,
29918,
5975,
1275,
29871,
29941,
29901,
13,
462,
4706,
3495,
29918,
637,
353,
1819,
29961,
29896,
29962,
13,
462,
4706,
17512,
29918,
392,
29918,
637,
353,
1819,
29961,
29906,
29962,
13,
462,
4706,
7868,
29918,
666,
353,
1819,
29961,
29900,
29962,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
4011,
2033,
1800,
13,
462,
1678,
17512,
29918,
392,
29918,
637,
353,
17512,
29918,
392,
29918,
637,
29889,
5451,
11974,
1159,
13,
462,
1678,
7431,
29918,
771,
29873,
29918,
392,
29918,
637,
353,
7431,
29898,
771,
29873,
29918,
392,
29918,
637,
29897,
13,
462,
1678,
565,
7431,
29918,
771,
29873,
29918,
392,
29918,
637,
1275,
29871,
29906,
29901,
13,
462,
4706,
1820,
353,
29850,
29900,
6822,
29912,
29896,
29913,
1642,
4830,
29898,
771,
29873,
29918,
392,
29918,
637,
29961,
29900,
1402,
17512,
29918,
392,
29918,
637,
29961,
29896,
2314,
13,
462,
1678,
25342,
7431,
29918,
771,
29873,
29918,
392,
29918,
637,
1275,
29871,
29896,
29901,
13,
462,
4706,
1820,
353,
17512,
29918,
392,
29918,
637,
29961,
29900,
29962,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
4011,
2033,
1800,
13,
462,
1678,
565,
7868,
29918,
666,
29901,
13,
462,
4706,
659,
353,
313,
5355,
29918,
666,
29892,
3495,
29918,
637,
29897,
565,
3495,
29918,
637,
1683,
313,
5355,
29918,
666,
29892,
29897,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
659,
353,
3495,
29918,
637,
470,
6213,
13,
462,
1678,
2011,
29918,
5355,
886,
29961,
1989,
29962,
353,
659,
13,
13,
18884,
8636,
1839,
4011,
2033,
353,
16169,
13,
18884,
8636,
1839,
637,
29918,
5355,
886,
2033,
353,
2011,
29918,
5355,
886,
13,
13,
9651,
5174,
11374,
2392,
408,
321,
29901,
13,
18884,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
4011,
7464,
525,
2704,
2396,
321,
1800,
13,
13,
4706,
565,
8636,
29889,
657,
877,
6272,
29374,
13,
9651,
565,
1134,
29898,
7529,
1839,
6272,
11287,
338,
851,
29901,
13,
18884,
427,
4270,
353,
8636,
1839,
6272,
13359,
5451,
28165,
1159,
13,
9651,
25342,
1134,
29898,
7529,
1839,
6272,
11287,
338,
1051,
29901,
13,
18884,
427,
4270,
353,
8636,
1839,
6272,
2033,
13,
9651,
25342,
1134,
29898,
7529,
1839,
6272,
11287,
338,
9657,
29901,
13,
18884,
427,
4270,
353,
6796,
29912,
29900,
29913,
3790,
29896,
29913,
1642,
4830,
29898,
29916,
29892,
8636,
1839,
6272,
2033,
29961,
29916,
2314,
363,
921,
297,
8636,
1839,
6272,
2033,
29962,
13,
9651,
1683,
29901,
13,
18884,
12020,
21679,
3260,
2451,
3319,
29915,
13919,
2980,
2396,
8636,
1839,
6272,
2033,
1800,
13,
13,
9651,
396,
3462,
4266,
319,
3059,
8979,
1307,
29918,
1529,
3521,
1692,
29928,
29918,
1430,
21819,
2286,
577,
591,
508,
5702,
607,
13,
9651,
396,
3651,
526,
8745,
491,
385,
1687,
13,
9651,
427,
4270,
29889,
4397,
703,
2190,
5425,
29933,
1307,
29918,
1529,
3521,
1692,
29928,
29918,
1430,
21819,
3790,
29900,
29913,
1642,
4830,
703,
29901,
1642,
7122,
4197,
29916,
29889,
5451,
703,
543,
9601,
29900,
29962,
363,
921,
297,
427,
4270,
29962,
4961,
13,
13,
9651,
8636,
1839,
20944,
2033,
353,
427,
4270,
13,
13,
4706,
736,
8636,
13,
13,
1678,
822,
9801,
29918,
6338,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
978,
613,
376,
3027,
1159,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
5639,
353,
1583,
29889,
2886,
29918,
7611,
29898,
1311,
29889,
7529,
1839,
978,
11287,
13,
4706,
1583,
17255,
7469,
29918,
6338,
29898,
7611,
29897,
13,
13,
1678,
822,
9801,
29918,
21094,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
978,
613,
376,
3027,
1159,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
5639,
353,
1583,
29889,
2886,
29918,
7611,
29898,
1311,
29889,
7529,
1839,
978,
11287,
13,
4706,
5639,
353,
1583,
17255,
7469,
29918,
6338,
29898,
7611,
29897,
13,
4706,
565,
451,
5639,
1839,
2792,
16215,
27795,
2033,
29901,
13,
9651,
5639,
353,
1583,
29889,
2962,
29918,
7611,
29898,
7611,
29897,
13,
13,
1678,
822,
9801,
29918,
21094,
29918,
12333,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
978,
613,
376,
3027,
1159,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
5639,
353,
1583,
29889,
2886,
29918,
7611,
29898,
1311,
29889,
7529,
1839,
978,
11287,
13,
4706,
1967,
353,
1583,
29889,
2886,
29918,
3027,
29898,
1311,
29889,
7529,
1839,
3027,
11287,
13,
4706,
565,
451,
5639,
29901,
13,
9651,
5639,
353,
1583,
17255,
7469,
29918,
6338,
29898,
7611,
29897,
13,
4706,
25342,
451,
1583,
29889,
275,
29918,
21094,
29918,
12333,
29918,
3027,
29898,
7611,
29892,
1967,
1125,
13,
9651,
1583,
29889,
5992,
29918,
7611,
29898,
7611,
29897,
13,
9651,
5639,
353,
1583,
17255,
7469,
29918,
6338,
580,
13,
4706,
25342,
451,
1583,
29889,
7469,
29918,
17642,
29898,
7611,
1125,
13,
9651,
1583,
29889,
7469,
29918,
6897,
296,
580,
13,
9651,
5639,
353,
1583,
17255,
7469,
29918,
6338,
580,
13,
13,
4706,
565,
451,
5639,
1839,
2792,
16215,
27795,
2033,
29901,
13,
9651,
1583,
29889,
2962,
29918,
7611,
29898,
7611,
29897,
13,
13,
1678,
822,
9801,
29918,
7864,
2986,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
978,
613,
29897,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
5639,
353,
1583,
29889,
2886,
29918,
7611,
29898,
1311,
29889,
7529,
1839,
978,
11287,
13,
4706,
565,
451,
5639,
29901,
13,
9651,
12020,
21679,
3260,
2451,
703,
7895,
451,
1476,
1159,
13,
4706,
565,
5639,
1839,
2792,
16215,
27795,
2033,
29901,
13,
9651,
1583,
29889,
9847,
29918,
7611,
29898,
7611,
29897,
13,
13,
1678,
822,
9801,
29918,
6897,
296,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
978,
613,
29897,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
5639,
353,
1583,
29889,
2886,
29918,
7611,
29898,
1311,
29889,
7529,
1839,
978,
11287,
13,
4706,
1583,
29889,
5992,
29918,
7611,
29898,
7611,
29897,
13,
13,
1678,
822,
10715,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
978,
613,
29897,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
5639,
353,
1583,
29889,
2886,
29918,
7611,
29898,
1311,
29889,
7529,
29889,
657,
877,
978,
8785,
13,
4706,
565,
451,
5639,
29901,
13,
9651,
12020,
21679,
3260,
2451,
703,
7895,
451,
1476,
1159,
13,
4706,
565,
451,
5639,
1839,
2792,
16215,
27795,
2033,
29901,
13,
9651,
12020,
21679,
3260,
2451,
703,
7895,
451,
2734,
1159,
13,
4706,
1583,
29889,
5060,
442,
29918,
7611,
29898,
7611,
29897,
13,
13,
1678,
822,
9801,
29918,
3027,
29918,
6338,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
3027,
613,
29897,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
1583,
17255,
7469,
29918,
3027,
29918,
6338,
29898,
1311,
29889,
7529,
1839,
3027,
11287,
13,
13,
1678,
822,
9801,
29918,
3027,
29918,
12333,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
3027,
613,
29897,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
1583,
17255,
7469,
29918,
3027,
29918,
12333,
29898,
1311,
29889,
7529,
1839,
3027,
11287,
13,
13,
1678,
822,
9801,
29918,
3027,
29918,
6897,
296,
29898,
1311,
1125,
13,
4706,
3734,
29918,
7529,
353,
4852,
3027,
613,
29897,
13,
4706,
1583,
29889,
3198,
29918,
12403,
29918,
16744,
29898,
12403,
29918,
7529,
29897,
13,
13,
4706,
1024,
353,
1583,
29889,
7529,
1839,
3027,
2033,
13,
4706,
565,
1583,
29889,
2886,
29918,
3027,
29898,
978,
1125,
13,
9651,
1583,
29889,
4645,
29889,
5992,
29918,
3027,
29898,
978,
29897,
13,
13,
1678,
822,
4770,
7469,
29918,
6338,
29898,
1311,
29892,
5639,
353,
6213,
1125,
13,
4706,
565,
451,
5639,
29901,
13,
9651,
1583,
17255,
7469,
29918,
3027,
29918,
6338,
29898,
1311,
29889,
7529,
1839,
3027,
11287,
13,
9651,
5639,
353,
1583,
29889,
3258,
29918,
7611,
580,
13,
4706,
25342,
451,
1583,
29889,
7469,
29918,
17642,
29898,
7611,
1125,
13,
9651,
1583,
29889,
7469,
29918,
6897,
296,
580,
13,
9651,
5639,
353,
1583,
17255,
7469,
29918,
6338,
580,
13,
4706,
736,
5639,
13,
13,
1678,
822,
4770,
7469,
29918,
3027,
29918,
6338,
29898,
1311,
29892,
1024,
1125,
13,
4706,
1967,
353,
1583,
29889,
2886,
29918,
3027,
29898,
978,
29897,
13,
4706,
565,
451,
1967,
29901,
13,
9651,
1583,
29889,
26746,
29918,
3027,
29898,
978,
29897,
13,
13,
1678,
822,
4770,
7469,
29918,
3027,
29918,
12333,
29898,
1311,
29892,
1024,
1125,
13,
4706,
1583,
29889,
26746,
29918,
3027,
29898,
978,
29897,
13,
4706,
736,
1583,
29889,
2886,
29918,
3027,
29898,
978,
29897,
13,
13,
1678,
822,
1423,
29918,
12403,
29918,
16744,
29898,
1311,
29892,
3734,
1125,
13,
4706,
363,
474,
297,
3734,
29901,
13,
9651,
565,
451,
1583,
29889,
7529,
29889,
657,
29898,
29875,
1125,
13,
18884,
2106,
353,
1583,
29889,
7529,
1839,
3859,
2033,
13,
18884,
1059,
29918,
7645,
353,
29850,
29900,
29913,
3734,
363,
426,
29896,
29913,
3290,
403,
1642,
4830,
29898,
29875,
29892,
2106,
29897,
13,
18884,
12020,
21679,
3260,
2451,
29898,
2704,
29918,
7645,
29897,
13,
13,
1678,
822,
1284,
29918,
7611,
29898,
1311,
29892,
1024,
1125,
13,
4706,
22637,
353,
1583,
29889,
4645,
29889,
1285,
475,
414,
29898,
497,
353,
5852,
29897,
13,
4706,
274,
353,
518,
29916,
363,
921,
297,
22637,
565,
13,
18884,
5135,
29916,
1839,
8659,
2033,
470,
6796,
20068,
29961,
29900,
29962,
1275,
5591,
29912,
29900,
29913,
1642,
4830,
29898,
978,
876,
470,
13,
18884,
313,
2435,
29898,
978,
29897,
1405,
29871,
29929,
322,
921,
1839,
1204,
13359,
27382,
2541,
29898,
978,
28166,
13,
4706,
565,
7431,
29898,
29883,
29897,
1405,
29871,
29896,
29901,
13,
9651,
1059,
29918,
7645,
353,
376,
9692,
901,
1135,
697,
5639,
411,
1024,
470,
1178,
29908,
13,
9651,
12020,
21679,
3260,
2451,
3319,
29915,
29965,
13996,
6021,
1059,
2396,
1059,
29918,
7645,
1800,
13,
4706,
565,
274,
29901,
13,
9651,
5639,
353,
1583,
29889,
657,
29918,
3888,
29898,
29883,
29961,
29900,
2314,
13,
9651,
736,
5639,
13,
4706,
736,
6213,
13,
13,
1678,
822,
1284,
29918,
3027,
29898,
1311,
29892,
1024,
1125,
13,
4706,
396,
3132,
29889,
8346,
1158,
947,
451,
3183,
385,
1059,
565,
1967,
338,
451,
1476,
29892,
372,
925,
13,
4706,
396,
3639,
385,
4069,
1409,
29889,
3132,
29889,
1144,
1103,
29918,
3027,
8026,
385,
1059,
565,
1967,
338,
451,
13,
4706,
396,
1476,
29889,
18264,
2197,
27372,
304,
437,
445,
982,
1135,
304,
4380,
385,
1059,
29889,
13,
4706,
1967,
29918,
978,
353,
1024,
29889,
5451,
703,
29901,
1159,
13,
13,
4706,
396,
1967,
1024,
1122,
1712,
2011,
29892,
577,
337,
7122,
4129,
429,
29872,
415,
1833,
2944,
607,
338,
4055,
13,
4706,
4558,
353,
1583,
29889,
4645,
29889,
8346,
29898,
978,
353,
29242,
1642,
7122,
29898,
3027,
29918,
978,
7503,
29899,
29896,
12622,
13,
4706,
1967,
29918,
2435,
353,
7431,
29898,
8346,
29897,
13,
4706,
565,
1967,
29918,
2435,
1275,
29871,
29900,
29901,
13,
9651,
736,
6213,
13,
4706,
1683,
29901,
13,
9651,
363,
474,
297,
4558,
29901,
13,
18884,
565,
1024,
297,
474,
1839,
5612,
29877,
28089,
2033,
29901,
13,
462,
1678,
736,
1583,
29889,
4645,
29889,
1144,
1103,
29918,
3027,
29898,
978,
29897,
13,
9651,
1683,
29901,
13,
18884,
736,
6213,
13,
13,
1678,
822,
338,
29918,
21094,
29918,
12333,
29918,
3027,
29898,
1311,
29892,
5639,
29892,
1967,
1125,
13,
4706,
565,
451,
1967,
29901,
13,
9651,
736,
7700,
13,
4706,
565,
1967,
1839,
1204,
2033,
1275,
5639,
1839,
2940,
2033,
29901,
13,
9651,
736,
5852,
13,
4706,
1683,
29901,
13,
9651,
736,
7700,
13,
13,
1678,
822,
679,
29918,
3888,
29898,
1311,
29892,
5639,
1125,
13,
4706,
736,
1583,
29889,
4645,
29889,
1144,
1103,
29918,
7611,
29898,
7611,
29897,
13,
13,
1678,
822,
679,
29918,
3027,
29918,
3888,
29898,
1311,
29892,
1967,
1125,
13,
4706,
736,
1583,
29889,
4645,
29889,
1144,
1103,
29918,
3027,
29898,
3027,
29897,
13,
13,
1678,
822,
8206,
29918,
3027,
29898,
1311,
29892,
1024,
1125,
13,
4706,
297,
24216,
29918,
1727,
6020,
353,
1583,
29889,
7529,
1839,
262,
24216,
29918,
1727,
6020,
2033,
13,
4706,
2030,
353,
1583,
29889,
2886,
29918,
3027,
29898,
978,
29897,
13,
4706,
1583,
29889,
4645,
29889,
26746,
29898,
978,
29892,
297,
24216,
29918,
1727,
6020,
353,
297,
24216,
29918,
1727,
6020,
29897,
13,
4706,
716,
353,
1583,
29889,
2886,
29918,
3027,
29898,
978,
29897,
13,
4706,
565,
451,
716,
29901,
13,
9651,
1059,
29918,
7645,
353,
376,
29089,
1284,
426,
29900,
29913,
1642,
4830,
29898,
978,
29897,
13,
9651,
12020,
21679,
3260,
2451,
3319,
29915,
2940,
451,
1476,
2396,
1059,
29918,
7645,
1800,
13,
4706,
25342,
716,
1839,
1204,
2033,
2804,
313,
1025,
470,
6571,
467,
657,
877,
1204,
29374,
13,
9651,
1583,
29889,
3539,
29918,
1188,
877,
7056,
29931,
20566,
742,
716,
29897,
13,
13,
1678,
822,
1653,
29918,
7611,
29898,
1311,
1125,
13,
4706,
8636,
353,
1583,
29889,
7529,
13,
13,
4706,
1820,
29918,
4572,
353,
313,
13,
9651,
525,
3027,
742,
525,
6519,
742,
525,
28988,
742,
525,
1792,
742,
13,
9651,
525,
4801,
496,
742,
525,
4172,
262,
29918,
3150,
742,
525,
4349,
742,
525,
6954,
29918,
13400,
742,
13,
9651,
525,
4011,
742,
525,
20944,
742,
525,
29881,
1983,
742,
525,
1555,
9351,
742,
13,
9651,
525,
1555,
9351,
29918,
3166,
742,
525,
11618,
29918,
18279,
742,
525,
978,
742,
13,
9651,
525,
8269,
3149,
742,
525,
21970,
29918,
845,
5114,
742,
525,
22899,
29918,
3972,
742,
13,
9651,
525,
29885,
1567,
29893,
481,
29918,
13400,
29915,
13,
4706,
1723,
13,
4706,
22289,
353,
426,
921,
29901,
8636,
29961,
29916,
29962,
363,
921,
297,
1820,
29918,
4572,
565,
921,
297,
8636,
500,
13,
13,
4706,
274,
353,
1583,
29889,
4645,
29889,
3258,
29918,
7611,
29898,
1068,
4572,
287,
29897,
13,
4706,
5639,
353,
1583,
29889,
657,
29918,
3888,
29898,
29883,
29897,
13,
4706,
1583,
29889,
3539,
29918,
1188,
877,
27045,
29928,
742,
5639,
29897,
13,
4706,
736,
5639,
13,
13,
1678,
822,
1369,
29918,
7611,
29898,
1311,
29892,
5639,
1125,
13,
4706,
8636,
353,
1583,
29889,
7529,
13,
4706,
1820,
29918,
4572,
353,
313,
13,
9651,
525,
5355,
29879,
742,
525,
637,
29918,
5355,
886,
742,
525,
29880,
21791,
29918,
5527,
742,
13,
9651,
525,
23679,
29918,
497,
29918,
4011,
742,
525,
4965,
742,
525,
22534,
488,
3192,
742,
13,
9651,
525,
29881,
1983,
742,
525,
29881,
1983,
29918,
4478,
742,
525,
1555,
9351,
29918,
3166,
742,
525,
11618,
29918,
8513,
742,
13,
9651,
525,
5060,
442,
29918,
22197,
742,
525,
5030,
29918,
1202,
742,
525,
5030,
29918,
8865,
29915,
13,
4706,
1723,
13,
4706,
22289,
353,
426,
921,
29901,
8636,
29961,
29916,
29962,
363,
921,
297,
1820,
29918,
4572,
565,
921,
297,
8636,
500,
13,
13,
4706,
1583,
29889,
4645,
29889,
2962,
29898,
7611,
29892,
3579,
4572,
287,
29897,
13,
4706,
5639,
353,
1583,
29889,
657,
29918,
3888,
29898,
7611,
29897,
13,
4706,
1583,
29889,
3539,
29918,
1188,
877,
25826,
3352,
742,
5639,
29897,
13,
4706,
736,
5639,
13,
13,
1678,
822,
5040,
29918,
7611,
29898,
1311,
29892,
5639,
1125,
13,
4706,
1583,
29889,
4645,
29889,
9847,
29898,
7611,
29897,
13,
4706,
5639,
353,
1583,
29889,
657,
29918,
3888,
29898,
7611,
29897,
13,
4706,
1583,
29889,
3539,
29918,
1188,
877,
1254,
4590,
29925,
3352,
742,
5639,
29897,
13,
4706,
736,
5639,
13,
13,
1678,
822,
3349,
29918,
7611,
29898,
1311,
29892,
5639,
1125,
13,
4706,
565,
5639,
1839,
2792,
16215,
27795,
2033,
29901,
13,
9651,
5639,
353,
1583,
29889,
9847,
29918,
7611,
29898,
7611,
29897,
13,
4706,
1583,
29889,
4645,
29889,
5992,
29918,
7611,
29898,
7611,
29897,
13,
4706,
274,
353,
1583,
29889,
2886,
29918,
7611,
29898,
7611,
1839,
1204,
11287,
13,
4706,
565,
274,
29901,
13,
9651,
12020,
21679,
3260,
2451,
703,
23323,
451,
3349,
278,
5639,
1159,
13,
4706,
1583,
29889,
3539,
29918,
1188,
877,
1525,
6720,
29963,
3352,
742,
5639,
29897,
13,
13,
1678,
822,
10715,
29918,
7611,
29898,
1311,
29892,
5639,
1125,
13,
4706,
1583,
29889,
4645,
29889,
5060,
442,
29898,
7611,
29897,
13,
4706,
5639,
353,
1583,
29889,
657,
29918,
3888,
29898,
7611,
29897,
13,
4706,
1583,
29889,
3539,
29918,
1188,
877,
1525,
25826,
3352,
742,
5639,
29897,
13,
13,
1678,
822,
9801,
29918,
17642,
29898,
1311,
29892,
5639,
1125,
13,
4706,
8636,
353,
1583,
29889,
7529,
13,
4706,
1996,
29918,
5060,
442,
353,
7700,
13,
13,
4706,
396,
22521,
545,
2734,
278,
1492,
1967,
13,
4706,
565,
5639,
1839,
3991,
16215,
2940,
2033,
2804,
8636,
1839,
3027,
2033,
29901,
13,
9651,
1996,
29918,
5060,
442,
353,
5852,
13,
13,
4706,
396,
22521,
545,
2734,
9281,
1967,
565,
278,
3443,
338,
4944,
13,
4706,
1021,
353,
5852,
13,
4706,
565,
8636,
29889,
657,
877,
12333,
29918,
3027,
29374,
13,
9651,
1583,
29889,
4645,
29889,
26746,
29898,
7529,
1839,
3027,
11287,
13,
9651,
565,
451,
1583,
29889,
21094,
29918,
12333,
29918,
3027,
29898,
7611,
29892,
8636,
1839,
3027,
2033,
1125,
13,
18884,
1021,
353,
7700,
13,
18884,
1996,
29918,
5060,
442,
353,
5852,
13,
13,
4706,
396,
22521,
545,
5177,
24987,
526,
701,
304,
2635,
13,
4706,
363,
474,
297,
5639,
1839,
3991,
16215,
21745,
2033,
29901,
13,
9651,
565,
376,
2190,
5425,
29933,
1307,
29918,
1529,
3521,
1692,
29928,
29918,
1430,
21819,
29908,
297,
474,
29901,
13,
18884,
385,
1687,
29918,
25240,
29918,
264,
4270,
353,
474,
29889,
5451,
703,
543,
9601,
29896,
1822,
5451,
703,
29901,
1159,
13,
13,
18884,
396,
3462,
278,
15709,
319,
3059,
8979,
1307,
29918,
1529,
3521,
1692,
29928,
29918,
1430,
21819,
1820,
995,
1244,
13,
18884,
396,
577,
393,
278,
1023,
8857,
526,
5948,
5734,
519,
411,
13,
18884,
396,
731,
580,
2400,
13,
18884,
385,
1687,
29918,
25240,
29918,
264,
4270,
29889,
4397,
703,
2190,
5425,
29933,
1307,
29918,
1529,
3521,
1692,
29928,
29918,
1430,
21819,
1159,
13,
18884,
756,
29918,
550,
1821,
29918,
25240,
29918,
264,
4270,
353,
5852,
13,
18884,
2867,
13,
4706,
1683,
29901,
13,
9651,
756,
29918,
550,
1821,
29918,
25240,
29918,
264,
4270,
353,
7700,
13,
4706,
756,
29918,
6272,
29918,
7529,
353,
8636,
29889,
657,
877,
20944,
1495,
2804,
6213,
13,
4706,
565,
756,
29918,
6272,
29918,
7529,
470,
756,
29918,
550,
1821,
29918,
25240,
29918,
264,
4270,
29901,
13,
9651,
565,
756,
29918,
6272,
29918,
7529,
322,
756,
29918,
550,
1821,
29918,
25240,
29918,
264,
4270,
29901,
13,
18884,
8829,
29918,
7529,
353,
8636,
1839,
20944,
2033,
13,
13,
18884,
396,
5399,
1021,
3651,
526,
731,
13,
18884,
565,
731,
29898,
550,
1821,
29918,
25240,
29918,
264,
4270,
29897,
2804,
731,
4197,
29916,
29889,
5451,
703,
543,
9601,
29900,
29962,
363,
921,
297,
8829,
29918,
7529,
29962,
1125,
13,
462,
1678,
1996,
29918,
5060,
442,
353,
5852,
13,
13,
18884,
396,
5399,
393,
278,
1819,
526,
1492,
13,
18884,
1683,
29901,
13,
462,
1678,
363,
8829,
297,
8829,
29918,
7529,
29901,
13,
462,
4706,
565,
8829,
451,
297,
5639,
1839,
3991,
16215,
21745,
2033,
29901,
13,
462,
9651,
1996,
29918,
5060,
442,
353,
5852,
13,
462,
9651,
2867,
13,
9651,
1683,
29901,
13,
18884,
1996,
29918,
5060,
442,
353,
5852,
13,
13,
4706,
396,
22521,
545,
7977,
5766,
886,
526,
1492,
13,
4706,
5639,
29918,
5355,
29879,
353,
5639,
1839,
8514,
3991,
16215,
29933,
12772,
2033,
13,
4706,
7868,
29918,
7529,
353,
8636,
29889,
657,
877,
5355,
29879,
1495,
13,
4706,
565,
5639,
29918,
5355,
29879,
470,
7868,
29918,
7529,
29901,
13,
9651,
565,
5639,
29918,
5355,
29879,
322,
7868,
29918,
7529,
29901,
13,
18884,
903,
5355,
29918,
7529,
353,
518,
13,
462,
1678,
29242,
1642,
7122,
4197,
13,
462,
4706,
921,
29892,
7868,
29918,
7529,
29961,
29916,
22322,
5355,
7464,
376,
307,
29908,
565,
7868,
29918,
7529,
29961,
29916,
22322,
307,
2033,
1683,
376,
13975,
29908,
13,
462,
268,
2314,
363,
921,
297,
7868,
29918,
7529,
13,
18884,
4514,
13,
18884,
565,
731,
7373,
5355,
29918,
7529,
29897,
2804,
731,
29898,
7611,
29918,
5355,
29879,
1125,
13,
462,
1678,
1996,
29918,
5060,
442,
353,
5852,
13,
9651,
1683,
29901,
13,
18884,
1996,
29918,
5060,
442,
353,
5852,
13,
13,
4706,
396,
22521,
545,
1899,
338,
1492,
13,
4706,
565,
8636,
29889,
657,
877,
6519,
29374,
13,
9651,
565,
8636,
1839,
6519,
2033,
2804,
5639,
1839,
6255,
2033,
29901,
13,
18884,
1996,
29918,
5060,
442,
353,
5852,
13,
13,
4706,
736,
1996,
29918,
5060,
442,
2804,
5852,
13,
13,
1678,
822,
5706,
29918,
4906,
29898,
1311,
1125,
13,
4706,
565,
451,
1583,
29889,
5349,
29918,
25990,
7295,
13,
9651,
10191,
353,
376,
3373,
304,
2635,
29889,
1939,
3620,
1754,
29908,
13,
4706,
1683,
29901,
13,
9651,
10191,
353,
1583,
29889,
25990,
29918,
26350,
13,
4706,
736,
10191,
13,
13,
1678,
822,
2436,
29918,
1188,
29898,
1311,
29892,
3158,
29892,
5235,
1125,
13,
4706,
1820,
29918,
4572,
353,
313,
13,
9651,
525,
1170,
742,
525,
1204,
742,
525,
2940,
742,
13,
4706,
1723,
13,
4706,
22289,
353,
426,
921,
29901,
5235,
29961,
29916,
29962,
363,
921,
297,
1820,
29918,
4572,
565,
921,
297,
5235,
500,
13,
4706,
1583,
29889,
25990,
29918,
26350,
29889,
4397,
3319,
2467,
29901,
22289,
1800,
13,
13,
1678,
822,
756,
29918,
25990,
29898,
1311,
1125,
13,
4706,
565,
1583,
29889,
25990,
29918,
26350,
29901,
13,
9651,
736,
5852,
13,
4706,
736,
7700,
13,
13,
1753,
1667,
7295,
13,
1678,
6273,
353,
426,
13,
4706,
525,
3859,
2396,
426,
13,
9651,
525,
12403,
2396,
5852,
29892,
13,
9651,
525,
1859,
1575,
2396,
518,
13,
18884,
376,
6338,
613,
376,
21094,
613,
376,
21094,
29918,
12333,
613,
13,
18884,
376,
7864,
2986,
613,
376,
6897,
296,
613,
376,
5060,
442,
287,
613,
13,
18884,
376,
3027,
29918,
6338,
613,
376,
3027,
29918,
12333,
613,
13,
9651,
4514,
13,
4706,
2981,
13,
4706,
525,
978,
2396,
462,
426,
525,
4381,
2396,
6213,
29892,
525,
2606,
2129,
2396,
6796,
333,
3108,
2981,
13,
4706,
525,
3027,
2396,
18884,
426,
525,
4381,
2396,
6213,
2981,
13,
4706,
525,
6272,
2396,
462,
29871,
426,
525,
4381,
2396,
6213,
2981,
13,
4706,
525,
1555,
9351,
2396,
795,
426,
525,
4381,
2396,
6213,
2981,
13,
4706,
525,
4011,
2396,
18884,
426,
525,
4381,
2396,
6213,
2981,
13,
4706,
525,
6519,
2396,
795,
426,
525,
4381,
2396,
6213,
2981,
13,
4706,
525,
735,
4220,
2396,
1669,
426,
525,
4381,
2396,
6213,
2981,
13,
4706,
525,
4965,
2396,
18884,
426,
525,
4381,
2396,
6213,
2981,
13,
4706,
525,
262,
24216,
29918,
1727,
6020,
2396,
1678,
426,
525,
4381,
2396,
7700,
29892,
525,
1859,
4637,
2396,
16437,
29949,
1307,
2190,
29903,
2981,
13,
1678,
500,
13,
1678,
396,
5453,
353,
530,
1687,
7355,
29898,
23516,
29918,
6550,
353,
6273,
29892,
11286,
29918,
3198,
29918,
8513,
353,
5852,
29897,
13,
1678,
3883,
353,
530,
1687,
7355,
29898,
23516,
29918,
6550,
353,
6273,
29897,
13,
1678,
1018,
29901,
13,
13,
4706,
8455,
353,
21679,
3260,
29898,
5453,
29897,
13,
4706,
2106,
353,
3883,
29889,
7529,
29889,
657,
877,
3859,
1495,
13,
4706,
565,
2106,
1275,
376,
6338,
1115,
13,
9651,
8455,
29889,
7469,
29918,
6338,
580,
13,
4706,
25342,
2106,
1275,
376,
21094,
1115,
13,
9651,
8455,
29889,
7469,
29918,
21094,
580,
13,
4706,
25342,
2106,
1275,
376,
21094,
29918,
12333,
1115,
13,
9651,
8455,
29889,
7469,
29918,
21094,
29918,
12333,
580,
13,
4706,
25342,
2106,
1275,
376,
7864,
2986,
1115,
13,
9651,
8455,
29889,
7469,
29918,
7864,
2986,
580,
13,
4706,
25342,
2106,
1275,
376,
6897,
296,
1115,
13,
9651,
8455,
29889,
7469,
29918,
6897,
296,
580,
13,
4706,
25342,
2106,
1275,
376,
5060,
442,
287,
1115,
13,
9651,
8455,
29889,
5060,
442,
580,
13,
4706,
25342,
2106,
1275,
376,
3027,
29918,
6338,
1115,
13,
9651,
8455,
29889,
7469,
29918,
3027,
29918,
6338,
580,
13,
4706,
25342,
2106,
1275,
376,
3027,
29918,
12333,
1115,
13,
9651,
8455,
29889,
7469,
29918,
3027,
29918,
12333,
580,
13,
4706,
25342,
2106,
1275,
376,
3027,
29918,
6897,
296,
1115,
13,
9651,
8455,
29889,
7469,
29918,
3027,
29918,
6897,
296,
580,
13,
4706,
3883,
29889,
13322,
29918,
3126,
29898,
15033,
353,
8455,
29889,
5349,
29918,
25990,
3285,
10191,
353,
8455,
29889,
17158,
29918,
4906,
3101,
13,
13,
1678,
5174,
21679,
3260,
2451,
408,
321,
29901,
13,
4706,
3883,
29889,
14057,
29918,
3126,
29898,
7645,
353,
851,
29898,
29872,
876,
13,
1678,
5174,
10346,
29889,
12523,
29889,
8787,
2392,
408,
321,
29901,
13,
4706,
3883,
29889,
14057,
29918,
3126,
29898,
7645,
353,
851,
29898,
29872,
876,
13,
1678,
5174,
10346,
29889,
12523,
29889,
29928,
8658,
2451,
408,
321,
29901,
13,
4706,
3883,
29889,
14057,
29918,
3126,
29898,
7645,
353,
851,
29898,
29872,
876,
13,
13,
3166,
385,
1687,
29889,
5453,
29918,
13239,
29889,
16121,
1053,
334,
13,
3396,
580,
13,
2
] |
test/sql/test_insert.py | smarkets/sqlalchemy | 1 | 1607613 | <filename>test/sql/test_insert.py<gh_stars>1-10
#! coding:utf-8
from sqlalchemy import Column, Integer, MetaData, String, Table,\
bindparam, exc, func, insert, select
from sqlalchemy.dialects import mysql, postgresql
from sqlalchemy.engine import default
from sqlalchemy.testing import AssertsCompiledSQL,\
assert_raises_message, fixtures
class _InsertTestBase(object):
@classmethod
def define_tables(cls, metadata):
Table('mytable', metadata,
Column('myid', Integer),
Column('name', String(30)),
Column('description', String(30)))
Table('myothertable', metadata,
Column('otherid', Integer),
Column('othername', String(30)))
class InsertTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL):
__dialect__ = 'default'
def test_generic_insert_bind_params_all_columns(self):
table1 = self.tables.mytable
self.assert_compile(insert(table1),
'INSERT INTO mytable (myid, name, description) '
'VALUES (:myid, :name, :description)')
def test_insert_with_values_dict(self):
table1 = self.tables.mytable
checkparams = {
'myid': 3,
'name': 'jack'
}
self.assert_compile(insert(table1, dict(myid=3, name='jack')),
'INSERT INTO mytable (myid, name) VALUES (:myid, :name)',
checkparams=checkparams)
def test_insert_with_values_tuple(self):
table1 = self.tables.mytable
checkparams = {
'myid': 3,
'name': 'jack',
'description': 'mydescription'
}
self.assert_compile(insert(table1, (3, 'jack', 'mydescription')),
'INSERT INTO mytable (myid, name, description) '
'VALUES (:myid, :name, :description)',
checkparams=checkparams)
def test_insert_with_values_func(self):
table1 = self.tables.mytable
self.assert_compile(insert(table1, values=dict(myid=func.lala())),
'INSERT INTO mytable (myid) VALUES (lala())')
def test_insert_with_user_supplied_bind_params(self):
table1 = self.tables.mytable
values = {
table1.c.myid: bindparam('userid'),
table1.c.name: bindparam('username')
}
self.assert_compile(insert(table1, values),
'INSERT INTO mytable (myid, name) VALUES (:userid, :username)')
def test_insert_values(self):
table1 = self.tables.mytable
values1 = {table1.c.myid: bindparam('userid')}
values2 = {table1.c.name: bindparam('username')}
self.assert_compile(insert(table1, values=values1).values(values2),
'INSERT INTO mytable (myid, name) VALUES (:userid, :username)')
def test_prefix_with(self):
table1 = self.tables.mytable
stmt = table1.insert().\
prefix_with('A', 'B', dialect='mysql').\
prefix_with('C', 'D')
self.assert_compile(stmt,
'INSERT C D INTO mytable (myid, name, description) '
'VALUES (:myid, :name, :description)')
self.assert_compile(stmt,
'INSERT A B C D INTO mytable (myid, name, description) '
'VALUES (%s, %s, %s)', dialect=mysql.dialect())
def test_inline_default(self):
metadata = MetaData()
table = Table('sometable', metadata,
Column('id', Integer, primary_key=True),
Column('foo', Integer, default=func.foobar()))
self.assert_compile(table.insert(values={}, inline=True),
'INSERT INTO sometable (foo) VALUES (foobar())')
self.assert_compile(table.insert(inline=True),
'INSERT INTO sometable (foo) VALUES (foobar())', params={})
def test_insert_returning_not_in_default(self):
table1 = self.tables.mytable
stmt = table1.insert().returning(table1.c.myid)
assert_raises_message(
exc.CompileError,
"RETURNING is not supported by this dialect's statement compiler.",
stmt.compile,
dialect=default.DefaultDialect()
)
def test_insert_from_select_select(self):
table1 = self.tables.mytable
sel = select([table1.c.myid, table1.c.name]).where(table1.c.name == 'foo')
ins = self.tables.myothertable.insert().\
from_select(("otherid", "othername"), sel)
self.assert_compile(
ins,
"INSERT INTO myothertable (otherid, othername) "
"SELECT mytable.myid, mytable.name FROM mytable "
"WHERE mytable.name = :name_1",
checkparams={"name_1": "foo"}
)
def test_insert_from_select_select_alt_ordering(self):
table1 = self.tables.mytable
sel = select([table1.c.name, table1.c.myid]).where(table1.c.name == 'foo')
ins = self.tables.myothertable.insert().\
from_select(("othername", "otherid"), sel)
self.assert_compile(
ins,
"INSERT INTO myothertable (othername, otherid) "
"SELECT mytable.name, mytable.myid FROM mytable "
"WHERE mytable.name = :name_1",
checkparams={"name_1": "foo"}
)
def test_insert_from_select_select_no_defaults(self):
metadata = MetaData()
table = Table('sometable', metadata,
Column('id', Integer, primary_key=True),
Column('foo', Integer, default=func.foobar()))
table1 = self.tables.mytable
sel = select([table1.c.myid]).where(table1.c.name == 'foo')
ins = table.insert().\
from_select(["id"], sel)
self.assert_compile(
ins,
"INSERT INTO sometable (id) SELECT mytable.myid "
"FROM mytable WHERE mytable.name = :name_1",
checkparams={"name_1": "foo"}
)
def test_insert_mix_select_values_exception(self):
table1 = self.tables.mytable
sel = select([table1.c.myid, table1.c.name]).where(table1.c.name == 'foo')
ins = self.tables.myothertable.insert().\
from_select(("otherid", "othername"), sel)
assert_raises_message(
exc.InvalidRequestError,
"This construct already inserts from a SELECT",
ins.values, othername="5"
)
def test_insert_mix_values_select_exception(self):
table1 = self.tables.mytable
sel = select([table1.c.myid, table1.c.name]).where(table1.c.name == 'foo')
ins = self.tables.myothertable.insert().values(othername="5")
assert_raises_message(
exc.InvalidRequestError,
"This construct already inserts value expressions",
ins.from_select, ("otherid", "othername"), sel
)
def test_insert_from_select_table(self):
table1 = self.tables.mytable
ins = self.tables.myothertable.insert().\
from_select(("otherid", "othername"), table1)
# note we aren't checking the number of columns right now
self.assert_compile(
ins,
"INSERT INTO myothertable (otherid, othername) "
"SELECT mytable.myid, mytable.name, mytable.description "
"FROM mytable",
checkparams={}
)
def test_insert_from_select_union(self):
mytable = self.tables.mytable
name = 'name'
description = 'desc'
sel = select(
[name, mytable.c.description],
).union(
select([name, description])
)
ins = mytable.insert().\
from_select(
[mytable.c.name, mytable.c.description], sel)
self.assert_compile(
ins,
"INSERT INTO mytable (name, description) "
"SELECT name, mytable.description FROM mytable "
"UNION SELECT name, desc"
)
def test_insert_from_select_col_values(self):
table1 = self.tables.mytable
table2 = self.tables.myothertable
sel = select([table1.c.myid, table1.c.name]).where(table1.c.name == 'foo')
ins = table2.insert().\
from_select((table2.c.otherid, table2.c.othername), sel)
self.assert_compile(
ins,
"INSERT INTO myothertable (otherid, othername) "
"SELECT mytable.myid, mytable.name FROM mytable "
"WHERE mytable.name = :name_1",
checkparams={"name_1": "foo"}
)
class EmptyTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL):
__dialect__ = 'default'
def test_empty_insert_default(self):
table1 = self.tables.mytable
stmt = table1.insert().values({}) # hide from 2to3
self.assert_compile(stmt, 'INSERT INTO mytable () VALUES ()')
def test_supports_empty_insert_true(self):
table1 = self.tables.mytable
dialect = default.DefaultDialect()
dialect.supports_empty_insert = dialect.supports_default_values = True
stmt = table1.insert().values({}) # hide from 2to3
self.assert_compile(stmt,
'INSERT INTO mytable DEFAULT VALUES',
dialect=dialect)
def test_supports_empty_insert_false(self):
table1 = self.tables.mytable
dialect = default.DefaultDialect()
dialect.supports_empty_insert = dialect.supports_default_values = False
stmt = table1.insert().values({}) # hide from 2to3
assert_raises_message(exc.CompileError,
"The 'default' dialect with current database version "
"settings does not support empty inserts.",
stmt.compile, dialect=dialect)
def _test_insert_with_empty_collection_values(self, collection):
table1 = self.tables.mytable
ins = table1.insert().values(collection)
self.assert_compile(ins,
'INSERT INTO mytable () VALUES ()',
checkparams={})
# empty dict populates on next values call
self.assert_compile(ins.values(myid=3),
'INSERT INTO mytable (myid) VALUES (:myid)',
checkparams={'myid': 3})
def test_insert_with_empty_list_values(self):
self._test_insert_with_empty_collection_values([])
def test_insert_with_empty_dict_values(self):
self._test_insert_with_empty_collection_values({})
def test_insert_with_empty_tuple_values(self):
self._test_insert_with_empty_collection_values(())
class MultirowTest(_InsertTestBase, fixtures.TablesTest, AssertsCompiledSQL):
__dialect__ = 'default'
def test_not_supported(self):
table1 = self.tables.mytable
dialect = default.DefaultDialect()
stmt = table1.insert().values([{'myid': 1}, {'myid': 2}])
assert_raises_message(
exc.CompileError,
"The 'default' dialect with current database version settings "
"does not support in-place multirow inserts.",
stmt.compile, dialect=dialect)
def test_named(self):
table1 = self.tables.mytable
values = [
{'myid': 1, 'name': 'a', 'description': 'b'},
{'myid': 2, 'name': 'c', 'description': 'd'},
{'myid': 3, 'name': 'e', 'description': 'f'}
]
checkparams = {
'myid_0': 1,
'myid_1': 2,
'myid_2': 3,
'name_0': 'a',
'name_1': 'c',
'name_2': 'e',
'description_0': 'b',
'description_1': 'd',
'description_2': 'f',
}
dialect = default.DefaultDialect()
dialect.supports_multivalues_insert = True
self.assert_compile(table1.insert().values(values),
'INSERT INTO mytable (myid, name, description) VALUES '
'(:myid_0, :name_0, :description_0), '
'(:myid_1, :name_1, :description_1), '
'(:myid_2, :name_2, :description_2)',
checkparams=checkparams, dialect=dialect)
def test_positional(self):
table1 = self.tables.mytable
values = [
{'myid': 1, 'name': 'a', 'description': 'b'},
{'myid': 2, 'name': 'c', 'description': 'd'},
{'myid': 3, 'name': 'e', 'description': 'f'}
]
checkpositional = (1, 'a', 'b', 2, 'c', 'd', 3, 'e', 'f')
dialect = default.DefaultDialect()
dialect.supports_multivalues_insert = True
dialect.paramstyle = 'format'
dialect.positional = True
self.assert_compile(table1.insert().values(values),
'INSERT INTO mytable (myid, name, description) VALUES '
'(%s, %s, %s), (%s, %s, %s), (%s, %s, %s)',
checkpositional=checkpositional, dialect=dialect)
def test_inline_default(self):
metadata = MetaData()
table = Table('sometable', metadata,
Column('id', Integer, primary_key=True),
Column('data', String),
Column('foo', Integer, default=func.foobar()))
values = [
{'id': 1, 'data': 'data1'},
{'id': 2, 'data': 'data2', 'foo': 'plainfoo'},
{'id': 3, 'data': 'data3'},
]
checkparams = {
'id_0': 1,
'id_1': 2,
'id_2': 3,
'data_0': 'data1',
'data_1': 'data2',
'data_2': 'data3',
'foo_1': 'plainfoo',
}
self.assert_compile(table.insert().values(values),
'INSERT INTO sometable (id, data, foo) VALUES '
'(%(id_0)s, %(data_0)s, foobar()), '
'(%(id_1)s, %(data_1)s, %(foo_1)s), '
'(%(id_2)s, %(data_2)s, foobar())',
checkparams=checkparams, dialect=postgresql.dialect())
def test_server_default(self):
metadata = MetaData()
table = Table('sometable', metadata,
Column('id', Integer, primary_key=True),
Column('data', String),
Column('foo', Integer, server_default=func.foobar()))
values = [
{'id': 1, 'data': 'data1'},
{'id': 2, 'data': 'data2', 'foo': 'plainfoo'},
{'id': 3, 'data': 'data3'},
]
checkparams = {
'id_0': 1,
'id_1': 2,
'id_2': 3,
'data_0': 'data1',
'data_1': 'data2',
'data_2': 'data3',
}
self.assert_compile(table.insert().values(values),
'INSERT INTO sometable (id, data) VALUES '
'(%(id_0)s, %(data_0)s), '
'(%(id_1)s, %(data_1)s), '
'(%(id_2)s, %(data_2)s)',
checkparams=checkparams, dialect=postgresql.dialect())
def test_server_default_absent_value(self):
metadata = MetaData()
table = Table('sometable', metadata,
Column('id', Integer, primary_key=True),
Column('data', String),
Column('foo', Integer, server_default=func.foobar()))
values = [
{'id': 1, 'data': 'data1', 'foo': 'plainfoo'},
{'id': 2, 'data': 'data2'},
{'id': 3, 'data': 'data3', 'foo': 'otherfoo'},
]
checkparams = {
'id_0': 1,
'id_1': 2,
'id_2': 3,
'data_0': 'data1',
'data_1': 'data2',
'data_2': 'data3',
'foo_0': 'plainfoo',
'foo_2': 'otherfoo',
}
# note the effect here is that the first set of params
# takes effect for the rest of them, when one is absent
self.assert_compile(table.insert().values(values),
'INSERT INTO sometable (id, data, foo) VALUES '
'(%(id_0)s, %(data_0)s, %(foo_0)s), '
'(%(id_1)s, %(data_1)s, %(foo_0)s), '
'(%(id_2)s, %(data_2)s, %(foo_2)s)',
checkparams=checkparams, dialect=postgresql.dialect())
| [
1,
529,
9507,
29958,
1688,
29914,
2850,
29914,
1688,
29918,
7851,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
29991,
14137,
29901,
9420,
29899,
29947,
13,
13,
3166,
4576,
284,
305,
6764,
1053,
12481,
29892,
8102,
29892,
20553,
1469,
29892,
1714,
29892,
6137,
2053,
13,
1678,
7868,
3207,
29892,
5566,
29892,
3653,
29892,
4635,
29892,
1831,
13,
3166,
4576,
284,
305,
6764,
29889,
15321,
781,
29879,
1053,
5749,
29892,
27035,
13,
3166,
4576,
284,
305,
6764,
29889,
10599,
1053,
2322,
13,
3166,
4576,
284,
305,
6764,
29889,
13424,
1053,
1094,
643,
1372,
6843,
2356,
4176,
2053,
13,
1678,
4974,
29918,
336,
4637,
29918,
4906,
29892,
5713,
486,
1973,
13,
13,
13,
1990,
903,
17491,
3057,
5160,
29898,
3318,
1125,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
4529,
29918,
24051,
29898,
25932,
29892,
15562,
1125,
13,
4706,
6137,
877,
1357,
2371,
742,
15562,
29892,
13,
795,
12481,
877,
1357,
333,
742,
8102,
511,
13,
795,
12481,
877,
978,
742,
1714,
29898,
29941,
29900,
8243,
13,
795,
12481,
877,
8216,
742,
1714,
29898,
29941,
29900,
4961,
13,
4706,
6137,
877,
1357,
720,
814,
519,
742,
15562,
29892,
13,
795,
12481,
877,
1228,
333,
742,
8102,
511,
13,
795,
12481,
877,
720,
4510,
742,
1714,
29898,
29941,
29900,
4961,
13,
13,
13,
1990,
24505,
3057,
7373,
17491,
3057,
5160,
29892,
5713,
486,
1973,
29889,
24924,
3057,
29892,
1094,
643,
1372,
6843,
2356,
4176,
1125,
13,
1678,
4770,
15321,
781,
1649,
353,
525,
4381,
29915,
13,
13,
1678,
822,
1243,
29918,
19206,
29918,
7851,
29918,
5355,
29918,
7529,
29918,
497,
29918,
13099,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
7851,
29898,
2371,
29896,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29892,
6139,
29897,
525,
13,
9651,
525,
8932,
12996,
13940,
1357,
333,
29892,
584,
978,
29892,
584,
8216,
29897,
1495,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2541,
29918,
5975,
29918,
8977,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1423,
7529,
353,
426,
13,
9651,
525,
1357,
333,
2396,
29871,
29941,
29892,
13,
9651,
525,
978,
2396,
525,
21452,
29915,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
7851,
29898,
2371,
29896,
29892,
9657,
29898,
1357,
333,
29922,
29941,
29892,
1024,
2433,
21452,
1495,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29897,
15673,
13940,
1357,
333,
29892,
584,
978,
29897,
742,
13,
9651,
1423,
7529,
29922,
3198,
7529,
29897,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2541,
29918,
5975,
29918,
23583,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1423,
7529,
353,
426,
13,
9651,
525,
1357,
333,
2396,
29871,
29941,
29892,
13,
9651,
525,
978,
2396,
525,
21452,
742,
13,
9651,
525,
8216,
2396,
525,
1357,
8216,
29915,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
7851,
29898,
2371,
29896,
29892,
313,
29941,
29892,
525,
21452,
742,
525,
1357,
8216,
1495,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29892,
6139,
29897,
525,
13,
9651,
525,
8932,
12996,
13940,
1357,
333,
29892,
584,
978,
29892,
584,
8216,
29897,
742,
13,
9651,
1423,
7529,
29922,
3198,
7529,
29897,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2541,
29918,
5975,
29918,
9891,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
7851,
29898,
2371,
29896,
29892,
1819,
29922,
8977,
29898,
1357,
333,
29922,
9891,
29889,
29880,
2883,
3101,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29897,
15673,
313,
29880,
2883,
3101,
1495,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2541,
29918,
1792,
29918,
19303,
2957,
29918,
5355,
29918,
7529,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1819,
353,
426,
13,
9651,
1591,
29896,
29889,
29883,
29889,
1357,
333,
29901,
7868,
3207,
877,
1792,
333,
5477,
13,
9651,
1591,
29896,
29889,
29883,
29889,
978,
29901,
7868,
3207,
877,
6786,
1495,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
7851,
29898,
2371,
29896,
29892,
1819,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29897,
15673,
13940,
1792,
333,
29892,
584,
6786,
29897,
1495,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
5975,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1819,
29896,
353,
426,
2371,
29896,
29889,
29883,
29889,
1357,
333,
29901,
7868,
3207,
877,
1792,
333,
1495,
29913,
13,
4706,
1819,
29906,
353,
426,
2371,
29896,
29889,
29883,
29889,
978,
29901,
7868,
3207,
877,
6786,
1495,
29913,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
7851,
29898,
2371,
29896,
29892,
1819,
29922,
5975,
29896,
467,
5975,
29898,
5975,
29906,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29897,
15673,
13940,
1792,
333,
29892,
584,
6786,
29897,
1495,
13,
13,
1678,
822,
1243,
29918,
13506,
29918,
2541,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
380,
4378,
353,
1591,
29896,
29889,
7851,
2141,
29905,
13,
9651,
10944,
29918,
2541,
877,
29909,
742,
525,
29933,
742,
23725,
2433,
7938,
2824,
29905,
13,
9651,
10944,
29918,
2541,
877,
29907,
742,
525,
29928,
1495,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
17868,
29892,
13,
9651,
525,
19460,
315,
360,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29892,
6139,
29897,
525,
13,
9651,
525,
8932,
12996,
13940,
1357,
333,
29892,
584,
978,
29892,
584,
8216,
29897,
1495,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
17868,
29892,
13,
9651,
525,
19460,
319,
350,
315,
360,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29892,
6139,
29897,
525,
13,
9651,
525,
8932,
12996,
313,
29995,
29879,
29892,
1273,
29879,
29892,
1273,
29879,
29897,
742,
23725,
29922,
7938,
29889,
15321,
781,
3101,
13,
13,
1678,
822,
1243,
29918,
14764,
29918,
4381,
29898,
1311,
1125,
13,
4706,
15562,
353,
20553,
1469,
580,
13,
4706,
1591,
353,
6137,
877,
29879,
3297,
519,
742,
15562,
29892,
13,
9651,
12481,
877,
333,
742,
8102,
29892,
7601,
29918,
1989,
29922,
5574,
511,
13,
9651,
12481,
877,
5431,
742,
8102,
29892,
2322,
29922,
9891,
29889,
1181,
22872,
22130,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
2371,
29889,
7851,
29898,
5975,
3790,
1118,
10583,
29922,
5574,
511,
13,
9651,
525,
19460,
11646,
5895,
519,
313,
5431,
29897,
15673,
313,
1181,
22872,
3101,
1495,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
2371,
29889,
7851,
29898,
14764,
29922,
5574,
511,
13,
9651,
525,
19460,
11646,
5895,
519,
313,
5431,
29897,
15673,
313,
1181,
22872,
3101,
742,
8636,
3790,
1800,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2457,
292,
29918,
1333,
29918,
262,
29918,
4381,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
380,
4378,
353,
1591,
29896,
29889,
7851,
2141,
2457,
292,
29898,
2371,
29896,
29889,
29883,
29889,
1357,
333,
29897,
13,
4706,
4974,
29918,
336,
4637,
29918,
4906,
29898,
13,
9651,
5566,
29889,
6843,
488,
2392,
29892,
13,
9651,
376,
1525,
29911,
24015,
4214,
338,
451,
6969,
491,
445,
23725,
29915,
29879,
3229,
6516,
19602,
13,
9651,
380,
4378,
29889,
12198,
29892,
13,
9651,
23725,
29922,
4381,
29889,
4592,
29928,
423,
781,
580,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
3166,
29918,
2622,
29918,
2622,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
4706,
5535,
353,
1831,
4197,
2371,
29896,
29889,
29883,
29889,
1357,
333,
29892,
1591,
29896,
29889,
29883,
29889,
978,
14664,
3062,
29898,
2371,
29896,
29889,
29883,
29889,
978,
1275,
525,
5431,
1495,
13,
4706,
1663,
353,
1583,
29889,
24051,
29889,
1357,
720,
814,
519,
29889,
7851,
2141,
29905,
13,
462,
1678,
515,
29918,
2622,
29898,
703,
1228,
333,
613,
376,
720,
4510,
4968,
5535,
29897,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
13,
9651,
1663,
29892,
13,
9651,
376,
19460,
11646,
590,
720,
814,
519,
313,
1228,
333,
29892,
916,
978,
29897,
376,
13,
9651,
376,
6404,
590,
2371,
29889,
1357,
333,
29892,
590,
2371,
29889,
978,
3895,
590,
2371,
376,
13,
9651,
376,
22043,
590,
2371,
29889,
978,
353,
584,
978,
29918,
29896,
613,
13,
9651,
1423,
7529,
3790,
29908,
978,
29918,
29896,
1115,
376,
5431,
9092,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
3166,
29918,
2622,
29918,
2622,
29918,
1997,
29918,
2098,
292,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
4706,
5535,
353,
1831,
4197,
2371,
29896,
29889,
29883,
29889,
978,
29892,
1591,
29896,
29889,
29883,
29889,
1357,
333,
14664,
3062,
29898,
2371,
29896,
29889,
29883,
29889,
978,
1275,
525,
5431,
1495,
13,
4706,
1663,
353,
1583,
29889,
24051,
29889,
1357,
720,
814,
519,
29889,
7851,
2141,
29905,
13,
462,
1678,
515,
29918,
2622,
29898,
703,
720,
4510,
613,
376,
1228,
333,
4968,
5535,
29897,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
13,
9651,
1663,
29892,
13,
9651,
376,
19460,
11646,
590,
720,
814,
519,
313,
720,
4510,
29892,
916,
333,
29897,
376,
13,
9651,
376,
6404,
590,
2371,
29889,
978,
29892,
590,
2371,
29889,
1357,
333,
3895,
590,
2371,
376,
13,
9651,
376,
22043,
590,
2371,
29889,
978,
353,
584,
978,
29918,
29896,
613,
13,
9651,
1423,
7529,
3790,
29908,
978,
29918,
29896,
1115,
376,
5431,
9092,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
3166,
29918,
2622,
29918,
2622,
29918,
1217,
29918,
4381,
29879,
29898,
1311,
1125,
13,
4706,
15562,
353,
20553,
1469,
580,
13,
4706,
1591,
353,
6137,
877,
29879,
3297,
519,
742,
15562,
29892,
13,
9651,
12481,
877,
333,
742,
8102,
29892,
7601,
29918,
1989,
29922,
5574,
511,
13,
9651,
12481,
877,
5431,
742,
8102,
29892,
2322,
29922,
9891,
29889,
1181,
22872,
22130,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
4706,
5535,
353,
1831,
4197,
2371,
29896,
29889,
29883,
29889,
1357,
333,
14664,
3062,
29898,
2371,
29896,
29889,
29883,
29889,
978,
1275,
525,
5431,
1495,
13,
4706,
1663,
353,
1591,
29889,
7851,
2141,
29905,
13,
462,
1678,
515,
29918,
2622,
29898,
3366,
333,
12436,
5535,
29897,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
13,
9651,
1663,
29892,
13,
9651,
376,
19460,
11646,
5895,
519,
313,
333,
29897,
5097,
590,
2371,
29889,
1357,
333,
376,
13,
9651,
376,
21482,
590,
2371,
5754,
590,
2371,
29889,
978,
353,
584,
978,
29918,
29896,
613,
13,
9651,
1423,
7529,
3790,
29908,
978,
29918,
29896,
1115,
376,
5431,
9092,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
28084,
29918,
2622,
29918,
5975,
29918,
11739,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
4706,
5535,
353,
1831,
4197,
2371,
29896,
29889,
29883,
29889,
1357,
333,
29892,
1591,
29896,
29889,
29883,
29889,
978,
14664,
3062,
29898,
2371,
29896,
29889,
29883,
29889,
978,
1275,
525,
5431,
1495,
13,
4706,
1663,
353,
1583,
29889,
24051,
29889,
1357,
720,
814,
519,
29889,
7851,
2141,
29905,
13,
462,
1678,
515,
29918,
2622,
29898,
703,
1228,
333,
613,
376,
720,
4510,
4968,
5535,
29897,
13,
4706,
4974,
29918,
336,
4637,
29918,
4906,
29898,
13,
9651,
5566,
29889,
13919,
3089,
2392,
29892,
13,
9651,
376,
4013,
3386,
2307,
13534,
1372,
515,
263,
5097,
613,
13,
9651,
1663,
29889,
5975,
29892,
916,
978,
543,
29945,
29908,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
28084,
29918,
5975,
29918,
2622,
29918,
11739,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
4706,
5535,
353,
1831,
4197,
2371,
29896,
29889,
29883,
29889,
1357,
333,
29892,
1591,
29896,
29889,
29883,
29889,
978,
14664,
3062,
29898,
2371,
29896,
29889,
29883,
29889,
978,
1275,
525,
5431,
1495,
13,
4706,
1663,
353,
1583,
29889,
24051,
29889,
1357,
720,
814,
519,
29889,
7851,
2141,
5975,
29898,
720,
4510,
543,
29945,
1159,
13,
4706,
4974,
29918,
336,
4637,
29918,
4906,
29898,
13,
9651,
5566,
29889,
13919,
3089,
2392,
29892,
13,
9651,
376,
4013,
3386,
2307,
13534,
1372,
995,
12241,
613,
13,
9651,
1663,
29889,
3166,
29918,
2622,
29892,
4852,
1228,
333,
613,
376,
720,
4510,
4968,
5535,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
3166,
29918,
2622,
29918,
2371,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
4706,
1663,
353,
1583,
29889,
24051,
29889,
1357,
720,
814,
519,
29889,
7851,
2141,
29905,
13,
462,
1678,
515,
29918,
2622,
29898,
703,
1228,
333,
613,
376,
720,
4510,
4968,
1591,
29896,
29897,
13,
4706,
396,
4443,
591,
9455,
29915,
29873,
8454,
278,
1353,
310,
4341,
1492,
1286,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
13,
9651,
1663,
29892,
13,
9651,
376,
19460,
11646,
590,
720,
814,
519,
313,
1228,
333,
29892,
916,
978,
29897,
376,
13,
9651,
376,
6404,
590,
2371,
29889,
1357,
333,
29892,
590,
2371,
29889,
978,
29892,
590,
2371,
29889,
8216,
376,
13,
9651,
376,
21482,
590,
2371,
613,
13,
9651,
1423,
7529,
3790,
29913,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
3166,
29918,
2622,
29918,
13094,
29898,
1311,
1125,
13,
4706,
590,
2371,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1024,
353,
525,
978,
29915,
13,
4706,
6139,
353,
525,
14273,
29915,
13,
4706,
5535,
353,
1831,
29898,
13,
9651,
518,
978,
29892,
590,
2371,
29889,
29883,
29889,
8216,
1402,
13,
4706,
13742,
13094,
29898,
13,
9651,
1831,
4197,
978,
29892,
6139,
2314,
13,
4706,
1723,
13,
4706,
1663,
353,
590,
2371,
29889,
7851,
2141,
29905,
13,
462,
1678,
515,
29918,
2622,
29898,
13,
462,
9651,
518,
1357,
2371,
29889,
29883,
29889,
978,
29892,
590,
2371,
29889,
29883,
29889,
8216,
1402,
5535,
29897,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
13,
9651,
1663,
29892,
13,
9651,
376,
19460,
11646,
590,
2371,
313,
978,
29892,
6139,
29897,
376,
13,
462,
1678,
376,
6404,
1024,
29892,
590,
2371,
29889,
8216,
3895,
590,
2371,
376,
13,
462,
1678,
376,
3904,
2725,
5097,
1024,
29892,
5153,
29908,
13,
4706,
1723,
13,
1678,
822,
1243,
29918,
7851,
29918,
3166,
29918,
2622,
29918,
1054,
29918,
5975,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
4706,
1591,
29906,
353,
1583,
29889,
24051,
29889,
1357,
720,
814,
519,
13,
4706,
5535,
353,
1831,
4197,
2371,
29896,
29889,
29883,
29889,
1357,
333,
29892,
1591,
29896,
29889,
29883,
29889,
978,
14664,
3062,
29898,
2371,
29896,
29889,
29883,
29889,
978,
1275,
525,
5431,
1495,
13,
4706,
1663,
353,
1591,
29906,
29889,
7851,
2141,
29905,
13,
462,
1678,
515,
29918,
2622,
3552,
2371,
29906,
29889,
29883,
29889,
1228,
333,
29892,
1591,
29906,
29889,
29883,
29889,
720,
4510,
511,
5535,
29897,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
13,
9651,
1663,
29892,
13,
9651,
376,
19460,
11646,
590,
720,
814,
519,
313,
1228,
333,
29892,
916,
978,
29897,
376,
13,
9651,
376,
6404,
590,
2371,
29889,
1357,
333,
29892,
590,
2371,
29889,
978,
3895,
590,
2371,
376,
13,
9651,
376,
22043,
590,
2371,
29889,
978,
353,
584,
978,
29918,
29896,
613,
13,
9651,
1423,
7529,
3790,
29908,
978,
29918,
29896,
1115,
376,
5431,
9092,
13,
4706,
1723,
13,
13,
13,
1990,
2812,
2349,
3057,
7373,
17491,
3057,
5160,
29892,
5713,
486,
1973,
29889,
24924,
3057,
29892,
1094,
643,
1372,
6843,
2356,
4176,
1125,
13,
1678,
4770,
15321,
781,
1649,
353,
525,
4381,
29915,
13,
13,
1678,
822,
1243,
29918,
6310,
29918,
7851,
29918,
4381,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
380,
4378,
353,
1591,
29896,
29889,
7851,
2141,
5975,
3319,
1800,
29871,
396,
9563,
515,
29871,
29906,
517,
29941,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
17868,
29892,
525,
19460,
11646,
590,
2371,
3861,
15673,
3861,
1495,
13,
13,
1678,
822,
1243,
29918,
5924,
29879,
29918,
6310,
29918,
7851,
29918,
3009,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
23725,
353,
2322,
29889,
4592,
29928,
423,
781,
580,
13,
4706,
23725,
29889,
5924,
29879,
29918,
6310,
29918,
7851,
353,
23725,
29889,
5924,
29879,
29918,
4381,
29918,
5975,
353,
5852,
13,
13,
4706,
380,
4378,
353,
1591,
29896,
29889,
7851,
2141,
5975,
3319,
1800,
29871,
396,
9563,
515,
29871,
29906,
517,
29941,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
17868,
29892,
13,
9651,
525,
19460,
11646,
590,
2371,
22236,
15673,
742,
13,
9651,
23725,
29922,
15321,
781,
29897,
13,
13,
1678,
822,
1243,
29918,
5924,
29879,
29918,
6310,
29918,
7851,
29918,
4541,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
23725,
353,
2322,
29889,
4592,
29928,
423,
781,
580,
13,
4706,
23725,
29889,
5924,
29879,
29918,
6310,
29918,
7851,
353,
23725,
29889,
5924,
29879,
29918,
4381,
29918,
5975,
353,
7700,
13,
13,
4706,
380,
4378,
353,
1591,
29896,
29889,
7851,
2141,
5975,
3319,
1800,
29871,
396,
9563,
515,
29871,
29906,
517,
29941,
13,
4706,
4974,
29918,
336,
4637,
29918,
4906,
29898,
735,
29883,
29889,
6843,
488,
2392,
29892,
13,
9651,
376,
1576,
525,
4381,
29915,
23725,
411,
1857,
2566,
1873,
376,
13,
18884,
376,
11027,
947,
451,
2304,
4069,
13534,
1372,
19602,
13,
9651,
380,
4378,
29889,
12198,
29892,
23725,
29922,
15321,
781,
29897,
13,
13,
1678,
822,
903,
1688,
29918,
7851,
29918,
2541,
29918,
6310,
29918,
10855,
29918,
5975,
29898,
1311,
29892,
4333,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1663,
353,
1591,
29896,
29889,
7851,
2141,
5975,
29898,
10855,
29897,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
1144,
29892,
13,
9651,
525,
19460,
11646,
590,
2371,
3861,
15673,
3861,
742,
13,
9651,
1423,
7529,
3790,
1800,
13,
13,
4706,
396,
4069,
9657,
14938,
1078,
373,
2446,
1819,
1246,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
1144,
29889,
5975,
29898,
1357,
333,
29922,
29941,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29897,
15673,
13940,
1357,
333,
29897,
742,
13,
9651,
1423,
7529,
3790,
29915,
1357,
333,
2396,
29871,
29941,
1800,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2541,
29918,
6310,
29918,
1761,
29918,
5975,
29898,
1311,
1125,
13,
4706,
1583,
3032,
1688,
29918,
7851,
29918,
2541,
29918,
6310,
29918,
10855,
29918,
5975,
4197,
2314,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2541,
29918,
6310,
29918,
8977,
29918,
5975,
29898,
1311,
1125,
13,
4706,
1583,
3032,
1688,
29918,
7851,
29918,
2541,
29918,
6310,
29918,
10855,
29918,
5975,
3319,
1800,
13,
13,
1678,
822,
1243,
29918,
7851,
29918,
2541,
29918,
6310,
29918,
23583,
29918,
5975,
29898,
1311,
1125,
13,
4706,
1583,
3032,
1688,
29918,
7851,
29918,
2541,
29918,
6310,
29918,
10855,
29918,
5975,
29898,
3101,
13,
13,
13,
1990,
14974,
798,
3057,
7373,
17491,
3057,
5160,
29892,
5713,
486,
1973,
29889,
24924,
3057,
29892,
1094,
643,
1372,
6843,
2356,
4176,
1125,
13,
1678,
4770,
15321,
781,
1649,
353,
525,
4381,
29915,
13,
13,
1678,
822,
1243,
29918,
1333,
29918,
23765,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
23725,
353,
2322,
29889,
4592,
29928,
423,
781,
580,
13,
4706,
380,
4378,
353,
1591,
29896,
29889,
7851,
2141,
5975,
4197,
10998,
1357,
333,
2396,
29871,
29896,
1118,
11117,
1357,
333,
2396,
29871,
29906,
29913,
2314,
13,
4706,
4974,
29918,
336,
4637,
29918,
4906,
29898,
13,
9651,
5566,
29889,
6843,
488,
2392,
29892,
13,
9651,
376,
1576,
525,
4381,
29915,
23725,
411,
1857,
2566,
1873,
6055,
376,
13,
18884,
376,
13221,
451,
2304,
297,
29899,
6689,
2473,
798,
13534,
1372,
19602,
13,
9651,
380,
4378,
29889,
12198,
29892,
23725,
29922,
15321,
781,
29897,
13,
13,
1678,
822,
1243,
29918,
17514,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1819,
353,
518,
13,
9651,
11117,
1357,
333,
2396,
29871,
29896,
29892,
525,
978,
2396,
525,
29874,
742,
525,
8216,
2396,
525,
29890,
16675,
13,
9651,
11117,
1357,
333,
2396,
29871,
29906,
29892,
525,
978,
2396,
525,
29883,
742,
525,
8216,
2396,
525,
29881,
16675,
13,
9651,
11117,
1357,
333,
2396,
29871,
29941,
29892,
525,
978,
2396,
525,
29872,
742,
525,
8216,
2396,
525,
29888,
10827,
13,
4706,
4514,
13,
13,
4706,
1423,
7529,
353,
426,
13,
9651,
525,
1357,
333,
29918,
29900,
2396,
29871,
29896,
29892,
13,
9651,
525,
1357,
333,
29918,
29896,
2396,
29871,
29906,
29892,
13,
9651,
525,
1357,
333,
29918,
29906,
2396,
29871,
29941,
29892,
13,
9651,
525,
978,
29918,
29900,
2396,
525,
29874,
742,
13,
9651,
525,
978,
29918,
29896,
2396,
525,
29883,
742,
13,
9651,
525,
978,
29918,
29906,
2396,
525,
29872,
742,
13,
9651,
525,
8216,
29918,
29900,
2396,
525,
29890,
742,
13,
9651,
525,
8216,
29918,
29896,
2396,
525,
29881,
742,
13,
9651,
525,
8216,
29918,
29906,
2396,
525,
29888,
742,
13,
4706,
500,
13,
13,
4706,
23725,
353,
2322,
29889,
4592,
29928,
423,
781,
580,
13,
4706,
23725,
29889,
5924,
29879,
29918,
4713,
2561,
1041,
29918,
7851,
353,
5852,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
2371,
29896,
29889,
7851,
2141,
5975,
29898,
5975,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29892,
6139,
29897,
15673,
525,
13,
632,
525,
8137,
1357,
333,
29918,
29900,
29892,
584,
978,
29918,
29900,
29892,
584,
8216,
29918,
29900,
511,
525,
13,
632,
525,
8137,
1357,
333,
29918,
29896,
29892,
584,
978,
29918,
29896,
29892,
584,
8216,
29918,
29896,
511,
525,
13,
632,
525,
8137,
1357,
333,
29918,
29906,
29892,
584,
978,
29918,
29906,
29892,
584,
8216,
29918,
29906,
29897,
742,
13,
9651,
1423,
7529,
29922,
3198,
7529,
29892,
23725,
29922,
15321,
781,
29897,
13,
13,
1678,
822,
1243,
29918,
1066,
3245,
29898,
1311,
1125,
13,
4706,
1591,
29896,
353,
1583,
29889,
24051,
29889,
1357,
2371,
13,
13,
4706,
1819,
353,
518,
13,
9651,
11117,
1357,
333,
2396,
29871,
29896,
29892,
525,
978,
2396,
525,
29874,
742,
525,
8216,
2396,
525,
29890,
16675,
13,
9651,
11117,
1357,
333,
2396,
29871,
29906,
29892,
525,
978,
2396,
525,
29883,
742,
525,
8216,
2396,
525,
29881,
16675,
13,
9651,
11117,
1357,
333,
2396,
29871,
29941,
29892,
525,
978,
2396,
525,
29872,
742,
525,
8216,
2396,
525,
29888,
10827,
13,
4706,
4514,
13,
13,
4706,
1423,
1066,
3245,
353,
313,
29896,
29892,
525,
29874,
742,
525,
29890,
742,
29871,
29906,
29892,
525,
29883,
742,
525,
29881,
742,
29871,
29941,
29892,
525,
29872,
742,
525,
29888,
1495,
13,
13,
4706,
23725,
353,
2322,
29889,
4592,
29928,
423,
781,
580,
13,
4706,
23725,
29889,
5924,
29879,
29918,
4713,
2561,
1041,
29918,
7851,
353,
5852,
13,
4706,
23725,
29889,
3207,
3293,
353,
525,
4830,
29915,
13,
4706,
23725,
29889,
1066,
3245,
353,
5852,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
2371,
29896,
29889,
7851,
2141,
5975,
29898,
5975,
511,
13,
9651,
525,
19460,
11646,
590,
2371,
313,
1357,
333,
29892,
1024,
29892,
6139,
29897,
15673,
525,
13,
9651,
525,
29414,
29879,
29892,
1273,
29879,
29892,
1273,
29879,
511,
313,
29995,
29879,
29892,
1273,
29879,
29892,
1273,
29879,
511,
313,
29995,
29879,
29892,
1273,
29879,
29892,
1273,
29879,
29897,
742,
13,
9651,
1423,
1066,
3245,
29922,
3198,
1066,
3245,
29892,
23725,
29922,
15321,
781,
29897,
13,
13,
1678,
822,
1243,
29918,
14764,
29918,
4381,
29898,
1311,
1125,
13,
4706,
15562,
353,
20553,
1469,
580,
13,
4706,
1591,
353,
6137,
877,
29879,
3297,
519,
742,
15562,
29892,
13,
9651,
12481,
877,
333,
742,
8102,
29892,
7601,
29918,
1989,
29922,
5574,
511,
13,
9651,
12481,
877,
1272,
742,
1714,
511,
13,
9651,
12481,
877,
5431,
742,
8102,
29892,
2322,
29922,
9891,
29889,
1181,
22872,
22130,
13,
13,
4706,
1819,
353,
518,
13,
9651,
11117,
333,
2396,
29871,
29896,
29892,
525,
1272,
2396,
525,
1272,
29896,
16675,
13,
9651,
11117,
333,
2396,
29871,
29906,
29892,
525,
1272,
2396,
525,
1272,
29906,
742,
525,
5431,
2396,
525,
13974,
3888,
29877,
16675,
13,
9651,
11117,
333,
2396,
29871,
29941,
29892,
525,
1272,
2396,
525,
1272,
29941,
16675,
13,
4706,
4514,
13,
13,
4706,
1423,
7529,
353,
426,
13,
9651,
525,
333,
29918,
29900,
2396,
29871,
29896,
29892,
13,
9651,
525,
333,
29918,
29896,
2396,
29871,
29906,
29892,
13,
9651,
525,
333,
29918,
29906,
2396,
29871,
29941,
29892,
13,
9651,
525,
1272,
29918,
29900,
2396,
525,
1272,
29896,
742,
13,
9651,
525,
1272,
29918,
29896,
2396,
525,
1272,
29906,
742,
13,
9651,
525,
1272,
29918,
29906,
2396,
525,
1272,
29941,
742,
13,
9651,
525,
5431,
29918,
29896,
2396,
525,
13974,
3888,
29877,
742,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
2371,
29889,
7851,
2141,
5975,
29898,
5975,
511,
13,
9651,
525,
19460,
11646,
5895,
519,
313,
333,
29892,
848,
29892,
7953,
29897,
15673,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29900,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29900,
29897,
29879,
29892,
1701,
22872,
25739,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29896,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29896,
29897,
29879,
29892,
1273,
29898,
5431,
29918,
29896,
29897,
29879,
511,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29906,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29906,
29897,
29879,
29892,
1701,
22872,
3101,
742,
13,
9651,
1423,
7529,
29922,
3198,
7529,
29892,
23725,
29922,
29272,
29889,
15321,
781,
3101,
13,
13,
1678,
822,
1243,
29918,
2974,
29918,
4381,
29898,
1311,
1125,
13,
4706,
15562,
353,
20553,
1469,
580,
13,
4706,
1591,
353,
6137,
877,
29879,
3297,
519,
742,
15562,
29892,
13,
9651,
12481,
877,
333,
742,
8102,
29892,
7601,
29918,
1989,
29922,
5574,
511,
13,
9651,
12481,
877,
1272,
742,
1714,
511,
13,
9651,
12481,
877,
5431,
742,
8102,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
1181,
22872,
22130,
13,
13,
4706,
1819,
353,
518,
13,
9651,
11117,
333,
2396,
29871,
29896,
29892,
525,
1272,
2396,
525,
1272,
29896,
16675,
13,
9651,
11117,
333,
2396,
29871,
29906,
29892,
525,
1272,
2396,
525,
1272,
29906,
742,
525,
5431,
2396,
525,
13974,
3888,
29877,
16675,
13,
9651,
11117,
333,
2396,
29871,
29941,
29892,
525,
1272,
2396,
525,
1272,
29941,
16675,
13,
4706,
4514,
13,
13,
4706,
1423,
7529,
353,
426,
13,
9651,
525,
333,
29918,
29900,
2396,
29871,
29896,
29892,
13,
9651,
525,
333,
29918,
29896,
2396,
29871,
29906,
29892,
13,
9651,
525,
333,
29918,
29906,
2396,
29871,
29941,
29892,
13,
9651,
525,
1272,
29918,
29900,
2396,
525,
1272,
29896,
742,
13,
9651,
525,
1272,
29918,
29896,
2396,
525,
1272,
29906,
742,
13,
9651,
525,
1272,
29918,
29906,
2396,
525,
1272,
29941,
742,
13,
4706,
500,
13,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
2371,
29889,
7851,
2141,
5975,
29898,
5975,
511,
13,
9651,
525,
19460,
11646,
5895,
519,
313,
333,
29892,
848,
29897,
15673,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29900,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29900,
29897,
29879,
511,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29896,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29896,
29897,
29879,
511,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29906,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29906,
29897,
29879,
29897,
742,
13,
9651,
1423,
7529,
29922,
3198,
7529,
29892,
23725,
29922,
29272,
29889,
15321,
781,
3101,
13,
13,
1678,
822,
1243,
29918,
2974,
29918,
4381,
29918,
6897,
296,
29918,
1767,
29898,
1311,
1125,
13,
4706,
15562,
353,
20553,
1469,
580,
13,
4706,
1591,
353,
6137,
877,
29879,
3297,
519,
742,
15562,
29892,
13,
9651,
12481,
877,
333,
742,
8102,
29892,
7601,
29918,
1989,
29922,
5574,
511,
13,
9651,
12481,
877,
1272,
742,
1714,
511,
13,
9651,
12481,
877,
5431,
742,
8102,
29892,
1923,
29918,
4381,
29922,
9891,
29889,
1181,
22872,
22130,
13,
13,
4706,
1819,
353,
518,
13,
9651,
11117,
333,
2396,
29871,
29896,
29892,
525,
1272,
2396,
525,
1272,
29896,
742,
525,
5431,
2396,
525,
13974,
3888,
29877,
16675,
13,
9651,
11117,
333,
2396,
29871,
29906,
29892,
525,
1272,
2396,
525,
1272,
29906,
16675,
13,
9651,
11117,
333,
2396,
29871,
29941,
29892,
525,
1272,
2396,
525,
1272,
29941,
742,
525,
5431,
2396,
525,
1228,
5431,
16675,
13,
4706,
4514,
13,
13,
4706,
1423,
7529,
353,
426,
13,
9651,
525,
333,
29918,
29900,
2396,
29871,
29896,
29892,
13,
9651,
525,
333,
29918,
29896,
2396,
29871,
29906,
29892,
13,
9651,
525,
333,
29918,
29906,
2396,
29871,
29941,
29892,
13,
9651,
525,
1272,
29918,
29900,
2396,
525,
1272,
29896,
742,
13,
9651,
525,
1272,
29918,
29896,
2396,
525,
1272,
29906,
742,
13,
9651,
525,
1272,
29918,
29906,
2396,
525,
1272,
29941,
742,
13,
9651,
525,
5431,
29918,
29900,
2396,
525,
13974,
3888,
29877,
742,
13,
9651,
525,
5431,
29918,
29906,
2396,
525,
1228,
5431,
742,
13,
4706,
500,
13,
13,
4706,
396,
4443,
278,
2779,
1244,
338,
393,
278,
937,
731,
310,
8636,
13,
4706,
396,
4893,
2779,
363,
278,
1791,
310,
963,
29892,
746,
697,
338,
29207,
13,
4706,
1583,
29889,
9294,
29918,
12198,
29898,
2371,
29889,
7851,
2141,
5975,
29898,
5975,
511,
13,
9651,
525,
19460,
11646,
5895,
519,
313,
333,
29892,
848,
29892,
7953,
29897,
15673,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29900,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29900,
29897,
29879,
29892,
1273,
29898,
5431,
29918,
29900,
29897,
29879,
511,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29896,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29896,
29897,
29879,
29892,
1273,
29898,
5431,
29918,
29900,
29897,
29879,
511,
525,
13,
9651,
525,
29414,
29898,
333,
29918,
29906,
29897,
29879,
29892,
1273,
29898,
1272,
29918,
29906,
29897,
29879,
29892,
1273,
29898,
5431,
29918,
29906,
29897,
29879,
29897,
742,
13,
9651,
1423,
7529,
29922,
3198,
7529,
29892,
23725,
29922,
29272,
29889,
15321,
781,
3101,
13,
2
] |
shadow/apis/item.py | f1uzz/shadow | 1 | 16634 | from functools import lru_cache
from typing import Optional
import requests
from .patches import Patches
class Item:
"""
Manipulation of static item data
"""
ITEM_URL = f"http://ddragon.leagueoflegends.com/cdn/{Patches.get_current_patch()}/data/en_US/item.json"
items = requests.get(ITEM_URL).json()
@classmethod
@lru_cache()
def id_for_name(cls, name: str) -> Optional[str]:
"""
Finds the id for an item given its name
Returns the id, None if not found
name - full name of item
"""
for item_id, item in cls.items["data"].items():
if item["name"].casefold() == name.casefold():
return item_id
@classmethod
@lru_cache()
def name_for_id(cls, item_id: str) -> Optional[str]:
"""
Finds the name for an item given its id
Returns the name, None if not found
item_id - id of item
"""
for found_item_id, item in cls.items["data"].items():
if found_item_id == item_id:
return item["name"] | [
1,
515,
2090,
312,
8789,
1053,
301,
582,
29918,
8173,
13,
3166,
19229,
1053,
28379,
13,
13,
5215,
7274,
13,
13,
3166,
869,
5041,
267,
1053,
349,
905,
267,
13,
13,
13,
1990,
10976,
29901,
13,
1678,
9995,
13,
1678,
2315,
666,
2785,
310,
2294,
2944,
848,
13,
1678,
9995,
13,
13,
1678,
306,
4330,
29924,
29918,
4219,
353,
285,
29908,
1124,
597,
1289,
1431,
265,
29889,
280,
3437,
974,
1397,
1975,
29889,
510,
29914,
13687,
19248,
29925,
905,
267,
29889,
657,
29918,
3784,
29918,
5041,
580,
6822,
1272,
29914,
264,
29918,
3308,
29914,
667,
29889,
3126,
29908,
13,
1678,
4452,
353,
7274,
29889,
657,
29898,
9094,
29924,
29918,
4219,
467,
3126,
580,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
732,
29880,
582,
29918,
8173,
580,
13,
1678,
822,
1178,
29918,
1454,
29918,
978,
29898,
25932,
29892,
1024,
29901,
851,
29897,
1599,
28379,
29961,
710,
5387,
13,
4706,
9995,
13,
4706,
10987,
29879,
278,
1178,
363,
385,
2944,
2183,
967,
1024,
13,
4706,
16969,
278,
1178,
29892,
6213,
565,
451,
1476,
13,
13,
4706,
1024,
448,
2989,
1024,
310,
2944,
13,
4706,
9995,
13,
13,
4706,
363,
2944,
29918,
333,
29892,
2944,
297,
1067,
29879,
29889,
7076,
3366,
1272,
16862,
7076,
7295,
13,
9651,
565,
2944,
3366,
978,
16862,
4878,
8771,
580,
1275,
1024,
29889,
4878,
8771,
7295,
13,
18884,
736,
2944,
29918,
333,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
732,
29880,
582,
29918,
8173,
580,
13,
1678,
822,
1024,
29918,
1454,
29918,
333,
29898,
25932,
29892,
2944,
29918,
333,
29901,
851,
29897,
1599,
28379,
29961,
710,
5387,
13,
4706,
9995,
13,
4706,
10987,
29879,
278,
1024,
363,
385,
2944,
2183,
967,
1178,
13,
4706,
16969,
278,
1024,
29892,
6213,
565,
451,
1476,
13,
13,
4706,
2944,
29918,
333,
448,
1178,
310,
2944,
13,
4706,
9995,
13,
13,
4706,
363,
1476,
29918,
667,
29918,
333,
29892,
2944,
297,
1067,
29879,
29889,
7076,
3366,
1272,
16862,
7076,
7295,
13,
9651,
565,
1476,
29918,
667,
29918,
333,
1275,
2944,
29918,
333,
29901,
13,
18884,
736,
2944,
3366,
978,
3108,
2
] |
data/data_utils.py | hjonnala/deeplab2 | 0 | 91394 | <filename>data/data_utils.py
# coding=utf-8
# Copyright 2022 The Deeplab2 Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Contains common utility functions and classes for building dataset."""
import collections
import io
import numpy as np
from PIL import Image
from PIL import ImageOps
import tensorflow as tf
from deeplab2 import common
_PANOPTIC_LABEL_FORMAT = 'raw'
def read_image(image_data):
"""Decodes image from in-memory data.
Args:
image_data: Bytes data representing encoded image.
Returns:
Decoded PIL.Image object.
"""
image = Image.open(io.BytesIO(image_data))
try:
image = ImageOps.exif_transpose(image)
except TypeError:
# capture and ignore this bug:
# https://github.com/python-pillow/Pillow/issues/3973
pass
return image
def get_image_dims(image_data, check_is_rgb=False):
"""Decodes image and return its height and width.
Args:
image_data: Bytes data representing encoded image.
check_is_rgb: Whether to check encoded image is RGB.
Returns:
Decoded image size as a tuple of (height, width)
Raises:
ValueError: If check_is_rgb is set and input image has other format.
"""
image = read_image(image_data)
if check_is_rgb and image.mode != 'RGB':
raise ValueError('Expects RGB image data, gets mode: %s' % image.mode)
width, height = image.size
return height, width
def _int64_list_feature(values):
"""Returns a TF-Feature of int64_list.
Args:
values: A scalar or an iterable of integer values.
Returns:
A TF-Feature.
"""
if not isinstance(values, collections.Iterable):
values = [values]
return tf.train.Feature(int64_list=tf.train.Int64List(value=values))
def _bytes_list_feature(values):
"""Returns a TF-Feature of bytes.
Args:
values: A string.
Returns:
A TF-Feature.
"""
if isinstance(values, str):
values = values.encode()
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[values]))
def create_features(image_data,
image_format,
filename,
label_data=None,
label_format=None):
"""Creates image/segmentation features.
Args:
image_data: String or byte stream of encoded image data.
image_format: String, image data format, should be either 'jpeg', 'jpg', or
'png'.
filename: String, image filename.
label_data: String or byte stream of (potentially) encoded label data. If
None, we skip to write it to tf.train.Example.
label_format: String, label data format, should be either 'png' or 'raw'. If
None, we skip to write it to tf.train.Example.
Returns:
A dictionary of feature name to tf.train.Feature maaping.
"""
if image_format not in ('jpeg', 'png', 'jpg'):
raise ValueError('Unsupported image format: %s' % image_format)
# Check color mode, and convert grey image to rgb image.
image = read_image(image_data)
if image.mode != 'RGB':
image = image.convert('RGB')
image_data = io.BytesIO()
image.save(image_data, format=image_format)
image_data = image_data.getvalue()
height, width = get_image_dims(image_data, check_is_rgb=True)
feature_dict = {
common.KEY_ENCODED_IMAGE: _bytes_list_feature(image_data),
common.KEY_IMAGE_FILENAME: _bytes_list_feature(filename),
common.KEY_IMAGE_FORMAT: _bytes_list_feature(image_format),
common.KEY_IMAGE_HEIGHT: _int64_list_feature(height),
common.KEY_IMAGE_WIDTH: _int64_list_feature(width),
common.KEY_IMAGE_CHANNELS: _int64_list_feature(3),
}
if label_data is None:
return feature_dict
if label_format == 'png':
label_height, label_width = get_image_dims(label_data)
if (label_height, label_width) != (height, width):
raise ValueError('Image (%s) and label (%s) shape mismatch' %
((height, width), (label_height, label_width)))
elif label_format == 'raw':
# Raw label encodes int32 array.
expected_label_size = height * width * np.dtype(np.int32).itemsize
if len(label_data) != expected_label_size:
raise ValueError('Expects raw label data length %d, gets %d' %
(expected_label_size, len(label_data)))
else:
raise ValueError('Unsupported label format: %s' % label_format)
feature_dict.update({
common.KEY_ENCODED_LABEL: _bytes_list_feature(label_data),
common.KEY_LABEL_FORMAT: _bytes_list_feature(label_format)
})
return feature_dict
def create_tfexample(image_data,
image_format,
filename,
label_data=None,
label_format=None):
"""Converts one image/segmentation pair to TF example.
Args:
image_data: String or byte stream of encoded image data.
image_format: String, image data format, should be either 'jpeg' or 'png'.
filename: String, image filename.
label_data: String or byte stream of (potentially) encoded label data. If
None, we skip to write it to tf.train.Example.
label_format: String, label data format, should be either 'png' or 'raw'. If
None, we skip to write it to tf.train.Example.
Returns:
TF example proto.
"""
feature_dict = create_features(image_data, image_format, filename, label_data,
label_format)
return tf.train.Example(features=tf.train.Features(feature=feature_dict))
def create_video_tfexample(image_data,
image_format,
filename,
sequence_id,
image_id,
label_data=None,
label_format=None,
prev_image_data=None,
prev_label_data=None):
"""Converts one video frame/panoptic segmentation pair to TF example.
Args:
image_data: String or byte stream of encoded image data.
image_format: String, image data format, should be either 'jpeg' or 'png'.
filename: String, image filename.
sequence_id: ID of the video sequence as a string.
image_id: ID of the image as a string.
label_data: String or byte stream of (potentially) encoded label data. If
None, we skip to write it to tf.train.Example.
label_format: String, label data format, should be either 'png' or 'raw'. If
None, we skip to write it to tf.train.Example.
prev_image_data: An optional string or byte stream of encoded previous image
data.
prev_label_data: An optional string or byte stream of (potentially) encoded
previous label data.
Returns:
TF example proto.
"""
feature_dict = create_features(image_data, image_format, filename, label_data,
label_format)
feature_dict.update({
common.KEY_SEQUENCE_ID: _bytes_list_feature(sequence_id),
common.KEY_FRAME_ID: _bytes_list_feature(image_id)
})
if prev_image_data is not None:
feature_dict[common.KEY_ENCODED_PREV_IMAGE] = _bytes_list_feature(
prev_image_data)
if prev_label_data is not None:
feature_dict[common.KEY_ENCODED_PREV_LABEL] = _bytes_list_feature(
prev_label_data)
return tf.train.Example(features=tf.train.Features(feature=feature_dict))
def create_video_and_depth_tfexample(image_data,
image_format,
filename,
sequence_id,
image_id,
label_data=None,
label_format=None,
next_image_data=None,
next_label_data=None,
depth_data=None,
depth_format=None):
"""Converts an image/segmentation pair and depth of first frame to TF example.
The image pair contains the current frame and the next frame with the
current frame including depth label.
Args:
image_data: String or byte stream of encoded image data.
image_format: String, image data format, should be either 'jpeg' or 'png'.
filename: String, image filename.
sequence_id: ID of the video sequence as a string.
image_id: ID of the image as a string.
label_data: String or byte stream of (potentially) encoded label data. If
None, we skip to write it to tf.train.Example.
label_format: String, label data format, should be either 'png' or 'raw'. If
None, we skip to write it to tf.train.Example.
next_image_data: An optional string or byte stream of encoded next image
data.
next_label_data: An optional string or byte stream of (potentially) encoded
next label data.
depth_data: An optional string or byte sream of encoded depth data.
depth_format: String, depth data format, should be either 'png' or 'raw'.
Returns:
TF example proto.
"""
feature_dict = create_features(image_data, image_format, filename, label_data,
label_format)
feature_dict.update({
common.KEY_SEQUENCE_ID: _bytes_list_feature(sequence_id),
common.KEY_FRAME_ID: _bytes_list_feature(image_id)
})
if next_image_data is not None:
feature_dict[common.KEY_ENCODED_NEXT_IMAGE] = _bytes_list_feature(
next_image_data)
if next_label_data is not None:
feature_dict[common.KEY_ENCODED_NEXT_LABEL] = _bytes_list_feature(
next_label_data)
if depth_data is not None:
feature_dict[common.KEY_ENCODED_DEPTH] = _bytes_list_feature(
depth_data)
feature_dict[common.KEY_DEPTH_FORMAT] = _bytes_list_feature(
depth_format)
return tf.train.Example(features=tf.train.Features(feature=feature_dict))
class SegmentationDecoder(object):
"""Basic parser to decode serialized tf.Example."""
def __init__(self,
is_panoptic_dataset=True,
is_video_dataset=False,
is_depth_dataset=False,
use_two_frames=False,
use_next_frame=False,
decode_groundtruth_label=True):
self._is_panoptic_dataset = is_panoptic_dataset
self._is_video_dataset = is_video_dataset
self._is_depth_dataset = is_depth_dataset
self._use_two_frames = use_two_frames
self._use_next_frame = use_next_frame
self._decode_groundtruth_label = decode_groundtruth_label
string_feature = tf.io.FixedLenFeature((), tf.string)
int_feature = tf.io.FixedLenFeature((), tf.int64)
self._keys_to_features = {
common.KEY_ENCODED_IMAGE: string_feature,
common.KEY_IMAGE_FILENAME: string_feature,
common.KEY_IMAGE_FORMAT: string_feature,
common.KEY_IMAGE_HEIGHT: int_feature,
common.KEY_IMAGE_WIDTH: int_feature,
common.KEY_IMAGE_CHANNELS: int_feature,
}
if decode_groundtruth_label:
self._keys_to_features[common.KEY_ENCODED_LABEL] = string_feature
if self._is_video_dataset:
self._keys_to_features[common.KEY_SEQUENCE_ID] = string_feature
self._keys_to_features[common.KEY_FRAME_ID] = string_feature
# Two-frame specific processing.
if self._use_two_frames:
self._keys_to_features[common.KEY_ENCODED_PREV_IMAGE] = string_feature
if decode_groundtruth_label:
self._keys_to_features[common.KEY_ENCODED_PREV_LABEL] = string_feature
# Next-frame specific processing.
if self._use_next_frame:
self._keys_to_features[common.KEY_ENCODED_NEXT_IMAGE] = string_feature
if decode_groundtruth_label:
self._keys_to_features[common.KEY_ENCODED_NEXT_LABEL] = string_feature
# Depth specific processing.
if self._is_depth_dataset and decode_groundtruth_label:
self._keys_to_features[common.KEY_ENCODED_DEPTH] = string_feature
def _decode_image(self, parsed_tensors, key):
"""Decodes image udner key from parsed tensors."""
image = tf.io.decode_image(
parsed_tensors[key],
channels=3,
dtype=tf.dtypes.uint8,
expand_animations=False)
image.set_shape([None, None, 3])
return image
def _decode_label(self, parsed_tensors, label_key):
"""Decodes segmentation label under label_key from parsed tensors."""
if self._is_panoptic_dataset:
flattened_label = tf.io.decode_raw(
parsed_tensors[label_key], out_type=tf.int32)
label_shape = tf.stack([
parsed_tensors[common.KEY_IMAGE_HEIGHT],
parsed_tensors[common.KEY_IMAGE_WIDTH], 1
])
label = tf.reshape(flattened_label, label_shape)
return label
label = tf.io.decode_image(parsed_tensors[label_key], channels=1)
label.set_shape([None, None, 1])
return label
def __call__(self, serialized_example):
parsed_tensors = tf.io.parse_single_example(
serialized_example, features=self._keys_to_features)
return_dict = {
'image':
self._decode_image(parsed_tensors, common.KEY_ENCODED_IMAGE),
'image_name':
parsed_tensors[common.KEY_IMAGE_FILENAME],
'height':
tf.cast(parsed_tensors[common.KEY_IMAGE_HEIGHT], dtype=tf.int32),
'width':
tf.cast(parsed_tensors[common.KEY_IMAGE_WIDTH], dtype=tf.int32),
}
return_dict['label'] = None
if self._decode_groundtruth_label:
return_dict['label'] = self._decode_label(parsed_tensors,
common.KEY_ENCODED_LABEL)
if self._is_video_dataset:
return_dict['sequence'] = parsed_tensors[common.KEY_SEQUENCE_ID]
if self._use_two_frames:
return_dict['prev_image'] = self._decode_image(
parsed_tensors, common.KEY_ENCODED_PREV_IMAGE)
if self._decode_groundtruth_label:
return_dict['prev_label'] = self._decode_label(
parsed_tensors, common.KEY_ENCODED_PREV_LABEL)
if self._use_next_frame:
return_dict['next_image'] = self._decode_image(
parsed_tensors, common.KEY_ENCODED_NEXT_IMAGE)
if self._decode_groundtruth_label:
return_dict['next_label'] = self._decode_label(
parsed_tensors, common.KEY_ENCODED_NEXT_LABEL)
if self._is_depth_dataset and self._decode_groundtruth_label:
return_dict['depth'] = self._decode_label(
parsed_tensors, common.KEY_ENCODED_DEPTH)
return return_dict
| [
1,
529,
9507,
29958,
1272,
29914,
1272,
29918,
13239,
29889,
2272,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29906,
450,
897,
29872,
572,
370,
29906,
13189,
943,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
13,
15945,
29908,
21409,
3619,
19725,
3168,
322,
4413,
363,
5214,
8783,
1213,
15945,
13,
13,
5215,
16250,
13,
5215,
12013,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
349,
6227,
1053,
7084,
13,
3166,
349,
6227,
1053,
7084,
29949,
567,
13,
5215,
26110,
408,
15886,
13,
13,
3166,
316,
29872,
572,
370,
29906,
1053,
3619,
13,
13,
29918,
29925,
2190,
14094,
2965,
29918,
24461,
6670,
29918,
19094,
1299,
353,
525,
1610,
29915,
13,
13,
13,
1753,
1303,
29918,
3027,
29898,
3027,
29918,
1272,
1125,
13,
29871,
9995,
6185,
2631,
1967,
515,
297,
29899,
14834,
848,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1967,
29918,
1272,
29901,
2648,
2167,
848,
15783,
18511,
1967,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
3826,
6797,
349,
6227,
29889,
2940,
1203,
29889,
13,
29871,
9995,
13,
29871,
1967,
353,
7084,
29889,
3150,
29898,
601,
29889,
11207,
5971,
29898,
3027,
29918,
1272,
876,
13,
13,
29871,
1018,
29901,
13,
1678,
1967,
353,
7084,
29949,
567,
29889,
735,
361,
29918,
3286,
4220,
29898,
3027,
29897,
13,
29871,
5174,
20948,
29901,
13,
1678,
396,
10446,
322,
11455,
445,
6494,
29901,
13,
1678,
396,
2045,
597,
3292,
29889,
510,
29914,
4691,
29899,
29886,
453,
340,
29914,
29925,
453,
340,
29914,
12175,
29914,
29941,
29929,
29955,
29941,
13,
1678,
1209,
13,
13,
29871,
736,
1967,
13,
13,
13,
1753,
679,
29918,
3027,
29918,
6229,
29879,
29898,
3027,
29918,
1272,
29892,
1423,
29918,
275,
29918,
23973,
29922,
8824,
1125,
13,
29871,
9995,
6185,
2631,
1967,
322,
736,
967,
3171,
322,
2920,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1967,
29918,
1272,
29901,
2648,
2167,
848,
15783,
18511,
1967,
29889,
13,
1678,
1423,
29918,
275,
29918,
23973,
29901,
26460,
304,
1423,
18511,
1967,
338,
390,
7210,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
3826,
6797,
1967,
2159,
408,
263,
18761,
310,
313,
3545,
29892,
2920,
29897,
13,
13,
29871,
390,
1759,
267,
29901,
13,
1678,
7865,
2392,
29901,
960,
1423,
29918,
275,
29918,
23973,
338,
731,
322,
1881,
1967,
756,
916,
3402,
29889,
13,
29871,
9995,
13,
29871,
1967,
353,
1303,
29918,
3027,
29898,
3027,
29918,
1272,
29897,
13,
13,
29871,
565,
1423,
29918,
275,
29918,
23973,
322,
1967,
29889,
8513,
2804,
525,
28212,
2396,
13,
1678,
12020,
7865,
2392,
877,
1252,
1103,
29879,
390,
7210,
1967,
848,
29892,
4947,
4464,
29901,
1273,
29879,
29915,
1273,
1967,
29889,
8513,
29897,
13,
13,
29871,
2920,
29892,
3171,
353,
1967,
29889,
2311,
13,
29871,
736,
3171,
29892,
2920,
13,
13,
13,
1753,
903,
524,
29953,
29946,
29918,
1761,
29918,
14394,
29898,
5975,
1125,
13,
29871,
9995,
11609,
29879,
263,
323,
29943,
29899,
19132,
310,
938,
29953,
29946,
29918,
1761,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1819,
29901,
319,
17336,
470,
385,
4256,
519,
310,
6043,
1819,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
319,
323,
29943,
29899,
19132,
29889,
13,
29871,
9995,
13,
29871,
565,
451,
338,
8758,
29898,
5975,
29892,
16250,
29889,
13463,
519,
1125,
13,
1678,
1819,
353,
518,
5975,
29962,
13,
13,
29871,
736,
15886,
29889,
14968,
29889,
19132,
29898,
524,
29953,
29946,
29918,
1761,
29922,
13264,
29889,
14968,
29889,
2928,
29953,
29946,
1293,
29898,
1767,
29922,
5975,
876,
13,
13,
13,
1753,
903,
13193,
29918,
1761,
29918,
14394,
29898,
5975,
1125,
13,
29871,
9995,
11609,
29879,
263,
323,
29943,
29899,
19132,
310,
6262,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1819,
29901,
319,
1347,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
319,
323,
29943,
29899,
19132,
29889,
13,
29871,
9995,
13,
29871,
565,
338,
8758,
29898,
5975,
29892,
851,
1125,
13,
1678,
1819,
353,
1819,
29889,
12508,
580,
13,
13,
29871,
736,
15886,
29889,
14968,
29889,
19132,
29898,
13193,
29918,
1761,
29922,
13264,
29889,
14968,
29889,
11207,
1293,
29898,
1767,
11759,
5975,
12622,
13,
13,
13,
1753,
1653,
29918,
22100,
29898,
3027,
29918,
1272,
29892,
13,
462,
1678,
1967,
29918,
4830,
29892,
13,
462,
1678,
10422,
29892,
13,
462,
1678,
3858,
29918,
1272,
29922,
8516,
29892,
13,
462,
1678,
3858,
29918,
4830,
29922,
8516,
1125,
13,
29871,
9995,
9832,
1078,
1967,
29914,
28192,
362,
5680,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1967,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
18511,
1967,
848,
29889,
13,
1678,
1967,
29918,
4830,
29901,
1714,
29892,
1967,
848,
3402,
29892,
881,
367,
2845,
525,
26568,
742,
525,
6173,
742,
470,
13,
418,
525,
2732,
4286,
13,
1678,
10422,
29901,
1714,
29892,
1967,
10422,
29889,
13,
1678,
3858,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
313,
17765,
9247,
29897,
18511,
3858,
848,
29889,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
1678,
3858,
29918,
4830,
29901,
1714,
29892,
3858,
848,
3402,
29892,
881,
367,
2845,
525,
2732,
29915,
470,
525,
1610,
4286,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
319,
8600,
310,
4682,
1024,
304,
15886,
29889,
14968,
29889,
19132,
611,
21430,
29889,
13,
29871,
9995,
13,
29871,
565,
1967,
29918,
4830,
451,
297,
6702,
26568,
742,
525,
2732,
742,
525,
6173,
29374,
13,
1678,
12020,
7865,
2392,
877,
25807,
29884,
3016,
287,
1967,
3402,
29901,
1273,
29879,
29915,
1273,
1967,
29918,
4830,
29897,
13,
13,
29871,
396,
5399,
2927,
4464,
29892,
322,
3588,
18345,
1967,
304,
15552,
29890,
1967,
29889,
13,
29871,
1967,
353,
1303,
29918,
3027,
29898,
3027,
29918,
1272,
29897,
13,
29871,
565,
1967,
29889,
8513,
2804,
525,
28212,
2396,
13,
1678,
1967,
353,
1967,
29889,
13441,
877,
28212,
1495,
13,
1678,
1967,
29918,
1272,
353,
12013,
29889,
11207,
5971,
580,
13,
1678,
1967,
29889,
7620,
29898,
3027,
29918,
1272,
29892,
3402,
29922,
3027,
29918,
4830,
29897,
13,
1678,
1967,
29918,
1272,
353,
1967,
29918,
1272,
29889,
657,
1767,
580,
13,
13,
29871,
3171,
29892,
2920,
353,
679,
29918,
3027,
29918,
6229,
29879,
29898,
3027,
29918,
1272,
29892,
1423,
29918,
275,
29918,
23973,
29922,
5574,
29897,
13,
13,
29871,
4682,
29918,
8977,
353,
426,
13,
418,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
2382,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
3027,
29918,
1272,
511,
13,
418,
3619,
29889,
10818,
29918,
2382,
29918,
7724,
5813,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
9507,
511,
13,
418,
3619,
29889,
10818,
29918,
2382,
29918,
19094,
1299,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
3027,
29918,
4830,
511,
13,
418,
3619,
29889,
10818,
29918,
2382,
29918,
9606,
22530,
29901,
903,
524,
29953,
29946,
29918,
1761,
29918,
14394,
29898,
3545,
511,
13,
418,
3619,
29889,
10818,
29918,
2382,
29918,
22574,
29901,
903,
524,
29953,
29946,
29918,
1761,
29918,
14394,
29898,
2103,
511,
13,
418,
3619,
29889,
10818,
29918,
2382,
29918,
3210,
2190,
29940,
6670,
29903,
29901,
903,
524,
29953,
29946,
29918,
1761,
29918,
14394,
29898,
29941,
511,
13,
29871,
500,
13,
13,
29871,
565,
3858,
29918,
1272,
338,
6213,
29901,
13,
1678,
736,
4682,
29918,
8977,
13,
13,
29871,
565,
3858,
29918,
4830,
1275,
525,
2732,
2396,
13,
1678,
3858,
29918,
3545,
29892,
3858,
29918,
2103,
353,
679,
29918,
3027,
29918,
6229,
29879,
29898,
1643,
29918,
1272,
29897,
13,
1678,
565,
313,
1643,
29918,
3545,
29892,
3858,
29918,
2103,
29897,
2804,
313,
3545,
29892,
2920,
1125,
13,
418,
12020,
7865,
2392,
877,
2940,
313,
29995,
29879,
29897,
322,
3858,
313,
29995,
29879,
29897,
8267,
29635,
29915,
1273,
13,
462,
539,
5135,
3545,
29892,
2920,
511,
313,
1643,
29918,
3545,
29892,
3858,
29918,
2103,
4961,
13,
29871,
25342,
3858,
29918,
4830,
1275,
525,
1610,
2396,
13,
1678,
396,
22038,
3858,
2094,
2631,
938,
29941,
29906,
1409,
29889,
13,
1678,
3806,
29918,
1643,
29918,
2311,
353,
3171,
334,
2920,
334,
7442,
29889,
29881,
1853,
29898,
9302,
29889,
524,
29941,
29906,
467,
667,
2311,
13,
1678,
565,
7431,
29898,
1643,
29918,
1272,
29897,
2804,
3806,
29918,
1643,
29918,
2311,
29901,
13,
418,
12020,
7865,
2392,
877,
1252,
1103,
29879,
10650,
3858,
848,
3309,
1273,
29881,
29892,
4947,
1273,
29881,
29915,
1273,
13,
462,
539,
313,
9684,
29918,
1643,
29918,
2311,
29892,
7431,
29898,
1643,
29918,
1272,
4961,
13,
29871,
1683,
29901,
13,
1678,
12020,
7865,
2392,
877,
25807,
29884,
3016,
287,
3858,
3402,
29901,
1273,
29879,
29915,
1273,
3858,
29918,
4830,
29897,
13,
13,
29871,
4682,
29918,
8977,
29889,
5504,
3319,
13,
418,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
24461,
6670,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
1643,
29918,
1272,
511,
13,
418,
3619,
29889,
10818,
29918,
24461,
6670,
29918,
19094,
1299,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
1643,
29918,
4830,
29897,
13,
29871,
5615,
13,
13,
29871,
736,
4682,
29918,
8977,
13,
13,
13,
1753,
1653,
29918,
13264,
4773,
29898,
3027,
29918,
1272,
29892,
13,
462,
268,
1967,
29918,
4830,
29892,
13,
462,
268,
10422,
29892,
13,
462,
268,
3858,
29918,
1272,
29922,
8516,
29892,
13,
462,
268,
3858,
29918,
4830,
29922,
8516,
1125,
13,
29871,
9995,
1168,
369,
1372,
697,
1967,
29914,
28192,
362,
5101,
304,
323,
29943,
1342,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1967,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
18511,
1967,
848,
29889,
13,
1678,
1967,
29918,
4830,
29901,
1714,
29892,
1967,
848,
3402,
29892,
881,
367,
2845,
525,
26568,
29915,
470,
525,
2732,
4286,
13,
1678,
10422,
29901,
1714,
29892,
1967,
10422,
29889,
13,
1678,
3858,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
313,
17765,
9247,
29897,
18511,
3858,
848,
29889,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
1678,
3858,
29918,
4830,
29901,
1714,
29892,
3858,
848,
3402,
29892,
881,
367,
2845,
525,
2732,
29915,
470,
525,
1610,
4286,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
323,
29943,
1342,
17814,
29889,
13,
29871,
9995,
13,
29871,
4682,
29918,
8977,
353,
1653,
29918,
22100,
29898,
3027,
29918,
1272,
29892,
1967,
29918,
4830,
29892,
10422,
29892,
3858,
29918,
1272,
29892,
13,
462,
462,
3858,
29918,
4830,
29897,
13,
29871,
736,
15886,
29889,
14968,
29889,
14023,
29898,
22100,
29922,
13264,
29889,
14968,
29889,
8263,
3698,
29898,
14394,
29922,
14394,
29918,
8977,
876,
13,
13,
13,
1753,
1653,
29918,
9641,
29918,
13264,
4773,
29898,
3027,
29918,
1272,
29892,
13,
462,
965,
1967,
29918,
4830,
29892,
13,
462,
965,
10422,
29892,
13,
462,
965,
5665,
29918,
333,
29892,
13,
462,
965,
1967,
29918,
333,
29892,
13,
462,
965,
3858,
29918,
1272,
29922,
8516,
29892,
13,
462,
965,
3858,
29918,
4830,
29922,
8516,
29892,
13,
462,
965,
12379,
29918,
3027,
29918,
1272,
29922,
8516,
29892,
13,
462,
965,
12379,
29918,
1643,
29918,
1272,
29922,
8516,
1125,
13,
29871,
9995,
1168,
369,
1372,
697,
4863,
3515,
29914,
29886,
1562,
23000,
10768,
362,
5101,
304,
323,
29943,
1342,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1967,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
18511,
1967,
848,
29889,
13,
1678,
1967,
29918,
4830,
29901,
1714,
29892,
1967,
848,
3402,
29892,
881,
367,
2845,
525,
26568,
29915,
470,
525,
2732,
4286,
13,
1678,
10422,
29901,
1714,
29892,
1967,
10422,
29889,
13,
1678,
5665,
29918,
333,
29901,
3553,
310,
278,
4863,
5665,
408,
263,
1347,
29889,
13,
1678,
1967,
29918,
333,
29901,
3553,
310,
278,
1967,
408,
263,
1347,
29889,
13,
1678,
3858,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
313,
17765,
9247,
29897,
18511,
3858,
848,
29889,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
1678,
3858,
29918,
4830,
29901,
1714,
29892,
3858,
848,
3402,
29892,
881,
367,
2845,
525,
2732,
29915,
470,
525,
1610,
4286,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
1678,
12379,
29918,
3027,
29918,
1272,
29901,
530,
13136,
1347,
470,
7023,
4840,
310,
18511,
3517,
1967,
13,
418,
848,
29889,
13,
1678,
12379,
29918,
1643,
29918,
1272,
29901,
530,
13136,
1347,
470,
7023,
4840,
310,
313,
17765,
9247,
29897,
18511,
13,
418,
3517,
3858,
848,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
323,
29943,
1342,
17814,
29889,
13,
29871,
9995,
13,
29871,
4682,
29918,
8977,
353,
1653,
29918,
22100,
29898,
3027,
29918,
1272,
29892,
1967,
29918,
4830,
29892,
10422,
29892,
3858,
29918,
1272,
29892,
13,
462,
462,
3858,
29918,
4830,
29897,
13,
29871,
4682,
29918,
8977,
29889,
5504,
3319,
13,
418,
3619,
29889,
10818,
29918,
1660,
13356,
1430,
4741,
29918,
1367,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
16506,
29918,
333,
511,
13,
418,
3619,
29889,
10818,
29918,
29943,
4717,
2303,
29918,
1367,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
3027,
29918,
333,
29897,
13,
29871,
5615,
13,
29871,
565,
12379,
29918,
3027,
29918,
1272,
338,
451,
6213,
29901,
13,
1678,
4682,
29918,
8977,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
15094,
29963,
29918,
2382,
29962,
353,
903,
13193,
29918,
1761,
29918,
14394,
29898,
13,
4706,
12379,
29918,
3027,
29918,
1272,
29897,
13,
29871,
565,
12379,
29918,
1643,
29918,
1272,
338,
451,
6213,
29901,
13,
1678,
4682,
29918,
8977,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
15094,
29963,
29918,
24461,
6670,
29962,
353,
903,
13193,
29918,
1761,
29918,
14394,
29898,
13,
4706,
12379,
29918,
1643,
29918,
1272,
29897,
13,
29871,
736,
15886,
29889,
14968,
29889,
14023,
29898,
22100,
29922,
13264,
29889,
14968,
29889,
8263,
3698,
29898,
14394,
29922,
14394,
29918,
8977,
876,
13,
13,
13,
1753,
1653,
29918,
9641,
29918,
392,
29918,
19488,
29918,
13264,
4773,
29898,
3027,
29918,
1272,
29892,
13,
462,
462,
268,
1967,
29918,
4830,
29892,
13,
462,
462,
268,
10422,
29892,
13,
462,
462,
268,
5665,
29918,
333,
29892,
13,
462,
462,
268,
1967,
29918,
333,
29892,
13,
462,
462,
268,
3858,
29918,
1272,
29922,
8516,
29892,
13,
462,
462,
268,
3858,
29918,
4830,
29922,
8516,
29892,
13,
462,
462,
268,
2446,
29918,
3027,
29918,
1272,
29922,
8516,
29892,
13,
462,
462,
268,
2446,
29918,
1643,
29918,
1272,
29922,
8516,
29892,
13,
462,
462,
268,
10809,
29918,
1272,
29922,
8516,
29892,
13,
462,
462,
268,
10809,
29918,
4830,
29922,
8516,
1125,
13,
29871,
9995,
1168,
369,
1372,
385,
1967,
29914,
28192,
362,
5101,
322,
10809,
310,
937,
3515,
304,
323,
29943,
1342,
29889,
13,
13,
1678,
450,
1967,
5101,
3743,
278,
1857,
3515,
322,
278,
2446,
3515,
411,
278,
13,
1678,
1857,
3515,
3704,
10809,
3858,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
1967,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
18511,
1967,
848,
29889,
13,
1678,
1967,
29918,
4830,
29901,
1714,
29892,
1967,
848,
3402,
29892,
881,
367,
2845,
525,
26568,
29915,
470,
525,
2732,
4286,
13,
1678,
10422,
29901,
1714,
29892,
1967,
10422,
29889,
13,
1678,
5665,
29918,
333,
29901,
3553,
310,
278,
4863,
5665,
408,
263,
1347,
29889,
13,
1678,
1967,
29918,
333,
29901,
3553,
310,
278,
1967,
408,
263,
1347,
29889,
13,
1678,
3858,
29918,
1272,
29901,
1714,
470,
7023,
4840,
310,
313,
17765,
9247,
29897,
18511,
3858,
848,
29889,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
1678,
3858,
29918,
4830,
29901,
1714,
29892,
3858,
848,
3402,
29892,
881,
367,
2845,
525,
2732,
29915,
470,
525,
1610,
4286,
960,
13,
418,
6213,
29892,
591,
14383,
304,
2436,
372,
304,
15886,
29889,
14968,
29889,
14023,
29889,
13,
1678,
2446,
29918,
3027,
29918,
1272,
29901,
530,
13136,
1347,
470,
7023,
4840,
310,
18511,
2446,
1967,
13,
418,
848,
29889,
13,
1678,
2446,
29918,
1643,
29918,
1272,
29901,
530,
13136,
1347,
470,
7023,
4840,
310,
313,
17765,
9247,
29897,
18511,
13,
418,
2446,
3858,
848,
29889,
13,
1678,
10809,
29918,
1272,
29901,
530,
13136,
1347,
470,
7023,
269,
1633,
310,
18511,
10809,
848,
29889,
13,
1678,
10809,
29918,
4830,
29901,
1714,
29892,
10809,
848,
3402,
29892,
881,
367,
2845,
525,
2732,
29915,
470,
525,
1610,
4286,
13,
13,
29871,
16969,
29901,
13,
1678,
323,
29943,
1342,
17814,
29889,
13,
29871,
9995,
13,
29871,
4682,
29918,
8977,
353,
1653,
29918,
22100,
29898,
3027,
29918,
1272,
29892,
1967,
29918,
4830,
29892,
10422,
29892,
3858,
29918,
1272,
29892,
13,
462,
462,
3858,
29918,
4830,
29897,
13,
29871,
4682,
29918,
8977,
29889,
5504,
3319,
13,
418,
3619,
29889,
10818,
29918,
1660,
13356,
1430,
4741,
29918,
1367,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
16506,
29918,
333,
511,
13,
418,
3619,
29889,
10818,
29918,
29943,
4717,
2303,
29918,
1367,
29901,
903,
13193,
29918,
1761,
29918,
14394,
29898,
3027,
29918,
333,
29897,
13,
29871,
5615,
13,
29871,
565,
2446,
29918,
3027,
29918,
1272,
338,
451,
6213,
29901,
13,
1678,
4682,
29918,
8977,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
29940,
12194,
29918,
2382,
29962,
353,
903,
13193,
29918,
1761,
29918,
14394,
29898,
13,
4706,
2446,
29918,
3027,
29918,
1272,
29897,
13,
29871,
565,
2446,
29918,
1643,
29918,
1272,
338,
451,
6213,
29901,
13,
1678,
4682,
29918,
8977,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
29940,
12194,
29918,
24461,
6670,
29962,
353,
903,
13193,
29918,
1761,
29918,
14394,
29898,
13,
4706,
2446,
29918,
1643,
29918,
1272,
29897,
13,
29871,
565,
10809,
29918,
1272,
338,
451,
6213,
29901,
13,
1678,
4682,
29918,
8977,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
2287,
29925,
4690,
29962,
353,
903,
13193,
29918,
1761,
29918,
14394,
29898,
13,
4706,
10809,
29918,
1272,
29897,
13,
1678,
4682,
29918,
8977,
29961,
9435,
29889,
10818,
29918,
2287,
29925,
4690,
29918,
19094,
1299,
29962,
353,
903,
13193,
29918,
1761,
29918,
14394,
29898,
13,
4706,
10809,
29918,
4830,
29897,
13,
29871,
736,
15886,
29889,
14968,
29889,
14023,
29898,
22100,
29922,
13264,
29889,
14968,
29889,
8263,
3698,
29898,
14394,
29922,
14394,
29918,
8977,
876,
13,
13,
13,
1990,
6667,
358,
362,
6185,
6119,
29898,
3318,
1125,
13,
29871,
9995,
16616,
13812,
304,
21822,
7797,
1891,
15886,
29889,
14023,
1213,
15945,
13,
13,
29871,
822,
4770,
2344,
12035,
1311,
29892,
13,
1669,
338,
29918,
29886,
1562,
23000,
29918,
24713,
29922,
5574,
29892,
13,
1669,
338,
29918,
9641,
29918,
24713,
29922,
8824,
29892,
13,
1669,
338,
29918,
19488,
29918,
24713,
29922,
8824,
29892,
13,
1669,
671,
29918,
10184,
29918,
19935,
29922,
8824,
29892,
13,
1669,
671,
29918,
4622,
29918,
2557,
29922,
8824,
29892,
13,
1669,
21822,
29918,
2057,
509,
2806,
29918,
1643,
29922,
5574,
1125,
13,
1678,
1583,
3032,
275,
29918,
29886,
1562,
23000,
29918,
24713,
353,
338,
29918,
29886,
1562,
23000,
29918,
24713,
13,
1678,
1583,
3032,
275,
29918,
9641,
29918,
24713,
353,
338,
29918,
9641,
29918,
24713,
13,
1678,
1583,
3032,
275,
29918,
19488,
29918,
24713,
353,
338,
29918,
19488,
29918,
24713,
13,
1678,
1583,
3032,
1509,
29918,
10184,
29918,
19935,
353,
671,
29918,
10184,
29918,
19935,
13,
1678,
1583,
3032,
1509,
29918,
4622,
29918,
2557,
353,
671,
29918,
4622,
29918,
2557,
13,
1678,
1583,
3032,
13808,
29918,
2057,
509,
2806,
29918,
1643,
353,
21822,
29918,
2057,
509,
2806,
29918,
1643,
13,
1678,
1347,
29918,
14394,
353,
15886,
29889,
601,
29889,
26262,
21515,
19132,
29898,
3285,
15886,
29889,
1807,
29897,
13,
1678,
938,
29918,
14394,
353,
15886,
29889,
601,
29889,
26262,
21515,
19132,
29898,
3285,
15886,
29889,
524,
29953,
29946,
29897,
13,
1678,
1583,
3032,
8149,
29918,
517,
29918,
22100,
353,
426,
13,
4706,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
2382,
29901,
1347,
29918,
14394,
29892,
13,
4706,
3619,
29889,
10818,
29918,
2382,
29918,
7724,
5813,
29901,
1347,
29918,
14394,
29892,
13,
4706,
3619,
29889,
10818,
29918,
2382,
29918,
19094,
1299,
29901,
1347,
29918,
14394,
29892,
13,
4706,
3619,
29889,
10818,
29918,
2382,
29918,
9606,
22530,
29901,
938,
29918,
14394,
29892,
13,
4706,
3619,
29889,
10818,
29918,
2382,
29918,
22574,
29901,
938,
29918,
14394,
29892,
13,
4706,
3619,
29889,
10818,
29918,
2382,
29918,
3210,
2190,
29940,
6670,
29903,
29901,
938,
29918,
14394,
29892,
13,
1678,
500,
13,
1678,
565,
21822,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
418,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
24461,
6670,
29962,
353,
1347,
29918,
14394,
13,
1678,
565,
1583,
3032,
275,
29918,
9641,
29918,
24713,
29901,
13,
418,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
1660,
13356,
1430,
4741,
29918,
1367,
29962,
353,
1347,
29918,
14394,
13,
418,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
29943,
4717,
2303,
29918,
1367,
29962,
353,
1347,
29918,
14394,
13,
1678,
396,
7803,
29899,
2557,
2702,
9068,
29889,
13,
1678,
565,
1583,
3032,
1509,
29918,
10184,
29918,
19935,
29901,
13,
418,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
15094,
29963,
29918,
2382,
29962,
353,
1347,
29918,
14394,
13,
418,
565,
21822,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
4706,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
15094,
29963,
29918,
24461,
6670,
29962,
353,
1347,
29918,
14394,
13,
1678,
396,
8084,
29899,
2557,
2702,
9068,
29889,
13,
1678,
565,
1583,
3032,
1509,
29918,
4622,
29918,
2557,
29901,
13,
418,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
29940,
12194,
29918,
2382,
29962,
353,
1347,
29918,
14394,
13,
418,
565,
21822,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
4706,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
29940,
12194,
29918,
24461,
6670,
29962,
353,
1347,
29918,
14394,
13,
1678,
396,
10034,
386,
2702,
9068,
29889,
13,
1678,
565,
1583,
3032,
275,
29918,
19488,
29918,
24713,
322,
21822,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
418,
1583,
3032,
8149,
29918,
517,
29918,
22100,
29961,
9435,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
2287,
29925,
4690,
29962,
353,
1347,
29918,
14394,
13,
13,
29871,
822,
903,
13808,
29918,
3027,
29898,
1311,
29892,
21213,
29918,
29873,
575,
943,
29892,
1820,
1125,
13,
1678,
9995,
6185,
2631,
1967,
11430,
1089,
1820,
515,
21213,
25187,
943,
1213,
15945,
13,
1678,
1967,
353,
15886,
29889,
601,
29889,
13808,
29918,
3027,
29898,
13,
4706,
21213,
29918,
29873,
575,
943,
29961,
1989,
1402,
13,
4706,
18196,
29922,
29941,
29892,
13,
4706,
26688,
29922,
13264,
29889,
29881,
8768,
29889,
13470,
29947,
29892,
13,
4706,
7985,
29918,
11576,
800,
29922,
8824,
29897,
13,
1678,
1967,
29889,
842,
29918,
12181,
4197,
8516,
29892,
6213,
29892,
29871,
29941,
2314,
13,
1678,
736,
1967,
13,
13,
29871,
822,
903,
13808,
29918,
1643,
29898,
1311,
29892,
21213,
29918,
29873,
575,
943,
29892,
3858,
29918,
1989,
1125,
13,
1678,
9995,
6185,
2631,
10768,
362,
3858,
1090,
3858,
29918,
1989,
515,
21213,
25187,
943,
1213,
15945,
13,
1678,
565,
1583,
3032,
275,
29918,
29886,
1562,
23000,
29918,
24713,
29901,
13,
418,
1652,
8606,
287,
29918,
1643,
353,
15886,
29889,
601,
29889,
13808,
29918,
1610,
29898,
13,
3986,
21213,
29918,
29873,
575,
943,
29961,
1643,
29918,
1989,
1402,
714,
29918,
1853,
29922,
13264,
29889,
524,
29941,
29906,
29897,
13,
418,
3858,
29918,
12181,
353,
15886,
29889,
1429,
4197,
13,
3986,
21213,
29918,
29873,
575,
943,
29961,
9435,
29889,
10818,
29918,
2382,
29918,
9606,
22530,
1402,
13,
3986,
21213,
29918,
29873,
575,
943,
29961,
9435,
29889,
10818,
29918,
2382,
29918,
22574,
1402,
29871,
29896,
13,
539,
2314,
13,
418,
3858,
353,
15886,
29889,
690,
14443,
29898,
1579,
8606,
287,
29918,
1643,
29892,
3858,
29918,
12181,
29897,
13,
418,
736,
3858,
13,
13,
1678,
3858,
353,
15886,
29889,
601,
29889,
13808,
29918,
3027,
29898,
862,
8485,
29918,
29873,
575,
943,
29961,
1643,
29918,
1989,
1402,
18196,
29922,
29896,
29897,
13,
1678,
3858,
29889,
842,
29918,
12181,
4197,
8516,
29892,
6213,
29892,
29871,
29896,
2314,
13,
1678,
736,
3858,
13,
13,
29871,
822,
4770,
4804,
12035,
1311,
29892,
7797,
1891,
29918,
4773,
1125,
13,
1678,
21213,
29918,
29873,
575,
943,
353,
15886,
29889,
601,
29889,
5510,
29918,
14369,
29918,
4773,
29898,
13,
4706,
7797,
1891,
29918,
4773,
29892,
5680,
29922,
1311,
3032,
8149,
29918,
517,
29918,
22100,
29897,
13,
1678,
736,
29918,
8977,
353,
426,
13,
4706,
525,
3027,
2396,
13,
9651,
1583,
3032,
13808,
29918,
3027,
29898,
862,
8485,
29918,
29873,
575,
943,
29892,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
2382,
511,
13,
4706,
525,
3027,
29918,
978,
2396,
13,
9651,
21213,
29918,
29873,
575,
943,
29961,
9435,
29889,
10818,
29918,
2382,
29918,
7724,
5813,
1402,
13,
4706,
525,
3545,
2396,
13,
9651,
15886,
29889,
4384,
29898,
862,
8485,
29918,
29873,
575,
943,
29961,
9435,
29889,
10818,
29918,
2382,
29918,
9606,
22530,
1402,
26688,
29922,
13264,
29889,
524,
29941,
29906,
511,
13,
4706,
525,
2103,
2396,
13,
9651,
15886,
29889,
4384,
29898,
862,
8485,
29918,
29873,
575,
943,
29961,
9435,
29889,
10818,
29918,
2382,
29918,
22574,
1402,
26688,
29922,
13264,
29889,
524,
29941,
29906,
511,
13,
1678,
500,
13,
1678,
736,
29918,
8977,
1839,
1643,
2033,
353,
6213,
13,
1678,
565,
1583,
3032,
13808,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
418,
736,
29918,
8977,
1839,
1643,
2033,
353,
1583,
3032,
13808,
29918,
1643,
29898,
862,
8485,
29918,
29873,
575,
943,
29892,
13,
462,
462,
18884,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
24461,
6670,
29897,
13,
1678,
565,
1583,
3032,
275,
29918,
9641,
29918,
24713,
29901,
13,
418,
736,
29918,
8977,
1839,
16506,
2033,
353,
21213,
29918,
29873,
575,
943,
29961,
9435,
29889,
10818,
29918,
1660,
13356,
1430,
4741,
29918,
1367,
29962,
13,
1678,
565,
1583,
3032,
1509,
29918,
10184,
29918,
19935,
29901,
13,
418,
736,
29918,
8977,
1839,
16304,
29918,
3027,
2033,
353,
1583,
3032,
13808,
29918,
3027,
29898,
13,
3986,
21213,
29918,
29873,
575,
943,
29892,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
15094,
29963,
29918,
2382,
29897,
13,
418,
565,
1583,
3032,
13808,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
4706,
736,
29918,
8977,
1839,
16304,
29918,
1643,
2033,
353,
1583,
3032,
13808,
29918,
1643,
29898,
13,
9651,
21213,
29918,
29873,
575,
943,
29892,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
15094,
29963,
29918,
24461,
6670,
29897,
13,
1678,
565,
1583,
3032,
1509,
29918,
4622,
29918,
2557,
29901,
13,
418,
736,
29918,
8977,
1839,
4622,
29918,
3027,
2033,
353,
1583,
3032,
13808,
29918,
3027,
29898,
13,
3986,
21213,
29918,
29873,
575,
943,
29892,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
29940,
12194,
29918,
2382,
29897,
13,
418,
565,
1583,
3032,
13808,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
4706,
736,
29918,
8977,
1839,
4622,
29918,
1643,
2033,
353,
1583,
3032,
13808,
29918,
1643,
29898,
13,
9651,
21213,
29918,
29873,
575,
943,
29892,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
29940,
12194,
29918,
24461,
6670,
29897,
13,
1678,
565,
1583,
3032,
275,
29918,
19488,
29918,
24713,
322,
1583,
3032,
13808,
29918,
2057,
509,
2806,
29918,
1643,
29901,
13,
418,
736,
29918,
8977,
1839,
19488,
2033,
353,
1583,
3032,
13808,
29918,
1643,
29898,
13,
3986,
21213,
29918,
29873,
575,
943,
29892,
3619,
29889,
10818,
29918,
1430,
16524,
29928,
29918,
2287,
29925,
4690,
29897,
13,
1678,
736,
736,
29918,
8977,
13,
2
] |
project/graddetmf.py | felixzheng02/pypkpd | 9 | 185599 | <gh_stars>1-10
"""
## Function translated automatically using 'matlab.to.r()'
## Author: <NAME>, <NAME>
"""
import numpy as np
from project.cell import cell
from project.size import size
from project.zeros import zeros
from project.mftot import mftot
from project.mf_all import mf_all
from project.get_fim_size import get_fim_size
from project.update_designinlist import update_designinlist
def graddetmf(model_switch,aX,groupsize,ni,xt,x,a,bpop,d,sigma,docc,poped_db,lndet=False,gradxt=False):
n = get_fim_size(poped_db)
m = size(ni)[0]
if (gradxt == False):
gdmf = np.ones(m*size(a)[1]).reshape(m, size(a)[1])
else:
gdmf = np.ones(m*size(xt)[1]).reshape(m, size(xt)[1])
iParallelN = (poped_db["settings"]["parallel"]["bParallelSG"] == 1) + 1 #1 if no parallel, 2 if parallel
if iParallelN == 2:
designsin = cell(1,0)
it = 1
for p in range(0, iParallelN):
if p == 2:
#Execute parallel designs
designout = designsin
raise Exception("Parallel execution not yet implemented in PopED for R")
#designout = execute_parallel(designsin,poped_db)
designout = designsin
if iParallelN == 1:
returnArgs = mftot(model_switch,groupsize,ni,xt,x,a,bpop,d,sigma,docc,poped_db)
mft = returnArgs[0]
poped_db = returnArgs[1]
else:
if p == 1:
designsin = update_designinlist(designsin,groupsize,ni,xt,x,a,-1,0)
else:
mft = designout["it"]["FIM"]
it = it + 1
if iParallelN == 1 or p == 2:
if all(size(poped_db["settings"]["prior_fim"]) == size(mft)):
mft = mft + poped_db["settings"]["prior_fim"]
imft = np.linalg.inv(mft)
if np.isinf(imft[1,1]):
imft = zeros(size(mft))
for i in range(0, m):
if groupsize[i] == 0:
gdmf[i, 1:ni[i]] = zeros(1, ni(i))
else:
if x.size != 0:
x_i = np.transpose(x[i,:])
else:
x_i = zeros(0,1)
if a.size != 0:
a_i = np.transpose(a[i,:])
else:
a_i = zeros(0,1)
if iParallelN == 1:
returnArgs = mf_all(np.transpose(model_switch[i,1:ni[i]]), np.transpose(xt[i,1:ni[i]]),x_i,a_i,bpop,d,sigma,docc,poped_db)
mf_tmp = returnArgs[0]
poped_db = returnArgs[1]
else:
if p == 1:
designsin = update_designinlist(designsin, 1, ni, xt, x, a, -1, i)
else:
mf_tmp = designout["it"]["FIM"]
it = it + 1
mfb = groupsize[i]*mf_tmp
a0 = a
xt0 = xt
if gradxt is False:
nCtl = size(poped_db["design"]["a"])[1]
else:
nCtl = ni[i]
for ct1 in range(0, nCtl):
if aX[i,ct1] != 0:
if gradxt == False:
a = a0
a[i,ct1] = a[i,ct1] + poped_db["settings"]["hgd"]
else:
xt = xt0
xt[i,ct1] = xt[i,ct1] + poped_db["settings"]["hgd"]
if iParallelN == 1:
returnArgs = mf_all(np.transpose(model_switch[i,1:ni[i]]), np.transpose(xt[i,1:ni[i]]), x_i, np.transpose(a[i,:]), bpop, d, sigma, docc, poped_db)
mf_tmp = returnArgs[0]
poped_db = returnArgs[1]
else:
if p == 1:
designsin = update_designinlist(designsin, 1, ni, xt, x, a, -1, i)
else:
mf_tmp = designout["it"]["FIM"]
it = it + 1
if iParallelN == 1 or p == 2:
mf_plus = groupsize[i]*mf_tmp
ir = (mf_plus-mfb)/poped_db["settings"]["hgd"]
s = 0 #Calc the tr(A^-1 * dA/dX) for some X
for ct2 in range(0, n):
s = s + np.matmul(imft[ct2,:], ir[:,ct2])
if s == 0: #The model doesn't depend on design variable (a or t), e.g. PD is only dependent on time and not dose, fix the a-gradient to a small value or PD with Placebo dose, fix the xt-gradient to a small value.
s = 1e-12
gdmf[i, ct1] = s
if lndet == False:
ret = gdmf*np.linalg.det(mft)
else:
ret = gdmf
return {"ret": ret, "poped_db": poped_db}
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
2277,
6680,
20512,
6336,
773,
525,
2922,
8205,
29889,
517,
29889,
29878,
580,
29915,
30004,
13,
2277,
13361,
29901,
529,
5813,
10202,
529,
5813,
3238,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
3166,
2060,
29889,
3729,
1053,
3038,
30004,
13,
3166,
2060,
29889,
2311,
1053,
2159,
30004,
13,
3166,
2060,
29889,
3298,
359,
1053,
24786,
30004,
13,
3166,
2060,
29889,
29885,
615,
327,
1053,
286,
615,
327,
30004,
13,
3166,
2060,
29889,
29885,
29888,
29918,
497,
1053,
286,
29888,
29918,
497,
30004,
13,
3166,
2060,
29889,
657,
29918,
29888,
326,
29918,
2311,
1053,
679,
29918,
29888,
326,
29918,
2311,
30004,
13,
3166,
2060,
29889,
5504,
29918,
13892,
262,
1761,
1053,
2767,
29918,
13892,
262,
1761,
30004,
13,
30004,
13,
30004,
13,
1753,
867,
1202,
300,
29885,
29888,
29898,
4299,
29918,
15123,
29892,
29874,
29990,
29892,
13155,
675,
29892,
1240,
29892,
486,
29892,
29916,
29892,
29874,
29892,
29890,
7323,
29892,
29881,
29892,
3754,
29892,
1514,
29883,
29892,
7323,
287,
29918,
2585,
29892,
29880,
299,
300,
29922,
8824,
29892,
5105,
486,
29922,
8824,
1125,
30004,
13,
29871,
6756,
13,
1678,
302,
353,
679,
29918,
29888,
326,
29918,
2311,
29898,
7323,
287,
29918,
2585,
8443,
13,
1678,
286,
353,
2159,
29898,
1240,
9601,
29900,
29962,
30004,
13,
1678,
565,
313,
5105,
486,
1275,
7700,
1125,
30004,
13,
4706,
330,
18933,
29888,
353,
7442,
29889,
2873,
29898,
29885,
29930,
2311,
29898,
29874,
9601,
29896,
14664,
690,
14443,
29898,
29885,
29892,
2159,
29898,
29874,
9601,
29896,
2314,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
330,
18933,
29888,
353,
7442,
29889,
2873,
29898,
29885,
29930,
2311,
29898,
486,
9601,
29896,
14664,
690,
14443,
29898,
29885,
29892,
2159,
29898,
486,
9601,
29896,
2314,
30004,
13,
1678,
6756,
13,
1678,
6756,
13,
1678,
474,
2177,
6553,
29940,
353,
313,
7323,
287,
29918,
2585,
3366,
11027,
3108,
3366,
23482,
3108,
3366,
29890,
2177,
6553,
26016,
3108,
1275,
29871,
29896,
29897,
718,
29871,
29896,
396,
29896,
565,
694,
8943,
29892,
29871,
29906,
565,
8943,
30004,
13,
1678,
6756,
13,
1678,
565,
474,
2177,
6553,
29940,
1275,
29871,
29906,
29901,
30004,
13,
4706,
2874,
5223,
353,
3038,
29898,
29896,
29892,
29900,
8443,
13,
4706,
372,
353,
29871,
29896,
30004,
13,
1678,
6756,
13,
1678,
363,
282,
297,
3464,
29898,
29900,
29892,
474,
2177,
6553,
29940,
1125,
30004,
13,
4706,
565,
282,
1275,
29871,
29906,
29901,
30004,
13,
9651,
396,
12296,
8943,
25517,
30004,
13,
9651,
2874,
449,
353,
2874,
5223,
30004,
13,
9651,
12020,
8960,
703,
2177,
6553,
8225,
451,
3447,
8762,
297,
6977,
3352,
363,
390,
1159,
30004,
13,
9651,
396,
13892,
449,
353,
6222,
29918,
23482,
29898,
13892,
5223,
29892,
7323,
287,
29918,
2585,
8443,
13,
4706,
2874,
449,
353,
2874,
5223,
30004,
13,
30004,
13,
30004,
13,
4706,
565,
474,
2177,
6553,
29940,
1275,
29871,
29896,
29901,
30004,
13,
9651,
736,
7883,
353,
286,
615,
327,
29898,
4299,
29918,
15123,
29892,
13155,
675,
29892,
1240,
29892,
486,
29892,
29916,
29892,
29874,
29892,
29890,
7323,
29892,
29881,
29892,
3754,
29892,
1514,
29883,
29892,
7323,
287,
29918,
2585,
29897,
6756,
13,
9651,
286,
615,
353,
736,
7883,
29961,
29900,
29962,
30004,
13,
9651,
1835,
287,
29918,
2585,
353,
736,
7883,
29961,
29896,
29962,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
565,
282,
1275,
29871,
29896,
29901,
30004,
13,
18884,
2874,
5223,
353,
2767,
29918,
13892,
262,
1761,
29898,
13892,
5223,
29892,
13155,
675,
29892,
1240,
29892,
486,
29892,
29916,
29892,
29874,
6653,
29896,
29892,
29900,
8443,
13,
9651,
1683,
29901,
30004,
13,
18884,
286,
615,
353,
2874,
449,
3366,
277,
3108,
3366,
3738,
29924,
3108,
30004,
13,
18884,
372,
353,
372,
718,
29871,
29896,
30004,
13,
4706,
6756,
13,
4706,
6756,
13,
4706,
565,
474,
2177,
6553,
29940,
1275,
29871,
29896,
470,
282,
1275,
29871,
29906,
29901,
30004,
13,
9651,
565,
599,
29898,
2311,
29898,
7323,
287,
29918,
2585,
3366,
11027,
3108,
3366,
29886,
13479,
29918,
29888,
326,
20068,
1275,
2159,
29898,
29885,
615,
22164,
30004,
13,
18884,
286,
615,
353,
286,
615,
718,
1835,
287,
29918,
2585,
3366,
11027,
3108,
3366,
29886,
13479,
29918,
29888,
326,
3108,
30004,
13,
9651,
6756,
13,
9651,
527,
615,
353,
7442,
29889,
29880,
979,
29887,
29889,
11569,
29898,
29885,
615,
8443,
13,
9651,
565,
7442,
29889,
275,
7192,
29898,
326,
615,
29961,
29896,
29892,
29896,
29962,
1125,
30004,
13,
18884,
527,
615,
353,
24786,
29898,
2311,
29898,
29885,
615,
876,
30004,
13,
9651,
6756,
13,
4706,
363,
474,
297,
3464,
29898,
29900,
29892,
286,
1125,
30004,
13,
9651,
565,
6471,
675,
29961,
29875,
29962,
1275,
29871,
29900,
29901,
30004,
13,
18884,
330,
18933,
29888,
29961,
29875,
29892,
29871,
29896,
29901,
1240,
29961,
29875,
5262,
353,
24786,
29898,
29896,
29892,
6836,
29898,
29875,
876,
30004,
13,
9651,
1683,
29901,
30004,
13,
18884,
565,
921,
29889,
2311,
2804,
29871,
29900,
29901,
30004,
13,
462,
1678,
921,
29918,
29875,
353,
7442,
29889,
3286,
4220,
29898,
29916,
29961,
29875,
29892,
29901,
2314,
30004,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
921,
29918,
29875,
353,
29871,
24786,
29898,
29900,
29892,
29896,
8443,
13,
18884,
6756,
13,
18884,
565,
263,
29889,
2311,
2804,
29871,
29900,
29901,
30004,
13,
462,
1678,
263,
29918,
29875,
353,
7442,
29889,
3286,
4220,
29898,
29874,
29961,
29875,
29892,
29901,
2314,
418,
6756,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
263,
29918,
29875,
353,
29871,
24786,
29898,
29900,
29892,
29896,
8443,
13,
18884,
6756,
13,
18884,
565,
474,
2177,
6553,
29940,
1275,
29871,
29896,
29901,
30004,
13,
462,
1678,
736,
7883,
353,
286,
29888,
29918,
497,
29898,
9302,
29889,
3286,
4220,
29898,
4299,
29918,
15123,
29961,
29875,
29892,
29896,
29901,
1240,
29961,
29875,
5262,
511,
7442,
29889,
3286,
4220,
29898,
486,
29961,
29875,
29892,
29896,
29901,
1240,
29961,
29875,
5262,
511,
29916,
29918,
29875,
29892,
29874,
29918,
29875,
29892,
29890,
7323,
29892,
29881,
29892,
3754,
29892,
1514,
29883,
29892,
7323,
287,
29918,
2585,
29897,
6756,
13,
462,
1678,
286,
29888,
29918,
7050,
353,
736,
7883,
29961,
29900,
29962,
30004,
13,
462,
1678,
1835,
287,
29918,
2585,
353,
736,
7883,
29961,
29896,
29962,
30004,
13,
18884,
1683,
29901,
30004,
13,
462,
1678,
565,
282,
1275,
29871,
29896,
29901,
30004,
13,
462,
4706,
2874,
5223,
353,
2767,
29918,
13892,
262,
1761,
29898,
13892,
5223,
29892,
29871,
29896,
29892,
6836,
29892,
29871,
486,
29892,
921,
29892,
263,
29892,
448,
29896,
29892,
474,
8443,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
4706,
286,
29888,
29918,
7050,
353,
2874,
449,
3366,
277,
3108,
3366,
3738,
29924,
3108,
30004,
13,
462,
4706,
372,
353,
372,
718,
29871,
29896,
30004,
13,
462,
1678,
6756,
13,
9651,
286,
14943,
353,
6471,
675,
29961,
29875,
14178,
29885,
29888,
29918,
7050,
30004,
13,
9651,
6756,
13,
4706,
263,
29900,
353,
263,
30004,
13,
308,
486,
29900,
353,
29871,
486,
30004,
13,
4706,
565,
4656,
486,
338,
7700,
29901,
30004,
13,
9651,
302,
29907,
15206,
353,
2159,
29898,
7323,
287,
29918,
2585,
3366,
13892,
3108,
3366,
29874,
20068,
29961,
29896,
29962,
30004,
13,
4706,
1683,
29901,
30004,
13,
9651,
302,
29907,
15206,
353,
6836,
29961,
29875,
29962,
30004,
13,
9651,
363,
274,
29873,
29896,
297,
3464,
29898,
29900,
29892,
302,
29907,
15206,
1125,
30004,
13,
18884,
565,
263,
29990,
29961,
29875,
29892,
312,
29896,
29962,
2804,
29871,
29900,
29901,
30004,
13,
462,
1678,
565,
4656,
486,
1275,
7700,
29901,
30004,
13,
462,
4706,
263,
353,
263,
29900,
30004,
13,
462,
4706,
263,
29961,
29875,
29892,
312,
29896,
29962,
353,
263,
29961,
29875,
29892,
312,
29896,
29962,
718,
1835,
287,
29918,
2585,
3366,
11027,
3108,
3366,
29882,
29887,
29881,
3108,
30004,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
308,
486,
353,
29871,
486,
29900,
30004,
13,
462,
308,
486,
29961,
29875,
29892,
312,
29896,
29962,
353,
29871,
486,
29961,
29875,
29892,
312,
29896,
29962,
718,
1835,
287,
29918,
2585,
3366,
11027,
3108,
3366,
29882,
29887,
29881,
3108,
30004,
13,
462,
4706,
6756,
13,
462,
1678,
565,
474,
2177,
6553,
29940,
1275,
29871,
29896,
29901,
30004,
13,
462,
4706,
736,
7883,
353,
286,
29888,
29918,
497,
29898,
9302,
29889,
3286,
4220,
29898,
4299,
29918,
15123,
29961,
29875,
29892,
29896,
29901,
1240,
29961,
29875,
5262,
511,
7442,
29889,
3286,
4220,
29898,
486,
29961,
29875,
29892,
29896,
29901,
1240,
29961,
29875,
5262,
511,
921,
29918,
29875,
29892,
7442,
29889,
3286,
4220,
29898,
29874,
29961,
29875,
29892,
29901,
11724,
289,
7323,
29892,
270,
29892,
269,
2934,
29892,
437,
617,
29892,
1835,
287,
29918,
2585,
29897,
6756,
13,
462,
4706,
286,
29888,
29918,
7050,
353,
736,
7883,
29961,
29900,
29962,
30004,
13,
462,
4706,
1835,
287,
29918,
2585,
353,
736,
7883,
29961,
29896,
29962,
30004,
13,
462,
1678,
1683,
29901,
30004,
13,
462,
4706,
565,
282,
1275,
29871,
29896,
29901,
30004,
13,
462,
9651,
2874,
5223,
353,
2767,
29918,
13892,
262,
1761,
29898,
13892,
5223,
29892,
29871,
29896,
29892,
6836,
29892,
29871,
486,
29892,
921,
29892,
263,
29892,
448,
29896,
29892,
474,
8443,
13,
462,
4706,
1683,
29901,
30004,
13,
462,
9651,
286,
29888,
29918,
7050,
353,
2874,
449,
3366,
277,
3108,
3366,
3738,
29924,
3108,
30004,
13,
462,
9651,
372,
353,
372,
718,
29871,
29896,
30004,
13,
462,
4706,
6756,
13,
462,
1678,
565,
474,
2177,
6553,
29940,
1275,
29871,
29896,
470,
282,
1275,
29871,
29906,
29901,
30004,
13,
462,
4706,
286,
29888,
29918,
11242,
353,
6471,
675,
29961,
29875,
14178,
29885,
29888,
29918,
7050,
30004,
13,
462,
4706,
3805,
353,
313,
29885,
29888,
29918,
11242,
29899,
29885,
14943,
6802,
7323,
287,
29918,
2585,
3366,
11027,
3108,
3366,
29882,
29887,
29881,
3108,
30004,
13,
462,
4706,
269,
353,
29871,
29900,
396,
7856,
29883,
278,
534,
29898,
29909,
21583,
29896,
334,
270,
29909,
29914,
29881,
29990,
29897,
363,
777,
1060,
30004,
13,
462,
4706,
363,
274,
29873,
29906,
297,
3464,
29898,
29900,
29892,
302,
1125,
30004,
13,
462,
9651,
269,
353,
269,
718,
7442,
29889,
2922,
16109,
29898,
326,
615,
29961,
312,
29906,
29892,
29901,
1402,
3805,
7503,
29892,
312,
29906,
2314,
30004,
13,
462,
1678,
6756,
13,
462,
4706,
565,
269,
1275,
29871,
29900,
29901,
29871,
396,
1576,
1904,
1838,
29915,
29873,
8839,
373,
2874,
2286,
313,
29874,
470,
260,
511,
321,
29889,
29887,
29889,
349,
29928,
338,
871,
14278,
373,
931,
322,
451,
437,
344,
29892,
2329,
278,
263,
29899,
24970,
304,
263,
2319,
995,
470,
349,
29928,
411,
15484,
833,
437,
344,
29892,
2329,
278,
29871,
486,
29899,
24970,
304,
263,
2319,
995,
22993,
13,
462,
9651,
269,
353,
29871,
29896,
29872,
29899,
29896,
29906,
30004,
13,
462,
1678,
6756,
13,
462,
1678,
330,
18933,
29888,
29961,
29875,
29892,
274,
29873,
29896,
29962,
353,
269,
30004,
13,
462,
1678,
6756,
13,
1678,
565,
301,
299,
300,
1275,
7700,
29901,
30004,
13,
4706,
3240,
353,
330,
18933,
29888,
29930,
9302,
29889,
29880,
979,
29887,
29889,
4801,
29898,
29885,
615,
8443,
13,
1678,
1683,
29901,
30004,
13,
4706,
3240,
353,
330,
18933,
29888,
30004,
13,
30004,
13,
1678,
736,
8853,
2267,
1115,
3240,
29892,
376,
7323,
287,
29918,
2585,
1115,
1835,
287,
29918,
2585,
8117,
13,
30004,
13,
2
] |
main.py | Meat0Project/ChatBot | 4 | 1682 | '''
Made by - <NAME>
Purpose - Python mini project
Date - 18 october 2020
'''
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
form termcolor import cprint
import time
chatbot = ChatBot('Bot')
trainer = ChatterBotCorpusTrainer(chatbot)
trainer.train('chatterbot.corpus.english')
cprint("#" * 50, "magenta")
cprint((f"A Chatot ").center(50), "yellow")
cprint("#" * 50, "magenta")
print('You can exit by type exit\n')
while True:
query = input(">> ")
if 'exit' in query:
exit()
else:
print(chatbot.get_response(query))
| [
1,
14550,
13,
29924,
1943,
491,
448,
529,
5813,
29958,
13,
29925,
332,
4220,
448,
5132,
20629,
2060,
13,
2539,
29871,
448,
29871,
29896,
29947,
4725,
4950,
29871,
29906,
29900,
29906,
29900,
13,
12008,
13,
3166,
521,
2620,
7451,
1053,
678,
271,
29933,
327,
13,
3166,
521,
2620,
7451,
29889,
14968,
414,
1053,
678,
2620,
29933,
327,
12521,
13364,
5323,
4983,
13,
689,
1840,
2780,
1053,
274,
2158,
13,
5215,
931,
13,
13,
13496,
7451,
353,
678,
271,
29933,
327,
877,
29933,
327,
1495,
13,
3018,
4983,
353,
678,
2620,
29933,
327,
12521,
13364,
5323,
4983,
29898,
13496,
7451,
29897,
13,
13,
3018,
4983,
29889,
14968,
877,
305,
2620,
7451,
29889,
2616,
13364,
29889,
996,
1674,
1495,
13,
13,
29883,
2158,
14822,
29908,
334,
29871,
29945,
29900,
29892,
376,
11082,
6381,
1159,
13,
29883,
2158,
3552,
29888,
29908,
29909,
678,
271,
327,
376,
467,
5064,
29898,
29945,
29900,
511,
376,
29136,
1159,
13,
29883,
2158,
14822,
29908,
334,
29871,
29945,
29900,
29892,
376,
11082,
6381,
1159,
13,
2158,
877,
3492,
508,
6876,
491,
1134,
6876,
29905,
29876,
1495,
13,
8000,
5852,
29901,
13,
1678,
2346,
353,
1881,
703,
6778,
16521,
13,
1678,
565,
525,
13322,
29915,
297,
2346,
29901,
13,
4706,
6876,
580,
13,
1678,
1683,
29901,
13,
4706,
1596,
29898,
13496,
7451,
29889,
657,
29918,
5327,
29898,
1972,
876,
13,
2
] |
188.py | RafaelHuang87/Leet-Code-Practice | 0 | 138961 | <filename>188.py
class Solution:
def maxProfit(self, k: int, prices: List[int]) -> int:
n, res = len(prices), 0
if n < 2:
return 0
if k > n // 2:
for i in range(1, n):
if prices[i] > prices[i - 1]:
res += prices[i] - prices[i - 1]
return res
hold, sold = [float('-inf')] * (k + 1), [0] * (k + 1)
for price in prices:
for j in range(1, k + 1):
hold[j] = max(hold[j], sold[j - 1] - price)
sold[j] = max(sold[j], hold[j] + price)
return sold[k]
| [
1,
529,
9507,
29958,
29896,
29947,
29947,
29889,
2272,
13,
1990,
24380,
29901,
13,
1678,
822,
4236,
1184,
9202,
29898,
1311,
29892,
413,
29901,
938,
29892,
26094,
29901,
2391,
29961,
524,
2314,
1599,
938,
29901,
13,
4706,
302,
29892,
620,
353,
7431,
29898,
558,
1575,
511,
29871,
29900,
13,
4706,
565,
302,
529,
29871,
29906,
29901,
13,
9651,
736,
29871,
29900,
13,
4706,
565,
413,
1405,
302,
849,
29871,
29906,
29901,
13,
9651,
363,
474,
297,
3464,
29898,
29896,
29892,
302,
1125,
13,
18884,
565,
26094,
29961,
29875,
29962,
1405,
26094,
29961,
29875,
448,
29871,
29896,
5387,
13,
462,
1678,
620,
4619,
26094,
29961,
29875,
29962,
448,
26094,
29961,
29875,
448,
29871,
29896,
29962,
13,
9651,
736,
620,
13,
13,
4706,
4808,
29892,
5239,
353,
518,
7411,
877,
29899,
7192,
1495,
29962,
334,
313,
29895,
718,
29871,
29896,
511,
518,
29900,
29962,
334,
313,
29895,
718,
29871,
29896,
29897,
13,
4706,
363,
8666,
297,
26094,
29901,
13,
9651,
363,
432,
297,
3464,
29898,
29896,
29892,
413,
718,
29871,
29896,
1125,
13,
18884,
4808,
29961,
29926,
29962,
353,
4236,
29898,
8948,
29961,
29926,
1402,
5239,
29961,
29926,
448,
29871,
29896,
29962,
448,
8666,
29897,
13,
18884,
5239,
29961,
29926,
29962,
353,
4236,
29898,
29879,
1025,
29961,
29926,
1402,
4808,
29961,
29926,
29962,
718,
8666,
29897,
13,
4706,
736,
5239,
29961,
29895,
29962,
13,
2
] |
run_create_ec2_keypair.py | HardBoiledSmith/johanna | 64 | 119448 | <reponame>HardBoiledSmith/johanna<filename>run_create_ec2_keypair.py
#!/usr/bin/env python3
import os
import subprocess
from multiprocessing import Process
env = dict(os.environ)
def read_file(file_path):
f = open(file_path)
lines = list()
for ll in f.readlines():
lines.append(ll)
f.close()
return lines
# noinspection PyShadowingNames
def run(cmd, file_path_name=None, cwd=None):
def _f():
if not file_path_name:
_p = subprocess.Popen(cmd, cwd=cwd, env=env)
_p.communicate()
if _p.returncode != 0:
raise Exception()
else:
with open(file_path_name, 'a') as f:
_p = subprocess.Popen(cmd, stdout=f, cwd=cwd, env=env)
_p.communicate()
if _p.returncode != 0:
raise Exception()
pp = Process(target=_f)
pp.start()
pp.join()
if pp.exitcode != 0:
raise Exception()
def run_create_ec2_keypair(key_name):
cmd = ['rm', '-f']
cmd += [f'{key_name}.pem']
cmd += [f'{key_name}.pub']
run(cmd)
cmd = ['openssl', 'genrsa']
cmd += ['-out', f'{key_name}.pem']
cmd += ['2048']
run(cmd)
print('Private key file:', f'{key_name}.pem', '\n')
run(['chmod', '400', f'{key_name}.pem'])
cmd = ['openssl', 'rsa']
cmd += ['-in', f'{key_name}.pem']
cmd += ['-pubout']
run(cmd, file_path_name=f'{key_name}.pub')
print('Public key file:', f'{key_name}.pub', '\n')
print('AWS_KEY_PAIR_NAME:', key_name, '\n')
pub_key = read_file(f'{key_name}.pub')
pub_key = pub_key[1:-1]
pp_list = list()
for pk in pub_key:
pk = pk.strip()
pp_list.append(pk)
pub_key = ''.join(pp_list)
print('AWS_KEY_PAIR_MATERIAL:', pub_key, '\n')
run(['chmod', '400', f'{key_name}.pub'])
cmd = ['ssh-keygen', '-y']
cmd += ['-f', f'{key_name}.pem']
result, error = subprocess.Popen(cmd, env=env, stdout=subprocess.PIPE).communicate()
# noinspection PyUnresolvedReferences
result = result.decode('utf-8')
print('OpenSSH public key:', result.strip(), '\n')
cmd = ['openssl', 'pkey']
cmd += ['-in', f'{key_name}.pem']
cmd += ['-pubout']
cmd += ['-outform', 'DER']
proc = subprocess.Popen(cmd, env=env, stdout=subprocess.PIPE)
cmd = ['openssl', 'md5', '-c']
result, _ = subprocess.Popen(cmd, env=env, stdin=proc.stdout, stdout=subprocess.PIPE).communicate()
# noinspection PyUnresolvedReferences
result = result.decode('utf-8')
print('OpenSSH finger print:', result)
return pub_key
################################################################################
#
# start
#
################################################################################
if __name__ == "__main__":
from run_common import parse_args
_, args = parse_args()
if len(args) != 2:
print('usage:', args[0], '<key-name>')
raise Exception()
run_create_ec2_keypair(args[1])
| [
1,
529,
276,
1112,
420,
29958,
29950,
538,
8431,
2356,
29209,
29914,
29926,
1148,
9713,
29966,
9507,
29958,
3389,
29918,
3258,
29918,
687,
29906,
29918,
446,
1478,
1466,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
5215,
2897,
13,
5215,
1014,
5014,
13,
3166,
6674,
307,
985,
292,
1053,
10554,
13,
13,
6272,
353,
9657,
29898,
359,
29889,
21813,
29897,
13,
13,
13,
1753,
1303,
29918,
1445,
29898,
1445,
29918,
2084,
1125,
13,
1678,
285,
353,
1722,
29898,
1445,
29918,
2084,
29897,
13,
1678,
3454,
353,
1051,
580,
13,
1678,
363,
11148,
297,
285,
29889,
949,
9012,
7295,
13,
4706,
3454,
29889,
4397,
29898,
645,
29897,
13,
1678,
285,
29889,
5358,
580,
13,
13,
1678,
736,
3454,
13,
13,
13,
29937,
694,
1144,
27988,
10772,
2713,
6986,
292,
8659,
13,
1753,
1065,
29898,
9006,
29892,
934,
29918,
2084,
29918,
978,
29922,
8516,
29892,
274,
9970,
29922,
8516,
1125,
13,
1678,
822,
903,
29888,
7295,
13,
4706,
565,
451,
934,
29918,
2084,
29918,
978,
29901,
13,
9651,
903,
29886,
353,
1014,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
274,
9970,
29922,
29883,
9970,
29892,
8829,
29922,
6272,
29897,
13,
9651,
903,
29886,
29889,
27820,
403,
580,
13,
9651,
565,
903,
29886,
29889,
2457,
401,
2804,
29871,
29900,
29901,
13,
18884,
12020,
8960,
580,
13,
4706,
1683,
29901,
13,
9651,
411,
1722,
29898,
1445,
29918,
2084,
29918,
978,
29892,
525,
29874,
1495,
408,
285,
29901,
13,
18884,
903,
29886,
353,
1014,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
27591,
29922,
29888,
29892,
274,
9970,
29922,
29883,
9970,
29892,
8829,
29922,
6272,
29897,
13,
18884,
903,
29886,
29889,
27820,
403,
580,
13,
18884,
565,
903,
29886,
29889,
2457,
401,
2804,
29871,
29900,
29901,
13,
462,
1678,
12020,
8960,
580,
13,
13,
1678,
6499,
353,
10554,
29898,
5182,
29922,
29918,
29888,
29897,
13,
1678,
6499,
29889,
2962,
580,
13,
1678,
6499,
29889,
7122,
580,
13,
1678,
565,
6499,
29889,
13322,
401,
2804,
29871,
29900,
29901,
13,
4706,
12020,
8960,
580,
13,
13,
13,
1753,
1065,
29918,
3258,
29918,
687,
29906,
29918,
446,
1478,
1466,
29898,
1989,
29918,
978,
1125,
13,
1678,
9920,
353,
6024,
1758,
742,
17411,
29888,
2033,
13,
1678,
9920,
4619,
518,
29888,
29915,
29912,
1989,
29918,
978,
1836,
29886,
331,
2033,
13,
1678,
9920,
4619,
518,
29888,
29915,
29912,
1989,
29918,
978,
1836,
5467,
2033,
13,
1678,
1065,
29898,
9006,
29897,
13,
13,
1678,
9920,
353,
6024,
22156,
2536,
742,
525,
1885,
2288,
29874,
2033,
13,
1678,
9920,
4619,
6024,
29899,
449,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
29886,
331,
2033,
13,
1678,
9920,
4619,
6024,
29906,
29900,
29946,
29947,
2033,
13,
1678,
1065,
29898,
9006,
29897,
13,
13,
1678,
1596,
877,
25207,
1820,
934,
29901,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
29886,
331,
742,
11297,
29876,
1495,
13,
13,
1678,
1065,
18959,
305,
1545,
742,
525,
29946,
29900,
29900,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
29886,
331,
11287,
13,
13,
1678,
9920,
353,
6024,
22156,
2536,
742,
525,
2288,
29874,
2033,
13,
1678,
9920,
4619,
6024,
29899,
262,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
29886,
331,
2033,
13,
1678,
9920,
4619,
6024,
29899,
5467,
449,
2033,
13,
1678,
1065,
29898,
9006,
29892,
934,
29918,
2084,
29918,
978,
29922,
29888,
29915,
29912,
1989,
29918,
978,
1836,
5467,
1495,
13,
13,
1678,
1596,
877,
19858,
1820,
934,
29901,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
5467,
742,
11297,
29876,
1495,
13,
13,
1678,
1596,
877,
29909,
7811,
29918,
10818,
29918,
7228,
8193,
29918,
5813,
29901,
742,
1820,
29918,
978,
29892,
11297,
29876,
1495,
13,
13,
1678,
2529,
29918,
1989,
353,
1303,
29918,
1445,
29898,
29888,
29915,
29912,
1989,
29918,
978,
1836,
5467,
1495,
13,
1678,
2529,
29918,
1989,
353,
2529,
29918,
1989,
29961,
29896,
13018,
29896,
29962,
13,
1678,
6499,
29918,
1761,
353,
1051,
580,
13,
1678,
363,
282,
29895,
297,
2529,
29918,
1989,
29901,
13,
4706,
282,
29895,
353,
282,
29895,
29889,
17010,
580,
13,
4706,
6499,
29918,
1761,
29889,
4397,
29898,
20571,
29897,
13,
1678,
2529,
29918,
1989,
353,
525,
4286,
7122,
29898,
407,
29918,
1761,
29897,
13,
1678,
1596,
877,
29909,
7811,
29918,
10818,
29918,
7228,
8193,
29918,
29924,
1299,
1001,
25758,
29901,
742,
2529,
29918,
1989,
29892,
11297,
29876,
1495,
13,
13,
1678,
1065,
18959,
305,
1545,
742,
525,
29946,
29900,
29900,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
5467,
11287,
13,
13,
1678,
9920,
353,
6024,
15269,
29899,
1989,
1885,
742,
17411,
29891,
2033,
13,
1678,
9920,
4619,
6024,
29899,
29888,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
29886,
331,
2033,
13,
1678,
1121,
29892,
1059,
353,
1014,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
8829,
29922,
6272,
29892,
27591,
29922,
1491,
5014,
29889,
2227,
4162,
467,
27820,
403,
580,
13,
1678,
396,
694,
1144,
27988,
10772,
2525,
9778,
1490,
1123,
10662,
13,
1678,
1121,
353,
1121,
29889,
13808,
877,
9420,
29899,
29947,
1495,
13,
1678,
1596,
877,
6585,
1799,
29950,
970,
1820,
29901,
742,
1121,
29889,
17010,
3285,
11297,
29876,
1495,
13,
13,
1678,
9920,
353,
6024,
22156,
2536,
742,
525,
29886,
1989,
2033,
13,
1678,
9920,
4619,
6024,
29899,
262,
742,
285,
29915,
29912,
1989,
29918,
978,
1836,
29886,
331,
2033,
13,
1678,
9920,
4619,
6024,
29899,
5467,
449,
2033,
13,
1678,
9920,
4619,
6024,
29899,
449,
689,
742,
525,
8032,
2033,
13,
1678,
9580,
353,
1014,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
8829,
29922,
6272,
29892,
27591,
29922,
1491,
5014,
29889,
2227,
4162,
29897,
13,
1678,
9920,
353,
6024,
22156,
2536,
742,
525,
3487,
29945,
742,
17411,
29883,
2033,
13,
1678,
1121,
29892,
903,
353,
1014,
5014,
29889,
29925,
3150,
29898,
9006,
29892,
8829,
29922,
6272,
29892,
3659,
262,
29922,
15439,
29889,
25393,
29892,
27591,
29922,
1491,
5014,
29889,
2227,
4162,
467,
27820,
403,
580,
13,
1678,
396,
694,
1144,
27988,
10772,
2525,
9778,
1490,
1123,
10662,
13,
1678,
1121,
353,
1121,
29889,
13808,
877,
9420,
29899,
29947,
1495,
13,
1678,
1596,
877,
6585,
1799,
29950,
19917,
1596,
29901,
742,
1121,
29897,
13,
13,
1678,
736,
2529,
29918,
1989,
13,
13,
13,
13383,
13383,
13383,
13383,
13383,
13,
29937,
13,
29937,
1369,
13,
29937,
13,
13383,
13383,
13383,
13383,
13383,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
515,
1065,
29918,
9435,
1053,
6088,
29918,
5085,
13,
13,
1678,
17117,
6389,
353,
6088,
29918,
5085,
580,
13,
13,
1678,
565,
7431,
29898,
5085,
29897,
2804,
29871,
29906,
29901,
13,
4706,
1596,
877,
21125,
29901,
742,
6389,
29961,
29900,
1402,
12801,
1989,
29899,
978,
29958,
1495,
13,
4706,
12020,
8960,
580,
13,
13,
1678,
1065,
29918,
3258,
29918,
687,
29906,
29918,
446,
1478,
1466,
29898,
5085,
29961,
29896,
2314,
13,
2
] |
exercises/es/test_04_10.py | mariacamilagl/spacy-course | 0 | 167693 | def test():
assert len(TRAINING_DATA) == 4, "Los datos de entrenamiento no concuerdan – esperaba 4 ejemplos."
assert all(
len(entry) == 2 and isinstance(entry[1], dict) for entry in TRAINING_DATA
), "Formato incorrecto de los datos de entrenamiento. Esperaba una lista de tuples dónde el segundo elemento es un dict."
assert all(
entry[1].get("entities") for entry in TRAINING_DATA
), "Todas las anotaciones en los datos de entrenamiento deberían incluir entidades."
assert TRAINING_DATA[0][1]["entities"] == [
(10, 19, "GPE")
], "Vuelve a revisar las entidades en el primer ejemplo."
assert TRAINING_DATA[1][1]["entities"] == [
(17, 22, "GPE")
], "Vuelve a revisar las entidades en el segundo ejemplo."
assert TRAINING_DATA[2][1]["entities"] == [
(15, 20, "GPE"),
(24, 32, "GPE"),
], "Vuelve a revisar las entidades en el tercer ejemplo."
assert TRAINING_DATA[3][1]["entities"] == [
(0, 6, "GPE")
], "Vuelve a revisar las entidades en el cuarto ejemplo."
__msg__.good(
"¡Muy buen trabajo! Una vez el modelo logra buenos resultados detectando entidades GPE "
"en los comentarios de los viajeros, podrías añadir un componente basado "
"en reglas para determinar si la entidad es un destino turístico en "
"este contexto. Por ejemplo, puedes resolver los tipos de entidades en relación con un knowledge base o "
"buscarlas en un wiki de viajes."
)
| [
1,
822,
1243,
7295,
13,
1678,
4974,
7431,
29898,
29911,
4717,
1177,
4214,
29918,
14573,
29897,
1275,
29871,
29946,
29892,
376,
29286,
18683,
316,
875,
1267,
9993,
694,
3022,
29884,
2018,
273,
785,
17451,
5363,
29871,
29946,
8574,
16305,
359,
1213,
13,
1678,
4974,
599,
29898,
13,
4706,
7431,
29898,
8269,
29897,
1275,
29871,
29906,
322,
338,
8758,
29898,
8269,
29961,
29896,
1402,
9657,
29897,
363,
6251,
297,
323,
4717,
1177,
4214,
29918,
14573,
13,
1678,
10353,
376,
2500,
1219,
10240,
29877,
316,
1232,
18683,
316,
875,
1267,
9993,
29889,
3423,
546,
5363,
1185,
15023,
316,
5291,
2701,
270,
29980,
17720,
560,
14729,
1543,
29877,
831,
443,
9657,
1213,
13,
1678,
4974,
599,
29898,
13,
4706,
6251,
29961,
29896,
1822,
657,
703,
296,
1907,
1159,
363,
6251,
297,
323,
4717,
1177,
4214,
29918,
14573,
13,
1678,
10353,
376,
29911,
397,
294,
1869,
385,
327,
6027,
427,
1232,
18683,
316,
875,
1267,
9993,
316,
495,
8202,
13654,
381,
875,
7305,
1213,
13,
1678,
4974,
323,
4717,
1177,
4214,
29918,
14573,
29961,
29900,
3816,
29896,
29962,
3366,
296,
1907,
3108,
1275,
518,
13,
4706,
313,
29896,
29900,
29892,
29871,
29896,
29929,
29892,
376,
29954,
4162,
1159,
13,
1678,
21251,
376,
29963,
2491,
345,
263,
23484,
279,
1869,
875,
7305,
427,
560,
7130,
20270,
1213,
13,
1678,
4974,
323,
4717,
1177,
4214,
29918,
14573,
29961,
29896,
3816,
29896,
29962,
3366,
296,
1907,
3108,
1275,
518,
13,
4706,
313,
29896,
29955,
29892,
29871,
29906,
29906,
29892,
376,
29954,
4162,
1159,
13,
1678,
21251,
376,
29963,
2491,
345,
263,
23484,
279,
1869,
875,
7305,
427,
560,
14729,
20270,
1213,
13,
1678,
4974,
323,
4717,
1177,
4214,
29918,
14573,
29961,
29906,
3816,
29896,
29962,
3366,
296,
1907,
3108,
1275,
518,
13,
4706,
313,
29896,
29945,
29892,
29871,
29906,
29900,
29892,
376,
29954,
4162,
4968,
13,
4706,
313,
29906,
29946,
29892,
29871,
29941,
29906,
29892,
376,
29954,
4162,
4968,
13,
1678,
21251,
376,
29963,
2491,
345,
263,
23484,
279,
1869,
875,
7305,
427,
560,
1935,
2265,
20270,
1213,
13,
1678,
4974,
323,
4717,
1177,
4214,
29918,
14573,
29961,
29941,
3816,
29896,
29962,
3366,
296,
1907,
3108,
1275,
518,
13,
4706,
313,
29900,
29892,
29871,
29953,
29892,
376,
29954,
4162,
1159,
13,
1678,
21251,
376,
29963,
2491,
345,
263,
23484,
279,
1869,
875,
7305,
427,
560,
2723,
22171,
20270,
1213,
13,
13,
1678,
4770,
7645,
26914,
16773,
29898,
13,
4706,
376,
30180,
29924,
8631,
1321,
264,
21844,
29991,
29871,
12127,
7763,
560,
29472,
1480,
336,
1321,
264,
359,
1121,
2255,
6459,
1743,
875,
7305,
402,
4162,
376,
13,
4706,
376,
264,
1232,
419,
296,
8596,
316,
1232,
3025,
6846,
359,
29892,
2532,
29878,
8577,
4503,
328,
381,
443,
2964,
2016,
2362,
912,
376,
13,
4706,
376,
264,
1072,
3333,
1702,
11806,
279,
1354,
425,
875,
2368,
831,
443,
2731,
1789,
7013,
6141,
1417,
427,
376,
13,
4706,
376,
4196,
3030,
29877,
29889,
7102,
20270,
29892,
2653,
11696,
3770,
369,
1232,
6872,
359,
316,
875,
7305,
427,
10208,
1290,
378,
443,
7134,
2967,
288,
376,
13,
4706,
376,
8262,
4287,
3333,
427,
443,
281,
10058,
316,
3025,
10246,
1213,
13,
1678,
1723,
13,
2
] |
python_fundamentals/lists_basics_exs/football_cards.py | deboradyankova/python_education | 0 | 1605434 | <gh_stars>0
team_a_players = 11
team_b_players = 11
cards_list = set(input().split())
is_terminated = False
for player in cards_list:
if player.startswith('A'):
team_a_players -= 1
else:
team_b_players -= 1
if team_a_players < 7 or team_b_players < 7:
is_terminated = True
break
print(f'Team A - {team_a_players}; Team B - {team_b_players}')
if is_terminated:
print('Game was terminated') | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
14318,
29918,
29874,
29918,
1456,
414,
353,
29871,
29896,
29896,
30004,
13,
14318,
29918,
29890,
29918,
1456,
414,
353,
29871,
29896,
29896,
30004,
13,
30004,
13,
28160,
29918,
1761,
353,
731,
29898,
2080,
2141,
5451,
3101,
30004,
13,
30004,
13,
275,
29918,
18821,
630,
353,
7700,
30004,
13,
30004,
13,
1454,
4847,
297,
15889,
29918,
1761,
29901,
30004,
13,
1678,
565,
4847,
29889,
27382,
2541,
877,
29909,
29374,
30004,
13,
4706,
3815,
29918,
29874,
29918,
1456,
414,
22361,
29871,
29896,
30004,
13,
1678,
1683,
29901,
30004,
13,
4706,
3815,
29918,
29890,
29918,
1456,
414,
22361,
29871,
29896,
30004,
13,
30004,
13,
1678,
565,
3815,
29918,
29874,
29918,
1456,
414,
529,
29871,
29955,
470,
3815,
29918,
29890,
29918,
1456,
414,
529,
29871,
29955,
29901,
30004,
13,
4706,
338,
29918,
18821,
630,
353,
5852,
30004,
13,
4706,
2867,
30004,
13,
30004,
13,
2158,
29898,
29888,
29915,
19409,
319,
448,
426,
14318,
29918,
29874,
29918,
1456,
414,
3400,
8583,
350,
448,
426,
14318,
29918,
29890,
29918,
1456,
414,
29913,
1495,
30004,
13,
361,
338,
29918,
18821,
630,
29901,
30004,
13,
1678,
1596,
877,
14199,
471,
29185,
1495,
2
] |
modules/image/image_processing/prnet/utils/rotate_vertices.py | AK391/PaddleHub | 1 | 132611 | # Copyright (c) 2021 PaddlePaddle 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.
import numpy as np
# import scipy.io as
def frontalize(vertices):
canonical_vertices = np.load('Data/uv-data/canonical_vertices.npy')
vertices_homo = np.hstack((vertices, np.ones([vertices.shape[0], 1]))) #n x 4
P = np.linalg.lstsq(vertices_homo, canonical_vertices)[0].T # Affine matrix. 3 x 4
front_vertices = vertices_homo.dot(P.T)
return front_vertices
| [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
349,
22352,
29925,
22352,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
5215,
12655,
408,
7442,
13,
13,
13,
29937,
1053,
4560,
2272,
29889,
601,
408,
13,
1753,
4565,
284,
675,
29898,
1765,
1575,
1125,
13,
1678,
24420,
29918,
1765,
1575,
353,
7442,
29889,
1359,
877,
1469,
29914,
4090,
29899,
1272,
29914,
3068,
265,
936,
29918,
1765,
1575,
29889,
29876,
2272,
1495,
13,
13,
1678,
13791,
29918,
9706,
29877,
353,
7442,
29889,
29882,
1429,
3552,
1765,
1575,
29892,
7442,
29889,
2873,
4197,
1765,
1575,
29889,
12181,
29961,
29900,
1402,
29871,
29896,
29962,
4961,
29871,
396,
29876,
921,
29871,
29946,
13,
1678,
349,
353,
7442,
29889,
29880,
979,
29887,
29889,
20155,
3044,
29898,
1765,
1575,
29918,
9706,
29877,
29892,
24420,
29918,
1765,
1575,
9601,
29900,
1822,
29911,
29871,
396,
13737,
457,
4636,
29889,
29871,
29941,
921,
29871,
29946,
13,
1678,
4565,
29918,
1765,
1575,
353,
13791,
29918,
9706,
29877,
29889,
6333,
29898,
29925,
29889,
29911,
29897,
13,
13,
1678,
736,
4565,
29918,
1765,
1575,
13,
2
] |
src/ethogram.py | dstern/SongExplorer | 5 | 1602902 | <reponame>dstern/SongExplorer
#!/usr/bin/python3
# apply per-class thresholds to discretize probabilities
# ethogram.py <logdir> <model> <thresholds-file> <tf-file> <wav-tic-rate>
# e.g.
# ethogram.py `pwd`/trained-classifier 1k 50 `pwd`/groundtruth-data/round1/20161207T102314_ch1_p1.tf 5000
import sys
import os
import re
import numpy as np
import csv
from sys import argv
from scipy.io import wavfile
from itertools import cycle
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from lib import *
_,logdir,model,thresholds_file,tf_file,audio_tic_rate = argv
print('logdir: '+logdir)
print('model: '+model)
print('thresholds_file: '+thresholds_file)
print('tf_file: '+tf_file)
print('audio_tic_rate: '+audio_tic_rate)
audio_tic_rate=float(audio_tic_rate)
tfpath, tfname = os.path.split(tf_file)
tfname_noext = os.path.splitext(tfname)[0]
if os.path.isfile(os.path.join(tfpath,tfname_noext+'.wav')):
wavname = tfname_noext+'.wav'
elif os.path.isfile(os.path.join(tfpath,tfname_noext+'.WAV')):
wavname = tfname_noext+'.WAV'
else:
print('cannot find corresponding WAV file')
exit()
precision_recall_ratios, thresholds = read_thresholds(logdir, model, thresholds_file)
labels = [x[0] for x in thresholds]
thresholds = np.array([x[1:] for x in thresholds], dtype=np.float64)
sample_rate_probabilities, half_stride_sec, probability_matrix = \
read_probabilities(os.path.join(tfpath, tfname_noext), labels)
for ithreshold in range(len(precision_recall_ratios)):
features, start_tics, stop_tics = discretize_probabilites(probability_matrix,
thresholds[:,[ithreshold]],
labels,
sample_rate_probabilities,
half_stride_sec,
audio_tic_rate)
filename = os.path.join(tfpath,
tfname_noext+'-predicted-'+precision_recall_ratios[ithreshold]+'pr.csv')
isort = np.argsort(start_tics)
with open(filename,'w') as fid:
csvwriter = csv.writer(fid)
csvwriter.writerows(zip(cycle([wavname]), \
start_tics[isort], stop_tics[isort], \
cycle(['predicted']),
features[isort]))
| [
1,
529,
276,
1112,
420,
29958,
22992,
824,
29914,
29903,
549,
1252,
14716,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
29941,
13,
13,
29937,
3394,
639,
29899,
1990,
266,
3781,
3361,
304,
766,
4838,
675,
2070,
11614,
13,
29871,
13,
29937,
11314,
13342,
29889,
2272,
529,
1188,
3972,
29958,
529,
4299,
29958,
529,
386,
3781,
3361,
29899,
1445,
29958,
529,
13264,
29899,
1445,
29958,
529,
29893,
485,
29899,
29873,
293,
29899,
10492,
29958,
13,
13,
29937,
321,
29889,
29887,
29889,
13,
29937,
11314,
13342,
29889,
2272,
421,
29886,
9970,
29952,
29914,
3018,
1312,
29899,
1990,
3709,
29871,
29896,
29895,
29871,
29945,
29900,
421,
29886,
9970,
29952,
29914,
2057,
509,
2806,
29899,
1272,
29914,
14486,
29896,
29914,
29906,
29900,
29896,
29953,
29896,
29906,
29900,
29955,
29911,
29896,
29900,
29906,
29941,
29896,
29946,
29918,
305,
29896,
29918,
29886,
29896,
29889,
13264,
29871,
29945,
29900,
29900,
29900,
13,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
337,
13,
5215,
12655,
408,
7442,
13,
5215,
11799,
13,
3166,
10876,
1053,
1852,
29894,
13,
3166,
4560,
2272,
29889,
601,
1053,
281,
485,
1445,
13,
3166,
4256,
8504,
1053,
11412,
13,
13,
9675,
29889,
2084,
29889,
4397,
29898,
359,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
6370,
2084,
22168,
1445,
1649,
4961,
13,
3166,
4303,
1053,
334,
13,
13,
3383,
1188,
3972,
29892,
4299,
29892,
386,
3781,
3361,
29918,
1445,
29892,
13264,
29918,
1445,
29892,
18494,
29918,
29873,
293,
29918,
10492,
353,
1852,
29894,
13,
2158,
877,
1188,
3972,
29901,
525,
29974,
1188,
3972,
29897,
13,
2158,
877,
4299,
29901,
525,
29974,
4299,
29897,
13,
2158,
877,
386,
3781,
3361,
29918,
1445,
29901,
525,
29974,
386,
3781,
3361,
29918,
1445,
29897,
13,
2158,
877,
13264,
29918,
1445,
29901,
525,
29974,
13264,
29918,
1445,
29897,
13,
2158,
877,
18494,
29918,
29873,
293,
29918,
10492,
29901,
525,
29974,
18494,
29918,
29873,
293,
29918,
10492,
29897,
13,
18494,
29918,
29873,
293,
29918,
10492,
29922,
7411,
29898,
18494,
29918,
29873,
293,
29918,
10492,
29897,
13,
13,
13264,
2084,
29892,
15886,
978,
353,
2897,
29889,
2084,
29889,
5451,
29898,
13264,
29918,
1445,
29897,
13,
13264,
978,
29918,
1217,
1062,
353,
2897,
29889,
2084,
29889,
23579,
568,
486,
29898,
13264,
978,
9601,
29900,
29962,
13,
361,
2897,
29889,
2084,
29889,
275,
1445,
29898,
359,
29889,
2084,
29889,
7122,
29898,
13264,
2084,
29892,
13264,
978,
29918,
1217,
1062,
29974,
4286,
29893,
485,
8785,
29901,
13,
29871,
281,
485,
978,
353,
15886,
978,
29918,
1217,
1062,
29974,
4286,
29893,
485,
29915,
13,
23681,
2897,
29889,
2084,
29889,
275,
1445,
29898,
359,
29889,
2084,
29889,
7122,
29898,
13264,
2084,
29892,
13264,
978,
29918,
1217,
1062,
29974,
4286,
29956,
7520,
8785,
29901,
13,
29871,
281,
485,
978,
353,
15886,
978,
29918,
1217,
1062,
29974,
4286,
29956,
7520,
29915,
13,
2870,
29901,
13,
29871,
1596,
877,
29883,
6735,
1284,
6590,
399,
7520,
934,
1495,
13,
29871,
6876,
580,
13,
13,
17990,
2459,
29918,
3757,
497,
29918,
29878,
2219,
359,
29892,
266,
3781,
3361,
353,
1303,
29918,
386,
3781,
3361,
29898,
1188,
3972,
29892,
1904,
29892,
266,
3781,
3361,
29918,
1445,
29897,
13,
13,
21134,
353,
518,
29916,
29961,
29900,
29962,
363,
921,
297,
266,
3781,
3361,
29962,
13,
386,
3781,
3361,
353,
7442,
29889,
2378,
4197,
29916,
29961,
29896,
17531,
363,
921,
297,
266,
3781,
3361,
1402,
26688,
29922,
9302,
29889,
7411,
29953,
29946,
29897,
13,
13,
11249,
29918,
10492,
29918,
22795,
11614,
29892,
4203,
29918,
303,
2426,
29918,
3471,
29892,
6976,
29918,
5344,
353,
320,
13,
418,
1303,
29918,
22795,
11614,
29898,
359,
29889,
2084,
29889,
7122,
29898,
13264,
2084,
29892,
15886,
978,
29918,
1217,
1062,
511,
11073,
29897,
13,
13,
1454,
372,
29882,
12268,
297,
3464,
29898,
2435,
29898,
17990,
2459,
29918,
3757,
497,
29918,
29878,
2219,
359,
22164,
13,
29871,
5680,
29892,
1369,
29918,
29873,
1199,
29892,
5040,
29918,
29873,
1199,
353,
766,
4838,
675,
29918,
22795,
4427,
3246,
29898,
22795,
3097,
29918,
5344,
29892,
13,
462,
462,
462,
9651,
266,
3781,
3361,
7503,
17094,
389,
12268,
20526,
13,
462,
462,
462,
9651,
11073,
29892,
13,
462,
462,
462,
9651,
4559,
29918,
10492,
29918,
22795,
11614,
29892,
13,
462,
462,
462,
9651,
4203,
29918,
303,
2426,
29918,
3471,
29892,
13,
462,
462,
462,
9651,
10348,
29918,
29873,
293,
29918,
10492,
29897,
13,
29871,
10422,
353,
2897,
29889,
2084,
29889,
7122,
29898,
13264,
2084,
29892,
13,
462,
3986,
15886,
978,
29918,
1217,
1062,
23097,
29899,
11965,
18186,
29899,
18717,
17990,
2459,
29918,
3757,
497,
29918,
29878,
2219,
359,
29961,
389,
12268,
10062,
29915,
558,
29889,
7638,
1495,
13,
29871,
338,
441,
353,
7442,
29889,
5085,
441,
29898,
2962,
29918,
29873,
1199,
29897,
13,
29871,
411,
1722,
29898,
9507,
5501,
29893,
1495,
408,
25947,
29901,
13,
1678,
11799,
13236,
353,
11799,
29889,
13236,
29898,
29888,
333,
29897,
13,
1678,
11799,
13236,
29889,
13236,
1242,
29898,
7554,
29898,
23090,
4197,
29893,
485,
978,
11724,
320,
13,
462,
9651,
1369,
29918,
29873,
1199,
29961,
275,
441,
1402,
5040,
29918,
29873,
1199,
29961,
275,
441,
1402,
320,
13,
462,
9651,
11412,
18959,
11965,
18186,
2033,
511,
13,
462,
9651,
5680,
29961,
275,
441,
12622,
13,
2
] |
tests/test_script.py | sharad28/Tensile_-_compressive_strength | 1 | 1611631 | import unittest
from main import app
import os
class TestToPerform(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
def tearDown(self):
pass
def test_page(self):
response = self.app.get('/', follow_redirects=True)
print(response)
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main() | [
1,
1053,
443,
27958,
13,
13,
3166,
1667,
1053,
623,
13,
5215,
2897,
13,
13,
13,
1990,
4321,
1762,
5894,
689,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
932,
353,
623,
29889,
1688,
29918,
4645,
580,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1209,
13,
13,
1678,
822,
1243,
29918,
3488,
29898,
1311,
1125,
13,
4706,
2933,
353,
1583,
29889,
932,
29889,
657,
11219,
742,
1101,
29918,
17886,
29879,
29922,
5574,
29897,
13,
4706,
1596,
29898,
5327,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
5327,
29889,
4882,
29918,
401,
29892,
29871,
29906,
29900,
29900,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
443,
27958,
29889,
3396,
580,
2
] |
ad2/aula_09/leitura_com_close.py | renzon/fundamentos-de-programacao | 6 | 138559 | <gh_stars>1-10
arquivo = open('exemplo.txt', 'r', encoding='utf8')
for linha in arquivo:
print(linha.strip())
arquivo.close()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
19862,
4243,
353,
1722,
877,
735,
13141,
29889,
3945,
742,
525,
29878,
742,
8025,
2433,
9420,
29947,
1495,
13,
13,
1454,
6276,
2350,
297,
19325,
4243,
29901,
13,
1678,
1596,
29898,
1915,
2350,
29889,
17010,
3101,
13,
13,
19862,
4243,
29889,
5358,
580,
13,
2
] |
bin/analyze_path.py | sjtuzyk/chandra-acis-analysis | 3 | 104108 | <reponame>sjtuzyk/chandra-acis-analysis
#!/usr/bin/env python3
#
# Copyright (c) 2017-2018 <NAME> <<EMAIL>>
# MIT license
#
"""
Extract the object name and observation ID from the directory path.
The base directory of the object data has the format: <name>_oi<obsid>
"""
import os
import argparse
from _context import acispy
from acispy.utils import get_name_from_path, get_obsid_from_path
def main():
parser = argparse.ArgumentParser(
description="Extract object name and ObsID from data directory")
parser.add_argument("-b", "--brief", dest="brief",
action="store_true", help="Be brief")
parser.add_argument("-n", "--name", dest="name",
action="store_true", help="Only get object name")
parser.add_argument("-i", "--obsid", dest="obsid",
action="store_true", help="Only get observation ID")
parser.add_argument("path", nargs="?", default=os.getcwd(),
help="Path to the data directory " +
"(default: current working directory)")
args = parser.parse_args()
path = os.path.abspath(args.path)
b_get_name = False if args.obsid else True
b_get_obsid = False if args.name else True
if b_get_name:
if not args.brief:
print("Name:", end=" ")
print(get_name_from_path(path))
if b_get_obsid:
if not args.brief:
print("ObsID:", end=" ")
print(get_obsid_from_path(path))
if __name__ == "__main__":
main()
| [
1,
529,
276,
1112,
420,
29958,
29879,
29926,
9161,
20973,
29914,
305,
10738,
29899,
562,
275,
29899,
15916,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29955,
29899,
29906,
29900,
29896,
29947,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
341,
1806,
19405,
13,
29937,
13,
13,
15945,
29908,
13,
5647,
1461,
278,
1203,
1024,
322,
15500,
3553,
515,
278,
3884,
2224,
29889,
13,
13,
1576,
2967,
3884,
310,
278,
1203,
848,
756,
278,
3402,
29901,
529,
978,
29958,
29918,
7768,
29966,
26290,
333,
29958,
13,
15945,
29908,
13,
13,
5215,
2897,
13,
5215,
1852,
5510,
13,
13,
3166,
903,
4703,
1053,
1274,
275,
2272,
13,
3166,
1274,
275,
2272,
29889,
13239,
1053,
679,
29918,
978,
29918,
3166,
29918,
2084,
29892,
679,
29918,
26290,
333,
29918,
3166,
29918,
2084,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
6139,
543,
5647,
1461,
1203,
1024,
322,
4250,
29879,
1367,
515,
848,
3884,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
29899,
29890,
613,
376,
489,
1182,
2575,
613,
2731,
543,
1182,
2575,
613,
13,
462,
4706,
3158,
543,
8899,
29918,
3009,
613,
1371,
543,
3629,
11473,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
29899,
29876,
613,
376,
489,
978,
613,
2731,
543,
978,
613,
13,
462,
4706,
3158,
543,
8899,
29918,
3009,
613,
1371,
543,
11730,
679,
1203,
1024,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
29899,
29875,
613,
376,
489,
26290,
333,
613,
2731,
543,
26290,
333,
613,
13,
462,
4706,
3158,
543,
8899,
29918,
3009,
613,
1371,
543,
11730,
679,
15500,
3553,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
2084,
613,
302,
5085,
543,
29973,
613,
2322,
29922,
359,
29889,
657,
29883,
9970,
3285,
13,
462,
4706,
1371,
543,
2605,
304,
278,
848,
3884,
376,
718,
13,
462,
4706,
18227,
4381,
29901,
1857,
1985,
3884,
25760,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
2224,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
5085,
29889,
2084,
29897,
13,
13,
1678,
289,
29918,
657,
29918,
978,
353,
7700,
565,
6389,
29889,
26290,
333,
1683,
5852,
13,
1678,
289,
29918,
657,
29918,
26290,
333,
353,
7700,
565,
6389,
29889,
978,
1683,
5852,
13,
13,
1678,
565,
289,
29918,
657,
29918,
978,
29901,
13,
4706,
565,
451,
6389,
29889,
1182,
2575,
29901,
13,
9651,
1596,
703,
1170,
29901,
613,
1095,
543,
16521,
13,
4706,
1596,
29898,
657,
29918,
978,
29918,
3166,
29918,
2084,
29898,
2084,
876,
13,
1678,
565,
289,
29918,
657,
29918,
26290,
333,
29901,
13,
4706,
565,
451,
6389,
29889,
1182,
2575,
29901,
13,
9651,
1596,
703,
29949,
5824,
1367,
29901,
613,
1095,
543,
16521,
13,
4706,
1596,
29898,
657,
29918,
26290,
333,
29918,
3166,
29918,
2084,
29898,
2084,
876,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1667,
580,
13,
2
] |
Collection_Resources/Email_Integration.py | data4d/Data_Collect | 0 | 199085 | <reponame>data4d/Data_Collect
# Email Integration for Notifications
import sys
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
## Import Passwords - Importing Passwords from a file stored elsewhere on my computer
# sys.path.append('C:/Users/GTayl/Desktop/Finance Modeling')
# from passwords import Gmail as pwd
def send_mail(fromaddr,toaddr,password,subject,text):
fromaddr = fromaddr
toaddr = toaddr
msg = MIMEMultipart()
msg['From'] = fromaddr
msg['To'] = toaddr
msg['Subject'] = subject
body = text
msg.attach(MIMEText(body, 'plain'))
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login(fromaddr, password)
text = msg.as_string()
server.sendmail(fromaddr, toaddr, text)
server.quit() | [
1,
529,
276,
1112,
420,
29958,
1272,
29946,
29881,
29914,
1469,
29918,
28916,
13,
396,
22608,
17100,
362,
363,
2216,
8232,
13,
13,
5215,
10876,
13,
5215,
1560,
9392,
1982,
13,
3166,
4876,
29889,
29885,
603,
29889,
726,
1053,
341,
8890,
1626,
13,
3166,
4876,
29889,
29885,
603,
29889,
18056,
442,
1053,
341,
8890,
6857,
27494,
13,
29871,
13,
2277,
16032,
6978,
9303,
448,
16032,
292,
6978,
9303,
515,
263,
934,
6087,
17551,
373,
590,
6601,
13,
29937,
10876,
29889,
2084,
29889,
4397,
877,
29907,
8419,
5959,
29914,
23799,
388,
29880,
29914,
17600,
29914,
12881,
749,
8125,
292,
1495,
13,
29937,
515,
27630,
1053,
402,
2549,
408,
282,
9970,
13,
13,
1753,
3638,
29918,
2549,
29898,
3166,
10030,
29892,
517,
10030,
29892,
5630,
29892,
16009,
29892,
726,
1125,
13,
268,
13,
1678,
515,
10030,
353,
515,
10030,
13,
1678,
304,
10030,
353,
304,
10030,
13,
1678,
10191,
353,
341,
8890,
6857,
27494,
580,
13,
1678,
10191,
1839,
4591,
2033,
353,
515,
10030,
13,
1678,
10191,
1839,
1762,
2033,
353,
304,
10030,
13,
1678,
10191,
1839,
20622,
2033,
353,
4967,
13,
13,
1678,
3573,
353,
1426,
13,
1678,
10191,
29889,
14930,
29898,
29924,
8890,
1626,
29898,
2587,
29892,
525,
24595,
8785,
13,
13,
1678,
1923,
353,
1560,
9392,
1982,
29889,
17061,
3557,
877,
3844,
9392,
29889,
21980,
29889,
510,
742,
29871,
29945,
29947,
29955,
29897,
13,
1678,
1923,
29889,
2962,
29873,
3137,
580,
13,
1678,
1923,
29889,
7507,
29898,
3166,
10030,
29892,
4800,
29897,
13,
1678,
1426,
353,
10191,
29889,
294,
29918,
1807,
580,
13,
1678,
1923,
29889,
6717,
2549,
29898,
3166,
10030,
29892,
304,
10030,
29892,
1426,
29897,
13,
1678,
1923,
29889,
28358,
580,
2
] |
scripts/git2types/git2_type_rebase.py | git24j/git24j | 25 | 125347 | import re
from .git2_types import Git2Type
from .git2_type_common import (
Git2TypeConstObject,
Git2TypeOutObject,
PAT1_STR,
PAT2_STR,
PAT3_STR,
)
class Git2TypeConstRebaseOptions(Git2TypeConstObject):
PAT = re.compile(PAT1_STR + "(?P<obj_name>rebase_options)" + PAT2_STR)
class Git2TypeOutRebaseOptions(Git2TypeOutObject):
PAT = re.compile(PAT1_STR + "(?P<obj_name>rebase_options)" + PAT3_STR)
class Git2TypeConstRebase(Git2TypeConstObject):
PAT = re.compile(PAT1_STR + "(?P<obj_name>rebase)" + PAT2_STR)
class Git2TypeOutRebase(Git2TypeOutObject):
PAT = re.compile(PAT1_STR + "(?P<obj_name>rebase)" + PAT3_STR)
class Git2TypeConstRebaseOperation(Git2TypeConstObject):
PAT = re.compile(PAT1_STR + "(?P<obj_name>rebase_operation)" + PAT2_STR)
class Git2TypeOutRebaseOperation(Git2TypeOutObject):
PAT = re.compile(PAT1_STR + "(?P<obj_name>rebase_operation)" + PAT3_STR)
| [
1,
1053,
337,
13,
13,
3166,
869,
5559,
29906,
29918,
8768,
1053,
11786,
29906,
1542,
13,
3166,
869,
5559,
29906,
29918,
1853,
29918,
9435,
1053,
313,
13,
1678,
11786,
29906,
1542,
12075,
2061,
29892,
13,
1678,
11786,
29906,
1542,
3744,
2061,
29892,
13,
1678,
349,
1299,
29896,
29918,
10810,
29892,
13,
1678,
349,
1299,
29906,
29918,
10810,
29892,
13,
1678,
349,
1299,
29941,
29918,
10810,
29892,
13,
29897,
13,
13,
1990,
11786,
29906,
1542,
12075,
29934,
774,
559,
5856,
29898,
28712,
29906,
1542,
12075,
2061,
1125,
13,
1678,
349,
1299,
353,
337,
29889,
12198,
29898,
29925,
1299,
29896,
29918,
10810,
718,
376,
10780,
29925,
29966,
5415,
29918,
978,
29958,
276,
3188,
29918,
6768,
5513,
718,
349,
1299,
29906,
29918,
10810,
29897,
13,
13,
13,
1990,
11786,
29906,
1542,
3744,
29934,
774,
559,
5856,
29898,
28712,
29906,
1542,
3744,
2061,
1125,
13,
1678,
349,
1299,
353,
337,
29889,
12198,
29898,
29925,
1299,
29896,
29918,
10810,
718,
376,
10780,
29925,
29966,
5415,
29918,
978,
29958,
276,
3188,
29918,
6768,
5513,
718,
349,
1299,
29941,
29918,
10810,
29897,
13,
13,
13,
1990,
11786,
29906,
1542,
12075,
29934,
774,
559,
29898,
28712,
29906,
1542,
12075,
2061,
1125,
13,
1678,
349,
1299,
353,
337,
29889,
12198,
29898,
29925,
1299,
29896,
29918,
10810,
718,
376,
10780,
29925,
29966,
5415,
29918,
978,
29958,
276,
3188,
5513,
718,
349,
1299,
29906,
29918,
10810,
29897,
13,
13,
13,
1990,
11786,
29906,
1542,
3744,
29934,
774,
559,
29898,
28712,
29906,
1542,
3744,
2061,
1125,
13,
1678,
349,
1299,
353,
337,
29889,
12198,
29898,
29925,
1299,
29896,
29918,
10810,
718,
376,
10780,
29925,
29966,
5415,
29918,
978,
29958,
276,
3188,
5513,
718,
349,
1299,
29941,
29918,
10810,
29897,
13,
13,
1990,
11786,
29906,
1542,
12075,
29934,
774,
559,
10925,
29898,
28712,
29906,
1542,
12075,
2061,
1125,
13,
1678,
349,
1299,
353,
337,
29889,
12198,
29898,
29925,
1299,
29896,
29918,
10810,
718,
376,
10780,
29925,
29966,
5415,
29918,
978,
29958,
276,
3188,
29918,
16453,
5513,
718,
349,
1299,
29906,
29918,
10810,
29897,
13,
13,
13,
1990,
11786,
29906,
1542,
3744,
29934,
774,
559,
10925,
29898,
28712,
29906,
1542,
3744,
2061,
1125,
13,
1678,
349,
1299,
353,
337,
29889,
12198,
29898,
29925,
1299,
29896,
29918,
10810,
718,
376,
10780,
29925,
29966,
5415,
29918,
978,
29958,
276,
3188,
29918,
16453,
5513,
718,
349,
1299,
29941,
29918,
10810,
29897,
13,
2
] |
app.py | Andrew-Ritchie/Web-Based-Dashboard-for-Nanoindentation-Experiments | 1 | 1602932 | import dash
import dash_bootstrap_components as dbc
from flask_caching import Cache
app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
app.config.suppress_callback_exceptions = True
cache = Cache(app.server, config={
'CACHE_TYPE': 'filesystem',
'CACHE_DIR': 'cache-directory'
})
server = app.server
| [
1,
1053,
12569,
13,
5215,
12569,
29918,
8704,
29918,
14036,
408,
4833,
29883,
13,
3166,
29784,
29918,
29883,
9733,
1053,
28540,
13,
13,
13,
13,
932,
353,
12569,
29889,
29928,
1161,
29898,
23176,
29918,
9783,
354,
1691,
11759,
11140,
29889,
386,
13826,
29889,
8456,
2891,
10810,
3301,
2314,
13,
932,
29889,
2917,
29889,
19303,
1253,
29918,
14035,
29918,
11739,
29879,
353,
5852,
13,
8173,
353,
28540,
29898,
932,
29889,
2974,
29892,
2295,
3790,
13,
1678,
525,
29907,
2477,
9606,
29918,
11116,
2396,
525,
5325,
973,
742,
13,
1678,
525,
29907,
2477,
9606,
29918,
9464,
2396,
525,
8173,
29899,
12322,
29915,
13,
1800,
13,
13,
2974,
353,
623,
29889,
2974,
13,
13,
2
] |
PytoTests/test_pyto.py | snazari/Pyto | 701 | 67576 | <gh_stars>100-1000
"""
Tests for Pyto before submitting to the App Store.
"""
import unittest
import runpy
import sys
import os
class TestPyto(unittest.TestCase):
def test_lib(self):
from Lib import (apps, location, mainthread, motion,
multipeer, music, notification_center, notifications,
pasteboard, photos, pyto_core, pyto_ui,
remote_notifications, sharing, sound, speech, userkeys,
xcallback)
def test_modules(self):
runpy.run_module("download_all")
def test_pip(self):
import pip
pip.main(["install", "sympy"])
import sympy
pip.main(["uninstall", "sympy"])
def test_command_runner(self):
expected_result = "usage: pip.py [-h] [--verbose] [-6]\n sub-command ...\npip.py: error: argument sub-command: invalid choice: '—-help' (choose from 'list', 'install', 'download', 'search', 'versions', 'uninstall', 'update')"
out_path = os.path.join(os.path.expanduser("~/tmp"), "out.txt")
out = open(out_path, "w+")
_out = sys.stdout
_err = sys.stderr
sys.stdout = out
sys.stderr = out
sys.argv = ["pyto", "pip", "—-help"]
runpy.run_module("command_runner")
sys.stdout = _out
sys.stderr = _err
out.close()
out = open(out_path, "r")
res = out.read()
out.close()
res = res.replace(" ", "")
res = res.replace("\n", "")
res = res.replace("\t", "")
expected_result = expected_result.replace(" ", "")
expected_result = expected_result.replace("\n", "")
expected_result = expected_result.replace("\t", "")
self.assertEqual(res, expected_result)
if __name__ == '__main__':
try:
unittest.main()
except SystemExit:
pass
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
15945,
29908,
13,
24376,
363,
10772,
517,
1434,
11834,
5367,
304,
278,
2401,
14491,
29889,
13,
15945,
29908,
13,
13,
5215,
443,
27958,
13,
5215,
1065,
2272,
13,
5215,
10876,
13,
5215,
2897,
13,
13,
1990,
4321,
19737,
517,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
13,
1678,
822,
1243,
29918,
1982,
29898,
1311,
1125,
13,
4706,
515,
8153,
1053,
313,
13371,
29892,
4423,
29892,
1667,
7097,
29892,
10884,
29892,
13,
4706,
2473,
412,
261,
29892,
4696,
29892,
12519,
29918,
5064,
29892,
25913,
29892,
13,
4706,
11417,
3377,
29892,
20612,
29892,
11451,
517,
29918,
3221,
29892,
11451,
517,
29918,
1481,
29892,
13,
4706,
7592,
29918,
1333,
8232,
29892,
19383,
29892,
6047,
29892,
12032,
29892,
1404,
8149,
29892,
13,
4706,
921,
14035,
29897,
13,
13,
1678,
822,
1243,
29918,
7576,
29898,
1311,
1125,
13,
4706,
1065,
2272,
29889,
3389,
29918,
5453,
703,
10382,
29918,
497,
1159,
13,
308,
13,
1678,
822,
1243,
29918,
13096,
29898,
1311,
1125,
13,
4706,
1053,
8450,
13,
4706,
8450,
29889,
3396,
29898,
3366,
6252,
613,
376,
11967,
2272,
20068,
13,
308,
13,
4706,
1053,
5016,
2272,
13,
308,
13,
4706,
8450,
29889,
3396,
29898,
3366,
348,
6252,
613,
376,
11967,
2272,
20068,
13,
13,
1678,
822,
1243,
29918,
6519,
29918,
27492,
29898,
1311,
1125,
13,
308,
13,
4706,
3806,
29918,
2914,
353,
376,
21125,
29901,
8450,
29889,
2272,
21069,
29882,
29962,
518,
489,
369,
15828,
29962,
21069,
29953,
10725,
29876,
795,
1014,
29899,
6519,
2023,
29905,
9302,
666,
29889,
2272,
29901,
1059,
29901,
2980,
1014,
29899,
6519,
29901,
8340,
7348,
29901,
525,
30003,
29899,
8477,
29915,
313,
21803,
515,
525,
1761,
742,
525,
6252,
742,
525,
10382,
742,
525,
4478,
742,
525,
26100,
742,
525,
348,
6252,
742,
525,
5504,
1495,
29908,
13,
308,
13,
4706,
714,
29918,
2084,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
18837,
1792,
703,
20038,
7050,
4968,
376,
449,
29889,
3945,
1159,
13,
308,
13,
4706,
714,
353,
1722,
29898,
449,
29918,
2084,
29892,
376,
29893,
29974,
1159,
13,
4706,
903,
449,
353,
10876,
29889,
25393,
13,
4706,
903,
3127,
353,
10876,
29889,
303,
20405,
13,
4706,
10876,
29889,
25393,
353,
714,
13,
4706,
10876,
29889,
303,
20405,
353,
714,
13,
308,
13,
4706,
10876,
29889,
19218,
353,
6796,
2272,
517,
613,
376,
13096,
613,
376,
30003,
29899,
8477,
3108,
13,
4706,
1065,
2272,
29889,
3389,
29918,
5453,
703,
6519,
29918,
27492,
1159,
13,
308,
13,
4706,
10876,
29889,
25393,
353,
903,
449,
13,
4706,
10876,
29889,
303,
20405,
353,
903,
3127,
13,
308,
13,
4706,
714,
29889,
5358,
580,
13,
4706,
714,
353,
1722,
29898,
449,
29918,
2084,
29892,
376,
29878,
1159,
13,
4706,
620,
353,
714,
29889,
949,
580,
13,
4706,
714,
29889,
5358,
580,
13,
308,
13,
4706,
620,
353,
620,
29889,
6506,
703,
9162,
20569,
13,
4706,
620,
353,
620,
29889,
6506,
14182,
29876,
613,
20569,
13,
4706,
620,
353,
620,
29889,
6506,
14182,
29873,
613,
20569,
13,
4706,
3806,
29918,
2914,
353,
3806,
29918,
2914,
29889,
6506,
703,
9162,
20569,
13,
4706,
3806,
29918,
2914,
353,
3806,
29918,
2914,
29889,
6506,
14182,
29876,
613,
20569,
13,
4706,
3806,
29918,
2914,
353,
3806,
29918,
2914,
29889,
6506,
14182,
29873,
613,
20569,
13,
4706,
1583,
29889,
9294,
9843,
29898,
690,
29892,
3806,
29918,
2914,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
1018,
29901,
13,
4706,
443,
27958,
29889,
3396,
580,
13,
1678,
5174,
2184,
24365,
29901,
13,
4706,
1209,
13,
2
] |
CodingInterviews/python/48_add.py | YorkFish/git_study | 0 | 62080 | #!/usr/bin/env python3
# coding:utf-8
class Solution:
def Add(self, num1, num2):
"""
num1 ^ num2: 不计进位的相加
(num1 & num2) << 1: 进位
循环至进位为零
~(num1 ^ 0xffffffff): 模仿 C,当 num1 为负数时,把它从无符号数转为有符号数
C 的 int 的高位是符号位,Python 没有
"""
while num2 != 0:
num1, num2 =\
(num1 ^ num2) & 0xffffffff, ((num1 & num2) << 1) & 0xffffffff
return num1 if num1 <= 0x7fffffff else ~(num1 ^ 0xffffffff)
if __name__ == "__main__":
num1 = 66
num2 = 66
s = Solution()
ans = s.Add(num1, num2)
print(ans)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
14137,
29901,
9420,
29899,
29947,
13,
13,
13,
1990,
24380,
29901,
13,
1678,
822,
3462,
29898,
1311,
29892,
954,
29896,
29892,
954,
29906,
1125,
13,
4706,
9995,
13,
4706,
954,
29896,
6228,
954,
29906,
29901,
29871,
30413,
31466,
31174,
30956,
30210,
30990,
30666,
13,
4706,
313,
1949,
29896,
669,
954,
29906,
29897,
3532,
29871,
29896,
29901,
29871,
31174,
30956,
13,
308,
232,
193,
173,
234,
145,
178,
235,
138,
182,
31174,
30956,
30573,
236,
158,
185,
13,
13,
4706,
3695,
29898,
1949,
29896,
6228,
29871,
29900,
29916,
17156,
17156,
1125,
29871,
31382,
231,
190,
194,
315,
30214,
30948,
954,
29896,
29871,
30573,
235,
183,
162,
30354,
30594,
30214,
233,
141,
141,
232,
177,
134,
31594,
31352,
31277,
30850,
30354,
31415,
30573,
30417,
31277,
30850,
30354,
13,
4706,
315,
29871,
30210,
938,
29871,
30210,
30528,
30956,
30392,
31277,
30850,
30956,
30214,
11980,
29871,
31423,
30417,
13,
4706,
9995,
13,
4706,
1550,
954,
29906,
2804,
29871,
29900,
29901,
13,
9651,
954,
29896,
29892,
954,
29906,
17313,
13,
18884,
313,
1949,
29896,
6228,
954,
29906,
29897,
669,
29871,
29900,
29916,
17156,
17156,
29892,
5135,
1949,
29896,
669,
954,
29906,
29897,
3532,
29871,
29896,
29897,
669,
29871,
29900,
29916,
17156,
17156,
13,
4706,
736,
954,
29896,
565,
954,
29896,
5277,
29871,
29900,
29916,
29955,
17156,
18725,
1683,
3695,
29898,
1949,
29896,
6228,
29871,
29900,
29916,
17156,
17156,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
954,
29896,
353,
29871,
29953,
29953,
13,
1678,
954,
29906,
353,
29871,
29953,
29953,
13,
13,
1678,
269,
353,
24380,
580,
13,
1678,
6063,
353,
269,
29889,
2528,
29898,
1949,
29896,
29892,
954,
29906,
29897,
13,
1678,
1596,
29898,
550,
29897,
13,
2
] |
Server/website/serializers.py | HarshShah1997/Rotary-Website | 0 | 121020 | """
Author: harsh
"""
from rest_framework.serializers import ModelSerializer
from website.models import Event, Announcement, BoardMember, Photo
class EventSerializer(ModelSerializer):
class Meta:
model = Event
fields = '__all__'
class AnnouncementSerializer(ModelSerializer):
class Meta:
model = Announcement
fields = '__all__'
class BoardMemberSerializer(ModelSerializer):
class Meta:
model = BoardMember
fields = '__all__'
class PhotoSerializer(ModelSerializer):
class Meta:
model = Photo
fields = '__all__'
| [
1,
9995,
13,
13720,
29901,
4023,
845,
13,
15945,
29908,
13,
13,
3166,
1791,
29918,
4468,
29889,
15550,
19427,
1053,
8125,
17679,
13,
13,
3166,
4700,
29889,
9794,
1053,
6864,
29892,
8081,
1309,
13561,
29892,
12590,
13404,
29892,
1963,
3747,
13,
13,
13,
1990,
6864,
17679,
29898,
3195,
17679,
1125,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
6864,
13,
4706,
4235,
353,
525,
1649,
497,
1649,
29915,
13,
13,
13,
1990,
8081,
1309,
13561,
17679,
29898,
3195,
17679,
1125,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
8081,
1309,
13561,
13,
4706,
4235,
353,
525,
1649,
497,
1649,
29915,
13,
13,
13,
1990,
12590,
13404,
17679,
29898,
3195,
17679,
1125,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
12590,
13404,
13,
4706,
4235,
353,
525,
1649,
497,
1649,
29915,
13,
13,
13,
1990,
1963,
3747,
17679,
29898,
3195,
17679,
1125,
13,
1678,
770,
20553,
29901,
13,
4706,
1904,
353,
1963,
3747,
13,
4706,
4235,
353,
525,
1649,
497,
1649,
29915,
13,
2
] |
linkedSPLs/LinkedSPLs-update/mappings/ChEBI-DrugBank-bio2rdf-mapping/scripts/backups/parseDBIdAndUNIIsByInChikey.py | kqingcan/bio2rdf-scripts | 76 | 137787 | <gh_stars>10-100
'''
Created 03/20/2014
@authors: <NAME>
@summary: parse inchikey and drugbank_id from drugbank.xml then parse
inchikey, FDA Preferred Term and UNII from UNIIs records
match the results from drugbank and results of parse UNIIs
records output terms: FDA Preferred Term, UNII, Drugbank URI
output file: PT-UNIIs-Drugbank-03202014.txt
'''
from lxml import etree
from lxml.etree import XMLParser, parse
import os, sys
DRUGBANK_XML = "drugbank.xml"
UNIIS_RECORDS = "UNIIs 27Jun2014 Records.txt"
NS = "{http://www.drugbank.ca}"
DRUGBANK_BIO2RDF = "http://bio2rdf.org/drugbank:"
DRUGBANK_CA = "http://www.drugbank.ca/drugs/"
dict_ickey_dbid = {}
'''
data structure of drugbank.xml
</drug><drug type="small molecule" created="2005-06-13 07:24:05 -0600"
updated="2013-09-16 17:11:29 -0600" version="4.0">
<drugbank-id>DB00641</drugbank-id>
<name>Simvastatin</name>
<calculated-properties>
<property>
<kind>InChIKey</kind>
<value>InChIKey=RYMZZMVNJRMUDD-HGQWONQESA-N</value>
<source>ChemAxon</source>
</property>
'''
#get mappings of inchikey and drugbank id
def parseDbIdAndInChiKey(root):
for childDrug in root.iter(tag=NS + "drug"):
subId = childDrug.find(NS + "drugbank-id")
if subId == None:
continue
else:
drugbankid = subId.text
drugbankName = unicode(childDrug.find(NS + "name").text)
for subProp in childDrug.iter(NS + "property"):
subKind = subProp.find(NS + "kind")
if subKind == None:
continue
elif subKind.text == "InChIKey":
subValue = subProp.find(NS + "value")
if subValue == None:
continue
else:
#print drugbankid + '\t' + subValue.text[9:]
ikey = subValue.text[9:]
dict_ickey_dbid [ikey] = (drugbankid,drugbankName)
p = XMLParser(huge_tree=True)
tree = parse(DRUGBANK_XML,parser=p)
root = tree.getroot()
parseDbIdAndInChiKey(root)
#print dict_ickey_dbid
#read mapping file that contains UNII PT INCHIKEY
for line in open(UNIIS_RECORDS,'r').readlines():
row = line.split('\t')
inchikey = row[4]
if len(inchikey) == 0:
continue
#print "mapping inchikey:" + inchikey
if dict_ickey_dbid.has_key(inchikey):
drugbankid = dict_ickey_dbid[inchikey][0]
drugbankName = dict_ickey_dbid[inchikey][1]
output = row[1] +'\t'+ row[0] +'\t'+ drugbankName +'\t'+ DRUGBANK_CA + drugbankid +'\t'+ DRUGBANK_BIO2RDF + drugbankid
print output.encode('utf-8').strip()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
12008,
13,
20399,
29871,
29900,
29941,
29914,
29906,
29900,
29914,
29906,
29900,
29896,
29946,
13,
13,
29992,
5150,
943,
29901,
529,
5813,
29958,
13,
13,
29992,
7727,
29901,
6088,
297,
4161,
1989,
322,
15721,
9157,
29918,
333,
515,
15721,
9157,
29889,
3134,
769,
6088,
13,
3986,
297,
4161,
1989,
29892,
383,
7698,
4721,
14373,
11814,
322,
8291,
2687,
515,
8291,
2687,
29879,
6475,
13,
3986,
1993,
278,
2582,
515,
15721,
9157,
322,
2582,
310,
6088,
8291,
2687,
29879,
13,
3986,
6475,
1962,
4958,
29901,
383,
7698,
4721,
14373,
11814,
29892,
8291,
2687,
29892,
360,
11124,
9157,
23539,
13,
3986,
1962,
934,
29901,
349,
29911,
29899,
3904,
2687,
29879,
29899,
29928,
11124,
9157,
29899,
29900,
29941,
29906,
29900,
29906,
29900,
29896,
29946,
29889,
3945,
13,
12008,
13,
13,
3166,
301,
3134,
1053,
634,
929,
13,
3166,
301,
3134,
29889,
300,
929,
1053,
6560,
11726,
29892,
6088,
13,
5215,
2897,
29892,
10876,
13,
13,
8353,
29965,
7210,
2190,
29968,
29918,
9165,
353,
376,
29881,
11124,
9157,
29889,
3134,
29908,
13,
3904,
2687,
29903,
29918,
1525,
29907,
1955,
8452,
353,
376,
3904,
2687,
29879,
29871,
29906,
29955,
29967,
348,
29906,
29900,
29896,
29946,
7983,
29889,
3945,
29908,
13,
3059,
353,
29850,
1124,
597,
1636,
29889,
29881,
11124,
9157,
29889,
1113,
5038,
29871,
13,
13,
8353,
29965,
7210,
2190,
29968,
29918,
29933,
5971,
29906,
29934,
4037,
353,
376,
1124,
597,
24840,
29906,
29878,
2176,
29889,
990,
29914,
29881,
11124,
9157,
6160,
13,
8353,
29965,
7210,
2190,
29968,
29918,
5454,
353,
376,
1124,
597,
1636,
29889,
29881,
11124,
9157,
29889,
1113,
29914,
26179,
3174,
12975,
13,
8977,
29918,
293,
1989,
29918,
2585,
333,
353,
6571,
13,
13,
12008,
13,
1272,
3829,
310,
15721,
9157,
29889,
3134,
13,
12,
13,
829,
29881,
11124,
5299,
29881,
11124,
1134,
543,
9278,
13206,
29883,
1297,
29908,
2825,
543,
29906,
29900,
29900,
29945,
29899,
29900,
29953,
29899,
29896,
29941,
29871,
29900,
29955,
29901,
29906,
29946,
29901,
29900,
29945,
448,
29900,
29953,
29900,
29900,
29908,
13,
21402,
543,
29906,
29900,
29896,
29941,
29899,
29900,
29929,
29899,
29896,
29953,
29871,
29896,
29955,
29901,
29896,
29896,
29901,
29906,
29929,
448,
29900,
29953,
29900,
29900,
29908,
1873,
543,
29946,
29889,
29900,
1013,
13,
29871,
529,
29881,
11124,
9157,
29899,
333,
29958,
4051,
29900,
29900,
29953,
29946,
29896,
829,
29881,
11124,
9157,
29899,
333,
29958,
13,
29871,
529,
978,
29958,
8942,
29894,
579,
21203,
829,
978,
29958,
13,
29871,
529,
15807,
630,
29899,
11330,
29958,
13,
29871,
529,
6799,
29958,
13,
418,
529,
14380,
29958,
797,
1451,
29902,
2558,
829,
14380,
29958,
13,
418,
529,
1767,
29958,
797,
1451,
29902,
2558,
29922,
13207,
29924,
29999,
29999,
29924,
29963,
29940,
29967,
29934,
29924,
29965,
7858,
29899,
29950,
29954,
29984,
29956,
1164,
29984,
2890,
29909,
29899,
29940,
829,
1767,
29958,
13,
418,
529,
4993,
29958,
1451,
331,
29909,
29916,
265,
829,
4993,
29958,
13,
1678,
1533,
6799,
29958,
13,
12008,
13,
13,
13,
29937,
657,
611,
27775,
310,
297,
4161,
1989,
322,
15721,
9157,
1178,
13,
1753,
6088,
10234,
1204,
2855,
797,
1451,
29875,
2558,
29898,
4632,
1125,
13,
1678,
363,
2278,
29928,
11124,
297,
3876,
29889,
1524,
29898,
4039,
29922,
3059,
718,
376,
29881,
11124,
29908,
1125,
13,
4706,
1014,
1204,
353,
2278,
29928,
11124,
29889,
2886,
29898,
3059,
718,
376,
29881,
11124,
9157,
29899,
333,
1159,
13,
308,
13,
4706,
565,
1014,
1204,
1275,
6213,
29901,
13,
9651,
6773,
13,
4706,
1683,
29901,
13,
9651,
15721,
9157,
333,
353,
1014,
1204,
29889,
726,
13,
9651,
15721,
9157,
1170,
353,
29104,
29898,
5145,
29928,
11124,
29889,
2886,
29898,
3059,
718,
376,
978,
2564,
726,
29897,
1678,
13,
13,
9651,
363,
1014,
20420,
297,
2278,
29928,
11124,
29889,
1524,
29898,
3059,
718,
376,
6799,
29908,
1125,
13,
18884,
1014,
11885,
353,
1014,
20420,
29889,
2886,
29898,
3059,
718,
376,
14380,
1159,
13,
18884,
565,
1014,
11885,
1275,
6213,
29901,
13,
462,
1678,
6773,
13,
18884,
25342,
1014,
11885,
29889,
726,
1275,
376,
797,
1451,
29902,
2558,
1115,
13,
462,
1678,
1014,
1917,
353,
1014,
20420,
29889,
2886,
29898,
3059,
718,
376,
1767,
1159,
13,
462,
1678,
565,
1014,
1917,
1275,
6213,
29901,
13,
462,
4706,
6773,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
396,
2158,
15721,
9157,
333,
718,
11297,
29873,
29915,
718,
1014,
1917,
29889,
726,
29961,
29929,
17531,
13,
462,
4706,
474,
1989,
353,
1014,
1917,
29889,
726,
29961,
29929,
17531,
13,
462,
4706,
9657,
29918,
293,
1989,
29918,
2585,
333,
518,
29875,
1989,
29962,
353,
313,
29881,
11124,
9157,
333,
29892,
29881,
11124,
9157,
1170,
29897,
13,
13,
29886,
353,
6560,
11726,
29898,
29882,
5710,
29918,
8336,
29922,
5574,
29897,
13,
8336,
353,
6088,
29898,
8353,
29965,
7210,
2190,
29968,
29918,
9165,
29892,
16680,
29922,
29886,
29897,
13,
4632,
353,
5447,
29889,
657,
4632,
580,
13,
13,
5510,
10234,
1204,
2855,
797,
1451,
29875,
2558,
29898,
4632,
29897,
13,
13,
29937,
2158,
9657,
29918,
293,
1989,
29918,
2585,
333,
13,
13,
29937,
949,
10417,
934,
393,
3743,
8291,
2687,
349,
29911,
2672,
3210,
29902,
10818,
13,
13,
1454,
1196,
297,
1722,
29898,
3904,
2687,
29903,
29918,
1525,
29907,
1955,
8452,
5501,
29878,
2824,
949,
9012,
7295,
13,
1678,
1948,
353,
1196,
29889,
5451,
28909,
29873,
1495,
13,
1678,
297,
4161,
1989,
353,
1948,
29961,
29946,
29962,
13,
1678,
565,
7431,
29898,
262,
4161,
1989,
29897,
1275,
29871,
29900,
29901,
13,
4706,
6773,
13,
1678,
396,
2158,
376,
20698,
297,
4161,
1989,
6160,
718,
297,
4161,
1989,
13,
13,
1678,
565,
9657,
29918,
293,
1989,
29918,
2585,
333,
29889,
5349,
29918,
1989,
29898,
262,
4161,
1989,
1125,
13,
4706,
15721,
9157,
333,
353,
9657,
29918,
293,
1989,
29918,
2585,
333,
29961,
262,
4161,
1989,
3816,
29900,
29962,
13,
4706,
15721,
9157,
1170,
353,
9657,
29918,
293,
1989,
29918,
2585,
333,
29961,
262,
4161,
1989,
3816,
29896,
29962,
13,
4706,
1962,
353,
1948,
29961,
29896,
29962,
718,
12764,
29873,
18717,
1948,
29961,
29900,
29962,
718,
12764,
29873,
18717,
15721,
9157,
1170,
718,
12764,
29873,
18717,
29871,
26900,
29965,
7210,
2190,
29968,
29918,
5454,
718,
15721,
9157,
333,
718,
12764,
29873,
18717,
26900,
29965,
7210,
2190,
29968,
29918,
29933,
5971,
29906,
29934,
4037,
718,
15721,
9157,
333,
13,
4706,
1596,
1962,
29889,
12508,
877,
9420,
29899,
29947,
2824,
17010,
580,
13,
308,
13,
13,
13,
13,
2
] |
groclient/constants.py | eric-gro/api-client | 18 | 6915 | """Constants about the Gro ontology that can be imported and re-used anywhere."""
REGION_LEVELS = {
'world': 1,
'continent': 2,
'country': 3,
'province': 4, # Equivalent to state in the United States
'district': 5, # Equivalent to county in the United States
'city': 6,
'market': 7,
'other': 8,
'coordinate': 9
}
ENTITY_TYPES_PLURAL = ['metrics', 'items', 'regions', 'frequencies', 'sources', 'units']
DATA_SERIES_UNIQUE_TYPES_ID = [
'metric_id',
'item_id',
'region_id',
'partner_region_id',
'frequency_id',
'source_id'
]
ENTITY_KEY_TO_TYPE = {
'metric_id': 'metrics',
'item_id': 'items',
'region_id': 'regions',
'partner_region_id': 'regions',
'source_id': 'sources',
'frequency_id': 'frequencies',
'unit_id': 'units'
}
DATA_POINTS_UNIQUE_COLS = DATA_SERIES_UNIQUE_TYPES_ID + [
'reporting_date',
'start_date',
'end_date'
]
| [
1,
9995,
26570,
1048,
278,
6070,
4625,
3002,
393,
508,
367,
19673,
322,
337,
29899,
3880,
12214,
1213,
15945,
13,
13,
18166,
2725,
29918,
1307,
29963,
6670,
29903,
353,
426,
13,
1678,
525,
11526,
2396,
29871,
29896,
29892,
13,
1678,
525,
1285,
8946,
2396,
29871,
29906,
29892,
13,
1678,
525,
13509,
2396,
29871,
29941,
29892,
13,
1678,
525,
16123,
1239,
2396,
29871,
29946,
29892,
29871,
396,
11243,
27445,
304,
2106,
297,
278,
3303,
3900,
13,
1678,
525,
29881,
6801,
2396,
29871,
29945,
29892,
29871,
396,
11243,
27445,
304,
15178,
297,
278,
3303,
3900,
13,
1678,
525,
12690,
2396,
29871,
29953,
29892,
13,
1678,
525,
28549,
2396,
29871,
29955,
29892,
13,
1678,
525,
1228,
2396,
29871,
29947,
29892,
13,
1678,
525,
29302,
2396,
29871,
29929,
13,
29913,
13,
13,
3919,
11937,
29918,
15631,
29925,
2890,
29918,
7390,
4574,
1964,
353,
6024,
2527,
10817,
742,
525,
7076,
742,
525,
1727,
1080,
742,
525,
10745,
339,
15942,
742,
525,
29879,
2863,
742,
525,
348,
1169,
2033,
13,
13,
14573,
29918,
6304,
29059,
29918,
3904,
29902,
11144,
29918,
15631,
29925,
2890,
29918,
1367,
353,
518,
13,
1678,
525,
16414,
29918,
333,
742,
13,
1678,
525,
667,
29918,
333,
742,
13,
1678,
525,
12803,
29918,
333,
742,
13,
1678,
525,
1595,
1089,
29918,
12803,
29918,
333,
742,
13,
1678,
525,
10745,
23860,
29918,
333,
742,
13,
1678,
525,
4993,
29918,
333,
29915,
13,
29962,
13,
13,
3919,
11937,
29918,
10818,
29918,
4986,
29918,
11116,
353,
426,
13,
1678,
525,
16414,
29918,
333,
2396,
525,
2527,
10817,
742,
13,
1678,
525,
667,
29918,
333,
2396,
525,
7076,
742,
13,
1678,
525,
12803,
29918,
333,
2396,
525,
1727,
1080,
742,
13,
1678,
525,
1595,
1089,
29918,
12803,
29918,
333,
2396,
525,
1727,
1080,
742,
13,
1678,
525,
4993,
29918,
333,
2396,
525,
29879,
2863,
742,
13,
1678,
525,
10745,
23860,
29918,
333,
2396,
525,
10745,
339,
15942,
742,
13,
1678,
525,
5441,
29918,
333,
2396,
525,
348,
1169,
29915,
13,
29913,
13,
13,
14573,
29918,
29925,
6992,
9375,
29918,
3904,
29902,
11144,
29918,
3217,
8547,
353,
360,
8254,
29918,
6304,
29059,
29918,
3904,
29902,
11144,
29918,
15631,
29925,
2890,
29918,
1367,
718,
518,
13,
1678,
525,
12276,
292,
29918,
1256,
742,
13,
1678,
525,
2962,
29918,
1256,
742,
13,
1678,
525,
355,
29918,
1256,
29915,
13,
29962,
13,
2
] |
processing/router.py | uncharted-distil/distil-auto-ml | 2 | 49246 | <filename>processing/router.py
#!/usr/bin/env python
"""
distil/router.py
"""
import logging
import sys
from copy import deepcopy
from typing import Sequence, Tuple
from d3m.metadata import problem as _problem
logger = logging.getLogger(__name__)
SMALL_DATASET_THRESH = 2000
# --
# Detect semantic problem type
def get_resource_types(dataset_doc: dict) -> Sequence[str]:
return sorted([dr["resType"] for dr in dataset_doc["dataResources"]])
def is_tabular(dataset_doc: dict, problem_desc: dict) -> bool:
resource_types = get_resource_types(dataset_doc)
task_keywords = problem_desc["problem"]["task_keywords"]
if (
len(
set(task_keywords)
& set(
[_problem.TaskKeyword.REGRESSION, _problem.TaskKeyword.CLASSIFICATION]
)
)
== 0
):
return False
elif (
len(
set(task_keywords)
& set(
[
_problem.TaskKeyword.SEMISUPERVISED,
_problem.TaskKeyword.REMOTE_SENSING,
]
)
)
!= 0
):
return False
elif resource_types == ["table"]:
return True
elif (
set(resource_types) == {"table"}
and len(resource_types) > 2
and not is_question_answering(dataset_doc)
):
logger.warn(
"is_tabular: found more than two tables, which we can't handle. falling back to single table"
)
return True
else:
return False
def is_edgelist(dataset_doc: dict, problem_desc: dict) -> bool:
resource_types = get_resource_types(dataset_doc)
task_keywords = problem_desc["problem"]["task_keywords"]
if (
len(
set(task_keywords)
& set(
[
_problem.TaskKeyword.VERTEX_CLASSIFICATION,
_problem.TaskKeyword.VERTEX_NOMINATION,
_problem.TaskKeyword.LINK_PREDICTION,
]
)
)
== 0
):
return False
elif "edgeList" in resource_types:
return True
else:
return False
def is_multitable(dataset_doc: dict) -> bool:
return ["table", "table"] == get_resource_types(dataset_doc)
def is_timeseries_classification(dataset_doc: dict, problem: dict) -> bool:
timeseries_resource = ["table", "timeseries"] == get_resource_types(dataset_doc)
classification_task = (
_problem.TaskKeyword.CLASSIFICATION in problem["problem"]["task_keywords"]
)
return timeseries_resource and classification_task
def is_timeseries_forecasting(problem: dict) -> bool:
return _problem.TaskKeyword.FORECASTING in problem["problem"]["task_keywords"]
def is_question_answering(dataset_doc: dict) -> bool:
res_paths = sorted([r["resPath"] for r in dataset_doc["dataResources"]])
return res_paths == [
"tables/learningData.csv",
"tables/questions.csv",
"tables/sentences.csv",
"tables/vocabulary.csv",
]
def is_audio(dataset_doc: dict) -> bool:
return "audio" in get_resource_types(dataset_doc)
def is_image(dataset_doc: dict, problem: dict) -> bool:
classification = (
_problem.TaskKeyword.CLASSIFICATION in problem["problem"]["task_keywords"]
)
regression = _problem.TaskKeyword.REGRESSION in problem["problem"]["task_keywords"]
remote_sensing = (
_problem.TaskKeyword.REMOTE_SENSING in problem["problem"]["task_keywords"]
)
return (
"image" in get_resource_types(dataset_doc)
and (classification or regression)
and not remote_sensing
)
def is_remote_sensing_pretrained(dataset_doc: dict, problem: dict) -> bool:
classification = (
_problem.TaskKeyword.CLASSIFICATION in problem["problem"]["task_keywords"]
)
regression = _problem.TaskKeyword.REGRESSION in problem["problem"]["task_keywords"]
remote_sensing = (
_problem.TaskKeyword.REMOTE_SENSING in problem["problem"]["task_keywords"]
)
return (
"image" not in get_resource_types(dataset_doc)
and (classification or regression)
and remote_sensing
and _problem.TaskKeyword.SEMISUPERVISED
not in problem["problem"]["task_keywords"]
)
def is_remote_sensing(dataset_doc: dict, problem: dict) -> bool:
classification = (
_problem.TaskKeyword.CLASSIFICATION in problem["problem"]["task_keywords"]
)
regression = _problem.TaskKeyword.REGRESSION in problem["problem"]["task_keywords"]
remote_sensing = (
_problem.TaskKeyword.REMOTE_SENSING in problem["problem"]["task_keywords"]
)
return (
"image" in get_resource_types(dataset_doc)
and (classification or regression)
and remote_sensing
and _problem.TaskKeyword.SEMISUPERVISED
not in problem["problem"]["task_keywords"]
)
def is_object_detection(problem: dict) -> bool:
return _problem.TaskKeyword.OBJECT_DETECTION in problem["problem"]["task_keywords"]
def is_graph_matching(problem: dict) -> bool:
return _problem.TaskKeyword.GRAPH_MATCHING in problem["problem"]["task_keywords"]
def is_community_detection(problem: dict) -> bool:
return (
_problem.TaskKeyword.COMMUNITY_DETECTION in problem["problem"]["task_keywords"]
)
def is_clustering(problem: dict) -> bool:
return _problem.TaskKeyword.CLUSTERING in problem["problem"]["task_keywords"]
def is_vertex_classification(problem: dict) -> bool:
return (
_problem.TaskKeyword.VERTEX_CLASSIFICATION
in problem["problem"]["task_keywords"]
)
def is_vertex_nomination(problem: dict) -> bool:
return _problem.TaskKeyword.VERTEX_NOMINATION in problem["problem"]["task_keywords"]
def is_collaborative_filtering(problem: dict) -> bool:
return (
_problem.TaskKeyword.COLLABORATIVE_FILTERING
in problem["problem"]["task_keywords"]
)
def is_link_prediction(problem: dict) -> bool:
return _problem.TaskKeyword.LINK_PREDICTION in problem["problem"]["task_keywords"]
def is_text(dataset_doc: dict) -> bool:
return ["table", "text"] == get_resource_types(dataset_doc)
def is_semisupervised_tabular(problem: dict) -> bool:
remote_sensing = (
_problem.TaskKeyword.REMOTE_SENSING in problem["problem"]["task_keywords"]
)
return (
not remote_sensing
and _problem.TaskKeyword.SEMISUPERVISED in problem["problem"]["task_keywords"]
)
def is_semisupervised_remote_sensing_pretrained(problem: dict) -> bool:
remote_sensing = (
_problem.TaskKeyword.REMOTE_SENSING in problem["problem"]["task_keywords"]
)
return (
remote_sensing
and _problem.TaskKeyword.SEMISUPERVISED in problem["problem"]["task_keywords"]
)
# --
# Routing
def get_routing_info(dataset_doc: dict, problem: dict, metric: str) -> Tuple[str, dict]:
# Shouldn't evaluate these in serial -- should do in parallel, then check for
# conflicts
if is_tabular(dataset_doc, problem):
return "table", {}
elif is_multitable(dataset_doc):
resources = deepcopy(dataset_doc["dataResources"])
learning_resource = [
r for r in resources if "learningData.csv" in r["resPath"]
][0]
resources.remove(learning_resource)
assert len(resources) == 1
other_resource = resources[0]
is_table = other_resource["resType"] == "table"
is_collection = other_resource.get("isCollection", False)
if is_table and is_collection:
# return 'multitable', {}
return "table", {"multi": True}
else:
print(
(
"get_routing_info: is_multitable, but other_resource is not a collection\n"
" falling back to table (eg. ignoring resources)"
),
file=sys.stderr,
)
return "table", {}
elif is_question_answering(dataset_doc):
return "question_answering", {}
elif is_text(dataset_doc):
return "text", {}
elif is_image(dataset_doc, problem):
return "image", {}
elif is_semisupervised_remote_sensing_pretrained(problem):
return "semisupervised_remote_sensing_pretrained", {}
elif is_remote_sensing_pretrained(dataset_doc, problem):
return "remote_sensing_pretrained", {}
elif is_remote_sensing(dataset_doc, problem):
return "remote_sensing", {}
elif is_object_detection(problem):
return "object_detection", {}
elif is_clustering(problem):
resources = dataset_doc["dataResources"]
assert len(resources) == 1
learning_resource = resources[0]
# !! Not sure if I'm supposed to be looking at this
n_clusters = problem["inputs"][0]["targets"][0]["clusters_number"]
all_float = set(
[
r["colType"]
for r in learning_resource["columns"]
if ("suggestedTarget" not in r["role"]) and ("d3mIndex" != r["colName"])
]
) == {"real"}
return "clustering", {
"n_clusters": n_clusters,
"all_float": all_float,
}
elif is_timeseries_classification(dataset_doc, problem):
return (
"timeseries_classification",
{
# "metrics": ['euclidean', 'cityblock', 'dtw'],
# "diffusion": True,
# "forest": True,
# "ensemble_size": 3,
},
)
elif is_timeseries_forecasting(problem):
return "timeseries_forecasting", {}
elif is_audio(dataset_doc):
return "audio", {}
elif is_graph_matching(problem):
return "graph_matching", {}
elif is_vertex_nomination(problem):
return "vertex_nomination", {}
elif is_vertex_classification(problem):
return "vertex_nomination", {"is_edgelist": is_edgelist(dataset_doc, problem)}
elif is_collaborative_filtering(problem):
return "collaborative_filtering", {}
elif is_link_prediction(problem):
return "link_prediction", {"is_edgelist": is_edgelist(dataset_doc, problem)}
elif is_community_detection(problem):
# TODO what should subtype be?
assert (
_problem.TaskKeyword.COMMUNITY_DETECTION
in problem["problem"]["task_keywords"]
)
return "community_detection", {
"overlapping": False,
}
elif is_semisupervised_tabular(problem):
# return 'table', {'semi': True}
return "semisupervised_tabular", {}
else:
raise Exception("!! router failed on problem")
| [
1,
529,
9507,
29958,
19170,
29914,
15140,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
15945,
29908,
13,
1678,
1320,
309,
29914,
15140,
29889,
2272,
13,
15945,
29908,
13,
13,
5215,
12183,
13,
5215,
10876,
13,
3166,
3509,
1053,
6483,
8552,
13,
3166,
19229,
1053,
922,
3910,
29892,
12603,
552,
13,
13,
3166,
270,
29941,
29885,
29889,
19635,
1053,
1108,
408,
903,
17199,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
29903,
1529,
2208,
29918,
25832,
8127,
29911,
29918,
4690,
1525,
7068,
353,
29871,
29906,
29900,
29900,
29900,
13,
13,
13,
29937,
1192,
13,
29937,
5953,
522,
28837,
1108,
1134,
13,
13,
13,
1753,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29901,
9657,
29897,
1599,
922,
3910,
29961,
710,
5387,
13,
1678,
736,
12705,
4197,
7707,
3366,
690,
1542,
3108,
363,
4192,
297,
8783,
29918,
1514,
3366,
1272,
13770,
3108,
2314,
13,
13,
13,
1753,
338,
29918,
9456,
29898,
24713,
29918,
1514,
29901,
9657,
29892,
1108,
29918,
14273,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
6503,
29918,
8768,
353,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
1678,
3414,
29918,
1989,
9303,
353,
1108,
29918,
14273,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
565,
313,
13,
4706,
7431,
29898,
13,
9651,
731,
29898,
7662,
29918,
1989,
9303,
29897,
13,
9651,
669,
731,
29898,
13,
18884,
23160,
17199,
29889,
5398,
2558,
1742,
29889,
18166,
1525,
13507,
29892,
903,
17199,
29889,
5398,
2558,
1742,
29889,
13875,
1799,
6545,
28541,
29962,
13,
9651,
1723,
13,
4706,
1723,
13,
4706,
1275,
29871,
29900,
13,
268,
1125,
13,
4706,
736,
7700,
13,
1678,
25342,
313,
13,
4706,
7431,
29898,
13,
9651,
731,
29898,
7662,
29918,
1989,
9303,
29897,
13,
9651,
669,
731,
29898,
13,
18884,
518,
13,
462,
1678,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1660,
29924,
3235,
4897,
1001,
18118,
1660,
29928,
29892,
13,
462,
1678,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1525,
29924,
2891,
29923,
29918,
29903,
1430,
29903,
4214,
29892,
13,
18884,
4514,
13,
9651,
1723,
13,
4706,
1723,
13,
4706,
2804,
29871,
29900,
13,
268,
1125,
13,
4706,
736,
7700,
13,
1678,
25342,
6503,
29918,
8768,
1275,
6796,
2371,
3108,
29901,
13,
4706,
736,
5852,
13,
1678,
25342,
313,
13,
4706,
731,
29898,
10314,
29918,
8768,
29897,
1275,
8853,
2371,
9092,
13,
4706,
322,
7431,
29898,
10314,
29918,
8768,
29897,
1405,
29871,
29906,
13,
4706,
322,
451,
338,
29918,
12470,
29918,
12011,
292,
29898,
24713,
29918,
1514,
29897,
13,
268,
1125,
13,
4706,
17927,
29889,
25442,
29898,
13,
9651,
376,
275,
29918,
9456,
29901,
1476,
901,
1135,
1023,
6131,
29892,
607,
591,
508,
29915,
29873,
4386,
29889,
29871,
20327,
1250,
304,
2323,
1591,
29908,
13,
4706,
1723,
13,
4706,
736,
5852,
13,
1678,
1683,
29901,
13,
4706,
736,
7700,
13,
13,
13,
1753,
338,
29918,
287,
7467,
391,
29898,
24713,
29918,
1514,
29901,
9657,
29892,
1108,
29918,
14273,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
6503,
29918,
8768,
353,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
1678,
3414,
29918,
1989,
9303,
353,
1108,
29918,
14273,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
13,
1678,
565,
313,
13,
4706,
7431,
29898,
13,
9651,
731,
29898,
7662,
29918,
1989,
9303,
29897,
13,
9651,
669,
731,
29898,
13,
18884,
518,
13,
462,
1678,
903,
17199,
29889,
5398,
2558,
1742,
29889,
5348,
4330,
29990,
29918,
13875,
1799,
6545,
28541,
29892,
13,
462,
1678,
903,
17199,
29889,
5398,
2558,
1742,
29889,
5348,
4330,
29990,
29918,
29940,
6488,
1177,
8098,
29892,
13,
462,
1678,
903,
17199,
29889,
5398,
2558,
1742,
29889,
23714,
29968,
29918,
15094,
4571,
9838,
29892,
13,
18884,
4514,
13,
9651,
1723,
13,
4706,
1723,
13,
4706,
1275,
29871,
29900,
13,
268,
1125,
13,
4706,
736,
7700,
13,
1678,
25342,
376,
12864,
1293,
29908,
297,
6503,
29918,
8768,
29901,
13,
4706,
736,
5852,
13,
1678,
1683,
29901,
13,
4706,
736,
7700,
13,
13,
13,
1753,
338,
29918,
4713,
8270,
29898,
24713,
29918,
1514,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
6796,
2371,
613,
376,
2371,
3108,
1275,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
13,
13,
1753,
338,
29918,
3706,
6358,
29918,
1990,
2450,
29898,
24713,
29918,
1514,
29901,
9657,
29892,
1108,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
3064,
6358,
29918,
10314,
353,
6796,
2371,
613,
376,
3706,
6358,
3108,
1275,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
1678,
12965,
29918,
7662,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
13875,
1799,
6545,
28541,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
736,
3064,
6358,
29918,
10314,
322,
12965,
29918,
7662,
13,
13,
13,
1753,
338,
29918,
3706,
6358,
29918,
1079,
4384,
292,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
903,
17199,
29889,
5398,
2558,
1742,
29889,
5800,
1525,
5454,
1254,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
13,
13,
1753,
338,
29918,
12470,
29918,
12011,
292,
29898,
24713,
29918,
1514,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
620,
29918,
24772,
353,
12705,
4197,
29878,
3366,
690,
2605,
3108,
363,
364,
297,
8783,
29918,
1514,
3366,
1272,
13770,
3108,
2314,
13,
1678,
736,
620,
29918,
24772,
1275,
518,
13,
4706,
376,
24051,
29914,
21891,
1469,
29889,
7638,
613,
13,
4706,
376,
24051,
29914,
2619,
29889,
7638,
613,
13,
4706,
376,
24051,
29914,
18616,
2063,
29889,
7638,
613,
13,
4706,
376,
24051,
29914,
29894,
542,
370,
352,
653,
29889,
7638,
613,
13,
1678,
4514,
13,
13,
13,
1753,
338,
29918,
18494,
29898,
24713,
29918,
1514,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
376,
18494,
29908,
297,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
13,
13,
1753,
338,
29918,
3027,
29898,
24713,
29918,
1514,
29901,
9657,
29892,
1108,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
12965,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
13875,
1799,
6545,
28541,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
17855,
353,
903,
17199,
29889,
5398,
2558,
1742,
29889,
18166,
1525,
13507,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
7592,
29918,
23149,
292,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1525,
29924,
2891,
29923,
29918,
29903,
1430,
29903,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
736,
313,
13,
4706,
376,
3027,
29908,
297,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
4706,
322,
313,
1990,
2450,
470,
17855,
29897,
13,
4706,
322,
451,
7592,
29918,
23149,
292,
13,
1678,
1723,
13,
13,
13,
1753,
338,
29918,
16674,
29918,
23149,
292,
29918,
1457,
3018,
1312,
29898,
24713,
29918,
1514,
29901,
9657,
29892,
1108,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
12965,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
13875,
1799,
6545,
28541,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
17855,
353,
903,
17199,
29889,
5398,
2558,
1742,
29889,
18166,
1525,
13507,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
7592,
29918,
23149,
292,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1525,
29924,
2891,
29923,
29918,
29903,
1430,
29903,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
736,
313,
13,
4706,
376,
3027,
29908,
451,
297,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
4706,
322,
313,
1990,
2450,
470,
17855,
29897,
13,
4706,
322,
7592,
29918,
23149,
292,
13,
4706,
322,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1660,
29924,
3235,
4897,
1001,
18118,
1660,
29928,
13,
4706,
451,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
13,
13,
1753,
338,
29918,
16674,
29918,
23149,
292,
29898,
24713,
29918,
1514,
29901,
9657,
29892,
1108,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
12965,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
13875,
1799,
6545,
28541,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
17855,
353,
903,
17199,
29889,
5398,
2558,
1742,
29889,
18166,
1525,
13507,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
7592,
29918,
23149,
292,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1525,
29924,
2891,
29923,
29918,
29903,
1430,
29903,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
736,
313,
13,
4706,
376,
3027,
29908,
297,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
4706,
322,
313,
1990,
2450,
470,
17855,
29897,
13,
4706,
322,
7592,
29918,
23149,
292,
13,
4706,
322,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1660,
29924,
3235,
4897,
1001,
18118,
1660,
29928,
13,
4706,
451,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
13,
13,
1753,
338,
29918,
3318,
29918,
29881,
2650,
428,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
903,
17199,
29889,
5398,
2558,
1742,
29889,
14824,
17637,
29918,
2287,
4330,
9838,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
13,
13,
1753,
338,
29918,
4262,
29918,
4352,
292,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
903,
17199,
29889,
5398,
2558,
1742,
29889,
14345,
3301,
29950,
29918,
29924,
14789,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
13,
13,
1753,
338,
29918,
23834,
29918,
29881,
2650,
428,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
3217,
7428,
3904,
11937,
29918,
2287,
4330,
9838,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
13,
13,
1753,
338,
29918,
695,
504,
3241,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
903,
17199,
29889,
5398,
2558,
1742,
29889,
6154,
17321,
1001,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
13,
13,
1753,
338,
29918,
369,
4776,
29918,
1990,
2450,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
5348,
4330,
29990,
29918,
13875,
1799,
6545,
28541,
13,
4706,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
13,
13,
1753,
338,
29918,
369,
4776,
29918,
11522,
3381,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
903,
17199,
29889,
5398,
2558,
1742,
29889,
5348,
4330,
29990,
29918,
29940,
6488,
1177,
8098,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
13,
13,
1753,
338,
29918,
22017,
3717,
1230,
29918,
4572,
292,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
3217,
2208,
2882,
1955,
1299,
18474,
29918,
3738,
29931,
4945,
4214,
13,
4706,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
13,
13,
1753,
338,
29918,
2324,
29918,
11965,
2463,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
903,
17199,
29889,
5398,
2558,
1742,
29889,
23714,
29968,
29918,
15094,
4571,
9838,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
13,
13,
1753,
338,
29918,
726,
29898,
24713,
29918,
1514,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
736,
6796,
2371,
613,
376,
726,
3108,
1275,
679,
29918,
10314,
29918,
8768,
29898,
24713,
29918,
1514,
29897,
13,
13,
13,
1753,
338,
29918,
12846,
275,
14805,
11292,
29918,
9456,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
7592,
29918,
23149,
292,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1525,
29924,
2891,
29923,
29918,
29903,
1430,
29903,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
736,
313,
13,
4706,
451,
7592,
29918,
23149,
292,
13,
4706,
322,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1660,
29924,
3235,
4897,
1001,
18118,
1660,
29928,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
13,
13,
1753,
338,
29918,
12846,
275,
14805,
11292,
29918,
16674,
29918,
23149,
292,
29918,
1457,
3018,
1312,
29898,
17199,
29901,
9657,
29897,
1599,
6120,
29901,
13,
1678,
7592,
29918,
23149,
292,
353,
313,
13,
4706,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1525,
29924,
2891,
29923,
29918,
29903,
1430,
29903,
4214,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
1678,
736,
313,
13,
4706,
7592,
29918,
23149,
292,
13,
4706,
322,
903,
17199,
29889,
5398,
2558,
1742,
29889,
1660,
29924,
3235,
4897,
1001,
18118,
1660,
29928,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
1678,
1723,
13,
13,
13,
29937,
1192,
13,
29937,
20829,
292,
13,
13,
13,
1753,
679,
29918,
14608,
292,
29918,
3888,
29898,
24713,
29918,
1514,
29901,
9657,
29892,
1108,
29901,
9657,
29892,
12714,
29901,
851,
29897,
1599,
12603,
552,
29961,
710,
29892,
9657,
5387,
13,
1678,
396,
10575,
29876,
29915,
29873,
14707,
1438,
297,
7797,
1192,
881,
437,
297,
8943,
29892,
769,
1423,
363,
13,
1678,
396,
28792,
13,
13,
1678,
565,
338,
29918,
9456,
29898,
24713,
29918,
1514,
29892,
1108,
1125,
13,
4706,
736,
376,
2371,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
4713,
8270,
29898,
24713,
29918,
1514,
1125,
13,
13,
4706,
7788,
353,
6483,
8552,
29898,
24713,
29918,
1514,
3366,
1272,
13770,
20068,
13,
4706,
6509,
29918,
10314,
353,
518,
13,
9651,
364,
363,
364,
297,
7788,
565,
376,
21891,
1469,
29889,
7638,
29908,
297,
364,
3366,
690,
2605,
3108,
13,
308,
3816,
29900,
29962,
13,
4706,
7788,
29889,
5992,
29898,
21891,
29918,
10314,
29897,
13,
13,
4706,
4974,
7431,
29898,
13237,
29897,
1275,
29871,
29896,
13,
4706,
916,
29918,
10314,
353,
7788,
29961,
29900,
29962,
13,
4706,
338,
29918,
2371,
353,
916,
29918,
10314,
3366,
690,
1542,
3108,
1275,
376,
2371,
29908,
13,
4706,
338,
29918,
10855,
353,
916,
29918,
10314,
29889,
657,
703,
275,
7196,
613,
7700,
29897,
13,
13,
4706,
565,
338,
29918,
2371,
322,
338,
29918,
10855,
29901,
13,
9651,
396,
736,
525,
4713,
8270,
742,
6571,
13,
9651,
736,
376,
2371,
613,
8853,
9910,
1115,
5852,
29913,
13,
13,
4706,
1683,
29901,
13,
9651,
1596,
29898,
13,
18884,
313,
13,
462,
1678,
376,
657,
29918,
14608,
292,
29918,
3888,
29901,
338,
29918,
4713,
8270,
29892,
541,
916,
29918,
10314,
338,
451,
263,
4333,
29905,
29876,
29908,
13,
462,
1678,
376,
20327,
1250,
304,
1591,
313,
387,
29889,
5330,
8253,
7788,
5513,
13,
18884,
10353,
13,
18884,
934,
29922,
9675,
29889,
303,
20405,
29892,
13,
9651,
1723,
13,
13,
9651,
736,
376,
2371,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
12470,
29918,
12011,
292,
29898,
24713,
29918,
1514,
1125,
13,
4706,
736,
376,
12470,
29918,
12011,
292,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
726,
29898,
24713,
29918,
1514,
1125,
13,
4706,
736,
376,
726,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
3027,
29898,
24713,
29918,
1514,
29892,
1108,
1125,
13,
4706,
736,
376,
3027,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
12846,
275,
14805,
11292,
29918,
16674,
29918,
23149,
292,
29918,
1457,
3018,
1312,
29898,
17199,
1125,
13,
4706,
736,
376,
12846,
275,
14805,
11292,
29918,
16674,
29918,
23149,
292,
29918,
1457,
3018,
1312,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
16674,
29918,
23149,
292,
29918,
1457,
3018,
1312,
29898,
24713,
29918,
1514,
29892,
1108,
1125,
13,
4706,
736,
376,
16674,
29918,
23149,
292,
29918,
1457,
3018,
1312,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
16674,
29918,
23149,
292,
29898,
24713,
29918,
1514,
29892,
1108,
1125,
13,
4706,
736,
376,
16674,
29918,
23149,
292,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
3318,
29918,
29881,
2650,
428,
29898,
17199,
1125,
13,
4706,
736,
376,
3318,
29918,
29881,
2650,
428,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
695,
504,
3241,
29898,
17199,
1125,
13,
13,
4706,
7788,
353,
8783,
29918,
1514,
3366,
1272,
13770,
3108,
13,
4706,
4974,
7431,
29898,
13237,
29897,
1275,
29871,
29896,
13,
4706,
6509,
29918,
10314,
353,
7788,
29961,
29900,
29962,
13,
13,
4706,
396,
21443,
2216,
1854,
565,
306,
29915,
29885,
7424,
304,
367,
3063,
472,
445,
13,
4706,
302,
29918,
695,
504,
414,
353,
1108,
3366,
2080,
29879,
3108,
29961,
29900,
29962,
3366,
5182,
29879,
3108,
29961,
29900,
29962,
3366,
695,
504,
414,
29918,
4537,
3108,
13,
13,
4706,
599,
29918,
7411,
353,
731,
29898,
13,
9651,
518,
13,
18884,
364,
3366,
1054,
1542,
3108,
13,
18884,
363,
364,
297,
6509,
29918,
10314,
3366,
13099,
3108,
13,
18884,
565,
4852,
29879,
12981,
2868,
8667,
29908,
451,
297,
364,
3366,
12154,
20068,
322,
4852,
29881,
29941,
29885,
3220,
29908,
2804,
364,
3366,
1054,
1170,
20068,
13,
9651,
4514,
13,
4706,
1723,
1275,
8853,
6370,
9092,
13,
13,
4706,
736,
376,
695,
504,
3241,
613,
426,
13,
9651,
376,
29876,
29918,
695,
504,
414,
1115,
302,
29918,
695,
504,
414,
29892,
13,
9651,
376,
497,
29918,
7411,
1115,
599,
29918,
7411,
29892,
13,
4706,
500,
13,
13,
1678,
25342,
338,
29918,
3706,
6358,
29918,
1990,
2450,
29898,
24713,
29918,
1514,
29892,
1108,
1125,
13,
4706,
736,
313,
13,
9651,
376,
3706,
6358,
29918,
1990,
2450,
613,
13,
9651,
426,
13,
18884,
396,
376,
2527,
10817,
1115,
6024,
29872,
27511,
742,
525,
12690,
1271,
742,
525,
6008,
29893,
7464,
13,
18884,
396,
376,
12765,
3958,
1115,
5852,
29892,
13,
18884,
396,
376,
1454,
342,
1115,
5852,
29892,
13,
18884,
396,
376,
24031,
29918,
2311,
1115,
29871,
29941,
29892,
13,
9651,
2981,
13,
4706,
1723,
13,
13,
1678,
25342,
338,
29918,
3706,
6358,
29918,
1079,
4384,
292,
29898,
17199,
1125,
13,
4706,
736,
376,
3706,
6358,
29918,
1079,
4384,
292,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
18494,
29898,
24713,
29918,
1514,
1125,
13,
4706,
736,
376,
18494,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
4262,
29918,
4352,
292,
29898,
17199,
1125,
13,
4706,
736,
376,
4262,
29918,
4352,
292,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
369,
4776,
29918,
11522,
3381,
29898,
17199,
1125,
13,
4706,
736,
376,
369,
4776,
29918,
11522,
3381,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
369,
4776,
29918,
1990,
2450,
29898,
17199,
1125,
13,
4706,
736,
376,
369,
4776,
29918,
11522,
3381,
613,
8853,
275,
29918,
287,
7467,
391,
1115,
338,
29918,
287,
7467,
391,
29898,
24713,
29918,
1514,
29892,
1108,
2915,
13,
13,
1678,
25342,
338,
29918,
22017,
3717,
1230,
29918,
4572,
292,
29898,
17199,
1125,
13,
4706,
736,
376,
22017,
3717,
1230,
29918,
4572,
292,
613,
6571,
13,
13,
1678,
25342,
338,
29918,
2324,
29918,
11965,
2463,
29898,
17199,
1125,
13,
4706,
736,
376,
2324,
29918,
11965,
2463,
613,
8853,
275,
29918,
287,
7467,
391,
1115,
338,
29918,
287,
7467,
391,
29898,
24713,
29918,
1514,
29892,
1108,
2915,
13,
13,
1678,
25342,
338,
29918,
23834,
29918,
29881,
2650,
428,
29898,
17199,
1125,
13,
4706,
396,
14402,
825,
881,
1014,
1853,
367,
29973,
13,
4706,
4974,
313,
13,
9651,
903,
17199,
29889,
5398,
2558,
1742,
29889,
3217,
7428,
3904,
11937,
29918,
2287,
4330,
9838,
13,
9651,
297,
1108,
3366,
17199,
3108,
3366,
7662,
29918,
1989,
9303,
3108,
13,
4706,
1723,
13,
4706,
736,
376,
23834,
29918,
29881,
2650,
428,
613,
426,
13,
9651,
376,
957,
433,
3262,
1115,
7700,
29892,
13,
4706,
500,
13,
1678,
25342,
338,
29918,
12846,
275,
14805,
11292,
29918,
9456,
29898,
17199,
1125,
13,
4706,
396,
736,
525,
2371,
742,
11117,
12846,
29875,
2396,
5852,
29913,
13,
4706,
736,
376,
12846,
275,
14805,
11292,
29918,
9456,
613,
6571,
13,
13,
1678,
1683,
29901,
13,
4706,
12020,
8960,
703,
6824,
12876,
5229,
373,
1108,
1159,
13,
2
] |
src/resource_resolver/core/ResourceProxy.py | Moyoka22/resource-resolver | 0 | 102860 | <reponame>Moyoka22/resource-resolver<gh_stars>0
import logging
import shutil
from io import StringIO, TextIOBase
from pathlib import Path
import tempfile
from typing import IO, Literal, Union, cast
from .errors import ResourceResolverError
from .managers import ManagerRegistry
class ResourceProxy:
GET_AS_FORMATS = ['str', 'buffer', 'file_handle']
def __init__(self, location: Union[str, IO[str], Path],
read_only=False,
**kwargs):
self._location = location
self._read_only = read_only
Manager = ManagerRegistry.get_manager(location)
if not Manager:
location = repr(location)
raise ResourceResolverError.UnsupportedProtocol(location)
self._manager = Manager(location, **kwargs)
def put(self, data: Union[str, IO[str]]) -> None:
if self.is_read_only:
raise ResourceResolverError.ReadOnly(self._location)
if not (isinstance(data, str) or isinstance(data, TextIOBase)):
raise ResourceResolverError.UnsupportedWriteType(data)
if isinstance(data, str):
data = cast(str, data)
data = self._produce_stream_from_data(data)
data = cast(IO[str], data)
self._manager.put(data)
def get(self, as_a: str) -> Union[str, IO[str], StringIO]:
supported_formats = self.GET_AS_FORMATS
if as_a not in supported_formats:
raise ResourceResolverError.\
UnsupportedGetAsFormat(as_a,
supported_formats)
if as_a == 'str':
return self._manager.get().read()
elif as_a == 'buffer':
buffer = StringIO()
data = self._manager.get()
shutil.copyfileobj(data, buffer)
buffer.seek(0, 0)
return buffer
else:
as_a = cast(Literal['file_handle'], as_a)
return self._manager.get()
@property
def is_read_only(self) -> bool:
return self._read_only
def _produce_stream_from_data(self, data: str) -> IO[str]:
try:
buffer: IO[str] = StringIO(data)
buffer.seek(0, 0)
except MemoryError:
logging.warning('Failed to allocation memory for string. '
f'String has length {len(data)}.')
fp = tempfile.TemporaryFile(mode="w+")
fp.write(data)
fp.seek(0, 0)
return fp
else:
return buffer
| [
1,
529,
276,
1112,
420,
29958,
29924,
12602,
17029,
29906,
29906,
29914,
10314,
29899,
9778,
369,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12183,
13,
5215,
528,
4422,
13,
3166,
12013,
1053,
1714,
5971,
29892,
3992,
5971,
5160,
13,
3166,
2224,
1982,
1053,
10802,
13,
5215,
5694,
1445,
13,
3166,
19229,
1053,
10663,
29892,
5449,
284,
29892,
7761,
29892,
4320,
13,
13,
3166,
869,
12523,
1053,
18981,
19648,
2392,
13,
3166,
869,
1171,
18150,
1053,
15629,
22579,
13,
13,
13,
1990,
18981,
14048,
29901,
13,
1678,
12354,
29918,
3289,
29918,
19094,
1299,
29903,
353,
6024,
710,
742,
525,
9040,
742,
525,
1445,
29918,
8411,
2033,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
4423,
29901,
7761,
29961,
710,
29892,
10663,
29961,
710,
1402,
10802,
1402,
13,
462,
1303,
29918,
6194,
29922,
8824,
29892,
13,
462,
3579,
19290,
1125,
13,
4706,
1583,
3032,
5479,
353,
4423,
13,
4706,
1583,
3032,
949,
29918,
6194,
353,
1303,
29918,
6194,
13,
4706,
15629,
353,
15629,
22579,
29889,
657,
29918,
12847,
29898,
5479,
29897,
13,
4706,
565,
451,
15629,
29901,
13,
9651,
4423,
353,
2062,
29898,
5479,
29897,
13,
9651,
12020,
18981,
19648,
2392,
29889,
25807,
29884,
3016,
287,
17830,
29898,
5479,
29897,
13,
4706,
1583,
3032,
12847,
353,
15629,
29898,
5479,
29892,
3579,
19290,
29897,
13,
13,
1678,
822,
1925,
29898,
1311,
29892,
848,
29901,
7761,
29961,
710,
29892,
10663,
29961,
710,
24960,
1599,
6213,
29901,
13,
4706,
565,
1583,
29889,
275,
29918,
949,
29918,
6194,
29901,
13,
9651,
12020,
18981,
19648,
2392,
29889,
6359,
11730,
29898,
1311,
3032,
5479,
29897,
13,
4706,
565,
451,
313,
275,
8758,
29898,
1272,
29892,
851,
29897,
470,
338,
8758,
29898,
1272,
29892,
3992,
5971,
5160,
22164,
13,
9651,
12020,
18981,
19648,
2392,
29889,
25807,
29884,
3016,
287,
6113,
1542,
29898,
1272,
29897,
13,
13,
4706,
565,
338,
8758,
29898,
1272,
29892,
851,
1125,
13,
9651,
848,
353,
4320,
29898,
710,
29892,
848,
29897,
13,
9651,
848,
353,
1583,
3032,
5498,
346,
29918,
5461,
29918,
3166,
29918,
1272,
29898,
1272,
29897,
13,
13,
4706,
848,
353,
4320,
29898,
5971,
29961,
710,
1402,
848,
29897,
13,
4706,
1583,
3032,
12847,
29889,
649,
29898,
1272,
29897,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
408,
29918,
29874,
29901,
851,
29897,
1599,
7761,
29961,
710,
29892,
10663,
29961,
710,
1402,
1714,
5971,
5387,
13,
4706,
6969,
29918,
689,
1446,
353,
1583,
29889,
7194,
29918,
3289,
29918,
19094,
1299,
29903,
13,
4706,
565,
408,
29918,
29874,
451,
297,
6969,
29918,
689,
1446,
29901,
13,
9651,
12020,
18981,
19648,
2392,
7790,
13,
18884,
853,
23765,
2577,
2887,
5809,
29898,
294,
29918,
29874,
29892,
13,
462,
462,
539,
6969,
29918,
689,
1446,
29897,
13,
4706,
565,
408,
29918,
29874,
1275,
525,
710,
2396,
13,
9651,
736,
1583,
3032,
12847,
29889,
657,
2141,
949,
580,
13,
4706,
25342,
408,
29918,
29874,
1275,
525,
9040,
2396,
13,
9651,
6835,
353,
1714,
5971,
580,
13,
9651,
848,
353,
1583,
3032,
12847,
29889,
657,
580,
13,
9651,
528,
4422,
29889,
8552,
1445,
5415,
29898,
1272,
29892,
6835,
29897,
13,
9651,
6835,
29889,
344,
1416,
29898,
29900,
29892,
29871,
29900,
29897,
13,
9651,
736,
6835,
13,
4706,
1683,
29901,
13,
9651,
408,
29918,
29874,
353,
4320,
29898,
24938,
284,
1839,
1445,
29918,
8411,
7464,
408,
29918,
29874,
29897,
13,
9651,
736,
1583,
3032,
12847,
29889,
657,
580,
13,
13,
1678,
732,
6799,
13,
1678,
822,
338,
29918,
949,
29918,
6194,
29898,
1311,
29897,
1599,
6120,
29901,
13,
4706,
736,
1583,
3032,
949,
29918,
6194,
13,
13,
1678,
822,
903,
5498,
346,
29918,
5461,
29918,
3166,
29918,
1272,
29898,
1311,
29892,
848,
29901,
851,
29897,
1599,
10663,
29961,
710,
5387,
13,
4706,
1018,
29901,
13,
9651,
6835,
29901,
10663,
29961,
710,
29962,
353,
1714,
5971,
29898,
1272,
29897,
13,
9651,
6835,
29889,
344,
1416,
29898,
29900,
29892,
29871,
29900,
29897,
13,
4706,
5174,
18914,
2392,
29901,
13,
9651,
12183,
29889,
27392,
877,
17776,
304,
24082,
3370,
363,
1347,
29889,
525,
13,
462,
9651,
285,
29915,
1231,
756,
3309,
426,
2435,
29898,
1272,
29512,
1495,
13,
9651,
285,
29886,
353,
5694,
1445,
29889,
5776,
1971,
653,
2283,
29898,
8513,
543,
29893,
29974,
1159,
13,
9651,
285,
29886,
29889,
3539,
29898,
1272,
29897,
13,
9651,
285,
29886,
29889,
344,
1416,
29898,
29900,
29892,
29871,
29900,
29897,
13,
9651,
736,
285,
29886,
13,
13,
4706,
1683,
29901,
13,
9651,
736,
6835,
13,
2
] |
orange3/Orange/tests/test_domain.py | rgschmitz1/BioDepot-workflow-builder | 54 | 63788 | # Test methods with long descriptive names can omit docstrings
# pylint: disable=missing-docstring
import warnings
from time import time
from numbers import Real
from itertools import starmap, chain
import unittest
import pickle
import numpy as np
from numpy.testing import assert_array_equal
from Orange.data import (
ContinuousVariable,
DiscreteVariable,
StringVariable,
TimeVariable,
Variable,
Domain,
Table,
DomainConversion,
)
from Orange.data.domain import filter_visible
from Orange.preprocess import Continuize, Impute
from Orange.tests.base import create_pickling_tests
from Orange.util import OrangeDeprecationWarning
def create_domain(*ss):
Variable._clear_all_caches()
vars = dict(
age=ContinuousVariable(name="AGE"),
gender=DiscreteVariable(name="Gender", values=["M", "F"]),
incomeA=ContinuousVariable(name="incomeA"),
income=ContinuousVariable(name="income"),
education=DiscreteVariable(name="education", values=["GS", "HS", "C"]),
ssn=StringVariable(name="SSN"),
race=DiscreteVariable(
name="race", values=["White", "Hypsanic", "African", "Other"]
),
arrival=TimeVariable("arrival"),
)
def map_vars(s):
return [vars[x] for x in s]
return Domain(*[map_vars(s) for s in ss])
PickleDomain = create_pickling_tests(
"PickleDomain",
("empty_domain", lambda: create_domain([])),
("with_continuous_variable", lambda: create_domain(["age"])),
("with_discrete_variable", lambda: create_domain(["gender"])),
("with_mixed_variables", lambda: create_domain(["age", "gender"])),
("with_continuous_class", lambda: create_domain(["age", "gender"], ["incomeA"])),
("with_discrete_class", lambda: create_domain(["age", "gender"], ["education"])),
(
"with_multiple_classes",
lambda: create_domain(["age", "gender"], ["incomeA", "education"]),
),
("with_metas", lambda: create_domain(["age", "gender"], [], ["ssn"])),
(
"with_class_and_metas",
lambda: create_domain(["age", "gender"], ["incomeA", "education"], ["ssn"]),
),
)
age, gender, incomeA, income, education, ssn, race, arrival = create_domain(
[],
[],
["age", "gender", "incomeA", "income", "education", "ssn", "race", "arrival"],
).metas
class TestDomainInit(unittest.TestCase):
def test_init_class(self):
attributes = (age, gender, income)
d = Domain(attributes, race)
self.assertEqual(d.variables, attributes + (race,))
self.assertEqual(d.attributes, attributes)
self.assertEqual(d.class_var, race)
self.assertEqual(d.class_vars, (race,))
self.assertEqual(d.metas, ())
def test_init_class_list(self):
attributes = (age, gender, income)
d = Domain(attributes, [race])
self.assertEqual(d.variables, attributes + (race,))
self.assertEqual(d.attributes, attributes)
self.assertEqual(d.class_var, race)
self.assertEqual(d.class_vars, (race,))
self.assertEqual(d.metas, ())
def test_init_no_class(self):
attributes = (age, gender, income)
d = Domain(attributes)
self.assertEqual(d.variables, attributes)
self.assertEqual(d.attributes, attributes)
self.assertEqual(d.class_var, None)
self.assertEqual(d.class_vars, ())
self.assertEqual(d.metas, ())
def test_init_no_class_false(self):
attributes = (age, gender, income)
d = Domain(attributes, None)
self.assertEqual(d.variables, attributes)
self.assertEqual(d.attributes, attributes)
self.assertEqual(d.class_var, None)
self.assertEqual(d.class_vars, ())
self.assertEqual(d.metas, ())
def test_init_multi_class(self):
attributes = (age, gender, income)
d = Domain(attributes, (education, race))
self.assertEqual(d.variables, attributes + (education, race))
self.assertEqual(d.attributes, attributes)
self.assertIsNone(d.class_var)
self.assertEqual(d.class_vars, (education, race))
self.assertEqual(d.metas, ())
def test_init_source(self):
attributes = (age, gender, income)
d = Domain(attributes, (education, race))
d2 = Domain(["Gender", 0, income], source=d)
self.assertEqual(d2.variables, (gender, age, income))
def test_init_source_class(self):
attributes = (age, gender, income)
d = Domain(attributes, (education, race))
d2 = Domain(["Gender", 0], "income", source=d)
self.assertEqual(d2.variables, (gender, age, income))
def test_init_metas(self):
attributes = (age, gender, income)
metas = (ssn, race)
d = Domain(attributes, race, metas=metas)
self.assertEqual(d.variables, attributes + (race,))
self.assertEqual(d.attributes, attributes)
self.assertEqual(d.class_var, race)
self.assertEqual(d.class_vars, (race,))
self.assertEqual(d.metas, metas)
def test_from_numpy_names(self):
for n_cols, name in [
(5, "Feature {}"),
(99, "Feature {:02}"),
(100, "Feature {:03}"),
]:
d = Domain.from_numpy(np.zeros((1, n_cols)))
self.assertTrue(d.anonymous)
self.assertEqual(
[var.name for var in d.attributes],
[name.format(i) for i in range(1, n_cols + 1)],
)
d = Domain.from_numpy(np.zeros((1, 1)))
self.assertTrue(d.anonymous)
self.assertEqual(d.attributes[0].name, "Feature")
d = Domain.from_numpy(np.zeros((1, 3)), np.zeros((1, 1)), np.zeros((1, 100)))
self.assertTrue(d.anonymous)
self.assertEqual(
[var.name for var in d.attributes],
["Feature {}".format(i) for i in range(1, 4)],
)
self.assertEqual(d.class_var.name, "Target")
self.assertEqual(
[var.name for var in d.metas],
["Meta {:03}".format(i) for i in range(1, 101)],
)
def test_from_numpy_dimensions(self):
for dimension in [[5], [5, 1]]:
d = Domain.from_numpy(np.zeros((1, 1)), np.zeros(dimension))
self.assertTrue(d.anonymous)
self.assertEqual(len(d.class_vars), 1)
self.assertRaises(ValueError, Domain.from_numpy, np.zeros(2))
self.assertRaises(ValueError, Domain.from_numpy, np.zeros((2, 2, 2)))
self.assertRaises(
ValueError, Domain.from_numpy, np.zeros((2, 2)), np.zeros((2, 2, 2))
)
def test_from_numpy_values(self):
for aran_min, aran_max, vartype in [
(1, 3, ContinuousVariable),
(0, 2, DiscreteVariable),
(18, 23, ContinuousVariable),
]:
n_rows, n_cols, = aran_max - aran_min, 1
d = Domain.from_numpy(
np.zeros((1, 1)), np.arange(aran_min, aran_max).reshape(n_rows, n_cols)
)
self.assertTrue(d.anonymous)
self.assertIsInstance(d.class_var, vartype)
if isinstance(vartype, DiscreteVariable):
self.assertEqual(
d.class_var.values, ["v{}".format(i) for i in range(1, 3)]
)
def test_wrong_vartypes(self):
attributes = (age, gender, income)
for args in ((attributes, ssn), (attributes + (ssn,)), ((ssn,) + attributes)):
with self.assertRaises(TypeError):
Domain(*args)
def test_wrong_vartypes_w_source(self):
d = Domain((age, gender), metas=(ssn,))
with self.assertRaises(TypeError):
Domain(-1, source=d)
def test_wrong_types(self):
with self.assertRaises(TypeError):
Domain((age, []))
with self.assertRaises(TypeError):
Domain((age, "income"))
with self.assertRaises(TypeError):
Domain(([], age))
with self.assertRaises(TypeError):
Domain(("income", age))
with self.assertRaises(TypeError):
Domain((age,), self)
with self.assertRaises(TypeError):
Domain((age,), metas=("income",))
def test_get_item(self):
d = Domain((age, gender, income), metas=(ssn, race))
for idx, var in [
(age, age),
("AGE", age),
(0, age),
(income, income),
("income", income),
(2, income),
(ssn, ssn),
("SSN", ssn),
(-1, ssn),
(-2, race),
]:
self.assertEqual(d[idx], var)
def test_index(self):
d = Domain((age, gender, income), metas=(ssn, race))
for idx, var in [
(age, 0),
("AGE", 0),
(0, 0),
(np.int_(0), 0),
(income, 2),
("income", 2),
(2, 2),
(np.int_(2), 2),
(ssn, -1),
("SSN", -1),
(-1, -1),
(np.int_(-1), -1),
(-2, -2),
(np.int_(-2), -2),
]:
self.assertEqual(d.index(idx), var)
def test_get_item_slices(self):
d = Domain((age, gender, income, race), metas=(ssn, race))
self.assertEqual(d[:2], (age, gender))
self.assertEqual(d[1:3], (gender, income))
self.assertEqual(d[2:], (income, race))
def test_get_item_error(self):
d = Domain((age, gender, income), metas=(ssn, race))
for idx in (3, -3, incomeA, "no_such_thing"):
with self.assertRaises(KeyError):
_ = d[idx]
with self.assertRaises(TypeError):
_ = d[[2]]
def test_index_error(self):
d = Domain((age, gender, income), metas=(ssn, race))
for idx in (3, np.int(3), -3, np.int(-3), incomeA, "no_such_thing"):
with self.assertRaises(ValueError):
d.index(idx)
with self.assertRaises(TypeError):
d.index([2])
def test_contains(self):
d = Domain((age, gender, income), metas=(ssn,))
for var in [
"AGE",
age,
0,
np.int_(0),
"income",
income,
2,
np.int_(2),
"SSN",
ssn,
-1,
np.int_(-1),
]:
self.assertIn(var, d)
for var in ["no_such_thing", race, 3, np.int_(3), -2, np.int_(-2)]:
self.assertNotIn(var, d)
with self.assertRaises(TypeError):
{} in d
with self.assertRaises(TypeError):
[] in d
def test_iter(self):
with warnings.catch_warnings(record=True):
warnings.simplefilter("error")
d = Domain((age, gender, income), metas=(ssn,))
with self.assertRaises(OrangeDeprecationWarning):
list(d)
warnings.simplefilter("ignore")
self.assertEqual([var for var in d], [age, gender, income])
d = Domain((age,), metas=(ssn,))
self.assertEqual([var for var in d], [age])
d = Domain((), metas=(ssn,))
self.assertEqual([var for var in d], [])
def test_str(self):
cases = (
(((),), "[]"),
(((age,),), "[AGE]"),
(((), age), "[ | AGE]"),
(((gender,), age), "[Gender | AGE]"),
(((gender, income), None), "[Gender, income]"),
(((gender, income), age), "[Gender, income | AGE]"),
(((gender,), (age, income)), "[Gender | AGE, income]"),
(((gender,), (age, income), (ssn,)), "[Gender | AGE, income] {SSN}"),
(
((gender,), (age, income), (ssn, race)),
"[Gender | AGE, income] {SSN, race}",
),
(((), (), (ssn, race)), "[] {SSN, race}"),
)
for args, printout in cases:
self.assertEqual(str(Domain(*args)), printout)
def test_has_discrete(self):
self.assertFalse(Domain([]).has_discrete_attributes())
self.assertFalse(Domain([], [age]).has_discrete_attributes())
self.assertFalse(Domain([], race).has_discrete_attributes())
self.assertFalse(Domain([age], None).has_discrete_attributes())
self.assertTrue(Domain([race], None).has_discrete_attributes())
self.assertTrue(Domain([age, race], None).has_discrete_attributes())
self.assertTrue(Domain([race, age], None).has_discrete_attributes())
self.assertFalse(Domain([], [age]).has_discrete_attributes(True))
self.assertTrue(Domain([], [race]).has_discrete_attributes(True))
self.assertFalse(Domain([age], None).has_discrete_attributes(True))
self.assertTrue(Domain([race], None).has_discrete_attributes(True))
self.assertTrue(Domain([age], race).has_discrete_attributes(True))
self.assertTrue(Domain([race], age).has_discrete_attributes(True))
self.assertTrue(Domain([], [race, age]).has_discrete_attributes(True))
d = Domain([], None, [gender])
self.assertTrue(d.has_discrete_attributes(False, True))
d = Domain([], None, [age])
self.assertFalse(d.has_discrete_attributes(False, True))
d = Domain([], [age], [gender])
self.assertTrue(d.has_discrete_attributes(True, True))
d = Domain([], [incomeA], [age])
self.assertFalse(d.has_discrete_attributes(True, True))
def test_has_continuous(self):
self.assertFalse(Domain([]).has_continuous_attributes())
self.assertFalse(Domain([], [age]).has_continuous_attributes())
self.assertFalse(Domain([], [race]).has_continuous_attributes())
self.assertTrue(Domain([age], None).has_continuous_attributes())
self.assertFalse(Domain([race], None).has_continuous_attributes())
self.assertTrue(Domain([age, race], None).has_continuous_attributes())
self.assertTrue(Domain([race, age], None).has_continuous_attributes())
self.assertTrue(Domain([], [age]).has_continuous_attributes(True))
self.assertFalse(Domain([], [race]).has_continuous_attributes(True))
self.assertTrue(Domain([age], None).has_continuous_attributes(True))
self.assertFalse(Domain([race], None).has_continuous_attributes(True))
self.assertTrue(Domain([age], race).has_continuous_attributes(True))
self.assertTrue(Domain([race], age).has_continuous_attributes(True))
self.assertTrue(Domain([], [race, age]).has_continuous_attributes(True))
d = Domain([], None, [age])
self.assertTrue(d.has_continuous_attributes(False, True))
d = Domain([], None, [gender])
self.assertFalse(d.has_continuous_attributes(False, True))
d = Domain([], [gender], [age])
self.assertTrue(d.has_continuous_attributes(True, True))
d = Domain([], [race], [gender])
self.assertFalse(d.has_continuous_attributes(True, True))
def test_has_time(self):
self.assertFalse(Domain([]).has_time_attributes())
self.assertFalse(Domain([], [age]).has_time_attributes())
self.assertFalse(Domain([], [race]).has_time_attributes())
self.assertFalse(Domain([], [arrival]).has_time_attributes())
self.assertFalse(Domain([], [], [arrival]).has_time_attributes())
self.assertTrue(Domain([arrival], []).has_time_attributes())
self.assertTrue(Domain([], [arrival]).has_time_attributes(include_class=True))
self.assertTrue(
Domain([], [], [arrival]).has_time_attributes(include_metas=True)
)
self.assertFalse(Domain([arrival], []).has_time_class)
self.assertTrue(Domain([], [arrival]).has_time_class)
self.assertFalse(Domain([], [], [arrival]).has_time_class)
def test_get_conversion(self):
compute_value = lambda: 42
new_income = income.copy(compute_value=compute_value)
d = Domain((age, gender, income), metas=(ssn, race))
e = Domain((gender, race), None, metas=(age, gender, ssn))
f = Domain((gender,), (race, income), metas=(age, income, ssn))
g = Domain((), metas=(age, gender, ssn))
h = Domain((gender,), (race, new_income), metas=(age, new_income, ssn))
for conver, domain, attr, class_vars, metas in (
(d, e, [1, -2], [], [0, 1, -1]),
(d, f, [1], [-2, 2], [0, 2, -1]),
(f, g, [], [], [-1, 0, -3]),
(g, h, [-2], [None, compute_value], [-1, compute_value, -3]),
):
to_domain = domain.get_conversion(conver)
self.assertIs(to_domain.source, conver)
self.assertEqual(to_domain.attributes, attr)
self.assertEqual(to_domain.class_vars, class_vars)
self.assertEqual(to_domain.metas, metas)
def test_conversion(self):
domain = Domain([age, income], [race], [gender, education, ssn])
x, y, metas = domain.convert([42, 13, "White"])
assert_array_equal(x, np.array([42, 13]))
assert_array_equal(y, np.array([0]))
metas_exp = [gender.Unknown, education.Unknown, ssn.Unknown]
def equal(a, b):
if (
isinstance(a, Real)
and isinstance(b, Real)
and np.isnan(a)
and np.isnan(b)
):
return True
else:
return a == b
self.assertTrue(all(starmap(equal, zip(metas, metas_exp))))
x, y, metas = domain.convert([42, 13, "White", "M", "HS", "1234567"])
assert_array_equal(x, np.array([42, 13]))
assert_array_equal(y, np.array([0]))
assert_array_equal(metas, np.array([0, 1, "1234567"], dtype=object))
def test_conversion_size(self):
domain = Domain([age, gender, income], [race])
self.assertRaises(ValueError, domain.convert, [0] * 3)
self.assertRaises(ValueError, domain.convert, [0] * 5)
domain = Domain([age, income], [race], [gender, education, ssn])
self.assertRaises(ValueError, domain.convert, [0] * 2)
self.assertRaises(ValueError, domain.convert, [0] * 4)
self.assertRaises(ValueError, domain.convert, [0] * 7)
domain.convert([0] * 3)
domain.convert([0] * 6)
def test_preprocessor_chaining(self):
domain = Domain(
[DiscreteVariable("a", values="01"), DiscreteVariable("b", values="01")],
DiscreteVariable("y", values="01"),
)
table = Table(domain, [[0, 1], [1, np.NaN]], [0, 1])
pre1 = Continuize()(Impute()(table))
pre2 = Table(pre1.domain, table)
np.testing.assert_almost_equal(pre1.X, pre2.X)
def test_unpickling_recreates_known_domains(self):
Variable._clear_all_caches()
domain = Domain([])
unpickled_domain = pickle.loads(pickle.dumps(domain))
self.assertTrue(hasattr(unpickled_domain, "_known_domains"))
def test_different_domains_with_same_attributes_are_equal(self):
domain1 = Domain([])
domain2 = Domain([])
self.assertEqual(domain1, domain2)
var1 = ContinuousVariable("var1")
domain1.attributes = (var1,)
self.assertNotEqual(domain1, domain2)
domain2.attributes = (var1,)
self.assertEqual(domain1, domain2)
domain1.class_vars = (var1,)
self.assertNotEqual(domain1, domain2)
domain2.class_vars = (var1,)
self.assertEqual(domain1, domain2)
domain1._metas = (var1,)
self.assertNotEqual(domain1, domain2)
domain2._metas = (var1,)
self.assertEqual(domain1, domain2)
def test_domain_conversion_is_fast_enough(self):
attrs = [ContinuousVariable("f%i" % i) for i in range(10000)]
class_vars = [ContinuousVariable("c%i" % i) for i in range(10)]
metas = [ContinuousVariable("m%i" % i) for i in range(10)]
source = Domain(attrs, class_vars, metas)
start = time()
cases = (
(
(attrs[:1000], class_vars, metas),
list(range(1000)),
list(range(10000, 10010)),
list(range(-1, -11, -1)),
),
(
(metas, attrs[:1000], class_vars),
list(range(-1, -11, -1)),
list(range(1000)),
list(range(10000, 10010)),
),
(
(class_vars, metas, attrs[:1000]),
list(range(10000, 10010)),
list(range(-1, -11, -1)),
list(range(1000)),
),
)
for domain_args, attributes, class_vars, metas in cases:
c1 = DomainConversion(source, Domain(*domain_args))
self.assertEqual(c1.attributes, attributes)
self.assertEqual(c1.class_vars, class_vars)
self.assertEqual(c1.metas, metas)
self.assertLessEqual(time() - start, 1)
def test_copy(self):
age.number_of_decimals = 5
attributes = (age, gender, income)
domain = Domain(attributes, [race], [ssn])
new_domain = domain.copy()
new_domain[age].number_of_decimals = 10
self.assertEqual(domain[age].number_of_decimals, 5)
self.assertEqual(new_domain[age].number_of_decimals, 10)
def test_domain_conversion_sparsity(self):
destination = Domain(
attributes=[
ContinuousVariable(name="a"),
ContinuousVariable(name="b"),
ContinuousVariable(name="c"),
],
class_vars=[DiscreteVariable("d", values=["e"])],
metas=[StringVariable("f")],
)
# all dense
source = Domain(attributes=[])
conversion = DomainConversion(source, destination)
self.assertFalse(conversion.sparse_X)
self.assertFalse(conversion.sparse_Y)
self.assertFalse(conversion.sparse_metas)
# set destination attributes as sparse
for a in destination.attributes:
a.sparse = True
source = Domain(attributes=[])
conversion = DomainConversion(source, destination)
self.assertTrue(conversion.sparse_X)
self.assertFalse(conversion.sparse_Y)
self.assertFalse(conversion.sparse_metas)
# set all destination variable as sparse
for a in chain(destination.variables, destination.metas):
a.sparse = True
source = Domain(attributes=[])
conversion = DomainConversion(source, destination)
self.assertTrue(conversion.sparse_X)
self.assertTrue(conversion.sparse_Y)
self.assertFalse(conversion.sparse_metas)
class TestDomainFilter(unittest.TestCase):
def setUp(self):
self.iris = Table("iris")
def test_filter_visible(self):
n_feats = len(self.iris.domain.attributes)
self.iris.domain.attributes[0].attributes.update({"hidden": True})
filtered = list(filter_visible(self.iris.domain.attributes))
self.assertNotIn(self.iris.domain.attributes[0], filtered)
self.assertEqual(len(filtered), n_feats - 1)
if __name__ == "__main__":
unittest.main()
| [
1,
396,
4321,
3519,
411,
1472,
29037,
573,
2983,
508,
288,
2415,
1574,
19651,
13,
29937,
282,
2904,
524,
29901,
11262,
29922,
27259,
29899,
1514,
1807,
13,
5215,
18116,
13,
3166,
931,
1053,
931,
13,
3166,
3694,
1053,
8195,
13,
3166,
4256,
8504,
1053,
5810,
1958,
29892,
9704,
13,
5215,
443,
27958,
13,
5215,
5839,
280,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
12655,
29889,
13424,
1053,
4974,
29918,
2378,
29918,
11745,
13,
13,
3166,
26048,
29889,
1272,
1053,
313,
13,
1678,
2866,
8675,
681,
16174,
29892,
13,
1678,
3295,
9084,
16174,
29892,
13,
1678,
1714,
16174,
29892,
13,
1678,
5974,
16174,
29892,
13,
1678,
28736,
29892,
13,
1678,
28460,
29892,
13,
1678,
6137,
29892,
13,
1678,
28460,
1168,
3259,
29892,
13,
29897,
13,
3166,
26048,
29889,
1272,
29889,
7247,
1053,
4175,
29918,
12872,
13,
3166,
26048,
29889,
1457,
5014,
1053,
2866,
8675,
675,
29892,
1954,
649,
29872,
13,
3166,
26048,
29889,
21150,
29889,
3188,
1053,
1653,
29918,
23945,
1847,
29918,
21150,
13,
3166,
26048,
29889,
4422,
1053,
26048,
8498,
3757,
362,
22709,
13,
13,
13,
1753,
1653,
29918,
7247,
10456,
893,
1125,
13,
1678,
28736,
3032,
8551,
29918,
497,
29918,
29883,
14520,
580,
13,
1678,
24987,
353,
9657,
29898,
13,
4706,
5046,
29922,
1323,
8675,
681,
16174,
29898,
978,
543,
10461,
4968,
13,
4706,
23346,
29922,
4205,
9084,
16174,
29898,
978,
543,
29954,
1581,
613,
1819,
29922,
3366,
29924,
613,
376,
29943,
3108,
511,
13,
4706,
17869,
29909,
29922,
1323,
8675,
681,
16174,
29898,
978,
543,
262,
2763,
29909,
4968,
13,
4706,
17869,
29922,
1323,
8675,
681,
16174,
29898,
978,
543,
262,
2763,
4968,
13,
4706,
9793,
29922,
4205,
9084,
16174,
29898,
978,
543,
287,
1682,
362,
613,
1819,
29922,
3366,
10749,
613,
376,
14851,
613,
376,
29907,
3108,
511,
13,
4706,
269,
16586,
29922,
1231,
16174,
29898,
978,
543,
13429,
4968,
13,
4706,
8175,
29922,
4205,
9084,
16174,
29898,
13,
9651,
1024,
543,
25525,
613,
1819,
29922,
3366,
21823,
613,
376,
26322,
567,
273,
293,
613,
376,
29909,
1341,
2185,
613,
376,
16107,
3108,
13,
4706,
10353,
13,
4706,
18517,
29922,
2481,
16174,
703,
279,
15081,
4968,
13,
1678,
1723,
13,
13,
1678,
822,
2910,
29918,
16908,
29898,
29879,
1125,
13,
4706,
736,
518,
16908,
29961,
29916,
29962,
363,
921,
297,
269,
29962,
13,
13,
1678,
736,
28460,
10456,
29961,
1958,
29918,
16908,
29898,
29879,
29897,
363,
269,
297,
17971,
2314,
13,
13,
13,
29925,
860,
280,
15951,
353,
1653,
29918,
23945,
1847,
29918,
21150,
29898,
13,
1678,
376,
29925,
860,
280,
15951,
613,
13,
1678,
4852,
6310,
29918,
7247,
613,
14013,
29901,
1653,
29918,
7247,
4197,
2314,
511,
13,
1678,
4852,
2541,
29918,
20621,
681,
29918,
11918,
613,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
482,
20068,
511,
13,
1678,
4852,
2541,
29918,
2218,
9084,
29918,
11918,
613,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
26098,
20068,
511,
13,
1678,
4852,
2541,
29918,
29885,
11925,
29918,
20897,
613,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
482,
613,
376,
26098,
20068,
511,
13,
1678,
4852,
2541,
29918,
20621,
681,
29918,
1990,
613,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
482,
613,
376,
26098,
12436,
6796,
262,
2763,
29909,
20068,
511,
13,
1678,
4852,
2541,
29918,
2218,
9084,
29918,
1990,
613,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
482,
613,
376,
26098,
12436,
6796,
287,
1682,
362,
20068,
511,
13,
1678,
313,
13,
4706,
376,
2541,
29918,
20787,
29918,
13203,
613,
13,
4706,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
482,
613,
376,
26098,
12436,
6796,
262,
2763,
29909,
613,
376,
287,
1682,
362,
3108,
511,
13,
1678,
10353,
13,
1678,
4852,
2541,
29918,
2527,
294,
613,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
482,
613,
376,
26098,
12436,
19997,
6796,
893,
29876,
20068,
511,
13,
1678,
313,
13,
4706,
376,
2541,
29918,
1990,
29918,
392,
29918,
2527,
294,
613,
13,
4706,
14013,
29901,
1653,
29918,
7247,
29898,
3366,
482,
613,
376,
26098,
12436,
6796,
262,
2763,
29909,
613,
376,
287,
1682,
362,
12436,
6796,
893,
29876,
3108,
511,
13,
1678,
10353,
13,
29897,
13,
13,
13,
482,
29892,
23346,
29892,
17869,
29909,
29892,
17869,
29892,
9793,
29892,
269,
16586,
29892,
8175,
29892,
18517,
353,
1653,
29918,
7247,
29898,
13,
1678,
19997,
13,
1678,
19997,
13,
1678,
6796,
482,
613,
376,
26098,
613,
376,
262,
2763,
29909,
613,
376,
262,
2763,
613,
376,
287,
1682,
362,
613,
376,
893,
29876,
613,
376,
25525,
613,
376,
279,
15081,
12436,
13,
467,
2527,
294,
13,
13,
13,
1990,
4321,
15951,
6644,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
2344,
29918,
1990,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29892,
8175,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
20897,
29892,
8393,
718,
313,
25525,
29892,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
15697,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
1707,
29892,
8175,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
16908,
29892,
313,
25525,
29892,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
2527,
294,
29892,
313,
876,
13,
13,
1678,
822,
1243,
29918,
2344,
29918,
1990,
29918,
1761,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29892,
518,
25525,
2314,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
20897,
29892,
8393,
718,
313,
25525,
29892,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
15697,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
1707,
29892,
8175,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
16908,
29892,
313,
25525,
29892,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
2527,
294,
29892,
313,
876,
13,
13,
1678,
822,
1243,
29918,
2344,
29918,
1217,
29918,
1990,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
20897,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
15697,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
1707,
29892,
6213,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
16908,
29892,
313,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
2527,
294,
29892,
313,
876,
13,
13,
1678,
822,
1243,
29918,
2344,
29918,
1217,
29918,
1990,
29918,
4541,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29892,
6213,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
20897,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
15697,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
1707,
29892,
6213,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
16908,
29892,
313,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
2527,
294,
29892,
313,
876,
13,
13,
1678,
822,
1243,
29918,
2344,
29918,
9910,
29918,
1990,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29892,
313,
287,
1682,
362,
29892,
8175,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
20897,
29892,
8393,
718,
313,
287,
1682,
362,
29892,
8175,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
15697,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
3624,
8516,
29898,
29881,
29889,
1990,
29918,
1707,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
16908,
29892,
313,
287,
1682,
362,
29892,
8175,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
2527,
294,
29892,
313,
876,
13,
13,
1678,
822,
1243,
29918,
2344,
29918,
4993,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29892,
313,
287,
1682,
362,
29892,
8175,
876,
13,
4706,
270,
29906,
353,
28460,
29898,
3366,
29954,
1581,
613,
29871,
29900,
29892,
17869,
1402,
2752,
29922,
29881,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29906,
29889,
20897,
29892,
313,
26098,
29892,
5046,
29892,
17869,
876,
13,
13,
1678,
822,
1243,
29918,
2344,
29918,
4993,
29918,
1990,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29892,
313,
287,
1682,
362,
29892,
8175,
876,
13,
4706,
270,
29906,
353,
28460,
29898,
3366,
29954,
1581,
613,
29871,
29900,
1402,
376,
262,
2763,
613,
2752,
29922,
29881,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29906,
29889,
20897,
29892,
313,
26098,
29892,
5046,
29892,
17869,
876,
13,
13,
1678,
822,
1243,
29918,
2344,
29918,
2527,
294,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
1539,
294,
353,
313,
893,
29876,
29892,
8175,
29897,
13,
4706,
270,
353,
28460,
29898,
15697,
29892,
8175,
29892,
1539,
294,
29922,
2527,
294,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
20897,
29892,
8393,
718,
313,
25525,
29892,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
15697,
29892,
8393,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
1707,
29892,
8175,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
16908,
29892,
313,
25525,
29892,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
2527,
294,
29892,
1539,
294,
29897,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
23749,
29918,
7039,
29898,
1311,
1125,
13,
4706,
363,
302,
29918,
22724,
29892,
1024,
297,
518,
13,
9651,
313,
29945,
29892,
376,
19132,
6571,
4968,
13,
9651,
313,
29929,
29929,
29892,
376,
19132,
12365,
29900,
29906,
29913,
4968,
13,
9651,
313,
29896,
29900,
29900,
29892,
376,
19132,
12365,
29900,
29941,
29913,
4968,
13,
4706,
4514,
29901,
13,
9651,
270,
353,
28460,
29889,
3166,
29918,
23749,
29898,
9302,
29889,
3298,
359,
3552,
29896,
29892,
302,
29918,
22724,
4961,
13,
9651,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
25772,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
13,
18884,
518,
1707,
29889,
978,
363,
722,
297,
270,
29889,
15697,
1402,
13,
18884,
518,
978,
29889,
4830,
29898,
29875,
29897,
363,
474,
297,
3464,
29898,
29896,
29892,
302,
29918,
22724,
718,
29871,
29896,
29897,
1402,
13,
9651,
1723,
13,
13,
4706,
270,
353,
28460,
29889,
3166,
29918,
23749,
29898,
9302,
29889,
3298,
359,
3552,
29896,
29892,
29871,
29896,
4961,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
25772,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
15697,
29961,
29900,
1822,
978,
29892,
376,
19132,
1159,
13,
13,
4706,
270,
353,
28460,
29889,
3166,
29918,
23749,
29898,
9302,
29889,
3298,
359,
3552,
29896,
29892,
29871,
29941,
8243,
7442,
29889,
3298,
359,
3552,
29896,
29892,
29871,
29896,
8243,
7442,
29889,
3298,
359,
3552,
29896,
29892,
29871,
29896,
29900,
29900,
4961,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
25772,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13,
9651,
518,
1707,
29889,
978,
363,
722,
297,
270,
29889,
15697,
1402,
13,
9651,
6796,
19132,
6571,
1642,
4830,
29898,
29875,
29897,
363,
474,
297,
3464,
29898,
29896,
29892,
29871,
29946,
29897,
1402,
13,
4706,
1723,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
1990,
29918,
1707,
29889,
978,
29892,
376,
8667,
1159,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13,
9651,
518,
1707,
29889,
978,
363,
722,
297,
270,
29889,
2527,
294,
1402,
13,
9651,
6796,
19346,
12365,
29900,
29941,
29913,
1642,
4830,
29898,
29875,
29897,
363,
474,
297,
3464,
29898,
29896,
29892,
29871,
29896,
29900,
29896,
29897,
1402,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
23749,
29918,
6229,
5580,
29898,
1311,
1125,
13,
4706,
363,
9927,
297,
5519,
29945,
1402,
518,
29945,
29892,
29871,
29896,
5262,
29901,
13,
9651,
270,
353,
28460,
29889,
3166,
29918,
23749,
29898,
9302,
29889,
3298,
359,
3552,
29896,
29892,
29871,
29896,
8243,
7442,
29889,
3298,
359,
29898,
6229,
2673,
876,
13,
9651,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
25772,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
29881,
29889,
1990,
29918,
16908,
511,
29871,
29896,
29897,
13,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
29892,
28460,
29889,
3166,
29918,
23749,
29892,
7442,
29889,
3298,
359,
29898,
29906,
876,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
29892,
28460,
29889,
3166,
29918,
23749,
29892,
7442,
29889,
3298,
359,
3552,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
4961,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
13,
9651,
7865,
2392,
29892,
28460,
29889,
3166,
29918,
23749,
29892,
7442,
29889,
3298,
359,
3552,
29906,
29892,
29871,
29906,
8243,
7442,
29889,
3298,
359,
3552,
29906,
29892,
29871,
29906,
29892,
29871,
29906,
876,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
23749,
29918,
5975,
29898,
1311,
1125,
13,
4706,
363,
564,
273,
29918,
1195,
29892,
564,
273,
29918,
3317,
29892,
325,
442,
668,
297,
518,
13,
9651,
313,
29896,
29892,
29871,
29941,
29892,
2866,
8675,
681,
16174,
511,
13,
9651,
313,
29900,
29892,
29871,
29906,
29892,
3295,
9084,
16174,
511,
13,
9651,
313,
29896,
29947,
29892,
29871,
29906,
29941,
29892,
2866,
8675,
681,
16174,
511,
13,
4706,
4514,
29901,
13,
9651,
302,
29918,
5727,
29892,
302,
29918,
22724,
29892,
353,
564,
273,
29918,
3317,
448,
564,
273,
29918,
1195,
29892,
29871,
29896,
13,
9651,
270,
353,
28460,
29889,
3166,
29918,
23749,
29898,
13,
18884,
7442,
29889,
3298,
359,
3552,
29896,
29892,
29871,
29896,
8243,
7442,
29889,
279,
927,
29898,
23029,
29918,
1195,
29892,
564,
273,
29918,
3317,
467,
690,
14443,
29898,
29876,
29918,
5727,
29892,
302,
29918,
22724,
29897,
13,
9651,
1723,
13,
9651,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
25772,
29897,
13,
9651,
1583,
29889,
9294,
3624,
4998,
29898,
29881,
29889,
1990,
29918,
1707,
29892,
325,
442,
668,
29897,
13,
9651,
565,
338,
8758,
29898,
29894,
442,
668,
29892,
3295,
9084,
16174,
1125,
13,
18884,
1583,
29889,
9294,
9843,
29898,
13,
462,
1678,
270,
29889,
1990,
29918,
1707,
29889,
5975,
29892,
6796,
29894,
8875,
1642,
4830,
29898,
29875,
29897,
363,
474,
297,
3464,
29898,
29896,
29892,
29871,
29941,
4638,
13,
18884,
1723,
13,
13,
1678,
822,
1243,
29918,
15866,
549,
29918,
29894,
442,
7384,
29898,
1311,
1125,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
4706,
363,
6389,
297,
5135,
15697,
29892,
269,
16586,
511,
313,
15697,
718,
313,
893,
29876,
29892,
8243,
5135,
893,
29876,
29892,
29897,
718,
8393,
22164,
13,
9651,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
18884,
28460,
10456,
5085,
29897,
13,
13,
1678,
822,
1243,
29918,
15866,
549,
29918,
29894,
442,
7384,
29918,
29893,
29918,
4993,
29898,
1311,
1125,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
511,
1539,
294,
7607,
893,
29876,
29892,
876,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
28460,
6278,
29896,
29892,
2752,
29922,
29881,
29897,
13,
13,
1678,
822,
1243,
29918,
15866,
549,
29918,
8768,
29898,
1311,
1125,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
28460,
3552,
482,
29892,
5159,
876,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
28460,
3552,
482,
29892,
376,
262,
2763,
5783,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
28460,
3552,
29961,
1402,
5046,
876,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
28460,
29898,
703,
262,
2763,
613,
5046,
876,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
28460,
3552,
482,
29892,
511,
1583,
29897,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
28460,
3552,
482,
29892,
511,
1539,
294,
29922,
703,
262,
2763,
613,
876,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
667,
29898,
1311,
1125,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
511,
1539,
294,
7607,
893,
29876,
29892,
8175,
876,
13,
4706,
363,
22645,
29892,
722,
297,
518,
13,
9651,
313,
482,
29892,
5046,
511,
13,
9651,
4852,
10461,
613,
5046,
511,
13,
9651,
313,
29900,
29892,
5046,
511,
13,
9651,
313,
262,
2763,
29892,
17869,
511,
13,
9651,
4852,
262,
2763,
613,
17869,
511,
13,
9651,
313,
29906,
29892,
17869,
511,
13,
9651,
313,
893,
29876,
29892,
269,
16586,
511,
13,
9651,
4852,
13429,
613,
269,
16586,
511,
13,
9651,
8521,
29896,
29892,
269,
16586,
511,
13,
9651,
8521,
29906,
29892,
8175,
511,
13,
4706,
4514,
29901,
13,
9651,
1583,
29889,
9294,
9843,
29898,
29881,
29961,
13140,
1402,
722,
29897,
13,
13,
1678,
822,
1243,
29918,
2248,
29898,
1311,
1125,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
511,
1539,
294,
7607,
893,
29876,
29892,
8175,
876,
13,
4706,
363,
22645,
29892,
722,
297,
518,
13,
9651,
313,
482,
29892,
29871,
29900,
511,
13,
9651,
4852,
10461,
613,
29871,
29900,
511,
13,
9651,
313,
29900,
29892,
29871,
29900,
511,
13,
9651,
313,
9302,
29889,
524,
23538,
29900,
511,
29871,
29900,
511,
13,
9651,
313,
262,
2763,
29892,
29871,
29906,
511,
13,
9651,
4852,
262,
2763,
613,
29871,
29906,
511,
13,
9651,
313,
29906,
29892,
29871,
29906,
511,
13,
9651,
313,
9302,
29889,
524,
23538,
29906,
511,
29871,
29906,
511,
13,
9651,
313,
893,
29876,
29892,
448,
29896,
511,
13,
9651,
4852,
13429,
613,
448,
29896,
511,
13,
9651,
8521,
29896,
29892,
448,
29896,
511,
13,
9651,
313,
9302,
29889,
524,
29918,
6278,
29896,
511,
448,
29896,
511,
13,
9651,
8521,
29906,
29892,
448,
29906,
511,
13,
9651,
313,
9302,
29889,
524,
29918,
6278,
29906,
511,
448,
29906,
511,
13,
4706,
4514,
29901,
13,
9651,
1583,
29889,
9294,
9843,
29898,
29881,
29889,
2248,
29898,
13140,
511,
722,
29897,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
667,
29918,
29879,
29399,
29898,
1311,
1125,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
29892,
8175,
511,
1539,
294,
7607,
893,
29876,
29892,
8175,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
7503,
29906,
1402,
313,
482,
29892,
23346,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29961,
29896,
29901,
29941,
1402,
313,
26098,
29892,
17869,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
29881,
29961,
29906,
29901,
1402,
313,
262,
2763,
29892,
8175,
876,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
667,
29918,
2704,
29898,
1311,
1125,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
511,
1539,
294,
7607,
893,
29876,
29892,
8175,
876,
13,
4706,
363,
22645,
297,
313,
29941,
29892,
448,
29941,
29892,
17869,
29909,
29892,
376,
1217,
29918,
14565,
29918,
1918,
29908,
1125,
13,
9651,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
2558,
2392,
1125,
13,
18884,
903,
353,
270,
29961,
13140,
29962,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
903,
353,
270,
8999,
29906,
5262,
13,
13,
1678,
822,
1243,
29918,
2248,
29918,
2704,
29898,
1311,
1125,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
511,
1539,
294,
7607,
893,
29876,
29892,
8175,
876,
13,
4706,
363,
22645,
297,
313,
29941,
29892,
7442,
29889,
524,
29898,
29941,
511,
448,
29941,
29892,
7442,
29889,
524,
6278,
29941,
511,
17869,
29909,
29892,
376,
1217,
29918,
14565,
29918,
1918,
29908,
1125,
13,
9651,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
1125,
13,
18884,
270,
29889,
2248,
29898,
13140,
29897,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
270,
29889,
2248,
4197,
29906,
2314,
13,
13,
1678,
822,
1243,
29918,
11516,
29898,
1311,
1125,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
511,
1539,
294,
7607,
893,
29876,
29892,
876,
13,
4706,
363,
722,
297,
518,
13,
9651,
376,
10461,
613,
13,
9651,
5046,
29892,
13,
632,
29900,
29892,
13,
9651,
7442,
29889,
524,
23538,
29900,
511,
13,
9651,
376,
262,
2763,
613,
13,
9651,
17869,
29892,
13,
632,
29906,
29892,
13,
9651,
7442,
29889,
524,
23538,
29906,
511,
13,
9651,
376,
13429,
613,
13,
9651,
269,
16586,
29892,
13,
9651,
448,
29896,
29892,
13,
9651,
7442,
29889,
524,
29918,
6278,
29896,
511,
13,
4706,
4514,
29901,
13,
9651,
1583,
29889,
9294,
797,
29898,
1707,
29892,
270,
29897,
13,
13,
4706,
363,
722,
297,
6796,
1217,
29918,
14565,
29918,
1918,
613,
8175,
29892,
29871,
29941,
29892,
7442,
29889,
524,
23538,
29941,
511,
448,
29906,
29892,
7442,
29889,
524,
29918,
6278,
29906,
4638,
29901,
13,
9651,
1583,
29889,
9294,
3664,
797,
29898,
1707,
29892,
270,
29897,
13,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
6571,
297,
270,
13,
4706,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1542,
2392,
1125,
13,
9651,
5159,
297,
270,
13,
13,
1678,
822,
1243,
29918,
1524,
29898,
1311,
1125,
13,
4706,
411,
18116,
29889,
12510,
29918,
25442,
886,
29898,
11651,
29922,
5574,
1125,
13,
9651,
18116,
29889,
12857,
4572,
703,
2704,
1159,
13,
13,
9651,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
511,
1539,
294,
7607,
893,
29876,
29892,
876,
13,
9651,
411,
1583,
29889,
9294,
29934,
1759,
267,
29898,
29949,
3881,
8498,
3757,
362,
22709,
1125,
13,
18884,
1051,
29898,
29881,
29897,
13,
13,
9651,
18116,
29889,
12857,
4572,
703,
17281,
1159,
13,
9651,
1583,
29889,
9294,
9843,
4197,
1707,
363,
722,
297,
270,
1402,
518,
482,
29892,
23346,
29892,
17869,
2314,
13,
13,
9651,
270,
353,
28460,
3552,
482,
29892,
511,
1539,
294,
7607,
893,
29876,
29892,
876,
13,
9651,
1583,
29889,
9294,
9843,
4197,
1707,
363,
722,
297,
270,
1402,
518,
482,
2314,
13,
13,
9651,
270,
353,
28460,
29898,
3285,
1539,
294,
7607,
893,
29876,
29892,
876,
13,
9651,
1583,
29889,
9294,
9843,
4197,
1707,
363,
722,
297,
270,
1402,
518,
2314,
13,
13,
1678,
822,
1243,
29918,
710,
29898,
1311,
1125,
13,
4706,
4251,
353,
313,
13,
9651,
5135,
3285,
511,
376,
2636,
4968,
13,
9651,
313,
3552,
482,
29892,
511,
511,
14704,
10461,
29962,
4968,
13,
9651,
5135,
3285,
5046,
511,
14704,
891,
319,
1692,
29962,
4968,
13,
9651,
313,
3552,
26098,
29892,
511,
5046,
511,
14704,
29954,
1581,
891,
319,
1692,
29962,
4968,
13,
9651,
313,
3552,
26098,
29892,
17869,
511,
6213,
511,
14704,
29954,
1581,
29892,
17869,
29962,
4968,
13,
9651,
313,
3552,
26098,
29892,
17869,
511,
5046,
511,
14704,
29954,
1581,
29892,
17869,
891,
319,
1692,
29962,
4968,
13,
9651,
313,
3552,
26098,
29892,
511,
313,
482,
29892,
17869,
8243,
14704,
29954,
1581,
891,
319,
1692,
29892,
17869,
29962,
4968,
13,
9651,
313,
3552,
26098,
29892,
511,
313,
482,
29892,
17869,
511,
313,
893,
29876,
29892,
8243,
14704,
29954,
1581,
891,
319,
1692,
29892,
17869,
29962,
426,
13429,
29913,
4968,
13,
9651,
313,
13,
18884,
5135,
26098,
29892,
511,
313,
482,
29892,
17869,
511,
313,
893,
29876,
29892,
8175,
8243,
13,
18884,
14704,
29954,
1581,
891,
319,
1692,
29892,
17869,
29962,
426,
13429,
29892,
8175,
17671,
13,
9651,
10353,
13,
9651,
5135,
3285,
313,
511,
313,
893,
29876,
29892,
8175,
8243,
376,
2636,
426,
13429,
29892,
8175,
29913,
4968,
13,
4706,
1723,
13,
13,
4706,
363,
6389,
29892,
1596,
449,
297,
4251,
29901,
13,
9651,
1583,
29889,
9294,
9843,
29898,
710,
29898,
15951,
10456,
5085,
8243,
1596,
449,
29897,
13,
13,
1678,
822,
1243,
29918,
5349,
29918,
2218,
9084,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
29898,
2636,
467,
5349,
29918,
2218,
9084,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
482,
14664,
5349,
29918,
2218,
9084,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
8175,
467,
5349,
29918,
2218,
9084,
29918,
15697,
3101,
13,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
482,
1402,
6213,
467,
5349,
29918,
2218,
9084,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
25525,
1402,
6213,
467,
5349,
29918,
2218,
9084,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
482,
29892,
8175,
1402,
6213,
467,
5349,
29918,
2218,
9084,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
25525,
29892,
5046,
1402,
6213,
467,
5349,
29918,
2218,
9084,
29918,
15697,
3101,
13,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
482,
14664,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
1402,
518,
25525,
14664,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
482,
1402,
6213,
467,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
25525,
1402,
6213,
467,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
482,
1402,
8175,
467,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
25525,
1402,
5046,
467,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
1402,
518,
25525,
29892,
5046,
14664,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
876,
13,
13,
4706,
270,
353,
28460,
4197,
1402,
6213,
29892,
518,
26098,
2314,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
8824,
29892,
5852,
876,
13,
4706,
270,
353,
28460,
4197,
1402,
6213,
29892,
518,
482,
2314,
13,
4706,
1583,
29889,
9294,
8824,
29898,
29881,
29889,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
8824,
29892,
5852,
876,
13,
4706,
270,
353,
28460,
4197,
1402,
518,
482,
1402,
518,
26098,
2314,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
29892,
5852,
876,
13,
4706,
270,
353,
28460,
4197,
1402,
518,
262,
2763,
29909,
1402,
518,
482,
2314,
13,
4706,
1583,
29889,
9294,
8824,
29898,
29881,
29889,
5349,
29918,
2218,
9084,
29918,
15697,
29898,
5574,
29892,
5852,
876,
13,
13,
1678,
822,
1243,
29918,
5349,
29918,
20621,
681,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
29898,
2636,
467,
5349,
29918,
20621,
681,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
482,
14664,
5349,
29918,
20621,
681,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
25525,
14664,
5349,
29918,
20621,
681,
29918,
15697,
3101,
13,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
482,
1402,
6213,
467,
5349,
29918,
20621,
681,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
25525,
1402,
6213,
467,
5349,
29918,
20621,
681,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
482,
29892,
8175,
1402,
6213,
467,
5349,
29918,
20621,
681,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
25525,
29892,
5046,
1402,
6213,
467,
5349,
29918,
20621,
681,
29918,
15697,
3101,
13,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
1402,
518,
482,
14664,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
25525,
14664,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
482,
1402,
6213,
467,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
25525,
1402,
6213,
467,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
482,
1402,
8175,
467,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
25525,
1402,
5046,
467,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
1402,
518,
25525,
29892,
5046,
14664,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
876,
13,
13,
4706,
270,
353,
28460,
4197,
1402,
6213,
29892,
518,
482,
2314,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
5349,
29918,
20621,
681,
29918,
15697,
29898,
8824,
29892,
5852,
876,
13,
4706,
270,
353,
28460,
4197,
1402,
6213,
29892,
518,
26098,
2314,
13,
4706,
1583,
29889,
9294,
8824,
29898,
29881,
29889,
5349,
29918,
20621,
681,
29918,
15697,
29898,
8824,
29892,
5852,
876,
13,
4706,
270,
353,
28460,
4197,
1402,
518,
26098,
1402,
518,
482,
2314,
13,
4706,
1583,
29889,
9294,
5574,
29898,
29881,
29889,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
29892,
5852,
876,
13,
4706,
270,
353,
28460,
4197,
1402,
518,
25525,
1402,
518,
26098,
2314,
13,
4706,
1583,
29889,
9294,
8824,
29898,
29881,
29889,
5349,
29918,
20621,
681,
29918,
15697,
29898,
5574,
29892,
5852,
876,
13,
13,
1678,
822,
1243,
29918,
5349,
29918,
2230,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
29898,
2636,
467,
5349,
29918,
2230,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
482,
14664,
5349,
29918,
2230,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
25525,
14664,
5349,
29918,
2230,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
518,
279,
15081,
14664,
5349,
29918,
2230,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
19997,
518,
279,
15081,
14664,
5349,
29918,
2230,
29918,
15697,
3101,
13,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
279,
15081,
1402,
5159,
467,
5349,
29918,
2230,
29918,
15697,
3101,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
1402,
518,
279,
15081,
14664,
5349,
29918,
2230,
29918,
15697,
29898,
2856,
29918,
1990,
29922,
5574,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
13,
9651,
28460,
4197,
1402,
19997,
518,
279,
15081,
14664,
5349,
29918,
2230,
29918,
15697,
29898,
2856,
29918,
2527,
294,
29922,
5574,
29897,
13,
4706,
1723,
13,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
279,
15081,
1402,
5159,
467,
5349,
29918,
2230,
29918,
1990,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
15951,
4197,
1402,
518,
279,
15081,
14664,
5349,
29918,
2230,
29918,
1990,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
15951,
4197,
1402,
19997,
518,
279,
15081,
14664,
5349,
29918,
2230,
29918,
1990,
29897,
13,
13,
1678,
822,
1243,
29918,
657,
29918,
535,
3259,
29898,
1311,
1125,
13,
4706,
10272,
29918,
1767,
353,
14013,
29901,
29871,
29946,
29906,
13,
4706,
716,
29918,
262,
2763,
353,
17869,
29889,
8552,
29898,
26017,
29918,
1767,
29922,
26017,
29918,
1767,
29897,
13,
13,
4706,
270,
353,
28460,
3552,
482,
29892,
23346,
29892,
17869,
511,
1539,
294,
7607,
893,
29876,
29892,
8175,
876,
13,
4706,
321,
353,
28460,
3552,
26098,
29892,
8175,
511,
6213,
29892,
1539,
294,
7607,
482,
29892,
23346,
29892,
269,
16586,
876,
13,
4706,
285,
353,
28460,
3552,
26098,
29892,
511,
313,
25525,
29892,
17869,
511,
1539,
294,
7607,
482,
29892,
17869,
29892,
269,
16586,
876,
13,
4706,
330,
353,
28460,
29898,
3285,
1539,
294,
7607,
482,
29892,
23346,
29892,
269,
16586,
876,
13,
4706,
298,
353,
28460,
3552,
26098,
29892,
511,
313,
25525,
29892,
716,
29918,
262,
2763,
511,
1539,
294,
7607,
482,
29892,
716,
29918,
262,
2763,
29892,
269,
16586,
876,
13,
13,
4706,
363,
5486,
29892,
5354,
29892,
12421,
29892,
770,
29918,
16908,
29892,
1539,
294,
297,
313,
13,
9651,
313,
29881,
29892,
321,
29892,
518,
29896,
29892,
448,
29906,
1402,
19997,
518,
29900,
29892,
29871,
29896,
29892,
448,
29896,
11724,
13,
9651,
313,
29881,
29892,
285,
29892,
518,
29896,
1402,
21069,
29906,
29892,
29871,
29906,
1402,
518,
29900,
29892,
29871,
29906,
29892,
448,
29896,
11724,
13,
9651,
313,
29888,
29892,
330,
29892,
19997,
19997,
21069,
29896,
29892,
29871,
29900,
29892,
448,
29941,
11724,
13,
9651,
313,
29887,
29892,
298,
29892,
21069,
29906,
1402,
518,
8516,
29892,
10272,
29918,
1767,
1402,
21069,
29896,
29892,
10272,
29918,
1767,
29892,
448,
29941,
11724,
13,
308,
1125,
13,
9651,
304,
29918,
7247,
353,
5354,
29889,
657,
29918,
535,
3259,
29898,
535,
369,
29897,
13,
9651,
1583,
29889,
9294,
3624,
29898,
517,
29918,
7247,
29889,
4993,
29892,
5486,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
517,
29918,
7247,
29889,
15697,
29892,
12421,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
517,
29918,
7247,
29889,
1990,
29918,
16908,
29892,
770,
29918,
16908,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
517,
29918,
7247,
29889,
2527,
294,
29892,
1539,
294,
29897,
13,
13,
1678,
822,
1243,
29918,
535,
3259,
29898,
1311,
1125,
13,
4706,
5354,
353,
28460,
4197,
482,
29892,
17869,
1402,
518,
25525,
1402,
518,
26098,
29892,
9793,
29892,
269,
16586,
2314,
13,
13,
4706,
921,
29892,
343,
29892,
1539,
294,
353,
5354,
29889,
13441,
4197,
29946,
29906,
29892,
29871,
29896,
29941,
29892,
376,
21823,
20068,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
29916,
29892,
7442,
29889,
2378,
4197,
29946,
29906,
29892,
29871,
29896,
29941,
12622,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
29891,
29892,
7442,
29889,
2378,
4197,
29900,
12622,
13,
4706,
1539,
294,
29918,
4548,
353,
518,
26098,
29889,
14148,
29892,
9793,
29889,
14148,
29892,
269,
16586,
29889,
14148,
29962,
13,
13,
4706,
822,
5186,
29898,
29874,
29892,
289,
1125,
13,
9651,
565,
313,
13,
18884,
338,
8758,
29898,
29874,
29892,
8195,
29897,
13,
18884,
322,
338,
8758,
29898,
29890,
29892,
8195,
29897,
13,
18884,
322,
7442,
29889,
275,
13707,
29898,
29874,
29897,
13,
18884,
322,
7442,
29889,
275,
13707,
29898,
29890,
29897,
13,
632,
1125,
13,
18884,
736,
5852,
13,
9651,
1683,
29901,
13,
18884,
736,
263,
1275,
289,
13,
13,
4706,
1583,
29889,
9294,
5574,
29898,
497,
29898,
8508,
1958,
29898,
11745,
29892,
14319,
29898,
2527,
294,
29892,
1539,
294,
29918,
4548,
13697,
13,
13,
4706,
921,
29892,
343,
29892,
1539,
294,
353,
5354,
29889,
13441,
4197,
29946,
29906,
29892,
29871,
29896,
29941,
29892,
376,
21823,
613,
376,
29924,
613,
376,
14851,
613,
376,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
20068,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
29916,
29892,
7442,
29889,
2378,
4197,
29946,
29906,
29892,
29871,
29896,
29941,
12622,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
29891,
29892,
7442,
29889,
2378,
4197,
29900,
12622,
13,
4706,
4974,
29918,
2378,
29918,
11745,
29898,
2527,
294,
29892,
7442,
29889,
2378,
4197,
29900,
29892,
29871,
29896,
29892,
376,
29896,
29906,
29941,
29946,
29945,
29953,
29955,
12436,
26688,
29922,
3318,
876,
13,
13,
1678,
822,
1243,
29918,
535,
3259,
29918,
2311,
29898,
1311,
1125,
13,
4706,
5354,
353,
28460,
4197,
482,
29892,
23346,
29892,
17869,
1402,
518,
25525,
2314,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
29892,
5354,
29889,
13441,
29892,
518,
29900,
29962,
334,
29871,
29941,
29897,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
29892,
5354,
29889,
13441,
29892,
518,
29900,
29962,
334,
29871,
29945,
29897,
13,
13,
4706,
5354,
353,
28460,
4197,
482,
29892,
17869,
1402,
518,
25525,
1402,
518,
26098,
29892,
9793,
29892,
269,
16586,
2314,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
29892,
5354,
29889,
13441,
29892,
518,
29900,
29962,
334,
29871,
29906,
29897,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
29892,
5354,
29889,
13441,
29892,
518,
29900,
29962,
334,
29871,
29946,
29897,
13,
4706,
1583,
29889,
9294,
29934,
1759,
267,
29898,
1917,
2392,
29892,
5354,
29889,
13441,
29892,
518,
29900,
29962,
334,
29871,
29955,
29897,
13,
4706,
5354,
29889,
13441,
4197,
29900,
29962,
334,
29871,
29941,
29897,
13,
4706,
5354,
29889,
13441,
4197,
29900,
29962,
334,
29871,
29953,
29897,
13,
13,
1678,
822,
1243,
29918,
1457,
26482,
29918,
14153,
292,
29898,
1311,
1125,
13,
4706,
5354,
353,
28460,
29898,
13,
9651,
518,
4205,
9084,
16174,
703,
29874,
613,
1819,
543,
29900,
29896,
4968,
3295,
9084,
16174,
703,
29890,
613,
1819,
543,
29900,
29896,
1159,
1402,
13,
9651,
3295,
9084,
16174,
703,
29891,
613,
1819,
543,
29900,
29896,
4968,
13,
4706,
1723,
13,
4706,
1591,
353,
6137,
29898,
7247,
29892,
5519,
29900,
29892,
29871,
29896,
1402,
518,
29896,
29892,
7442,
29889,
19377,
20526,
518,
29900,
29892,
29871,
29896,
2314,
13,
4706,
758,
29896,
353,
2866,
8675,
675,
580,
29898,
1888,
649,
29872,
580,
29898,
2371,
876,
13,
4706,
758,
29906,
353,
6137,
29898,
1457,
29896,
29889,
7247,
29892,
1591,
29897,
13,
4706,
7442,
29889,
13424,
29889,
9294,
29918,
284,
3242,
29918,
11745,
29898,
1457,
29896,
29889,
29990,
29892,
758,
29906,
29889,
29990,
29897,
13,
13,
1678,
822,
1243,
29918,
348,
23945,
1847,
29918,
276,
1037,
1078,
29918,
5203,
29918,
3129,
2708,
29898,
1311,
1125,
13,
4706,
28736,
3032,
8551,
29918,
497,
29918,
29883,
14520,
580,
13,
4706,
5354,
353,
28460,
4197,
2314,
13,
4706,
443,
23945,
839,
29918,
7247,
353,
5839,
280,
29889,
18132,
29898,
23945,
280,
29889,
29881,
17204,
29898,
7247,
876,
13,
4706,
1583,
29889,
9294,
5574,
29898,
5349,
5552,
29898,
348,
23945,
839,
29918,
7247,
29892,
11119,
5203,
29918,
3129,
2708,
5783,
13,
13,
1678,
822,
1243,
29918,
29881,
15622,
29918,
3129,
2708,
29918,
2541,
29918,
17642,
29918,
15697,
29918,
598,
29918,
11745,
29898,
1311,
1125,
13,
4706,
5354,
29896,
353,
28460,
4197,
2314,
13,
4706,
5354,
29906,
353,
28460,
4197,
2314,
13,
4706,
1583,
29889,
9294,
9843,
29898,
7247,
29896,
29892,
5354,
29906,
29897,
13,
13,
4706,
722,
29896,
353,
2866,
8675,
681,
16174,
703,
1707,
29896,
1159,
13,
4706,
5354,
29896,
29889,
15697,
353,
313,
1707,
29896,
29892,
29897,
13,
4706,
1583,
29889,
9294,
3664,
9843,
29898,
7247,
29896,
29892,
5354,
29906,
29897,
13,
13,
4706,
5354,
29906,
29889,
15697,
353,
313,
1707,
29896,
29892,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
7247,
29896,
29892,
5354,
29906,
29897,
13,
13,
4706,
5354,
29896,
29889,
1990,
29918,
16908,
353,
313,
1707,
29896,
29892,
29897,
13,
4706,
1583,
29889,
9294,
3664,
9843,
29898,
7247,
29896,
29892,
5354,
29906,
29897,
13,
13,
4706,
5354,
29906,
29889,
1990,
29918,
16908,
353,
313,
1707,
29896,
29892,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
7247,
29896,
29892,
5354,
29906,
29897,
13,
13,
4706,
5354,
29896,
3032,
2527,
294,
353,
313,
1707,
29896,
29892,
29897,
13,
4706,
1583,
29889,
9294,
3664,
9843,
29898,
7247,
29896,
29892,
5354,
29906,
29897,
13,
13,
4706,
5354,
29906,
3032,
2527,
294,
353,
313,
1707,
29896,
29892,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
7247,
29896,
29892,
5354,
29906,
29897,
13,
13,
1678,
822,
1243,
29918,
7247,
29918,
535,
3259,
29918,
275,
29918,
11255,
29918,
264,
820,
29898,
1311,
1125,
13,
4706,
12421,
29879,
353,
518,
1323,
8675,
681,
16174,
703,
29888,
29995,
29875,
29908,
1273,
474,
29897,
363,
474,
297,
3464,
29898,
29896,
29900,
29900,
29900,
29900,
4638,
13,
4706,
770,
29918,
16908,
353,
518,
1323,
8675,
681,
16174,
703,
29883,
29995,
29875,
29908,
1273,
474,
29897,
363,
474,
297,
3464,
29898,
29896,
29900,
4638,
13,
4706,
1539,
294,
353,
518,
1323,
8675,
681,
16174,
703,
29885,
29995,
29875,
29908,
1273,
474,
29897,
363,
474,
297,
3464,
29898,
29896,
29900,
4638,
13,
4706,
2752,
353,
28460,
29898,
5552,
29879,
29892,
770,
29918,
16908,
29892,
1539,
294,
29897,
13,
13,
4706,
1369,
353,
931,
580,
13,
4706,
4251,
353,
313,
13,
9651,
313,
13,
18884,
313,
5552,
29879,
7503,
29896,
29900,
29900,
29900,
1402,
770,
29918,
16908,
29892,
1539,
294,
511,
13,
18884,
1051,
29898,
3881,
29898,
29896,
29900,
29900,
29900,
8243,
13,
18884,
1051,
29898,
3881,
29898,
29896,
29900,
29900,
29900,
29900,
29892,
29871,
29896,
29900,
29900,
29896,
29900,
8243,
13,
18884,
1051,
29898,
3881,
6278,
29896,
29892,
448,
29896,
29896,
29892,
448,
29896,
8243,
13,
9651,
10353,
13,
9651,
313,
13,
18884,
313,
2527,
294,
29892,
12421,
29879,
7503,
29896,
29900,
29900,
29900,
1402,
770,
29918,
16908,
511,
13,
18884,
1051,
29898,
3881,
6278,
29896,
29892,
448,
29896,
29896,
29892,
448,
29896,
8243,
13,
18884,
1051,
29898,
3881,
29898,
29896,
29900,
29900,
29900,
8243,
13,
18884,
1051,
29898,
3881,
29898,
29896,
29900,
29900,
29900,
29900,
29892,
29871,
29896,
29900,
29900,
29896,
29900,
8243,
13,
9651,
10353,
13,
9651,
313,
13,
18884,
313,
1990,
29918,
16908,
29892,
1539,
294,
29892,
12421,
29879,
7503,
29896,
29900,
29900,
29900,
11724,
13,
18884,
1051,
29898,
3881,
29898,
29896,
29900,
29900,
29900,
29900,
29892,
29871,
29896,
29900,
29900,
29896,
29900,
8243,
13,
18884,
1051,
29898,
3881,
6278,
29896,
29892,
448,
29896,
29896,
29892,
448,
29896,
8243,
13,
18884,
1051,
29898,
3881,
29898,
29896,
29900,
29900,
29900,
8243,
13,
9651,
10353,
13,
4706,
1723,
13,
13,
4706,
363,
5354,
29918,
5085,
29892,
8393,
29892,
770,
29918,
16908,
29892,
1539,
294,
297,
4251,
29901,
13,
9651,
274,
29896,
353,
28460,
1168,
3259,
29898,
4993,
29892,
28460,
10456,
7247,
29918,
5085,
876,
13,
9651,
1583,
29889,
9294,
9843,
29898,
29883,
29896,
29889,
15697,
29892,
8393,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
29883,
29896,
29889,
1990,
29918,
16908,
29892,
770,
29918,
16908,
29897,
13,
9651,
1583,
29889,
9294,
9843,
29898,
29883,
29896,
29889,
2527,
294,
29892,
1539,
294,
29897,
13,
13,
4706,
1583,
29889,
9294,
29931,
404,
9843,
29898,
2230,
580,
448,
1369,
29892,
29871,
29896,
29897,
13,
13,
1678,
822,
1243,
29918,
8552,
29898,
1311,
1125,
13,
4706,
5046,
29889,
4537,
29918,
974,
29918,
7099,
326,
1338,
353,
29871,
29945,
13,
4706,
8393,
353,
313,
482,
29892,
23346,
29892,
17869,
29897,
13,
13,
4706,
5354,
353,
28460,
29898,
15697,
29892,
518,
25525,
1402,
518,
893,
29876,
2314,
13,
13,
4706,
716,
29918,
7247,
353,
5354,
29889,
8552,
580,
13,
4706,
716,
29918,
7247,
29961,
482,
1822,
4537,
29918,
974,
29918,
7099,
326,
1338,
353,
29871,
29896,
29900,
13,
13,
4706,
1583,
29889,
9294,
9843,
29898,
7247,
29961,
482,
1822,
4537,
29918,
974,
29918,
7099,
326,
1338,
29892,
29871,
29945,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
1482,
29918,
7247,
29961,
482,
1822,
4537,
29918,
974,
29918,
7099,
326,
1338,
29892,
29871,
29896,
29900,
29897,
13,
13,
1678,
822,
1243,
29918,
7247,
29918,
535,
3259,
29918,
29879,
862,
29879,
537,
29898,
1311,
1125,
13,
4706,
12551,
353,
28460,
29898,
13,
9651,
8393,
11759,
13,
18884,
2866,
8675,
681,
16174,
29898,
978,
543,
29874,
4968,
13,
18884,
2866,
8675,
681,
16174,
29898,
978,
543,
29890,
4968,
13,
18884,
2866,
8675,
681,
16174,
29898,
978,
543,
29883,
4968,
13,
9651,
21251,
13,
9651,
770,
29918,
16908,
11759,
4205,
9084,
16174,
703,
29881,
613,
1819,
29922,
3366,
29872,
20068,
1402,
13,
9651,
1539,
294,
11759,
1231,
16174,
703,
29888,
1159,
1402,
13,
4706,
1723,
13,
13,
4706,
396,
599,
20619,
13,
4706,
2752,
353,
28460,
29898,
15697,
11759,
2314,
13,
4706,
11301,
353,
28460,
1168,
3259,
29898,
4993,
29892,
12551,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
535,
3259,
29889,
29879,
5510,
29918,
29990,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
535,
3259,
29889,
29879,
5510,
29918,
29979,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
535,
3259,
29889,
29879,
5510,
29918,
2527,
294,
29897,
13,
13,
4706,
396,
731,
12551,
8393,
408,
29234,
13,
4706,
363,
263,
297,
12551,
29889,
15697,
29901,
13,
9651,
263,
29889,
29879,
5510,
353,
5852,
13,
4706,
2752,
353,
28460,
29898,
15697,
11759,
2314,
13,
4706,
11301,
353,
28460,
1168,
3259,
29898,
4993,
29892,
12551,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
535,
3259,
29889,
29879,
5510,
29918,
29990,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
535,
3259,
29889,
29879,
5510,
29918,
29979,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
535,
3259,
29889,
29879,
5510,
29918,
2527,
294,
29897,
13,
13,
4706,
396,
731,
599,
12551,
2286,
408,
29234,
13,
4706,
363,
263,
297,
9704,
29898,
23848,
29889,
20897,
29892,
12551,
29889,
2527,
294,
1125,
13,
9651,
263,
29889,
29879,
5510,
353,
5852,
13,
4706,
2752,
353,
28460,
29898,
15697,
11759,
2314,
13,
4706,
11301,
353,
28460,
1168,
3259,
29898,
4993,
29892,
12551,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
535,
3259,
29889,
29879,
5510,
29918,
29990,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
535,
3259,
29889,
29879,
5510,
29918,
29979,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
535,
3259,
29889,
29879,
5510,
29918,
2527,
294,
29897,
13,
13,
13,
1990,
4321,
15951,
5072,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
381,
275,
353,
6137,
703,
381,
275,
1159,
13,
13,
1678,
822,
1243,
29918,
4572,
29918,
12872,
29898,
1311,
1125,
13,
4706,
302,
29918,
1725,
1446,
353,
7431,
29898,
1311,
29889,
381,
275,
29889,
7247,
29889,
15697,
29897,
13,
13,
4706,
1583,
29889,
381,
275,
29889,
7247,
29889,
15697,
29961,
29900,
1822,
15697,
29889,
5504,
3319,
29908,
10892,
1115,
5852,
1800,
13,
4706,
22289,
353,
1051,
29898,
4572,
29918,
12872,
29898,
1311,
29889,
381,
275,
29889,
7247,
29889,
15697,
876,
13,
4706,
1583,
29889,
9294,
3664,
797,
29898,
1311,
29889,
381,
275,
29889,
7247,
29889,
15697,
29961,
29900,
1402,
22289,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
2435,
29898,
4572,
287,
511,
302,
29918,
1725,
1446,
448,
29871,
29896,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
utils/save_result.py | AnnLIU15/SegCovid | 0 | 146313 | <reponame>AnnLIU15/SegCovid
import os
import cv2
import numpy as np
def torch2imgs(output):
'''
函数为将torch数据转为2维图片保存
'''
shapeOFoutput = output.shape
if len(shapeOFoutput) == 3 and shapeOFoutput[0] > 1:
# 将one-hot结果选取最大值
imgs_array = output.argmax(dim=0).clone().detach().cpu().numpy()
elif len(shapeOFoutput) == 3 and shapeOFoutput[0] == 1:
# 去掉无用维度
imgs_array = output.clone().detach().cpu().numpy()
elif len(shapeOFoutput) == 4:
# batchsize~=1,递归保存(反正不考虑效率)
imgs_array = np.zeros(
shape=(shapeOFoutput[0], shapeOFoutput[2], shapeOFoutput[3]))
for idx in range(shapeOFoutput[0]):
imgs_array[idx] = torch2imgs(output[idx])
else:
assert False, '2D图片的输出维度应该是4.维度不匹配,目前维度'+str(len(shapeOFoutput))
return imgs_array
def saveImage(imgs_array, name_of_imgs, save_dir='./output/segResult/', npy_type=False):
'''
使用OPENCV保存图片
'''
# 转为ndarray
get_numpy = torch2imgs(imgs_array).astype(np.uint8)
shapeofimg = get_numpy.shape
if not os.path.exists(save_dir):
os.mkdir(save_dir)
# 保存
if len(shapeofimg) == 3:
for idx in range(shapeofimg[0]):
if isinstance(name_of_imgs[idx], tuple):
writer_name = name_of_imgs[idx][0]
else:
writer_name = name_of_imgs[idx]
if npy_type:
writer_name = writer_name+'.png'
cv2.imwrite(save_dir+'/'+writer_name, get_numpy[idx], [
int(cv2.IMWRITE_PNG_COMPRESSION), 0])
else:
if isinstance(name_of_imgs, tuple):
name_of_imgs = name_of_imgs[0]
if npy_type:
writer_name = name_of_imgs+'.png'
cv2.imwrite(save_dir+'/'+writer_name, get_numpy,
[int(cv2.IMWRITE_PNG_COMPRESSION), 0])
if __name__ == '__main__':
# import torch
# imgs=torch.randint(0,256,(512,512))
# cv2.imwrite('./output/lena.png',imgs.numpy(), [int(cv2.IMWRITE_PNG_COMPRESSION), 0])#第三个参数表示的是压缩级别。默认为3.
# cv2.imwrite('./output/1lena.png',imgs.numpy(), [int(cv2.IMWRITE_PNG_COMPRESSION), 9])#第三个参数表示的是压缩级别。默认为3.取最小就好
imgs1 = cv2.imread('./output/lena.png', cv2.IMREAD_GRAYSCALE)
imgs = cv2.imread('./output/1lena.png', cv2.IMREAD_GRAYSCALE)
print(imgs1 == imgs, (imgs1-imgs).sum())
| [
1,
529,
276,
1112,
420,
29958,
2744,
29876,
5265,
29965,
29896,
29945,
29914,
17669,
29907,
586,
333,
13,
5215,
2897,
13,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
4842,
305,
29906,
2492,
29879,
29898,
4905,
1125,
13,
1678,
14550,
13,
268,
31629,
30354,
30573,
30998,
7345,
305,
30354,
30763,
31415,
30573,
29906,
234,
190,
183,
30861,
31122,
30982,
30946,
13,
1678,
14550,
13,
1678,
8267,
9800,
4905,
353,
1962,
29889,
12181,
13,
1678,
565,
7431,
29898,
12181,
9800,
4905,
29897,
1275,
29871,
29941,
322,
8267,
9800,
4905,
29961,
29900,
29962,
1405,
29871,
29896,
29901,
13,
4706,
396,
29871,
30998,
650,
29899,
8711,
31320,
30801,
31333,
30683,
30878,
30257,
30959,
13,
4706,
527,
3174,
29918,
2378,
353,
1962,
29889,
1191,
3317,
29898,
6229,
29922,
29900,
467,
16513,
2141,
4801,
496,
2141,
21970,
2141,
23749,
580,
13,
1678,
25342,
7431,
29898,
12181,
9800,
4905,
29897,
1275,
29871,
29941,
322,
8267,
9800,
4905,
29961,
29900,
29962,
1275,
29871,
29896,
29901,
13,
4706,
396,
29871,
31475,
233,
145,
140,
31352,
30406,
234,
190,
183,
30898,
13,
4706,
527,
3174,
29918,
2378,
353,
1962,
29889,
16513,
2141,
4801,
496,
2141,
21970,
2141,
23749,
580,
13,
1678,
25342,
7431,
29898,
12181,
9800,
4905,
29897,
1275,
29871,
29946,
29901,
13,
4706,
396,
9853,
2311,
30022,
29922,
29896,
30214,
236,
131,
149,
232,
192,
149,
30982,
30946,
29898,
31908,
30724,
30413,
235,
131,
134,
235,
156,
148,
31944,
234,
145,
138,
29897,
13,
4706,
527,
3174,
29918,
2378,
353,
7442,
29889,
3298,
359,
29898,
13,
9651,
8267,
7607,
12181,
9800,
4905,
29961,
29900,
1402,
8267,
9800,
4905,
29961,
29906,
1402,
8267,
9800,
4905,
29961,
29941,
12622,
13,
4706,
363,
22645,
297,
3464,
29898,
12181,
9800,
4905,
29961,
29900,
29962,
1125,
13,
9651,
527,
3174,
29918,
2378,
29961,
13140,
29962,
353,
4842,
305,
29906,
2492,
29879,
29898,
4905,
29961,
13140,
2314,
13,
1678,
1683,
29901,
13,
4706,
4974,
7700,
29892,
525,
29906,
29928,
30861,
31122,
30210,
31573,
30544,
234,
190,
183,
30898,
31370,
31751,
30392,
29946,
29889,
234,
190,
183,
30898,
30413,
232,
143,
188,
31361,
29892,
30895,
30658,
234,
190,
183,
30898,
18717,
710,
29898,
2435,
29898,
12181,
9800,
4905,
876,
13,
1678,
736,
527,
3174,
29918,
2378,
13,
13,
13,
1753,
4078,
2940,
29898,
2492,
29879,
29918,
2378,
29892,
1024,
29918,
974,
29918,
2492,
29879,
29892,
4078,
29918,
3972,
2433,
6904,
4905,
29914,
10199,
3591,
29914,
742,
302,
2272,
29918,
1853,
29922,
8824,
1125,
13,
1678,
14550,
13,
268,
30785,
30406,
4590,
1430,
15633,
30982,
30946,
30861,
31122,
13,
1678,
14550,
13,
1678,
396,
29871,
31415,
30573,
299,
2378,
13,
1678,
679,
29918,
23749,
353,
4842,
305,
29906,
2492,
29879,
29898,
2492,
29879,
29918,
2378,
467,
579,
668,
29898,
9302,
29889,
13470,
29947,
29897,
13,
13,
1678,
8267,
974,
2492,
353,
679,
29918,
23749,
29889,
12181,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
7620,
29918,
3972,
1125,
13,
4706,
2897,
29889,
11256,
3972,
29898,
7620,
29918,
3972,
29897,
13,
1678,
396,
29871,
30982,
30946,
13,
1678,
565,
7431,
29898,
12181,
974,
2492,
29897,
1275,
29871,
29941,
29901,
13,
4706,
363,
22645,
297,
3464,
29898,
12181,
974,
2492,
29961,
29900,
29962,
1125,
13,
9651,
565,
338,
8758,
29898,
978,
29918,
974,
29918,
2492,
29879,
29961,
13140,
1402,
18761,
1125,
13,
18884,
9227,
29918,
978,
353,
1024,
29918,
974,
29918,
2492,
29879,
29961,
13140,
3816,
29900,
29962,
13,
9651,
1683,
29901,
13,
18884,
9227,
29918,
978,
353,
1024,
29918,
974,
29918,
2492,
29879,
29961,
13140,
29962,
13,
9651,
565,
302,
2272,
29918,
1853,
29901,
13,
18884,
9227,
29918,
978,
353,
9227,
29918,
978,
29974,
4286,
2732,
29915,
13,
9651,
13850,
29906,
29889,
326,
3539,
29898,
7620,
29918,
3972,
23097,
29914,
18717,
13236,
29918,
978,
29892,
679,
29918,
23749,
29961,
13140,
1402,
518,
13,
462,
4706,
938,
29898,
11023,
29906,
29889,
7833,
16365,
29918,
29925,
9312,
29918,
21514,
1525,
13507,
511,
29871,
29900,
2314,
13,
1678,
1683,
29901,
13,
4706,
565,
338,
8758,
29898,
978,
29918,
974,
29918,
2492,
29879,
29892,
18761,
1125,
13,
9651,
1024,
29918,
974,
29918,
2492,
29879,
353,
1024,
29918,
974,
29918,
2492,
29879,
29961,
29900,
29962,
13,
4706,
565,
302,
2272,
29918,
1853,
29901,
13,
9651,
9227,
29918,
978,
353,
1024,
29918,
974,
29918,
2492,
29879,
29974,
4286,
2732,
29915,
13,
4706,
13850,
29906,
29889,
326,
3539,
29898,
7620,
29918,
3972,
23097,
29914,
18717,
13236,
29918,
978,
29892,
679,
29918,
23749,
29892,
13,
462,
1678,
518,
524,
29898,
11023,
29906,
29889,
7833,
16365,
29918,
29925,
9312,
29918,
21514,
1525,
13507,
511,
29871,
29900,
2314,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
396,
1053,
4842,
305,
13,
1678,
396,
527,
3174,
29922,
7345,
305,
29889,
9502,
524,
29898,
29900,
29892,
29906,
29945,
29953,
22657,
29945,
29896,
29906,
29892,
29945,
29896,
29906,
876,
13,
1678,
396,
13850,
29906,
29889,
326,
3539,
877,
6904,
4905,
29914,
29880,
2386,
29889,
2732,
742,
2492,
29879,
29889,
23749,
3285,
518,
524,
29898,
11023,
29906,
29889,
7833,
16365,
29918,
29925,
9312,
29918,
21514,
1525,
13507,
511,
29871,
29900,
2314,
29937,
30622,
30457,
30502,
31125,
30354,
30746,
30858,
30210,
30392,
232,
145,
142,
234,
191,
172,
234,
189,
170,
232,
139,
174,
30267,
31735,
31439,
30573,
29941,
29889,
13,
1678,
396,
13850,
29906,
29889,
326,
3539,
877,
6904,
4905,
29914,
29896,
29880,
2386,
29889,
2732,
742,
2492,
29879,
29889,
23749,
3285,
518,
524,
29898,
11023,
29906,
29889,
7833,
16365,
29918,
29925,
9312,
29918,
21514,
1525,
13507,
511,
29871,
29929,
2314,
29937,
30622,
30457,
30502,
31125,
30354,
30746,
30858,
30210,
30392,
232,
145,
142,
234,
191,
172,
234,
189,
170,
232,
139,
174,
30267,
31735,
31439,
30573,
29941,
29889,
30683,
30878,
30446,
31238,
31076,
13,
1678,
527,
3174,
29896,
353,
13850,
29906,
29889,
326,
949,
877,
6904,
4905,
29914,
29880,
2386,
29889,
2732,
742,
13850,
29906,
29889,
7833,
16310,
29918,
29954,
4717,
21554,
5454,
1307,
29897,
13,
1678,
527,
3174,
353,
13850,
29906,
29889,
326,
949,
877,
6904,
4905,
29914,
29896,
29880,
2386,
29889,
2732,
742,
13850,
29906,
29889,
7833,
16310,
29918,
29954,
4717,
21554,
5454,
1307,
29897,
13,
1678,
1596,
29898,
2492,
29879,
29896,
1275,
527,
3174,
29892,
313,
2492,
29879,
29896,
29899,
2492,
29879,
467,
2083,
3101,
13,
2
] |
test/dpt_tests/dpt_float_test.py | kistlin/xknx | 1 | 130004 | """Unit test for KNX 2 and 4 byte float objects."""
import math
import struct
from unittest.mock import patch
import pytest
from xknx.dpt import (
DPT2ByteFloat,
DPT4ByteFloat,
DPTElectricCurrent,
DPTElectricPotential,
DPTEnthalpy,
DPTFrequency,
DPTHumidity,
DPTLux,
DPTPartsPerMillion,
DPTPhaseAngleDeg,
DPTPower,
DPTTemperature,
DPTVoltage,
)
from xknx.exceptions import ConversionError
class TestDPTFloat:
"""Test class for KNX 2 & 4 byte/octet float object."""
# ####################################################################
# DPT2ByteFloat
#
def test_value_from_documentation(self):
"""Test parsing and streaming of DPT2ByteFloat -30.00. Example from the internet[tm]."""
assert DPT2ByteFloat.to_knx(-30.00) == (0x8A, 0x24)
assert DPT2ByteFloat.from_knx((0x8A, 0x24)) == -30.00
def test_value_taken_from_live_thermostat(self):
"""Test parsing and streaming of DPT2ByteFloat 19.96."""
assert DPT2ByteFloat.to_knx(16.96) == (0x06, 0xA0)
assert DPT2ByteFloat.from_knx((0x06, 0xA0)) == 16.96
def test_zero_value(self):
"""Test parsing and streaming of DPT2ByteFloat zero value."""
assert DPT2ByteFloat.to_knx(0.00) == (0x00, 0x00)
assert DPT2ByteFloat.from_knx((0x00, 0x00)) == 0.00
def test_room_temperature(self):
"""Test parsing and streaming of DPT2ByteFloat 21.00. Room temperature."""
assert DPT2ByteFloat.to_knx(21.00) == (0x0C, 0x1A)
assert DPT2ByteFloat.from_knx((0x0C, 0x1A)) == 21.00
def test_high_temperature(self):
"""Test parsing and streaming of DPT2ByteFloat 500.00, 499.84, 500.16. Testing rounding issues."""
assert DPT2ByteFloat.to_knx(500.00) == (0x2E, 0x1A)
assert round(abs(DPT2ByteFloat.from_knx((0x2E, 0x1A)) - 499.84), 7) == 0
assert round(abs(DPT2ByteFloat.from_knx((0x2E, 0x1B)) - 500.16), 7) == 0
assert DPT2ByteFloat.to_knx(499.84) == (0x2E, 0x1A)
assert DPT2ByteFloat.to_knx(500.16) == (0x2E, 0x1B)
def test_minor_negative_temperature(self):
"""Test parsing and streaming of DPT2ByteFloat -10.00. Testing negative values."""
assert DPT2ByteFloat.to_knx(-10.00) == (0x84, 0x18)
assert DPT2ByteFloat.from_knx((0x84, 0x18)) == -10.00
def test_very_cold_temperature(self):
"""
Test parsing and streaming of DPT2ByteFloat -1000.00,-999.68, -1000.32.
Testing rounding issues of negative values.
"""
assert DPT2ByteFloat.to_knx(-1000.00) == (0xB1, 0xE6)
assert DPT2ByteFloat.from_knx((0xB1, 0xE6)) == -999.68
assert DPT2ByteFloat.from_knx((0xB1, 0xE5)) == -1000.32
assert DPT2ByteFloat.to_knx(-999.68) == (0xB1, 0xE6)
assert DPT2ByteFloat.to_knx(-1000.32) == (0xB1, 0xE5)
def test_max(self):
"""Test parsing and streaming of DPT2ByteFloat with maximum value."""
assert DPT2ByteFloat.to_knx(DPT2ByteFloat.value_max) == (0x7F, 0xFF)
assert DPT2ByteFloat.from_knx((0x7F, 0xFF)) == DPT2ByteFloat.value_max
def test_min(self):
"""Test parsing and streaming of DPT2ByteFloat with minimum value."""
assert DPT2ByteFloat.to_knx(DPT2ByteFloat.value_min) == (0xF8, 0x00)
assert DPT2ByteFloat.from_knx((0xF8, 0x00)) == DPT2ByteFloat.value_min
def test_close_to_max(self):
"""Test parsing and streaming of DPT2ByteFloat with maximum value -1."""
assert DPT2ByteFloat.to_knx(670433.28) == (0x7F, 0xFE)
assert DPT2ByteFloat.from_knx((0x7F, 0xFE)) == 670433.28
def test_close_to_min(self):
"""Test parsing and streaming of DPT2ByteFloat with minimum value +1."""
assert DPT2ByteFloat.to_knx(-670760.96) == (0xF8, 0x01)
assert DPT2ByteFloat.from_knx((0xF8, 0x01)) == -670760.96
def test_to_knx_min_exceeded(self):
"""Test parsing of DPT2ByteFloat with wrong value (underflow)."""
with pytest.raises(ConversionError):
DPT2ByteFloat.to_knx(DPT2ByteFloat.value_min - 1)
def test_to_knx_max_exceeded(self):
"""Test parsing of DPT2ByteFloat with wrong value (overflow)."""
with pytest.raises(ConversionError):
DPT2ByteFloat.to_knx(DPT2ByteFloat.value_max + 1)
def test_to_knx_wrong_parameter(self):
"""Test parsing of DPT2ByteFloat with wrong value (string)."""
with pytest.raises(ConversionError):
DPT2ByteFloat.to_knx("fnord")
def test_from_knx_wrong_parameter(self):
"""Test parsing of DPT2ByteFloat with wrong value (wrong number of bytes)."""
with pytest.raises(ConversionError):
DPT2ByteFloat.from_knx((0xF8, 0x01, 0x23))
def test_from_knx_wrong_parameter2(self):
"""Test parsing of DPT2ByteFloat with wrong value (second parameter is a string)."""
with pytest.raises(ConversionError):
DPT2ByteFloat.from_knx((0xF8, "0x23"))
#
# DPTTemperature
#
def test_temperature_settings(self):
"""Test attributes of DPTTemperature."""
assert DPTTemperature.value_min == -273
assert DPTTemperature.value_max == 670760
assert DPTTemperature.unit == "°C"
assert DPTTemperature.resolution == 0.01
def test_temperature_assert_min_exceeded(self):
"""Testing parsing of DPTTemperature with wrong value."""
with pytest.raises(ConversionError):
DPTTemperature.to_knx(-274)
def test_temperature_assert_min_exceeded_from_knx(self):
"""Testing parsing of DPTTemperature with wrong value."""
with pytest.raises(ConversionError):
DPTTemperature.from_knx((0xB1, 0xE6)) # -1000
#
# DPTLux
#
def test_lux_settings(self):
"""Test attributes of DPTLux."""
assert DPTLux.value_min == 0
assert DPTLux.value_max == 670760
assert DPTLux.unit == "lx"
assert DPTLux.resolution == 0.01
def test_lux_assert_min_exceeded(self):
"""Test parsing of DPTLux with wrong value."""
with pytest.raises(ConversionError):
DPTLux.to_knx(-1)
#
# DPTHumidity
#
def test_humidity_settings(self):
"""Test attributes of DPTHumidity."""
assert DPTHumidity.value_min == 0
assert DPTHumidity.value_max == 670760
assert DPTHumidity.unit == "%"
assert DPTHumidity.resolution == 0.01
def test_humidity_assert_min_exceeded(self):
"""Test parsing of DPTHumidity with wrong value."""
with pytest.raises(ConversionError):
DPTHumidity.to_knx(-1)
#
# DPTEnthalpy
#
def test_enthalpy_settings(self):
"""Test attributes of DPTEnthalpy."""
assert DPTEnthalpy.unit == "H"
#
# DPTPartsPerMillion
#
def test_partspermillion_settings(self):
"""Test attributes of DPTPartsPerMillion."""
assert DPTPartsPerMillion.unit == "ppm"
#
# DPTVoltage
#
def test_voltage_settings(self):
"""Test attributes of DPTVoltage."""
assert DPTVoltage.unit == "mV"
# ####################################################################
# DPT4ByteFloat
#
def test_4byte_float_values_from_power_meter(self):
"""Test parsing DPT4ByteFloat value from power meter."""
assert DPT4ByteFloat.from_knx((0x43, 0xC6, 0x80, 00)) == 397
assert DPT4ByteFloat.to_knx(397) == (0x43, 0xC6, 0x80, 00)
assert DPT4ByteFloat.from_knx((0x42, 0x38, 0x00, 00)) == 46
assert DPT4ByteFloat.to_knx(46) == (0x42, 0x38, 0x00, 00)
def test_14_033(self):
"""Test parsing DPTFrequency unit."""
assert DPTFrequency.unit == "Hz"
def test_14_055(self):
"""Test DPTPhaseAngleDeg object."""
assert DPT4ByteFloat.from_knx((0x42, 0xEF, 0x00, 0x00)) == 119.5
assert DPT4ByteFloat.to_knx(119.5) == (0x42, 0xEF, 0x00, 0x00)
assert DPTPhaseAngleDeg.unit == "°"
def test_14_057(self):
"""Test DPT4ByteFloat object."""
assert DPT4ByteFloat.from_knx((0x3F, 0x71, 0xEB, 0x86)) == 0.9450001
assert DPT4ByteFloat.to_knx(0.945000052452) == (0x3F, 0x71, 0xEB, 0x86)
assert DPT4ByteFloat.unit == ""
def test_4byte_float_values_from_voltage_meter(self):
"""Test parsing DPT4ByteFloat from voltage meter."""
assert DPT4ByteFloat.from_knx((0x43, 0x65, 0xE3, 0xD7)) == 229.89
assert DPT4ByteFloat.to_knx(229.89) == (0x43, 0x65, 0xE3, 0xD7)
def test_4byte_float_zero_value(self):
"""Test parsing and streaming of DPT4ByteFloat zero value."""
assert DPT4ByteFloat.from_knx((0x00, 0x00, 0x00, 0x00)) == 0.00
assert DPT4ByteFloat.to_knx(0.00) == (0x00, 0x00, 0x00, 0x00)
def test_4byte_float_special_value(self):
"""Test parsing and streaming of DPT4ByteFloat special value."""
assert math.isnan(DPT4ByteFloat.from_knx((0x7F, 0xC0, 0x00, 0x00)))
assert DPT4ByteFloat.to_knx(float("nan")) == (0x7F, 0xC0, 0x00, 0x00)
assert math.isinf(DPT4ByteFloat.from_knx((0x7F, 0x80, 0x00, 0x00)))
assert DPT4ByteFloat.to_knx(float("inf")) == (0x7F, 0x80, 0x00, 0x00)
assert DPT4ByteFloat.from_knx((0xFF, 0x80, 0x00, 0x00)) == float("-inf")
assert DPT4ByteFloat.to_knx(float("-inf")) == (0xFF, 0x80, 0x00, 0x00)
assert DPT4ByteFloat.from_knx((0x80, 0x00, 0x00, 0x00)) == float("-0")
assert DPT4ByteFloat.to_knx(float("-0")) == (0x80, 0x00, 0x00, 0x00)
def test_4byte_float_to_knx_wrong_parameter(self):
"""Test parsing of DPT4ByteFloat with wrong value (string)."""
with pytest.raises(ConversionError):
DPT4ByteFloat.to_knx("fnord")
def test_4byte_float_from_knx_wrong_parameter(self):
"""Test parsing of DPT4ByteFloat with wrong value (wrong number of bytes)."""
with pytest.raises(ConversionError):
DPT4ByteFloat.from_knx((0xF8, 0x01, 0x23))
def test_4byte_float_from_knx_wrong_parameter2(self):
"""Test parsing of DPT4ByteFloat with wrong value (second parameter is a string)."""
with pytest.raises(ConversionError):
DPT4ByteFloat.from_knx((0xF8, "0x23", 0x00, 0x00))
def test_4byte_flaot_from_knx_unpack_error(self):
"""Test DPT4ByteFloat parsing with unpack error."""
with patch("struct.unpack") as unpack_mock:
unpack_mock.side_effect = struct.error()
with pytest.raises(ConversionError):
DPT4ByteFloat.from_knx((0x01, 0x23, 0x02, 0x02))
#
# DPTElectricCurrent
#
def test_electric_current_settings(self):
"""Test attributes of DPTElectricCurrent."""
assert DPTElectricCurrent.unit == "A"
#
# DPTElectricPotential
#
def test_electric_potential_settings(self):
"""Test attributes of DPTElectricPotential."""
assert DPTElectricPotential.unit == "V"
#
# DPTPower
#
def test_power_settings(self):
"""Test attributes of DPTPower."""
assert DPTPower.unit == "W"
| [
1,
9995,
8325,
1243,
363,
476,
29940,
29990,
29871,
29906,
322,
29871,
29946,
7023,
5785,
3618,
1213,
15945,
13,
5215,
5844,
13,
5215,
2281,
13,
3166,
443,
27958,
29889,
17640,
1053,
13261,
13,
13,
5215,
11451,
1688,
13,
13,
3166,
921,
3959,
29916,
29889,
29881,
415,
1053,
313,
13,
1678,
360,
7982,
29906,
12901,
11031,
29892,
13,
1678,
360,
7982,
29946,
12901,
11031,
29892,
13,
1678,
360,
29925,
4330,
781,
2200,
7583,
29892,
13,
1678,
360,
29925,
4330,
781,
2200,
29925,
327,
2556,
29892,
13,
1678,
360,
7982,
2369,
386,
284,
2272,
29892,
13,
1678,
360,
7982,
23923,
23860,
29892,
13,
1678,
360,
29925,
4690,
398,
333,
537,
29892,
13,
1678,
360,
7982,
29931,
1314,
29892,
13,
1678,
360,
29925,
3557,
5708,
5894,
19169,
291,
29892,
13,
1678,
360,
29925,
3557,
29882,
559,
19582,
29928,
387,
29892,
13,
1678,
360,
29925,
3557,
1680,
29892,
13,
1678,
360,
7982,
5776,
546,
1535,
29892,
13,
1678,
360,
7982,
13072,
29873,
482,
29892,
13,
29897,
13,
3166,
921,
3959,
29916,
29889,
11739,
29879,
1053,
1281,
3259,
2392,
13,
13,
13,
1990,
4321,
29928,
7982,
11031,
29901,
13,
1678,
9995,
3057,
770,
363,
476,
29940,
29990,
29871,
29906,
669,
29871,
29946,
7023,
29914,
20082,
300,
5785,
1203,
1213,
15945,
13,
13,
1678,
396,
835,
13383,
13383,
13383,
13383,
29937,
13,
1678,
396,
360,
7982,
29906,
12901,
11031,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
1767,
29918,
3166,
29918,
12663,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
448,
29941,
29900,
29889,
29900,
29900,
29889,
8741,
515,
278,
8986,
29961,
18276,
29962,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
6278,
29941,
29900,
29889,
29900,
29900,
29897,
1275,
313,
29900,
29916,
29947,
29909,
29892,
29871,
29900,
29916,
29906,
29946,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29947,
29909,
29892,
29871,
29900,
29916,
29906,
29946,
876,
1275,
448,
29941,
29900,
29889,
29900,
29900,
13,
13,
1678,
822,
1243,
29918,
1767,
29918,
29873,
9424,
29918,
3166,
29918,
9258,
29918,
721,
3242,
271,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
29871,
29896,
29929,
29889,
29929,
29953,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29896,
29953,
29889,
29929,
29953,
29897,
1275,
313,
29900,
29916,
29900,
29953,
29892,
29871,
29900,
29916,
29909,
29900,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29900,
29953,
29892,
29871,
29900,
29916,
29909,
29900,
876,
1275,
29871,
29896,
29953,
29889,
29929,
29953,
13,
13,
1678,
822,
1243,
29918,
9171,
29918,
1767,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
5225,
995,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29900,
29889,
29900,
29900,
29897,
1275,
313,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
876,
1275,
29871,
29900,
29889,
29900,
29900,
13,
13,
1678,
822,
1243,
29918,
8345,
29918,
12863,
1535,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
29871,
29906,
29896,
29889,
29900,
29900,
29889,
25114,
10430,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29906,
29896,
29889,
29900,
29900,
29897,
1275,
313,
29900,
29916,
29900,
29907,
29892,
29871,
29900,
29916,
29896,
29909,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29900,
29907,
29892,
29871,
29900,
29916,
29896,
29909,
876,
1275,
29871,
29906,
29896,
29889,
29900,
29900,
13,
13,
1678,
822,
1243,
29918,
9812,
29918,
12863,
1535,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
29871,
29945,
29900,
29900,
29889,
29900,
29900,
29892,
29871,
29946,
29929,
29929,
29889,
29947,
29946,
29892,
29871,
29945,
29900,
29900,
29889,
29896,
29953,
29889,
4321,
292,
4513,
292,
5626,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29945,
29900,
29900,
29889,
29900,
29900,
29897,
1275,
313,
29900,
29916,
29906,
29923,
29892,
29871,
29900,
29916,
29896,
29909,
29897,
13,
4706,
4974,
4513,
29898,
6897,
29898,
29928,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29906,
29923,
29892,
29871,
29900,
29916,
29896,
29909,
876,
448,
29871,
29946,
29929,
29929,
29889,
29947,
29946,
511,
29871,
29955,
29897,
1275,
29871,
29900,
13,
4706,
4974,
4513,
29898,
6897,
29898,
29928,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29906,
29923,
29892,
29871,
29900,
29916,
29896,
29933,
876,
448,
29871,
29945,
29900,
29900,
29889,
29896,
29953,
511,
29871,
29955,
29897,
1275,
29871,
29900,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29946,
29929,
29929,
29889,
29947,
29946,
29897,
1275,
313,
29900,
29916,
29906,
29923,
29892,
29871,
29900,
29916,
29896,
29909,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29945,
29900,
29900,
29889,
29896,
29953,
29897,
1275,
313,
29900,
29916,
29906,
29923,
29892,
29871,
29900,
29916,
29896,
29933,
29897,
13,
13,
1678,
822,
1243,
29918,
1195,
272,
29918,
22198,
29918,
12863,
1535,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
448,
29896,
29900,
29889,
29900,
29900,
29889,
4321,
292,
8178,
1819,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
6278,
29896,
29900,
29889,
29900,
29900,
29897,
1275,
313,
29900,
29916,
29947,
29946,
29892,
29871,
29900,
29916,
29896,
29947,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29947,
29946,
29892,
29871,
29900,
29916,
29896,
29947,
876,
1275,
448,
29896,
29900,
29889,
29900,
29900,
13,
13,
1678,
822,
1243,
29918,
1201,
29918,
29883,
1025,
29918,
12863,
1535,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
4321,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
448,
29896,
29900,
29900,
29900,
29889,
29900,
29900,
6653,
29929,
29929,
29929,
29889,
29953,
29947,
29892,
448,
29896,
29900,
29900,
29900,
29889,
29941,
29906,
29889,
13,
13,
4706,
4321,
292,
4513,
292,
5626,
310,
8178,
1819,
29889,
13,
4706,
9995,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
6278,
29896,
29900,
29900,
29900,
29889,
29900,
29900,
29897,
1275,
313,
29900,
29916,
29933,
29896,
29892,
29871,
29900,
29916,
29923,
29953,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29933,
29896,
29892,
29871,
29900,
29916,
29923,
29953,
876,
1275,
448,
29929,
29929,
29929,
29889,
29953,
29947,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29933,
29896,
29892,
29871,
29900,
29916,
29923,
29945,
876,
1275,
448,
29896,
29900,
29900,
29900,
29889,
29941,
29906,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
6278,
29929,
29929,
29929,
29889,
29953,
29947,
29897,
1275,
313,
29900,
29916,
29933,
29896,
29892,
29871,
29900,
29916,
29923,
29953,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
6278,
29896,
29900,
29900,
29900,
29889,
29941,
29906,
29897,
1275,
313,
29900,
29916,
29933,
29896,
29892,
29871,
29900,
29916,
29923,
29945,
29897,
13,
13,
1678,
822,
1243,
29918,
3317,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
411,
7472,
995,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29928,
7982,
29906,
12901,
11031,
29889,
1767,
29918,
3317,
29897,
1275,
313,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
4198,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
4198,
876,
1275,
360,
7982,
29906,
12901,
11031,
29889,
1767,
29918,
3317,
13,
13,
1678,
822,
1243,
29918,
1195,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
411,
9212,
995,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29928,
7982,
29906,
12901,
11031,
29889,
1767,
29918,
1195,
29897,
1275,
313,
29900,
29916,
29943,
29947,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29943,
29947,
29892,
29871,
29900,
29916,
29900,
29900,
876,
1275,
360,
7982,
29906,
12901,
11031,
29889,
1767,
29918,
1195,
13,
13,
1678,
822,
1243,
29918,
5358,
29918,
517,
29918,
3317,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
411,
7472,
995,
448,
29896,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29953,
29955,
29900,
29946,
29941,
29941,
29889,
29906,
29947,
29897,
1275,
313,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
16359,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
16359,
876,
1275,
29871,
29953,
29955,
29900,
29946,
29941,
29941,
29889,
29906,
29947,
13,
13,
1678,
822,
1243,
29918,
5358,
29918,
517,
29918,
1195,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29906,
12901,
11031,
411,
9212,
995,
718,
29896,
1213,
15945,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
6278,
29953,
29955,
29900,
29955,
29953,
29900,
29889,
29929,
29953,
29897,
1275,
313,
29900,
29916,
29943,
29947,
29892,
29871,
29900,
29916,
29900,
29896,
29897,
13,
4706,
4974,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29943,
29947,
29892,
29871,
29900,
29916,
29900,
29896,
876,
1275,
448,
29953,
29955,
29900,
29955,
29953,
29900,
29889,
29929,
29953,
13,
13,
1678,
822,
1243,
29918,
517,
29918,
3959,
29916,
29918,
1195,
29918,
735,
3947,
287,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29906,
12901,
11031,
411,
2743,
995,
313,
5062,
1731,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29928,
7982,
29906,
12901,
11031,
29889,
1767,
29918,
1195,
448,
29871,
29896,
29897,
13,
13,
1678,
822,
1243,
29918,
517,
29918,
3959,
29916,
29918,
3317,
29918,
735,
3947,
287,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29906,
12901,
11031,
411,
2743,
995,
313,
2262,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29928,
7982,
29906,
12901,
11031,
29889,
1767,
29918,
3317,
718,
29871,
29896,
29897,
13,
13,
1678,
822,
1243,
29918,
517,
29918,
3959,
29916,
29918,
15866,
549,
29918,
15501,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29906,
12901,
11031,
411,
2743,
995,
313,
1807,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29906,
12901,
11031,
29889,
517,
29918,
3959,
29916,
703,
9144,
536,
1159,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
3959,
29916,
29918,
15866,
549,
29918,
15501,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29906,
12901,
11031,
411,
2743,
995,
313,
15866,
549,
1353,
310,
6262,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29943,
29947,
29892,
29871,
29900,
29916,
29900,
29896,
29892,
29871,
29900,
29916,
29906,
29941,
876,
13,
13,
1678,
822,
1243,
29918,
3166,
29918,
3959,
29916,
29918,
15866,
549,
29918,
15501,
29906,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29906,
12901,
11031,
411,
2743,
995,
313,
7496,
3443,
338,
263,
1347,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29906,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29943,
29947,
29892,
376,
29900,
29916,
29906,
29941,
5783,
13,
13,
1678,
396,
13,
1678,
396,
360,
7982,
5776,
546,
1535,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
12863,
1535,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
7982,
5776,
546,
1535,
1213,
15945,
13,
4706,
4974,
360,
7982,
5776,
546,
1535,
29889,
1767,
29918,
1195,
1275,
448,
29906,
29955,
29941,
13,
4706,
4974,
360,
7982,
5776,
546,
1535,
29889,
1767,
29918,
3317,
1275,
29871,
29953,
29955,
29900,
29955,
29953,
29900,
13,
4706,
4974,
360,
7982,
5776,
546,
1535,
29889,
5441,
1275,
376,
30073,
29907,
29908,
13,
4706,
4974,
360,
7982,
5776,
546,
1535,
29889,
9778,
918,
1275,
29871,
29900,
29889,
29900,
29896,
13,
13,
1678,
822,
1243,
29918,
12863,
1535,
29918,
9294,
29918,
1195,
29918,
735,
3947,
287,
29898,
1311,
1125,
13,
4706,
9995,
3057,
292,
13755,
310,
360,
7982,
5776,
546,
1535,
411,
2743,
995,
1213,
15945,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
5776,
546,
1535,
29889,
517,
29918,
3959,
29916,
6278,
29906,
29955,
29946,
29897,
13,
13,
1678,
822,
1243,
29918,
12863,
1535,
29918,
9294,
29918,
1195,
29918,
735,
3947,
287,
29918,
3166,
29918,
3959,
29916,
29898,
1311,
1125,
13,
4706,
9995,
3057,
292,
13755,
310,
360,
7982,
5776,
546,
1535,
411,
2743,
995,
1213,
15945,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
5776,
546,
1535,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29933,
29896,
29892,
29871,
29900,
29916,
29923,
29953,
876,
29871,
396,
448,
29896,
29900,
29900,
29900,
13,
13,
1678,
396,
13,
1678,
396,
360,
7982,
29931,
1314,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
29880,
1314,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
7982,
29931,
1314,
1213,
15945,
13,
4706,
4974,
360,
7982,
29931,
1314,
29889,
1767,
29918,
1195,
1275,
29871,
29900,
13,
4706,
4974,
360,
7982,
29931,
1314,
29889,
1767,
29918,
3317,
1275,
29871,
29953,
29955,
29900,
29955,
29953,
29900,
13,
4706,
4974,
360,
7982,
29931,
1314,
29889,
5441,
1275,
376,
29880,
29916,
29908,
13,
4706,
4974,
360,
7982,
29931,
1314,
29889,
9778,
918,
1275,
29871,
29900,
29889,
29900,
29896,
13,
13,
1678,
822,
1243,
29918,
29880,
1314,
29918,
9294,
29918,
1195,
29918,
735,
3947,
287,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29931,
1314,
411,
2743,
995,
1213,
15945,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29931,
1314,
29889,
517,
29918,
3959,
29916,
6278,
29896,
29897,
13,
13,
1678,
396,
13,
1678,
396,
360,
29925,
4690,
398,
333,
537,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
16063,
333,
537,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
29925,
4690,
398,
333,
537,
1213,
15945,
13,
4706,
4974,
360,
29925,
4690,
398,
333,
537,
29889,
1767,
29918,
1195,
1275,
29871,
29900,
13,
4706,
4974,
360,
29925,
4690,
398,
333,
537,
29889,
1767,
29918,
3317,
1275,
29871,
29953,
29955,
29900,
29955,
29953,
29900,
13,
4706,
4974,
360,
29925,
4690,
398,
333,
537,
29889,
5441,
1275,
11860,
29908,
13,
4706,
4974,
360,
29925,
4690,
398,
333,
537,
29889,
9778,
918,
1275,
29871,
29900,
29889,
29900,
29896,
13,
13,
1678,
822,
1243,
29918,
16063,
333,
537,
29918,
9294,
29918,
1195,
29918,
735,
3947,
287,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
29925,
4690,
398,
333,
537,
411,
2743,
995,
1213,
15945,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
29925,
4690,
398,
333,
537,
29889,
517,
29918,
3959,
29916,
6278,
29896,
29897,
13,
13,
1678,
396,
13,
1678,
396,
360,
7982,
2369,
386,
284,
2272,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
296,
4077,
2272,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
7982,
2369,
386,
284,
2272,
1213,
15945,
13,
4706,
4974,
360,
7982,
2369,
386,
284,
2272,
29889,
5441,
1275,
376,
29950,
29908,
13,
13,
1678,
396,
13,
1678,
396,
360,
29925,
3557,
5708,
5894,
19169,
291,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
20895,
17858,
453,
291,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
29925,
3557,
5708,
5894,
19169,
291,
1213,
15945,
13,
4706,
4974,
360,
29925,
3557,
5708,
5894,
19169,
291,
29889,
5441,
1275,
376,
407,
29885,
29908,
13,
13,
1678,
396,
13,
1678,
396,
360,
7982,
13072,
29873,
482,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
1555,
29873,
482,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
7982,
13072,
29873,
482,
1213,
15945,
13,
4706,
4974,
360,
7982,
13072,
29873,
482,
29889,
5441,
1275,
376,
29885,
29963,
29908,
13,
13,
1678,
396,
835,
13383,
13383,
13383,
13383,
29937,
13,
1678,
396,
360,
7982,
29946,
12901,
11031,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
7411,
29918,
5975,
29918,
3166,
29918,
13519,
29918,
29391,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
360,
7982,
29946,
12901,
11031,
995,
515,
3081,
11134,
1213,
15945,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29946,
29941,
29892,
29871,
29900,
29916,
29907,
29953,
29892,
29871,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29900,
876,
1275,
29871,
29941,
29929,
29955,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29941,
29929,
29955,
29897,
1275,
313,
29900,
29916,
29946,
29941,
29892,
29871,
29900,
29916,
29907,
29953,
29892,
29871,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29900,
29897,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29946,
29906,
29892,
29871,
29900,
29916,
29941,
29947,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29900,
876,
1275,
29871,
29946,
29953,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29946,
29953,
29897,
1275,
313,
29900,
29916,
29946,
29906,
29892,
29871,
29900,
29916,
29941,
29947,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29900,
29897,
13,
13,
1678,
822,
1243,
29918,
29896,
29946,
29918,
29900,
29941,
29941,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
360,
7982,
23923,
23860,
5190,
1213,
15945,
13,
4706,
4974,
360,
7982,
23923,
23860,
29889,
5441,
1275,
376,
12661,
29908,
13,
13,
1678,
822,
1243,
29918,
29896,
29946,
29918,
29900,
29945,
29945,
29898,
1311,
1125,
13,
4706,
9995,
3057,
360,
29925,
3557,
29882,
559,
19582,
29928,
387,
1203,
1213,
15945,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29946,
29906,
29892,
29871,
29900,
29916,
29638,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
876,
1275,
29871,
29896,
29896,
29929,
29889,
29945,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29896,
29896,
29929,
29889,
29945,
29897,
1275,
313,
29900,
29916,
29946,
29906,
29892,
29871,
29900,
29916,
29638,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
4706,
4974,
360,
29925,
3557,
29882,
559,
19582,
29928,
387,
29889,
5441,
1275,
376,
30073,
29908,
13,
13,
1678,
822,
1243,
29918,
29896,
29946,
29918,
29900,
29945,
29955,
29898,
1311,
1125,
13,
4706,
9995,
3057,
360,
7982,
29946,
12901,
11031,
1203,
1213,
15945,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29941,
29943,
29892,
29871,
29900,
29916,
29955,
29896,
29892,
29871,
29900,
29916,
25752,
29892,
29871,
29900,
29916,
29947,
29953,
876,
1275,
29871,
29900,
29889,
29929,
29946,
29945,
29900,
29900,
29900,
29896,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29900,
29889,
29929,
29946,
29945,
29900,
29900,
29900,
29900,
29945,
29906,
29946,
29945,
29906,
29897,
1275,
313,
29900,
29916,
29941,
29943,
29892,
29871,
29900,
29916,
29955,
29896,
29892,
29871,
29900,
29916,
25752,
29892,
29871,
29900,
29916,
29947,
29953,
29897,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
5441,
1275,
5124,
13,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
7411,
29918,
5975,
29918,
3166,
29918,
1555,
29873,
482,
29918,
29391,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
360,
7982,
29946,
12901,
11031,
515,
11749,
11134,
1213,
15945,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29946,
29941,
29892,
29871,
29900,
29916,
29953,
29945,
29892,
29871,
29900,
29916,
29923,
29941,
29892,
29871,
29900,
29916,
29928,
29955,
876,
1275,
29871,
29906,
29906,
29929,
29889,
29947,
29929,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29906,
29906,
29929,
29889,
29947,
29929,
29897,
1275,
313,
29900,
29916,
29946,
29941,
29892,
29871,
29900,
29916,
29953,
29945,
29892,
29871,
29900,
29916,
29923,
29941,
29892,
29871,
29900,
29916,
29928,
29955,
29897,
13,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
7411,
29918,
9171,
29918,
1767,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29946,
12901,
11031,
5225,
995,
1213,
15945,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
876,
1275,
29871,
29900,
29889,
29900,
29900,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
29900,
29889,
29900,
29900,
29897,
1275,
313,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
7411,
29918,
18732,
29918,
1767,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
322,
24820,
310,
360,
7982,
29946,
12901,
11031,
4266,
995,
1213,
15945,
13,
4706,
4974,
5844,
29889,
275,
13707,
29898,
29928,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
29907,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
4961,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
7411,
703,
13707,
5783,
1275,
313,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
29907,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
13,
4706,
4974,
5844,
29889,
275,
7192,
29898,
29928,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
4961,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
7411,
703,
7192,
5783,
1275,
313,
29900,
29916,
29955,
29943,
29892,
29871,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
4198,
29892,
29871,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
876,
1275,
5785,
703,
29899,
7192,
1159,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
7411,
703,
29899,
7192,
5783,
1275,
313,
29900,
29916,
4198,
29892,
29871,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
876,
1275,
5785,
703,
29899,
29900,
1159,
13,
4706,
4974,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
29898,
7411,
703,
29899,
29900,
5783,
1275,
313,
29900,
29916,
29947,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
29897,
13,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
7411,
29918,
517,
29918,
3959,
29916,
29918,
15866,
549,
29918,
15501,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29946,
12901,
11031,
411,
2743,
995,
313,
1807,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29946,
12901,
11031,
29889,
517,
29918,
3959,
29916,
703,
9144,
536,
1159,
13,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
7411,
29918,
3166,
29918,
3959,
29916,
29918,
15866,
549,
29918,
15501,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29946,
12901,
11031,
411,
2743,
995,
313,
15866,
549,
1353,
310,
6262,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29943,
29947,
29892,
29871,
29900,
29916,
29900,
29896,
29892,
29871,
29900,
29916,
29906,
29941,
876,
13,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
7411,
29918,
3166,
29918,
3959,
29916,
29918,
15866,
549,
29918,
15501,
29906,
29898,
1311,
1125,
13,
4706,
9995,
3057,
13755,
310,
360,
7982,
29946,
12901,
11031,
411,
2743,
995,
313,
7496,
3443,
338,
263,
1347,
467,
15945,
29908,
13,
4706,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
9651,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29943,
29947,
29892,
376,
29900,
29916,
29906,
29941,
613,
29871,
29900,
29916,
29900,
29900,
29892,
29871,
29900,
29916,
29900,
29900,
876,
13,
13,
1678,
822,
1243,
29918,
29946,
10389,
29918,
29888,
433,
327,
29918,
3166,
29918,
3959,
29916,
29918,
348,
4058,
29918,
2704,
29898,
1311,
1125,
13,
4706,
9995,
3057,
360,
7982,
29946,
12901,
11031,
13755,
411,
443,
4058,
1059,
1213,
15945,
13,
4706,
411,
13261,
703,
4984,
29889,
348,
4058,
1159,
408,
443,
4058,
29918,
17640,
29901,
13,
9651,
443,
4058,
29918,
17640,
29889,
2975,
29918,
15987,
353,
2281,
29889,
2704,
580,
13,
9651,
411,
11451,
1688,
29889,
336,
4637,
29898,
1168,
3259,
2392,
1125,
13,
18884,
360,
7982,
29946,
12901,
11031,
29889,
3166,
29918,
3959,
29916,
3552,
29900,
29916,
29900,
29896,
29892,
29871,
29900,
29916,
29906,
29941,
29892,
29871,
29900,
29916,
29900,
29906,
29892,
29871,
29900,
29916,
29900,
29906,
876,
13,
13,
1678,
396,
13,
1678,
396,
360,
29925,
4330,
781,
2200,
7583,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
15436,
2200,
29918,
3784,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
29925,
4330,
781,
2200,
7583,
1213,
15945,
13,
4706,
4974,
360,
29925,
4330,
781,
2200,
7583,
29889,
5441,
1275,
376,
29909,
29908,
13,
13,
1678,
396,
13,
1678,
396,
360,
29925,
4330,
781,
2200,
29925,
327,
2556,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
15436,
2200,
29918,
17765,
2556,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
29925,
4330,
781,
2200,
29925,
327,
2556,
1213,
15945,
13,
4706,
4974,
360,
29925,
4330,
781,
2200,
29925,
327,
2556,
29889,
5441,
1275,
376,
29963,
29908,
13,
13,
1678,
396,
13,
1678,
396,
360,
29925,
3557,
1680,
13,
1678,
396,
13,
1678,
822,
1243,
29918,
13519,
29918,
11027,
29898,
1311,
1125,
13,
4706,
9995,
3057,
8393,
310,
360,
29925,
3557,
1680,
1213,
15945,
13,
4706,
4974,
360,
29925,
3557,
1680,
29889,
5441,
1275,
376,
29956,
29908,
13,
2
] |
liftaway/low_level.py | elj/liftaway | 0 | 167872 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Liftaway Low-Level (GPIO and PCA) module."""
import random
import busio
import RPi.GPIO as GPIO
from adafruit_pca9685 import PCA9685
from board import SCL, SDA
from liftaway.constants import control_outputs
i2c_bus = busio.I2C(SCL, SDA)
pca = PCA9685(i2c_bus)
def init():
"""Initialize LEDs."""
pca.frequency = 60
# Turn all lights off
all_lights_off()
# Init Overhead/Ceiling Light
green = pca.channels[13]
red = pca.channels[14]
blue = pca.channels[15]
# TODO: make this changable
red.duty_cycle = 0xFFFF
green.duty_cycle = 0x4000
blue.duty_cycle = 0x0000
def gpio_output(gpio: int, high: bool = True):
"""Set a GPIO Output High or Low."""
if high:
GPIO.output(gpio, GPIO.HIGH)
else:
GPIO.output(gpio, GPIO.LOW)
def cancel_call_led(on: bool = True):
"""Turn on/off the cancel call LED."""
gpio_output(control_outputs.get("cancel_call"), on)
def direction_led(on: bool = True):
"""Turn on/off the direction lights; pick a rando direction..."""
if on:
if random.choice((True, False)): # noqa
gpio_output(control_outputs.get("direction_up"), on)
else:
gpio_output(control_outputs.get("direction_dn"), on)
else:
# on == False -> Off
gpio_output(control_outputs.get("direction_up"), on)
gpio_output(control_outputs.get("direction_dn"), on)
def door_close_led(on: bool = True):
"""Turn on/off the door close LED."""
gpio_output(control_outputs.get("door_close"), on)
def door_open_led(on: bool = True):
"""Turn on/off the door open LED."""
gpio_output(control_outputs.get("door_open"), on)
def floor_button_led(floor, on: bool = True):
"""Turn on/off floor LED."""
if on:
pca.channels[floor].duty_cycle = 0xFFFF
else:
pca.channels[floor].duty_cycle = 0
def all_lights_off():
"""Turn all Lights/LEDS off."""
for i in range(0, 15):
pca.channels[i].duty_cycle = 0
for i in control_outputs.values():
gpio_output(i, False)
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
29931,
361,
941,
1582,
17511,
29899,
10108,
313,
29954,
2227,
29949,
322,
349,
5454,
29897,
3883,
1213,
15945,
13,
13,
5215,
4036,
13,
13,
5215,
3593,
601,
13,
5215,
390,
12197,
29889,
29954,
2227,
29949,
408,
402,
2227,
29949,
13,
3166,
594,
2142,
9216,
29918,
29886,
1113,
29929,
29953,
29947,
29945,
1053,
349,
5454,
29929,
29953,
29947,
29945,
13,
3166,
7613,
1053,
317,
6154,
29892,
317,
7698,
13,
3166,
11747,
941,
1582,
29889,
3075,
1934,
1053,
2761,
29918,
4905,
29879,
13,
13,
13,
29875,
29906,
29883,
29918,
8262,
353,
3593,
601,
29889,
29902,
29906,
29907,
29898,
29903,
6154,
29892,
317,
7698,
29897,
13,
29886,
1113,
353,
349,
5454,
29929,
29953,
29947,
29945,
29898,
29875,
29906,
29883,
29918,
8262,
29897,
13,
13,
13,
1753,
2069,
7295,
13,
1678,
9995,
6644,
6646,
25023,
29879,
1213,
15945,
13,
1678,
282,
1113,
29889,
10745,
23860,
353,
29871,
29953,
29900,
13,
1678,
396,
9603,
599,
26068,
1283,
13,
1678,
599,
29918,
4366,
29879,
29918,
2696,
580,
13,
13,
1678,
396,
10886,
6811,
2813,
29914,
29907,
29872,
6504,
12790,
13,
1678,
7933,
353,
282,
1113,
29889,
305,
12629,
29961,
29896,
29941,
29962,
13,
1678,
2654,
353,
282,
1113,
29889,
305,
12629,
29961,
29896,
29946,
29962,
13,
1678,
7254,
353,
282,
1113,
29889,
305,
12629,
29961,
29896,
29945,
29962,
13,
13,
1678,
396,
14402,
29901,
1207,
445,
1874,
519,
13,
1678,
2654,
29889,
29881,
329,
29891,
29918,
23090,
353,
29871,
29900,
29916,
22098,
13,
1678,
7933,
29889,
29881,
329,
29891,
29918,
23090,
353,
29871,
29900,
29916,
29946,
29900,
29900,
29900,
13,
1678,
7254,
29889,
29881,
329,
29891,
29918,
23090,
353,
29871,
29900,
29916,
29900,
29900,
29900,
29900,
13,
13,
13,
1753,
330,
16168,
29918,
4905,
29898,
29887,
16168,
29901,
938,
29892,
1880,
29901,
6120,
353,
5852,
1125,
13,
1678,
9995,
2697,
263,
402,
2227,
29949,
10604,
5057,
470,
17511,
1213,
15945,
13,
1678,
565,
1880,
29901,
13,
4706,
402,
2227,
29949,
29889,
4905,
29898,
29887,
16168,
29892,
402,
2227,
29949,
29889,
29950,
6259,
29950,
29897,
13,
1678,
1683,
29901,
13,
4706,
402,
2227,
29949,
29889,
4905,
29898,
29887,
16168,
29892,
402,
2227,
29949,
29889,
27998,
29897,
13,
13,
13,
1753,
12611,
29918,
4804,
29918,
839,
29898,
265,
29901,
6120,
353,
5852,
1125,
13,
1678,
9995,
27407,
373,
29914,
2696,
278,
12611,
1246,
25023,
1213,
15945,
13,
1678,
330,
16168,
29918,
4905,
29898,
6451,
29918,
4905,
29879,
29889,
657,
703,
20713,
29918,
4804,
4968,
373,
29897,
13,
13,
13,
1753,
5305,
29918,
839,
29898,
265,
29901,
6120,
353,
5852,
1125,
13,
1678,
9995,
27407,
373,
29914,
2696,
278,
5305,
26068,
29936,
5839,
263,
364,
1743,
5305,
856,
15945,
29908,
13,
1678,
565,
373,
29901,
13,
4706,
565,
4036,
29889,
16957,
3552,
5574,
29892,
7700,
22164,
29871,
396,
694,
25621,
13,
9651,
330,
16168,
29918,
4905,
29898,
6451,
29918,
4905,
29879,
29889,
657,
703,
20845,
29918,
786,
4968,
373,
29897,
13,
4706,
1683,
29901,
13,
9651,
330,
16168,
29918,
4905,
29898,
6451,
29918,
4905,
29879,
29889,
657,
703,
20845,
29918,
5200,
4968,
373,
29897,
13,
1678,
1683,
29901,
13,
4706,
396,
373,
1275,
7700,
1599,
5947,
13,
4706,
330,
16168,
29918,
4905,
29898,
6451,
29918,
4905,
29879,
29889,
657,
703,
20845,
29918,
786,
4968,
373,
29897,
13,
4706,
330,
16168,
29918,
4905,
29898,
6451,
29918,
4905,
29879,
29889,
657,
703,
20845,
29918,
5200,
4968,
373,
29897,
13,
13,
13,
1753,
3050,
29918,
5358,
29918,
839,
29898,
265,
29901,
6120,
353,
5852,
1125,
13,
1678,
9995,
27407,
373,
29914,
2696,
278,
3050,
3802,
25023,
1213,
15945,
13,
1678,
330,
16168,
29918,
4905,
29898,
6451,
29918,
4905,
29879,
29889,
657,
703,
17433,
29918,
5358,
4968,
373,
29897,
13,
13,
13,
1753,
3050,
29918,
3150,
29918,
839,
29898,
265,
29901,
6120,
353,
5852,
1125,
13,
1678,
9995,
27407,
373,
29914,
2696,
278,
3050,
1722,
25023,
1213,
15945,
13,
1678,
330,
16168,
29918,
4905,
29898,
6451,
29918,
4905,
29879,
29889,
657,
703,
17433,
29918,
3150,
4968,
373,
29897,
13,
13,
13,
1753,
11904,
29918,
3092,
29918,
839,
29898,
14939,
29892,
373,
29901,
6120,
353,
5852,
1125,
13,
1678,
9995,
27407,
373,
29914,
2696,
11904,
25023,
1213,
15945,
13,
1678,
565,
373,
29901,
13,
4706,
282,
1113,
29889,
305,
12629,
29961,
14939,
1822,
29881,
329,
29891,
29918,
23090,
353,
29871,
29900,
29916,
22098,
13,
1678,
1683,
29901,
13,
4706,
282,
1113,
29889,
305,
12629,
29961,
14939,
1822,
29881,
329,
29891,
29918,
23090,
353,
29871,
29900,
13,
13,
13,
1753,
599,
29918,
4366,
29879,
29918,
2696,
7295,
13,
1678,
9995,
27407,
599,
365,
5861,
29914,
1307,
8452,
1283,
1213,
15945,
13,
1678,
363,
474,
297,
3464,
29898,
29900,
29892,
29871,
29896,
29945,
1125,
13,
4706,
282,
1113,
29889,
305,
12629,
29961,
29875,
1822,
29881,
329,
29891,
29918,
23090,
353,
29871,
29900,
13,
1678,
363,
474,
297,
2761,
29918,
4905,
29879,
29889,
5975,
7295,
13,
4706,
330,
16168,
29918,
4905,
29898,
29875,
29892,
7700,
29897,
13,
2
] |
examples/retrieve/owners_retrieve.py | jhurd-tc/threatconnect-python | 0 | 127972 | # -*- coding: utf-8 -*-
""" standard """
import ConfigParser
from random import randint
import sys
""" custom """
from threatconnect import ThreatConnect
from threatconnect.Config.FilterOperator import FilterSetOperator
# configuration file
config_file = "tc.conf"
# retrieve configuration file
config = ConfigParser.RawConfigParser()
config.read(config_file)
try:
api_access_id = config.get('threatconnect', 'api_access_id')
api_secret_key = config.get('threatconnect', 'api_secret_key')
api_default_org = config.get('threatconnect', 'api_default_org')
api_base_url = config.get('threatconnect', 'api_base_url')
api_result_limit = int(config.get('threatconnect', 'api_result_limit'))
except ConfigParser.NoOptionError:
print('Could not retrieve configuration file.')
sys.exit(1)
tc = ThreatConnect(api_access_id, api_secret_key, api_default_org, api_base_url)
tc.set_api_result_limit(api_result_limit)
tc.report_enable()
""" Get Owners """
enable_example1 = False
enable_example2 = False
enable_example3 = False
# shared method to display results from examples below
def show_data(result_obj):
""" """
for obj in result_obj:
print('\n{0!s:_^80}'.format(obj.name))
print('{0!s:<20}{1!s:<50}'.format('ID', obj.id))
print('{0!s:<20}{1!s:<50}'.format('Type', obj.type))
#
# api_uris
#
if len(obj.request_uris) > 0:
print('\n{0!s:-^40}'.format(' Request URIs '))
for request_uri in obj.request_uris:
print('{0!s:<20}{1!s:<50}'.format('URI', request_uri))
#
# matched filters
#
if len(obj.matched_filters) > 0:
print('\n{0!s:-^40}'.format(' API Matched Filters '))
for api_filter in obj.matched_filters:
print('{0!s:<20}{1!s:<50}'.format('Filter', api_filter))
#
# print report
#
print(tc.report.stats)
def main():
""" """
# set threat connect log (tcl) level
tc.set_tcl_file('log/tc.log', 'debug')
tc.set_tcl_console_level('critical')
if enable_example1:
""" This is a basic example that pull all owners. """
# optionally set the max results the api should return in one request
tc.set_api_result_limit(500)
# get owner object
owners = tc.owners()
# retrieve owners
try:
owners.retrieve()
except RuntimeError as e:
print('Error: {0!s}'.format(e))
sys.exit(1)
# show owner data
show_data(owners)
if enable_example2:
""" This example retrieves all owners that a particular indicator appears. """
# get owner object
owners = tc.owners()
# filter results
try:
filter1 = owners.add_filter()
filter1.add_indicator('10.20.30.40')
filter1.add_pf_name('Example Community')
filter1.add_pf_type('Community') # Organization, Community, Source
except AttributeError as e:
print('Error: {0!s}'.format(e))
sys.exit(1)
# retrieve owners
try:
owners.retrieve()
except RuntimeError as e:
print('Error: {0!s}'.format(e))
sys.exit(1)
# show owner data
show_data(owners)
"""
Method:
get_owners() -> This method can be used to get a object containing owners filtered by indicator.
"""
if enable_example3:
# get owner object
owners = tc.owners()
# filter results
try:
filter1 = owners.add_filter()
filter1.add_indicator('10.20.30.40')
except AttributeError as e:
print('Error: {0!s}'.format(e))
sys.exit(1)
try:
filter2 = owners.add_filter()
filter2.add_filter_operator(FilterSetOperator.AND)
filter2.add_indicator('<EMAIL>')
except AttributeError as e:
print('Error: {0!s}'.format(e))
sys.exit(1)
# retrieve owners
try:
owners.retrieve()
except AttributeError as e:
print('Error: {0!s}'.format(e))
sys.exit(1)
# show owner data
show_data(owners)
if __name__ == "__main__":
main()
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
3918,
9995,
13,
5215,
12782,
11726,
13,
3166,
4036,
1053,
20088,
524,
13,
5215,
10876,
13,
13,
15945,
29908,
2888,
9995,
13,
3166,
28469,
6915,
1053,
498,
276,
271,
17918,
13,
3166,
28469,
6915,
29889,
3991,
29889,
5072,
26486,
1053,
19916,
2697,
26486,
13,
13,
29937,
5285,
934,
13,
2917,
29918,
1445,
353,
376,
14246,
29889,
5527,
29908,
13,
13,
29937,
10563,
5285,
934,
13,
2917,
353,
12782,
11726,
29889,
22131,
3991,
11726,
580,
13,
2917,
29889,
949,
29898,
2917,
29918,
1445,
29897,
13,
13,
2202,
29901,
13,
1678,
7882,
29918,
5943,
29918,
333,
353,
2295,
29889,
657,
877,
386,
276,
271,
6915,
742,
525,
2754,
29918,
5943,
29918,
333,
1495,
13,
1678,
7882,
29918,
19024,
29918,
1989,
353,
2295,
29889,
657,
877,
386,
276,
271,
6915,
742,
525,
2754,
29918,
19024,
29918,
1989,
1495,
13,
1678,
7882,
29918,
4381,
29918,
990,
353,
2295,
29889,
657,
877,
386,
276,
271,
6915,
742,
525,
2754,
29918,
4381,
29918,
990,
1495,
13,
1678,
7882,
29918,
3188,
29918,
2271,
353,
2295,
29889,
657,
877,
386,
276,
271,
6915,
742,
525,
2754,
29918,
3188,
29918,
2271,
1495,
13,
1678,
7882,
29918,
2914,
29918,
13400,
353,
938,
29898,
2917,
29889,
657,
877,
386,
276,
271,
6915,
742,
525,
2754,
29918,
2914,
29918,
13400,
8785,
13,
19499,
12782,
11726,
29889,
3782,
8375,
2392,
29901,
13,
1678,
1596,
877,
23323,
451,
10563,
5285,
934,
29889,
1495,
13,
1678,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
14246,
353,
498,
276,
271,
17918,
29898,
2754,
29918,
5943,
29918,
333,
29892,
7882,
29918,
19024,
29918,
1989,
29892,
7882,
29918,
4381,
29918,
990,
29892,
7882,
29918,
3188,
29918,
2271,
29897,
13,
14246,
29889,
842,
29918,
2754,
29918,
2914,
29918,
13400,
29898,
2754,
29918,
2914,
29918,
13400,
29897,
13,
14246,
29889,
12276,
29918,
12007,
580,
13,
13,
15945,
29908,
3617,
438,
1233,
414,
9995,
13,
12007,
29918,
4773,
29896,
353,
7700,
13,
12007,
29918,
4773,
29906,
353,
7700,
13,
12007,
29918,
4773,
29941,
353,
7700,
13,
13,
13,
29937,
7258,
1158,
304,
2479,
2582,
515,
6455,
2400,
13,
1753,
1510,
29918,
1272,
29898,
2914,
29918,
5415,
1125,
13,
1678,
9995,
29871,
9995,
13,
1678,
363,
5446,
297,
1121,
29918,
5415,
29901,
13,
4706,
1596,
28909,
29876,
29912,
29900,
29991,
29879,
29901,
29918,
29985,
29947,
29900,
29913,
4286,
4830,
29898,
5415,
29889,
978,
876,
13,
4706,
1596,
877,
29912,
29900,
29991,
29879,
29901,
29966,
29906,
29900,
1157,
29896,
29991,
29879,
29901,
29966,
29945,
29900,
29913,
4286,
4830,
877,
1367,
742,
5446,
29889,
333,
876,
13,
4706,
1596,
877,
29912,
29900,
29991,
29879,
29901,
29966,
29906,
29900,
1157,
29896,
29991,
29879,
29901,
29966,
29945,
29900,
29913,
4286,
4830,
877,
1542,
742,
5446,
29889,
1853,
876,
13,
13,
4706,
396,
13,
4706,
396,
7882,
29918,
332,
275,
13,
4706,
396,
13,
4706,
565,
7431,
29898,
5415,
29889,
3827,
29918,
332,
275,
29897,
1405,
29871,
29900,
29901,
13,
9651,
1596,
28909,
29876,
29912,
29900,
29991,
29879,
13018,
29985,
29946,
29900,
29913,
4286,
4830,
877,
10729,
501,
29934,
3624,
525,
876,
13,
9651,
363,
2009,
29918,
5338,
297,
5446,
29889,
3827,
29918,
332,
275,
29901,
13,
18884,
1596,
877,
29912,
29900,
29991,
29879,
29901,
29966,
29906,
29900,
1157,
29896,
29991,
29879,
29901,
29966,
29945,
29900,
29913,
4286,
4830,
877,
15551,
742,
2009,
29918,
5338,
876,
13,
13,
4706,
396,
13,
4706,
396,
19228,
18094,
13,
4706,
396,
13,
4706,
565,
7431,
29898,
5415,
29889,
4352,
287,
29918,
26705,
29897,
1405,
29871,
29900,
29901,
13,
9651,
1596,
28909,
29876,
29912,
29900,
29991,
29879,
13018,
29985,
29946,
29900,
29913,
4286,
4830,
877,
3450,
14514,
287,
2514,
2153,
525,
876,
13,
9651,
363,
7882,
29918,
4572,
297,
5446,
29889,
4352,
287,
29918,
26705,
29901,
13,
18884,
1596,
877,
29912,
29900,
29991,
29879,
29901,
29966,
29906,
29900,
1157,
29896,
29991,
29879,
29901,
29966,
29945,
29900,
29913,
4286,
4830,
877,
5072,
742,
7882,
29918,
4572,
876,
13,
13,
1678,
396,
13,
1678,
396,
1596,
3461,
13,
1678,
396,
13,
1678,
1596,
29898,
14246,
29889,
12276,
29889,
16202,
29897,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
9995,
9995,
13,
1678,
396,
731,
28469,
4511,
1480,
313,
29873,
695,
29897,
3233,
13,
1678,
260,
29883,
29889,
842,
29918,
29873,
695,
29918,
1445,
877,
1188,
29914,
14246,
29889,
1188,
742,
525,
8382,
1495,
13,
1678,
260,
29883,
29889,
842,
29918,
29873,
695,
29918,
11058,
29918,
5563,
877,
9695,
936,
1495,
13,
13,
1678,
565,
9025,
29918,
4773,
29896,
29901,
13,
4706,
9995,
910,
338,
263,
6996,
1342,
393,
8206,
599,
1914,
414,
29889,
9995,
13,
4706,
396,
2984,
635,
731,
278,
4236,
2582,
278,
7882,
881,
736,
297,
697,
2009,
13,
4706,
260,
29883,
29889,
842,
29918,
2754,
29918,
2914,
29918,
13400,
29898,
29945,
29900,
29900,
29897,
13,
13,
4706,
396,
679,
12271,
1203,
13,
4706,
1914,
414,
353,
260,
29883,
29889,
776,
414,
580,
13,
13,
4706,
396,
10563,
1914,
414,
13,
4706,
1018,
29901,
13,
9651,
1914,
414,
29889,
276,
509,
2418,
580,
13,
4706,
5174,
24875,
2392,
408,
321,
29901,
13,
9651,
1596,
877,
2392,
29901,
426,
29900,
29991,
29879,
29913,
4286,
4830,
29898,
29872,
876,
13,
9651,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
4706,
396,
1510,
12271,
848,
13,
4706,
1510,
29918,
1272,
29898,
776,
414,
29897,
13,
13,
1678,
565,
9025,
29918,
4773,
29906,
29901,
13,
4706,
9995,
910,
1342,
5663,
17180,
599,
1914,
414,
393,
263,
3153,
27717,
5692,
29889,
9995,
13,
13,
4706,
396,
679,
12271,
1203,
13,
4706,
1914,
414,
353,
260,
29883,
29889,
776,
414,
580,
13,
13,
4706,
396,
4175,
2582,
13,
4706,
1018,
29901,
13,
9651,
4175,
29896,
353,
1914,
414,
29889,
1202,
29918,
4572,
580,
13,
9651,
4175,
29896,
29889,
1202,
29918,
513,
20485,
877,
29896,
29900,
29889,
29906,
29900,
29889,
29941,
29900,
29889,
29946,
29900,
1495,
13,
9651,
4175,
29896,
29889,
1202,
29918,
7810,
29918,
978,
877,
14023,
19184,
1495,
13,
9651,
4175,
29896,
29889,
1202,
29918,
7810,
29918,
1853,
877,
5261,
6997,
1495,
29871,
396,
9205,
2133,
29892,
19184,
29892,
7562,
13,
4706,
5174,
23833,
2392,
408,
321,
29901,
13,
9651,
1596,
877,
2392,
29901,
426,
29900,
29991,
29879,
29913,
4286,
4830,
29898,
29872,
876,
13,
9651,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
4706,
396,
10563,
1914,
414,
13,
4706,
1018,
29901,
13,
9651,
1914,
414,
29889,
276,
509,
2418,
580,
13,
4706,
5174,
24875,
2392,
408,
321,
29901,
13,
9651,
1596,
877,
2392,
29901,
426,
29900,
29991,
29879,
29913,
4286,
4830,
29898,
29872,
876,
13,
9651,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
4706,
396,
1510,
12271,
848,
13,
4706,
1510,
29918,
1272,
29898,
776,
414,
29897,
13,
13,
1678,
9995,
13,
1678,
8108,
29901,
13,
1678,
679,
29918,
776,
414,
580,
1599,
29871,
910,
1158,
508,
367,
1304,
304,
679,
263,
1203,
6943,
1914,
414,
22289,
491,
27717,
29889,
13,
1678,
9995,
13,
1678,
565,
9025,
29918,
4773,
29941,
29901,
13,
13,
4706,
396,
679,
12271,
1203,
13,
4706,
1914,
414,
353,
260,
29883,
29889,
776,
414,
580,
13,
13,
4706,
396,
4175,
2582,
13,
4706,
1018,
29901,
13,
9651,
4175,
29896,
353,
1914,
414,
29889,
1202,
29918,
4572,
580,
13,
9651,
4175,
29896,
29889,
1202,
29918,
513,
20485,
877,
29896,
29900,
29889,
29906,
29900,
29889,
29941,
29900,
29889,
29946,
29900,
1495,
13,
4706,
5174,
23833,
2392,
408,
321,
29901,
13,
9651,
1596,
877,
2392,
29901,
426,
29900,
29991,
29879,
29913,
4286,
4830,
29898,
29872,
876,
13,
9651,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
4706,
1018,
29901,
13,
9651,
4175,
29906,
353,
1914,
414,
29889,
1202,
29918,
4572,
580,
13,
9651,
4175,
29906,
29889,
1202,
29918,
4572,
29918,
6891,
29898,
5072,
2697,
26486,
29889,
9468,
29897,
13,
9651,
4175,
29906,
29889,
1202,
29918,
513,
20485,
877,
29966,
26862,
6227,
29958,
1495,
13,
4706,
5174,
23833,
2392,
408,
321,
29901,
13,
9651,
1596,
877,
2392,
29901,
426,
29900,
29991,
29879,
29913,
4286,
4830,
29898,
29872,
876,
13,
9651,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
4706,
396,
10563,
1914,
414,
13,
4706,
1018,
29901,
13,
9651,
1914,
414,
29889,
276,
509,
2418,
580,
13,
4706,
5174,
23833,
2392,
408,
321,
29901,
13,
9651,
1596,
877,
2392,
29901,
426,
29900,
29991,
29879,
29913,
4286,
4830,
29898,
29872,
876,
13,
9651,
10876,
29889,
13322,
29898,
29896,
29897,
13,
13,
4706,
396,
1510,
12271,
848,
13,
4706,
1510,
29918,
1272,
29898,
776,
414,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1667,
580,
13,
2
] |
anime_downloader/__version__.py | cmjesz/anime-downloader | 1 | 110593 | __version__ = '4.0.0.r1'
| [
1,
4770,
3259,
1649,
353,
525,
29946,
29889,
29900,
29889,
29900,
29889,
29878,
29896,
29915,
13,
2
] |
drogher/package/fedex.py | thisisnotmyuserid/drogher | 13 | 14932 | <filename>drogher/package/fedex.py
import itertools
from .base import Package
class FedEx(Package):
shipper = 'FedEx'
class FedExExpress(FedEx):
barcode_pattern = r'^\d{34}$'
@property
def tracking_number(self):
return self.barcode[20:22].lstrip('0') + self.barcode[22:]
@property
def valid_checksum(self):
chars, check_digit = self.tracking_number[:-1], self.tracking_number[-1]
total = 0
for digit, char in zip(itertools.cycle([1, 3, 7]), reversed(chars)):
total += int(char) * digit
return total % 11 % 10 == int(check_digit)
class FedExGround96(FedEx):
barcode_pattern = r'^96\d{20}$'
@property
def tracking_number(self):
return self.barcode[7:]
@property
def valid_checksum(self):
chars, check_digit = self.tracking_number[:-1], self.tracking_number[-1]
odd = even = 0
for i, char in enumerate(reversed(chars)):
if i & 0x1:
odd += int(char)
else:
even += int(char)
check = ((even * 3) + odd) % 10
if check != 0:
check = 10 - check
return check == int(check_digit)
| [
1,
529,
9507,
29958,
29881,
9102,
2276,
29914,
5113,
29914,
29888,
287,
735,
29889,
2272,
13,
5215,
4256,
8504,
13,
13,
3166,
869,
3188,
1053,
22029,
13,
13,
13,
1990,
17972,
1252,
29898,
14459,
1125,
13,
1678,
528,
29875,
2496,
353,
525,
29943,
287,
1252,
29915,
13,
13,
13,
1990,
17972,
1252,
27404,
29898,
29943,
287,
1252,
1125,
13,
1678,
2594,
401,
29918,
11037,
353,
364,
29915,
3823,
29881,
29912,
29941,
29946,
1042,
29915,
13,
13,
1678,
732,
6799,
13,
1678,
822,
23110,
29918,
4537,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
1646,
401,
29961,
29906,
29900,
29901,
29906,
29906,
1822,
29880,
17010,
877,
29900,
1495,
718,
1583,
29889,
1646,
401,
29961,
29906,
29906,
17531,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2854,
29918,
3198,
2083,
29898,
1311,
1125,
13,
4706,
22524,
29892,
1423,
29918,
26204,
353,
1583,
29889,
11294,
292,
29918,
4537,
7503,
29899,
29896,
1402,
1583,
29889,
11294,
292,
29918,
4537,
14352,
29896,
29962,
13,
4706,
3001,
353,
29871,
29900,
13,
4706,
363,
13615,
29892,
1373,
297,
14319,
29898,
1524,
8504,
29889,
23090,
4197,
29896,
29892,
29871,
29941,
29892,
29871,
29955,
11724,
18764,
287,
29898,
305,
1503,
22164,
13,
9651,
3001,
4619,
938,
29898,
3090,
29897,
334,
13615,
13,
4706,
736,
3001,
1273,
29871,
29896,
29896,
1273,
29871,
29896,
29900,
1275,
938,
29898,
3198,
29918,
26204,
29897,
13,
13,
13,
1990,
17972,
1252,
3338,
618,
29929,
29953,
29898,
29943,
287,
1252,
1125,
13,
1678,
2594,
401,
29918,
11037,
353,
364,
29915,
29985,
29929,
29953,
29905,
29881,
29912,
29906,
29900,
1042,
29915,
13,
13,
1678,
732,
6799,
13,
1678,
822,
23110,
29918,
4537,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
1646,
401,
29961,
29955,
17531,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2854,
29918,
3198,
2083,
29898,
1311,
1125,
13,
4706,
22524,
29892,
1423,
29918,
26204,
353,
1583,
29889,
11294,
292,
29918,
4537,
7503,
29899,
29896,
1402,
1583,
29889,
11294,
292,
29918,
4537,
14352,
29896,
29962,
13,
4706,
7736,
353,
1584,
353,
29871,
29900,
13,
4706,
363,
474,
29892,
1373,
297,
26985,
29898,
276,
874,
287,
29898,
305,
1503,
22164,
13,
9651,
565,
474,
669,
29871,
29900,
29916,
29896,
29901,
13,
18884,
7736,
4619,
938,
29898,
3090,
29897,
13,
9651,
1683,
29901,
13,
18884,
1584,
4619,
938,
29898,
3090,
29897,
13,
4706,
1423,
353,
5135,
11884,
334,
29871,
29941,
29897,
718,
7736,
29897,
1273,
29871,
29896,
29900,
13,
4706,
565,
1423,
2804,
29871,
29900,
29901,
13,
9651,
1423,
353,
29871,
29896,
29900,
448,
1423,
13,
4706,
736,
1423,
1275,
938,
29898,
3198,
29918,
26204,
29897,
13,
2
] |
tests/eth_detectors.py | Srinivas11789/manticore | 0 | 57757 | <filename>tests/eth_detectors.py
"""
File name is purposefully not test_* to run this test separately.
"""
import inspect
import shutil
import struct
import tempfile
import unittest
import os
from manticore.core.smtlib import operators
from eth_general import make_mock_evm_state
from manticore.ethereum import ManticoreEVM, DetectInvalid, DetectIntegerOverflow, Detector, NoAliveStates, ABI, \
EthereumError, DetectReentrancySimple, DetectReentrancyAdvanced, DetectUnusedRetVal, DetectSelfdestruct, LoopDepthLimiter, DetectDelegatecall, \
DetectEnvInstruction, DetectExternalCallAndLeak, DetectEnvInstruction
import shutil
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
# FIXME(mark): Remove these two lines when logging works for ManticoreEVM
from manticore.utils.log import init_logging, set_verbosity
init_logging()
set_verbosity(0)
class EthDetectorTest(unittest.TestCase):
"""
Subclasses must assign this class variable to the class for the detector
"""
DETECTOR_CLASS = None
def setUp(self):
self.mevm = ManticoreEVM()
self.mevm.verbosity(0)
self.worksp = self.mevm.workspace
def tearDown(self):
self.mevm = None
shutil.rmtree(self.worksp)
def _test(self, name, should_find):
"""
Tests DetectInvalid over the consensys benchmark suit
"""
mevm = self.mevm
filename = os.path.join(THIS_DIR, 'binaries', 'detectors', '{}.sol'.format(name))
self.mevm.register_detector(self.DETECTOR_CLASS())
mevm.multi_tx_analysis(filename, contract_name='DetectThis', args=(mevm.make_symbolic_value(),))
expected_findings = set(((c, d) for b, c, d in should_find))
actual_findings = set(((c, d) for a, b, c, d in mevm.global_findings))
self.assertEqual(expected_findings, actual_findings)
class EthRetVal(EthDetectorTest):
""" Detect when a return value of a low level transaction instruction is ignored """
DETECTOR_CLASS = DetectUnusedRetVal
def test_retval_ok(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_retval_not_ok(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(337, 'Returned value at CALL instruction is not used', False)})
def test_retval_crazy(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_retval_lunatic(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
class EthSelfdestruct(EthDetectorTest):
DETECTOR_CLASS = DetectSelfdestruct
def test_selfdestruct_true_pos(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(307, 'Reachable SELFDESTRUCT', False)})
def test_selfdestruct_true_pos1(self):
self.mevm.register_plugin(LoopDepthLimiter(2))
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(307, 'Reachable SELFDESTRUCT', False)})
def test_selfdestruct_true_neg(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_selfdestruct_true_neg1(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
class EthExternalCallAndLeak(EthDetectorTest):
DETECTOR_CLASS = DetectExternalCallAndLeak
def test_etherleak_true_neg(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_etherleak_true_neg1(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_etherleak_true_neg2(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(0x1c5, "Reachable external call to sender", False)})
def test_etherleak_true_neg3(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(0x1c5, "Reachable external call to sender", False)})
def test_etherleak_true_pos_argument(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(0x1c5, "Reachable ether leak to sender via argument", False)})
def test_etherleak_true_pos_argument1(self):
self.mevm.register_plugin(LoopDepthLimiter(5))
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(0x1c5, "Reachable ether leak to sender via argument", False)})
def test_etherleak_true_pos_argument2(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(0x1c5, "Reachable ether leak to user controlled address via argument", False)})
def test_etherleak_true_pos_msgsender(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(0x1c5, "Reachable external call to sender", False), (0x1c5, "Reachable ether leak to sender", False)})
def test_etherleak_true_pos_msgsender1(self):
self.mevm.register_plugin(LoopDepthLimiter(5))
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(0x1c5, "Reachable external call to sender", False), (0x1c5, "Reachable ether leak to sender", False)})
class EthIntegerOverflow(unittest.TestCase):
def setUp(self):
self.io = DetectIntegerOverflow()
self.state = make_mock_evm_state()
def test_mul_no_overflow(self):
"""
Regression test added for issue 714, where we were using the ADD ovf check for MUL
"""
arguments = [1 << 248, self.state.new_symbolic_value(256)]
self.state.constrain(operators.ULT(arguments[1], 256))
cond = self.io._unsigned_mul_overflow(self.state, *arguments)
check = self.state.can_be_true(cond)
self.assertFalse(check)
def test_mul_overflow0(self):
arguments = [1 << 249, self.state.new_symbolic_value(256)]
self.state.constrain(operators.ULT(arguments[1], 256))
cond = self.io._unsigned_mul_overflow(self.state, *arguments)
check = self.state.can_be_true(cond)
self.assertTrue(check)
def test_mul_overflow1(self):
arguments = [1 << 255, self.state.new_symbolic_value(256)]
cond = self.io._unsigned_mul_overflow(self.state, *arguments)
check = self.state.can_be_true(cond)
self.assertTrue(check)
class DetectEnvInstruction(EthDetectorTest):
DETECTOR_CLASS = DetectEnvInstruction
def test_predictable_not_ok(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(174, 'Warning ORIGIN instruction used', False), (157, 'Warning DIFFICULTY instruction used', False), (129, 'Warning TIMESTAMP instruction used', False), (165, 'Warning NUMBER instruction used', False), (132, 'Warning COINBASE instruction used', False), (167, 'Warning BLOCKHASH instruction used', False), (160, 'Warning NUMBER instruction used', False), (199, 'Warning GASPRICE instruction used', False), (202, 'Warning GASLIMIT instruction used', False)})
class EthDelegatecall(EthDetectorTest):
""" Test the detection of funny delegatecalls """
DETECTOR_CLASS = DetectDelegatecall
def test_delegatecall_ok(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_delegatecall_ok1(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_delegatecall_ok2(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
@unittest.skip("Too slow for this modern times")
def test_delegatecall_ok3(self):
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, set())
def test_delegatecall_not_ok(self):
self.mevm.register_plugin(LoopDepthLimiter())
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(179, 'Delegatecall to user controlled function', False), (179, 'Delegatecall to user controlled address', False)})
@unittest.skip("Too slow for this modern times")
def test_delegatecall_not_ok1(self):
self.mevm.register_plugin(LoopDepthLimiter(loop_count_threshold=500))
name = inspect.currentframe().f_code.co_name[5:]
self._test(name, {(179, 'Delegatecall to user controlled function', False)})
| [
1,
529,
9507,
29958,
21150,
29914,
621,
29918,
4801,
11142,
29889,
2272,
13,
15945,
29908,
13,
2283,
1024,
338,
6437,
3730,
451,
1243,
24563,
304,
1065,
445,
1243,
16949,
29889,
13,
15945,
29908,
13,
13,
5215,
16096,
13,
5215,
528,
4422,
13,
5215,
2281,
13,
5215,
5694,
1445,
13,
5215,
443,
27958,
13,
5215,
2897,
13,
13,
3166,
286,
7716,
487,
29889,
3221,
29889,
3844,
29873,
1982,
1053,
12768,
13,
3166,
11314,
29918,
17492,
1053,
1207,
29918,
17640,
29918,
5750,
29885,
29918,
3859,
13,
3166,
286,
7716,
487,
29889,
621,
406,
398,
1053,
341,
7716,
487,
29923,
9219,
29892,
5953,
522,
13919,
29892,
5953,
522,
7798,
23773,
29892,
5953,
3019,
29892,
1939,
29909,
9258,
855,
1078,
29892,
319,
12809,
29892,
320,
13,
1678,
382,
12711,
398,
2392,
29892,
5953,
522,
1123,
296,
661,
1270,
15427,
29892,
5953,
522,
1123,
296,
661,
1270,
3253,
16858,
29892,
5953,
522,
2525,
3880,
8015,
1440,
29892,
5953,
522,
24313,
7854,
1247,
29892,
21493,
8498,
386,
29931,
19657,
29892,
5953,
522,
11494,
4804,
29892,
320,
13,
1678,
5953,
522,
21745,
3379,
4080,
29892,
5953,
522,
25865,
5594,
2855,
3226,
557,
29892,
5953,
522,
21745,
3379,
4080,
13,
13,
5215,
528,
4422,
13,
13,
4690,
3235,
29918,
9464,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
22168,
1445,
1649,
876,
13,
13,
29937,
383,
6415,
2303,
29898,
3502,
1125,
15154,
1438,
1023,
3454,
746,
12183,
1736,
363,
341,
7716,
487,
29923,
9219,
13,
3166,
286,
7716,
487,
29889,
13239,
29889,
1188,
1053,
2069,
29918,
21027,
29892,
731,
29918,
18248,
359,
537,
13,
13,
2344,
29918,
21027,
580,
13,
842,
29918,
18248,
359,
537,
29898,
29900,
29897,
13,
13,
13,
1990,
13772,
6362,
3019,
3057,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
9995,
13,
1678,
3323,
13203,
1818,
3566,
445,
770,
2286,
304,
278,
770,
363,
278,
1439,
3019,
13,
1678,
9995,
13,
1678,
360,
2544,
13845,
1955,
29918,
13875,
1799,
353,
6213,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1004,
6925,
353,
341,
7716,
487,
29923,
9219,
580,
13,
4706,
1583,
29889,
1004,
6925,
29889,
18248,
359,
537,
29898,
29900,
29897,
13,
4706,
1583,
29889,
1287,
1028,
353,
1583,
29889,
1004,
6925,
29889,
1287,
3493,
13,
13,
1678,
822,
734,
279,
6767,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1004,
6925,
353,
6213,
13,
4706,
528,
4422,
29889,
1758,
8336,
29898,
1311,
29889,
1287,
1028,
29897,
13,
13,
1678,
822,
903,
1688,
29898,
1311,
29892,
1024,
29892,
881,
29918,
2886,
1125,
13,
4706,
9995,
13,
4706,
4321,
29879,
5953,
522,
13919,
975,
278,
1136,
575,
952,
23513,
14726,
13,
4706,
9995,
13,
4706,
592,
6925,
353,
1583,
29889,
1004,
6925,
13,
13,
4706,
10422,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4690,
3235,
29918,
9464,
29892,
525,
2109,
4314,
742,
525,
4801,
11142,
742,
22372,
1836,
2929,
4286,
4830,
29898,
978,
876,
13,
13,
4706,
1583,
29889,
1004,
6925,
29889,
9573,
29918,
4801,
3019,
29898,
1311,
29889,
2287,
4330,
1783,
1955,
29918,
13875,
1799,
3101,
13,
4706,
592,
6925,
29889,
9910,
29918,
7508,
29918,
15916,
29898,
9507,
29892,
8078,
29918,
978,
2433,
6362,
522,
4013,
742,
6389,
7607,
1004,
6925,
29889,
5675,
29918,
18098,
293,
29918,
1767,
3285,
876,
13,
13,
4706,
3806,
29918,
2886,
886,
353,
731,
3552,
29898,
29883,
29892,
270,
29897,
363,
289,
29892,
274,
29892,
270,
297,
881,
29918,
2886,
876,
13,
4706,
3935,
29918,
2886,
886,
353,
731,
3552,
29898,
29883,
29892,
270,
29897,
363,
263,
29892,
289,
29892,
274,
29892,
270,
297,
592,
6925,
29889,
10945,
29918,
2886,
886,
876,
13,
4706,
1583,
29889,
9294,
9843,
29898,
9684,
29918,
2886,
886,
29892,
3935,
29918,
2886,
886,
29897,
13,
13,
1990,
13772,
8015,
1440,
29898,
29923,
386,
6362,
3019,
3057,
1125,
13,
1678,
9995,
5953,
522,
746,
263,
736,
995,
310,
263,
4482,
3233,
10804,
15278,
338,
17262,
9995,
13,
1678,
360,
2544,
13845,
1955,
29918,
13875,
1799,
353,
5953,
522,
2525,
3880,
8015,
1440,
13,
13,
1678,
822,
1243,
29918,
2267,
791,
29918,
554,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
2267,
791,
29918,
1333,
29918,
554,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29941,
29941,
29955,
29892,
525,
11609,
287,
995,
472,
315,
9818,
15278,
338,
451,
1304,
742,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
2267,
791,
29918,
26844,
1537,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
2267,
791,
29918,
29880,
348,
2454,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
13,
1990,
13772,
24313,
7854,
1247,
29898,
29923,
386,
6362,
3019,
3057,
1125,
13,
1678,
360,
2544,
13845,
1955,
29918,
13875,
1799,
353,
5953,
522,
24313,
7854,
1247,
13,
13,
1678,
822,
1243,
29918,
1311,
7854,
1247,
29918,
3009,
29918,
1066,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29941,
29900,
29955,
29892,
525,
1123,
496,
519,
3725,
29931,
29943,
2287,
10810,
29965,
1783,
742,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1311,
7854,
1247,
29918,
3009,
29918,
1066,
29896,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1004,
6925,
29889,
9573,
29918,
8582,
29898,
18405,
8498,
386,
29931,
19657,
29898,
29906,
876,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29941,
29900,
29955,
29892,
525,
1123,
496,
519,
3725,
29931,
29943,
2287,
10810,
29965,
1783,
742,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1311,
7854,
1247,
29918,
3009,
29918,
10052,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
1311,
7854,
1247,
29918,
3009,
29918,
10052,
29896,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
13,
1990,
13772,
25865,
5594,
2855,
3226,
557,
29898,
29923,
386,
6362,
3019,
3057,
1125,
13,
1678,
360,
2544,
13845,
1955,
29918,
13875,
1799,
353,
5953,
522,
25865,
5594,
2855,
3226,
557,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
10052,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
10052,
29896,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
10052,
29906,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
7029,
1246,
304,
10004,
613,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
10052,
29941,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
7029,
1246,
304,
10004,
613,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
1066,
29918,
23516,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
29871,
1979,
24993,
304,
10004,
3025,
2980,
613,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
1066,
29918,
23516,
29896,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1004,
6925,
29889,
9573,
29918,
8582,
29898,
18405,
8498,
386,
29931,
19657,
29898,
29945,
876,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
29871,
1979,
24993,
304,
10004,
3025,
2980,
613,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
1066,
29918,
23516,
29906,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
29871,
1979,
24993,
304,
1404,
20704,
3211,
3025,
2980,
613,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
1066,
29918,
1516,
3174,
1581,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
7029,
1246,
304,
10004,
613,
7700,
511,
313,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
29871,
1979,
24993,
304,
10004,
613,
7700,
26972,
13,
13,
1678,
822,
1243,
29918,
1979,
280,
557,
29918,
3009,
29918,
1066,
29918,
1516,
3174,
1581,
29896,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1004,
6925,
29889,
9573,
29918,
8582,
29898,
18405,
8498,
386,
29931,
19657,
29898,
29945,
876,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
7029,
1246,
304,
10004,
613,
7700,
511,
313,
29900,
29916,
29896,
29883,
29945,
29892,
376,
1123,
496,
519,
29871,
1979,
24993,
304,
10004,
613,
7700,
26972,
13,
13,
13,
1990,
13772,
7798,
23773,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
1583,
29889,
601,
353,
5953,
522,
7798,
23773,
580,
13,
4706,
1583,
29889,
3859,
353,
1207,
29918,
17640,
29918,
5750,
29885,
29918,
3859,
580,
13,
13,
1678,
822,
1243,
29918,
16109,
29918,
1217,
29918,
2262,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
2169,
23881,
1243,
2715,
363,
2228,
29871,
29955,
29896,
29946,
29892,
988,
591,
892,
773,
278,
27827,
15397,
29888,
1423,
363,
341,
13309,
13,
4706,
9995,
13,
4706,
6273,
353,
518,
29896,
3532,
29871,
29906,
29946,
29947,
29892,
1583,
29889,
3859,
29889,
1482,
29918,
18098,
293,
29918,
1767,
29898,
29906,
29945,
29953,
4638,
13,
4706,
1583,
29889,
3859,
29889,
3075,
6038,
29898,
3372,
4097,
29889,
8647,
29898,
25699,
29961,
29896,
1402,
29871,
29906,
29945,
29953,
876,
13,
13,
4706,
2148,
353,
1583,
29889,
601,
3032,
15395,
29918,
16109,
29918,
2262,
29898,
1311,
29889,
3859,
29892,
334,
25699,
29897,
13,
4706,
1423,
353,
1583,
29889,
3859,
29889,
3068,
29918,
915,
29918,
3009,
29898,
1116,
29897,
13,
4706,
1583,
29889,
9294,
8824,
29898,
3198,
29897,
13,
13,
1678,
822,
1243,
29918,
16109,
29918,
2262,
29900,
29898,
1311,
1125,
13,
4706,
6273,
353,
518,
29896,
3532,
29871,
29906,
29946,
29929,
29892,
1583,
29889,
3859,
29889,
1482,
29918,
18098,
293,
29918,
1767,
29898,
29906,
29945,
29953,
4638,
13,
4706,
1583,
29889,
3859,
29889,
3075,
6038,
29898,
3372,
4097,
29889,
8647,
29898,
25699,
29961,
29896,
1402,
29871,
29906,
29945,
29953,
876,
13,
13,
4706,
2148,
353,
1583,
29889,
601,
3032,
15395,
29918,
16109,
29918,
2262,
29898,
1311,
29889,
3859,
29892,
334,
25699,
29897,
13,
4706,
1423,
353,
1583,
29889,
3859,
29889,
3068,
29918,
915,
29918,
3009,
29898,
1116,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
3198,
29897,
13,
13,
1678,
822,
1243,
29918,
16109,
29918,
2262,
29896,
29898,
1311,
1125,
13,
4706,
6273,
353,
518,
29896,
3532,
29871,
29906,
29945,
29945,
29892,
1583,
29889,
3859,
29889,
1482,
29918,
18098,
293,
29918,
1767,
29898,
29906,
29945,
29953,
4638,
13,
13,
4706,
2148,
353,
1583,
29889,
601,
3032,
15395,
29918,
16109,
29918,
2262,
29898,
1311,
29889,
3859,
29892,
334,
25699,
29897,
13,
4706,
1423,
353,
1583,
29889,
3859,
29889,
3068,
29918,
915,
29918,
3009,
29898,
1116,
29897,
13,
4706,
1583,
29889,
9294,
5574,
29898,
3198,
29897,
13,
13,
1990,
5953,
522,
21745,
3379,
4080,
29898,
29923,
386,
6362,
3019,
3057,
1125,
13,
1678,
360,
2544,
13845,
1955,
29918,
13875,
1799,
353,
5953,
522,
21745,
3379,
4080,
13,
13,
1678,
822,
1243,
29918,
27711,
519,
29918,
1333,
29918,
554,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29896,
29955,
29946,
29892,
525,
22709,
438,
22789,
1177,
15278,
1304,
742,
7700,
511,
313,
29896,
29945,
29955,
29892,
525,
22709,
22471,
4198,
2965,
8647,
29979,
15278,
1304,
742,
7700,
511,
313,
29896,
29906,
29929,
29892,
525,
22709,
323,
8890,
1254,
19297,
15278,
1304,
742,
7700,
511,
313,
29896,
29953,
29945,
29892,
525,
22709,
28019,
13635,
15278,
1304,
742,
7700,
511,
313,
29896,
29941,
29906,
29892,
525,
22709,
4810,
1177,
25416,
15278,
1304,
742,
7700,
511,
313,
29896,
29953,
29955,
29892,
525,
22709,
350,
21339,
29950,
24943,
15278,
1304,
742,
7700,
511,
313,
29896,
29953,
29900,
29892,
525,
22709,
28019,
13635,
15278,
1304,
742,
7700,
511,
313,
29896,
29929,
29929,
29892,
525,
22709,
402,
3289,
10593,
12107,
15278,
1304,
742,
7700,
511,
313,
29906,
29900,
29906,
29892,
525,
22709,
402,
3289,
5265,
26349,
15278,
1304,
742,
7700,
26972,
13,
13,
13,
13,
1990,
13772,
11494,
4804,
29898,
29923,
386,
6362,
3019,
3057,
1125,
13,
1678,
9995,
4321,
278,
15326,
310,
2090,
1460,
13341,
29883,
4293,
9995,
13,
1678,
360,
2544,
13845,
1955,
29918,
13875,
1799,
353,
5953,
522,
11494,
4804,
13,
13,
1678,
822,
1243,
29918,
21234,
4804,
29918,
554,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
21234,
4804,
29918,
554,
29896,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
21234,
4804,
29918,
554,
29906,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
732,
348,
27958,
29889,
11014,
703,
1762,
29877,
5232,
363,
445,
5400,
3064,
1159,
13,
1678,
822,
1243,
29918,
21234,
4804,
29918,
554,
29941,
29898,
1311,
1125,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
731,
3101,
13,
13,
1678,
822,
1243,
29918,
21234,
4804,
29918,
1333,
29918,
554,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1004,
6925,
29889,
9573,
29918,
8582,
29898,
18405,
8498,
386,
29931,
19657,
3101,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29896,
29955,
29929,
29892,
525,
11494,
4804,
304,
1404,
20704,
740,
742,
7700,
511,
313,
29896,
29955,
29929,
29892,
525,
11494,
4804,
304,
1404,
20704,
3211,
742,
7700,
26972,
13,
13,
1678,
732,
348,
27958,
29889,
11014,
703,
1762,
29877,
5232,
363,
445,
5400,
3064,
1159,
13,
1678,
822,
1243,
29918,
21234,
4804,
29918,
1333,
29918,
554,
29896,
29898,
1311,
1125,
13,
4706,
1583,
29889,
1004,
6925,
29889,
9573,
29918,
8582,
29898,
18405,
8498,
386,
29931,
19657,
29898,
7888,
29918,
2798,
29918,
386,
12268,
29922,
29945,
29900,
29900,
876,
13,
4706,
1024,
353,
16096,
29889,
3784,
2557,
2141,
29888,
29918,
401,
29889,
1111,
29918,
978,
29961,
29945,
17531,
13,
4706,
1583,
3032,
1688,
29898,
978,
29892,
426,
29898,
29896,
29955,
29929,
29892,
525,
11494,
4804,
304,
1404,
20704,
740,
742,
7700,
26972,
13,
13,
13,
2
] |
dataactcore/migrations/versions/20b5109967bf_.py | brianherman/data-act-broker-backend | 1 | 138424 | """empty message
Revision ID: 20b5109967bf
Revises: 17ec44522729, <PASSWORD>
Create Date: 2017-04-03 11:25:27.381702
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = ('17ec44522729', '<PASSWORD>')
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(engine_name):
globals()["upgrade_%s" % engine_name]()
def downgrade(engine_name):
globals()["downgrade_%s" % engine_name]()
def upgrade_data_broker():
pass
def downgrade_data_broker():
pass
| [
1,
9995,
6310,
2643,
13,
13,
1123,
4924,
3553,
29901,
29871,
29906,
29900,
29890,
29945,
29896,
29900,
29929,
29929,
29953,
29955,
1635,
13,
1123,
1730,
267,
29901,
29871,
29896,
29955,
687,
29946,
29946,
29945,
29906,
29906,
29955,
29906,
29929,
29892,
529,
25711,
17013,
29958,
13,
4391,
4712,
29901,
29871,
29906,
29900,
29896,
29955,
29899,
29900,
29946,
29899,
29900,
29941,
29871,
29896,
29896,
29901,
29906,
29945,
29901,
29906,
29955,
29889,
29941,
29947,
29896,
29955,
29900,
29906,
13,
13,
15945,
29908,
13,
13,
29937,
26554,
2893,
14903,
29892,
1304,
491,
319,
2409,
29890,
293,
29889,
13,
276,
4924,
353,
12801,
10818,
16299,
13,
3204,
29918,
276,
4924,
353,
6702,
29896,
29955,
687,
29946,
29946,
29945,
29906,
29906,
29955,
29906,
29929,
742,
12801,
25711,
17013,
29958,
1495,
13,
17519,
29918,
21134,
353,
6213,
13,
2716,
1975,
29918,
265,
353,
6213,
13,
13,
3166,
20712,
29890,
293,
1053,
1015,
13,
5215,
4576,
284,
305,
6764,
408,
872,
13,
13,
13,
1753,
14955,
29898,
10599,
29918,
978,
1125,
13,
1678,
13149,
1338,
580,
3366,
786,
8228,
29918,
29995,
29879,
29908,
1273,
6012,
29918,
978,
29962,
580,
13,
13,
13,
1753,
1623,
8228,
29898,
10599,
29918,
978,
1125,
13,
1678,
13149,
1338,
580,
3366,
3204,
8228,
29918,
29995,
29879,
29908,
1273,
6012,
29918,
978,
29962,
580,
13,
13,
13,
13,
13,
13,
1753,
14955,
29918,
1272,
29918,
6729,
3946,
7295,
13,
1678,
1209,
13,
13,
13,
1753,
1623,
8228,
29918,
1272,
29918,
6729,
3946,
7295,
13,
1678,
1209,
13,
13,
2
] |
python/edna/src/edna/emit/StdoutEmit.py | prernaagarwal/cs6235Project | 3 | 75778 | from edna.emit import BaseEmit
from sys import stdout
class StdoutEmit(BaseEmit):
"""An Emitter that writes to Stdout"""
def write(self):
"""Writes the message to the standard output. Ideally, the message should be a string. This is useful only for debugging."""
# NOT an efficient method, but really, who uses this for a real Job?
for buffer_idx in range(self.emit_buffer_index+1):
print(self.emit_buffer[buffer_idx], file=stdout)
| [
1,
515,
1226,
1056,
29889,
21976,
1053,
7399,
29923,
2415,
13,
13,
3166,
10876,
1053,
27591,
13,
13,
1990,
624,
29881,
449,
29923,
2415,
29898,
5160,
29923,
2415,
1125,
13,
1678,
9995,
2744,
382,
2415,
357,
393,
15873,
304,
624,
29881,
449,
15945,
29908,
13,
1678,
822,
2436,
29898,
1311,
1125,
13,
4706,
9995,
29956,
768,
267,
278,
2643,
304,
278,
3918,
1962,
29889,
13001,
635,
29892,
278,
2643,
881,
367,
263,
1347,
29889,
910,
338,
5407,
871,
363,
13490,
1213,
15945,
13,
4706,
396,
6058,
385,
8543,
1158,
29892,
541,
2289,
29892,
1058,
3913,
445,
363,
263,
1855,
17163,
29973,
13,
4706,
363,
6835,
29918,
13140,
297,
3464,
29898,
1311,
29889,
21976,
29918,
9040,
29918,
2248,
29974,
29896,
1125,
13,
9651,
1596,
29898,
1311,
29889,
21976,
29918,
9040,
29961,
9040,
29918,
13140,
1402,
934,
29922,
25393,
29897,
13,
13,
308,
2
] |
tests/creditcrawler_test.py | Mivinci/cqupt-piper | 3 | 16606 | import requests
from bs4 import BeautifulSoup
from prettytable import PrettyTable
# html = requests.get(
# 'http://jwzx.cqu.pt/student/xkxfTj.php',
# cookies={'PHPSESSID': 'o2r2fpddrj892dp1ntqddcp2hv'}).text
# soup = BeautifulSoup(html, 'html.parser')
# for tr in soup.find('table', {'id': 'AxfTjTable'}).findAll('tr')[1:]:
# tds = tr.findAll('td')
# print(tds[1:5])
table = PrettyTable(['aaa', 'bbb'])
print(table) | [
1,
1053,
7274,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
3166,
5051,
2371,
1053,
4721,
4349,
3562,
13,
13,
29937,
3472,
353,
7274,
29889,
657,
29898,
13,
29937,
268,
525,
1124,
597,
29926,
29893,
29920,
29916,
29889,
29883,
339,
29889,
415,
29914,
18945,
29914,
29916,
29895,
24660,
29911,
29926,
29889,
1961,
742,
13,
29937,
268,
21046,
3790,
29915,
17130,
1660,
1799,
1367,
2396,
525,
29877,
29906,
29878,
29906,
18091,
1289,
29878,
29926,
29947,
29929,
29906,
6099,
29896,
593,
29939,
1289,
6814,
29906,
29882,
29894,
29915,
7690,
726,
13,
13,
29937,
22300,
353,
25685,
29903,
1132,
29898,
1420,
29892,
525,
1420,
29889,
16680,
1495,
13,
13,
29937,
363,
534,
297,
22300,
29889,
2886,
877,
2371,
742,
11117,
333,
2396,
525,
29909,
24660,
29911,
29926,
3562,
29915,
7690,
2886,
3596,
877,
509,
29861,
29896,
29901,
5387,
13,
29937,
268,
260,
6289,
353,
534,
29889,
2886,
3596,
877,
1594,
1495,
13,
29937,
268,
1596,
29898,
1594,
29879,
29961,
29896,
29901,
29945,
2314,
13,
13,
13,
2371,
353,
4721,
4349,
3562,
18959,
7340,
29874,
742,
525,
1327,
29890,
11287,
13,
13,
2158,
29898,
2371,
29897,
2
] |
antlr/SevenBillionHumansParser.py | behrmann/7billionhumans | 45 | 28907 | from antlr4 import *
from antlr4.error.ErrorListener import ErrorListener
from antlr.SBHasmLexer import SBHasmLexer
from antlr.SBHasmListener import SBHasmListener
from antlr.SBHasmParser import SBHasmParser
class MyErrorListener(ErrorListener):
def __init__(self):
super(MyErrorListener, self).__init__()
def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
raise Exception("SyntaxError in {},{} msg={}".format(line, column, msg))
def reportAmbiguity(self, recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs):
raise Exception("reportAmbiguity")
def reportAttemptingFullContext(self, recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs):
raise Exception("reportAttemptingFullContext")
def reportContextSensitivity(self, recognizer, dfa, startIndex, stopIndex, prediction, configs):
raise Exception("reportContextSensitivity")
class SBHCodeSizeListener(SBHasmListener):
def __init__(self):
self.cmd_cnt = 0
def enterCmd(self, ctx):
self.cmd_cnt += 1
def enterSonst(self, ctx):
self.cmd_cnt += 1
class Pickup:
def __init__(self, item):
self.item = item
def __str__(self):
return "Pickup"
class Mem:
def __init__(self, slot):
self.slot = slot
def __str__(self):
return self.slot
class Dir:
def __init__(self, direction):
self.dir = direction
class SevenBillionHumansParser:
def __init__(self, filepath=None, source=None):
if source:
self.parse(InputStream(source))
elif filepath:
self.parse(FileStream(filepath))
def parse(self, source_stream):
lexer = SBHasmLexer(source_stream)
stream = CommonTokenStream(lexer)
parser = SBHasmParser(stream)
# parser._listeners = [ MyErrorListener() ]
tree = parser.asm()
printer = SBHCodeSizeListener()
walker = ParseTreeWalker()
walker.walk(printer, tree)
self.cmd_size = printer.cmd_cnt
if __name__ == '__main__':
s = SevenBillionHumansParser("../solutions/55 - Data Flowers/size-10_speed-23.asm")
| [
1,
515,
3677,
29212,
29946,
1053,
334,
13,
3166,
3677,
29212,
29946,
29889,
2704,
29889,
2392,
3962,
1053,
4829,
3962,
13,
13,
3166,
3677,
29212,
29889,
1744,
29950,
11625,
29931,
735,
261,
1053,
317,
29933,
29950,
11625,
29931,
735,
261,
13,
3166,
3677,
29212,
29889,
1744,
29950,
11625,
3962,
1053,
317,
29933,
29950,
11625,
3962,
13,
3166,
3677,
29212,
29889,
1744,
29950,
11625,
11726,
1053,
317,
29933,
29950,
11625,
11726,
13,
13,
13,
1990,
1619,
2392,
3962,
29898,
2392,
3962,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
2428,
29898,
3421,
2392,
3962,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
13,
1678,
822,
5877,
2392,
29898,
1311,
29892,
5936,
3950,
29892,
1283,
2548,
14730,
29892,
1196,
29892,
1897,
29892,
10191,
29892,
321,
1125,
13,
4706,
12020,
8960,
703,
16676,
2392,
297,
24335,
8875,
10191,
3790,
29913,
1642,
4830,
29898,
1220,
29892,
1897,
29892,
10191,
876,
13,
13,
1678,
822,
3461,
6833,
3752,
29884,
537,
29898,
1311,
29892,
5936,
3950,
29892,
4489,
29874,
29892,
1369,
3220,
29892,
5040,
3220,
29892,
2684,
29892,
3181,
335,
2499,
1372,
29892,
2295,
29879,
1125,
13,
4706,
12020,
8960,
703,
12276,
6833,
3752,
29884,
537,
1159,
13,
13,
1678,
822,
3461,
4165,
3456,
292,
13658,
2677,
29898,
1311,
29892,
5936,
3950,
29892,
4489,
29874,
29892,
1369,
3220,
29892,
5040,
3220,
29892,
9476,
1259,
2499,
1372,
29892,
2295,
29879,
1125,
13,
4706,
12020,
8960,
703,
12276,
4165,
3456,
292,
13658,
2677,
1159,
13,
13,
1678,
822,
3461,
2677,
29903,
575,
24858,
29898,
1311,
29892,
5936,
3950,
29892,
4489,
29874,
29892,
1369,
3220,
29892,
5040,
3220,
29892,
18988,
29892,
2295,
29879,
1125,
13,
4706,
12020,
8960,
703,
12276,
2677,
29903,
575,
24858,
1159,
13,
13,
13,
1990,
317,
29933,
29950,
3399,
3505,
3962,
29898,
1744,
29950,
11625,
3962,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
29889,
9006,
29918,
20047,
353,
29871,
29900,
13,
13,
1678,
822,
3896,
23651,
29898,
1311,
29892,
12893,
1125,
13,
4706,
1583,
29889,
9006,
29918,
20047,
4619,
29871,
29896,
13,
13,
1678,
822,
3896,
29903,
265,
303,
29898,
1311,
29892,
12893,
1125,
13,
4706,
1583,
29889,
9006,
29918,
20047,
4619,
29871,
29896,
13,
13,
13,
1990,
23868,
786,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2944,
1125,
13,
4706,
1583,
29889,
667,
353,
2944,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
376,
29925,
860,
786,
29908,
13,
13,
13,
1990,
8133,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
21497,
1125,
13,
4706,
1583,
29889,
2536,
327,
353,
21497,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
2536,
327,
13,
13,
13,
1990,
19378,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
5305,
1125,
13,
4706,
1583,
29889,
3972,
353,
5305,
13,
13,
13,
1990,
26647,
29933,
453,
291,
29950,
398,
550,
11726,
29901,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
934,
2084,
29922,
8516,
29892,
2752,
29922,
8516,
1125,
13,
4706,
565,
2752,
29901,
13,
9651,
1583,
29889,
5510,
29898,
13828,
29898,
4993,
876,
13,
4706,
25342,
934,
2084,
29901,
13,
9651,
1583,
29889,
5510,
29898,
2283,
3835,
29898,
1445,
2084,
876,
13,
13,
1678,
822,
6088,
29898,
1311,
29892,
2752,
29918,
5461,
1125,
13,
4706,
19566,
261,
353,
317,
29933,
29950,
11625,
29931,
735,
261,
29898,
4993,
29918,
5461,
29897,
13,
4706,
4840,
353,
13103,
6066,
3835,
29898,
2506,
261,
29897,
13,
4706,
13812,
353,
317,
29933,
29950,
11625,
11726,
29898,
5461,
29897,
13,
4706,
396,
13812,
3032,
20631,
414,
353,
518,
1619,
2392,
3962,
580,
4514,
13,
4706,
5447,
353,
13812,
29889,
11625,
580,
13,
4706,
23028,
353,
317,
29933,
29950,
3399,
3505,
3962,
580,
13,
4706,
6686,
261,
353,
20969,
9643,
29956,
2235,
261,
580,
13,
4706,
6686,
261,
29889,
20919,
29898,
558,
1639,
29892,
5447,
29897,
13,
4706,
1583,
29889,
9006,
29918,
2311,
353,
23028,
29889,
9006,
29918,
20047,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
269,
353,
26647,
29933,
453,
291,
29950,
398,
550,
11726,
703,
6995,
2929,
17925,
29914,
29945,
29945,
448,
3630,
22787,
414,
29914,
2311,
29899,
29896,
29900,
29918,
19322,
29899,
29906,
29941,
29889,
11625,
1159,
13,
13,
2
] |
analyzer/codechecker_analyzer/analyzers/clangsa/ctu_autodetection.py | ryankurte/codechecker | 1,601 | 97498 | # -------------------------------------------------------------------------
#
# Part of the CodeChecker project, under the Apache License v2.0 with
# LLVM Exceptions. See LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# -------------------------------------------------------------------------
"""
Clang Static Analyzer related functions.
"""
import subprocess
from codechecker_common.logger import get_logger
from codechecker_analyzer import host_check
from codechecker_analyzer.analyzers.clangsa import clang_options, version
LOG = get_logger('analyzer.clangsa')
CTU_ON_DEMAND_OPTION_NAME = 'ctu-invocation-list'
def invoke_binary_checked(binary_path, args=None, environ=None):
"""
Invoke the binary with the specified args, and return the output if the
command finished running with zero exit code. Return False otherwise.
Possible usage can be used to check the existence binaries.
:param binary_path: The path to the executable to invoke
:param args: The arguments of the invocation
:type binary_path: str
:type args: list
:rtype str
"""
args = args or []
invocation = [binary_path]
invocation.extend(args)
try:
output = subprocess.check_output(
invocation,
env=environ,
encoding="utf-8",
errors="ignore")
except (subprocess.CalledProcessError, OSError) as e:
LOG.debug('Command invocation failed because of non-zero exit code!'
'Details: %s', str(e))
return False
return output
class CTUAutodetection:
"""
CTUAutodetection is responsible for providing the availability information
of CTU feature, the the relevant mapping tool path and the mapping file
name.
"""
def __init__(self, analyzer_binary, environ):
self.__analyzer_binary = analyzer_binary
self.environ = environ
self.__analyzer_version_info = None
if self.__analyzer_binary is None:
LOG.debug(
'Trying to detect CTU capability, but analyzer binary is not '
'set!')
return None
analyzer_version = invoke_binary_checked(
self.__analyzer_binary, ['--version'], self.environ)
if analyzer_version is False:
LOG.debug('Failed to invoke command to get Clang version!')
return None
version_parser = version.ClangVersionInfoParser(self.__analyzer_binary)
version_info = version_parser.parse(analyzer_version)
if not version_info:
LOG.debug('Failed to parse Clang version information!')
return None
self.__analyzer_version_info = version_info
@property
def analyzer_version_info(self):
"""
Returns the relevant parameters of the analyzer by parsing the
output of the analyzer binary when called with version flag.
"""
if not self.__analyzer_version_info:
return False
return self.__analyzer_version_info
@property
def major_version(self):
"""
Returns the major version of the analyzer, which is used for
CTU analysis.
"""
return self.analyzer_version_info.major_version
@property
def installed_dir(self):
"""
Returns the installed directory of the analyzer, which is used for
CTU analysis.
"""
return self.analyzer_version_info.installed_dir
@property
def mapping_tool_path(self):
"""Return the path to the mapping tool."""
tool_path, _ = clang_options.ctu_mapping(self.analyzer_version_info)
if tool_path:
return tool_path
return False
@property
def display_progress(self):
"""
Return analyzer args if it is capable to display ctu progress.
Returns None if the analyzer can not display ctu progress.
The ctu display progress arguments depend on
the clang analyzer version.
"""
if not self.analyzer_version_info:
return None
ctu_display_progress_args = ['-Xclang',
'-analyzer-config',
'-Xclang',
'display-ctu-progress=true']
ok = host_check.has_analyzer_config_option(
self.__analyzer_binary, "display-ctu-progress", self.environ)
if not ok:
return None
return ctu_display_progress_args
@property
def mapping_file_name(self):
"""
Returns the installed directory of the analyzer, which is used for
CTU analysis.
"""
_, mapping_file_name = \
clang_options.ctu_mapping(self.analyzer_version_info)
if mapping_file_name:
return mapping_file_name
return False
@property
def is_ctu_capable(self):
"""
Detects if the current clang is CTU compatible. Tries to autodetect
the correct one based on clang version.
"""
tool_path = self.mapping_tool_path
if not tool_path:
return False
return invoke_binary_checked(tool_path, ['-version'], self.environ) \
is not False
@property
def is_on_demand_ctu_available(self):
"""
Detects if the current Clang supports on-demand parsing of ASTs for
CTU analysis.
"""
analyzer_options = invoke_binary_checked(
self.__analyzer_binary, ['-cc1', '-analyzer-config-help'],
self.environ)
if analyzer_options is False:
return False
return CTU_ON_DEMAND_OPTION_NAME in analyzer_options
| [
1,
396,
448,
2683,
2683,
2683,
2683,
1378,
13,
29937,
13,
29937,
29871,
3455,
310,
278,
5920,
5596,
261,
2060,
29892,
1090,
278,
13380,
19245,
325,
29906,
29889,
29900,
411,
13,
29937,
29871,
27624,
9219,
8960,
29879,
29889,
2823,
365,
2965,
1430,
1660,
363,
19405,
2472,
29889,
13,
29937,
29871,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
29901,
13380,
29899,
29906,
29889,
29900,
22659,
27624,
9219,
29899,
11739,
13,
29937,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
13,
15945,
29908,
13,
29907,
3893,
624,
2454,
11597,
29891,
3298,
4475,
3168,
29889,
13,
15945,
29908,
13,
13,
5215,
1014,
5014,
13,
13,
3166,
775,
3198,
261,
29918,
9435,
29889,
21707,
1053,
679,
29918,
21707,
13,
3166,
775,
3198,
261,
29918,
24209,
3298,
1053,
3495,
29918,
3198,
13,
3166,
775,
3198,
261,
29918,
24209,
3298,
29889,
7054,
12339,
414,
29889,
695,
574,
4977,
1053,
1067,
574,
29918,
6768,
29892,
1873,
13,
13,
14480,
353,
679,
29918,
21707,
877,
24209,
3298,
29889,
695,
574,
4977,
1495,
13,
13,
1783,
29965,
29918,
1164,
29918,
2287,
1529,
2797,
29918,
14094,
2725,
29918,
5813,
353,
525,
22999,
29899,
11569,
10610,
29899,
1761,
29915,
13,
13,
13,
1753,
15928,
29918,
19541,
29918,
11238,
29898,
19541,
29918,
2084,
29892,
6389,
29922,
8516,
29892,
12471,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
512,
5744,
278,
7581,
411,
278,
6790,
6389,
29892,
322,
736,
278,
1962,
565,
278,
13,
1678,
1899,
7743,
2734,
411,
5225,
6876,
775,
29889,
7106,
7700,
6467,
29889,
13,
1678,
20049,
8744,
508,
367,
1304,
304,
1423,
278,
10379,
9016,
4314,
29889,
13,
13,
1678,
584,
3207,
7581,
29918,
2084,
29901,
450,
2224,
304,
278,
16813,
304,
15928,
13,
1678,
584,
3207,
6389,
29901,
450,
6273,
310,
278,
2437,
10610,
13,
1678,
584,
1853,
7581,
29918,
2084,
29901,
851,
13,
1678,
584,
1853,
6389,
29901,
1051,
13,
1678,
584,
29878,
1853,
851,
13,
1678,
9995,
13,
13,
1678,
6389,
353,
6389,
470,
5159,
13,
1678,
2437,
10610,
353,
518,
19541,
29918,
2084,
29962,
13,
1678,
2437,
10610,
29889,
21843,
29898,
5085,
29897,
13,
1678,
1018,
29901,
13,
4706,
1962,
353,
1014,
5014,
29889,
3198,
29918,
4905,
29898,
13,
9651,
2437,
10610,
29892,
13,
9651,
8829,
29922,
21813,
29892,
13,
9651,
8025,
543,
9420,
29899,
29947,
613,
13,
9651,
4436,
543,
17281,
1159,
13,
1678,
5174,
313,
1491,
5014,
29889,
29907,
4212,
7032,
2392,
29892,
438,
29173,
29897,
408,
321,
29901,
13,
4706,
25401,
29889,
8382,
877,
6255,
2437,
10610,
5229,
1363,
310,
1661,
29899,
9171,
6876,
775,
20714,
13,
462,
29871,
525,
10602,
29901,
1273,
29879,
742,
851,
29898,
29872,
876,
13,
4706,
736,
7700,
13,
1678,
736,
1962,
13,
13,
13,
1990,
26637,
29965,
6147,
397,
2650,
428,
29901,
13,
1678,
9995,
13,
1678,
26637,
29965,
6147,
397,
2650,
428,
338,
14040,
363,
13138,
278,
20847,
3097,
2472,
13,
1678,
310,
26637,
29965,
4682,
29892,
278,
278,
8018,
10417,
5780,
2224,
322,
278,
10417,
934,
13,
1678,
1024,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
16455,
3298,
29918,
19541,
29892,
12471,
1125,
13,
4706,
1583,
17255,
24209,
3298,
29918,
19541,
353,
16455,
3298,
29918,
19541,
13,
4706,
1583,
29889,
21813,
353,
12471,
13,
4706,
1583,
17255,
24209,
3298,
29918,
3259,
29918,
3888,
353,
6213,
13,
13,
4706,
565,
1583,
17255,
24209,
3298,
29918,
19541,
338,
6213,
29901,
13,
9651,
25401,
29889,
8382,
29898,
13,
18884,
525,
15870,
292,
304,
6459,
26637,
29965,
2117,
3097,
29892,
541,
16455,
3298,
7581,
338,
451,
525,
13,
18884,
525,
842,
29991,
1495,
13,
9651,
736,
6213,
13,
13,
4706,
16455,
3298,
29918,
3259,
353,
15928,
29918,
19541,
29918,
11238,
29898,
13,
9651,
1583,
17255,
24209,
3298,
29918,
19541,
29892,
6024,
489,
3259,
7464,
1583,
29889,
21813,
29897,
13,
13,
4706,
565,
16455,
3298,
29918,
3259,
338,
7700,
29901,
13,
9651,
25401,
29889,
8382,
877,
17776,
304,
15928,
1899,
304,
679,
2233,
574,
1873,
29991,
1495,
13,
9651,
736,
6213,
13,
13,
4706,
1873,
29918,
16680,
353,
1873,
29889,
29907,
3893,
6594,
3401,
11726,
29898,
1311,
17255,
24209,
3298,
29918,
19541,
29897,
13,
4706,
1873,
29918,
3888,
353,
1873,
29918,
16680,
29889,
5510,
29898,
24209,
3298,
29918,
3259,
29897,
13,
13,
4706,
565,
451,
1873,
29918,
3888,
29901,
13,
9651,
25401,
29889,
8382,
877,
17776,
304,
6088,
2233,
574,
1873,
2472,
29991,
1495,
13,
9651,
736,
6213,
13,
13,
4706,
1583,
17255,
24209,
3298,
29918,
3259,
29918,
3888,
353,
1873,
29918,
3888,
13,
13,
1678,
732,
6799,
13,
1678,
822,
16455,
3298,
29918,
3259,
29918,
3888,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
8018,
4128,
310,
278,
16455,
3298,
491,
13755,
278,
13,
4706,
1962,
310,
278,
16455,
3298,
7581,
746,
2000,
411,
1873,
7353,
29889,
13,
4706,
9995,
13,
4706,
565,
451,
1583,
17255,
24209,
3298,
29918,
3259,
29918,
3888,
29901,
13,
9651,
736,
7700,
13,
13,
4706,
736,
1583,
17255,
24209,
3298,
29918,
3259,
29918,
3888,
13,
13,
1678,
732,
6799,
13,
1678,
822,
4655,
29918,
3259,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
4655,
1873,
310,
278,
16455,
3298,
29892,
607,
338,
1304,
363,
13,
4706,
26637,
29965,
7418,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
24209,
3298,
29918,
3259,
29918,
3888,
29889,
21355,
29918,
3259,
13,
13,
1678,
732,
6799,
13,
1678,
822,
5130,
29918,
3972,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
5130,
3884,
310,
278,
16455,
3298,
29892,
607,
338,
1304,
363,
13,
4706,
26637,
29965,
7418,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
24209,
3298,
29918,
3259,
29918,
3888,
29889,
25537,
29918,
3972,
13,
13,
1678,
732,
6799,
13,
1678,
822,
10417,
29918,
10154,
29918,
2084,
29898,
1311,
1125,
13,
4706,
9995,
11609,
278,
2224,
304,
278,
10417,
5780,
1213,
15945,
13,
4706,
5780,
29918,
2084,
29892,
903,
353,
1067,
574,
29918,
6768,
29889,
22999,
29918,
20698,
29898,
1311,
29889,
24209,
3298,
29918,
3259,
29918,
3888,
29897,
13,
13,
4706,
565,
5780,
29918,
2084,
29901,
13,
9651,
736,
5780,
29918,
2084,
13,
4706,
736,
7700,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2479,
29918,
18035,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
16455,
3298,
6389,
565,
372,
338,
15390,
304,
2479,
274,
9161,
6728,
29889,
13,
13,
4706,
16969,
6213,
565,
278,
16455,
3298,
508,
451,
2479,
274,
9161,
6728,
29889,
13,
4706,
450,
274,
9161,
2479,
6728,
6273,
8839,
373,
13,
4706,
278,
1067,
574,
16455,
3298,
1873,
29889,
13,
4706,
9995,
13,
13,
4706,
565,
451,
1583,
29889,
24209,
3298,
29918,
3259,
29918,
3888,
29901,
13,
9651,
736,
6213,
13,
4706,
274,
9161,
29918,
4990,
29918,
18035,
29918,
5085,
353,
6024,
29899,
29990,
695,
574,
742,
13,
462,
462,
268,
17411,
24209,
3298,
29899,
2917,
742,
13,
462,
462,
268,
17411,
29990,
695,
574,
742,
13,
462,
462,
268,
525,
4990,
29899,
22999,
29899,
18035,
29922,
3009,
2033,
13,
13,
4706,
3431,
353,
3495,
29918,
3198,
29889,
5349,
29918,
24209,
3298,
29918,
2917,
29918,
3385,
29898,
13,
9651,
1583,
17255,
24209,
3298,
29918,
19541,
29892,
376,
4990,
29899,
22999,
29899,
18035,
613,
1583,
29889,
21813,
29897,
13,
4706,
565,
451,
3431,
29901,
13,
9651,
736,
6213,
13,
4706,
736,
274,
9161,
29918,
4990,
29918,
18035,
29918,
5085,
13,
13,
1678,
732,
6799,
13,
1678,
822,
10417,
29918,
1445,
29918,
978,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
16969,
278,
5130,
3884,
310,
278,
16455,
3298,
29892,
607,
338,
1304,
363,
13,
4706,
26637,
29965,
7418,
29889,
13,
4706,
9995,
13,
13,
4706,
17117,
10417,
29918,
1445,
29918,
978,
353,
320,
13,
9651,
1067,
574,
29918,
6768,
29889,
22999,
29918,
20698,
29898,
1311,
29889,
24209,
3298,
29918,
3259,
29918,
3888,
29897,
13,
13,
4706,
565,
10417,
29918,
1445,
29918,
978,
29901,
13,
9651,
736,
10417,
29918,
1445,
29918,
978,
13,
4706,
736,
7700,
13,
13,
1678,
732,
6799,
13,
1678,
822,
338,
29918,
22999,
29918,
5030,
519,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
5953,
522,
29879,
565,
278,
1857,
1067,
574,
338,
26637,
29965,
15878,
29889,
323,
2722,
304,
1120,
397,
300,
522,
13,
4706,
278,
1959,
697,
2729,
373,
1067,
574,
1873,
29889,
13,
4706,
9995,
13,
13,
4706,
5780,
29918,
2084,
353,
1583,
29889,
20698,
29918,
10154,
29918,
2084,
13,
13,
4706,
565,
451,
5780,
29918,
2084,
29901,
13,
9651,
736,
7700,
13,
13,
4706,
736,
15928,
29918,
19541,
29918,
11238,
29898,
10154,
29918,
2084,
29892,
6024,
29899,
3259,
7464,
1583,
29889,
21813,
29897,
320,
13,
9651,
338,
451,
7700,
13,
13,
1678,
732,
6799,
13,
1678,
822,
338,
29918,
265,
29918,
2310,
392,
29918,
22999,
29918,
16515,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
5953,
522,
29879,
565,
278,
1857,
2233,
574,
11286,
373,
29899,
2310,
392,
13755,
310,
319,
1254,
29879,
363,
13,
4706,
26637,
29965,
7418,
29889,
13,
4706,
9995,
13,
13,
4706,
16455,
3298,
29918,
6768,
353,
15928,
29918,
19541,
29918,
11238,
29898,
13,
9651,
1583,
17255,
24209,
3298,
29918,
19541,
29892,
6024,
29899,
617,
29896,
742,
17411,
24209,
3298,
29899,
2917,
29899,
8477,
7464,
13,
9651,
1583,
29889,
21813,
29897,
13,
13,
4706,
565,
16455,
3298,
29918,
6768,
338,
7700,
29901,
13,
9651,
736,
7700,
13,
13,
4706,
736,
26637,
29965,
29918,
1164,
29918,
2287,
1529,
2797,
29918,
14094,
2725,
29918,
5813,
297,
16455,
3298,
29918,
6768,
13,
2
] |
stsc_autograd.py | NathanHowell/STSC | 27 | 162068 | from autograd import numpy as npy
from functools import reduce
from scipy.optimize import minimize
from autograd import grad
def generate_Givens_rotation(i, j, theta, size):
g = npy.eye(size)
c = npy.cos(theta)
s = npy.sin(theta)
g[i, i] = 0
g[j, j] = 0
g[j, i] = 0
g[i, j] = 0
ii_mat = npy.zeros_like(g)
ii_mat[i, i] = 1
jj_mat = npy.zeros_like(g)
jj_mat[j, j] = 1
ji_mat = npy.zeros_like(g)
ji_mat[j, i] = 1
ij_mat = npy.zeros_like(g)
ij_mat[i, j] = 1
return g + c * ii_mat + c * jj_mat + s * ji_mat - s * ij_mat
def generate_U_list(ij_list, theta_list, size):
return [generate_Givens_rotation(ij[0], ij[1], theta, size)
for ij, theta in zip(ij_list, theta_list)]
def get_rotation_matrix(X, C):
ij_list = [(i, j) for i in range(C) for j in range(C) if i < j]
def cost(theta_list):
U_list = generate_U_list(ij_list, theta_list, C)
R = reduce(npy.dot, U_list, npy.eye(C))
Z = X.dot(R)
M = npy.max(Z, axis=1, keepdims=True)
return npy.sum((Z / M) ** 2)
theta_list_init = npy.array([0.0] * int(C * (C - 1) / 2))
opt = minimize(cost,
x0=theta_list_init,
method='CG',
jac=grad(cost),
options={'disp': False})
return opt.fun, reduce(npy.dot, generate_U_list(ij_list, opt.x, C), npy.eye(C))
| [
1,
515,
1120,
468,
3665,
1053,
12655,
408,
302,
2272,
13,
3166,
2090,
312,
8789,
1053,
10032,
13,
3166,
4560,
2272,
29889,
20640,
675,
1053,
6260,
675,
13,
3166,
1120,
468,
3665,
1053,
4656,
13,
13,
13,
1753,
5706,
29918,
29954,
440,
575,
29918,
5450,
362,
29898,
29875,
29892,
432,
29892,
278,
941,
29892,
2159,
1125,
13,
1678,
330,
353,
302,
2272,
29889,
1032,
29872,
29898,
2311,
29897,
13,
1678,
274,
353,
302,
2272,
29889,
3944,
29898,
3416,
29897,
13,
1678,
269,
353,
302,
2272,
29889,
5223,
29898,
3416,
29897,
13,
1678,
330,
29961,
29875,
29892,
474,
29962,
353,
29871,
29900,
13,
1678,
330,
29961,
29926,
29892,
432,
29962,
353,
29871,
29900,
13,
1678,
330,
29961,
29926,
29892,
474,
29962,
353,
29871,
29900,
13,
1678,
330,
29961,
29875,
29892,
432,
29962,
353,
29871,
29900,
13,
1678,
13607,
29918,
2922,
353,
302,
2272,
29889,
3298,
359,
29918,
4561,
29898,
29887,
29897,
13,
1678,
13607,
29918,
2922,
29961,
29875,
29892,
474,
29962,
353,
29871,
29896,
13,
1678,
432,
29926,
29918,
2922,
353,
302,
2272,
29889,
3298,
359,
29918,
4561,
29898,
29887,
29897,
13,
1678,
432,
29926,
29918,
2922,
29961,
29926,
29892,
432,
29962,
353,
29871,
29896,
13,
1678,
19841,
29918,
2922,
353,
302,
2272,
29889,
3298,
359,
29918,
4561,
29898,
29887,
29897,
13,
1678,
19841,
29918,
2922,
29961,
29926,
29892,
474,
29962,
353,
29871,
29896,
13,
1678,
474,
29926,
29918,
2922,
353,
302,
2272,
29889,
3298,
359,
29918,
4561,
29898,
29887,
29897,
13,
1678,
474,
29926,
29918,
2922,
29961,
29875,
29892,
432,
29962,
353,
29871,
29896,
13,
1678,
736,
330,
718,
274,
334,
13607,
29918,
2922,
718,
274,
334,
432,
29926,
29918,
2922,
718,
269,
334,
19841,
29918,
2922,
448,
269,
334,
474,
29926,
29918,
2922,
13,
13,
13,
1753,
5706,
29918,
29965,
29918,
1761,
29898,
823,
29918,
1761,
29892,
278,
941,
29918,
1761,
29892,
2159,
1125,
13,
1678,
736,
518,
17158,
29918,
29954,
440,
575,
29918,
5450,
362,
29898,
823,
29961,
29900,
1402,
474,
29926,
29961,
29896,
1402,
278,
941,
29892,
2159,
29897,
13,
9651,
363,
474,
29926,
29892,
278,
941,
297,
14319,
29898,
823,
29918,
1761,
29892,
278,
941,
29918,
1761,
4638,
13,
13,
13,
1753,
679,
29918,
5450,
362,
29918,
5344,
29898,
29990,
29892,
315,
1125,
13,
1678,
474,
29926,
29918,
1761,
353,
17288,
29875,
29892,
432,
29897,
363,
474,
297,
3464,
29898,
29907,
29897,
363,
432,
297,
3464,
29898,
29907,
29897,
565,
474,
529,
432,
29962,
13,
13,
1678,
822,
3438,
29898,
3416,
29918,
1761,
1125,
13,
4706,
501,
29918,
1761,
353,
5706,
29918,
29965,
29918,
1761,
29898,
823,
29918,
1761,
29892,
278,
941,
29918,
1761,
29892,
315,
29897,
13,
4706,
390,
353,
10032,
29898,
29876,
2272,
29889,
6333,
29892,
501,
29918,
1761,
29892,
302,
2272,
29889,
1032,
29872,
29898,
29907,
876,
13,
4706,
796,
353,
1060,
29889,
6333,
29898,
29934,
29897,
13,
4706,
341,
353,
302,
2272,
29889,
3317,
29898,
29999,
29892,
9685,
29922,
29896,
29892,
3013,
6229,
29879,
29922,
5574,
29897,
13,
4706,
736,
302,
2272,
29889,
2083,
3552,
29999,
847,
341,
29897,
3579,
29871,
29906,
29897,
13,
13,
1678,
278,
941,
29918,
1761,
29918,
2344,
353,
302,
2272,
29889,
2378,
4197,
29900,
29889,
29900,
29962,
334,
938,
29898,
29907,
334,
313,
29907,
448,
29871,
29896,
29897,
847,
29871,
29906,
876,
13,
1678,
3523,
353,
6260,
675,
29898,
18253,
29892,
13,
462,
259,
921,
29900,
29922,
3416,
29918,
1761,
29918,
2344,
29892,
13,
462,
259,
1158,
2433,
11135,
742,
13,
462,
259,
432,
562,
29922,
5105,
29898,
18253,
511,
13,
462,
259,
3987,
3790,
29915,
2218,
29886,
2396,
7700,
1800,
13,
1678,
736,
3523,
29889,
7692,
29892,
10032,
29898,
29876,
2272,
29889,
6333,
29892,
5706,
29918,
29965,
29918,
1761,
29898,
823,
29918,
1761,
29892,
3523,
29889,
29916,
29892,
315,
511,
302,
2272,
29889,
1032,
29872,
29898,
29907,
876,
13,
2
] |
grpc_api_client/grpc/api.py | djtaylor/python-grpc-api-client | 0 | 184513 | <reponame>djtaylor/python-grpc-api-client
import json
from importlib import import_module
from google.protobuf.json_format import MessageToJson
class gRPC_API_Response(object):
"""
Class object for handling responses from Dex gRPC server.
"""
def __init__(self, response, output_handler, fields):
self.json = json.loads(MessageToJson(response))
self.protobuf = output_handler(**self._get_field_values(response, fields))
def _get_field_values(self, response, fields):
"""
Return an object of field/key values from a request object post-request.
"""
response_fields = {}
for field in fields:
if hasattr(response, field[0]):
response_fields[field[0]] = getattr(response, field[0])
return response_fields
class gRPC_API_Method_IO_Map(object):
"""
Map the i/o type (from the descriptor) and the *pb2.py file
"""
def __init__(self, io_type, io_handler):
self.type = io_type
self.handler = io_handler
class gRPC_API_Path(object):
"""
Class object for storing API path attributes and objects.
"""
def __init__(self, method, settings):
"""
Initialize and store the stub object for later use.
"""
self.name = method['name']
# Client settings
self._settings = settings
# Input and output objects
self.input = gRPC_API_Method_IO_Map(method['input_type'], method['input_handler'])
self.output = gRPC_API_Method_IO_Map(method['output_type'], method['output_handler'])
# Stub instance
self.stub = self._settings.bindings.stub_object
def input_fields(self):
"""
Return an iterator for available input fields.
"""
return self.input.type.fields_by_name.items()
def __call__(self, **kwargs):
"""
Call the underlying stub method for this API path.
"""
response = getattr(self.stub, self.name)(self.input.handler(**kwargs))
return gRPC_API_Response(response, self.output.handler, self.input_fields())
class gRPC_API_Collection(object):
"""
Class object for storing API path objects.
"""
def __init__(self, settings):
"""
:param settings: The generated settings object
:type settings: gRPC_API_Client_Settings
"""
self._settings = settings
self._methods = []
def __iter__(self):
"""
Return a dictionary of gRPC methods.
"""
for method_name in self._methods:
yield(method_name, getattr(self, method_name))
def add(self, method):
"""
Add a new gRPC method.
:param service: The generated gRPC service method object
:type name: str
"""
self._methods.append(method['name'])
# Store the API method
setattr(self, method['name'], gRPC_API_Path(method, self._settings))
| [
1,
529,
276,
1112,
420,
29958,
19776,
29873,
11017,
29914,
4691,
29899,
629,
6739,
29899,
2754,
29899,
4645,
13,
5215,
4390,
13,
3166,
1053,
1982,
1053,
1053,
29918,
5453,
13,
3166,
5386,
29889,
17529,
9721,
29889,
3126,
29918,
4830,
1053,
7777,
1762,
8148,
13,
13,
1990,
330,
29934,
9026,
29918,
8787,
29918,
5103,
29898,
3318,
1125,
13,
1678,
9995,
13,
1678,
4134,
1203,
363,
11415,
20890,
515,
360,
735,
330,
29934,
9026,
1923,
29889,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2933,
29892,
1962,
29918,
13789,
29892,
4235,
1125,
13,
4706,
1583,
29889,
3126,
4706,
353,
4390,
29889,
18132,
29898,
3728,
1762,
8148,
29898,
5327,
876,
13,
4706,
1583,
29889,
17529,
9721,
1678,
353,
1962,
29918,
13789,
29898,
1068,
1311,
3032,
657,
29918,
2671,
29918,
5975,
29898,
5327,
29892,
4235,
876,
13,
13,
1678,
822,
903,
657,
29918,
2671,
29918,
5975,
29898,
1311,
29892,
2933,
29892,
4235,
1125,
13,
4706,
9995,
13,
4706,
7106,
385,
1203,
310,
1746,
29914,
1989,
1819,
515,
263,
2009,
1203,
1400,
29899,
3827,
29889,
13,
4706,
9995,
13,
4706,
2933,
29918,
9621,
353,
6571,
13,
4706,
363,
1746,
297,
4235,
29901,
13,
9651,
565,
756,
5552,
29898,
5327,
29892,
1746,
29961,
29900,
29962,
1125,
13,
18884,
2933,
29918,
9621,
29961,
2671,
29961,
29900,
5262,
353,
679,
5552,
29898,
5327,
29892,
1746,
29961,
29900,
2314,
13,
4706,
736,
2933,
29918,
9621,
13,
13,
1990,
330,
29934,
9026,
29918,
8787,
29918,
4062,
29918,
5971,
29918,
3388,
29898,
3318,
1125,
13,
1678,
9995,
13,
1678,
7315,
278,
474,
29914,
29877,
1134,
313,
3166,
278,
553,
11709,
29897,
322,
278,
334,
24381,
29906,
29889,
2272,
934,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
12013,
29918,
1853,
29892,
12013,
29918,
13789,
1125,
13,
4706,
1583,
29889,
1853,
353,
12013,
29918,
1853,
13,
4706,
1583,
29889,
13789,
353,
12013,
29918,
13789,
13,
13,
1990,
330,
29934,
9026,
29918,
8787,
29918,
2605,
29898,
3318,
1125,
13,
1678,
9995,
13,
1678,
4134,
1203,
363,
15446,
3450,
2224,
8393,
322,
3618,
29889,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1158,
29892,
6055,
1125,
13,
4706,
9995,
13,
4706,
25455,
322,
3787,
278,
19281,
1203,
363,
2678,
671,
29889,
13,
4706,
9995,
13,
4706,
1583,
29889,
978,
353,
1158,
1839,
978,
2033,
13,
13,
4706,
396,
12477,
6055,
13,
4706,
1583,
3032,
11027,
353,
6055,
13,
13,
4706,
396,
10567,
322,
1962,
3618,
13,
4706,
1583,
29889,
2080,
353,
330,
29934,
9026,
29918,
8787,
29918,
4062,
29918,
5971,
29918,
3388,
29898,
5696,
1839,
2080,
29918,
1853,
7464,
1158,
1839,
2080,
29918,
13789,
11287,
13,
4706,
1583,
29889,
4905,
353,
330,
29934,
9026,
29918,
8787,
29918,
4062,
29918,
5971,
29918,
3388,
29898,
5696,
1839,
4905,
29918,
1853,
7464,
1158,
1839,
4905,
29918,
13789,
11287,
13,
13,
4706,
396,
624,
431,
2777,
13,
4706,
1583,
29889,
303,
431,
353,
1583,
3032,
11027,
29889,
5355,
886,
29889,
303,
431,
29918,
3318,
13,
13,
1678,
822,
1881,
29918,
9621,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
385,
20380,
363,
3625,
1881,
4235,
29889,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
2080,
29889,
1853,
29889,
9621,
29918,
1609,
29918,
978,
29889,
7076,
580,
13,
13,
1678,
822,
4770,
4804,
12035,
1311,
29892,
3579,
19290,
1125,
13,
4706,
9995,
13,
4706,
8251,
278,
14407,
19281,
1158,
363,
445,
3450,
2224,
29889,
13,
4706,
9995,
13,
4706,
2933,
353,
679,
5552,
29898,
1311,
29889,
303,
431,
29892,
1583,
29889,
978,
5033,
1311,
29889,
2080,
29889,
13789,
29898,
1068,
19290,
876,
13,
4706,
736,
330,
29934,
9026,
29918,
8787,
29918,
5103,
29898,
5327,
29892,
1583,
29889,
4905,
29889,
13789,
29892,
1583,
29889,
2080,
29918,
9621,
3101,
13,
13,
1990,
330,
29934,
9026,
29918,
8787,
29918,
7196,
29898,
3318,
1125,
13,
1678,
9995,
13,
1678,
4134,
1203,
363,
15446,
3450,
2224,
3618,
29889,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6055,
1125,
13,
4706,
9995,
13,
4706,
584,
3207,
6055,
29901,
450,
5759,
6055,
1203,
13,
4706,
584,
1853,
6055,
29901,
330,
29934,
9026,
29918,
8787,
29918,
4032,
29918,
9585,
13,
4706,
9995,
13,
4706,
1583,
3032,
11027,
353,
6055,
13,
4706,
1583,
3032,
23515,
29871,
353,
5159,
13,
13,
1678,
822,
4770,
1524,
12035,
1311,
1125,
13,
4706,
9995,
13,
4706,
7106,
263,
8600,
310,
330,
29934,
9026,
3519,
29889,
13,
4706,
9995,
13,
4706,
363,
1158,
29918,
978,
297,
1583,
3032,
23515,
29901,
13,
9651,
7709,
29898,
5696,
29918,
978,
29892,
679,
5552,
29898,
1311,
29892,
1158,
29918,
978,
876,
13,
13,
1678,
822,
788,
29898,
1311,
29892,
1158,
1125,
13,
4706,
9995,
13,
4706,
3462,
263,
716,
330,
29934,
9026,
1158,
29889,
13,
13,
4706,
584,
3207,
2669,
29901,
450,
5759,
330,
29934,
9026,
2669,
1158,
1203,
13,
4706,
584,
1853,
1024,
29901,
851,
13,
4706,
9995,
13,
4706,
1583,
3032,
23515,
29889,
4397,
29898,
5696,
1839,
978,
11287,
13,
13,
4706,
396,
14491,
278,
3450,
1158,
13,
4706,
731,
5552,
29898,
1311,
29892,
1158,
1839,
978,
7464,
330,
29934,
9026,
29918,
8787,
29918,
2605,
29898,
5696,
29892,
1583,
3032,
11027,
876,
13,
2
] |
data_scout/transformations/math_custom.py | janthiemen/data_scout | 0 | 5718 | <filename>data_scout/transformations/math_custom.py
from __future__ import division
from .transformation import Transformation
from pyparsing import (Literal, CaselessLiteral, Word, Combine, Group, Optional,
ZeroOrMore, Forward, nums, alphas, oneOf)
import math
import re
import operator
__author__ = '<NAME>'
__version__ = '$Revision: 0.0 $'
__date__ = '$Date: 2009-03-20 $'
__source__ = '''http://pyparsing.wikispaces.com/file/view/fourFn.py
http://pyparsing.wikispaces.com/message/view/home/15549426
'''
__note__ = '''
All I've done is rewrap Paul McGuire's fourFn.py as a class, so I can use it
more easily in other places.
'''
class Custom(Transformation):
"""
Most of this code comes from the fourFn.py pyparsing example
"""
title = "Custom equation"
key = "Math equation"
fields = {
"equation": {"name": "Equation", "type": "string", "help": "The equation to evaluate. Column values should be entered as {COLUMN NAME}",
"required": True, "input": "text", "default": ""},
"output": {"name": "Output column", "type": "string", "input": "text", "required": True,
"help": "The name of the (newly created) column that contains the results", "default": ""},
}
def __init__(self, arguments: dict, sample_size: int, example: dict = None):
"""
Initialize the transformation with the given parameters.
expop :: '^'
multop :: '*' | '/'
addop :: '+' | '-'
integer :: ['+' | '-'] '0'..'9'+
atom :: PI | E | real | fn '(' expr ')' | '(' expr ')'
factor :: atom [ expop factor ]*
term :: factor [ multop factor ]*
expr :: term [ addop term ]*
Arguments:
arguments {dict} -- The arguments
"""
super().__init__(arguments, sample_size, example)
self.equation = arguments["equation"]
self.output = arguments["output"]
point = Literal(".")
e = CaselessLiteral("E")
fnumber = Combine(Word("+-" + nums, nums) +
Optional(point + Optional(Word(nums))) +
Optional(e + Word("+-" + nums, nums)))
ident = Word(alphas, alphas + nums + "_$")
plus = Literal("+")
minus = Literal("-")
mult = Literal("*")
div = Literal("/")
mod = Literal("%")
lpar = Literal("(").suppress()
rpar = Literal(")").suppress()
addop = plus | minus
multop = mult | div | mod
expop = Literal("^")
pi = CaselessLiteral("PI")
expr = Forward()
atom = ((Optional(oneOf("- +")) +
(ident + lpar + expr + rpar | pi | e | fnumber).setParseAction(self.push_first))
| Optional(oneOf("- +")) + Group(lpar + expr + rpar)
).setParseAction(self.push_u_minus)
# by defining exponentiation as "atom [ ^ factor ]..." instead of
# "atom [ ^ atom ]...", we get right-to-left exponents, instead of left-to-right
# that is, 2^3^2 = 2^(3^2), not (2^3)^2.
factor = Forward()
factor << atom + \
ZeroOrMore((expop + factor).setParseAction(self.push_first))
term = factor + \
ZeroOrMore((multop + factor).setParseAction(self.push_first))
expr << term + \
ZeroOrMore((addop + term).setParseAction(self.push_first))
# addop_term = ( addop + term ).setParseAction( self.push_first )
# general_term = term + ZeroOrMore( addop_term ) | OneOrMore( addop_term)
# expr << general_term
self.bnf = expr
# map operator symbols to corresponding arithmetic operations
epsilon = 1e-12
self.opn = {"+": operator.add,
"-": operator.sub,
"*": operator.mul,
"%": operator.mod,
"/": operator.truediv,
"^": operator.pow}
self.expr_stack = None
self.fn = {"sin": math.sin,
"sinh": math.sinh,
"cos": math.cos,
"cosh": math.cosh,
"tan": math.tan,
"tanh": math.tanh,
"exp": math.exp,
"sqrt": math.sqrt,
"radians": math.radians,
"degrees": math.degrees,
"sign": lambda x: 0 if x == 0 else x / abs(x),
"log": math.log10,
"ln": math.log,
"abs": abs,
"trunc": lambda a: int(a),
"round": round,
"floor": math.floor,
"ceil": math.ceil,
"sgn": lambda a: abs(a) > epsilon and cmp(a, 0) or 0}
def push_first(self, strg, loc, toks):
self.expr_stack.append(toks[0])
def push_u_minus(self, strg, loc, toks):
if toks and toks[0] == '-':
self.expr_stack.append('unary -')
def evaluate_stack(self, s):
op = s.pop()
if op == 'unary -':
return -self.evaluate_stack(s)
if op in "+-*/^%":
op2 = self.evaluate_stack(s)
op1 = self.evaluate_stack(s)
return self.opn[op](op1, op2)
elif op == "PI":
return math.pi # 3.1415926535
elif op == "E":
return math.e # 2.718281828
elif op in self.fn:
return self.fn[op](self.evaluate_stack(s))
elif op[0].isalpha():
return 0
else:
return float(op)
def eval(self, num_string, parse_all=True):
self.expr_stack = []
results = self.bnf.parseString(num_string, parse_all)
val = self.evaluate_stack(self.expr_stack[:])
return val
def __call__(self, row, index: int):
"""This class is called on each row.
Arguments:
row {dict} -- The complete row
Returns:
dict -- The row, including the extra output column
"""
row[self.output] = self.eval(re.sub(r'{(\w+)}', lambda x: str(row.get(x.group(1), 0)), self.equation))
return row, index
| [
1,
529,
9507,
29958,
1272,
29918,
1557,
449,
29914,
9067,
800,
29914,
755,
29918,
6341,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
13,
3166,
869,
3286,
5404,
1053,
4103,
5404,
13,
3166,
11451,
862,
2976,
1053,
313,
24938,
284,
29892,
6960,
6393,
24938,
284,
29892,
10803,
29892,
422,
26062,
29892,
6431,
29892,
28379,
29892,
13,
462,
539,
28933,
2816,
20761,
29892,
1152,
1328,
29892,
954,
29879,
29892,
394,
16130,
29892,
697,
2776,
29897,
13,
5215,
5844,
13,
5215,
337,
13,
5215,
5455,
13,
13,
1649,
8921,
1649,
353,
12801,
5813,
16299,
13,
1649,
3259,
1649,
353,
14180,
1123,
4924,
29901,
29871,
29900,
29889,
29900,
395,
29915,
13,
1649,
1256,
1649,
353,
14180,
2539,
29901,
29871,
29906,
29900,
29900,
29929,
29899,
29900,
29941,
29899,
29906,
29900,
395,
29915,
13,
1649,
4993,
1649,
353,
14550,
1124,
597,
2272,
862,
2976,
29889,
2851,
11936,
3302,
29889,
510,
29914,
1445,
29914,
1493,
29914,
17823,
29137,
29889,
2272,
13,
1124,
597,
2272,
862,
2976,
29889,
2851,
11936,
3302,
29889,
510,
29914,
4906,
29914,
1493,
29914,
5184,
29914,
29896,
29945,
29945,
29946,
29929,
29946,
29906,
29953,
13,
12008,
13,
1649,
6812,
1649,
353,
14550,
13,
3596,
306,
29915,
345,
2309,
338,
337,
6312,
3739,
4052,
9485,
533,
29915,
29879,
3023,
29137,
29889,
2272,
408,
263,
770,
29892,
577,
306,
508,
671,
372,
13,
5514,
5948,
297,
916,
7600,
29889,
13,
12008,
13,
13,
13,
1990,
8701,
29898,
4300,
5404,
1125,
13,
1678,
9995,
13,
1678,
7849,
310,
445,
775,
5304,
515,
278,
3023,
29137,
29889,
2272,
11451,
862,
2976,
1342,
13,
1678,
9995,
13,
13,
1678,
3611,
353,
376,
7281,
6306,
29908,
13,
1678,
1820,
353,
376,
11309,
6306,
29908,
13,
1678,
4235,
353,
426,
13,
4706,
376,
2573,
1115,
8853,
978,
1115,
376,
6108,
362,
613,
376,
1853,
1115,
376,
1807,
613,
376,
8477,
1115,
376,
1576,
6306,
304,
14707,
29889,
12481,
1819,
881,
367,
7802,
408,
426,
15032,
29127,
27085,
17671,
13,
462,
268,
376,
12403,
1115,
5852,
29892,
376,
2080,
1115,
376,
726,
613,
376,
4381,
1115,
5124,
1118,
13,
4706,
376,
4905,
1115,
8853,
978,
1115,
376,
6466,
1897,
613,
376,
1853,
1115,
376,
1807,
613,
376,
2080,
1115,
376,
726,
613,
376,
12403,
1115,
5852,
29892,
13,
462,
259,
376,
8477,
1115,
376,
1576,
1024,
310,
278,
313,
1482,
368,
2825,
29897,
1897,
393,
3743,
278,
2582,
613,
376,
4381,
1115,
5124,
1118,
13,
1678,
500,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6273,
29901,
9657,
29892,
4559,
29918,
2311,
29901,
938,
29892,
1342,
29901,
9657,
353,
6213,
1125,
13,
4706,
9995,
13,
4706,
25455,
278,
13852,
411,
278,
2183,
4128,
29889,
13,
13,
4706,
1518,
459,
259,
4761,
525,
29985,
29915,
13,
4706,
1773,
459,
29871,
4761,
525,
29930,
29915,
891,
8207,
29915,
13,
4706,
788,
459,
259,
4761,
525,
23097,
891,
17411,
29915,
13,
4706,
6043,
4761,
6024,
23097,
891,
17411,
2033,
525,
29900,
29915,
636,
29915,
29929,
18717,
13,
4706,
12301,
1678,
4761,
349,
29902,
891,
382,
891,
1855,
891,
7876,
525,
877,
22010,
525,
16029,
891,
525,
877,
22010,
525,
16029,
13,
4706,
7329,
29871,
4761,
12301,
518,
1518,
459,
7329,
4514,
29930,
13,
4706,
1840,
1678,
4761,
7329,
518,
1773,
459,
7329,
4514,
29930,
13,
4706,
22010,
1678,
4761,
1840,
518,
788,
459,
1840,
4514,
29930,
13,
13,
4706,
11842,
9331,
29901,
13,
9651,
6273,
426,
8977,
29913,
1192,
450,
6273,
13,
4706,
9995,
13,
4706,
2428,
2141,
1649,
2344,
12035,
25699,
29892,
4559,
29918,
2311,
29892,
1342,
29897,
13,
4706,
1583,
29889,
2573,
353,
6273,
3366,
2573,
3108,
13,
4706,
1583,
29889,
4905,
353,
6273,
3366,
4905,
3108,
13,
13,
4706,
1298,
353,
5449,
284,
17350,
1159,
13,
4706,
321,
353,
6960,
6393,
24938,
284,
703,
29923,
1159,
13,
4706,
285,
4537,
353,
422,
26062,
29898,
14463,
703,
29974,
29899,
29908,
718,
954,
29879,
29892,
954,
29879,
29897,
718,
13,
462,
3986,
28379,
29898,
3149,
718,
28379,
29898,
14463,
29898,
1949,
29879,
4961,
718,
13,
462,
3986,
28379,
29898,
29872,
718,
10803,
703,
29974,
29899,
29908,
718,
954,
29879,
29892,
954,
29879,
4961,
13,
4706,
2893,
353,
10803,
29898,
284,
16130,
29892,
394,
16130,
718,
954,
29879,
718,
11119,
29938,
1159,
13,
4706,
2298,
353,
5449,
284,
703,
29974,
1159,
13,
4706,
26134,
353,
5449,
284,
703,
29899,
1159,
13,
4706,
1773,
353,
5449,
284,
703,
29930,
1159,
13,
4706,
1933,
353,
5449,
284,
11974,
1159,
13,
4706,
878,
353,
5449,
284,
11702,
1159,
13,
4706,
301,
862,
353,
5449,
284,
703,
703,
467,
19303,
1253,
580,
13,
4706,
364,
862,
353,
5449,
284,
703,
29897,
2564,
19303,
1253,
580,
13,
4706,
788,
459,
353,
2298,
891,
26134,
13,
4706,
1773,
459,
353,
1773,
891,
1933,
891,
878,
13,
4706,
1518,
459,
353,
5449,
284,
703,
29985,
1159,
13,
4706,
2930,
353,
6960,
6393,
24938,
284,
703,
2227,
1159,
13,
4706,
22010,
353,
1152,
1328,
580,
13,
4706,
12301,
353,
5135,
27636,
29898,
650,
2776,
703,
29899,
718,
5783,
718,
13,
462,
313,
1693,
718,
301,
862,
718,
22010,
718,
364,
862,
891,
2930,
891,
321,
891,
285,
4537,
467,
842,
12914,
4276,
29898,
1311,
29889,
5910,
29918,
4102,
876,
13,
18884,
891,
28379,
29898,
650,
2776,
703,
29899,
718,
5783,
718,
6431,
29898,
29880,
862,
718,
22010,
718,
364,
862,
29897,
13,
18884,
13742,
842,
12914,
4276,
29898,
1311,
29889,
5910,
29918,
29884,
29918,
12254,
29897,
13,
4706,
396,
491,
16184,
28869,
11685,
408,
376,
8678,
518,
6228,
7329,
4514,
17794,
2012,
310,
13,
4706,
396,
376,
8678,
518,
6228,
12301,
4514,
856,
613,
591,
679,
1492,
29899,
517,
29899,
1563,
429,
9340,
29892,
2012,
310,
2175,
29899,
517,
29899,
1266,
13,
4706,
396,
393,
338,
29892,
29871,
29906,
29985,
29941,
29985,
29906,
353,
29871,
29906,
23733,
29941,
29985,
29906,
511,
451,
313,
29906,
29985,
29941,
4887,
29906,
29889,
13,
4706,
7329,
353,
1152,
1328,
580,
13,
4706,
7329,
3532,
12301,
718,
320,
13,
4706,
28933,
2816,
20761,
3552,
4548,
459,
718,
7329,
467,
842,
12914,
4276,
29898,
1311,
29889,
5910,
29918,
4102,
876,
13,
4706,
1840,
353,
7329,
718,
320,
13,
1669,
28933,
2816,
20761,
3552,
4713,
459,
718,
7329,
467,
842,
12914,
4276,
29898,
1311,
29889,
5910,
29918,
4102,
876,
13,
4706,
22010,
3532,
1840,
718,
320,
13,
4706,
28933,
2816,
20761,
3552,
1202,
459,
718,
1840,
467,
842,
12914,
4276,
29898,
1311,
29889,
5910,
29918,
4102,
876,
13,
4706,
396,
788,
459,
29918,
8489,
353,
313,
788,
459,
718,
1840,
13742,
842,
12914,
4276,
29898,
1583,
29889,
5910,
29918,
4102,
1723,
13,
4706,
396,
2498,
29918,
8489,
353,
1840,
718,
28933,
2816,
20761,
29898,
788,
459,
29918,
8489,
1723,
891,
3118,
2816,
20761,
29898,
788,
459,
29918,
8489,
29897,
13,
4706,
396,
22010,
3532,
29871,
2498,
29918,
8489,
13,
4706,
1583,
29889,
11197,
29888,
353,
22010,
13,
4706,
396,
2910,
5455,
15072,
304,
6590,
23342,
6931,
13,
4706,
321,
3232,
353,
29871,
29896,
29872,
29899,
29896,
29906,
13,
4706,
1583,
29889,
459,
29876,
353,
8853,
29974,
1115,
5455,
29889,
1202,
29892,
13,
462,
1678,
11663,
1115,
5455,
29889,
1491,
29892,
13,
462,
1678,
26345,
1115,
5455,
29889,
16109,
29892,
13,
462,
1678,
11860,
1115,
5455,
29889,
1545,
29892,
13,
462,
1678,
5591,
1115,
5455,
29889,
509,
6742,
440,
29892,
13,
462,
1678,
13898,
1115,
5455,
29889,
12248,
29913,
13,
4706,
1583,
29889,
13338,
29918,
1429,
353,
6213,
13,
4706,
1583,
29889,
9144,
353,
8853,
5223,
1115,
5844,
29889,
5223,
29892,
13,
462,
259,
376,
5223,
29882,
1115,
5844,
29889,
5223,
29882,
29892,
13,
462,
259,
376,
3944,
1115,
5844,
29889,
3944,
29892,
13,
462,
259,
376,
3944,
29882,
1115,
5844,
29889,
3944,
29882,
29892,
13,
462,
259,
376,
13161,
1115,
5844,
29889,
13161,
29892,
13,
462,
259,
376,
13161,
29882,
1115,
5844,
29889,
13161,
29882,
29892,
13,
462,
259,
376,
4548,
1115,
5844,
29889,
4548,
29892,
13,
462,
259,
376,
3676,
1115,
5844,
29889,
3676,
29892,
13,
462,
259,
376,
3665,
5834,
1115,
5844,
29889,
3665,
5834,
29892,
13,
462,
259,
376,
311,
7979,
267,
1115,
5844,
29889,
311,
7979,
267,
29892,
13,
462,
259,
376,
4530,
1115,
14013,
921,
29901,
29871,
29900,
565,
921,
1275,
29871,
29900,
1683,
921,
847,
6425,
29898,
29916,
511,
13,
462,
259,
376,
1188,
1115,
5844,
29889,
1188,
29896,
29900,
29892,
13,
462,
259,
376,
3083,
1115,
5844,
29889,
1188,
29892,
13,
462,
259,
376,
6897,
1115,
6425,
29892,
13,
462,
259,
376,
509,
4661,
1115,
14013,
263,
29901,
938,
29898,
29874,
511,
13,
462,
259,
376,
14486,
1115,
4513,
29892,
13,
462,
259,
376,
14939,
1115,
5844,
29889,
14939,
29892,
13,
462,
259,
376,
27696,
1115,
5844,
29889,
27696,
29892,
13,
462,
259,
376,
29879,
5138,
1115,
14013,
263,
29901,
6425,
29898,
29874,
29897,
1405,
321,
3232,
322,
274,
1526,
29898,
29874,
29892,
29871,
29900,
29897,
470,
29871,
29900,
29913,
13,
13,
1678,
822,
5503,
29918,
4102,
29898,
1311,
29892,
851,
29887,
29892,
1180,
29892,
304,
2039,
1125,
13,
4706,
1583,
29889,
13338,
29918,
1429,
29889,
4397,
29898,
517,
2039,
29961,
29900,
2314,
13,
13,
1678,
822,
5503,
29918,
29884,
29918,
12254,
29898,
1311,
29892,
851,
29887,
29892,
1180,
29892,
304,
2039,
1125,
13,
4706,
565,
304,
2039,
322,
304,
2039,
29961,
29900,
29962,
1275,
17411,
2396,
13,
9651,
1583,
29889,
13338,
29918,
1429,
29889,
4397,
877,
348,
653,
448,
1495,
13,
13,
1678,
822,
14707,
29918,
1429,
29898,
1311,
29892,
269,
1125,
13,
4706,
1015,
353,
269,
29889,
7323,
580,
13,
4706,
565,
1015,
1275,
525,
348,
653,
448,
2396,
13,
9651,
736,
448,
1311,
29889,
24219,
403,
29918,
1429,
29898,
29879,
29897,
13,
4706,
565,
1015,
297,
15691,
29899,
3877,
29985,
29995,
1115,
13,
9651,
1015,
29906,
353,
1583,
29889,
24219,
403,
29918,
1429,
29898,
29879,
29897,
13,
9651,
1015,
29896,
353,
1583,
29889,
24219,
403,
29918,
1429,
29898,
29879,
29897,
13,
9651,
736,
1583,
29889,
459,
29876,
29961,
459,
850,
459,
29896,
29892,
1015,
29906,
29897,
13,
4706,
25342,
1015,
1275,
376,
2227,
1115,
13,
9651,
736,
5844,
29889,
1631,
29871,
396,
29871,
29941,
29889,
29896,
29946,
29896,
29945,
29929,
29906,
29953,
29945,
29941,
29945,
13,
4706,
25342,
1015,
1275,
376,
29923,
1115,
13,
9651,
736,
5844,
29889,
29872,
29871,
396,
29871,
29906,
29889,
29955,
29896,
29947,
29906,
29947,
29896,
29947,
29906,
29947,
13,
4706,
25342,
1015,
297,
1583,
29889,
9144,
29901,
13,
9651,
736,
1583,
29889,
9144,
29961,
459,
850,
1311,
29889,
24219,
403,
29918,
1429,
29898,
29879,
876,
13,
4706,
25342,
1015,
29961,
29900,
1822,
275,
2312,
7295,
13,
9651,
736,
29871,
29900,
13,
4706,
1683,
29901,
13,
9651,
736,
5785,
29898,
459,
29897,
13,
13,
1678,
822,
19745,
29898,
1311,
29892,
954,
29918,
1807,
29892,
6088,
29918,
497,
29922,
5574,
1125,
13,
4706,
1583,
29889,
13338,
29918,
1429,
353,
5159,
13,
4706,
2582,
353,
1583,
29889,
11197,
29888,
29889,
5510,
1231,
29898,
1949,
29918,
1807,
29892,
6088,
29918,
497,
29897,
13,
4706,
659,
353,
1583,
29889,
24219,
403,
29918,
1429,
29898,
1311,
29889,
13338,
29918,
1429,
7503,
2314,
13,
4706,
736,
659,
13,
13,
1678,
822,
4770,
4804,
12035,
1311,
29892,
1948,
29892,
2380,
29901,
938,
1125,
13,
4706,
9995,
4013,
770,
338,
2000,
373,
1269,
1948,
29889,
13,
13,
4706,
11842,
9331,
29901,
13,
9651,
1948,
426,
8977,
29913,
1192,
450,
4866,
1948,
13,
13,
4706,
16969,
29901,
13,
9651,
9657,
1192,
450,
1948,
29892,
3704,
278,
4805,
1962,
1897,
13,
4706,
9995,
13,
4706,
1948,
29961,
1311,
29889,
4905,
29962,
353,
1583,
29889,
14513,
29898,
276,
29889,
1491,
29898,
29878,
29915,
29912,
1194,
29893,
29974,
2915,
742,
14013,
921,
29901,
851,
29898,
798,
29889,
657,
29898,
29916,
29889,
2972,
29898,
29896,
511,
29871,
29900,
8243,
1583,
29889,
2573,
876,
13,
13,
4706,
736,
1948,
29892,
2380,
13,
2
] |
web-server/webserver/urls.py | ApLight/groenlandicus | 0 | 25625 | <reponame>ApLight/groenlandicus<gh_stars>0
"""webserver URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from account import views as account_views
from quiz import views as quiz_views
from entry import views as entry_views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^login/', account_views.login, name="login"),
url(r'^feed/', account_views.feed_seolgi, name="feed"),
url(r'^quizzes/', quiz_views.get_quizzes, name="get_quizzes"),
url(r'^index/', entry_views.get_index, name="get_index"),
]
quiz_views.update_quizzes() # When the project starts, execute "update_quizzes".
| [
1,
529,
276,
1112,
420,
29958,
17396,
20769,
29914,
17170,
264,
1049,
12473,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
2676,
2974,
3988,
20999,
13,
13,
1576,
421,
2271,
11037,
29879,
29952,
1051,
12049,
24295,
304,
8386,
29889,
1152,
901,
2472,
3113,
1074,
29901,
13,
1678,
2045,
597,
2640,
29889,
19776,
574,
26555,
622,
29889,
510,
29914,
264,
29914,
29896,
29889,
29896,
29896,
29914,
3332,
1199,
29914,
1124,
29914,
26045,
29914,
13,
1252,
9422,
29901,
13,
6678,
8386,
13,
268,
29896,
29889,
3462,
385,
1053,
29901,
29871,
515,
590,
29918,
932,
1053,
8386,
13,
268,
29906,
29889,
3462,
263,
3988,
304,
3142,
11037,
29879,
29901,
29871,
3142,
29898,
29878,
29915,
29985,
29938,
742,
8386,
29889,
5184,
29892,
1024,
2433,
5184,
1495,
13,
2385,
29899,
6707,
8386,
13,
268,
29896,
29889,
3462,
385,
1053,
29901,
29871,
515,
916,
29918,
932,
29889,
7406,
1053,
8778,
13,
268,
29906,
29889,
3462,
263,
3988,
304,
3142,
11037,
29879,
29901,
29871,
3142,
29898,
29878,
29915,
29985,
29938,
742,
8778,
29889,
294,
29918,
1493,
3285,
1024,
2433,
5184,
1495,
13,
797,
22368,
1790,
3988,
5527,
13,
268,
29896,
29889,
16032,
278,
3160,
580,
740,
29901,
515,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
29892,
3160,
13,
268,
29906,
29889,
3462,
263,
3988,
304,
3142,
11037,
29879,
29901,
29871,
3142,
29898,
29878,
29915,
29985,
7312,
29914,
742,
3160,
877,
7312,
29889,
26045,
8785,
13,
15945,
29908,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
13,
3166,
3633,
1053,
8386,
408,
3633,
29918,
7406,
13,
3166,
439,
466,
1053,
8386,
408,
439,
466,
29918,
7406,
13,
3166,
6251,
1053,
8386,
408,
6251,
29918,
7406,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
3142,
29898,
29878,
29915,
29985,
6406,
29914,
742,
4113,
29889,
2746,
29889,
26045,
511,
13,
1678,
3142,
29898,
29878,
29915,
29985,
7507,
29914,
742,
3633,
29918,
7406,
29889,
7507,
29892,
1024,
543,
7507,
4968,
13,
1678,
3142,
29898,
29878,
29915,
29985,
18798,
29914,
742,
3633,
29918,
7406,
29889,
18798,
29918,
344,
324,
3146,
29892,
1024,
543,
18798,
4968,
13,
1678,
3142,
29898,
29878,
29915,
29985,
339,
4981,
267,
29914,
742,
439,
466,
29918,
7406,
29889,
657,
29918,
339,
4981,
267,
29892,
1024,
543,
657,
29918,
339,
4981,
267,
4968,
13,
1678,
3142,
29898,
29878,
29915,
29985,
2248,
29914,
742,
6251,
29918,
7406,
29889,
657,
29918,
2248,
29892,
1024,
543,
657,
29918,
2248,
4968,
13,
29962,
13,
13,
339,
466,
29918,
7406,
29889,
5504,
29918,
339,
4981,
267,
580,
396,
1932,
278,
2060,
8665,
29892,
6222,
376,
5504,
29918,
339,
4981,
267,
1642,
13,
2
] |
day-11/package_demo/package1/pathprint.py | JohnLockwood/100-days-of-python | 0 | 151207 | <filename>day-11/package_demo/package1/pathprint.py
"""Demo module to show python search path"""
import sys
import pprint
def print_path():
"""Pretty print the system path"""
print("Printing the search path:")
pprint.pprint(sys.path) | [
1,
529,
9507,
29958,
3250,
29899,
29896,
29896,
29914,
5113,
29918,
17482,
29914,
5113,
29896,
29914,
2084,
2158,
29889,
2272,
13,
15945,
29908,
23444,
3883,
304,
1510,
3017,
2740,
2224,
15945,
29908,
13,
5215,
10876,
13,
5215,
282,
2158,
13,
13,
1753,
1596,
29918,
2084,
7295,
13,
1678,
9995,
6572,
4349,
1596,
278,
1788,
2224,
15945,
29908,
13,
1678,
1596,
703,
11816,
292,
278,
2740,
2224,
29901,
1159,
13,
1678,
282,
2158,
29889,
407,
29878,
524,
29898,
9675,
29889,
2084,
29897,
2
] |
invoicer/_units/forms.py | mtik00/invoicer | 0 | 44231 | <filename>invoicer/_units/forms.py
from flask_wtf import FlaskForm
from wtforms import StringField, FloatField
from wtforms.validators import DataRequired
class UnitForm(FlaskForm):
description = StringField(u'Description', validators=[DataRequired()])
unit_price = FloatField(u'Unit Price', validators=[DataRequired()])
units = StringField(u'Units (e.g. hr, day, etc)')
| [
1,
529,
9507,
29958,
262,
1365,
293,
261,
19891,
348,
1169,
29914,
9514,
29889,
2272,
13,
3166,
29784,
29918,
29893,
13264,
1053,
2379,
1278,
2500,
13,
3166,
281,
29873,
9514,
1053,
1714,
3073,
29892,
27842,
3073,
13,
3166,
281,
29873,
9514,
29889,
3084,
4097,
1053,
3630,
19347,
13,
13,
13,
1990,
13223,
2500,
29898,
8754,
1278,
2500,
1125,
13,
1678,
6139,
353,
1714,
3073,
29898,
29884,
29915,
9868,
742,
2854,
4097,
11759,
1469,
19347,
580,
2314,
13,
1678,
5190,
29918,
9175,
353,
27842,
3073,
29898,
29884,
29915,
8325,
20743,
742,
2854,
4097,
11759,
1469,
19347,
580,
2314,
13,
1678,
10340,
353,
1714,
3073,
29898,
29884,
29915,
2525,
1169,
313,
29872,
29889,
29887,
29889,
22157,
29892,
2462,
29892,
2992,
29897,
1495,
13,
2
] |
tests/test_transform_compile_releases_from_records.py | matiasSanabria/kingfisher-process | 1 | 132254 | import datetime
import os
import sqlalchemy as sa
from ocdskingfisherprocess.store import Store
from ocdskingfisherprocess.transform import TRANSFORM_TYPE_COMPILE_RELEASES
from ocdskingfisherprocess.transform.compile_releases import CompileReleasesTransform
from tests.base import BaseDataBaseTest
class TestTransformCompileReleasesFromRecords(BaseDataBaseTest):
def _setup_collections_and_data_run_transform(self, filename, load_a_second_time=False):
# Make source collection
source_collection_id = self.database.get_or_create_collection_id("test", datetime.datetime.now(), False)
source_collection = self.database.get_collection(source_collection_id)
# Load some data
store = Store(self.config, self.database)
store.set_collection(source_collection)
json_filename = os.path.join(os.path.dirname(
os.path.realpath(__file__)), 'fixtures', filename
)
store.store_file_from_local("test.json", "http://example.com", "record_package", "utf-8", json_filename)
if load_a_second_time:
store.store_file_from_local("test2.json", "http://example.com", "record_package", "utf-8", json_filename)
# Make destination collection
destination_collection_id = self.database.get_or_create_collection_id(
source_collection.source_id,
source_collection.data_version,
source_collection.sample,
transform_from_collection_id=source_collection_id,
transform_type=TRANSFORM_TYPE_COMPILE_RELEASES)
destination_collection = self.database.get_collection(destination_collection_id)
# transform! Nothing should happen because source is not finished
transform = CompileReleasesTransform(self.config, self.database, destination_collection)
transform.process()
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 0 == result.rowcount
# Mark source collection as finished
self.database.mark_collection_store_done(source_collection_id)
# transform! This should do the work.
transform = CompileReleasesTransform(self.config, self.database, destination_collection)
transform.process()
return source_collection_id, source_collection, destination_collection_id, destination_collection
def test_compiled_release(self):
source_collection_id, source_collection, destination_collection_id, destination_collection = \
self._setup_collections_and_data_run_transform('sample_1_1_record.json')
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 1 == result.rowcount
# Check a couple of fields just to sanity check it's the compiled release in the record table
# Because releases are linked, the only way to get data is to take the compiled release
compiled_release = result.fetchone()
data = self.database.get_data(compiled_release['data_id'])
assert 'ocds-213czf-000-00001-2011-01-10T09:30:00Z' == data.get('id')
assert '2011-01-10T09:30:00Z' == data.get('date')
assert 'ocds-213czf-000-00001' == data.get('ocid')
# Check warnings
s = sa.sql.select([self.database.collection_file_item_table])\
.where(self.database.collection_file_item_table.c.id == compiled_release['collection_file_item_id'])
result_file_item = connection.execute(s)
assert 1 == result_file_item.rowcount
collection_file_item = result_file_item.fetchone()
assert collection_file_item.warnings == [
'This already had a compiledRelease in the record! It was passed through this transform unchanged.',
]
# Check collection notes
notes = self.database.get_all_notes_in_collection(destination_collection_id)
assert len(notes) == 0
# transform again! This should be fine
transform = CompileReleasesTransform(self.config, self.database, destination_collection)
transform.process()
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 1 == result.rowcount
# destination collection should be closed
destination_collection = self.database.get_collection(destination_collection_id)
assert destination_collection.store_end_at is not None
def test_no_compiled_release_linked_records_so_cant_do_anything(self):
source_collection_id, source_collection, destination_collection_id, destination_collection = \
self._setup_collections_and_data_run_transform('sample_1_1_record_linked_releases_not_compiled.json')
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 0 == result.rowcount
# Check collection notes
notes = self.database.get_all_notes_in_collection(destination_collection_id)
assert len(notes) == 1
assert 'OCID ocds-213czf-000-00001 could not be compiled because at least one release in the releases ' +\
'array is a linked release or there are no releases with dates, ' +\
'and the record has neither a compileRelease nor a release with a tag of "compiled".' == \
notes[0].note
def test_transform_compiles(self):
# This data files has full releases and nothing else, so the transform should compile itself using ocdsmerge
source_collection_id, source_collection, destination_collection_id, destination_collection = \
self._setup_collections_and_data_run_transform('sample_1_1_record_releases_not_compiled.json')
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 1 == result.rowcount
# Check a couple of fields just to sanity check we've compiled something here.
# The only way it could get data here is if it compiled it itself.
compiled_release = result.fetchone()
data = self.database.get_data(compiled_release['data_id'])
assert 'ocds-213czf-000-00001-2011-01-10T09:30:00Z' == data.get('id')
assert '2011-01-10T09:30:00Z' == data.get('date')
assert 'ocds-213czf-000-00001' == data.get('ocid')
# Check warnings
s = sa.sql.select([self.database.collection_file_item_table])\
.where(self.database.collection_file_item_table.c.id == compiled_release['collection_file_item_id'])
result_file_item = connection.execute(s)
assert 1 == result_file_item.rowcount
collection_file_item = result_file_item.fetchone()
assert collection_file_item.warnings is None
# Check collection notes
notes = self.database.get_all_notes_in_collection(destination_collection_id)
assert len(notes) == 0
# transform again! This should be fine
transform = CompileReleasesTransform(self.config, self.database, destination_collection)
transform.process()
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 1 == result.rowcount
# destination collection should be closed
destination_collection = self.database.get_collection(destination_collection_id)
assert destination_collection.store_end_at is not None
def test_two_records_same_ocid(self):
source_collection_id, source_collection, destination_collection_id, destination_collection = \
self._setup_collections_and_data_run_transform(
'sample_1_1_record_releases_not_compiled.json',
load_a_second_time=True
)
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 1 == result.rowcount
# Check a couple of fields just to sanity check it's the compiled release in the record table
# Because releases are linked, the only way to get data is to take the compiled release
compiled_release = result.fetchone()
data = self.database.get_data(compiled_release['data_id'])
assert 'ocds-213czf-000-00001-2011-01-10T09:30:00Z' == data.get('id')
assert '2011-01-10T09:30:00Z' == data.get('date')
assert 'ocds-213czf-000-00001' == data.get('ocid')
# Check warnings
s = sa.sql.select([self.database.collection_file_item_table]) \
.where(self.database.collection_file_item_table.c.id == compiled_release['collection_file_item_id'])
result_file_item = connection.execute(s)
assert 1 == result_file_item.rowcount
collection_file_item = result_file_item.fetchone()
assert collection_file_item.warnings == [
'There are multiple records for this OCID! The record to pass through was selected arbitrarily.',
]
# Check collection notes
notes = self.database.get_all_notes_in_collection(destination_collection_id)
assert len(notes) == 0
# transform again! This should be fine
transform = CompileReleasesTransform(self.config, self.database, destination_collection)
transform.process()
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 1 == result.rowcount
# destination collection should be closed
destination_collection = self.database.get_collection(destination_collection_id)
assert destination_collection.store_end_at is not None
def test_no_dates(self):
source_collection_id, source_collection, destination_collection_id, destination_collection = \
self._setup_collections_and_data_run_transform('sample_1_1_record_releases_not_compiled_no_dates.json')
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 0 == result.rowcount
# Check collection notes
notes = self.database.get_all_notes_in_collection(destination_collection_id)
assert len(notes) == 1
assert 'OCID ocds-213czf-000-00001 could not be compiled ' +\
'because at least one release in the releases array is a ' +\
'linked release or there are no releases with dates, ' +\
'and the record has neither a compileRelease nor a release with a tag of "compiled".' == \
notes[0].note
def test_some_dates(self):
source_collection_id, source_collection, destination_collection_id, destination_collection = \
self._setup_collections_and_data_run_transform('sample_1_1_record_releases_not_compiled_some_dates.json')
# check
with self.database.get_engine().begin() as connection:
s = sa.sql.select([self.database.compiled_release_table])
result = connection.execute(s)
assert 1 == result.rowcount
# Check a couple of fields just to sanity check it's the compiled release in the record table
# Because releases are linked, the only way to get data is to take the compiled release
compiled_release = result.fetchone()
data = self.database.get_data(compiled_release['data_id'])
assert 'ocds-213czf-000-00001-2011-01-10T09:30:00Z' == data.get('id')
assert '2011-01-10T09:30:00Z' == data.get('date')
assert 'ocds-213czf-000-00001' == data.get('ocid')
# Check warnings
s = sa.sql.select([self.database.collection_file_item_table]) \
.where(self.database.collection_file_item_table.c.id == compiled_release['collection_file_item_id'])
result_file_item = connection.execute(s)
assert 1 == result_file_item.rowcount
collection_file_item = result_file_item.fetchone()
assert collection_file_item.warnings == [
'This OCID had some releases without a date element. We have compiled all other releases.']
# Check collection notes
notes = self.database.get_all_notes_in_collection(destination_collection_id)
assert len(notes) == 0
| [
1,
1053,
12865,
13,
5215,
2897,
13,
13,
5215,
4576,
284,
305,
6764,
408,
872,
13,
13,
3166,
288,
2252,
808,
292,
15161,
261,
5014,
29889,
8899,
1053,
14491,
13,
3166,
288,
2252,
808,
292,
15161,
261,
5014,
29889,
9067,
1053,
10014,
2190,
29903,
19094,
29918,
11116,
29918,
19795,
2227,
1307,
29918,
14829,
29903,
13,
3166,
288,
2252,
808,
292,
15161,
261,
5014,
29889,
9067,
29889,
12198,
29918,
276,
17836,
1053,
3831,
488,
1123,
17836,
13372,
13,
3166,
6987,
29889,
3188,
1053,
7399,
1469,
5160,
3057,
13,
13,
13,
1990,
4321,
13372,
6843,
488,
1123,
17836,
4591,
4789,
4339,
29898,
5160,
1469,
5160,
3057,
1125,
13,
13,
1678,
822,
903,
14669,
29918,
29027,
29918,
392,
29918,
1272,
29918,
3389,
29918,
9067,
29898,
1311,
29892,
10422,
29892,
2254,
29918,
29874,
29918,
7496,
29918,
2230,
29922,
8824,
1125,
13,
13,
4706,
396,
8561,
2752,
4333,
13,
4706,
2752,
29918,
10855,
29918,
333,
353,
1583,
29889,
9803,
29889,
657,
29918,
272,
29918,
3258,
29918,
10855,
29918,
333,
703,
1688,
613,
12865,
29889,
12673,
29889,
3707,
3285,
7700,
29897,
13,
4706,
2752,
29918,
10855,
353,
1583,
29889,
9803,
29889,
657,
29918,
10855,
29898,
4993,
29918,
10855,
29918,
333,
29897,
13,
13,
4706,
396,
16012,
777,
848,
13,
4706,
3787,
353,
14491,
29898,
1311,
29889,
2917,
29892,
1583,
29889,
9803,
29897,
13,
4706,
3787,
29889,
842,
29918,
10855,
29898,
4993,
29918,
10855,
29897,
13,
4706,
4390,
29918,
9507,
353,
2897,
29889,
2084,
29889,
7122,
29898,
359,
29889,
2084,
29889,
25721,
29898,
13,
9651,
2897,
29889,
2084,
29889,
6370,
2084,
22168,
1445,
1649,
8243,
525,
7241,
486,
1973,
742,
10422,
13,
4706,
1723,
13,
4706,
3787,
29889,
8899,
29918,
1445,
29918,
3166,
29918,
2997,
703,
1688,
29889,
3126,
613,
376,
1124,
597,
4773,
29889,
510,
613,
376,
11651,
29918,
5113,
613,
376,
9420,
29899,
29947,
613,
4390,
29918,
9507,
29897,
13,
4706,
565,
2254,
29918,
29874,
29918,
7496,
29918,
2230,
29901,
13,
9651,
3787,
29889,
8899,
29918,
1445,
29918,
3166,
29918,
2997,
703,
1688,
29906,
29889,
3126,
613,
376,
1124,
597,
4773,
29889,
510,
613,
376,
11651,
29918,
5113,
613,
376,
9420,
29899,
29947,
613,
4390,
29918,
9507,
29897,
13,
13,
4706,
396,
8561,
12551,
4333,
13,
4706,
12551,
29918,
10855,
29918,
333,
353,
1583,
29889,
9803,
29889,
657,
29918,
272,
29918,
3258,
29918,
10855,
29918,
333,
29898,
13,
9651,
2752,
29918,
10855,
29889,
4993,
29918,
333,
29892,
13,
9651,
2752,
29918,
10855,
29889,
1272,
29918,
3259,
29892,
13,
9651,
2752,
29918,
10855,
29889,
11249,
29892,
13,
9651,
4327,
29918,
3166,
29918,
10855,
29918,
333,
29922,
4993,
29918,
10855,
29918,
333,
29892,
13,
9651,
4327,
29918,
1853,
29922,
26813,
29903,
19094,
29918,
11116,
29918,
19795,
2227,
1307,
29918,
14829,
29903,
29897,
13,
4706,
12551,
29918,
10855,
353,
1583,
29889,
9803,
29889,
657,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
13,
4706,
396,
4327,
29991,
9531,
881,
3799,
1363,
2752,
338,
451,
7743,
13,
4706,
4327,
353,
3831,
488,
1123,
17836,
13372,
29898,
1311,
29889,
2917,
29892,
1583,
29889,
9803,
29892,
12551,
29918,
10855,
29897,
13,
4706,
4327,
29889,
5014,
580,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29900,
1275,
1121,
29889,
798,
2798,
13,
13,
4706,
396,
4485,
2752,
4333,
408,
7743,
13,
4706,
1583,
29889,
9803,
29889,
3502,
29918,
10855,
29918,
8899,
29918,
15091,
29898,
4993,
29918,
10855,
29918,
333,
29897,
13,
13,
4706,
396,
4327,
29991,
910,
881,
437,
278,
664,
29889,
13,
4706,
4327,
353,
3831,
488,
1123,
17836,
13372,
29898,
1311,
29889,
2917,
29892,
1583,
29889,
9803,
29892,
12551,
29918,
10855,
29897,
13,
4706,
4327,
29889,
5014,
580,
13,
13,
4706,
736,
2752,
29918,
10855,
29918,
333,
29892,
2752,
29918,
10855,
29892,
12551,
29918,
10855,
29918,
333,
29892,
12551,
29918,
10855,
13,
13,
1678,
822,
1243,
29918,
2388,
2356,
29918,
14096,
29898,
1311,
1125,
13,
13,
4706,
2752,
29918,
10855,
29918,
333,
29892,
2752,
29918,
10855,
29892,
12551,
29918,
10855,
29918,
333,
29892,
12551,
29918,
10855,
353,
320,
13,
9651,
1583,
3032,
14669,
29918,
29027,
29918,
392,
29918,
1272,
29918,
3389,
29918,
9067,
877,
11249,
29918,
29896,
29918,
29896,
29918,
11651,
29889,
3126,
1495,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29889,
798,
2798,
13,
13,
9651,
396,
5399,
263,
7303,
310,
4235,
925,
304,
9753,
537,
1423,
372,
29915,
29879,
278,
13126,
6507,
297,
278,
2407,
1591,
13,
9651,
396,
7311,
27474,
526,
9024,
29892,
278,
871,
982,
304,
679,
848,
338,
304,
2125,
278,
13126,
6507,
13,
9651,
13126,
29918,
14096,
353,
1121,
29889,
9155,
650,
580,
13,
9651,
848,
353,
1583,
29889,
9803,
29889,
657,
29918,
1272,
29898,
2388,
2356,
29918,
14096,
1839,
1272,
29918,
333,
11287,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29899,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
333,
1495,
13,
9651,
4974,
525,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
1256,
1495,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29915,
1275,
848,
29889,
657,
877,
542,
333,
1495,
13,
13,
9651,
396,
5399,
18116,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
29962,
2144,
13,
18884,
869,
3062,
29898,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
29889,
29883,
29889,
333,
1275,
13126,
29918,
14096,
1839,
10855,
29918,
1445,
29918,
667,
29918,
333,
11287,
13,
9651,
1121,
29918,
1445,
29918,
667,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29918,
1445,
29918,
667,
29889,
798,
2798,
13,
9651,
4333,
29918,
1445,
29918,
667,
353,
1121,
29918,
1445,
29918,
667,
29889,
9155,
650,
580,
13,
9651,
4974,
4333,
29918,
1445,
29918,
667,
29889,
25442,
886,
1275,
518,
13,
18884,
525,
4013,
2307,
750,
263,
13126,
19729,
297,
278,
2407,
29991,
739,
471,
4502,
1549,
445,
4327,
443,
15033,
29889,
742,
13,
9651,
4514,
13,
13,
4706,
396,
5399,
4333,
11486,
13,
4706,
11486,
353,
1583,
29889,
9803,
29889,
657,
29918,
497,
29918,
16953,
29918,
262,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
7431,
29898,
16953,
29897,
1275,
29871,
29900,
13,
13,
4706,
396,
4327,
1449,
29991,
910,
881,
367,
2691,
13,
4706,
4327,
353,
3831,
488,
1123,
17836,
13372,
29898,
1311,
29889,
2917,
29892,
1583,
29889,
9803,
29892,
12551,
29918,
10855,
29897,
13,
4706,
4327,
29889,
5014,
580,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29889,
798,
2798,
13,
13,
4706,
396,
12551,
4333,
881,
367,
5764,
13,
4706,
12551,
29918,
10855,
353,
1583,
29889,
9803,
29889,
657,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
12551,
29918,
10855,
29889,
8899,
29918,
355,
29918,
271,
338,
451,
6213,
13,
13,
1678,
822,
1243,
29918,
1217,
29918,
2388,
2356,
29918,
14096,
29918,
2324,
287,
29918,
3757,
4339,
29918,
578,
29918,
29883,
424,
29918,
1867,
29918,
1384,
1918,
29898,
1311,
1125,
13,
13,
4706,
2752,
29918,
10855,
29918,
333,
29892,
2752,
29918,
10855,
29892,
12551,
29918,
10855,
29918,
333,
29892,
12551,
29918,
10855,
353,
320,
13,
9651,
1583,
3032,
14669,
29918,
29027,
29918,
392,
29918,
1272,
29918,
3389,
29918,
9067,
877,
11249,
29918,
29896,
29918,
29896,
29918,
11651,
29918,
2324,
287,
29918,
276,
17836,
29918,
1333,
29918,
2388,
2356,
29889,
3126,
1495,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29900,
1275,
1121,
29889,
798,
2798,
13,
13,
4706,
396,
5399,
4333,
11486,
13,
4706,
11486,
353,
1583,
29889,
9803,
29889,
657,
29918,
497,
29918,
16953,
29918,
262,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
7431,
29898,
16953,
29897,
1275,
29871,
29896,
13,
4706,
4974,
525,
20166,
1367,
288,
2252,
29879,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
1033,
451,
367,
13126,
1363,
472,
3203,
697,
6507,
297,
278,
27474,
525,
17501,
13,
1669,
525,
2378,
338,
263,
9024,
6507,
470,
727,
526,
694,
27474,
411,
10116,
29892,
525,
17501,
13,
1669,
525,
392,
278,
2407,
756,
9561,
263,
6633,
19729,
3643,
263,
6507,
411,
263,
4055,
310,
376,
2388,
2356,
1642,
29915,
1275,
320,
13,
1669,
11486,
29961,
29900,
1822,
6812,
13,
13,
1678,
822,
1243,
29918,
9067,
29918,
2388,
5475,
29898,
1311,
1125,
13,
4706,
396,
910,
848,
2066,
756,
2989,
27474,
322,
3078,
1683,
29892,
577,
278,
4327,
881,
6633,
3528,
773,
288,
2252,
29879,
14634,
13,
13,
4706,
2752,
29918,
10855,
29918,
333,
29892,
2752,
29918,
10855,
29892,
12551,
29918,
10855,
29918,
333,
29892,
12551,
29918,
10855,
353,
320,
13,
9651,
1583,
3032,
14669,
29918,
29027,
29918,
392,
29918,
1272,
29918,
3389,
29918,
9067,
877,
11249,
29918,
29896,
29918,
29896,
29918,
11651,
29918,
276,
17836,
29918,
1333,
29918,
2388,
2356,
29889,
3126,
1495,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29889,
798,
2798,
13,
13,
9651,
396,
5399,
263,
7303,
310,
4235,
925,
304,
9753,
537,
1423,
591,
29915,
345,
13126,
1554,
1244,
29889,
13,
9651,
396,
450,
871,
982,
372,
1033,
679,
848,
1244,
338,
565,
372,
13126,
372,
3528,
29889,
13,
9651,
13126,
29918,
14096,
353,
1121,
29889,
9155,
650,
580,
13,
9651,
848,
353,
1583,
29889,
9803,
29889,
657,
29918,
1272,
29898,
2388,
2356,
29918,
14096,
1839,
1272,
29918,
333,
11287,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29899,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
333,
1495,
13,
9651,
4974,
525,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
1256,
1495,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29915,
1275,
848,
29889,
657,
877,
542,
333,
1495,
13,
13,
9651,
396,
5399,
18116,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
29962,
2144,
13,
18884,
869,
3062,
29898,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
29889,
29883,
29889,
333,
1275,
13126,
29918,
14096,
1839,
10855,
29918,
1445,
29918,
667,
29918,
333,
11287,
13,
9651,
1121,
29918,
1445,
29918,
667,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29918,
1445,
29918,
667,
29889,
798,
2798,
13,
9651,
4333,
29918,
1445,
29918,
667,
353,
1121,
29918,
1445,
29918,
667,
29889,
9155,
650,
580,
13,
9651,
4974,
4333,
29918,
1445,
29918,
667,
29889,
25442,
886,
338,
6213,
13,
13,
4706,
396,
5399,
4333,
11486,
13,
4706,
11486,
353,
1583,
29889,
9803,
29889,
657,
29918,
497,
29918,
16953,
29918,
262,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
7431,
29898,
16953,
29897,
1275,
29871,
29900,
13,
13,
4706,
396,
4327,
1449,
29991,
910,
881,
367,
2691,
13,
4706,
4327,
353,
3831,
488,
1123,
17836,
13372,
29898,
1311,
29889,
2917,
29892,
1583,
29889,
9803,
29892,
12551,
29918,
10855,
29897,
13,
4706,
4327,
29889,
5014,
580,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29889,
798,
2798,
13,
13,
4706,
396,
12551,
4333,
881,
367,
5764,
13,
4706,
12551,
29918,
10855,
353,
1583,
29889,
9803,
29889,
657,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
12551,
29918,
10855,
29889,
8899,
29918,
355,
29918,
271,
338,
451,
6213,
13,
13,
1678,
822,
1243,
29918,
10184,
29918,
3757,
4339,
29918,
17642,
29918,
542,
333,
29898,
1311,
1125,
13,
4706,
2752,
29918,
10855,
29918,
333,
29892,
2752,
29918,
10855,
29892,
12551,
29918,
10855,
29918,
333,
29892,
12551,
29918,
10855,
353,
320,
13,
9651,
1583,
3032,
14669,
29918,
29027,
29918,
392,
29918,
1272,
29918,
3389,
29918,
9067,
29898,
13,
18884,
525,
11249,
29918,
29896,
29918,
29896,
29918,
11651,
29918,
276,
17836,
29918,
1333,
29918,
2388,
2356,
29889,
3126,
742,
13,
18884,
2254,
29918,
29874,
29918,
7496,
29918,
2230,
29922,
5574,
13,
9651,
1723,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29889,
798,
2798,
13,
13,
9651,
396,
5399,
263,
7303,
310,
4235,
925,
304,
9753,
537,
1423,
372,
29915,
29879,
278,
13126,
6507,
297,
278,
2407,
1591,
13,
9651,
396,
7311,
27474,
526,
9024,
29892,
278,
871,
982,
304,
679,
848,
338,
304,
2125,
278,
13126,
6507,
13,
9651,
13126,
29918,
14096,
353,
1121,
29889,
9155,
650,
580,
13,
9651,
848,
353,
1583,
29889,
9803,
29889,
657,
29918,
1272,
29898,
2388,
2356,
29918,
14096,
1839,
1272,
29918,
333,
11287,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29899,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
333,
1495,
13,
9651,
4974,
525,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
1256,
1495,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29915,
1275,
848,
29889,
657,
877,
542,
333,
1495,
13,
13,
9651,
396,
5399,
18116,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
2314,
320,
13,
18884,
869,
3062,
29898,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
29889,
29883,
29889,
333,
1275,
13126,
29918,
14096,
1839,
10855,
29918,
1445,
29918,
667,
29918,
333,
11287,
13,
9651,
1121,
29918,
1445,
29918,
667,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29918,
1445,
29918,
667,
29889,
798,
2798,
13,
9651,
4333,
29918,
1445,
29918,
667,
353,
1121,
29918,
1445,
29918,
667,
29889,
9155,
650,
580,
13,
9651,
4974,
4333,
29918,
1445,
29918,
667,
29889,
25442,
886,
1275,
518,
13,
18884,
525,
8439,
526,
2999,
6475,
363,
445,
438,
29907,
1367,
29991,
450,
2407,
304,
1209,
1549,
471,
4629,
9727,
6275,
29889,
742,
13,
9651,
4514,
13,
13,
4706,
396,
5399,
4333,
11486,
13,
4706,
11486,
353,
1583,
29889,
9803,
29889,
657,
29918,
497,
29918,
16953,
29918,
262,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
7431,
29898,
16953,
29897,
1275,
29871,
29900,
13,
13,
4706,
396,
4327,
1449,
29991,
910,
881,
367,
2691,
13,
4706,
4327,
353,
3831,
488,
1123,
17836,
13372,
29898,
1311,
29889,
2917,
29892,
1583,
29889,
9803,
29892,
12551,
29918,
10855,
29897,
13,
4706,
4327,
29889,
5014,
580,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29889,
798,
2798,
13,
13,
4706,
396,
12551,
4333,
881,
367,
5764,
13,
4706,
12551,
29918,
10855,
353,
1583,
29889,
9803,
29889,
657,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
12551,
29918,
10855,
29889,
8899,
29918,
355,
29918,
271,
338,
451,
6213,
13,
13,
1678,
822,
1243,
29918,
1217,
29918,
15190,
29898,
1311,
1125,
13,
13,
4706,
2752,
29918,
10855,
29918,
333,
29892,
2752,
29918,
10855,
29892,
12551,
29918,
10855,
29918,
333,
29892,
12551,
29918,
10855,
353,
320,
13,
9651,
1583,
3032,
14669,
29918,
29027,
29918,
392,
29918,
1272,
29918,
3389,
29918,
9067,
877,
11249,
29918,
29896,
29918,
29896,
29918,
11651,
29918,
276,
17836,
29918,
1333,
29918,
2388,
2356,
29918,
1217,
29918,
15190,
29889,
3126,
1495,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29900,
1275,
1121,
29889,
798,
2798,
13,
13,
4706,
396,
5399,
4333,
11486,
13,
4706,
11486,
353,
1583,
29889,
9803,
29889,
657,
29918,
497,
29918,
16953,
29918,
262,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
7431,
29898,
16953,
29897,
1275,
29871,
29896,
13,
4706,
4974,
525,
20166,
1367,
288,
2252,
29879,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
1033,
451,
367,
13126,
525,
17501,
13,
1669,
525,
18103,
472,
3203,
697,
6507,
297,
278,
27474,
1409,
338,
263,
525,
17501,
13,
1669,
525,
2324,
287,
6507,
470,
727,
526,
694,
27474,
411,
10116,
29892,
525,
17501,
13,
1669,
525,
392,
278,
2407,
756,
9561,
263,
6633,
19729,
3643,
263,
6507,
411,
263,
4055,
310,
376,
2388,
2356,
1642,
29915,
1275,
320,
13,
1669,
11486,
29961,
29900,
1822,
6812,
13,
13,
1678,
822,
1243,
29918,
5372,
29918,
15190,
29898,
1311,
1125,
13,
13,
4706,
2752,
29918,
10855,
29918,
333,
29892,
2752,
29918,
10855,
29892,
12551,
29918,
10855,
29918,
333,
29892,
12551,
29918,
10855,
353,
320,
13,
9651,
1583,
3032,
14669,
29918,
29027,
29918,
392,
29918,
1272,
29918,
3389,
29918,
9067,
877,
11249,
29918,
29896,
29918,
29896,
29918,
11651,
29918,
276,
17836,
29918,
1333,
29918,
2388,
2356,
29918,
5372,
29918,
15190,
29889,
3126,
1495,
13,
13,
4706,
396,
1423,
13,
4706,
411,
1583,
29889,
9803,
29889,
657,
29918,
10599,
2141,
463,
580,
408,
3957,
29901,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
2388,
2356,
29918,
14096,
29918,
2371,
2314,
13,
9651,
1121,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29889,
798,
2798,
13,
13,
9651,
396,
5399,
263,
7303,
310,
4235,
925,
304,
9753,
537,
1423,
372,
29915,
29879,
278,
13126,
6507,
297,
278,
2407,
1591,
13,
9651,
396,
7311,
27474,
526,
9024,
29892,
278,
871,
982,
304,
679,
848,
338,
304,
2125,
278,
13126,
6507,
13,
9651,
13126,
29918,
14096,
353,
1121,
29889,
9155,
650,
580,
13,
9651,
848,
353,
1583,
29889,
9803,
29889,
657,
29918,
1272,
29898,
2388,
2356,
29918,
14096,
1839,
1272,
29918,
333,
11287,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29899,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
333,
1495,
13,
9651,
4974,
525,
29906,
29900,
29896,
29896,
29899,
29900,
29896,
29899,
29896,
29900,
29911,
29900,
29929,
29901,
29941,
29900,
29901,
29900,
29900,
29999,
29915,
1275,
848,
29889,
657,
877,
1256,
1495,
13,
9651,
4974,
525,
542,
6289,
29899,
29906,
29896,
29941,
2067,
29888,
29899,
29900,
29900,
29900,
29899,
29900,
29900,
29900,
29900,
29896,
29915,
1275,
848,
29889,
657,
877,
542,
333,
1495,
13,
13,
9651,
396,
5399,
18116,
13,
9651,
269,
353,
872,
29889,
2850,
29889,
2622,
4197,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
2314,
320,
13,
18884,
869,
3062,
29898,
1311,
29889,
9803,
29889,
10855,
29918,
1445,
29918,
667,
29918,
2371,
29889,
29883,
29889,
333,
1275,
13126,
29918,
14096,
1839,
10855,
29918,
1445,
29918,
667,
29918,
333,
11287,
13,
9651,
1121,
29918,
1445,
29918,
667,
353,
3957,
29889,
7978,
29898,
29879,
29897,
13,
9651,
4974,
29871,
29896,
1275,
1121,
29918,
1445,
29918,
667,
29889,
798,
2798,
13,
9651,
4333,
29918,
1445,
29918,
667,
353,
1121,
29918,
1445,
29918,
667,
29889,
9155,
650,
580,
13,
9651,
4974,
4333,
29918,
1445,
29918,
667,
29889,
25442,
886,
1275,
518,
13,
18884,
525,
4013,
438,
29907,
1367,
750,
777,
27474,
1728,
263,
2635,
1543,
29889,
1334,
505,
13126,
599,
916,
27474,
29889,
2033,
13,
13,
4706,
396,
5399,
4333,
11486,
13,
4706,
11486,
353,
1583,
29889,
9803,
29889,
657,
29918,
497,
29918,
16953,
29918,
262,
29918,
10855,
29898,
23848,
29918,
10855,
29918,
333,
29897,
13,
4706,
4974,
7431,
29898,
16953,
29897,
1275,
29871,
29900,
13,
2
] |
grAdapt/sampling/equidistributed/Mitchell.py | mkduong-ai/grAdapt | 25 | 24506 | # Python Standard Libraries
import warnings
# grAdapt
# from .base import Equidistributed
from .MaximalMinDistance import MaximalMinDistance
class Mitchell(MaximalMinDistance):
"""
[Mitchell et al., 1991],
Spectrally optimal sampling for distribution ray tracing
"""
def __init__(self, m=3):
"""
Parameters
----------
m : integer
number of candidates = m * n
"""
warnings.warn('Mitchell\' best candidate has a time complexity of O(n^3) '
'and memory issues when dealing with higher sample numbers. '
'Use MaximalMinDistance instead which is an improved version '
'with linear time complexity.', ResourceWarning)
super().__init__(n_candidates=m, window_size=0)
self.candidates_set = False
def sample(self, bounds, n, x_history=None):
"""Samples low discrepancy/equidistributed sequences according to Mitchell.
Method has to handle with new bounds and n.
Parameters
----------
bounds : list of tuples or list of grAdapt.space.datatype.base
Each tuple in the list defines the bounds for the corresponding variable
Example: [(1, 2), (2, 3), (-1, 4)...]
n : int
number of points to be sampled
x_history : array-like (2d)
History points. Consider those to prevent sampling in dense regions.
Returns
-------
array-like (n, len(bounds))
Returns a 2D array. dim is the dimension of a single point
Each row corresponds to a single point.
Each column corresponds to a dimension.
"""
if self.candidates_set is False:
self.n_candidates = self.n_candidates * n
self.candidates_set = True
return super().sample(bounds, n, x_history)
| [
1,
396,
5132,
10117,
365,
4626,
4314,
13,
5215,
18116,
13,
13,
29937,
867,
29909,
1388,
415,
13,
29937,
515,
869,
3188,
1053,
11243,
333,
391,
7541,
13,
3166,
869,
7976,
3039,
8140,
27469,
1053,
5918,
3039,
8140,
27469,
13,
13,
13,
1990,
26676,
29898,
7976,
3039,
8140,
27469,
1125,
13,
1678,
9995,
13,
1678,
518,
29924,
2335,
514,
634,
394,
1696,
29871,
29896,
29929,
29929,
29896,
1402,
13,
1678,
27738,
29878,
635,
14413,
23460,
363,
4978,
15570,
16703,
292,
13,
1678,
9995,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
286,
29922,
29941,
1125,
13,
4706,
9995,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
286,
584,
6043,
13,
9651,
1353,
310,
21669,
353,
286,
334,
302,
13,
4706,
9995,
13,
4706,
18116,
29889,
25442,
877,
29924,
2335,
514,
20333,
1900,
14020,
756,
263,
931,
13644,
310,
438,
29898,
29876,
29985,
29941,
29897,
525,
13,
462,
418,
525,
392,
3370,
5626,
746,
16743,
411,
6133,
4559,
3694,
29889,
525,
13,
462,
418,
525,
11403,
5918,
3039,
8140,
27469,
2012,
607,
338,
385,
16710,
1873,
525,
13,
462,
418,
525,
2541,
5608,
931,
13644,
29889,
742,
18981,
22709,
29897,
13,
4706,
2428,
2141,
1649,
2344,
12035,
29876,
29918,
29883,
5380,
1078,
29922,
29885,
29892,
3474,
29918,
2311,
29922,
29900,
29897,
13,
4706,
1583,
29889,
29883,
5380,
1078,
29918,
842,
353,
7700,
13,
13,
1678,
822,
4559,
29898,
1311,
29892,
13451,
29892,
302,
29892,
921,
29918,
18434,
29922,
8516,
1125,
13,
4706,
9995,
29903,
9422,
4482,
766,
1037,
29886,
6906,
29914,
1686,
333,
391,
7541,
15602,
5034,
304,
26676,
29889,
13,
4706,
8108,
756,
304,
4386,
411,
716,
13451,
322,
302,
29889,
13,
13,
4706,
12662,
2699,
13,
4706,
448,
1378,
29899,
13,
4706,
13451,
584,
1051,
310,
5291,
2701,
470,
1051,
310,
867,
29909,
1388,
415,
29889,
3493,
29889,
4130,
23179,
29889,
3188,
13,
9651,
7806,
18761,
297,
278,
1051,
17645,
278,
13451,
363,
278,
6590,
2286,
13,
9651,
8741,
29901,
17288,
29896,
29892,
29871,
29906,
511,
313,
29906,
29892,
29871,
29941,
511,
8521,
29896,
29892,
29871,
29946,
467,
636,
29962,
13,
4706,
302,
584,
938,
13,
9651,
1353,
310,
3291,
304,
367,
4559,
29881,
13,
4706,
921,
29918,
18434,
584,
1409,
29899,
4561,
313,
29906,
29881,
29897,
13,
9651,
5298,
3291,
29889,
10056,
1906,
304,
5557,
23460,
297,
20619,
12786,
29889,
13,
13,
4706,
16969,
13,
4706,
448,
22158,
13,
4706,
1409,
29899,
4561,
313,
29876,
29892,
7431,
29898,
23687,
876,
13,
9651,
16969,
263,
29871,
29906,
29928,
1409,
29889,
3964,
338,
278,
9927,
310,
263,
2323,
1298,
13,
9651,
7806,
1948,
16161,
304,
263,
2323,
1298,
29889,
13,
9651,
7806,
1897,
16161,
304,
263,
9927,
29889,
13,
4706,
9995,
13,
4706,
565,
1583,
29889,
29883,
5380,
1078,
29918,
842,
338,
7700,
29901,
13,
9651,
1583,
29889,
29876,
29918,
29883,
5380,
1078,
353,
1583,
29889,
29876,
29918,
29883,
5380,
1078,
334,
302,
13,
9651,
1583,
29889,
29883,
5380,
1078,
29918,
842,
353,
5852,
13,
4706,
736,
2428,
2141,
11249,
29898,
23687,
29892,
302,
29892,
921,
29918,
18434,
29897,
13,
2
] |
cubedash/_product.py | vconrado/datacube-explorer | 0 | 3561 | <reponame>vconrado/datacube-explorer
import logging
from datetime import timedelta
from flask import Blueprint, Response, abort, redirect, url_for
from cubedash import _model, _utils, _utils as utils
_LOG = logging.getLogger(__name__)
bp = Blueprint("product", __name__)
@bp.route("/about.csv")
def legacy_about_csv():
return redirect(".storage_csv")
@bp.route("/audit/storage.csv")
def storage_csv():
"""Get the product storage table as a CSV"""
product_locations = _model.STORE.products_location_samples_all()
return utils.as_csv(
filename_prefix="product-information",
headers=(
"name",
"count",
"locations",
"license",
"definition",
"summary_time",
"metadata_type",
),
rows=(
(
product.name,
summary.dataset_count,
[
location.common_prefix
for location in (product_locations.get(product.name) or [])
],
_utils.product_license(product),
url_for("product.raw_product_doc", name=product.name, _external=True),
summary.last_refresh_time,
product.metadata_type.name,
)
for product, summary in _model.get_products_with_summaries()
),
)
@bp.route("/products.txt")
def product_list_text():
# This is useful for bash scripts when we want to loop products :)
return Response(
"\n".join(t.name for t in _model.STORE.all_dataset_types()),
content_type="text/plain",
)
@bp.route("/metadata-types.txt")
def metadata_type_list_text():
# This is useful for bash scripts when we want to loop them :)
return Response(
"\n".join(t.name for t in _model.STORE.all_metadata_types()),
content_type="text/plain",
)
@bp.route("/audit/storage")
def storage_page():
product_locations = _model.STORE.products_location_samples_all()
return utils.render(
"storage.html",
product_summary_and_location=[
(product, summary, (product_locations.get(product.name) or []))
for product, summary in _model.get_products_with_summaries()
],
)
@bp.route("/product")
def product_redirect():
"""
If people remove the name from a "/product/<name>" url, take them somewhere useful
"""
return redirect(url_for(".products_page"))
@bp.route("/products")
def products_page():
return utils.render(
"products.html",
)
@bp.route("/metadata-types")
def metadata_types_page():
return utils.render(
"metadata-types.html",
)
@bp.route("/product/<name>.odc-product.yaml")
def legacy_raw_product_doc(name):
return redirect(url_for(".raw_product_doc", name=name))
@bp.route("/products/<name>.odc-product.yaml")
def raw_product_doc(name):
product = _model.STORE.index.products.get_by_name(name)
if not product:
abort(404, f"Unknown product {name!r}")
ordered_metadata = utils.prepare_document_formatting(
product.definition, "Product", include_source_url=True
)
return utils.as_yaml(ordered_metadata)
@bp.route("/metadata-type/<name>")
def legacy_metadata_type_page(name):
return redirect(url_for(".metadata_type_page", name=name))
@bp.route("/metadata-types/<name>")
def metadata_type_page(name):
metadata_type = _model.STORE.index.metadata_types.get_by_name(name)
if not metadata_type:
abort(404, f"Unknown metadata type {name!r}")
ordered_metadata = utils.prepare_document_formatting(metadata_type.definition)
products_using_it = sorted(
(
p
for p in _model.STORE.index.products.get_all()
if p.metadata_type.name == name
),
key=lambda p: p.name,
)
return utils.render(
"metadata-type.html",
metadata_type=metadata_type,
metadata_doc=ordered_metadata,
products_using_it=products_using_it,
)
@bp.route("/metadata-type/<name>.odc-type.yaml")
def legacy_metadata_type_doc(name):
return redirect(url_for(".raw_metadata_type_doc", name=name))
@bp.route("/metadata-types/<name>.odc-type.yaml")
def raw_metadata_type_doc(name):
metadata_type = _model.STORE.index.metadata_types.get_by_name(name)
if not metadata_type:
abort(404, f"Unknown metadata type {name!r}")
ordered_metadata = utils.prepare_document_formatting(
metadata_type.definition, "Metadata Type", include_source_url=True
)
return utils.as_yaml(ordered_metadata)
@bp.route("/products.odc-product.yaml")
def raw_all_products_doc():
resp = utils.as_yaml(
*(
utils.prepare_document_formatting(
product.definition,
f"Product {product.name}",
include_source_url=url_for(
".raw_product_doc", name=product.name, _external=True
),
)
for product in _model.STORE.all_dataset_types()
)
)
# Add Explorer ID to the download filename if they have one.
utils.suggest_download_filename(
resp,
prefix="products",
suffix=".odc-product.yaml",
)
return resp
@bp.route("/metadata-types.odc-type.yaml")
def raw_all_metadata_types_doc():
resp = utils.as_yaml(
*(
utils.prepare_document_formatting(
type_.definition,
f"Metadata Type {type_.name}",
include_source_url=url_for(
".raw_metadata_type_doc", name=type_.name, _external=True
),
)
for type_ in _model.STORE.all_metadata_types()
),
)
# Add Explorer ID to the download filename if they have one.
utils.suggest_download_filename(
resp,
prefix="metadata-types",
suffix=".odc-type.yaml",
)
return resp
def _iso8601_duration(tdelta: timedelta):
"""
Format a timedelta as an iso8601 duration
>>> _iso8601_duration(timedelta(seconds=0))
'PT0S'
>>> _iso8601_duration(timedelta(seconds=1))
'PT1S'
>>> _iso8601_duration(timedelta(seconds=23423))
'PT6H30M23S'
>>> _iso8601_duration(timedelta(seconds=4564564556))
'P52830DT14H35M56S'
"""
all_secs = tdelta.total_seconds()
secs = int(all_secs % 60)
h_m_s = (
int(all_secs // 3600 % 24),
int(all_secs // 60 % 60),
secs if secs % 1 != 0 else int(secs),
)
parts = ["P"]
days = int(all_secs // 86400)
if days:
parts.append(f"{days}D")
if any(h_m_s):
parts.append("T")
if all_secs:
for val, name in zip(h_m_s, ["H", "M", "S"]):
if val:
parts.append(f"{val}{name}")
else:
parts.append("T0S")
return "".join(parts)
| [
1,
529,
276,
1112,
420,
29958,
29894,
535,
26881,
29914,
1272,
29883,
4003,
29899,
735,
14716,
13,
5215,
12183,
13,
3166,
12865,
1053,
5335,
287,
2554,
13,
13,
3166,
29784,
1053,
10924,
2158,
29892,
13291,
29892,
27450,
29892,
6684,
29892,
3142,
29918,
1454,
13,
13,
3166,
13630,
287,
1161,
1053,
903,
4299,
29892,
903,
13239,
29892,
903,
13239,
408,
3667,
29879,
13,
13,
29918,
14480,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
25288,
353,
10924,
2158,
703,
4704,
613,
4770,
978,
1649,
29897,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
12717,
29889,
7638,
1159,
13,
1753,
25000,
29918,
12717,
29918,
7638,
7295,
13,
1678,
736,
6684,
17350,
12925,
29918,
7638,
1159,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
15052,
277,
29914,
12925,
29889,
7638,
1159,
13,
1753,
8635,
29918,
7638,
7295,
13,
1678,
9995,
2577,
278,
3234,
8635,
1591,
408,
263,
16874,
15945,
29908,
13,
13,
1678,
3234,
29918,
2029,
800,
353,
903,
4299,
29889,
1254,
29949,
1525,
29889,
14456,
29918,
5479,
29918,
27736,
29918,
497,
580,
13,
1678,
736,
3667,
29879,
29889,
294,
29918,
7638,
29898,
13,
4706,
10422,
29918,
13506,
543,
4704,
29899,
19678,
613,
13,
4706,
9066,
7607,
13,
9651,
376,
978,
613,
13,
9651,
376,
2798,
613,
13,
9651,
376,
2029,
800,
613,
13,
9651,
376,
506,
1947,
613,
13,
9651,
376,
16553,
613,
13,
9651,
376,
7727,
29918,
2230,
613,
13,
9651,
376,
19635,
29918,
1853,
613,
13,
4706,
10353,
13,
4706,
4206,
7607,
13,
9651,
313,
13,
18884,
3234,
29889,
978,
29892,
13,
18884,
15837,
29889,
24713,
29918,
2798,
29892,
13,
18884,
518,
13,
462,
1678,
4423,
29889,
9435,
29918,
13506,
13,
462,
1678,
363,
4423,
297,
313,
4704,
29918,
2029,
800,
29889,
657,
29898,
4704,
29889,
978,
29897,
470,
518,
2314,
13,
18884,
21251,
13,
18884,
903,
13239,
29889,
4704,
29918,
506,
1947,
29898,
4704,
511,
13,
18884,
3142,
29918,
1454,
703,
4704,
29889,
1610,
29918,
4704,
29918,
1514,
613,
1024,
29922,
4704,
29889,
978,
29892,
903,
23176,
29922,
5574,
511,
13,
18884,
15837,
29889,
4230,
29918,
22379,
29918,
2230,
29892,
13,
18884,
3234,
29889,
19635,
29918,
1853,
29889,
978,
29892,
13,
9651,
1723,
13,
9651,
363,
3234,
29892,
15837,
297,
903,
4299,
29889,
657,
29918,
14456,
29918,
2541,
29918,
2083,
3034,
583,
580,
13,
4706,
10353,
13,
1678,
1723,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
14456,
29889,
3945,
1159,
13,
1753,
3234,
29918,
1761,
29918,
726,
7295,
13,
1678,
396,
910,
338,
5407,
363,
10891,
12078,
746,
591,
864,
304,
2425,
9316,
4248,
13,
1678,
736,
13291,
29898,
13,
4706,
6634,
29876,
1642,
7122,
29898,
29873,
29889,
978,
363,
260,
297,
903,
4299,
29889,
1254,
29949,
1525,
29889,
497,
29918,
24713,
29918,
8768,
25739,
13,
4706,
2793,
29918,
1853,
543,
726,
29914,
24595,
613,
13,
1678,
1723,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
19635,
29899,
8768,
29889,
3945,
1159,
13,
1753,
15562,
29918,
1853,
29918,
1761,
29918,
726,
7295,
13,
1678,
396,
910,
338,
5407,
363,
10891,
12078,
746,
591,
864,
304,
2425,
963,
4248,
13,
1678,
736,
13291,
29898,
13,
4706,
6634,
29876,
1642,
7122,
29898,
29873,
29889,
978,
363,
260,
297,
903,
4299,
29889,
1254,
29949,
1525,
29889,
497,
29918,
19635,
29918,
8768,
25739,
13,
4706,
2793,
29918,
1853,
543,
726,
29914,
24595,
613,
13,
1678,
1723,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
15052,
277,
29914,
12925,
1159,
13,
1753,
8635,
29918,
3488,
7295,
13,
1678,
3234,
29918,
2029,
800,
353,
903,
4299,
29889,
1254,
29949,
1525,
29889,
14456,
29918,
5479,
29918,
27736,
29918,
497,
580,
13,
13,
1678,
736,
3667,
29879,
29889,
9482,
29898,
13,
4706,
376,
12925,
29889,
1420,
613,
13,
4706,
3234,
29918,
7727,
29918,
392,
29918,
5479,
11759,
13,
9651,
313,
4704,
29892,
15837,
29892,
313,
4704,
29918,
2029,
800,
29889,
657,
29898,
4704,
29889,
978,
29897,
470,
5159,
876,
13,
9651,
363,
3234,
29892,
15837,
297,
903,
4299,
29889,
657,
29918,
14456,
29918,
2541,
29918,
2083,
3034,
583,
580,
13,
4706,
21251,
13,
1678,
1723,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
4704,
1159,
13,
1753,
3234,
29918,
17886,
7295,
13,
1678,
9995,
13,
1678,
960,
2305,
3349,
278,
1024,
515,
263,
5591,
4704,
29914,
29966,
978,
11903,
3142,
29892,
2125,
963,
9051,
5407,
13,
1678,
9995,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
17350,
14456,
29918,
3488,
5783,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
14456,
1159,
13,
1753,
9316,
29918,
3488,
7295,
13,
1678,
736,
3667,
29879,
29889,
9482,
29898,
13,
4706,
376,
14456,
29889,
1420,
613,
13,
1678,
1723,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
19635,
29899,
8768,
1159,
13,
1753,
15562,
29918,
8768,
29918,
3488,
7295,
13,
1678,
736,
3667,
29879,
29889,
9482,
29898,
13,
4706,
376,
19635,
29899,
8768,
29889,
1420,
613,
13,
1678,
1723,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
4704,
29914,
29966,
978,
15513,
397,
29883,
29899,
4704,
29889,
25162,
1159,
13,
1753,
25000,
29918,
1610,
29918,
4704,
29918,
1514,
29898,
978,
1125,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
17350,
1610,
29918,
4704,
29918,
1514,
613,
1024,
29922,
978,
876,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
14456,
29914,
29966,
978,
15513,
397,
29883,
29899,
4704,
29889,
25162,
1159,
13,
1753,
10650,
29918,
4704,
29918,
1514,
29898,
978,
1125,
13,
1678,
3234,
353,
903,
4299,
29889,
1254,
29949,
1525,
29889,
2248,
29889,
14456,
29889,
657,
29918,
1609,
29918,
978,
29898,
978,
29897,
13,
1678,
565,
451,
3234,
29901,
13,
4706,
27450,
29898,
29946,
29900,
29946,
29892,
285,
29908,
14148,
3234,
426,
978,
29991,
29878,
27195,
13,
13,
1678,
10372,
29918,
19635,
353,
3667,
29879,
29889,
19125,
29918,
3225,
29918,
689,
23980,
29898,
13,
4706,
3234,
29889,
16553,
29892,
376,
7566,
613,
3160,
29918,
4993,
29918,
2271,
29922,
5574,
13,
1678,
1723,
13,
1678,
736,
3667,
29879,
29889,
294,
29918,
25162,
29898,
21693,
29918,
19635,
29897,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
19635,
29899,
1853,
29914,
29966,
978,
29958,
1159,
13,
1753,
25000,
29918,
19635,
29918,
1853,
29918,
3488,
29898,
978,
1125,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
17350,
19635,
29918,
1853,
29918,
3488,
613,
1024,
29922,
978,
876,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
19635,
29899,
8768,
29914,
29966,
978,
29958,
1159,
13,
1753,
15562,
29918,
1853,
29918,
3488,
29898,
978,
1125,
13,
1678,
15562,
29918,
1853,
353,
903,
4299,
29889,
1254,
29949,
1525,
29889,
2248,
29889,
19635,
29918,
8768,
29889,
657,
29918,
1609,
29918,
978,
29898,
978,
29897,
13,
1678,
565,
451,
15562,
29918,
1853,
29901,
13,
4706,
27450,
29898,
29946,
29900,
29946,
29892,
285,
29908,
14148,
15562,
1134,
426,
978,
29991,
29878,
27195,
13,
1678,
10372,
29918,
19635,
353,
3667,
29879,
29889,
19125,
29918,
3225,
29918,
689,
23980,
29898,
19635,
29918,
1853,
29889,
16553,
29897,
13,
13,
1678,
9316,
29918,
4746,
29918,
277,
353,
12705,
29898,
13,
4706,
313,
13,
9651,
282,
13,
9651,
363,
282,
297,
903,
4299,
29889,
1254,
29949,
1525,
29889,
2248,
29889,
14456,
29889,
657,
29918,
497,
580,
13,
9651,
565,
282,
29889,
19635,
29918,
1853,
29889,
978,
1275,
1024,
13,
4706,
10353,
13,
4706,
1820,
29922,
2892,
282,
29901,
282,
29889,
978,
29892,
13,
1678,
1723,
13,
1678,
736,
3667,
29879,
29889,
9482,
29898,
13,
4706,
376,
19635,
29899,
1853,
29889,
1420,
613,
13,
4706,
15562,
29918,
1853,
29922,
19635,
29918,
1853,
29892,
13,
4706,
15562,
29918,
1514,
29922,
21693,
29918,
19635,
29892,
13,
4706,
9316,
29918,
4746,
29918,
277,
29922,
14456,
29918,
4746,
29918,
277,
29892,
13,
1678,
1723,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
19635,
29899,
1853,
29914,
29966,
978,
15513,
397,
29883,
29899,
1853,
29889,
25162,
1159,
13,
1753,
25000,
29918,
19635,
29918,
1853,
29918,
1514,
29898,
978,
1125,
13,
1678,
736,
6684,
29898,
2271,
29918,
1454,
17350,
1610,
29918,
19635,
29918,
1853,
29918,
1514,
613,
1024,
29922,
978,
876,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
19635,
29899,
8768,
29914,
29966,
978,
15513,
397,
29883,
29899,
1853,
29889,
25162,
1159,
13,
1753,
10650,
29918,
19635,
29918,
1853,
29918,
1514,
29898,
978,
1125,
13,
1678,
15562,
29918,
1853,
353,
903,
4299,
29889,
1254,
29949,
1525,
29889,
2248,
29889,
19635,
29918,
8768,
29889,
657,
29918,
1609,
29918,
978,
29898,
978,
29897,
13,
1678,
565,
451,
15562,
29918,
1853,
29901,
13,
4706,
27450,
29898,
29946,
29900,
29946,
29892,
285,
29908,
14148,
15562,
1134,
426,
978,
29991,
29878,
27195,
13,
1678,
10372,
29918,
19635,
353,
3667,
29879,
29889,
19125,
29918,
3225,
29918,
689,
23980,
29898,
13,
4706,
15562,
29918,
1853,
29889,
16553,
29892,
376,
18417,
5167,
613,
3160,
29918,
4993,
29918,
2271,
29922,
5574,
13,
1678,
1723,
13,
1678,
736,
3667,
29879,
29889,
294,
29918,
25162,
29898,
21693,
29918,
19635,
29897,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
14456,
29889,
397,
29883,
29899,
4704,
29889,
25162,
1159,
13,
1753,
10650,
29918,
497,
29918,
14456,
29918,
1514,
7295,
13,
1678,
4613,
353,
3667,
29879,
29889,
294,
29918,
25162,
29898,
13,
4706,
334,
29898,
13,
9651,
3667,
29879,
29889,
19125,
29918,
3225,
29918,
689,
23980,
29898,
13,
18884,
3234,
29889,
16553,
29892,
13,
18884,
285,
29908,
7566,
426,
4704,
29889,
978,
17671,
13,
18884,
3160,
29918,
4993,
29918,
2271,
29922,
2271,
29918,
1454,
29898,
13,
462,
1678,
11393,
1610,
29918,
4704,
29918,
1514,
613,
1024,
29922,
4704,
29889,
978,
29892,
903,
23176,
29922,
5574,
13,
18884,
10353,
13,
9651,
1723,
13,
9651,
363,
3234,
297,
903,
4299,
29889,
1254,
29949,
1525,
29889,
497,
29918,
24713,
29918,
8768,
580,
13,
4706,
1723,
13,
1678,
1723,
13,
1678,
396,
3462,
21508,
3553,
304,
278,
5142,
10422,
565,
896,
505,
697,
29889,
13,
1678,
3667,
29879,
29889,
29879,
688,
7118,
29918,
10382,
29918,
9507,
29898,
13,
4706,
4613,
29892,
13,
4706,
10944,
543,
14456,
613,
13,
4706,
25557,
29569,
397,
29883,
29899,
4704,
29889,
25162,
613,
13,
1678,
1723,
13,
13,
1678,
736,
4613,
13,
13,
13,
29992,
25288,
29889,
13134,
11974,
19635,
29899,
8768,
29889,
397,
29883,
29899,
1853,
29889,
25162,
1159,
13,
1753,
10650,
29918,
497,
29918,
19635,
29918,
8768,
29918,
1514,
7295,
13,
1678,
4613,
353,
3667,
29879,
29889,
294,
29918,
25162,
29898,
13,
4706,
334,
29898,
13,
9651,
3667,
29879,
29889,
19125,
29918,
3225,
29918,
689,
23980,
29898,
13,
18884,
1134,
5396,
16553,
29892,
13,
18884,
285,
29908,
18417,
5167,
426,
1853,
5396,
978,
17671,
13,
18884,
3160,
29918,
4993,
29918,
2271,
29922,
2271,
29918,
1454,
29898,
13,
462,
1678,
11393,
1610,
29918,
19635,
29918,
1853,
29918,
1514,
613,
1024,
29922,
1853,
5396,
978,
29892,
903,
23176,
29922,
5574,
13,
18884,
10353,
13,
9651,
1723,
13,
9651,
363,
1134,
29918,
297,
903,
4299,
29889,
1254,
29949,
1525,
29889,
497,
29918,
19635,
29918,
8768,
580,
13,
4706,
10353,
13,
1678,
1723,
13,
1678,
396,
3462,
21508,
3553,
304,
278,
5142,
10422,
565,
896,
505,
697,
29889,
13,
1678,
3667,
29879,
29889,
29879,
688,
7118,
29918,
10382,
29918,
9507,
29898,
13,
4706,
4613,
29892,
13,
4706,
10944,
543,
19635,
29899,
8768,
613,
13,
4706,
25557,
29569,
397,
29883,
29899,
1853,
29889,
25162,
613,
13,
1678,
1723,
13,
1678,
736,
4613,
13,
13,
13,
1753,
903,
10718,
29947,
29953,
29900,
29896,
29918,
19708,
29898,
1594,
2554,
29901,
5335,
287,
2554,
1125,
13,
1678,
9995,
13,
1678,
19191,
263,
5335,
287,
2554,
408,
385,
338,
29877,
29947,
29953,
29900,
29896,
14385,
13,
13,
1678,
8653,
903,
10718,
29947,
29953,
29900,
29896,
29918,
19708,
29898,
9346,
287,
2554,
29898,
23128,
29922,
29900,
876,
13,
1678,
525,
7982,
29900,
29903,
29915,
13,
1678,
8653,
903,
10718,
29947,
29953,
29900,
29896,
29918,
19708,
29898,
9346,
287,
2554,
29898,
23128,
29922,
29896,
876,
13,
1678,
525,
7982,
29896,
29903,
29915,
13,
1678,
8653,
903,
10718,
29947,
29953,
29900,
29896,
29918,
19708,
29898,
9346,
287,
2554,
29898,
23128,
29922,
29906,
29941,
29946,
29906,
29941,
876,
13,
1678,
525,
7982,
29953,
29950,
29941,
29900,
29924,
29906,
29941,
29903,
29915,
13,
1678,
8653,
903,
10718,
29947,
29953,
29900,
29896,
29918,
19708,
29898,
9346,
287,
2554,
29898,
23128,
29922,
29946,
29945,
29953,
29946,
29945,
29953,
29946,
29945,
29945,
29953,
876,
13,
1678,
525,
29925,
29945,
29906,
29947,
29941,
29900,
12972,
29896,
29946,
29950,
29941,
29945,
29924,
29945,
29953,
29903,
29915,
13,
1678,
9995,
13,
1678,
599,
29918,
344,
2395,
353,
260,
4181,
29889,
7827,
29918,
23128,
580,
13,
13,
1678,
409,
2395,
353,
938,
29898,
497,
29918,
344,
2395,
1273,
29871,
29953,
29900,
29897,
13,
1678,
298,
29918,
29885,
29918,
29879,
353,
313,
13,
4706,
938,
29898,
497,
29918,
344,
2395,
849,
29871,
29941,
29953,
29900,
29900,
1273,
29871,
29906,
29946,
511,
13,
4706,
938,
29898,
497,
29918,
344,
2395,
849,
29871,
29953,
29900,
1273,
29871,
29953,
29900,
511,
13,
4706,
409,
2395,
565,
409,
2395,
1273,
29871,
29896,
2804,
29871,
29900,
1683,
938,
29898,
344,
2395,
511,
13,
1678,
1723,
13,
13,
1678,
5633,
353,
6796,
29925,
3108,
13,
13,
1678,
3841,
353,
938,
29898,
497,
29918,
344,
2395,
849,
29871,
29947,
29953,
29946,
29900,
29900,
29897,
13,
1678,
565,
3841,
29901,
13,
4706,
5633,
29889,
4397,
29898,
29888,
29908,
29912,
16700,
29913,
29928,
1159,
13,
1678,
565,
738,
29898,
29882,
29918,
29885,
29918,
29879,
1125,
13,
4706,
5633,
29889,
4397,
703,
29911,
1159,
13,
1678,
565,
599,
29918,
344,
2395,
29901,
13,
4706,
363,
659,
29892,
1024,
297,
14319,
29898,
29882,
29918,
29885,
29918,
29879,
29892,
6796,
29950,
613,
376,
29924,
613,
376,
29903,
3108,
1125,
13,
9651,
565,
659,
29901,
13,
18884,
5633,
29889,
4397,
29898,
29888,
29908,
29912,
791,
1157,
978,
27195,
13,
1678,
1683,
29901,
13,
4706,
5633,
29889,
4397,
703,
29911,
29900,
29903,
1159,
13,
13,
1678,
736,
376,
1642,
7122,
29898,
20895,
29897,
13,
2
] |
model.py | melorian94/minerl_imitation_learning | 18 | 166230 | import torch
from torch import nn
from torch.nn import functional as F
import math
class Network(nn.Module):
def __init__(self, num_actions, image_channels, vec_size, cnn_module, hidden_size=256,
dueling=True, double_channels=False):
super().__init__()
self.num_actions = num_actions
self.dueling = dueling
self.cnn = cnn_module(image_channels)
self.conv_output_size = self.cnn.output_size
self.fc_im = nn.Linear(self.conv_output_size, hidden_size)
if not double_channels:
vec_channel_size = 128
else:
vec_channel_size = 256
self.fc_vec = nn.Linear(vec_size, vec_channel_size)
self.fc_h_a = nn.Linear(hidden_size + vec_channel_size, hidden_size)
self.fc_a = nn.Linear(hidden_size, num_actions)
if self.dueling:
self.fc_h_v = nn.Linear(hidden_size + vec_channel_size, hidden_size)
self.fc_v = nn.Linear(hidden_size, 1)
def forward(self, x, vec):
x = self.cnn(x)
x = x.view(-1, self.conv_output_size)
x = self.fc_im(x)
vec = self.fc_vec(vec)
x = F.relu(torch.cat((x, vec), 1))
output = self.fc_a(F.relu(self.fc_h_a(x)))
if self.dueling:
v = self.fc_v(F.relu(self.fc_h_v(x)))
output = v + output - output.mean(1, keepdim=True)
return output
class AtariCNN(nn.Module):
def __init__(self, input_channels):
super().__init__()
self.conv_layers = nn.Sequential(nn.Conv2d(input_channels, 32, 8, stride=4, padding=0),
nn.ReLU(),
nn.Conv2d(32, 64, 4, stride=2, padding=0),
nn.ReLU(),
nn.Conv2d(64, 64, 3, stride=1, padding=0),
nn.ReLU())
self.output_size = 64 * 4 * 4
def forward(self, x):
return self.conv_layers(x)
class ImpalaResNetCNN(nn.Module):
class _ImpalaResidual(nn.Module):
def __init__(self, depth):
super().__init__()
self.conv1 = nn.Conv2d(depth, depth, 3, padding=1)
self.conv2 = nn.Conv2d(depth, depth, 3, padding=1)
def forward(self, x):
out = F.relu(x)
out = self.conv1(out)
out = F.relu(out)
out = self.conv2(out)
return out + x
def __init__(self, input_channels):
super().__init__()
depth_in = input_channels
layers = []
for depth_out in [32, 64, 64]:
layers.extend([
nn.Conv2d(depth_in, depth_out, 3, padding=1),
nn.MaxPool2d(3, stride=2, padding=1),
self._ImpalaResidual(depth_out),
self._ImpalaResidual(depth_out),
])
depth_in = depth_out
self.conv_layers = nn.Sequential(*layers, nn.ReLU())
self.output_size = math.ceil(64 / 8) ** 2 * depth_in
def forward(self, x):
return self.conv_layers(x)
class FixupResNetCNN(nn.Module):
"""source: https://github.com/unixpickle/obs-tower2/blob/master/obs_tower2/model.py"""
class _FixupResidual(nn.Module):
def __init__(self, depth, num_residual):
super().__init__()
self.conv1 = nn.Conv2d(depth, depth, 3, padding=1, bias=False)
self.conv2 = nn.Conv2d(depth, depth, 3, padding=1, bias=False)
for p in self.conv1.parameters():
p.data.mul_(1 / math.sqrt(num_residual))
for p in self.conv2.parameters():
p.data.zero_()
self.bias1 = nn.Parameter(torch.zeros([depth, 1, 1]))
self.bias2 = nn.Parameter(torch.zeros([depth, 1, 1]))
self.bias3 = nn.Parameter(torch.zeros([depth, 1, 1]))
self.bias4 = nn.Parameter(torch.zeros([depth, 1, 1]))
self.scale = nn.Parameter(torch.ones([depth, 1, 1]))
def forward(self, x):
x = F.relu(x)
out = x + self.bias1
out = self.conv1(out)
out = out + self.bias2
out = F.relu(out)
out = out + self.bias3
out = self.conv2(out)
out = out * self.scale
out = out + self.bias4
return out + x
def __init__(self, input_channels, double_channels=False):
super().__init__()
depth_in = input_channels
layers = []
if not double_channels:
channel_sizes = [32, 64, 64]
else:
channel_sizes = [64, 128, 128]
for depth_out in channel_sizes:
layers.extend([
nn.Conv2d(depth_in, depth_out, 3, padding=1),
nn.MaxPool2d(3, stride=2, padding=1),
self._FixupResidual(depth_out, 8),
self._FixupResidual(depth_out, 8),
])
depth_in = depth_out
layers.extend([
self._FixupResidual(depth_in, 8),
self._FixupResidual(depth_in, 8),
])
self.conv_layers = nn.Sequential(*layers, nn.ReLU())
self.output_size = math.ceil(64 / 8) ** 2 * depth_in
def forward(self, x):
return self.conv_layers(x)
| [
1,
1053,
4842,
305,
13,
3166,
4842,
305,
1053,
302,
29876,
13,
3166,
4842,
305,
29889,
15755,
1053,
13303,
408,
383,
13,
13,
13,
5215,
5844,
13,
13,
13,
1990,
8527,
29898,
15755,
29889,
7355,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
954,
29918,
7387,
29892,
1967,
29918,
305,
12629,
29892,
9649,
29918,
2311,
29892,
274,
15755,
29918,
5453,
29892,
7934,
29918,
2311,
29922,
29906,
29945,
29953,
29892,
13,
462,
868,
14067,
29922,
5574,
29892,
3765,
29918,
305,
12629,
29922,
8824,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
13,
4706,
1583,
29889,
1949,
29918,
7387,
353,
954,
29918,
7387,
13,
4706,
1583,
29889,
700,
14067,
353,
868,
14067,
13,
13,
4706,
1583,
29889,
29883,
15755,
353,
274,
15755,
29918,
5453,
29898,
3027,
29918,
305,
12629,
29897,
13,
13,
4706,
1583,
29889,
20580,
29918,
4905,
29918,
2311,
353,
1583,
29889,
29883,
15755,
29889,
4905,
29918,
2311,
13,
4706,
1583,
29889,
13801,
29918,
326,
353,
302,
29876,
29889,
12697,
29898,
1311,
29889,
20580,
29918,
4905,
29918,
2311,
29892,
7934,
29918,
2311,
29897,
13,
13,
4706,
565,
451,
3765,
29918,
305,
12629,
29901,
13,
9651,
9649,
29918,
12719,
29918,
2311,
353,
29871,
29896,
29906,
29947,
13,
4706,
1683,
29901,
13,
9651,
9649,
29918,
12719,
29918,
2311,
353,
29871,
29906,
29945,
29953,
13,
13,
4706,
1583,
29889,
13801,
29918,
2003,
353,
302,
29876,
29889,
12697,
29898,
2003,
29918,
2311,
29892,
9649,
29918,
12719,
29918,
2311,
29897,
13,
13,
4706,
1583,
29889,
13801,
29918,
29882,
29918,
29874,
353,
302,
29876,
29889,
12697,
29898,
10892,
29918,
2311,
718,
9649,
29918,
12719,
29918,
2311,
29892,
7934,
29918,
2311,
29897,
13,
308,
13,
4706,
1583,
29889,
13801,
29918,
29874,
353,
302,
29876,
29889,
12697,
29898,
10892,
29918,
2311,
29892,
954,
29918,
7387,
29897,
13,
13,
4706,
565,
1583,
29889,
700,
14067,
29901,
13,
9651,
1583,
29889,
13801,
29918,
29882,
29918,
29894,
353,
302,
29876,
29889,
12697,
29898,
10892,
29918,
2311,
718,
9649,
29918,
12719,
29918,
2311,
29892,
7934,
29918,
2311,
29897,
13,
9651,
1583,
29889,
13801,
29918,
29894,
353,
302,
29876,
29889,
12697,
29898,
10892,
29918,
2311,
29892,
29871,
29896,
29897,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
29892,
9649,
1125,
13,
4706,
921,
353,
1583,
29889,
29883,
15755,
29898,
29916,
29897,
13,
4706,
921,
353,
921,
29889,
1493,
6278,
29896,
29892,
1583,
29889,
20580,
29918,
4905,
29918,
2311,
29897,
13,
4706,
921,
353,
1583,
29889,
13801,
29918,
326,
29898,
29916,
29897,
13,
4706,
9649,
353,
1583,
29889,
13801,
29918,
2003,
29898,
2003,
29897,
13,
13,
4706,
921,
353,
383,
29889,
2674,
29884,
29898,
7345,
305,
29889,
4117,
3552,
29916,
29892,
9649,
511,
29871,
29896,
876,
13,
13,
4706,
1962,
353,
1583,
29889,
13801,
29918,
29874,
29898,
29943,
29889,
2674,
29884,
29898,
1311,
29889,
13801,
29918,
29882,
29918,
29874,
29898,
29916,
4961,
13,
308,
13,
4706,
565,
1583,
29889,
700,
14067,
29901,
13,
9651,
325,
353,
1583,
29889,
13801,
29918,
29894,
29898,
29943,
29889,
2674,
29884,
29898,
1311,
29889,
13801,
29918,
29882,
29918,
29894,
29898,
29916,
4961,
13,
9651,
1962,
353,
325,
718,
1962,
448,
1962,
29889,
12676,
29898,
29896,
29892,
3013,
6229,
29922,
5574,
29897,
13,
13,
4706,
736,
1962,
13,
13,
13,
1990,
2180,
1306,
29907,
10262,
29898,
15755,
29889,
7355,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1881,
29918,
305,
12629,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
20580,
29918,
29277,
353,
302,
29876,
29889,
16941,
2556,
29898,
15755,
29889,
1168,
29894,
29906,
29881,
29898,
2080,
29918,
305,
12629,
29892,
29871,
29941,
29906,
29892,
29871,
29947,
29892,
380,
2426,
29922,
29946,
29892,
7164,
29922,
29900,
511,
13,
462,
462,
308,
302,
29876,
29889,
1123,
29931,
29965,
3285,
13,
462,
462,
308,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
29941,
29906,
29892,
29871,
29953,
29946,
29892,
29871,
29946,
29892,
380,
2426,
29922,
29906,
29892,
7164,
29922,
29900,
511,
13,
462,
462,
308,
302,
29876,
29889,
1123,
29931,
29965,
3285,
13,
462,
462,
308,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
29953,
29946,
29892,
29871,
29953,
29946,
29892,
29871,
29941,
29892,
380,
2426,
29922,
29896,
29892,
7164,
29922,
29900,
511,
13,
462,
462,
308,
302,
29876,
29889,
1123,
29931,
29965,
3101,
13,
13,
4706,
1583,
29889,
4905,
29918,
2311,
353,
29871,
29953,
29946,
334,
29871,
29946,
334,
29871,
29946,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
4706,
736,
1583,
29889,
20580,
29918,
29277,
29898,
29916,
29897,
13,
13,
13,
1990,
14305,
2883,
1666,
6779,
29907,
10262,
29898,
15755,
29889,
7355,
1125,
13,
1678,
770,
903,
24192,
2883,
1666,
333,
950,
29898,
15755,
29889,
7355,
1125,
13,
13,
4706,
822,
4770,
2344,
12035,
1311,
29892,
10809,
1125,
13,
9651,
2428,
2141,
1649,
2344,
1649,
580,
13,
9651,
1583,
29889,
20580,
29896,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
19488,
29892,
10809,
29892,
29871,
29941,
29892,
7164,
29922,
29896,
29897,
13,
9651,
1583,
29889,
20580,
29906,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
19488,
29892,
10809,
29892,
29871,
29941,
29892,
7164,
29922,
29896,
29897,
13,
13,
4706,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
9651,
714,
353,
383,
29889,
2674,
29884,
29898,
29916,
29897,
13,
9651,
714,
353,
1583,
29889,
20580,
29896,
29898,
449,
29897,
13,
9651,
714,
353,
383,
29889,
2674,
29884,
29898,
449,
29897,
13,
9651,
714,
353,
1583,
29889,
20580,
29906,
29898,
449,
29897,
13,
9651,
736,
714,
718,
921,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1881,
29918,
305,
12629,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
4706,
10809,
29918,
262,
353,
1881,
29918,
305,
12629,
13,
4706,
15359,
353,
5159,
13,
4706,
363,
10809,
29918,
449,
297,
518,
29941,
29906,
29892,
29871,
29953,
29946,
29892,
29871,
29953,
29946,
5387,
13,
9651,
15359,
29889,
21843,
4197,
13,
18884,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
19488,
29918,
262,
29892,
10809,
29918,
449,
29892,
29871,
29941,
29892,
7164,
29922,
29896,
511,
13,
18884,
302,
29876,
29889,
7976,
11426,
29906,
29881,
29898,
29941,
29892,
380,
2426,
29922,
29906,
29892,
7164,
29922,
29896,
511,
13,
18884,
1583,
3032,
24192,
2883,
1666,
333,
950,
29898,
19488,
29918,
449,
511,
13,
18884,
1583,
3032,
24192,
2883,
1666,
333,
950,
29898,
19488,
29918,
449,
511,
13,
632,
2314,
13,
9651,
10809,
29918,
262,
353,
10809,
29918,
449,
13,
4706,
1583,
29889,
20580,
29918,
29277,
353,
302,
29876,
29889,
16941,
2556,
10456,
29277,
29892,
302,
29876,
29889,
1123,
29931,
29965,
3101,
13,
4706,
1583,
29889,
4905,
29918,
2311,
353,
5844,
29889,
27696,
29898,
29953,
29946,
847,
29871,
29947,
29897,
3579,
29871,
29906,
334,
10809,
29918,
262,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
4706,
736,
1583,
29889,
20580,
29918,
29277,
29898,
29916,
29897,
13,
13,
13,
1990,
24778,
786,
1666,
6779,
29907,
10262,
29898,
15755,
29889,
7355,
1125,
13,
1678,
9995,
4993,
29901,
2045,
597,
3292,
29889,
510,
29914,
24538,
23945,
280,
29914,
26290,
29899,
29873,
1680,
29906,
29914,
10054,
29914,
6207,
29914,
26290,
29918,
29873,
1680,
29906,
29914,
4299,
29889,
2272,
15945,
29908,
13,
13,
1678,
770,
903,
29943,
861,
786,
1666,
333,
950,
29898,
15755,
29889,
7355,
1125,
13,
4706,
822,
4770,
2344,
12035,
1311,
29892,
10809,
29892,
954,
29918,
690,
333,
950,
1125,
13,
9651,
2428,
2141,
1649,
2344,
1649,
580,
13,
9651,
1583,
29889,
20580,
29896,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
19488,
29892,
10809,
29892,
29871,
29941,
29892,
7164,
29922,
29896,
29892,
24003,
29922,
8824,
29897,
13,
9651,
1583,
29889,
20580,
29906,
353,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
19488,
29892,
10809,
29892,
29871,
29941,
29892,
7164,
29922,
29896,
29892,
24003,
29922,
8824,
29897,
13,
9651,
363,
282,
297,
1583,
29889,
20580,
29896,
29889,
16744,
7295,
13,
18884,
282,
29889,
1272,
29889,
16109,
23538,
29896,
847,
5844,
29889,
3676,
29898,
1949,
29918,
690,
333,
950,
876,
13,
9651,
363,
282,
297,
1583,
29889,
20580,
29906,
29889,
16744,
7295,
13,
18884,
282,
29889,
1272,
29889,
9171,
29918,
580,
13,
9651,
1583,
29889,
29890,
3173,
29896,
353,
302,
29876,
29889,
9329,
29898,
7345,
305,
29889,
3298,
359,
4197,
19488,
29892,
29871,
29896,
29892,
29871,
29896,
12622,
13,
9651,
1583,
29889,
29890,
3173,
29906,
353,
302,
29876,
29889,
9329,
29898,
7345,
305,
29889,
3298,
359,
4197,
19488,
29892,
29871,
29896,
29892,
29871,
29896,
12622,
13,
9651,
1583,
29889,
29890,
3173,
29941,
353,
302,
29876,
29889,
9329,
29898,
7345,
305,
29889,
3298,
359,
4197,
19488,
29892,
29871,
29896,
29892,
29871,
29896,
12622,
13,
9651,
1583,
29889,
29890,
3173,
29946,
353,
302,
29876,
29889,
9329,
29898,
7345,
305,
29889,
3298,
359,
4197,
19488,
29892,
29871,
29896,
29892,
29871,
29896,
12622,
13,
9651,
1583,
29889,
7052,
353,
302,
29876,
29889,
9329,
29898,
7345,
305,
29889,
2873,
4197,
19488,
29892,
29871,
29896,
29892,
29871,
29896,
12622,
13,
13,
4706,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
9651,
921,
353,
383,
29889,
2674,
29884,
29898,
29916,
29897,
13,
9651,
714,
353,
921,
718,
1583,
29889,
29890,
3173,
29896,
13,
9651,
714,
353,
1583,
29889,
20580,
29896,
29898,
449,
29897,
13,
9651,
714,
353,
714,
718,
1583,
29889,
29890,
3173,
29906,
13,
9651,
714,
353,
383,
29889,
2674,
29884,
29898,
449,
29897,
13,
9651,
714,
353,
714,
718,
1583,
29889,
29890,
3173,
29941,
13,
9651,
714,
353,
1583,
29889,
20580,
29906,
29898,
449,
29897,
13,
9651,
714,
353,
714,
334,
1583,
29889,
7052,
13,
9651,
714,
353,
714,
718,
1583,
29889,
29890,
3173,
29946,
13,
9651,
736,
714,
718,
921,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1881,
29918,
305,
12629,
29892,
3765,
29918,
305,
12629,
29922,
8824,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
4706,
10809,
29918,
262,
353,
1881,
29918,
305,
12629,
13,
13,
4706,
15359,
353,
5159,
13,
4706,
565,
451,
3765,
29918,
305,
12629,
29901,
13,
9651,
8242,
29918,
29879,
7093,
353,
518,
29941,
29906,
29892,
29871,
29953,
29946,
29892,
29871,
29953,
29946,
29962,
13,
4706,
1683,
29901,
13,
9651,
8242,
29918,
29879,
7093,
353,
518,
29953,
29946,
29892,
29871,
29896,
29906,
29947,
29892,
29871,
29896,
29906,
29947,
29962,
13,
4706,
363,
10809,
29918,
449,
297,
8242,
29918,
29879,
7093,
29901,
13,
9651,
15359,
29889,
21843,
4197,
13,
18884,
302,
29876,
29889,
1168,
29894,
29906,
29881,
29898,
19488,
29918,
262,
29892,
10809,
29918,
449,
29892,
29871,
29941,
29892,
7164,
29922,
29896,
511,
13,
18884,
302,
29876,
29889,
7976,
11426,
29906,
29881,
29898,
29941,
29892,
380,
2426,
29922,
29906,
29892,
7164,
29922,
29896,
511,
13,
18884,
1583,
3032,
29943,
861,
786,
1666,
333,
950,
29898,
19488,
29918,
449,
29892,
29871,
29947,
511,
13,
18884,
1583,
3032,
29943,
861,
786,
1666,
333,
950,
29898,
19488,
29918,
449,
29892,
29871,
29947,
511,
13,
632,
2314,
13,
9651,
10809,
29918,
262,
353,
10809,
29918,
449,
13,
4706,
15359,
29889,
21843,
4197,
13,
9651,
1583,
3032,
29943,
861,
786,
1666,
333,
950,
29898,
19488,
29918,
262,
29892,
29871,
29947,
511,
13,
9651,
1583,
3032,
29943,
861,
786,
1666,
333,
950,
29898,
19488,
29918,
262,
29892,
29871,
29947,
511,
13,
308,
2314,
13,
4706,
1583,
29889,
20580,
29918,
29277,
353,
302,
29876,
29889,
16941,
2556,
10456,
29277,
29892,
302,
29876,
29889,
1123,
29931,
29965,
3101,
13,
4706,
1583,
29889,
4905,
29918,
2311,
353,
5844,
29889,
27696,
29898,
29953,
29946,
847,
29871,
29947,
29897,
3579,
29871,
29906,
334,
10809,
29918,
262,
13,
13,
1678,
822,
6375,
29898,
1311,
29892,
921,
1125,
13,
4706,
736,
1583,
29889,
20580,
29918,
29277,
29898,
29916,
29897,
13,
2
] |
pythonAlgorithm/linklist/reverse_linklist.py | Sky-zzt/lintcodePractice | 1 | 154446 | <reponame>Sky-zzt/lintcodePractice
class Node:
def __init__(self, val=0):
self.value = val
self.next = None
class LinkList:
c = 10
def __init__(self, *args):
self.val = (*args,)
self.head = self.__constructLinklist()
#self.printLinklist(self.head)
# self.pre = self.revserlinklist()
# self.printLinklist(self.pre)
def printLinklist(self, head):
while head is not None:
print(head.val)
head = head.next
def __constructLinklist(self):
dummyNode = Node()
head = Node(self.val[0])
dummyNode.next = head
for i in range(1, len(self.val)):
next = Node(self.val[i])
head.next = next
head = next
return dummyNode.next
def revserlinklist(self):
pre = None
while self.head is not None:
next = self.head.next
self.head.next = pre
pre = self.head
self.head = next
return pre
def revserFromM2N(self, m, n):
#if m<0 or n<0 or n>self.linklength():return None
head2=self.head
head3=self.head
head2.next.next.next=None
self.printLinklist(self.head)
def linklength(self):
length = 0
while self.head is not None:
self.head = self.head.next
length += 1
return length
a = LinkList(1, 2, 3, 4, 5)
a.revserFromM2N(2,3)
| [
1,
529,
276,
1112,
420,
29958,
29903,
3459,
29899,
29920,
2065,
29914,
27854,
401,
29925,
1461,
625,
13,
1990,
9071,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
659,
29922,
29900,
1125,
13,
4706,
1583,
29889,
1767,
353,
659,
13,
4706,
1583,
29889,
4622,
353,
6213,
13,
13,
13,
1990,
6645,
1293,
29901,
13,
1678,
274,
353,
29871,
29896,
29900,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
1125,
13,
4706,
1583,
29889,
791,
353,
3070,
5085,
29892,
29897,
13,
4706,
1583,
29889,
2813,
353,
1583,
17255,
11433,
6595,
1761,
580,
13,
4706,
396,
1311,
29889,
2158,
6595,
1761,
29898,
1311,
29889,
2813,
29897,
13,
4706,
396,
1583,
29889,
1457,
353,
1583,
29889,
13478,
643,
2324,
1761,
580,
13,
4706,
396,
1583,
29889,
2158,
6595,
1761,
29898,
1311,
29889,
1457,
29897,
13,
13,
1678,
822,
1596,
6595,
1761,
29898,
1311,
29892,
2343,
1125,
13,
4706,
1550,
2343,
338,
451,
6213,
29901,
13,
9651,
1596,
29898,
2813,
29889,
791,
29897,
13,
9651,
2343,
353,
2343,
29889,
4622,
13,
13,
1678,
822,
4770,
11433,
6595,
1761,
29898,
1311,
1125,
13,
4706,
20254,
4247,
353,
9071,
580,
13,
4706,
2343,
353,
9071,
29898,
1311,
29889,
791,
29961,
29900,
2314,
13,
4706,
20254,
4247,
29889,
4622,
353,
2343,
13,
4706,
363,
474,
297,
3464,
29898,
29896,
29892,
7431,
29898,
1311,
29889,
791,
22164,
13,
9651,
2446,
353,
9071,
29898,
1311,
29889,
791,
29961,
29875,
2314,
13,
9651,
2343,
29889,
4622,
353,
2446,
13,
9651,
2343,
353,
2446,
13,
4706,
736,
20254,
4247,
29889,
4622,
13,
13,
1678,
822,
6664,
643,
2324,
1761,
29898,
1311,
1125,
13,
4706,
758,
353,
6213,
13,
4706,
1550,
1583,
29889,
2813,
338,
451,
6213,
29901,
13,
9651,
2446,
353,
1583,
29889,
2813,
29889,
4622,
13,
9651,
1583,
29889,
2813,
29889,
4622,
353,
758,
13,
9651,
758,
353,
1583,
29889,
2813,
13,
9651,
1583,
29889,
2813,
353,
2446,
13,
4706,
736,
758,
13,
13,
1678,
822,
6664,
643,
4591,
29924,
29906,
29940,
29898,
1311,
29892,
286,
29892,
302,
1125,
13,
4706,
396,
361,
286,
29966,
29900,
470,
302,
29966,
29900,
470,
302,
29958,
1311,
29889,
2324,
2848,
7295,
2457,
6213,
13,
4706,
2343,
29906,
29922,
1311,
29889,
2813,
13,
4706,
2343,
29941,
29922,
1311,
29889,
2813,
13,
4706,
2343,
29906,
29889,
4622,
29889,
4622,
29889,
4622,
29922,
8516,
13,
4706,
1583,
29889,
2158,
6595,
1761,
29898,
1311,
29889,
2813,
29897,
13,
13,
13,
13,
1678,
822,
1544,
2848,
29898,
1311,
1125,
13,
4706,
3309,
353,
29871,
29900,
13,
4706,
1550,
1583,
29889,
2813,
338,
451,
6213,
29901,
13,
9651,
1583,
29889,
2813,
353,
1583,
29889,
2813,
29889,
4622,
13,
9651,
3309,
4619,
29871,
29896,
13,
4706,
736,
3309,
13,
13,
13,
29874,
353,
6645,
1293,
29898,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
29892,
29871,
29946,
29892,
29871,
29945,
29897,
13,
13,
29874,
29889,
13478,
643,
4591,
29924,
29906,
29940,
29898,
29906,
29892,
29941,
29897,
13,
2
] |
one_fm/grd/utils.py | ONE-F-M/One-FM | 16 | 90158 | # -*- coding: utf-8 -*-
# encoding: utf-8
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import today, add_days, get_url, date_diff, getdate
from frappe.model.document import Document
from frappe.utils import cstr, cint, get_fullname
from frappe.utils import today, add_days, get_url
from datetime import date
from frappe.model.mapper import get_mapped_doc
from dateutil.relativedelta import relativedelta
from one_fm.api.notification import create_notification_log
def todo_after_insert(doc, method):
doctypes = ['Work Permit', 'Medical Insurance']
if doc.reference_type in doctypes and doc.reference_name and doc.owner and 'GRD Operator' in frappe.get_roles(doc.owner):
if not frappe.db.get_value(doc.reference_type, doc.reference_name, 'grd_operator'):
frappe.db.set_value(doc.reference_type, doc.reference_name, 'grd_operator', doc.owner)
def sendmail_reminder_to_book_appointment_for_pifss(): #before 1 week of the new month
today = date.today()
first_day = today.replace(day=1) + relativedelta(months=1)
if date_diff(first_day,today) == 7:
operator = frappe.db.get_single_value('GRD Settings', 'default_grd_operator_pifss')
supervisor = frappe.db.get_single_value('GRD Settings', 'default_grd_supervisor')
if ('@' in operator):
email_name = operator.split('@')[0]
content = "<h4>Dear "+ email_name +",</h4><p>This month will end soon. Please make sure to book an apointment now for collecting PIFSS documents.</p>"
content = content
frappe.sendmail(recipients=[operator],
sender=supervisor,
subject="Book Apointment For PIFSS", content=content)
def sendmail_reminder_to_collect_pifss_documents(): #before 1 day of the new month
today = date.today()
first_day = today.replace(day=1) + relativedelta(months=1)
if date_diff(first_day,today) == 1:
operator = frappe.db.get_single_value('GRD Settings', 'default_grd_operator')
supervisor = frappe.db.get_single_value('GRD Settings', 'default_grd_supervisor')
if ('@' in operator):
email_name = operator.split('@')[0]
content = "<h4>Dear "+ email_name +",</h4><p> This email is reminder for you to collect PIFSS documents.</p>"
content = content
frappe.sendmail(recipients=[operator],
sender=supervisor,
subject="Collect PIFSS Documents", content=content)
@frappe.whitelist()
def mappe_to_work_permit_cancellation(source_name, target_doc=None):
pifss_103_record = frappe.get_doc('PIFSS Form 103',source_name)
print(pifss_103_record.employee)
doc = get_mapped_doc("PIFSS Form 103", source_name, {
"PIFSS Form 103": {
"doctype": "Work Permit",
"field_map": {
"attach_end_of_service_from_pifss_website":"end_of_service_screenshot",
"date_of_acceptance":"date_of_application",
"work_permit_type":"work_permit_type",
"employee":"employee"
}
}
}, target_doc)
return doc
@frappe.whitelist()
def mappe_to_work_permit_registration(source_name, target_doc=None):
pifss_103_record = frappe.get_doc('PIFSS Form 103',source_name)
print(pifss_103_record.employee)
doc = get_mapped_doc("PIFSS Form 103", source_name, {
"PIFSS Form 103": {
"doctype": "Work Permit",
"field_map": {
"attach_registration_from_pifss_website":"registration_from_pifss_website",
"date_of_acceptance":"date_of_application",
"work_permit_type":"work_permit_type",
"employee":"employee"
}
}
}, target_doc)
return doc
@frappe.whitelist()
def mappe_to_mgrp(source_name, target_doc=None):
work_permit_record = frappe.get_doc('Work Permit',source_name)
print(work_permit_record.employee)
doc = get_mapped_doc("Work Permit", source_name, {
"Work Permit": {
"doctype": "MGRP",
"field_map": {
"work_permit_type":"status",
"employee":"employee",
"first_name":"first_name",
"civil_id":"civil_id",
"last_name":"last_name",
"employee_id":"employee_id",
"end_of_service_date":"end_of_service_date",
}
}
}, target_doc)
return doc
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
8025,
29901,
23616,
29899,
29947,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
5215,
5227,
4798,
13,
3166,
5227,
4798,
1053,
903,
13,
3166,
5227,
4798,
29889,
13239,
1053,
9826,
29892,
788,
29918,
16700,
29892,
679,
29918,
2271,
29892,
2635,
29918,
12765,
29892,
679,
1256,
13,
3166,
5227,
4798,
29889,
4299,
29889,
3225,
1053,
10854,
13,
3166,
5227,
4798,
29889,
13239,
1053,
274,
710,
29892,
274,
524,
29892,
679,
29918,
8159,
978,
13,
3166,
5227,
4798,
29889,
13239,
1053,
9826,
29892,
788,
29918,
16700,
29892,
679,
29918,
2271,
13,
3166,
12865,
1053,
2635,
13,
3166,
5227,
4798,
29889,
4299,
29889,
655,
2496,
1053,
679,
29918,
655,
2986,
29918,
1514,
13,
3166,
2635,
4422,
29889,
2674,
1926,
287,
2554,
1053,
14215,
287,
2554,
13,
3166,
697,
29918,
24826,
29889,
2754,
29889,
24671,
1053,
1653,
29918,
24671,
29918,
1188,
13,
13,
1753,
10481,
29918,
7045,
29918,
7851,
29898,
1514,
29892,
1158,
1125,
13,
1678,
437,
312,
7384,
353,
6024,
5531,
20894,
277,
742,
525,
19302,
936,
512,
7610,
749,
2033,
13,
1678,
565,
1574,
29889,
5679,
29918,
1853,
297,
437,
312,
7384,
322,
1574,
29889,
5679,
29918,
978,
322,
1574,
29889,
20348,
322,
525,
14345,
29928,
6607,
1061,
29915,
297,
5227,
4798,
29889,
657,
29918,
307,
793,
29898,
1514,
29889,
20348,
1125,
13,
4706,
565,
451,
5227,
4798,
29889,
2585,
29889,
657,
29918,
1767,
29898,
1514,
29889,
5679,
29918,
1853,
29892,
1574,
29889,
5679,
29918,
978,
29892,
525,
629,
29881,
29918,
6891,
29374,
13,
9651,
5227,
4798,
29889,
2585,
29889,
842,
29918,
1767,
29898,
1514,
29889,
5679,
29918,
1853,
29892,
1574,
29889,
5679,
29918,
978,
29892,
525,
629,
29881,
29918,
6891,
742,
1574,
29889,
20348,
29897,
13,
13,
1753,
3638,
2549,
29918,
1745,
4995,
29918,
517,
29918,
2909,
29918,
932,
2461,
358,
29918,
1454,
29918,
29886,
361,
893,
7295,
396,
11083,
29871,
29896,
4723,
310,
278,
716,
4098,
13,
1678,
9826,
353,
2635,
29889,
27765,
580,
13,
1678,
937,
29918,
3250,
353,
9826,
29889,
6506,
29898,
3250,
29922,
29896,
29897,
718,
14215,
287,
2554,
29898,
10874,
29879,
29922,
29896,
29897,
13,
1678,
565,
2635,
29918,
12765,
29898,
4102,
29918,
3250,
29892,
27765,
29897,
1275,
29871,
29955,
29901,
29871,
13,
4706,
5455,
353,
5227,
4798,
29889,
2585,
29889,
657,
29918,
14369,
29918,
1767,
877,
14345,
29928,
19215,
742,
525,
4381,
29918,
629,
29881,
29918,
6891,
29918,
29886,
361,
893,
1495,
13,
4706,
2428,
19188,
353,
5227,
4798,
29889,
2585,
29889,
657,
29918,
14369,
29918,
1767,
877,
14345,
29928,
19215,
742,
525,
4381,
29918,
629,
29881,
29918,
9136,
19188,
1495,
13,
4706,
565,
6702,
29992,
29915,
297,
5455,
1125,
13,
9651,
4876,
29918,
978,
353,
5455,
29889,
5451,
877,
29992,
29861,
29900,
29962,
13,
4706,
2793,
353,
9872,
29882,
29946,
29958,
29928,
799,
15691,
4876,
29918,
978,
718,
613,
829,
29882,
29946,
5299,
29886,
29958,
4013,
4098,
674,
1095,
4720,
29889,
3529,
1207,
1854,
304,
3143,
385,
263,
3149,
358,
1286,
363,
6314,
292,
349,
6545,
1799,
10701,
21106,
29886,
11903,
4706,
13,
4706,
2793,
353,
2793,
13,
4706,
5227,
4798,
29889,
6717,
2549,
29898,
4361,
29886,
10070,
11759,
6891,
1402,
13,
9651,
10004,
29922,
9136,
19188,
29892,
13,
9651,
4967,
543,
10967,
319,
3149,
358,
1152,
349,
6545,
1799,
613,
2793,
29922,
3051,
29897,
13,
13,
1753,
3638,
2549,
29918,
1745,
4995,
29918,
517,
29918,
15914,
29918,
29886,
361,
893,
29918,
3225,
29879,
7295,
396,
11083,
29871,
29896,
2462,
310,
278,
716,
4098,
13,
1678,
9826,
353,
2635,
29889,
27765,
580,
13,
1678,
937,
29918,
3250,
353,
9826,
29889,
6506,
29898,
3250,
29922,
29896,
29897,
718,
14215,
287,
2554,
29898,
10874,
29879,
29922,
29896,
29897,
13,
1678,
565,
2635,
29918,
12765,
29898,
4102,
29918,
3250,
29892,
27765,
29897,
1275,
29871,
29896,
29901,
13,
4706,
5455,
353,
5227,
4798,
29889,
2585,
29889,
657,
29918,
14369,
29918,
1767,
877,
14345,
29928,
19215,
742,
525,
4381,
29918,
629,
29881,
29918,
6891,
1495,
13,
4706,
2428,
19188,
353,
5227,
4798,
29889,
2585,
29889,
657,
29918,
14369,
29918,
1767,
877,
14345,
29928,
19215,
742,
525,
4381,
29918,
629,
29881,
29918,
9136,
19188,
1495,
13,
4706,
565,
6702,
29992,
29915,
297,
5455,
1125,
13,
9651,
4876,
29918,
978,
353,
5455,
29889,
5451,
877,
29992,
29861,
29900,
29962,
13,
4706,
2793,
353,
9872,
29882,
29946,
29958,
29928,
799,
15691,
4876,
29918,
978,
718,
613,
829,
29882,
29946,
5299,
29886,
29958,
910,
4876,
338,
1083,
4995,
363,
366,
304,
6314,
349,
6545,
1799,
10701,
21106,
29886,
11903,
4706,
13,
4706,
2793,
353,
2793,
13,
4706,
5227,
4798,
29889,
6717,
2549,
29898,
4361,
29886,
10070,
11759,
6891,
1402,
13,
9651,
10004,
29922,
9136,
19188,
29892,
13,
9651,
4967,
543,
28916,
349,
6545,
1799,
10854,
29879,
613,
2793,
29922,
3051,
29897,
13,
13,
29992,
20910,
4798,
29889,
1332,
7454,
391,
580,
13,
1753,
611,
4798,
29918,
517,
29918,
1287,
29918,
546,
2415,
29918,
3068,
22603,
29898,
4993,
29918,
978,
29892,
3646,
29918,
1514,
29922,
8516,
1125,
13,
1678,
282,
361,
893,
29918,
29896,
29900,
29941,
29918,
11651,
353,
5227,
4798,
29889,
657,
29918,
1514,
877,
2227,
29943,
1799,
3812,
29871,
29896,
29900,
29941,
742,
4993,
29918,
978,
29897,
13,
1678,
1596,
29898,
29886,
361,
893,
29918,
29896,
29900,
29941,
29918,
11651,
29889,
26143,
29897,
13,
1678,
1574,
353,
679,
29918,
655,
2986,
29918,
1514,
703,
2227,
29943,
1799,
3812,
29871,
29896,
29900,
29941,
613,
2752,
29918,
978,
29892,
426,
13,
4706,
376,
2227,
29943,
1799,
3812,
29871,
29896,
29900,
29941,
1115,
426,
13,
9651,
376,
1867,
312,
668,
1115,
376,
5531,
20894,
277,
613,
13,
9651,
376,
2671,
29918,
1958,
1115,
426,
13,
18884,
376,
14930,
29918,
355,
29918,
974,
29918,
5509,
29918,
3166,
29918,
29886,
361,
893,
29918,
22942,
4710,
355,
29918,
974,
29918,
5509,
29918,
29879,
24546,
8711,
613,
13,
18884,
376,
1256,
29918,
974,
29918,
16044,
749,
4710,
1256,
29918,
974,
29918,
6214,
613,
13,
18884,
376,
1287,
29918,
546,
2415,
29918,
1853,
4710,
1287,
29918,
546,
2415,
29918,
1853,
613,
13,
18884,
376,
26143,
4710,
26143,
29908,
13,
9651,
500,
13,
4706,
500,
13,
1678,
2981,
3646,
29918,
1514,
29897,
13,
1678,
736,
1574,
13,
13,
29992,
20910,
4798,
29889,
1332,
7454,
391,
580,
13,
1753,
611,
4798,
29918,
517,
29918,
1287,
29918,
546,
2415,
29918,
1727,
8306,
29898,
4993,
29918,
978,
29892,
3646,
29918,
1514,
29922,
8516,
1125,
13,
1678,
282,
361,
893,
29918,
29896,
29900,
29941,
29918,
11651,
353,
5227,
4798,
29889,
657,
29918,
1514,
877,
2227,
29943,
1799,
3812,
29871,
29896,
29900,
29941,
742,
4993,
29918,
978,
29897,
13,
1678,
1596,
29898,
29886,
361,
893,
29918,
29896,
29900,
29941,
29918,
11651,
29889,
26143,
29897,
13,
1678,
1574,
353,
679,
29918,
655,
2986,
29918,
1514,
703,
2227,
29943,
1799,
3812,
29871,
29896,
29900,
29941,
613,
2752,
29918,
978,
29892,
426,
13,
4706,
376,
2227,
29943,
1799,
3812,
29871,
29896,
29900,
29941,
1115,
426,
13,
9651,
376,
1867,
312,
668,
1115,
376,
5531,
20894,
277,
613,
13,
9651,
376,
2671,
29918,
1958,
1115,
426,
13,
18884,
376,
14930,
29918,
1727,
8306,
29918,
3166,
29918,
29886,
361,
893,
29918,
22942,
4710,
1727,
8306,
29918,
3166,
29918,
29886,
361,
893,
29918,
22942,
613,
13,
18884,
376,
1256,
29918,
974,
29918,
16044,
749,
4710,
1256,
29918,
974,
29918,
6214,
613,
13,
18884,
376,
1287,
29918,
546,
2415,
29918,
1853,
4710,
1287,
29918,
546,
2415,
29918,
1853,
613,
13,
18884,
376,
26143,
4710,
26143,
29908,
13,
9651,
500,
13,
4706,
500,
13,
1678,
2981,
3646,
29918,
1514,
29897,
13,
1678,
736,
1574,
13,
13,
29992,
20910,
4798,
29889,
1332,
7454,
391,
580,
13,
1753,
611,
4798,
29918,
517,
29918,
29885,
629,
29886,
29898,
4993,
29918,
978,
29892,
3646,
29918,
1514,
29922,
8516,
1125,
13,
1678,
664,
29918,
546,
2415,
29918,
11651,
353,
5227,
4798,
29889,
657,
29918,
1514,
877,
5531,
20894,
277,
742,
4993,
29918,
978,
29897,
13,
1678,
1596,
29898,
1287,
29918,
546,
2415,
29918,
11651,
29889,
26143,
29897,
13,
1678,
1574,
353,
679,
29918,
655,
2986,
29918,
1514,
703,
5531,
20894,
277,
613,
2752,
29918,
978,
29892,
426,
13,
4706,
376,
5531,
20894,
277,
1115,
426,
13,
9651,
376,
1867,
312,
668,
1115,
376,
29924,
14345,
29925,
613,
13,
9651,
376,
2671,
29918,
1958,
1115,
426,
13,
18884,
376,
1287,
29918,
546,
2415,
29918,
1853,
4710,
4882,
613,
13,
18884,
376,
26143,
4710,
26143,
613,
13,
18884,
376,
4102,
29918,
978,
4710,
4102,
29918,
978,
613,
13,
18884,
376,
29883,
5341,
29918,
333,
4710,
29883,
5341,
29918,
333,
613,
13,
18884,
376,
4230,
29918,
978,
4710,
4230,
29918,
978,
613,
13,
18884,
376,
26143,
29918,
333,
4710,
26143,
29918,
333,
613,
13,
18884,
376,
355,
29918,
974,
29918,
5509,
29918,
1256,
4710,
355,
29918,
974,
29918,
5509,
29918,
1256,
613,
13,
9651,
500,
13,
4706,
500,
13,
1678,
2981,
3646,
29918,
1514,
29897,
13,
1678,
736,
1574,
13,
13,
2
] |
lastpass/blob.py | guilt/lastpass-python | 1 | 130575 | <gh_stars>1-10
# coding: utf-8
class Blob(object):
def __init__(self, bytes_, key_iteration_count):
self.bytes = bytes_
self.key_iteration_count = key_iteration_count
def encryption_key(self, username, password):
from . import fetcher
return fetcher.make_key(username, password, self.key_iteration_count)
def __eq__(self, other):
return self.bytes == other.bytes and self.key_iteration_count == other.key_iteration_count
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
1990,
350,
2127,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6262,
3383,
1820,
29918,
1524,
362,
29918,
2798,
1125,
13,
4706,
1583,
29889,
13193,
353,
6262,
29918,
13,
4706,
1583,
29889,
1989,
29918,
1524,
362,
29918,
2798,
353,
1820,
29918,
1524,
362,
29918,
2798,
13,
13,
1678,
822,
20956,
29918,
1989,
29898,
1311,
29892,
8952,
29892,
4800,
1125,
13,
4706,
515,
869,
1053,
6699,
261,
13,
4706,
736,
6699,
261,
29889,
5675,
29918,
1989,
29898,
6786,
29892,
4800,
29892,
1583,
29889,
1989,
29918,
1524,
362,
29918,
2798,
29897,
13,
13,
1678,
822,
4770,
1837,
12035,
1311,
29892,
916,
1125,
13,
4706,
736,
1583,
29889,
13193,
1275,
916,
29889,
13193,
322,
1583,
29889,
1989,
29918,
1524,
362,
29918,
2798,
1275,
916,
29889,
1989,
29918,
1524,
362,
29918,
2798,
13,
2
] |
tf_trace_publisher/src/tf_trace_publisher/text_publisher.py | ipa-lth/rviz_utils | 2 | 1603343 | <filename>tf_trace_publisher/src/tf_trace_publisher/text_publisher.py
#!/usr/bin/env python
import rospy
from visualization_msgs.msg import Marker
# Give ourselves the ability to run a dynamic reconfigure server.
# from dynamic_reconfigure.server import Server as DynamicReconfigureServer
# from ipa325_itasc_commons.cfg import textMarkerPublisher_paramsConfig as ConfigType
class TextPublisher():
def __init__(self):
# initalize
textMarker = Marker()
textMarker.header.frame_id = "/textFrame"
textMarker.id = rospy.get_param('~id', 1)
textMarker.type= Marker.TEXT_VIEW_FACING
textMarker.action = Marker.MODIFY
# textMarker.ns = tf_child
# textMarker.scale.x = rospy.get_param('~scale_X', 0.01)
# textMarker.scale.y = rospy.get_param('~scale_Y', 0.01)
textMarker.scale.z = rospy.get_param('~scale_Z', 0.1)
textMarker.text = 'x_'
textMarker.color.r = rospy.get_param('~color_Red', 0.0)
textMarker.color.g = rospy.get_param('~color_Green', 1.0)
textMarker.color.b = rospy.get_param('~color_Blue', 0.0)
textMarker.color.a = rospy.get_param('~color_Alpha', 1.0)
rate = rospy.Rate(rospy.get_param('~rate', 5))
pub_markerLine = rospy.Publisher('visualization_marker', Marker)
cnt = 0
maxCnt = 10
self.text = 'x_'
while not rospy.is_shutdown():
if cnt < maxCnt:
textMarker.action = Marker.MODIFY
self.text += str(cnt)
cnt += 1
else:
self.text = 'x_'
textMarker.action = Marker.DELETE
cnt = 0
textMarker.text = self.text
pub_markerLine.publish(textMarker)
rate.sleep()
if __name__ == '__main__':
rospy.init_node('tf_textMarker_Publisher', anonymous=True)
try:
node = TextPublisher()
except rospy.ROSInterruptException: pass
| [
1,
529,
9507,
29958,
13264,
29918,
15003,
29918,
23679,
261,
29914,
4351,
29914,
13264,
29918,
15003,
29918,
23679,
261,
29914,
726,
29918,
23679,
261,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
696,
1028,
29891,
13,
13,
3166,
7604,
2133,
29918,
1516,
3174,
29889,
7645,
1053,
4485,
261,
13,
13,
29937,
25538,
20278,
278,
11509,
304,
1065,
263,
7343,
337,
17591,
1923,
29889,
13,
29937,
515,
7343,
29918,
276,
17591,
29889,
2974,
1053,
5656,
408,
27747,
1123,
17591,
6004,
13,
29937,
515,
474,
3274,
29941,
29906,
29945,
29918,
277,
6151,
29918,
22382,
29889,
16859,
1053,
1426,
24619,
21076,
1674,
261,
29918,
7529,
3991,
408,
12782,
1542,
13,
13,
1990,
3992,
21076,
1674,
261,
7295,
13,
12,
1753,
4770,
2344,
12035,
1311,
1125,
13,
13,
12,
12,
29937,
2069,
284,
675,
13,
12,
12,
726,
24619,
353,
4485,
261,
580,
13,
12,
12,
726,
24619,
29889,
6672,
29889,
2557,
29918,
333,
353,
5591,
726,
4308,
29908,
13,
12,
12,
726,
24619,
29889,
333,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
333,
742,
29871,
29896,
29897,
13,
12,
12,
726,
24619,
29889,
1853,
29922,
4485,
261,
29889,
16975,
29918,
29963,
8673,
29956,
29918,
29943,
2477,
4214,
13,
12,
12,
726,
24619,
29889,
2467,
353,
4485,
261,
29889,
6720,
4571,
29943,
29979,
13,
12,
12,
29937,
1426,
24619,
29889,
1983,
353,
15886,
29918,
5145,
13,
13,
12,
12,
29937,
1426,
24619,
29889,
7052,
29889,
29916,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
7052,
29918,
29990,
742,
29871,
29900,
29889,
29900,
29896,
29897,
13,
12,
12,
29937,
1426,
24619,
29889,
7052,
29889,
29891,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
7052,
29918,
29979,
742,
29871,
29900,
29889,
29900,
29896,
29897,
13,
12,
12,
726,
24619,
29889,
7052,
29889,
29920,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
7052,
29918,
29999,
742,
29871,
29900,
29889,
29896,
29897,
13,
13,
12,
12,
726,
24619,
29889,
726,
353,
525,
29916,
29918,
29915,
13,
13,
12,
12,
726,
24619,
29889,
2780,
29889,
29878,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
2780,
29918,
9039,
742,
29871,
29900,
29889,
29900,
29897,
13,
12,
12,
726,
24619,
29889,
2780,
29889,
29887,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
2780,
29918,
24599,
742,
29871,
29896,
29889,
29900,
29897,
13,
12,
12,
726,
24619,
29889,
2780,
29889,
29890,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
2780,
29918,
21319,
742,
29871,
29900,
29889,
29900,
29897,
13,
12,
12,
726,
24619,
29889,
2780,
29889,
29874,
353,
696,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
2780,
29918,
28630,
742,
29871,
29896,
29889,
29900,
29897,
13,
13,
12,
12,
10492,
353,
696,
1028,
29891,
29889,
19907,
29898,
307,
1028,
29891,
29889,
657,
29918,
3207,
877,
30022,
10492,
742,
29871,
29945,
876,
13,
13,
12,
12,
5467,
29918,
22976,
3542,
353,
696,
1028,
29891,
29889,
21076,
1674,
261,
877,
20119,
2133,
29918,
22976,
742,
4485,
261,
29897,
13,
13,
12,
12,
20047,
353,
29871,
29900,
13,
12,
12,
3317,
29907,
593,
353,
29871,
29896,
29900,
13,
12,
12,
1311,
29889,
726,
353,
525,
29916,
29918,
29915,
13,
12,
12,
8000,
451,
696,
1028,
29891,
29889,
275,
29918,
845,
329,
3204,
7295,
13,
12,
12,
12,
361,
274,
593,
529,
4236,
29907,
593,
29901,
13,
12,
12,
12,
12,
726,
24619,
29889,
2467,
353,
4485,
261,
29889,
6720,
4571,
29943,
29979,
13,
12,
12,
12,
12,
1311,
29889,
726,
4619,
851,
29898,
20047,
29897,
13,
12,
12,
12,
12,
20047,
4619,
29871,
29896,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
1311,
29889,
726,
353,
525,
29916,
29918,
29915,
13,
12,
12,
12,
12,
726,
24619,
29889,
2467,
353,
4485,
261,
29889,
2287,
18476,
13,
12,
12,
12,
12,
20047,
353,
29871,
29900,
13,
12,
12,
12,
12,
13,
13,
12,
12,
12,
726,
24619,
29889,
726,
353,
1583,
29889,
726,
13,
13,
12,
12,
12,
5467,
29918,
22976,
3542,
29889,
23679,
29898,
726,
24619,
29897,
13,
13,
12,
12,
12,
10492,
29889,
17059,
580,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
12,
307,
1028,
29891,
29889,
2344,
29918,
3177,
877,
13264,
29918,
726,
24619,
29918,
21076,
1674,
261,
742,
21560,
29922,
5574,
29897,
13,
12,
2202,
29901,
13,
12,
12,
3177,
353,
3992,
21076,
1674,
261,
580,
13,
12,
19499,
696,
1028,
29891,
29889,
1672,
29903,
4074,
6685,
2451,
29901,
1209,
13,
2
] |
progue/ai/actions/misc.py | BradyKieffer/progue | 0 | 177051 | """ Misc / Weird actions can go here """
import random
from action import Action
from progue.utils.actor_constants import ATTRIBUTE_IDLE, ATTR_VALUE, MAX_TURNS, CURRENT_TURN, RANGE
class ActionIdle(Action):
""" Used for lazy monsters """
def __init__(self, actor):
Action.__init__(self, actor=actor, update_func=self.idle)
self.actor.attributes[ATTRIBUTE_IDLE][ATTR_VALUE] = True
rng = self.actor.attributes[ATTRIBUTE_IDLE][RANGE]
self.percent_idle = max(min(rng[1], random.random()), rng[0])
self.curr_turn = self.actor.attributes[ATTRIBUTE_IDLE][CURRENT_TURN]
self.max_turns = self.actor.attributes[ATTRIBUTE_IDLE][
MAX_TURNS] + random.randrange(-5, 5)
def idle(self):
if (self.curr_turn > self.max_turns) or (random.random() > self.percent_idle):
self.complete = True
self.actor.attributes[ATTRIBUTE_IDLE][ATTR_VALUE] = False
self.curr_turn += 1
| [
1,
9995,
341,
10669,
847,
1334,
1823,
8820,
508,
748,
1244,
9995,
13,
5215,
4036,
13,
3166,
3158,
1053,
9123,
13,
3166,
410,
13000,
29889,
13239,
29889,
7168,
29918,
3075,
1934,
1053,
15531,
29911,
3960,
29933,
26027,
29918,
1367,
1307,
29892,
15531,
5659,
29918,
19143,
29892,
18134,
29918,
29911,
4574,
3059,
29892,
315,
4574,
29450,
29918,
29911,
24015,
29892,
390,
24336,
13,
13,
13,
1990,
9123,
1204,
280,
29898,
4276,
1125,
13,
1678,
9995,
501,
8485,
363,
17366,
1601,
23080,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
11339,
1125,
13,
4706,
9123,
17255,
2344,
12035,
1311,
29892,
11339,
29922,
7168,
29892,
2767,
29918,
9891,
29922,
1311,
29889,
333,
280,
29897,
13,
13,
4706,
1583,
29889,
7168,
29889,
15697,
29961,
1299,
29911,
3960,
29933,
26027,
29918,
1367,
1307,
3816,
1299,
5659,
29918,
19143,
29962,
353,
5852,
13,
4706,
364,
865,
353,
1583,
29889,
7168,
29889,
15697,
29961,
1299,
29911,
3960,
29933,
26027,
29918,
1367,
1307,
3816,
29934,
24336,
29962,
13,
4706,
1583,
29889,
25376,
29918,
333,
280,
353,
4236,
29898,
1195,
29898,
29878,
865,
29961,
29896,
1402,
4036,
29889,
8172,
25739,
364,
865,
29961,
29900,
2314,
13,
4706,
1583,
29889,
21962,
29918,
685,
353,
1583,
29889,
7168,
29889,
15697,
29961,
1299,
29911,
3960,
29933,
26027,
29918,
1367,
1307,
3816,
22484,
29450,
29918,
29911,
24015,
29962,
13,
4706,
1583,
29889,
3317,
29918,
685,
29879,
353,
1583,
29889,
7168,
29889,
15697,
29961,
1299,
29911,
3960,
29933,
26027,
29918,
1367,
1307,
3816,
13,
9651,
18134,
29918,
29911,
4574,
3059,
29962,
718,
4036,
29889,
9502,
3881,
6278,
29945,
29892,
29871,
29945,
29897,
13,
13,
1678,
822,
28132,
29898,
1311,
1125,
13,
4706,
565,
313,
1311,
29889,
21962,
29918,
685,
1405,
1583,
29889,
3317,
29918,
685,
29879,
29897,
470,
313,
8172,
29889,
8172,
580,
1405,
1583,
29889,
25376,
29918,
333,
280,
1125,
13,
9651,
1583,
29889,
8835,
353,
5852,
13,
9651,
1583,
29889,
7168,
29889,
15697,
29961,
1299,
29911,
3960,
29933,
26027,
29918,
1367,
1307,
3816,
1299,
5659,
29918,
19143,
29962,
353,
7700,
13,
13,
4706,
1583,
29889,
21962,
29918,
685,
4619,
29871,
29896,
13,
2
] |
tsdf/utils.py | changgyhub/semantic-tsdf | 9 | 139659 | <reponame>changgyhub/semantic-tsdf
'''
TSDF utility functions.
'''
import numpy as np
# Get corners of 3D camera view frustum of depth image.
def get_view_frustum(depth_im, cam_intr, cam_pose):
im_h = depth_im.shape[0]
im_w = depth_im.shape[1]
max_depth = np.max(depth_im)
view_frust_pts = np.array([(np.array([0, 0, 0, im_w, im_w]) - cam_intr[0, 2]) * np.array([0, max_depth, max_depth, max_depth, max_depth]) / cam_intr[0, 0],
(np.array([0, 0, im_h, 0, im_h]) - cam_intr[1, 2]) * np.array([0, max_depth, max_depth, max_depth, max_depth]) / cam_intr[1, 1],
np.array([0, max_depth, max_depth, max_depth, max_depth])])
view_frust_pts = np.dot(cam_pose[:3, :3], view_frust_pts) + np.tile(cam_pose[:3, 3].reshape(3, 1), (1, view_frust_pts.shape[1])) # from camera to world coordinates
return view_frust_pts
# Save 3D mesh to a polygon .ply file.
def meshwrite(filename, verts, faces, norms, colors):
# Write header.
ply_file = open(filename,'w')
ply_file.write("ply\n")
ply_file.write("format ascii 1.0\n")
ply_file.write("element vertex {:d}\n".format(verts.shape[0]))
ply_file.write("property float x\n")
ply_file.write("property float y\n")
ply_file.write("property float z\n")
ply_file.write("property float nx\n")
ply_file.write("property float ny\n")
ply_file.write("property float nz\n")
ply_file.write("property uchar red\n")
ply_file.write("property uchar green\n")
ply_file.write("property uchar blue\n")
ply_file.write("element face {:d}\n".format(faces.shape[0]))
ply_file.write("property list uchar int vertex_index\n")
ply_file.write("end_header\n")
# Write vertex list.
for i in range(verts.shape[0]):
ply_file.write("{:f} {:f} {:f} {:f} {:f} {:f} {:d} {:d} {:d}\n".format(
verts[i, 0], verts[i, 1], verts[i, 2],
norms[i, 0], norms[i, 1], norms[i, 2],
colors[i, 0], colors[i, 1], colors[i, 2]))
# Write face list.
for i in range(faces.shape[0]):
ply_file.write("3 {:d} {:d} {:d}\n".format(faces[i, 0], faces[i, 1], faces[i, 2]))
ply_file.close() | [
1,
529,
276,
1112,
420,
29958,
305,
574,
1927,
29882,
431,
29914,
12846,
7716,
29899,
1372,
2176,
13,
12008,
13,
9375,
4037,
19725,
3168,
29889,
13,
12008,
13,
13,
5215,
12655,
408,
7442,
13,
13,
13,
29937,
3617,
26995,
310,
29871,
29941,
29928,
10656,
1776,
1424,
504,
398,
310,
10809,
1967,
29889,
13,
1753,
679,
29918,
1493,
29918,
1341,
504,
398,
29898,
19488,
29918,
326,
29892,
3949,
29918,
262,
509,
29892,
3949,
29918,
4220,
1125,
13,
1678,
527,
29918,
29882,
353,
10809,
29918,
326,
29889,
12181,
29961,
29900,
29962,
13,
1678,
527,
29918,
29893,
353,
10809,
29918,
326,
29889,
12181,
29961,
29896,
29962,
13,
1678,
4236,
29918,
19488,
353,
7442,
29889,
3317,
29898,
19488,
29918,
326,
29897,
13,
1678,
1776,
29918,
1341,
504,
29918,
16485,
353,
7442,
29889,
2378,
4197,
29898,
9302,
29889,
2378,
4197,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
527,
29918,
29893,
29892,
527,
29918,
29893,
2314,
448,
3949,
29918,
262,
509,
29961,
29900,
29892,
29871,
29906,
2314,
334,
7442,
29889,
2378,
4197,
29900,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
2314,
847,
3949,
29918,
262,
509,
29961,
29900,
29892,
29871,
29900,
1402,
13,
462,
1669,
313,
9302,
29889,
2378,
4197,
29900,
29892,
29871,
29900,
29892,
527,
29918,
29882,
29892,
29871,
29900,
29892,
527,
29918,
29882,
2314,
448,
3949,
29918,
262,
509,
29961,
29896,
29892,
29871,
29906,
2314,
334,
7442,
29889,
2378,
4197,
29900,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
2314,
847,
3949,
29918,
262,
509,
29961,
29896,
29892,
29871,
29896,
1402,
13,
462,
18884,
7442,
29889,
2378,
4197,
29900,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
29892,
4236,
29918,
19488,
2314,
2314,
13,
1678,
1776,
29918,
1341,
504,
29918,
16485,
353,
7442,
29889,
6333,
29898,
11108,
29918,
4220,
7503,
29941,
29892,
584,
29941,
1402,
1776,
29918,
1341,
504,
29918,
16485,
29897,
718,
7442,
29889,
29873,
488,
29898,
11108,
29918,
4220,
7503,
29941,
29892,
29871,
29941,
1822,
690,
14443,
29898,
29941,
29892,
29871,
29896,
511,
313,
29896,
29892,
1776,
29918,
1341,
504,
29918,
16485,
29889,
12181,
29961,
29896,
12622,
29871,
396,
515,
10656,
304,
3186,
10350,
13,
1678,
736,
1776,
29918,
1341,
504,
29918,
16485,
13,
13,
13,
29937,
16913,
29871,
29941,
29928,
27716,
304,
263,
29807,
869,
17632,
934,
29889,
13,
1753,
27716,
3539,
29898,
9507,
29892,
4837,
29879,
29892,
17240,
29892,
6056,
29879,
29892,
11955,
1125,
13,
13,
1678,
396,
14350,
4839,
29889,
13,
1678,
282,
368,
29918,
1445,
353,
1722,
29898,
9507,
5501,
29893,
1495,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
17632,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
4830,
408,
18869,
29871,
29896,
29889,
29900,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
5029,
12688,
12365,
29881,
1012,
29876,
1642,
4830,
29898,
369,
1372,
29889,
12181,
29961,
29900,
12622,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
5785,
921,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
5785,
343,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
5785,
503,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
5785,
302,
29916,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
5785,
7098,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
5785,
302,
29920,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
318,
3090,
2654,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
318,
3090,
7933,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
318,
3090,
7254,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
5029,
3700,
12365,
29881,
1012,
29876,
1642,
4830,
29898,
8726,
29889,
12181,
29961,
29900,
12622,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
6799,
1051,
318,
3090,
938,
12688,
29918,
2248,
29905,
29876,
1159,
13,
1678,
282,
368,
29918,
1445,
29889,
3539,
703,
355,
29918,
6672,
29905,
29876,
1159,
13,
13,
1678,
396,
14350,
12688,
1051,
29889,
13,
1678,
363,
474,
297,
3464,
29898,
369,
1372,
29889,
12181,
29961,
29900,
29962,
1125,
13,
4706,
282,
368,
29918,
1445,
29889,
3539,
703,
25641,
29888,
29913,
12365,
29888,
29913,
12365,
29888,
29913,
12365,
29888,
29913,
12365,
29888,
29913,
12365,
29888,
29913,
12365,
29881,
29913,
12365,
29881,
29913,
12365,
29881,
1012,
29876,
1642,
4830,
29898,
13,
9651,
4837,
29879,
29961,
29875,
29892,
29871,
29900,
1402,
4837,
29879,
29961,
29875,
29892,
29871,
29896,
1402,
4837,
29879,
29961,
29875,
29892,
29871,
29906,
1402,
13,
9651,
6056,
29879,
29961,
29875,
29892,
29871,
29900,
1402,
6056,
29879,
29961,
29875,
29892,
29871,
29896,
1402,
6056,
29879,
29961,
29875,
29892,
29871,
29906,
1402,
13,
9651,
11955,
29961,
29875,
29892,
29871,
29900,
1402,
11955,
29961,
29875,
29892,
29871,
29896,
1402,
11955,
29961,
29875,
29892,
29871,
29906,
12622,
13,
268,
13,
1678,
396,
14350,
3700,
1051,
29889,
13,
1678,
363,
474,
297,
3464,
29898,
8726,
29889,
12181,
29961,
29900,
29962,
1125,
13,
4706,
282,
368,
29918,
1445,
29889,
3539,
703,
29941,
12365,
29881,
29913,
12365,
29881,
29913,
12365,
29881,
1012,
29876,
1642,
4830,
29898,
8726,
29961,
29875,
29892,
29871,
29900,
1402,
17240,
29961,
29875,
29892,
29871,
29896,
1402,
17240,
29961,
29875,
29892,
29871,
29906,
12622,
13,
13,
1678,
282,
368,
29918,
1445,
29889,
5358,
580,
2
] |
PresentMonAnalysis.py | CarHol/PresentMonAnalysis | 0 | 148635 | <filename>PresentMonAnalysis.py
import argparse
import numpy as np
import time
import ntpath
import style
import ArrayUtils
from bokeh.plotting import figure, output_file, show
from bokeh.models import Span, Label, Tabs, Panel
from bokeh.models.widgets import Div
from bokeh.layouts import column, row, widgetbox
from PresentMonResult import PresentMonResult, LoadFromCsv
# Debug?
debug = False
# FUNCTIONS
def CreateHistogram(data, width, histTitle, xLabel, yLabel, indicateMu=True):
"""
Generates a Bokeh histogram from a numpy array of data.
:param data: Any numpy array of ints or floats
:param width: Target rendering width
:param histTitle: Chart title
:param xLabel: X-axis label
:param yLabel: Y-axis label
:param indicateMu: Whether or not to draw a vertical line indicating the data mean
:return: A Bokeh quad-graph with range from mu +/- (4*sigma).
"""
# Get data from result:
# indicateMu = True, indicateSigma=0
# TODO: Add automatic fps conversion in PresentMonResult class
# TODO: Add parallellization for large datasets
mu = np.mean(data)
sigma = np.std(data)
# Create plot (hard coded settings for now)
p = figure(title=histTitle, x_axis_label=xLabel,
y_axis_label=yLabel)
p.x_range.end = mu + 4 * sigma
p.x_range.start = mu - 4 * sigma
p.width = width
p.toolbar.logo = None
hist, edges = np.histogram(data, density=True, bins=min(2000, data.size))
p.quad(top=hist, bottom=0, left=edges[:-1], right=edges[1:],
fill_color=style.histogramStyle['fill_color'], line_color=style.histogramStyle['line_color'])
# Add markers for mean, stdev
if indicateMu:
muLine = Span(location=mu, dimension='height', line_color='red', line_width=1)
p.renderers.extend([muLine])
return p
def CreateTabbedHistogram(dataSet, width):
"""
Creates a panel containing two histograms, one with frametimes and one with framerate
:param dataSet: A numpy array of frametimes in ms
:param width: Target rendering width
:return: A Bokeh panel with one tab for each histogram
"""
# Create the charts
frequencyData = 1000. / np.array(dataSet)
timeHistogram = CreateHistogram(dataSet,
width,
histTitle="Frametimes",
xLabel="Frame time (ms)",
yLabel="Relative frequency")
frequencyHistogram = CreateHistogram(frequencyData,
width,
histTitle="Framerate",
xLabel="Framerate (fps)",
yLabel="Relative frequency")
# Create panels
timeTab = Panel(child=timeHistogram, title="Frametimes")
frequencyTab = Panel(child=frequencyHistogram, title="FPS")
# Create tabs
return Tabs(tabs=[timeTab, frequencyTab])
def CreateLineDiagram(frameData, timeData, width, chartTitle, xLabel, yLabel):
"""
Creates a line diagram over time from a numpy array
:param frameData: A numpy array containing framerate or frametimes
:param timeData: A numpy array containing timestamps
:param width: Target rendering width
:param chartTitle: The title of the chart
:param xLabel: X-axis label
:param yLabel: Y-axis label
:return: A Bokeh line diagram with frameData plotted against timeData
"""
# Generate figure
p = figure(title=chartTitle, x_axis_label=xLabel, y_axis_label=yLabel)
p.width = width
p.toolbar.logo = None
# Add line
p.line(timeData, frameData, line_width=0.5)
return p
def CreateTabbedLineDiagram(dataSet, width):
"""
Generates a panel with two tabs, one for framerate and one for frametimes
:param dataSet: A PresentMonResult object
:param width: Target rendering width of the panel
:return: A Bokeh panel containing two tabs
"""
# Create charts
frequencyData = 1000. / dataSet.msBetweenPresents
timeChart = CreateLineDiagram(dataSet.msBetweenPresents, dataSet.timeStamps, width, "Framtimes", "Runtime (s)",
"Frame time (ms)")
frequencyChart = CreateLineDiagram(frequencyData, dataSet.timeStamps, width, "Framerate", "Runtime (s)",
"Framerate (fps)")
# Create panels
timeTab = Panel(child=timeChart, title="Frametimes")
frequencyTab = Panel(child=frequencyChart, title="Framerate")
return Tabs(tabs=[timeTab, frequencyTab])
def GenerateTextStatistics(data, width):
"""
Generates a Bokeh Div containing statistics in text form.
:param data: A numpy array of frametimes in ms.
:param width: Target rendering width.
:return: A Bokeh Div based on the input data.
"""
# Get components:
basicStatistics = GenerateBasicStatisticsText(data)
frameToFrameStatistics = GenerateFrameToFrameStatistics(data)
thresholdStatistics = GenerateThresholdStatistics(data, [60, 90, 120, 144])
# Generate graphic
text = "<div style=\"padding-left:10px\">" + \
basicStatistics + frameToFrameStatistics + thresholdStatistics + \
"</div>"
div = Div(text=text, width=width)
return div
# Text block generation:
def GenerateBasicStatisticsText(data):
"""
Generates a basic statistics section in HTML format.
:param data: A PresentMonResult object.
:return: Basic statistics as an HTML string (header + paragraphs).
"""
nFrames = data.timeStamps.size
# Mean, meadian and standard deviation times
meanFrametime = np.mean(data.msBetweenPresents)
medianFrameTime = np.median(data.msBetweenPresents)
stdDevFrameTime = np.std(data.msBetweenPresents)
# Corresponding framerates:
meanFramerate = 1000. / meanFrametime
medianFramerate = 1000. / medianFrameTime
stdDevFramerate = 1000. / stdDevFrameTime
# Generate and return text
return "<h3>Basic statistics</h3>" + \
"<p>Number of processed frames: " + str(nFrames) + \
"<p>Median: " + "{:10.3f}".format(medianFramerate) + " fps (" + "{:10.3f}".format(medianFrameTime) + " ms)" + \
"<p>Mean: " + "{:10.3f}".format(meanFramerate) + " fps (" + "{:10.3f}".format(meanFrametime) + " ms)" + \
"<p>Standard deviation: " + "{:10.3f}".format(stdDevFramerate) + " fps (" + "{:10.3f}".format(
stdDevFrameTime) + " ms)"
def GenerateFrameToFrameStatistics(data):
"""
Generates frame-to-frame statistics in HTML format.
:param data: A PresentMonResult object.
:return: Frame-to-frame statistics as an HTML string (header + paragraphs).
"""
# Calulate average frame-to-frame difference magnitude
diffsMs = ArrayUtils.getArrDiffs(data.msBetweenPresents)
maxDiffAmp = np.max(diffsMs)
minDiffAmp = np.min(diffsMs)
avgDiffAmp = np.mean(diffsMs)
# Generate and return text
return "<h3>Frame-to-frame statistics</h3>" + \
"<p>Average magnitude of difference: " + "{:10.3f}".format(avgDiffAmp) + " ms</p>" + \
"<p>Maximum magnitude of difference: " + "{:10.3f}".format(maxDiffAmp) + " ms</p>" + \
"<p>Minimum magnitude of difference: " + "{:10.3f}".format(minDiffAmp) + " ms</p>"
def GenerateThresholdStatistics(data, thresholdFramerates):
"""
Generates threshold statistics in HTML data.
:param data: A PresentMonResult object.
:param thresholdFramerates: A list of framerates to use as thresholds.
:return: Threshold statistics as an HTML string (header + paragraphs).
"""
totalTimeSeconds = data.timeStamps[-1]
thresholds = []
for frameRate in thresholdFramerates:
thresholds.append((frameRate, [], 0.0))
# Thresholds (time spent above x fps)
# (threshold fps, list of frames, fraction of total time spent)
for frame in data.msBetweenPresents:
for index in range(0, len(thresholds)):
# for threshold in thresholds:
if (1000. / frame) > thresholds[index][0]:
thresholds[index][1].append(frame)
thresholds[index] = (
thresholds[index][0], thresholds[index][1],
thresholds[index][2] + (frame / 1000) / totalTimeSeconds)
# Piece together the values and return
text = "<h3>Framerate threshold statistics:</h3>"
for threshold in thresholds:
text = text + "<p>Fraction of time spent above " + str(threshold[0]) + " fps: " + "{:10.3f}".format(
threshold[2] * 100) + "%</p>"
return text
# SETTINGS
plotWidth = 1068
# Parse arguments
parser = argparse.ArgumentParser()
parser.add_argument("-debug", help="Enable debug mode", action="store_true")
parser.add_argument("-file", help="Path to a PresentMon generated CSV-file")
startTime = time.time()
args = parser.parse_args()
fileSource = "TestData/csgo-2.csv"
if args.file:
fileSource = args.file
elif args.debug:
debug = True
else:
parser.error('Either file or debug mode most be selected')
# Load data
data = LoadFromCsv(fileSource)
# Set output file
output_file("Analysis.html")
# Generate header
fileName = ntpath.basename(fileSource)
header = Div(text="<div class=headerDiv><h1>Analysis: {}</h1></div>".format(fileName), width=plotWidth, style=style.headerStyle)
# Generate plots
histogram = CreateTabbedHistogram(data.msBetweenPresents, plotWidth) # Relative frequency histograms
frameToFrameHistogram = CreateHistogram(ArrayUtils.getArrDiffs(data.msBetweenPresents),
plotWidth,
histTitle="Frame-to-frame deviations",
xLabel="Frame time difference (ms)",
yLabel="Relative frequency")
lineDiagram = CreateTabbedLineDiagram(data, plotWidth) # Framerate/frametimes as line diagram
textStatistics = GenerateTextStatistics(data, plotWidth) # Statistics in text form
endTime = time.time() # For debug diagnostics
if debug:
print("Script runtime: " + str(endTime - startTime))
# Output and show
show(
column(
header,
row(
column(
Div(text="<div><h3>Performance distribution</h3></div>", width=plotWidth, style=style.subheaderStyle),
histogram,
Div(text="<div><h3>Performance timeline</h3></div>", width=plotWidth, style=style.subheaderStyle),
lineDiagram,
Div(text="<div><h3>Frame-to-frame deviations</h3></div>", width=plotWidth, style=style.subheaderStyle),
frameToFrameHistogram
),
textStatistics
)
)
) | [
1,
529,
9507,
29958,
13504,
296,
7185,
21067,
4848,
29889,
2272,
13,
5215,
1852,
5510,
13,
5215,
12655,
408,
7442,
13,
5215,
931,
13,
5215,
302,
29873,
2084,
13,
5215,
3114,
13,
5215,
4398,
12177,
13,
3166,
1045,
446,
29882,
29889,
5317,
1259,
1053,
4377,
29892,
1962,
29918,
1445,
29892,
1510,
13,
3166,
1045,
446,
29882,
29889,
9794,
1053,
7948,
29892,
15796,
29892,
323,
6897,
29892,
349,
3870,
13,
3166,
1045,
446,
29882,
29889,
9794,
29889,
8030,
29879,
1053,
4910,
13,
3166,
1045,
446,
29882,
29889,
2680,
29879,
1053,
1897,
29892,
1948,
29892,
11109,
1884,
13,
3166,
4360,
296,
7185,
3591,
1053,
4360,
296,
7185,
3591,
29892,
16012,
4591,
29907,
4501,
13,
13,
29937,
16171,
29973,
13,
8382,
353,
7700,
13,
13,
13,
29937,
383,
28700,
29903,
13,
1753,
6204,
29950,
391,
13342,
29898,
1272,
29892,
2920,
29892,
9825,
7030,
29892,
921,
4775,
29892,
343,
4775,
29892,
12266,
29924,
29884,
29922,
5574,
1125,
13,
1678,
9995,
13,
1678,
3251,
1078,
263,
1952,
446,
29882,
9825,
13342,
515,
263,
12655,
1409,
310,
848,
29889,
13,
1678,
584,
3207,
848,
29901,
3139,
12655,
1409,
310,
938,
29879,
470,
5685,
1446,
13,
1678,
584,
3207,
2920,
29901,
17157,
15061,
2920,
13,
1678,
584,
3207,
9825,
7030,
29901,
14477,
3611,
13,
1678,
584,
3207,
921,
4775,
29901,
1060,
29899,
8990,
3858,
13,
1678,
584,
3207,
343,
4775,
29901,
612,
29899,
8990,
3858,
13,
1678,
584,
3207,
12266,
29924,
29884,
29901,
26460,
470,
451,
304,
4216,
263,
11408,
1196,
23941,
278,
848,
2099,
13,
1678,
584,
2457,
29901,
319,
1952,
446,
29882,
18890,
29899,
4262,
411,
3464,
515,
3887,
718,
24028,
313,
29946,
29930,
3754,
467,
13,
1678,
9995,
13,
1678,
396,
3617,
848,
515,
1121,
29901,
13,
1678,
396,
12266,
29924,
29884,
353,
5852,
29892,
12266,
10142,
29922,
29900,
13,
1678,
396,
14402,
29901,
3462,
18428,
285,
567,
11301,
297,
4360,
296,
7185,
3591,
770,
13,
1678,
396,
14402,
29901,
3462,
610,
3498,
645,
2133,
363,
2919,
20035,
13,
1678,
3887,
353,
7442,
29889,
12676,
29898,
1272,
29897,
13,
1678,
269,
2934,
353,
7442,
29889,
4172,
29898,
1272,
29897,
13,
13,
1678,
396,
6204,
6492,
313,
6800,
274,
6797,
6055,
363,
1286,
29897,
13,
1678,
282,
353,
4377,
29898,
3257,
29922,
29882,
391,
7030,
29892,
921,
29918,
8990,
29918,
1643,
29922,
29916,
4775,
29892,
13,
1669,
343,
29918,
8990,
29918,
1643,
29922,
29891,
4775,
29897,
13,
1678,
282,
29889,
29916,
29918,
3881,
29889,
355,
353,
3887,
718,
29871,
29946,
334,
269,
2934,
13,
1678,
282,
29889,
29916,
29918,
3881,
29889,
2962,
353,
3887,
448,
29871,
29946,
334,
269,
2934,
13,
1678,
282,
29889,
2103,
353,
2920,
13,
1678,
282,
29889,
10154,
1646,
29889,
14569,
353,
6213,
13,
1678,
9825,
29892,
12770,
353,
7442,
29889,
29882,
391,
13342,
29898,
1272,
29892,
9027,
29922,
5574,
29892,
289,
1144,
29922,
1195,
29898,
29906,
29900,
29900,
29900,
29892,
848,
29889,
2311,
876,
13,
13,
1678,
282,
29889,
3425,
29898,
3332,
29922,
29882,
391,
29892,
5970,
29922,
29900,
29892,
2175,
29922,
287,
2710,
7503,
29899,
29896,
1402,
1492,
29922,
287,
2710,
29961,
29896,
29901,
1402,
13,
965,
5445,
29918,
2780,
29922,
3293,
29889,
29882,
391,
13342,
5568,
1839,
5589,
29918,
2780,
7464,
1196,
29918,
2780,
29922,
3293,
29889,
29882,
391,
13342,
5568,
1839,
1220,
29918,
2780,
11287,
13,
13,
1678,
396,
3462,
29320,
363,
2099,
29892,
380,
3359,
13,
1678,
565,
12266,
29924,
29884,
29901,
13,
4706,
3887,
3542,
353,
7948,
29898,
5479,
29922,
2589,
29892,
9927,
2433,
3545,
742,
1196,
29918,
2780,
2433,
1127,
742,
1196,
29918,
2103,
29922,
29896,
29897,
13,
4706,
282,
29889,
9482,
414,
29889,
21843,
4197,
2589,
3542,
2314,
13,
13,
1678,
736,
282,
13,
13,
13,
1753,
6204,
8863,
2580,
29950,
391,
13342,
29898,
1272,
2697,
29892,
2920,
1125,
13,
1678,
9995,
13,
1678,
6760,
1078,
263,
9451,
6943,
1023,
9825,
468,
25402,
29892,
697,
411,
22767,
300,
1355,
322,
697,
411,
1424,
4183,
403,
13,
1678,
584,
3207,
848,
2697,
29901,
319,
12655,
1409,
310,
22767,
300,
1355,
297,
10887,
13,
1678,
584,
3207,
2920,
29901,
17157,
15061,
2920,
13,
1678,
584,
2457,
29901,
319,
1952,
446,
29882,
9451,
411,
697,
4434,
363,
1269,
9825,
13342,
13,
1678,
9995,
13,
1678,
396,
6204,
278,
24469,
13,
1678,
10868,
1469,
353,
29871,
29896,
29900,
29900,
29900,
29889,
847,
29871,
7442,
29889,
2378,
29898,
1272,
2697,
29897,
13,
13,
1678,
931,
29950,
391,
13342,
353,
6204,
29950,
391,
13342,
29898,
1272,
2697,
29892,
13,
462,
462,
1678,
2920,
29892,
13,
462,
462,
1678,
9825,
7030,
543,
29943,
2572,
300,
1355,
613,
13,
462,
462,
1678,
921,
4775,
543,
4308,
931,
313,
1516,
19123,
13,
462,
462,
1678,
343,
4775,
543,
18278,
10868,
1159,
13,
13,
1678,
10868,
29950,
391,
13342,
353,
6204,
29950,
391,
13342,
29898,
10745,
23860,
1469,
29892,
13,
462,
462,
308,
2920,
29892,
13,
462,
462,
308,
9825,
7030,
543,
29943,
2572,
261,
403,
613,
13,
462,
462,
308,
921,
4775,
543,
29943,
2572,
261,
403,
313,
29888,
567,
19123,
13,
462,
462,
308,
343,
4775,
543,
18278,
10868,
1159,
13,
13,
1678,
396,
6204,
7243,
1379,
13,
1678,
931,
8863,
353,
349,
3870,
29898,
5145,
29922,
2230,
29950,
391,
13342,
29892,
3611,
543,
29943,
2572,
300,
1355,
1159,
13,
1678,
10868,
8863,
353,
349,
3870,
29898,
5145,
29922,
10745,
23860,
29950,
391,
13342,
29892,
3611,
543,
29943,
7024,
1159,
13,
13,
1678,
396,
6204,
18859,
13,
1678,
736,
323,
6897,
29898,
21175,
11759,
2230,
8863,
29892,
10868,
8863,
2314,
13,
13,
1753,
6204,
3542,
12130,
14442,
29898,
2557,
1469,
29892,
931,
1469,
29892,
2920,
29892,
8727,
7030,
29892,
921,
4775,
29892,
343,
4775,
1125,
13,
1678,
9995,
13,
1678,
6760,
1078,
263,
1196,
13722,
975,
931,
515,
263,
12655,
1409,
13,
1678,
584,
3207,
3515,
1469,
29901,
319,
12655,
1409,
6943,
1424,
4183,
403,
470,
22767,
300,
1355,
13,
1678,
584,
3207,
931,
1469,
29901,
319,
12655,
1409,
6943,
5335,
342,
15092,
13,
1678,
584,
3207,
2920,
29901,
17157,
15061,
2920,
13,
1678,
584,
3207,
8727,
7030,
29901,
450,
3611,
310,
278,
8727,
13,
1678,
584,
3207,
921,
4775,
29901,
1060,
29899,
8990,
3858,
13,
1678,
584,
3207,
343,
4775,
29901,
612,
29899,
8990,
3858,
13,
1678,
584,
2457,
29901,
319,
1952,
446,
29882,
1196,
13722,
411,
3515,
1469,
715,
15048,
2750,
931,
1469,
13,
1678,
9995,
13,
13,
1678,
396,
3251,
403,
4377,
13,
1678,
282,
353,
4377,
29898,
3257,
29922,
15425,
7030,
29892,
921,
29918,
8990,
29918,
1643,
29922,
29916,
4775,
29892,
343,
29918,
8990,
29918,
1643,
29922,
29891,
4775,
29897,
13,
1678,
282,
29889,
2103,
353,
2920,
13,
1678,
282,
29889,
10154,
1646,
29889,
14569,
353,
6213,
13,
13,
1678,
396,
3462,
1196,
13,
1678,
282,
29889,
1220,
29898,
2230,
1469,
29892,
3515,
1469,
29892,
1196,
29918,
2103,
29922,
29900,
29889,
29945,
29897,
13,
13,
1678,
736,
282,
13,
13,
13,
1753,
6204,
8863,
2580,
3542,
12130,
14442,
29898,
1272,
2697,
29892,
2920,
1125,
13,
1678,
9995,
13,
1678,
3251,
1078,
263,
9451,
411,
1023,
18859,
29892,
697,
363,
1424,
4183,
403,
322,
697,
363,
22767,
300,
1355,
13,
1678,
584,
3207,
848,
2697,
29901,
319,
4360,
296,
7185,
3591,
1203,
13,
1678,
584,
3207,
2920,
29901,
17157,
15061,
2920,
310,
278,
9451,
13,
1678,
584,
2457,
29901,
319,
1952,
446,
29882,
9451,
6943,
1023,
18859,
13,
1678,
9995,
13,
1678,
396,
6204,
24469,
13,
1678,
10868,
1469,
353,
29871,
29896,
29900,
29900,
29900,
29889,
847,
848,
2697,
29889,
1516,
29933,
300,
1452,
13504,
1237,
13,
13,
1678,
931,
14732,
353,
6204,
3542,
12130,
14442,
29898,
1272,
2697,
29889,
1516,
29933,
300,
1452,
13504,
1237,
29892,
848,
2697,
29889,
2230,
855,
15092,
29892,
2920,
29892,
376,
29943,
2572,
3706,
613,
376,
7944,
313,
29879,
19123,
13,
462,
462,
29871,
376,
4308,
931,
313,
1516,
25760,
13,
1678,
10868,
14732,
353,
6204,
3542,
12130,
14442,
29898,
10745,
23860,
1469,
29892,
848,
2697,
29889,
2230,
855,
15092,
29892,
2920,
29892,
376,
29943,
2572,
261,
403,
613,
376,
7944,
313,
29879,
19123,
13,
462,
462,
539,
376,
29943,
2572,
261,
403,
313,
29888,
567,
25760,
13,
13,
1678,
396,
6204,
7243,
1379,
13,
1678,
931,
8863,
353,
349,
3870,
29898,
5145,
29922,
2230,
14732,
29892,
3611,
543,
29943,
2572,
300,
1355,
1159,
13,
1678,
10868,
8863,
353,
349,
3870,
29898,
5145,
29922,
10745,
23860,
14732,
29892,
3611,
543,
29943,
2572,
261,
403,
1159,
13,
13,
1678,
736,
323,
6897,
29898,
21175,
11759,
2230,
8863,
29892,
10868,
8863,
2314,
13,
13,
13,
1753,
3251,
403,
1626,
9513,
6765,
29898,
1272,
29892,
2920,
1125,
13,
1678,
9995,
13,
1678,
3251,
1078,
263,
1952,
446,
29882,
4910,
6943,
13964,
297,
1426,
883,
29889,
13,
1678,
584,
3207,
848,
29901,
319,
12655,
1409,
310,
22767,
300,
1355,
297,
10887,
29889,
13,
1678,
584,
3207,
2920,
29901,
17157,
15061,
2920,
29889,
13,
1678,
584,
2457,
29901,
319,
1952,
446,
29882,
4910,
2729,
373,
278,
1881,
848,
29889,
13,
1678,
9995,
13,
1678,
396,
3617,
7117,
29901,
13,
1678,
6996,
9513,
6765,
353,
3251,
403,
16616,
9513,
6765,
1626,
29898,
1272,
29897,
13,
1678,
3515,
1762,
4308,
9513,
6765,
353,
3251,
403,
4308,
1762,
4308,
9513,
6765,
29898,
1272,
29897,
13,
1678,
16897,
9513,
6765,
353,
3251,
403,
1349,
12268,
9513,
6765,
29898,
1272,
29892,
518,
29953,
29900,
29892,
29871,
29929,
29900,
29892,
29871,
29896,
29906,
29900,
29892,
29871,
29896,
29946,
29946,
2314,
13,
13,
1678,
396,
3251,
403,
3983,
293,
13,
1678,
1426,
353,
9872,
4563,
3114,
14672,
12791,
29899,
1563,
29901,
29896,
29900,
1756,
29905,
1013,
29908,
718,
320,
13,
965,
6996,
9513,
6765,
718,
3515,
1762,
4308,
9513,
6765,
718,
16897,
9513,
6765,
718,
320,
13,
965,
25225,
4563,
11903,
13,
1678,
1933,
353,
4910,
29898,
726,
29922,
726,
29892,
2920,
29922,
2103,
29897,
13,
1678,
736,
1933,
13,
13,
13,
29937,
3992,
2908,
12623,
29901,
13,
1753,
3251,
403,
16616,
9513,
6765,
1626,
29898,
1272,
1125,
13,
1678,
9995,
13,
1678,
3251,
1078,
263,
6996,
13964,
4004,
297,
4544,
3402,
29889,
13,
1678,
584,
3207,
848,
29901,
319,
4360,
296,
7185,
3591,
1203,
29889,
13,
1678,
584,
2457,
29901,
19219,
13964,
408,
385,
4544,
1347,
313,
6672,
718,
14880,
29879,
467,
13,
1678,
9995,
13,
1678,
302,
14438,
1280,
353,
848,
29889,
2230,
855,
15092,
29889,
2311,
13,
13,
1678,
396,
16316,
29892,
592,
328,
713,
322,
3918,
29522,
3064,
13,
1678,
2099,
29943,
2572,
5410,
353,
7442,
29889,
12676,
29898,
1272,
29889,
1516,
29933,
300,
1452,
13504,
1237,
29897,
13,
1678,
19194,
4308,
2481,
353,
7442,
29889,
2168,
713,
29898,
1272,
29889,
1516,
29933,
300,
1452,
13504,
1237,
29897,
13,
1678,
3659,
16618,
4308,
2481,
353,
7442,
29889,
4172,
29898,
1272,
29889,
1516,
29933,
300,
1452,
13504,
1237,
29897,
13,
13,
1678,
396,
2994,
3636,
292,
1424,
4183,
1078,
29901,
13,
1678,
2099,
29943,
2572,
261,
403,
353,
29871,
29896,
29900,
29900,
29900,
29889,
847,
2099,
29943,
2572,
5410,
13,
1678,
19194,
29943,
2572,
261,
403,
353,
29871,
29896,
29900,
29900,
29900,
29889,
847,
19194,
4308,
2481,
13,
1678,
3659,
16618,
29943,
2572,
261,
403,
353,
29871,
29896,
29900,
29900,
29900,
29889,
847,
3659,
16618,
4308,
2481,
13,
13,
1678,
396,
3251,
403,
322,
736,
1426,
13,
1678,
736,
9872,
29882,
29941,
29958,
16616,
13964,
829,
29882,
29941,
11903,
718,
320,
13,
965,
9872,
29886,
29958,
4557,
310,
19356,
16608,
29901,
376,
718,
851,
29898,
29876,
14438,
1280,
29897,
718,
320,
13,
965,
9872,
29886,
29958,
19302,
713,
29901,
376,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
2168,
713,
29943,
2572,
261,
403,
29897,
718,
376,
285,
567,
4852,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
2168,
713,
4308,
2481,
29897,
718,
376,
10887,
5513,
718,
320,
13,
965,
9872,
29886,
29958,
6816,
273,
29901,
376,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
12676,
29943,
2572,
261,
403,
29897,
718,
376,
285,
567,
4852,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
12676,
29943,
2572,
5410,
29897,
718,
376,
10887,
5513,
718,
320,
13,
965,
9872,
29886,
29958,
15449,
29522,
29901,
376,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
4172,
16618,
29943,
2572,
261,
403,
29897,
718,
376,
285,
567,
4852,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
13,
4706,
3659,
16618,
4308,
2481,
29897,
718,
376,
10887,
5513,
13,
13,
13,
1753,
3251,
403,
4308,
1762,
4308,
9513,
6765,
29898,
1272,
1125,
13,
1678,
9995,
13,
1678,
3251,
1078,
3515,
29899,
517,
29899,
2557,
13964,
297,
4544,
3402,
29889,
13,
1678,
584,
3207,
848,
29901,
319,
4360,
296,
7185,
3591,
1203,
29889,
13,
1678,
584,
2457,
29901,
12218,
29899,
517,
29899,
2557,
13964,
408,
385,
4544,
1347,
313,
6672,
718,
14880,
29879,
467,
13,
1678,
9995,
13,
1678,
396,
3037,
5987,
6588,
3515,
29899,
517,
29899,
2557,
4328,
18497,
13,
1678,
2923,
29879,
29924,
29879,
353,
4398,
12177,
29889,
657,
16401,
26023,
29879,
29898,
1272,
29889,
1516,
29933,
300,
1452,
13504,
1237,
29897,
13,
13,
1678,
4236,
26023,
29909,
1526,
353,
7442,
29889,
3317,
29898,
12765,
29879,
29924,
29879,
29897,
13,
1678,
1375,
26023,
29909,
1526,
353,
7442,
29889,
1195,
29898,
12765,
29879,
29924,
29879,
29897,
13,
1678,
1029,
29887,
26023,
29909,
1526,
353,
7442,
29889,
12676,
29898,
12765,
29879,
29924,
29879,
29897,
13,
13,
1678,
396,
3251,
403,
322,
736,
1426,
13,
1678,
736,
9872,
29882,
29941,
29958,
4308,
29899,
517,
29899,
2557,
13964,
829,
29882,
29941,
11903,
718,
320,
13,
965,
9872,
29886,
29958,
29909,
19698,
18497,
310,
4328,
29901,
376,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
485,
29887,
26023,
29909,
1526,
29897,
718,
376,
10887,
829,
29886,
11903,
718,
320,
13,
965,
9872,
29886,
29958,
7976,
12539,
18497,
310,
4328,
29901,
376,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
3317,
26023,
29909,
1526,
29897,
718,
376,
10887,
829,
29886,
11903,
718,
320,
13,
965,
9872,
29886,
29958,
8140,
12539,
18497,
310,
4328,
29901,
376,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
1195,
26023,
29909,
1526,
29897,
718,
376,
10887,
829,
29886,
11903,
13,
13,
13,
1753,
3251,
403,
1349,
12268,
9513,
6765,
29898,
1272,
29892,
16897,
29943,
2572,
261,
1078,
1125,
13,
1678,
9995,
13,
1678,
3251,
1078,
16897,
13964,
297,
4544,
848,
29889,
13,
1678,
584,
3207,
848,
29901,
319,
4360,
296,
7185,
3591,
1203,
29889,
13,
1678,
584,
3207,
16897,
29943,
2572,
261,
1078,
29901,
319,
1051,
310,
1424,
4183,
1078,
304,
671,
408,
266,
3781,
3361,
29889,
13,
1678,
584,
2457,
29901,
498,
12268,
13964,
408,
385,
4544,
1347,
313,
6672,
718,
14880,
29879,
467,
13,
1678,
9995,
13,
1678,
3001,
2481,
27535,
353,
848,
29889,
2230,
855,
15092,
14352,
29896,
29962,
13,
13,
1678,
266,
3781,
3361,
353,
5159,
13,
1678,
363,
3515,
19907,
297,
16897,
29943,
2572,
261,
1078,
29901,
13,
4706,
266,
3781,
3361,
29889,
4397,
3552,
2557,
19907,
29892,
19997,
29871,
29900,
29889,
29900,
876,
13,
13,
1678,
396,
498,
3781,
3361,
313,
2230,
10398,
2038,
921,
285,
567,
29897,
13,
1678,
396,
313,
386,
12268,
285,
567,
29892,
1051,
310,
16608,
29892,
15958,
310,
3001,
931,
10398,
29897,
13,
1678,
363,
3515,
297,
848,
29889,
1516,
29933,
300,
1452,
13504,
1237,
29901,
13,
4706,
363,
2380,
297,
3464,
29898,
29900,
29892,
7431,
29898,
386,
3781,
3361,
22164,
13,
9651,
396,
363,
16897,
297,
266,
3781,
3361,
29901,
13,
9651,
565,
313,
29896,
29900,
29900,
29900,
29889,
847,
3515,
29897,
1405,
266,
3781,
3361,
29961,
2248,
3816,
29900,
5387,
13,
18884,
266,
3781,
3361,
29961,
2248,
3816,
29896,
1822,
4397,
29898,
2557,
29897,
13,
18884,
266,
3781,
3361,
29961,
2248,
29962,
353,
313,
13,
462,
1678,
266,
3781,
3361,
29961,
2248,
3816,
29900,
1402,
266,
3781,
3361,
29961,
2248,
3816,
29896,
1402,
13,
462,
1678,
266,
3781,
3361,
29961,
2248,
3816,
29906,
29962,
718,
313,
2557,
847,
29871,
29896,
29900,
29900,
29900,
29897,
847,
3001,
2481,
27535,
29897,
13,
13,
1678,
396,
26005,
346,
4208,
278,
1819,
322,
736,
13,
1678,
1426,
353,
9872,
29882,
29941,
29958,
29943,
2572,
261,
403,
16897,
13964,
29901,
829,
29882,
29941,
11903,
13,
1678,
363,
16897,
297,
266,
3781,
3361,
29901,
13,
4706,
1426,
353,
1426,
718,
9872,
29886,
29958,
29943,
13857,
310,
931,
10398,
2038,
376,
718,
851,
29898,
386,
12268,
29961,
29900,
2314,
718,
376,
285,
567,
29901,
376,
718,
376,
25641,
29896,
29900,
29889,
29941,
29888,
29913,
1642,
4830,
29898,
13,
9651,
16897,
29961,
29906,
29962,
334,
29871,
29896,
29900,
29900,
29897,
718,
11860,
829,
29886,
11903,
13,
13,
1678,
736,
1426,
13,
13,
13,
29937,
11368,
29911,
4214,
29903,
13,
5317,
6110,
353,
29871,
29896,
29900,
29953,
29947,
13,
13,
29937,
20969,
6273,
13,
16680,
353,
1852,
5510,
29889,
15730,
11726,
580,
13,
16680,
29889,
1202,
29918,
23516,
703,
29899,
8382,
613,
1371,
543,
20701,
4744,
4464,
613,
3158,
543,
8899,
29918,
3009,
1159,
13,
16680,
29889,
1202,
29918,
23516,
703,
29899,
1445,
613,
1371,
543,
2605,
304,
263,
4360,
296,
7185,
5759,
16874,
29899,
1445,
1159,
13,
13,
2962,
2481,
353,
931,
29889,
2230,
580,
13,
13,
5085,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1445,
4435,
353,
376,
3057,
1469,
29914,
2395,
1484,
29899,
29906,
29889,
7638,
29908,
13,
361,
6389,
29889,
1445,
29901,
13,
1678,
934,
4435,
353,
6389,
29889,
1445,
13,
23681,
6389,
29889,
8382,
29901,
13,
1678,
4744,
353,
5852,
13,
2870,
29901,
13,
1678,
13812,
29889,
2704,
877,
29923,
2121,
934,
470,
4744,
4464,
1556,
367,
4629,
1495,
13,
13,
29937,
16012,
848,
13,
1272,
353,
16012,
4591,
29907,
4501,
29898,
1445,
4435,
29897,
13,
13,
29937,
3789,
1962,
934,
13,
4905,
29918,
1445,
703,
21067,
4848,
29889,
1420,
1159,
13,
13,
29937,
3251,
403,
4839,
13,
28926,
353,
302,
29873,
2084,
29889,
6500,
3871,
29898,
1445,
4435,
29897,
13,
6672,
353,
4910,
29898,
726,
543,
29966,
4563,
770,
29922,
6672,
12596,
5299,
29882,
29896,
29958,
21067,
4848,
29901,
6571,
829,
29882,
29896,
2565,
4563,
29958,
1642,
4830,
29898,
28926,
511,
2920,
29922,
5317,
6110,
29892,
3114,
29922,
3293,
29889,
6672,
5568,
29897,
13,
13,
29937,
3251,
403,
24580,
13,
29882,
391,
13342,
353,
6204,
8863,
2580,
29950,
391,
13342,
29898,
1272,
29889,
1516,
29933,
300,
1452,
13504,
1237,
29892,
6492,
6110,
29897,
29871,
396,
6376,
1230,
10868,
9825,
468,
25402,
13,
2557,
1762,
4308,
29950,
391,
13342,
353,
29871,
6204,
29950,
391,
13342,
29898,
2588,
12177,
29889,
657,
16401,
26023,
29879,
29898,
1272,
29889,
1516,
29933,
300,
1452,
13504,
1237,
511,
13,
462,
462,
1678,
6492,
6110,
29892,
13,
462,
462,
1678,
9825,
7030,
543,
4308,
29899,
517,
29899,
2557,
29668,
800,
613,
13,
462,
462,
1678,
921,
4775,
543,
4308,
931,
4328,
313,
1516,
19123,
13,
462,
462,
1678,
343,
4775,
543,
18278,
10868,
1159,
13,
1220,
12130,
14442,
353,
6204,
8863,
2580,
3542,
12130,
14442,
29898,
1272,
29892,
6492,
6110,
29897,
29871,
396,
383,
2572,
261,
403,
29914,
22328,
300,
1355,
408,
1196,
13722,
13,
726,
9513,
6765,
353,
3251,
403,
1626,
9513,
6765,
29898,
1272,
29892,
6492,
6110,
29897,
29871,
396,
27098,
297,
1426,
883,
13,
13,
355,
2481,
353,
931,
29889,
2230,
580,
29871,
396,
1152,
4744,
652,
20921,
13,
361,
4744,
29901,
13,
1678,
1596,
703,
4081,
10073,
29901,
376,
718,
851,
29898,
355,
2481,
448,
1369,
2481,
876,
13,
13,
29937,
10604,
322,
1510,
13,
4294,
29898,
13,
1678,
1897,
29898,
13,
4706,
4839,
29892,
13,
4706,
1948,
29898,
13,
9651,
1897,
29898,
13,
18884,
4910,
29898,
726,
543,
29966,
4563,
5299,
29882,
29941,
29958,
5894,
13390,
4978,
829,
29882,
29941,
2565,
4563,
28341,
2920,
29922,
5317,
6110,
29892,
3114,
29922,
3293,
29889,
1491,
6672,
5568,
511,
13,
18884,
9825,
13342,
29892,
13,
18884,
4910,
29898,
726,
543,
29966,
4563,
5299,
29882,
29941,
29958,
5894,
13390,
5335,
5570,
829,
29882,
29941,
2565,
4563,
28341,
2920,
29922,
5317,
6110,
29892,
3114,
29922,
3293,
29889,
1491,
6672,
5568,
511,
13,
18884,
1196,
12130,
14442,
29892,
13,
18884,
4910,
29898,
726,
543,
29966,
4563,
5299,
29882,
29941,
29958,
4308,
29899,
517,
29899,
2557,
29668,
800,
829,
29882,
29941,
2565,
4563,
28341,
2920,
29922,
5317,
6110,
29892,
3114,
29922,
3293,
29889,
1491,
6672,
5568,
511,
13,
18884,
3515,
1762,
4308,
29950,
391,
13342,
13,
9651,
10353,
13,
9651,
1426,
9513,
6765,
13,
4706,
1723,
13,
1678,
1723,
13,
29897,
2
] |
components/studio/projects/migrations/0019_mlflow.py | aitmlouk/stackn | 25 | 1618034 | # Generated by Django 3.1.6 on 2021-03-18 21:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('apps', '0049_auto_20210318_1401'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('projects', '0018_auto_20210308_2132'),
]
operations = [
migrations.CreateModel(
name='MLFlow',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=512)),
('mlflow_url', models.CharField(max_length=512)),
('s3_host', models.CharField(max_length=512)),
('access_key', models.CharField(max_length=512)),
('secret_key', models.CharField(max_length=512)),
('region', models.CharField(blank=True, default='', max_length=512)),
('ba_username', models.CharField(blank=True, default='', max_length=100)),
('ba_password', models.CharField(blank=True, default='', max_length=100)),
('updated_on', models.DateTimeField(auto_now=True)),
('created_on', models.DateTimeField(auto_now_add=True)),
('app', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mlflowobj', to='apps.appinstance')),
('owner', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mlflow_project', to='projects.project')),
],
),
]
| [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
29889,
29953,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29941,
29899,
29896,
29947,
29871,
29906,
29896,
29901,
29941,
29906,
13,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
5215,
9557,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
13371,
742,
525,
29900,
29900,
29946,
29929,
29918,
6921,
29918,
29906,
29900,
29906,
29896,
29900,
29941,
29896,
29947,
29918,
29896,
29946,
29900,
29896,
5477,
13,
4706,
9725,
800,
29889,
2774,
932,
519,
29918,
10836,
29898,
11027,
29889,
20656,
29950,
29918,
11889,
29918,
20387,
29931,
511,
13,
4706,
6702,
16418,
742,
525,
29900,
29900,
29896,
29947,
29918,
6921,
29918,
29906,
29900,
29906,
29896,
29900,
29941,
29900,
29947,
29918,
29906,
29896,
29941,
29906,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
4391,
3195,
29898,
13,
9651,
1024,
2433,
1988,
17907,
742,
13,
9651,
4235,
11759,
13,
18884,
6702,
333,
742,
4733,
29889,
12300,
3073,
29898,
6921,
29918,
11600,
29922,
5574,
29892,
7601,
29918,
1989,
29922,
5574,
29892,
28755,
29922,
8824,
29892,
26952,
29918,
978,
2433,
1367,
1495,
511,
13,
18884,
6702,
978,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29896,
29906,
8243,
13,
18884,
6702,
828,
1731,
29918,
2271,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29896,
29906,
8243,
13,
18884,
6702,
29879,
29941,
29918,
3069,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29896,
29906,
8243,
13,
18884,
6702,
5943,
29918,
1989,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29896,
29906,
8243,
13,
18884,
6702,
19024,
29918,
1989,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29945,
29896,
29906,
8243,
13,
18884,
6702,
12803,
742,
4733,
29889,
27890,
29898,
19465,
29922,
5574,
29892,
2322,
2433,
742,
4236,
29918,
2848,
29922,
29945,
29896,
29906,
8243,
13,
18884,
6702,
2291,
29918,
6786,
742,
4733,
29889,
27890,
29898,
19465,
29922,
5574,
29892,
2322,
2433,
742,
4236,
29918,
2848,
29922,
29896,
29900,
29900,
8243,
13,
18884,
6702,
2291,
29918,
5630,
742,
4733,
29889,
27890,
29898,
19465,
29922,
5574,
29892,
2322,
2433,
742,
4236,
29918,
2848,
29922,
29896,
29900,
29900,
8243,
13,
18884,
6702,
21402,
29918,
265,
742,
4733,
29889,
11384,
3073,
29898,
6921,
29918,
3707,
29922,
5574,
8243,
13,
18884,
6702,
11600,
29918,
265,
742,
4733,
29889,
11384,
3073,
29898,
6921,
29918,
3707,
29918,
1202,
29922,
5574,
8243,
13,
18884,
6702,
932,
742,
4733,
29889,
6716,
1762,
6716,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
373,
29918,
8143,
29922,
14095,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
29889,
29907,
3289,
5454,
2287,
29892,
4475,
29918,
978,
2433,
828,
1731,
5415,
742,
304,
2433,
13371,
29889,
932,
8758,
1495,
511,
13,
18884,
6702,
20348,
742,
4733,
29889,
27755,
2558,
29898,
265,
29918,
8143,
29922,
14095,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
29889,
3970,
29918,
12256,
29950,
4214,
29892,
304,
29922,
11027,
29889,
20656,
29950,
29918,
11889,
29918,
20387,
29931,
8243,
13,
18884,
6702,
4836,
742,
4733,
29889,
27755,
2558,
29898,
265,
29918,
8143,
29922,
14095,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
29889,
29907,
3289,
5454,
2287,
29892,
4475,
29918,
978,
2433,
828,
1731,
29918,
4836,
742,
304,
2433,
16418,
29889,
4836,
1495,
511,
13,
9651,
21251,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.